@useinsider/guido 3.19.0-beta.87e26c0 → 3.19.0-beta.ab4fcb3
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 +21 -3
- package/dist/@types/config/schemas.js +78 -57
- package/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +86 -80
- package/dist/components/organisms/base/Toaster.vue2.js +13 -12
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +13 -11
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +78 -57
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js +18 -0
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue2.js +25 -0
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +28 -42
- package/dist/components/organisms/header/EditorActions.vue.js +4 -4
- package/dist/components/organisms/header/EditorActions.vue2.js +23 -25
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +28 -24
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +46 -0
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +47 -0
- package/dist/composables/useActionsApi.js +52 -47
- package/dist/composables/useCodeEditorApi.js +23 -9
- package/dist/composables/useCustomInterfaceAppearance.js +65 -51
- package/dist/composables/useHtmlValidator.js +87 -82
- package/dist/composables/useHttp.js +44 -55
- package/dist/composables/useLegacyStrategyConversion.js +61 -0
- package/dist/composables/useRecommendation.js +40 -35
- package/dist/composables/useStripo.js +30 -30
- package/dist/composables/useToaster.js +14 -20
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useVersionHistoryApi.js +33 -24
- package/dist/config/migrator/index.js +14 -13
- package/dist/config/migrator/recommendationPartnerMigrator.js +50 -0
- package/dist/enums/extensions/recommendationBlock.js +49 -33
- package/dist/extensions/Blocks/Recommendation/block.js +65 -45
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +21 -20
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +103 -90
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +150 -52
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +74 -74
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +274 -92
- package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +42 -0
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +26 -16
- package/dist/extensions/Blocks/Recommendation/utils/partnerScope.js +25 -0
- package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +24 -0
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +21 -12
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +46 -37
- package/dist/src/@types/config/schemas.d.ts +32 -0
- package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useConfig.d.ts +6 -0
- package/dist/src/composables/useLegacyStrategyConversion.d.ts +3 -0
- package/dist/src/config/migrator/index.d.ts +2 -1
- package/dist/src/config/migrator/recommendationPartnerMigrator.d.ts +19 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +7 -1
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +7 -2
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +162 -1
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.d.ts +32 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/partnerScope.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyCommit.d.ts +14 -0
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +4 -0
- package/dist/src/services/recommendationApi.d.ts +2 -1
- package/dist/src/stores/config.d.ts +342 -0
- package/dist/src/stores/onboarding.d.ts +808 -10
- package/dist/src/utils/stripoEditorApi.d.ts +4 -0
- package/dist/static/assets/icons/filled-arrow-rising.svg.js +5 -0
- package/dist/static/assets/icons/line-info.svg.js +5 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +113 -9
- package/dist/static/styles/components/skeleton.css.js +23 -0
- package/dist/stores/config.js +74 -60
- package/dist/stores/onboarding.js +46 -36
- package/dist/stores/unsubscribe.js +3 -3
- package/dist/utils/stripoEditorApi.js +11 -0
- package/dist/utils/templatePreparation.js +55 -55
- package/package.json +2 -1
|
@@ -16,6 +16,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
16
16
|
templateId: string;
|
|
17
17
|
userId: string;
|
|
18
18
|
variationId?: string | undefined;
|
|
19
|
+
campaignId?: string | undefined;
|
|
20
|
+
templateLibraryId?: string | undefined;
|
|
19
21
|
};
|
|
20
22
|
partner: {
|
|
21
23
|
name: string;
|
|
@@ -46,6 +48,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
46
48
|
selectedUnsubscribePages: number[];
|
|
47
49
|
forceRecreate: boolean;
|
|
48
50
|
trackIdCounter: number;
|
|
51
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
49
52
|
migration: {
|
|
50
53
|
recommendationConfigs: {
|
|
51
54
|
[x: string]: {
|
|
@@ -157,6 +160,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
157
160
|
templateId: string;
|
|
158
161
|
userId: string;
|
|
159
162
|
variationId?: string | undefined;
|
|
163
|
+
campaignId?: string | undefined;
|
|
164
|
+
templateLibraryId?: string | undefined;
|
|
160
165
|
};
|
|
161
166
|
partner: {
|
|
162
167
|
name: string;
|
|
@@ -187,6 +192,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
187
192
|
selectedUnsubscribePages: number[];
|
|
188
193
|
forceRecreate: boolean;
|
|
189
194
|
trackIdCounter: number;
|
|
195
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
190
196
|
migration: {
|
|
191
197
|
recommendationConfigs: {
|
|
192
198
|
[x: string]: {
|
|
@@ -298,6 +304,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
298
304
|
templateId: string;
|
|
299
305
|
userId: string;
|
|
300
306
|
variationId?: string | undefined;
|
|
307
|
+
campaignId?: string | undefined;
|
|
308
|
+
templateLibraryId?: string | undefined;
|
|
301
309
|
};
|
|
302
310
|
partner: {
|
|
303
311
|
name: string;
|
|
@@ -328,6 +336,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
328
336
|
selectedUnsubscribePages: number[];
|
|
329
337
|
forceRecreate: boolean;
|
|
330
338
|
trackIdCounter: number;
|
|
339
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
331
340
|
migration: {
|
|
332
341
|
recommendationConfigs: {
|
|
333
342
|
[x: string]: {
|
|
@@ -439,6 +448,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
439
448
|
templateId: string;
|
|
440
449
|
userId: string;
|
|
441
450
|
variationId?: string | undefined;
|
|
451
|
+
campaignId?: string | undefined;
|
|
452
|
+
templateLibraryId?: string | undefined;
|
|
442
453
|
};
|
|
443
454
|
partner: {
|
|
444
455
|
name: string;
|
|
@@ -469,6 +480,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
469
480
|
selectedUnsubscribePages: number[];
|
|
470
481
|
forceRecreate: boolean;
|
|
471
482
|
trackIdCounter: number;
|
|
483
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
472
484
|
migration: {
|
|
473
485
|
recommendationConfigs: {
|
|
474
486
|
[x: string]: {
|
|
@@ -580,6 +592,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
580
592
|
templateId: string;
|
|
581
593
|
userId: string;
|
|
582
594
|
variationId?: string | undefined;
|
|
595
|
+
campaignId?: string | undefined;
|
|
596
|
+
templateLibraryId?: string | undefined;
|
|
583
597
|
};
|
|
584
598
|
partner: {
|
|
585
599
|
name: string;
|
|
@@ -610,6 +624,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
610
624
|
selectedUnsubscribePages: number[];
|
|
611
625
|
forceRecreate: boolean;
|
|
612
626
|
trackIdCounter: number;
|
|
627
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
613
628
|
migration: {
|
|
614
629
|
recommendationConfigs: {
|
|
615
630
|
[x: string]: {
|
|
@@ -721,6 +736,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
721
736
|
templateId: string;
|
|
722
737
|
userId: string;
|
|
723
738
|
variationId?: string | undefined;
|
|
739
|
+
campaignId?: string | undefined;
|
|
740
|
+
templateLibraryId?: string | undefined;
|
|
724
741
|
};
|
|
725
742
|
partner: {
|
|
726
743
|
name: string;
|
|
@@ -751,6 +768,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
751
768
|
selectedUnsubscribePages: number[];
|
|
752
769
|
forceRecreate: boolean;
|
|
753
770
|
trackIdCounter: number;
|
|
771
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
754
772
|
migration: {
|
|
755
773
|
recommendationConfigs: {
|
|
756
774
|
[x: string]: {
|
|
@@ -862,6 +880,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
862
880
|
templateId: string;
|
|
863
881
|
userId: string;
|
|
864
882
|
variationId?: string | undefined;
|
|
883
|
+
campaignId?: string | undefined;
|
|
884
|
+
templateLibraryId?: string | undefined;
|
|
865
885
|
};
|
|
866
886
|
partner: {
|
|
867
887
|
name: string;
|
|
@@ -892,6 +912,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
892
912
|
selectedUnsubscribePages: number[];
|
|
893
913
|
forceRecreate: boolean;
|
|
894
914
|
trackIdCounter: number;
|
|
915
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
895
916
|
migration: {
|
|
896
917
|
recommendationConfigs: {
|
|
897
918
|
[x: string]: {
|
|
@@ -1003,6 +1024,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1003
1024
|
templateId: string;
|
|
1004
1025
|
userId: string;
|
|
1005
1026
|
variationId?: string | undefined;
|
|
1027
|
+
campaignId?: string | undefined;
|
|
1028
|
+
templateLibraryId?: string | undefined;
|
|
1006
1029
|
};
|
|
1007
1030
|
partner: {
|
|
1008
1031
|
name: string;
|
|
@@ -1033,6 +1056,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1033
1056
|
selectedUnsubscribePages: number[];
|
|
1034
1057
|
forceRecreate: boolean;
|
|
1035
1058
|
trackIdCounter: number;
|
|
1059
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1036
1060
|
migration: {
|
|
1037
1061
|
recommendationConfigs: {
|
|
1038
1062
|
[x: string]: {
|
|
@@ -1144,6 +1168,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1144
1168
|
templateId: string;
|
|
1145
1169
|
userId: string;
|
|
1146
1170
|
variationId?: string | undefined;
|
|
1171
|
+
campaignId?: string | undefined;
|
|
1172
|
+
templateLibraryId?: string | undefined;
|
|
1147
1173
|
};
|
|
1148
1174
|
partner: {
|
|
1149
1175
|
name: string;
|
|
@@ -1174,6 +1200,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1174
1200
|
selectedUnsubscribePages: number[];
|
|
1175
1201
|
forceRecreate: boolean;
|
|
1176
1202
|
trackIdCounter: number;
|
|
1203
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1177
1204
|
migration: {
|
|
1178
1205
|
recommendationConfigs: {
|
|
1179
1206
|
[x: string]: {
|
|
@@ -1285,6 +1312,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1285
1312
|
templateId: string;
|
|
1286
1313
|
userId: string;
|
|
1287
1314
|
variationId?: string | undefined;
|
|
1315
|
+
campaignId?: string | undefined;
|
|
1316
|
+
templateLibraryId?: string | undefined;
|
|
1288
1317
|
};
|
|
1289
1318
|
partner: {
|
|
1290
1319
|
name: string;
|
|
@@ -1315,6 +1344,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1315
1344
|
selectedUnsubscribePages: number[];
|
|
1316
1345
|
forceRecreate: boolean;
|
|
1317
1346
|
trackIdCounter: number;
|
|
1347
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1318
1348
|
migration: {
|
|
1319
1349
|
recommendationConfigs: {
|
|
1320
1350
|
[x: string]: {
|
|
@@ -1426,6 +1456,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1426
1456
|
templateId: string;
|
|
1427
1457
|
userId: string;
|
|
1428
1458
|
variationId?: string | undefined;
|
|
1459
|
+
campaignId?: string | undefined;
|
|
1460
|
+
templateLibraryId?: string | undefined;
|
|
1429
1461
|
};
|
|
1430
1462
|
partner: {
|
|
1431
1463
|
name: string;
|
|
@@ -1456,6 +1488,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1456
1488
|
selectedUnsubscribePages: number[];
|
|
1457
1489
|
forceRecreate: boolean;
|
|
1458
1490
|
trackIdCounter: number;
|
|
1491
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1459
1492
|
migration: {
|
|
1460
1493
|
recommendationConfigs: {
|
|
1461
1494
|
[x: string]: {
|
|
@@ -1567,6 +1600,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1567
1600
|
templateId: string;
|
|
1568
1601
|
userId: string;
|
|
1569
1602
|
variationId?: string | undefined;
|
|
1603
|
+
campaignId?: string | undefined;
|
|
1604
|
+
templateLibraryId?: string | undefined;
|
|
1570
1605
|
};
|
|
1571
1606
|
partner: {
|
|
1572
1607
|
name: string;
|
|
@@ -1597,6 +1632,295 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1597
1632
|
selectedUnsubscribePages: number[];
|
|
1598
1633
|
forceRecreate: boolean;
|
|
1599
1634
|
trackIdCounter: number;
|
|
1635
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1636
|
+
migration: {
|
|
1637
|
+
recommendationConfigs: {
|
|
1638
|
+
[x: string]: {
|
|
1639
|
+
id?: number | undefined;
|
|
1640
|
+
decimalCount?: string | number | undefined;
|
|
1641
|
+
productIds?: unknown[] | undefined;
|
|
1642
|
+
sendProductRequestFlag?: boolean | undefined;
|
|
1643
|
+
shuffleProducts?: boolean | undefined;
|
|
1644
|
+
filters?: unknown[] | undefined;
|
|
1645
|
+
currency?: string | undefined;
|
|
1646
|
+
currencySettings?: unknown;
|
|
1647
|
+
language?: string | undefined;
|
|
1648
|
+
strategy?: string | undefined;
|
|
1649
|
+
recommendedProducts?: unknown[] | undefined;
|
|
1650
|
+
cardsInRow?: number | undefined;
|
|
1651
|
+
mobileRightPadding?: number | undefined;
|
|
1652
|
+
mobileLeftPadding?: number | undefined;
|
|
1653
|
+
unresponsive?: boolean | undefined;
|
|
1654
|
+
orientation?: string | undefined;
|
|
1655
|
+
textTrimming?: boolean | undefined;
|
|
1656
|
+
blockType?: string | undefined;
|
|
1657
|
+
size?: string | number | undefined;
|
|
1658
|
+
verticalResponsiveness?: boolean | undefined;
|
|
1659
|
+
isPriceMovedToNextLine?: boolean | undefined;
|
|
1660
|
+
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
1661
|
+
} & {
|
|
1662
|
+
[key: string]: unknown;
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
editor: {
|
|
1668
|
+
locale: string;
|
|
1669
|
+
translationsPath: string;
|
|
1670
|
+
migrationDate: number;
|
|
1671
|
+
emailHeader: {
|
|
1672
|
+
senderName: string;
|
|
1673
|
+
subject: string;
|
|
1674
|
+
};
|
|
1675
|
+
savedModulesFolderName: string;
|
|
1676
|
+
defaultModulesFolderName: string;
|
|
1677
|
+
};
|
|
1678
|
+
ui: {
|
|
1679
|
+
showHeader: boolean;
|
|
1680
|
+
backButtonLabel?: string | undefined;
|
|
1681
|
+
};
|
|
1682
|
+
features: {
|
|
1683
|
+
dynamicContent: boolean;
|
|
1684
|
+
saveAsTemplate: boolean;
|
|
1685
|
+
versionHistory: boolean;
|
|
1686
|
+
testMessage: boolean;
|
|
1687
|
+
displayConditions: boolean;
|
|
1688
|
+
unsubscribe: boolean;
|
|
1689
|
+
modulesDisabled: boolean;
|
|
1690
|
+
liquidSyntax: boolean;
|
|
1691
|
+
autosave: boolean;
|
|
1692
|
+
allowlistEnabled: boolean;
|
|
1693
|
+
linkTrackingIds: boolean;
|
|
1694
|
+
reusableRecommendationStrategy: boolean;
|
|
1695
|
+
};
|
|
1696
|
+
blocks: {
|
|
1697
|
+
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
1698
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
1699
|
+
};
|
|
1700
|
+
compiler: {
|
|
1701
|
+
customRules: ({
|
|
1702
|
+
type: "replace";
|
|
1703
|
+
search: string;
|
|
1704
|
+
replacement: string;
|
|
1705
|
+
replaceAll?: boolean | undefined;
|
|
1706
|
+
id: string;
|
|
1707
|
+
description?: string | undefined;
|
|
1708
|
+
priority: number;
|
|
1709
|
+
} | {
|
|
1710
|
+
type: "regex";
|
|
1711
|
+
pattern: string;
|
|
1712
|
+
replacement: string;
|
|
1713
|
+
flags?: string | undefined;
|
|
1714
|
+
id: string;
|
|
1715
|
+
description?: string | undefined;
|
|
1716
|
+
priority: number;
|
|
1717
|
+
} | {
|
|
1718
|
+
type: "remove";
|
|
1719
|
+
targets: string[];
|
|
1720
|
+
id: string;
|
|
1721
|
+
description?: string | undefined;
|
|
1722
|
+
priority: number;
|
|
1723
|
+
} | {
|
|
1724
|
+
type: "custom";
|
|
1725
|
+
processor: (html: string) => string;
|
|
1726
|
+
id: string;
|
|
1727
|
+
description?: string | undefined;
|
|
1728
|
+
priority: number;
|
|
1729
|
+
})[];
|
|
1730
|
+
ignoreDefaultRules: boolean;
|
|
1731
|
+
};
|
|
1732
|
+
callbacks: {
|
|
1733
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1734
|
+
};
|
|
1735
|
+
} | null;
|
|
1736
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1737
|
+
/**
|
|
1738
|
+
* Get the campaign ID
|
|
1739
|
+
*/
|
|
1740
|
+
campaignId: (state: {
|
|
1741
|
+
initialized: boolean;
|
|
1742
|
+
config: {
|
|
1743
|
+
identity: {
|
|
1744
|
+
templateId: string;
|
|
1745
|
+
userId: string;
|
|
1746
|
+
variationId?: string | undefined;
|
|
1747
|
+
campaignId?: string | undefined;
|
|
1748
|
+
templateLibraryId?: string | undefined;
|
|
1749
|
+
};
|
|
1750
|
+
partner: {
|
|
1751
|
+
name: string;
|
|
1752
|
+
productType: 60 | 49 | 97;
|
|
1753
|
+
messageType: 1 | 2;
|
|
1754
|
+
username: string;
|
|
1755
|
+
fallbackFont?: {
|
|
1756
|
+
name: string;
|
|
1757
|
+
family: string;
|
|
1758
|
+
} | undefined;
|
|
1759
|
+
};
|
|
1760
|
+
template: {
|
|
1761
|
+
html: string;
|
|
1762
|
+
css: string;
|
|
1763
|
+
preselectedDynamicContent: {
|
|
1764
|
+
text: string;
|
|
1765
|
+
value: string;
|
|
1766
|
+
fallback?: string | undefined;
|
|
1767
|
+
format?: {
|
|
1768
|
+
key: string;
|
|
1769
|
+
value: string;
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
}[];
|
|
1772
|
+
dynamicContentList: {
|
|
1773
|
+
[x: string]: import("../library").DynamicContentNode[];
|
|
1774
|
+
};
|
|
1775
|
+
customFieldAttributes: string[];
|
|
1776
|
+
selectedUnsubscribePages: number[];
|
|
1777
|
+
forceRecreate: boolean;
|
|
1778
|
+
trackIdCounter: number;
|
|
1779
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1780
|
+
migration: {
|
|
1781
|
+
recommendationConfigs: {
|
|
1782
|
+
[x: string]: {
|
|
1783
|
+
id?: number | undefined;
|
|
1784
|
+
decimalCount?: string | number | undefined;
|
|
1785
|
+
productIds?: unknown[] | undefined;
|
|
1786
|
+
sendProductRequestFlag?: boolean | undefined;
|
|
1787
|
+
shuffleProducts?: boolean | undefined;
|
|
1788
|
+
filters?: unknown[] | undefined;
|
|
1789
|
+
currency?: string | undefined;
|
|
1790
|
+
currencySettings?: unknown;
|
|
1791
|
+
language?: string | undefined;
|
|
1792
|
+
strategy?: string | undefined;
|
|
1793
|
+
recommendedProducts?: unknown[] | undefined;
|
|
1794
|
+
cardsInRow?: number | undefined;
|
|
1795
|
+
mobileRightPadding?: number | undefined;
|
|
1796
|
+
mobileLeftPadding?: number | undefined;
|
|
1797
|
+
unresponsive?: boolean | undefined;
|
|
1798
|
+
orientation?: string | undefined;
|
|
1799
|
+
textTrimming?: boolean | undefined;
|
|
1800
|
+
blockType?: string | undefined;
|
|
1801
|
+
size?: string | number | undefined;
|
|
1802
|
+
verticalResponsiveness?: boolean | undefined;
|
|
1803
|
+
isPriceMovedToNextLine?: boolean | undefined;
|
|
1804
|
+
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
1805
|
+
} & {
|
|
1806
|
+
[key: string]: unknown;
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
editor: {
|
|
1812
|
+
locale: string;
|
|
1813
|
+
translationsPath: string;
|
|
1814
|
+
migrationDate: number;
|
|
1815
|
+
emailHeader: {
|
|
1816
|
+
senderName: string;
|
|
1817
|
+
subject: string;
|
|
1818
|
+
};
|
|
1819
|
+
savedModulesFolderName: string;
|
|
1820
|
+
defaultModulesFolderName: string;
|
|
1821
|
+
};
|
|
1822
|
+
ui: {
|
|
1823
|
+
showHeader: boolean;
|
|
1824
|
+
backButtonLabel?: string | undefined;
|
|
1825
|
+
};
|
|
1826
|
+
features: {
|
|
1827
|
+
dynamicContent: boolean;
|
|
1828
|
+
saveAsTemplate: boolean;
|
|
1829
|
+
versionHistory: boolean;
|
|
1830
|
+
testMessage: boolean;
|
|
1831
|
+
displayConditions: boolean;
|
|
1832
|
+
unsubscribe: boolean;
|
|
1833
|
+
modulesDisabled: boolean;
|
|
1834
|
+
liquidSyntax: boolean;
|
|
1835
|
+
autosave: boolean;
|
|
1836
|
+
allowlistEnabled: boolean;
|
|
1837
|
+
linkTrackingIds: boolean;
|
|
1838
|
+
reusableRecommendationStrategy: boolean;
|
|
1839
|
+
};
|
|
1840
|
+
blocks: {
|
|
1841
|
+
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
1842
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
1843
|
+
};
|
|
1844
|
+
compiler: {
|
|
1845
|
+
customRules: ({
|
|
1846
|
+
type: "replace";
|
|
1847
|
+
search: string;
|
|
1848
|
+
replacement: string;
|
|
1849
|
+
replaceAll?: boolean | undefined;
|
|
1850
|
+
id: string;
|
|
1851
|
+
description?: string | undefined;
|
|
1852
|
+
priority: number;
|
|
1853
|
+
} | {
|
|
1854
|
+
type: "regex";
|
|
1855
|
+
pattern: string;
|
|
1856
|
+
replacement: string;
|
|
1857
|
+
flags?: string | undefined;
|
|
1858
|
+
id: string;
|
|
1859
|
+
description?: string | undefined;
|
|
1860
|
+
priority: number;
|
|
1861
|
+
} | {
|
|
1862
|
+
type: "remove";
|
|
1863
|
+
targets: string[];
|
|
1864
|
+
id: string;
|
|
1865
|
+
description?: string | undefined;
|
|
1866
|
+
priority: number;
|
|
1867
|
+
} | {
|
|
1868
|
+
type: "custom";
|
|
1869
|
+
processor: (html: string) => string;
|
|
1870
|
+
id: string;
|
|
1871
|
+
description?: string | undefined;
|
|
1872
|
+
priority: number;
|
|
1873
|
+
})[];
|
|
1874
|
+
ignoreDefaultRules: boolean;
|
|
1875
|
+
};
|
|
1876
|
+
callbacks: {
|
|
1877
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1878
|
+
};
|
|
1879
|
+
} | null;
|
|
1880
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1881
|
+
/**
|
|
1882
|
+
* Get the template-library ID of the host template
|
|
1883
|
+
*/
|
|
1884
|
+
templateLibraryId: (state: {
|
|
1885
|
+
initialized: boolean;
|
|
1886
|
+
config: {
|
|
1887
|
+
identity: {
|
|
1888
|
+
templateId: string;
|
|
1889
|
+
userId: string;
|
|
1890
|
+
variationId?: string | undefined;
|
|
1891
|
+
campaignId?: string | undefined;
|
|
1892
|
+
templateLibraryId?: string | undefined;
|
|
1893
|
+
};
|
|
1894
|
+
partner: {
|
|
1895
|
+
name: string;
|
|
1896
|
+
productType: 60 | 49 | 97;
|
|
1897
|
+
messageType: 1 | 2;
|
|
1898
|
+
username: string;
|
|
1899
|
+
fallbackFont?: {
|
|
1900
|
+
name: string;
|
|
1901
|
+
family: string;
|
|
1902
|
+
} | undefined;
|
|
1903
|
+
};
|
|
1904
|
+
template: {
|
|
1905
|
+
html: string;
|
|
1906
|
+
css: string;
|
|
1907
|
+
preselectedDynamicContent: {
|
|
1908
|
+
text: string;
|
|
1909
|
+
value: string;
|
|
1910
|
+
fallback?: string | undefined;
|
|
1911
|
+
format?: {
|
|
1912
|
+
key: string;
|
|
1913
|
+
value: string;
|
|
1914
|
+
} | undefined;
|
|
1915
|
+
}[];
|
|
1916
|
+
dynamicContentList: {
|
|
1917
|
+
[x: string]: import("../library").DynamicContentNode[];
|
|
1918
|
+
};
|
|
1919
|
+
customFieldAttributes: string[];
|
|
1920
|
+
selectedUnsubscribePages: number[];
|
|
1921
|
+
forceRecreate: boolean;
|
|
1922
|
+
trackIdCounter: number;
|
|
1923
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1600
1924
|
migration: {
|
|
1601
1925
|
recommendationConfigs: {
|
|
1602
1926
|
[x: string]: {
|
|
@@ -1708,6 +2032,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1708
2032
|
templateId: string;
|
|
1709
2033
|
userId: string;
|
|
1710
2034
|
variationId?: string | undefined;
|
|
2035
|
+
campaignId?: string | undefined;
|
|
2036
|
+
templateLibraryId?: string | undefined;
|
|
1711
2037
|
};
|
|
1712
2038
|
partner: {
|
|
1713
2039
|
name: string;
|
|
@@ -1738,6 +2064,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1738
2064
|
selectedUnsubscribePages: number[];
|
|
1739
2065
|
forceRecreate: boolean;
|
|
1740
2066
|
trackIdCounter: number;
|
|
2067
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1741
2068
|
migration: {
|
|
1742
2069
|
recommendationConfigs: {
|
|
1743
2070
|
[x: string]: {
|
|
@@ -1849,6 +2176,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1849
2176
|
templateId: string;
|
|
1850
2177
|
userId: string;
|
|
1851
2178
|
variationId?: string | undefined;
|
|
2179
|
+
campaignId?: string | undefined;
|
|
2180
|
+
templateLibraryId?: string | undefined;
|
|
1852
2181
|
};
|
|
1853
2182
|
partner: {
|
|
1854
2183
|
name: string;
|
|
@@ -1879,6 +2208,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1879
2208
|
selectedUnsubscribePages: number[];
|
|
1880
2209
|
forceRecreate: boolean;
|
|
1881
2210
|
trackIdCounter: number;
|
|
2211
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
1882
2212
|
migration: {
|
|
1883
2213
|
recommendationConfigs: {
|
|
1884
2214
|
[x: string]: {
|
|
@@ -1990,6 +2320,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1990
2320
|
templateId: string;
|
|
1991
2321
|
userId: string;
|
|
1992
2322
|
variationId?: string | undefined;
|
|
2323
|
+
campaignId?: string | undefined;
|
|
2324
|
+
templateLibraryId?: string | undefined;
|
|
1993
2325
|
};
|
|
1994
2326
|
partner: {
|
|
1995
2327
|
name: string;
|
|
@@ -2020,6 +2352,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2020
2352
|
selectedUnsubscribePages: number[];
|
|
2021
2353
|
forceRecreate: boolean;
|
|
2022
2354
|
trackIdCounter: number;
|
|
2355
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2023
2356
|
migration: {
|
|
2024
2357
|
recommendationConfigs: {
|
|
2025
2358
|
[x: string]: {
|
|
@@ -2131,6 +2464,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2131
2464
|
templateId: string;
|
|
2132
2465
|
userId: string;
|
|
2133
2466
|
variationId?: string | undefined;
|
|
2467
|
+
campaignId?: string | undefined;
|
|
2468
|
+
templateLibraryId?: string | undefined;
|
|
2134
2469
|
};
|
|
2135
2470
|
partner: {
|
|
2136
2471
|
name: string;
|
|
@@ -2161,6 +2496,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2161
2496
|
selectedUnsubscribePages: number[];
|
|
2162
2497
|
forceRecreate: boolean;
|
|
2163
2498
|
trackIdCounter: number;
|
|
2499
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2164
2500
|
migration: {
|
|
2165
2501
|
recommendationConfigs: {
|
|
2166
2502
|
[x: string]: {
|
|
@@ -2272,6 +2608,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2272
2608
|
templateId: string;
|
|
2273
2609
|
userId: string;
|
|
2274
2610
|
variationId?: string | undefined;
|
|
2611
|
+
campaignId?: string | undefined;
|
|
2612
|
+
templateLibraryId?: string | undefined;
|
|
2275
2613
|
};
|
|
2276
2614
|
partner: {
|
|
2277
2615
|
name: string;
|
|
@@ -2302,6 +2640,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2302
2640
|
selectedUnsubscribePages: number[];
|
|
2303
2641
|
forceRecreate: boolean;
|
|
2304
2642
|
trackIdCounter: number;
|
|
2643
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2305
2644
|
migration: {
|
|
2306
2645
|
recommendationConfigs: {
|
|
2307
2646
|
[x: string]: {
|
|
@@ -2415,6 +2754,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2415
2754
|
templateId: string;
|
|
2416
2755
|
userId: string;
|
|
2417
2756
|
variationId?: string | undefined;
|
|
2757
|
+
campaignId?: string | undefined;
|
|
2758
|
+
templateLibraryId?: string | undefined;
|
|
2418
2759
|
};
|
|
2419
2760
|
partner: {
|
|
2420
2761
|
name: string;
|
|
@@ -2445,6 +2786,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2445
2786
|
selectedUnsubscribePages: number[];
|
|
2446
2787
|
forceRecreate: boolean;
|
|
2447
2788
|
trackIdCounter: number;
|
|
2789
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2448
2790
|
migration: {
|
|
2449
2791
|
recommendationConfigs: {
|
|
2450
2792
|
[x: string]: {
|