拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-29
View File
@@ -1,29 +0,0 @@
import { AbstractIframe } from './abstract/AbstractIframe';
import { IframeEvent } from './windowPostMessage';
import { ROUTER_MODE } from '../consts';
export declare class ShareTargetPickerIFrame extends AbstractIframe {
protected routerMode: ROUTER_MODE;
protected submittedData: boolean | {};
private wrapperIn;
private originalBodyStyle;
private orgDocumentStyle;
private originalBodyPos;
private allowPostMessageOrigin;
constructor(url: string, accessToken: string, namespace?: Window);
init(routerMode?: ROUTER_MODE): Promise<void>;
protected prepareDom(): HTMLElement;
protected prepareStyle(): HTMLStyleElement;
cancel(): Promise<void>;
submit(): Promise<void>;
destroy(): Promise<void>;
protected changeBodyStyle(): void;
protected revertBodyStyle(): void;
private filter;
postMessageCallback(e: IframeEvent): Promise<void>;
/**
* TODO こいつらの処遇は後で決める
*/
protected historyAdd(): Promise<void>;
protected startWatchingHistoryChange(): void;
protected historyRemove(): void;
}
-13
View File
@@ -1,13 +0,0 @@
import { AbstractPopup } from './abstract/AbstractPopup';
import { IframeEvent } from './windowPostMessage';
export declare class ShareTargetPickerPopup extends AbstractPopup {
protected routerMode: any;
protected submittedData: boolean | {};
private allowPostMessageOrigin;
constructor(url: string, accessToken: string, namespace?: Window);
init(): Promise<void>;
cancel(): Promise<void>;
submit(): Promise<void>;
destroy(): Promise<void>;
postMessageCallback(e: IframeEvent): Promise<void>;
}
-12
View File
@@ -1,12 +0,0 @@
import { AbstractSubwindow } from './AbstractSubwindow';
export declare abstract class AbstractIframe extends AbstractSubwindow {
protected iframe: HTMLIFrameElement;
protected get postmessageDestination(): Window;
init(): Promise<void>;
protected prepareWindow(): Promise<void>;
protected breakWindow(): Promise<void>;
protected prepareDom(): HTMLElement;
protected prepareStyle(): HTMLStyleElement;
protected abstract changeBodyStyle(): void;
protected abstract revertBodyStyle(): void;
}
@@ -1,8 +0,0 @@
import { AbstractSubwindow } from './AbstractSubwindow';
export declare abstract class AbstractPopup extends AbstractSubwindow {
protected windowProxy: Window | null;
protected get postmessageDestination(): Window;
init(): Promise<void>;
prepareWindow(): Promise<void>;
breakWindow(): Promise<void>;
}
@@ -1,22 +0,0 @@
import { WindowPostMessage, IframeEvent } from '../windowPostMessage';
export declare abstract class AbstractSubwindow {
protected url: string;
protected uniqAttr: string;
protected namespace: Window;
protected accessToken: string;
protected windowPostMessage: WindowPostMessage;
protected contentElm: HTMLElement;
protected styleElm: HTMLStyleElement;
protected resolve: Function;
protected reject: Function;
protected pingHandler: any;
protected healthcheckHandler: any;
protected abstract postmessageDestination: Window;
constructor(url: string, accessToken: string, namespace?: Window);
init(): Promise<void>;
start(): Promise<null>;
destroy(): Promise<void>;
protected abstract prepareWindow(): Promise<void>;
protected abstract breakWindow(): Promise<void>;
postMessageCallback(e: IframeEvent): Promise<void>;
}
-2
View File
@@ -1,2 +0,0 @@
declare const _default: (uniq: string) => {};
export default _default;
-4
View File
@@ -1,4 +0,0 @@
export { default as listen } from './listen';
export { default as removeListen } from './removeListen';
export { default as messageTell, TellEvent } from './messageTell';
export { default as messageReceive, ReceiveEvent } from './messageReceive';
-21
View File
@@ -1,21 +0,0 @@
interface EventHandlers {
[k: string]: Function | null;
}
/**
* to retrieved cached values
*/
export declare function getEventHandlers(): EventHandlers;
/**
* Cleanup cached the variables, testing use
*/
export declare function _cleanupCache(): void;
/**
* main function to addEventListener with Promise which is resolve by being called at first time
* you can remove eventListener you added with this function by using `removeListen.ts`
* @param target Target Elements or Window
* @param key One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
* @param callback A function to execute when the event is triggered.
* @param options same as AddEventListenerOptions. see MDN if you find out more
*/
export default function listen(target: HTMLElement | HTMLDocument | Window, key: string, callback?: (e: Event) => void, options?: AddEventListenerOptions): Promise<Event>;
export {};
-5
View File
@@ -1,5 +0,0 @@
/**
* make a new unique attribute for HTMLElement to distinguish the elements created by LIFF SDK
* @param namespace
*/
export default function makeUniqAttr(namespace?: Window): string;
-23
View File
@@ -1,23 +0,0 @@
export interface ReceiveEvent extends MessageEvent {
data: {
name: string;
body: {} | {}[];
};
}
/**
* callback function called at first when receive a message event. (strictly speaking, listen.ts is called at very first)
* before calling callback you designated, this verifies if the name and origin are same as you expected
* @param name
* @param callback
* @param targetOrigin
*/
export declare function verifyCallback(name: string, callback: Function, targetOrigin: string): (event: ReceiveEvent) => void;
/**
* receive Event from another window calling postMessage.
* This is used for receiving data from another window like iframe, popup window, etc.
* @param target
* @param name
* @param callback
* @param targetOrigin
*/
export default function receive(target: Window, name: string, callback: Function, targetOrigin: string): void;
-14
View File
@@ -1,14 +0,0 @@
export interface TellEvent extends MessageEvent {
data: {
name: string;
body: {} | {}[];
};
}
/**
* call postMessage. This is used for sending data to another window like iframe, popup window, etc.
* @param target
* @param name
* @param body
* @param targetOrigin
*/
export default function messageTell(target: Window, name: string, body: {} | undefined, targetOrigin: string): void;
-1
View File
@@ -1 +0,0 @@
export default function removeListen(target: any, key: any): void;
@@ -1,2 +0,0 @@
export declare const getOriginOfUrl: (url: string) => string;
export declare const getUserPickerOrigin: () => string;
@@ -1 +0,0 @@
export {};
-19
View File
@@ -1,19 +0,0 @@
/**
* windowPostMessage.ts is deprecated since it features only userPicker feature.
* Please use message.ts when sending window.postMessage.
*/
export interface IframeEvent extends MessageEvent {
data: {
name: string;
body: any;
};
}
export declare class WindowPostMessage {
receiver: Window;
destination: Window;
listenKeyName: string;
constructor();
init(receiver: Window, destination: Window, callback: (e: IframeEvent) => Promise<void>): void;
send(name: string, body?: {}): void;
destroy(): void;
}