@dajiaoai/algeo-sdk 2.16.1 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/algeo-sdk.cjs.js +137 -52
- package/dist/algeo-sdk.esm.js +137 -52
- package/dist/algeo-sdk.umd.js +5362 -5277
- package/dist/embedded-presentation.d.ts +3 -0
- package/dist/sdkLogger.d.ts +6 -0
- package/dist/shared.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5,12 +5,15 @@ export declare class EmbeddedPresentation extends EmbeddedTarget<EmbeddedPresent
|
|
|
5
5
|
private currentContent?;
|
|
6
6
|
private currentSlideIndex;
|
|
7
7
|
private slideCount;
|
|
8
|
+
private appId;
|
|
9
|
+
private whitelistCheck?;
|
|
8
10
|
private whitelistError?;
|
|
9
11
|
private uiConfig;
|
|
10
12
|
constructor(container: HTMLElement);
|
|
11
13
|
initialize(options?: AlgeoPresentationCreateOptions, baseUrl?: string): Promise<void>;
|
|
12
14
|
protected acceptsEventMessage(): boolean;
|
|
13
15
|
setWhitelistError(error: AlgeoError): void;
|
|
16
|
+
private checkWhitelist;
|
|
14
17
|
private ensureWhitelistAccess;
|
|
15
18
|
loadShareById(id: string): Promise<LoadShareByIdResult>;
|
|
16
19
|
loadFile(content: FileContentAny): Promise<LoadFileResult>;
|
package/dist/shared.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export interface AlgeoSdkOptions {
|
|
|
16
16
|
}
|
|
17
17
|
export type AlgeoEmbedMode = 'presentation' | 'editor';
|
|
18
18
|
export declare function isLocalFileHost(): boolean;
|
|
19
|
+
export declare function isLocalLoopbackHost(): boolean;
|
|
20
|
+
export declare function readEmbedAppId(auth?: AlgeoEditorAuthOptions): string;
|
|
21
|
+
export declare function requireHttpHostForAppId(appId: string): void;
|
|
19
22
|
export interface AlgeoEditorAuthOptions {
|
|
20
23
|
appId: string;
|
|
21
24
|
}
|