@jetprint/editor-sdk 1.2.2 → 1.2.3
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/dist/editor-sdk.es.js +19494 -19478
- package/dist/style.css +1 -1
- package/dist/utils/fileToken.d.ts +4 -2
- package/dist/utils/protection/encryptedModules.generated.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ type FileTokenFetchers = {
|
|
|
6
6
|
fetchFileTokenRefresh?: () => Promise<any>;
|
|
7
7
|
};
|
|
8
8
|
export declare function setFileTokenFetchers(fetchers: FileTokenFetchers | null): void;
|
|
9
|
-
export declare function setExternalFileToken(token: string | null): void;
|
|
9
|
+
export declare function setExternalFileToken(token: string | null, refresher?: (() => Promise<string | null>) | null): void;
|
|
10
10
|
export declare function getExternalFileToken(): string | null;
|
|
11
11
|
export declare function getFileTokenFetchers(): FileTokenFetchers | null;
|
|
12
12
|
export declare function ensureFileToken(): Promise<string | null>;
|
|
@@ -14,5 +14,7 @@ export declare function appendFileTokenToUrl(url: string, token?: string | null)
|
|
|
14
14
|
export declare function appendFileTokenIfPresent(url: string): string;
|
|
15
15
|
export declare function stripFileTokenParam(url: string): string;
|
|
16
16
|
export declare function withFileToken(url: string): Promise<string>;
|
|
17
|
-
export declare function fetchWithFileToken(url: string, options?: RequestInit
|
|
17
|
+
export declare function fetchWithFileToken(url: string, options?: RequestInit, opts?: {
|
|
18
|
+
forceToken?: boolean;
|
|
19
|
+
}): Promise<Response>;
|
|
18
20
|
export {};
|