@syntrologie/runtime-sdk 2.7.0-canary.3 → 2.7.0
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/{chunk-T6UFJCU3.js → chunk-UUFNSBJN.js} +8 -47
- package/dist/chunk-UUFNSBJN.js.map +7 -0
- package/dist/editorLoader.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +47 -47
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +8 -47
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +47 -47
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/dist/chunk-T6UFJCU3.js.map +0 -7
package/dist/editorLoader.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface EditorSource {
|
|
|
5
5
|
}
|
|
6
6
|
/** Decoded editor_conf payload (passed through to editor SDK). */
|
|
7
7
|
export interface EditorConf {
|
|
8
|
-
mode:
|
|
8
|
+
mode: string;
|
|
9
9
|
audit_session_id?: string;
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
}
|
|
@@ -30,10 +30,12 @@ export declare const shouldLoadEditor: () => boolean;
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const isAuditMode: () => boolean;
|
|
32
32
|
/**
|
|
33
|
-
* Checks if
|
|
34
|
-
* Returns the mode
|
|
33
|
+
* Checks if the editor SDK should be loaded.
|
|
34
|
+
* Returns the mode string if a valid token and conf exist, null otherwise.
|
|
35
|
+
* The runtime does not gate on specific mode values — the editor SDK
|
|
36
|
+
* decides what to do with the mode.
|
|
35
37
|
*/
|
|
36
|
-
export declare const getActiveSdkMode: () =>
|
|
38
|
+
export declare const getActiveSdkMode: () => string | null;
|
|
37
39
|
export interface EditorLoadOptions {
|
|
38
40
|
editorUrl?: string;
|
|
39
41
|
integrity?: string;
|
package/dist/index.js
CHANGED