@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.
@@ -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>;
@@ -0,0 +1,6 @@
1
+ interface SdkNotice {
2
+ title: string;
3
+ lines: readonly string[];
4
+ }
5
+ export declare function logSdk(...entry: [kind: 'notice', notice: SdkNotice] | [kind: 'debug', message: string, ...details: unknown[]]): void;
6
+ export {};
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dajiaoai/algeo-sdk",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "description": "大角几何内嵌画板 SDK,支持 iframe 挂载与 postMessage 通信",
5
5
  "main": "dist/algeo-sdk.cjs.js",
6
6
  "module": "dist/algeo-sdk.esm.js",