@useinsider/guido 3.23.0 → 3.24.0-beta.adaba3e
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 +2 -0
- package/dist/@types/config/schemas.js +43 -40
- package/dist/@types/display-condition.js +25 -0
- package/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +113 -96
- package/dist/components/organisms/AutoSaveController.vue2.js +20 -10
- package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +18 -0
- package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +41 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +30 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +81 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +34 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +63 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +17 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +22 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +58 -73
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +99 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +11 -10
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +60 -35
- package/dist/composables/useAccessibilityApi.js +51 -0
- package/dist/composables/useBlocksConfig.js +31 -20
- package/dist/composables/useCustomInterfaceAppearance.js +42 -41
- package/dist/composables/useDisplayConditions.js +117 -0
- package/dist/composables/useTranslations.js +2 -1
- package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
- package/dist/config/i18n/en/labels.json.js +36 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/enums/academy.js +1 -0
- package/dist/enums/display-condition.js +12 -0
- package/dist/extensions/DisplayConditions/bridge.js +25 -0
- package/dist/extensions/DisplayConditions/constants.js +17 -0
- package/dist/extensions/DisplayConditions/control.js +200 -0
- package/dist/extensions/DisplayConditions/display-conditions.css.js +201 -0
- package/dist/extensions/DisplayConditions/extension.js +28 -0
- package/dist/extensions/DisplayConditions/iconsRegistry.js +20 -0
- package/dist/extensions/DisplayConditions/library.js +30 -0
- package/dist/extensions/DisplayConditions/settingsPanel.js +17 -0
- package/dist/extensions/LinkTracking/extension.js +17 -0
- package/dist/extensions/LinkTracking/writer.js +41 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -92
- package/dist/node_modules/valibot/dist/index.js +297 -261
- package/dist/package.json.js +4 -4
- package/dist/services/displayConditionApi.js +39 -0
- package/dist/sprite.svg +10 -0
- package/dist/src/@types/config/schemas.d.ts +6 -0
- package/dist/src/@types/display-condition.d.ts +59 -0
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +19 -1
- package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +43 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionsHost.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/AutoSaveStatus.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -19
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -19
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +13 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useDisplayConditions.d.ts +18 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/enums/display-condition.d.ts +15 -0
- package/dist/src/extensions/DisplayConditions/bridge.d.ts +7 -0
- package/dist/src/extensions/DisplayConditions/constants.d.ts +14 -0
- package/dist/src/extensions/DisplayConditions/control.d.ts +25 -0
- package/dist/src/extensions/DisplayConditions/extension.d.ts +2 -0
- package/dist/src/extensions/DisplayConditions/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/DisplayConditions/library.d.ts +8 -0
- package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +5 -0
- package/dist/src/extensions/LinkTracking/extension.d.ts +2 -0
- package/dist/src/extensions/LinkTracking/writer.d.ts +13 -0
- package/dist/src/mock/api/display-conditions.d.ts +2 -0
- package/dist/src/services/displayConditionApi.d.ts +8 -0
- package/dist/src/stores/autosave.d.ts +73 -1
- package/dist/src/stores/config.d.ts +187 -0
- package/dist/src/stores/display-condition.d.ts +84 -0
- package/dist/src/stores/editor.d.ts +109 -0
- package/dist/src/stores/onboarding.d.ts +966 -35
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/displayCondition.d.ts +11 -0
- package/dist/src/utils/linkTrackingIds.d.ts +22 -5
- package/dist/src/utils/protectTableText.d.ts +2 -0
- package/dist/src/utils/templatePreparation.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +5 -8
- package/dist/static/stripo-runtime-manifest.json.js +1 -1
- package/dist/static/styles/components/accessibility.css.js +234 -0
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/stores/autosave.js +12 -7
- package/dist/stores/config.js +13 -6
- package/dist/stores/display-condition.js +29 -0
- package/dist/stores/editor.js +8 -3
- package/dist/stores/onboarding.js +48 -22
- package/dist/utils/displayCondition.js +26 -0
- package/dist/utils/linkTrackingIds.js +82 -48
- package/dist/utils/pairProductVariables.js +30 -29
- package/dist/utils/protectTableText.js +22 -0
- package/dist/utils/templatePreparation.js +67 -57
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +2 -2
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /package/dist/src/components/organisms/{header/AutoSaveToggle.vue.d.ts → display-conditions/DisplayConditionCreateDrawer.vue.d.ts} +0 -0
|
@@ -94,6 +94,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
94
94
|
ui: {
|
|
95
95
|
showHeader: boolean;
|
|
96
96
|
backButtonLabel?: string | undefined;
|
|
97
|
+
externalDisplayConditions: boolean;
|
|
97
98
|
};
|
|
98
99
|
features: {
|
|
99
100
|
dynamicContent: boolean;
|
|
@@ -105,6 +106,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
105
106
|
modulesDisabled: boolean;
|
|
106
107
|
liquidSyntax: boolean;
|
|
107
108
|
autosave: boolean;
|
|
109
|
+
accessibilityTesting: boolean;
|
|
108
110
|
allowlistEnabled: boolean;
|
|
109
111
|
linkTrackingIds: boolean;
|
|
110
112
|
allowSaveWithErrors: boolean;
|
|
@@ -239,6 +241,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
239
241
|
ui: {
|
|
240
242
|
showHeader: boolean;
|
|
241
243
|
backButtonLabel?: string | undefined;
|
|
244
|
+
externalDisplayConditions: boolean;
|
|
242
245
|
};
|
|
243
246
|
features: {
|
|
244
247
|
dynamicContent: boolean;
|
|
@@ -250,6 +253,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
250
253
|
modulesDisabled: boolean;
|
|
251
254
|
liquidSyntax: boolean;
|
|
252
255
|
autosave: boolean;
|
|
256
|
+
accessibilityTesting: boolean;
|
|
253
257
|
allowlistEnabled: boolean;
|
|
254
258
|
linkTrackingIds: boolean;
|
|
255
259
|
allowSaveWithErrors: boolean;
|
|
@@ -384,6 +388,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
384
388
|
ui: {
|
|
385
389
|
showHeader: boolean;
|
|
386
390
|
backButtonLabel?: string | undefined;
|
|
391
|
+
externalDisplayConditions: boolean;
|
|
387
392
|
};
|
|
388
393
|
features: {
|
|
389
394
|
dynamicContent: boolean;
|
|
@@ -395,6 +400,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
395
400
|
modulesDisabled: boolean;
|
|
396
401
|
liquidSyntax: boolean;
|
|
397
402
|
autosave: boolean;
|
|
403
|
+
accessibilityTesting: boolean;
|
|
398
404
|
allowlistEnabled: boolean;
|
|
399
405
|
linkTrackingIds: boolean;
|
|
400
406
|
allowSaveWithErrors: boolean;
|
|
@@ -529,6 +535,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
529
535
|
ui: {
|
|
530
536
|
showHeader: boolean;
|
|
531
537
|
backButtonLabel?: string | undefined;
|
|
538
|
+
externalDisplayConditions: boolean;
|
|
532
539
|
};
|
|
533
540
|
features: {
|
|
534
541
|
dynamicContent: boolean;
|
|
@@ -540,6 +547,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
540
547
|
modulesDisabled: boolean;
|
|
541
548
|
liquidSyntax: boolean;
|
|
542
549
|
autosave: boolean;
|
|
550
|
+
accessibilityTesting: boolean;
|
|
543
551
|
allowlistEnabled: boolean;
|
|
544
552
|
linkTrackingIds: boolean;
|
|
545
553
|
allowSaveWithErrors: boolean;
|
|
@@ -674,6 +682,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
674
682
|
ui: {
|
|
675
683
|
showHeader: boolean;
|
|
676
684
|
backButtonLabel?: string | undefined;
|
|
685
|
+
externalDisplayConditions: boolean;
|
|
677
686
|
};
|
|
678
687
|
features: {
|
|
679
688
|
dynamicContent: boolean;
|
|
@@ -685,6 +694,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
685
694
|
modulesDisabled: boolean;
|
|
686
695
|
liquidSyntax: boolean;
|
|
687
696
|
autosave: boolean;
|
|
697
|
+
accessibilityTesting: boolean;
|
|
688
698
|
allowlistEnabled: boolean;
|
|
689
699
|
linkTrackingIds: boolean;
|
|
690
700
|
allowSaveWithErrors: boolean;
|
|
@@ -819,6 +829,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
819
829
|
ui: {
|
|
820
830
|
showHeader: boolean;
|
|
821
831
|
backButtonLabel?: string | undefined;
|
|
832
|
+
externalDisplayConditions: boolean;
|
|
822
833
|
};
|
|
823
834
|
features: {
|
|
824
835
|
dynamicContent: boolean;
|
|
@@ -830,6 +841,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
830
841
|
modulesDisabled: boolean;
|
|
831
842
|
liquidSyntax: boolean;
|
|
832
843
|
autosave: boolean;
|
|
844
|
+
accessibilityTesting: boolean;
|
|
833
845
|
allowlistEnabled: boolean;
|
|
834
846
|
linkTrackingIds: boolean;
|
|
835
847
|
allowSaveWithErrors: boolean;
|
|
@@ -964,6 +976,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
964
976
|
ui: {
|
|
965
977
|
showHeader: boolean;
|
|
966
978
|
backButtonLabel?: string | undefined;
|
|
979
|
+
externalDisplayConditions: boolean;
|
|
967
980
|
};
|
|
968
981
|
features: {
|
|
969
982
|
dynamicContent: boolean;
|
|
@@ -975,6 +988,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
975
988
|
modulesDisabled: boolean;
|
|
976
989
|
liquidSyntax: boolean;
|
|
977
990
|
autosave: boolean;
|
|
991
|
+
accessibilityTesting: boolean;
|
|
978
992
|
allowlistEnabled: boolean;
|
|
979
993
|
linkTrackingIds: boolean;
|
|
980
994
|
allowSaveWithErrors: boolean;
|
|
@@ -1109,6 +1123,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1109
1123
|
ui: {
|
|
1110
1124
|
showHeader: boolean;
|
|
1111
1125
|
backButtonLabel?: string | undefined;
|
|
1126
|
+
externalDisplayConditions: boolean;
|
|
1112
1127
|
};
|
|
1113
1128
|
features: {
|
|
1114
1129
|
dynamicContent: boolean;
|
|
@@ -1120,6 +1135,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1120
1135
|
modulesDisabled: boolean;
|
|
1121
1136
|
liquidSyntax: boolean;
|
|
1122
1137
|
autosave: boolean;
|
|
1138
|
+
accessibilityTesting: boolean;
|
|
1123
1139
|
allowlistEnabled: boolean;
|
|
1124
1140
|
linkTrackingIds: boolean;
|
|
1125
1141
|
allowSaveWithErrors: boolean;
|
|
@@ -1254,6 +1270,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1254
1270
|
ui: {
|
|
1255
1271
|
showHeader: boolean;
|
|
1256
1272
|
backButtonLabel?: string | undefined;
|
|
1273
|
+
externalDisplayConditions: boolean;
|
|
1257
1274
|
};
|
|
1258
1275
|
features: {
|
|
1259
1276
|
dynamicContent: boolean;
|
|
@@ -1265,6 +1282,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1265
1282
|
modulesDisabled: boolean;
|
|
1266
1283
|
liquidSyntax: boolean;
|
|
1267
1284
|
autosave: boolean;
|
|
1285
|
+
accessibilityTesting: boolean;
|
|
1268
1286
|
allowlistEnabled: boolean;
|
|
1269
1287
|
linkTrackingIds: boolean;
|
|
1270
1288
|
allowSaveWithErrors: boolean;
|
|
@@ -1399,6 +1417,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1399
1417
|
ui: {
|
|
1400
1418
|
showHeader: boolean;
|
|
1401
1419
|
backButtonLabel?: string | undefined;
|
|
1420
|
+
externalDisplayConditions: boolean;
|
|
1402
1421
|
};
|
|
1403
1422
|
features: {
|
|
1404
1423
|
dynamicContent: boolean;
|
|
@@ -1410,6 +1429,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1410
1429
|
modulesDisabled: boolean;
|
|
1411
1430
|
liquidSyntax: boolean;
|
|
1412
1431
|
autosave: boolean;
|
|
1432
|
+
accessibilityTesting: boolean;
|
|
1413
1433
|
allowlistEnabled: boolean;
|
|
1414
1434
|
linkTrackingIds: boolean;
|
|
1415
1435
|
allowSaveWithErrors: boolean;
|
|
@@ -1544,6 +1564,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1544
1564
|
ui: {
|
|
1545
1565
|
showHeader: boolean;
|
|
1546
1566
|
backButtonLabel?: string | undefined;
|
|
1567
|
+
externalDisplayConditions: boolean;
|
|
1547
1568
|
};
|
|
1548
1569
|
features: {
|
|
1549
1570
|
dynamicContent: boolean;
|
|
@@ -1555,6 +1576,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1555
1576
|
modulesDisabled: boolean;
|
|
1556
1577
|
liquidSyntax: boolean;
|
|
1557
1578
|
autosave: boolean;
|
|
1579
|
+
accessibilityTesting: boolean;
|
|
1558
1580
|
allowlistEnabled: boolean;
|
|
1559
1581
|
linkTrackingIds: boolean;
|
|
1560
1582
|
allowSaveWithErrors: boolean;
|
|
@@ -1689,6 +1711,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1689
1711
|
ui: {
|
|
1690
1712
|
showHeader: boolean;
|
|
1691
1713
|
backButtonLabel?: string | undefined;
|
|
1714
|
+
externalDisplayConditions: boolean;
|
|
1692
1715
|
};
|
|
1693
1716
|
features: {
|
|
1694
1717
|
dynamicContent: boolean;
|
|
@@ -1700,6 +1723,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1700
1723
|
modulesDisabled: boolean;
|
|
1701
1724
|
liquidSyntax: boolean;
|
|
1702
1725
|
autosave: boolean;
|
|
1726
|
+
accessibilityTesting: boolean;
|
|
1703
1727
|
allowlistEnabled: boolean;
|
|
1704
1728
|
linkTrackingIds: boolean;
|
|
1705
1729
|
allowSaveWithErrors: boolean;
|
|
@@ -1834,6 +1858,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1834
1858
|
ui: {
|
|
1835
1859
|
showHeader: boolean;
|
|
1836
1860
|
backButtonLabel?: string | undefined;
|
|
1861
|
+
externalDisplayConditions: boolean;
|
|
1837
1862
|
};
|
|
1838
1863
|
features: {
|
|
1839
1864
|
dynamicContent: boolean;
|
|
@@ -1845,6 +1870,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1845
1870
|
modulesDisabled: boolean;
|
|
1846
1871
|
liquidSyntax: boolean;
|
|
1847
1872
|
autosave: boolean;
|
|
1873
|
+
accessibilityTesting: boolean;
|
|
1848
1874
|
allowlistEnabled: boolean;
|
|
1849
1875
|
linkTrackingIds: boolean;
|
|
1850
1876
|
allowSaveWithErrors: boolean;
|
|
@@ -1979,6 +2005,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1979
2005
|
ui: {
|
|
1980
2006
|
showHeader: boolean;
|
|
1981
2007
|
backButtonLabel?: string | undefined;
|
|
2008
|
+
externalDisplayConditions: boolean;
|
|
1982
2009
|
};
|
|
1983
2010
|
features: {
|
|
1984
2011
|
dynamicContent: boolean;
|
|
@@ -1990,6 +2017,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1990
2017
|
modulesDisabled: boolean;
|
|
1991
2018
|
liquidSyntax: boolean;
|
|
1992
2019
|
autosave: boolean;
|
|
2020
|
+
accessibilityTesting: boolean;
|
|
1993
2021
|
allowlistEnabled: boolean;
|
|
1994
2022
|
linkTrackingIds: boolean;
|
|
1995
2023
|
allowSaveWithErrors: boolean;
|
|
@@ -2124,6 +2152,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2124
2152
|
ui: {
|
|
2125
2153
|
showHeader: boolean;
|
|
2126
2154
|
backButtonLabel?: string | undefined;
|
|
2155
|
+
externalDisplayConditions: boolean;
|
|
2127
2156
|
};
|
|
2128
2157
|
features: {
|
|
2129
2158
|
dynamicContent: boolean;
|
|
@@ -2135,6 +2164,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2135
2164
|
modulesDisabled: boolean;
|
|
2136
2165
|
liquidSyntax: boolean;
|
|
2137
2166
|
autosave: boolean;
|
|
2167
|
+
accessibilityTesting: boolean;
|
|
2138
2168
|
allowlistEnabled: boolean;
|
|
2139
2169
|
linkTrackingIds: boolean;
|
|
2140
2170
|
allowSaveWithErrors: boolean;
|
|
@@ -2269,6 +2299,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2269
2299
|
ui: {
|
|
2270
2300
|
showHeader: boolean;
|
|
2271
2301
|
backButtonLabel?: string | undefined;
|
|
2302
|
+
externalDisplayConditions: boolean;
|
|
2272
2303
|
};
|
|
2273
2304
|
features: {
|
|
2274
2305
|
dynamicContent: boolean;
|
|
@@ -2280,6 +2311,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2280
2311
|
modulesDisabled: boolean;
|
|
2281
2312
|
liquidSyntax: boolean;
|
|
2282
2313
|
autosave: boolean;
|
|
2314
|
+
accessibilityTesting: boolean;
|
|
2283
2315
|
allowlistEnabled: boolean;
|
|
2284
2316
|
linkTrackingIds: boolean;
|
|
2285
2317
|
allowSaveWithErrors: boolean;
|
|
@@ -2414,6 +2446,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2414
2446
|
ui: {
|
|
2415
2447
|
showHeader: boolean;
|
|
2416
2448
|
backButtonLabel?: string | undefined;
|
|
2449
|
+
externalDisplayConditions: boolean;
|
|
2417
2450
|
};
|
|
2418
2451
|
features: {
|
|
2419
2452
|
dynamicContent: boolean;
|
|
@@ -2425,6 +2458,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2425
2458
|
modulesDisabled: boolean;
|
|
2426
2459
|
liquidSyntax: boolean;
|
|
2427
2460
|
autosave: boolean;
|
|
2461
|
+
accessibilityTesting: boolean;
|
|
2428
2462
|
allowlistEnabled: boolean;
|
|
2429
2463
|
linkTrackingIds: boolean;
|
|
2430
2464
|
allowSaveWithErrors: boolean;
|
|
@@ -2571,6 +2605,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2571
2605
|
ui: {
|
|
2572
2606
|
showHeader: boolean;
|
|
2573
2607
|
backButtonLabel?: string | undefined;
|
|
2608
|
+
externalDisplayConditions: boolean;
|
|
2574
2609
|
};
|
|
2575
2610
|
features: {
|
|
2576
2611
|
dynamicContent: boolean;
|
|
@@ -2582,6 +2617,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2582
2617
|
modulesDisabled: boolean;
|
|
2583
2618
|
liquidSyntax: boolean;
|
|
2584
2619
|
autosave: boolean;
|
|
2620
|
+
accessibilityTesting: boolean;
|
|
2585
2621
|
allowlistEnabled: boolean;
|
|
2586
2622
|
linkTrackingIds: boolean;
|
|
2587
2623
|
allowSaveWithErrors: boolean;
|
|
@@ -2716,6 +2752,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2716
2752
|
ui: {
|
|
2717
2753
|
showHeader: boolean;
|
|
2718
2754
|
backButtonLabel?: string | undefined;
|
|
2755
|
+
externalDisplayConditions: boolean;
|
|
2719
2756
|
};
|
|
2720
2757
|
features: {
|
|
2721
2758
|
dynamicContent: boolean;
|
|
@@ -2727,6 +2764,154 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2727
2764
|
modulesDisabled: boolean;
|
|
2728
2765
|
liquidSyntax: boolean;
|
|
2729
2766
|
autosave: boolean;
|
|
2767
|
+
accessibilityTesting: boolean;
|
|
2768
|
+
allowlistEnabled: boolean;
|
|
2769
|
+
linkTrackingIds: boolean;
|
|
2770
|
+
allowSaveWithErrors: boolean;
|
|
2771
|
+
reusableRecommendationStrategy: boolean;
|
|
2772
|
+
};
|
|
2773
|
+
blocks: {
|
|
2774
|
+
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")[];
|
|
2775
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
2776
|
+
};
|
|
2777
|
+
compiler: {
|
|
2778
|
+
customRules: ({
|
|
2779
|
+
type: "replace";
|
|
2780
|
+
search: string;
|
|
2781
|
+
replacement: string;
|
|
2782
|
+
replaceAll?: boolean | undefined;
|
|
2783
|
+
id: string;
|
|
2784
|
+
description?: string | undefined;
|
|
2785
|
+
priority: number;
|
|
2786
|
+
} | {
|
|
2787
|
+
type: "regex";
|
|
2788
|
+
pattern: string;
|
|
2789
|
+
replacement: string;
|
|
2790
|
+
flags?: string | undefined;
|
|
2791
|
+
id: string;
|
|
2792
|
+
description?: string | undefined;
|
|
2793
|
+
priority: number;
|
|
2794
|
+
} | {
|
|
2795
|
+
type: "remove";
|
|
2796
|
+
targets: string[];
|
|
2797
|
+
id: string;
|
|
2798
|
+
description?: string | undefined;
|
|
2799
|
+
priority: number;
|
|
2800
|
+
} | {
|
|
2801
|
+
type: "custom";
|
|
2802
|
+
processor: (html: string) => string;
|
|
2803
|
+
id: string;
|
|
2804
|
+
description?: string | undefined;
|
|
2805
|
+
priority: number;
|
|
2806
|
+
})[];
|
|
2807
|
+
ignoreDefaultRules: boolean;
|
|
2808
|
+
};
|
|
2809
|
+
callbacks: {
|
|
2810
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
2811
|
+
};
|
|
2812
|
+
} | null;
|
|
2813
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
|
|
2814
|
+
/**
|
|
2815
|
+
* Check if the Insider display-condition UI replaces Stripo's
|
|
2816
|
+
*/
|
|
2817
|
+
externalDisplayConditions: (state: {
|
|
2818
|
+
initialized: boolean;
|
|
2819
|
+
config: {
|
|
2820
|
+
identity: {
|
|
2821
|
+
templateId: string;
|
|
2822
|
+
userId: string;
|
|
2823
|
+
variationId?: string | undefined;
|
|
2824
|
+
campaignId?: string | undefined;
|
|
2825
|
+
templateLibraryId?: string | undefined;
|
|
2826
|
+
};
|
|
2827
|
+
partner: {
|
|
2828
|
+
name: string;
|
|
2829
|
+
productType: 60 | 49 | 97;
|
|
2830
|
+
messageType: 1 | 2;
|
|
2831
|
+
username: string;
|
|
2832
|
+
fallbackFont?: {
|
|
2833
|
+
name: string;
|
|
2834
|
+
family: string;
|
|
2835
|
+
} | undefined;
|
|
2836
|
+
};
|
|
2837
|
+
template: {
|
|
2838
|
+
html: string;
|
|
2839
|
+
css: string;
|
|
2840
|
+
preselectedDynamicContent: {
|
|
2841
|
+
text: string;
|
|
2842
|
+
value: string;
|
|
2843
|
+
fallback?: string | undefined;
|
|
2844
|
+
format?: {
|
|
2845
|
+
key: string;
|
|
2846
|
+
value: string;
|
|
2847
|
+
} | undefined;
|
|
2848
|
+
}[];
|
|
2849
|
+
dynamicContentList: {
|
|
2850
|
+
[x: string]: import("../library").DynamicContentNode[];
|
|
2851
|
+
};
|
|
2852
|
+
customFieldAttributes: string[];
|
|
2853
|
+
selectedUnsubscribePages: number[];
|
|
2854
|
+
forceRecreate: boolean;
|
|
2855
|
+
trackIdCounter: number;
|
|
2856
|
+
recommendationCampaignUrls?: Record<string, unknown> | undefined;
|
|
2857
|
+
migration: {
|
|
2858
|
+
recommendationConfigs: {
|
|
2859
|
+
[x: string]: {
|
|
2860
|
+
id?: number | undefined;
|
|
2861
|
+
decimalCount?: string | number | undefined;
|
|
2862
|
+
productIds?: unknown[] | undefined;
|
|
2863
|
+
sendProductRequestFlag?: boolean | undefined;
|
|
2864
|
+
shuffleProducts?: boolean | undefined;
|
|
2865
|
+
filters?: unknown[] | undefined;
|
|
2866
|
+
currency?: string | undefined;
|
|
2867
|
+
currencySettings?: unknown;
|
|
2868
|
+
language?: string | undefined;
|
|
2869
|
+
strategy?: string | undefined;
|
|
2870
|
+
recommendedProducts?: unknown[] | undefined;
|
|
2871
|
+
cardsInRow?: number | undefined;
|
|
2872
|
+
mobileRightPadding?: number | undefined;
|
|
2873
|
+
mobileLeftPadding?: number | undefined;
|
|
2874
|
+
unresponsive?: boolean | undefined;
|
|
2875
|
+
orientation?: string | undefined;
|
|
2876
|
+
textTrimming?: boolean | undefined;
|
|
2877
|
+
blockType?: string | undefined;
|
|
2878
|
+
size?: string | number | undefined;
|
|
2879
|
+
verticalResponsiveness?: boolean | undefined;
|
|
2880
|
+
isPriceMovedToNextLine?: boolean | undefined;
|
|
2881
|
+
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
2882
|
+
} & {
|
|
2883
|
+
[key: string]: unknown;
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
editor: {
|
|
2889
|
+
locale: string;
|
|
2890
|
+
translationsPath: string;
|
|
2891
|
+
migrationDate: number;
|
|
2892
|
+
emailHeader: {
|
|
2893
|
+
senderName: string;
|
|
2894
|
+
subject: string;
|
|
2895
|
+
};
|
|
2896
|
+
savedModulesFolderName: string;
|
|
2897
|
+
defaultModulesFolderName: string;
|
|
2898
|
+
};
|
|
2899
|
+
ui: {
|
|
2900
|
+
showHeader: boolean;
|
|
2901
|
+
backButtonLabel?: string | undefined;
|
|
2902
|
+
externalDisplayConditions: boolean;
|
|
2903
|
+
};
|
|
2904
|
+
features: {
|
|
2905
|
+
dynamicContent: boolean;
|
|
2906
|
+
saveAsTemplate: boolean;
|
|
2907
|
+
versionHistory: boolean;
|
|
2908
|
+
testMessage: boolean;
|
|
2909
|
+
displayConditions: boolean;
|
|
2910
|
+
unsubscribe: boolean;
|
|
2911
|
+
modulesDisabled: boolean;
|
|
2912
|
+
liquidSyntax: boolean;
|
|
2913
|
+
autosave: boolean;
|
|
2914
|
+
accessibilityTesting: boolean;
|
|
2730
2915
|
allowlistEnabled: boolean;
|
|
2731
2916
|
linkTrackingIds: boolean;
|
|
2732
2917
|
allowSaveWithErrors: boolean;
|
|
@@ -2863,6 +3048,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2863
3048
|
ui: {
|
|
2864
3049
|
showHeader: boolean;
|
|
2865
3050
|
backButtonLabel?: string | undefined;
|
|
3051
|
+
externalDisplayConditions: boolean;
|
|
2866
3052
|
};
|
|
2867
3053
|
features: {
|
|
2868
3054
|
dynamicContent: boolean;
|
|
@@ -2874,6 +3060,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2874
3060
|
modulesDisabled: boolean;
|
|
2875
3061
|
liquidSyntax: boolean;
|
|
2876
3062
|
autosave: boolean;
|
|
3063
|
+
accessibilityTesting: boolean;
|
|
2877
3064
|
allowlistEnabled: boolean;
|
|
2878
3065
|
linkTrackingIds: boolean;
|
|
2879
3066
|
allowSaveWithErrors: boolean;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { AppliedDisplayCondition, SavedDisplayCondition } from '@@/Types/display-condition';
|
|
2
|
+
export type DisplayConditionView = 'none' | 'create' | 'select';
|
|
3
|
+
export type DisplayConditionListStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
4
|
+
interface DisplayConditionState {
|
|
5
|
+
view: DisplayConditionView;
|
|
6
|
+
editing: AppliedDisplayCondition | null;
|
|
7
|
+
list: SavedDisplayCondition[];
|
|
8
|
+
listStatus: DisplayConditionListStatus;
|
|
9
|
+
listRequest: number;
|
|
10
|
+
pendingDelete: SavedDisplayCondition | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const useDisplayConditionStore: import("pinia").StoreDefinition<"guidoDisplayCondition", DisplayConditionState, {
|
|
13
|
+
isCreateOpen: (state: {
|
|
14
|
+
view: DisplayConditionView;
|
|
15
|
+
editing: {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
beforeScript: string;
|
|
20
|
+
afterScript: string;
|
|
21
|
+
extraData?: string | undefined;
|
|
22
|
+
} | null;
|
|
23
|
+
list: {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
syntax: "liquid" | "pongo";
|
|
28
|
+
method: "codeOnly" | "logicBuilder";
|
|
29
|
+
codeBefore: string;
|
|
30
|
+
codeAfter: string;
|
|
31
|
+
createdAt?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
listStatus: DisplayConditionListStatus;
|
|
34
|
+
listRequest: number;
|
|
35
|
+
pendingDelete: {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
syntax: "liquid" | "pongo";
|
|
40
|
+
method: "codeOnly" | "logicBuilder";
|
|
41
|
+
codeBefore: string;
|
|
42
|
+
codeAfter: string;
|
|
43
|
+
createdAt?: string | undefined;
|
|
44
|
+
} | null;
|
|
45
|
+
} & import("pinia").PiniaCustomStateProperties<DisplayConditionState>) => boolean;
|
|
46
|
+
isSelectOpen: (state: {
|
|
47
|
+
view: DisplayConditionView;
|
|
48
|
+
editing: {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
beforeScript: string;
|
|
53
|
+
afterScript: string;
|
|
54
|
+
extraData?: string | undefined;
|
|
55
|
+
} | null;
|
|
56
|
+
list: {
|
|
57
|
+
id: number;
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
syntax: "liquid" | "pongo";
|
|
61
|
+
method: "codeOnly" | "logicBuilder";
|
|
62
|
+
codeBefore: string;
|
|
63
|
+
codeAfter: string;
|
|
64
|
+
createdAt?: string | undefined;
|
|
65
|
+
}[];
|
|
66
|
+
listStatus: DisplayConditionListStatus;
|
|
67
|
+
listRequest: number;
|
|
68
|
+
pendingDelete: {
|
|
69
|
+
id: number;
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
syntax: "liquid" | "pongo";
|
|
73
|
+
method: "codeOnly" | "logicBuilder";
|
|
74
|
+
codeBefore: string;
|
|
75
|
+
codeAfter: string;
|
|
76
|
+
createdAt?: string | undefined;
|
|
77
|
+
} | null;
|
|
78
|
+
} & import("pinia").PiniaCustomStateProperties<DisplayConditionState>) => boolean;
|
|
79
|
+
}, {
|
|
80
|
+
openCreate(editing?: AppliedDisplayCondition | null): void;
|
|
81
|
+
openSelect(): void;
|
|
82
|
+
close(): void;
|
|
83
|
+
}>;
|
|
84
|
+
export {};
|