@line/liff
Advanced tools
Comparing version 2.3.1 to 2.4.0
import { Message, ImageMapMessage } from '@line/bot-sdk/lib/types'; | ||
/** | ||
* the options to choose the way to send message in sendMessages method | ||
* none: send a message to context | ||
* ott: send messages to users bound to One-Time-Token (can send up to 10 ppl/group) | ||
*/ | ||
export declare enum SendMessagesOptionsType { | ||
none = "none", | ||
ott = "ott" | ||
} | ||
declare type LiffMessage = Exclude<Message, ImageMapMessage>; | ||
export declare type SendMessagesParams = LiffMessage[]; | ||
export interface SendMessagesOptions { | ||
type: SendMessagesOptionsType; | ||
token: string; | ||
} | ||
/** | ||
@@ -24,5 +11,3 @@ * Sends messages on behalf of the user to the chat screen where the LIFF app is opened. | ||
*/ | ||
export default function sendMessages(messages: SendMessagesParams, | ||
/** DEPRECATED. options to support old specs. */ | ||
options?: SendMessagesOptions): Promise<void>; | ||
export default function sendMessages(messages: SendMessagesParams): Promise<void>; | ||
export {}; |
@@ -20,3 +20,2 @@ import init from './init'; | ||
import sendMessages from './api/sendMessages'; | ||
import userPicker from './api/userPicker'; | ||
import shareTargetPicker from './api/shareTargetPicker'; | ||
@@ -50,3 +49,2 @@ import getFriendship from './api/getFriendship'; | ||
sendMessages: typeof sendMessages; | ||
userPicker: typeof userPicker; | ||
shareTargetPicker: typeof shareTargetPicker; | ||
@@ -53,0 +51,0 @@ permanentLink: { |
@@ -31,4 +31,7 @@ import get from './get'; | ||
export declare function setConfig(value: Config): void; | ||
export declare function getFeatures(): string[]; | ||
export declare function setFeatures(value: string[]): void; | ||
/** | ||
* features (string array of feature names) getter / setter | ||
*/ | ||
export declare function getFeatures(): readonly string[] | null; | ||
export declare function setFeatures(value: readonly string[]): void; | ||
interface LoginTmp { | ||
@@ -127,1 +130,6 @@ codeVerifier: string; | ||
export declare function removeExpireTime(): void; | ||
/** | ||
* store flag if subsequent LIFF App | ||
*/ | ||
export declare function setIsSubsequentLiffApp(value: boolean): void; | ||
export declare function getIsSubsequentLiffApp(): boolean; |
@@ -27,10 +27,5 @@ import { ElementType } from './typeHelpers'; | ||
readonly CLIENT_ID: "clientId"; | ||
readonly IS_SUBSEQUENT_LIFF_APP: "isSubsequentLiffApp"; | ||
}; | ||
export declare const STORE_SUBKEY_IS_IN_CLIENT = "isInClient"; | ||
export declare const LIFF_ATTR_DOM = "data-l-{0}"; | ||
export declare enum ROUTER_MODE { | ||
NONE = "none", | ||
HASH = "hash", | ||
HISTORY = "history" | ||
} | ||
export declare const CREDENTIAL_KEYS: readonly ["context_token", "feature_token", "access_token", "id_token", "client_id"]; | ||
@@ -41,2 +36,2 @@ export declare type CREDENTIAL_OBJECTS = { | ||
export declare const MAX_NUM_OF_SEND_MESSAGES = 5; | ||
export declare const IFRAME_OPEN_ANIMATION_DURATION = 400; | ||
export declare const DEFAULT_FEATURES: readonly ["openWindow", "closeWindow"]; |
@@ -1,2 +0,6 @@ | ||
export declare const handleRes: (res: Response) => Promise<any>; | ||
export default function (url: string, options?: RequestInit): Promise<any>; | ||
/** | ||
* @exports | ||
* @param {string} url | ||
* @param {RequestInit} [options] | ||
*/ | ||
export default function internalFetch(url: string, options?: RequestInit): Promise<any>; |
@@ -6,1 +6,2 @@ export declare function createUrl({ subdomain, pathname, }: { | ||
export default function getEndPoint(key: string): string; | ||
export declare function getOriginOfUrl(url: string): string; |
{ | ||
"name": "@line/liff", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"main": "dist/lib/index.js", | ||
@@ -12,3 +12,3 @@ "types": "dist/lib", | ||
"homepage": "https://developers.line.biz/en/docs/liff/overview/", | ||
"license" : "SEE THE LICENSE SECTION IN README.md", | ||
"license": "SEE THE LICENSE SECTION IN README.md", | ||
"scripts": { | ||
@@ -27,5 +27,11 @@ "test": "jest", | ||
"deploy:test": "reg test --noTag", | ||
"deploy:beta": "reg beta --noTag", | ||
"deploy:rc": "reg rc --noTag", | ||
"deploy:master": "reg -r master --noTag", | ||
"deploy:beta": "npm run deploy:beta-edge && npm run deploy:beta-versions", | ||
"deploy:beta-edge": "reg beta-edge --noTag", | ||
"deploy:beta-versions": "reg beta-versions --noTag", | ||
"deploy:rc": "npm run deploy:rc-edge && npm run deploy:rc-versions", | ||
"deploy:rc-edge": "reg rc-edge --noTag", | ||
"deploy:rc-versions": "reg rc-versions --noTag", | ||
"deploy:master": "npm run deploy:master-edge && npm run deploy:master-versions", | ||
"deploy:master-edge": "reg -r master-edge --noTag", | ||
"deploy:master-versions": "reg -r master-versions --noTag", | ||
"deploy:branch": "reg branch --noTag", | ||
@@ -32,0 +38,0 @@ "prepublishOnly": "./build-package.sh" |
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
547620
118
2
1164
1