@claspo/editor 1.0.15 → 1.0.17
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/package.json +3 -3
- package/src/index.js +6 -0
- package/src/types.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claspo/editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Claspo Editor SDK and types",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"rxjs": ">=6.0.0",
|
|
33
|
-
"@claspo/common": "
|
|
34
|
-
"@claspo/document-connector": "
|
|
33
|
+
"@claspo/common": "7.0.8",
|
|
34
|
+
"@claspo/document-connector": "16.2.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"rxjs": { "optional": true }
|
package/src/index.js
CHANGED
|
@@ -112,6 +112,12 @@ exports.ImageLibraryType = Object.freeze({
|
|
|
112
112
|
ICON: "ICON",
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
+
exports.RegistrationType = Object.freeze({
|
|
116
|
+
SHOPIFY: "SHOPIFY",
|
|
117
|
+
APPSUMO: "APPSUMO",
|
|
118
|
+
EMAIL: "EMAIL",
|
|
119
|
+
});
|
|
120
|
+
|
|
115
121
|
exports.AsyncPatternType = Object.freeze({
|
|
116
122
|
PROMISE: "PROMISE",
|
|
117
123
|
OBSERVABLE: "OBSERVABLE",
|
package/src/types.d.ts
CHANGED
|
@@ -232,6 +232,7 @@ export interface WidgetAppearanceI {
|
|
|
232
232
|
/** stringified JSON {id: object} where id is node's id */
|
|
233
233
|
document: string;
|
|
234
234
|
sync: string;
|
|
235
|
+
themeConsumers?: string;
|
|
235
236
|
consents?: object;
|
|
236
237
|
revision?: string;
|
|
237
238
|
publishedRevision?: string;
|
|
@@ -283,6 +284,9 @@ export interface WidgetRevisionAppearanceI {
|
|
|
283
284
|
document: ClDocumentI;
|
|
284
285
|
sync: ClComponentSyncStateI;
|
|
285
286
|
consents?: object;
|
|
287
|
+
themeConsumers?: {
|
|
288
|
+
[key: string]: any;
|
|
289
|
+
};
|
|
286
290
|
}
|
|
287
291
|
export interface CreateWidgetRevisionResponseI {
|
|
288
292
|
uuid: string;
|
|
@@ -381,6 +385,11 @@ export interface UserImagesResponseDtoI {
|
|
|
381
385
|
export interface UserImageItemI {
|
|
382
386
|
url: string;
|
|
383
387
|
}
|
|
388
|
+
declare enum RegistrationType {
|
|
389
|
+
SHOPIFY = "SHOPIFY",
|
|
390
|
+
APPSUMO = "APPSUMO",
|
|
391
|
+
EMAIL = "EMAIL"
|
|
392
|
+
}
|
|
384
393
|
/**
|
|
385
394
|
* Global ClaspoEditor interface exposed on window object.
|
|
386
395
|
* Use `window.ClaspoEditor` to access the editor API.
|
|
@@ -548,6 +557,8 @@ export interface EditorConfigI {
|
|
|
548
557
|
disableLanguageSelect?: boolean;
|
|
549
558
|
/** Prevent users from removing uploaded files */
|
|
550
559
|
disableAbilityToRemoveUploadedFiles?: boolean;
|
|
560
|
+
/** Prefix for component tag name in order to resolve conflicts between different sources of components on the same page. */
|
|
561
|
+
productKeyPrefix?: string;
|
|
551
562
|
}
|
|
552
563
|
/**
|
|
553
564
|
* Configuration for the left panel component selector.
|
|
@@ -585,6 +596,10 @@ export interface AvailableComponentI {
|
|
|
585
596
|
/** Components that will be added together with this one */
|
|
586
597
|
dependentComponentNames?: string[];
|
|
587
598
|
}
|
|
599
|
+
export interface UserContextI {
|
|
600
|
+
domain?: string;
|
|
601
|
+
registrationType?: RegistrationType;
|
|
602
|
+
}
|
|
588
603
|
/**
|
|
589
604
|
* Configuration for external links shown in the editor.
|
|
590
605
|
*/
|