@useinsider/guido 3.30.0-beta.23d415d → 3.30.0-beta.25ed52c
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 +35 -0
- package/dist/@types/config/schemas.js +42 -37
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +129 -115
- package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.js +34 -0
- package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue2.js +76 -0
- package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.js +21 -0
- package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue2.js +33 -0
- package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue.js +42 -0
- package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue2.js +216 -0
- package/dist/composables/useDynamicContentFormat.js +10 -0
- package/dist/composables/useDynamicContentPicker.js +36 -0
- package/dist/composables/useInfoBoxPosition.js +16 -0
- package/dist/config/migrator/itemsBlockMigrator.js +164 -161
- package/dist/enums/dynamic-content.js +180 -2
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/@types/config/schemas.d.ts +12 -0
- package/dist/src/@types/generic.d.ts +1 -0
- package/dist/src/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.d.ts +48 -0
- package/dist/src/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.d.ts +44 -0
- package/dist/src/components/organisms/dynamic-content/DynamicContentPicker.vue.d.ts +67 -0
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useDynamicContentFormat.d.ts +5 -0
- package/dist/src/composables/useDynamicContentPicker.d.ts +35 -0
- package/dist/src/composables/useInfoBoxPosition.d.ts +24 -0
- package/dist/src/enums/dynamic-content.d.ts +21 -0
- package/dist/src/stores/config.d.ts +42 -0
- package/dist/src/utils/dynamicContentPicker.d.ts +43 -0
- package/dist/src/utils/genericUtil.d.ts +1 -1
- package/dist/utils/dynamicContentPicker.js +88 -0
- package/dist/utils/genericUtil.js +21 -21
- package/dist/utils/pairProductVariables.js +98 -108
- package/package.json +1 -1
|
@@ -87,6 +87,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
87
87
|
emailHeader: {
|
|
88
88
|
senderName: string;
|
|
89
89
|
subject: string;
|
|
90
|
+
preheader: string;
|
|
90
91
|
};
|
|
91
92
|
savedModulesFolderName: string;
|
|
92
93
|
defaultModulesFolderName: string;
|
|
@@ -112,6 +113,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
112
113
|
allowSaveWithErrors: boolean;
|
|
113
114
|
reusableRecommendationStrategy: boolean;
|
|
114
115
|
dynamicContentSpecialLinks: boolean;
|
|
116
|
+
dynamicContentPicker: boolean;
|
|
115
117
|
legacyUnsubscribeConversion: boolean;
|
|
116
118
|
itemsPriceFormatting: boolean;
|
|
117
119
|
blockUnsubscribeLinks: boolean;
|
|
@@ -238,6 +240,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
238
240
|
emailHeader: {
|
|
239
241
|
senderName: string;
|
|
240
242
|
subject: string;
|
|
243
|
+
preheader: string;
|
|
241
244
|
};
|
|
242
245
|
savedModulesFolderName: string;
|
|
243
246
|
defaultModulesFolderName: string;
|
|
@@ -263,6 +266,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
263
266
|
allowSaveWithErrors: boolean;
|
|
264
267
|
reusableRecommendationStrategy: boolean;
|
|
265
268
|
dynamicContentSpecialLinks: boolean;
|
|
269
|
+
dynamicContentPicker: boolean;
|
|
266
270
|
legacyUnsubscribeConversion: boolean;
|
|
267
271
|
itemsPriceFormatting: boolean;
|
|
268
272
|
blockUnsubscribeLinks: boolean;
|
|
@@ -389,6 +393,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
389
393
|
emailHeader: {
|
|
390
394
|
senderName: string;
|
|
391
395
|
subject: string;
|
|
396
|
+
preheader: string;
|
|
392
397
|
};
|
|
393
398
|
savedModulesFolderName: string;
|
|
394
399
|
defaultModulesFolderName: string;
|
|
@@ -414,6 +419,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
414
419
|
allowSaveWithErrors: boolean;
|
|
415
420
|
reusableRecommendationStrategy: boolean;
|
|
416
421
|
dynamicContentSpecialLinks: boolean;
|
|
422
|
+
dynamicContentPicker: boolean;
|
|
417
423
|
legacyUnsubscribeConversion: boolean;
|
|
418
424
|
itemsPriceFormatting: boolean;
|
|
419
425
|
blockUnsubscribeLinks: boolean;
|
|
@@ -540,6 +546,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
540
546
|
emailHeader: {
|
|
541
547
|
senderName: string;
|
|
542
548
|
subject: string;
|
|
549
|
+
preheader: string;
|
|
543
550
|
};
|
|
544
551
|
savedModulesFolderName: string;
|
|
545
552
|
defaultModulesFolderName: string;
|
|
@@ -565,6 +572,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
565
572
|
allowSaveWithErrors: boolean;
|
|
566
573
|
reusableRecommendationStrategy: boolean;
|
|
567
574
|
dynamicContentSpecialLinks: boolean;
|
|
575
|
+
dynamicContentPicker: boolean;
|
|
568
576
|
legacyUnsubscribeConversion: boolean;
|
|
569
577
|
itemsPriceFormatting: boolean;
|
|
570
578
|
blockUnsubscribeLinks: boolean;
|
|
@@ -691,6 +699,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
691
699
|
emailHeader: {
|
|
692
700
|
senderName: string;
|
|
693
701
|
subject: string;
|
|
702
|
+
preheader: string;
|
|
694
703
|
};
|
|
695
704
|
savedModulesFolderName: string;
|
|
696
705
|
defaultModulesFolderName: string;
|
|
@@ -716,6 +725,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
716
725
|
allowSaveWithErrors: boolean;
|
|
717
726
|
reusableRecommendationStrategy: boolean;
|
|
718
727
|
dynamicContentSpecialLinks: boolean;
|
|
728
|
+
dynamicContentPicker: boolean;
|
|
719
729
|
legacyUnsubscribeConversion: boolean;
|
|
720
730
|
itemsPriceFormatting: boolean;
|
|
721
731
|
blockUnsubscribeLinks: boolean;
|
|
@@ -842,6 +852,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
842
852
|
emailHeader: {
|
|
843
853
|
senderName: string;
|
|
844
854
|
subject: string;
|
|
855
|
+
preheader: string;
|
|
845
856
|
};
|
|
846
857
|
savedModulesFolderName: string;
|
|
847
858
|
defaultModulesFolderName: string;
|
|
@@ -867,6 +878,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
867
878
|
allowSaveWithErrors: boolean;
|
|
868
879
|
reusableRecommendationStrategy: boolean;
|
|
869
880
|
dynamicContentSpecialLinks: boolean;
|
|
881
|
+
dynamicContentPicker: boolean;
|
|
870
882
|
legacyUnsubscribeConversion: boolean;
|
|
871
883
|
itemsPriceFormatting: boolean;
|
|
872
884
|
blockUnsubscribeLinks: boolean;
|
|
@@ -993,6 +1005,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
993
1005
|
emailHeader: {
|
|
994
1006
|
senderName: string;
|
|
995
1007
|
subject: string;
|
|
1008
|
+
preheader: string;
|
|
996
1009
|
};
|
|
997
1010
|
savedModulesFolderName: string;
|
|
998
1011
|
defaultModulesFolderName: string;
|
|
@@ -1018,6 +1031,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1018
1031
|
allowSaveWithErrors: boolean;
|
|
1019
1032
|
reusableRecommendationStrategy: boolean;
|
|
1020
1033
|
dynamicContentSpecialLinks: boolean;
|
|
1034
|
+
dynamicContentPicker: boolean;
|
|
1021
1035
|
legacyUnsubscribeConversion: boolean;
|
|
1022
1036
|
itemsPriceFormatting: boolean;
|
|
1023
1037
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1144,6 +1158,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1144
1158
|
emailHeader: {
|
|
1145
1159
|
senderName: string;
|
|
1146
1160
|
subject: string;
|
|
1161
|
+
preheader: string;
|
|
1147
1162
|
};
|
|
1148
1163
|
savedModulesFolderName: string;
|
|
1149
1164
|
defaultModulesFolderName: string;
|
|
@@ -1169,6 +1184,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1169
1184
|
allowSaveWithErrors: boolean;
|
|
1170
1185
|
reusableRecommendationStrategy: boolean;
|
|
1171
1186
|
dynamicContentSpecialLinks: boolean;
|
|
1187
|
+
dynamicContentPicker: boolean;
|
|
1172
1188
|
legacyUnsubscribeConversion: boolean;
|
|
1173
1189
|
itemsPriceFormatting: boolean;
|
|
1174
1190
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1295,6 +1311,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1295
1311
|
emailHeader: {
|
|
1296
1312
|
senderName: string;
|
|
1297
1313
|
subject: string;
|
|
1314
|
+
preheader: string;
|
|
1298
1315
|
};
|
|
1299
1316
|
savedModulesFolderName: string;
|
|
1300
1317
|
defaultModulesFolderName: string;
|
|
@@ -1320,6 +1337,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1320
1337
|
allowSaveWithErrors: boolean;
|
|
1321
1338
|
reusableRecommendationStrategy: boolean;
|
|
1322
1339
|
dynamicContentSpecialLinks: boolean;
|
|
1340
|
+
dynamicContentPicker: boolean;
|
|
1323
1341
|
legacyUnsubscribeConversion: boolean;
|
|
1324
1342
|
itemsPriceFormatting: boolean;
|
|
1325
1343
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1446,6 +1464,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1446
1464
|
emailHeader: {
|
|
1447
1465
|
senderName: string;
|
|
1448
1466
|
subject: string;
|
|
1467
|
+
preheader: string;
|
|
1449
1468
|
};
|
|
1450
1469
|
savedModulesFolderName: string;
|
|
1451
1470
|
defaultModulesFolderName: string;
|
|
@@ -1471,6 +1490,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1471
1490
|
allowSaveWithErrors: boolean;
|
|
1472
1491
|
reusableRecommendationStrategy: boolean;
|
|
1473
1492
|
dynamicContentSpecialLinks: boolean;
|
|
1493
|
+
dynamicContentPicker: boolean;
|
|
1474
1494
|
legacyUnsubscribeConversion: boolean;
|
|
1475
1495
|
itemsPriceFormatting: boolean;
|
|
1476
1496
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1597,6 +1617,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1597
1617
|
emailHeader: {
|
|
1598
1618
|
senderName: string;
|
|
1599
1619
|
subject: string;
|
|
1620
|
+
preheader: string;
|
|
1600
1621
|
};
|
|
1601
1622
|
savedModulesFolderName: string;
|
|
1602
1623
|
defaultModulesFolderName: string;
|
|
@@ -1622,6 +1643,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1622
1643
|
allowSaveWithErrors: boolean;
|
|
1623
1644
|
reusableRecommendationStrategy: boolean;
|
|
1624
1645
|
dynamicContentSpecialLinks: boolean;
|
|
1646
|
+
dynamicContentPicker: boolean;
|
|
1625
1647
|
legacyUnsubscribeConversion: boolean;
|
|
1626
1648
|
itemsPriceFormatting: boolean;
|
|
1627
1649
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1748,6 +1770,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1748
1770
|
emailHeader: {
|
|
1749
1771
|
senderName: string;
|
|
1750
1772
|
subject: string;
|
|
1773
|
+
preheader: string;
|
|
1751
1774
|
};
|
|
1752
1775
|
savedModulesFolderName: string;
|
|
1753
1776
|
defaultModulesFolderName: string;
|
|
@@ -1773,6 +1796,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1773
1796
|
allowSaveWithErrors: boolean;
|
|
1774
1797
|
reusableRecommendationStrategy: boolean;
|
|
1775
1798
|
dynamicContentSpecialLinks: boolean;
|
|
1799
|
+
dynamicContentPicker: boolean;
|
|
1776
1800
|
legacyUnsubscribeConversion: boolean;
|
|
1777
1801
|
itemsPriceFormatting: boolean;
|
|
1778
1802
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1899,6 +1923,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1899
1923
|
emailHeader: {
|
|
1900
1924
|
senderName: string;
|
|
1901
1925
|
subject: string;
|
|
1926
|
+
preheader: string;
|
|
1902
1927
|
};
|
|
1903
1928
|
savedModulesFolderName: string;
|
|
1904
1929
|
defaultModulesFolderName: string;
|
|
@@ -1924,6 +1949,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1924
1949
|
allowSaveWithErrors: boolean;
|
|
1925
1950
|
reusableRecommendationStrategy: boolean;
|
|
1926
1951
|
dynamicContentSpecialLinks: boolean;
|
|
1952
|
+
dynamicContentPicker: boolean;
|
|
1927
1953
|
legacyUnsubscribeConversion: boolean;
|
|
1928
1954
|
itemsPriceFormatting: boolean;
|
|
1929
1955
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2050,6 +2076,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2050
2076
|
emailHeader: {
|
|
2051
2077
|
senderName: string;
|
|
2052
2078
|
subject: string;
|
|
2079
|
+
preheader: string;
|
|
2053
2080
|
};
|
|
2054
2081
|
savedModulesFolderName: string;
|
|
2055
2082
|
defaultModulesFolderName: string;
|
|
@@ -2075,6 +2102,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2075
2102
|
allowSaveWithErrors: boolean;
|
|
2076
2103
|
reusableRecommendationStrategy: boolean;
|
|
2077
2104
|
dynamicContentSpecialLinks: boolean;
|
|
2105
|
+
dynamicContentPicker: boolean;
|
|
2078
2106
|
legacyUnsubscribeConversion: boolean;
|
|
2079
2107
|
itemsPriceFormatting: boolean;
|
|
2080
2108
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2201,6 +2229,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2201
2229
|
emailHeader: {
|
|
2202
2230
|
senderName: string;
|
|
2203
2231
|
subject: string;
|
|
2232
|
+
preheader: string;
|
|
2204
2233
|
};
|
|
2205
2234
|
savedModulesFolderName: string;
|
|
2206
2235
|
defaultModulesFolderName: string;
|
|
@@ -2226,6 +2255,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2226
2255
|
allowSaveWithErrors: boolean;
|
|
2227
2256
|
reusableRecommendationStrategy: boolean;
|
|
2228
2257
|
dynamicContentSpecialLinks: boolean;
|
|
2258
|
+
dynamicContentPicker: boolean;
|
|
2229
2259
|
legacyUnsubscribeConversion: boolean;
|
|
2230
2260
|
itemsPriceFormatting: boolean;
|
|
2231
2261
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2352,6 +2382,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2352
2382
|
emailHeader: {
|
|
2353
2383
|
senderName: string;
|
|
2354
2384
|
subject: string;
|
|
2385
|
+
preheader: string;
|
|
2355
2386
|
};
|
|
2356
2387
|
savedModulesFolderName: string;
|
|
2357
2388
|
defaultModulesFolderName: string;
|
|
@@ -2377,6 +2408,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2377
2408
|
allowSaveWithErrors: boolean;
|
|
2378
2409
|
reusableRecommendationStrategy: boolean;
|
|
2379
2410
|
dynamicContentSpecialLinks: boolean;
|
|
2411
|
+
dynamicContentPicker: boolean;
|
|
2380
2412
|
legacyUnsubscribeConversion: boolean;
|
|
2381
2413
|
itemsPriceFormatting: boolean;
|
|
2382
2414
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2503,6 +2535,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2503
2535
|
emailHeader: {
|
|
2504
2536
|
senderName: string;
|
|
2505
2537
|
subject: string;
|
|
2538
|
+
preheader: string;
|
|
2506
2539
|
};
|
|
2507
2540
|
savedModulesFolderName: string;
|
|
2508
2541
|
defaultModulesFolderName: string;
|
|
@@ -2528,6 +2561,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2528
2561
|
allowSaveWithErrors: boolean;
|
|
2529
2562
|
reusableRecommendationStrategy: boolean;
|
|
2530
2563
|
dynamicContentSpecialLinks: boolean;
|
|
2564
|
+
dynamicContentPicker: boolean;
|
|
2531
2565
|
legacyUnsubscribeConversion: boolean;
|
|
2532
2566
|
itemsPriceFormatting: boolean;
|
|
2533
2567
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2666,6 +2700,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2666
2700
|
emailHeader: {
|
|
2667
2701
|
senderName: string;
|
|
2668
2702
|
subject: string;
|
|
2703
|
+
preheader: string;
|
|
2669
2704
|
};
|
|
2670
2705
|
savedModulesFolderName: string;
|
|
2671
2706
|
defaultModulesFolderName: string;
|
|
@@ -2691,6 +2726,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2691
2726
|
allowSaveWithErrors: boolean;
|
|
2692
2727
|
reusableRecommendationStrategy: boolean;
|
|
2693
2728
|
dynamicContentSpecialLinks: boolean;
|
|
2729
|
+
dynamicContentPicker: boolean;
|
|
2694
2730
|
legacyUnsubscribeConversion: boolean;
|
|
2695
2731
|
itemsPriceFormatting: boolean;
|
|
2696
2732
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2817,6 +2853,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2817
2853
|
emailHeader: {
|
|
2818
2854
|
senderName: string;
|
|
2819
2855
|
subject: string;
|
|
2856
|
+
preheader: string;
|
|
2820
2857
|
};
|
|
2821
2858
|
savedModulesFolderName: string;
|
|
2822
2859
|
defaultModulesFolderName: string;
|
|
@@ -2842,6 +2879,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2842
2879
|
allowSaveWithErrors: boolean;
|
|
2843
2880
|
reusableRecommendationStrategy: boolean;
|
|
2844
2881
|
dynamicContentSpecialLinks: boolean;
|
|
2882
|
+
dynamicContentPicker: boolean;
|
|
2845
2883
|
legacyUnsubscribeConversion: boolean;
|
|
2846
2884
|
itemsPriceFormatting: boolean;
|
|
2847
2885
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2968,6 +3006,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2968
3006
|
emailHeader: {
|
|
2969
3007
|
senderName: string;
|
|
2970
3008
|
subject: string;
|
|
3009
|
+
preheader: string;
|
|
2971
3010
|
};
|
|
2972
3011
|
savedModulesFolderName: string;
|
|
2973
3012
|
defaultModulesFolderName: string;
|
|
@@ -2993,6 +3032,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2993
3032
|
allowSaveWithErrors: boolean;
|
|
2994
3033
|
reusableRecommendationStrategy: boolean;
|
|
2995
3034
|
dynamicContentSpecialLinks: boolean;
|
|
3035
|
+
dynamicContentPicker: boolean;
|
|
2996
3036
|
legacyUnsubscribeConversion: boolean;
|
|
2997
3037
|
itemsPriceFormatting: boolean;
|
|
2998
3038
|
blockUnsubscribeLinks: boolean;
|
|
@@ -3121,6 +3161,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
3121
3161
|
emailHeader: {
|
|
3122
3162
|
senderName: string;
|
|
3123
3163
|
subject: string;
|
|
3164
|
+
preheader: string;
|
|
3124
3165
|
};
|
|
3125
3166
|
savedModulesFolderName: string;
|
|
3126
3167
|
defaultModulesFolderName: string;
|
|
@@ -3146,6 +3187,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
3146
3187
|
allowSaveWithErrors: boolean;
|
|
3147
3188
|
reusableRecommendationStrategy: boolean;
|
|
3148
3189
|
dynamicContentSpecialLinks: boolean;
|
|
3190
|
+
dynamicContentPicker: boolean;
|
|
3149
3191
|
legacyUnsubscribeConversion: boolean;
|
|
3150
3192
|
itemsPriceFormatting: boolean;
|
|
3151
3193
|
blockUnsubscribeLinks: boolean;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { DynamicContentList, DynamicContentNode } from '@@/Types/generic';
|
|
2
|
+
export type PickerOption = DynamicContentNode & {
|
|
3
|
+
categoryText?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
bindingLabel?: string;
|
|
6
|
+
columns?: PickerOption[];
|
|
7
|
+
rules?: Record<string, string | number>;
|
|
8
|
+
filtersDescription?: Record<string, string>[];
|
|
9
|
+
disable?: boolean;
|
|
10
|
+
infoBoxProps?: Record<string, string>;
|
|
11
|
+
children?: PickerOption[];
|
|
12
|
+
select_items?: PickerOption[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type PickerSelection = {
|
|
16
|
+
binding: PickerOption;
|
|
17
|
+
column: PickerOption | null;
|
|
18
|
+
};
|
|
19
|
+
export type PickerInitialData = {
|
|
20
|
+
text?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
fallback?: string;
|
|
23
|
+
format?: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const extractAooRulePattern: (value: string | null | undefined) => string | null;
|
|
29
|
+
export declare const isAooToken: (value: string | null | undefined) => boolean;
|
|
30
|
+
export declare const isAooTokenForArrays: (value: string | null | undefined, arrayKeys: string[]) => boolean;
|
|
31
|
+
export declare const extractUsedAooPatterns: (content: unknown) => string[];
|
|
32
|
+
export declare const removeAooTokenOnce: (content: string, tokenValue: string | undefined) => string;
|
|
33
|
+
export declare const getFirstRuleTokenFromSelectItems: (selectItems: PickerOption[] | undefined) => string | null;
|
|
34
|
+
export declare const applyAooDisabledState: (options: PickerOption[], usedPatterns: string[], tooltipText: string) => PickerOption[];
|
|
35
|
+
export declare const isLookupBinding: (option: PickerOption | null | undefined) => boolean;
|
|
36
|
+
export declare const buildLookupColumnOptions: (binding: PickerOption | null | undefined) => PickerOption[];
|
|
37
|
+
export declare const findDynamicContentSelection: (data: PickerInitialData | null | undefined, options: PickerOption[]) => PickerSelection | null;
|
|
38
|
+
export declare const buildPickerOptions: (list: DynamicContentList | null | undefined) => {
|
|
39
|
+
options: PickerOption[];
|
|
40
|
+
aooOptions: PickerOption[];
|
|
41
|
+
};
|
|
42
|
+
export declare const buildAooScanContent: (parts: string[]) => string;
|
|
43
|
+
export declare const getIndefiniteArticle: (field: string) => string;
|
|
@@ -3,7 +3,7 @@ export declare const mergeTagToDynamicContent: (mergeTag: MergeTag) => DynamicCo
|
|
|
3
3
|
export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
|
|
4
4
|
/**
|
|
5
5
|
* Flattens the ACTIVE (first) partner's tree into deduped leaf attributes with both labels and
|
|
6
|
-
* their category path; category nodes (`children`/`select_items`) are walked, never collected.
|
|
6
|
+
* their category path; category nodes (`children`/`select_items`/lookup `columns`) are walked, never collected.
|
|
7
7
|
*/
|
|
8
8
|
export declare const flattenDynamicContentCandidates: (list: DynamicContentList | undefined | null) => DynamicContentCandidate[];
|
|
9
9
|
export declare const flattenDynamicContentList: (list: DynamicContentList | undefined | null) => DynamicContent[];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ARRAY_OF_OBJECTS_TYPE as _, ARRAY_OF_OBJECTS_CATEGORY_VALUE as E } from "../enums/dynamic-content.js";
|
|
2
|
+
const d = /^([^.]+\.[^_]+(?:_[^_]+)*?)(?:_\d|$)/, O = /^[^.]+\.[^_]+(?:_[^_]+)*?_\d/, A = /\{\{(.*?)\}\}/gm, v = (r) => r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), h = (r) => r.slice(r.indexOf(".") + 1), u = (r) => {
|
|
3
|
+
var e;
|
|
4
|
+
return r ? ((e = r.match(d)) == null ? void 0 : e[1]) ?? null : null;
|
|
5
|
+
}, a = (r) => O.test(r || ""), g = (r, e) => {
|
|
6
|
+
if (!Array.isArray(e) || !e.length || !a(r))
|
|
7
|
+
return !1;
|
|
8
|
+
const n = u(r);
|
|
9
|
+
return !!n && e.includes(h(n));
|
|
10
|
+
}, x = (r) => {
|
|
11
|
+
if (typeof r != "string" || r === "")
|
|
12
|
+
return [];
|
|
13
|
+
const e = [];
|
|
14
|
+
let n;
|
|
15
|
+
for (A.lastIndex = 0; (n = A.exec(r)) !== null; ) {
|
|
16
|
+
const [l = ""] = (n[1] || "").split("|");
|
|
17
|
+
l.trim() && e.push(l.trim());
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}, C = (r) => {
|
|
21
|
+
const e = [];
|
|
22
|
+
return x(r).forEach((n) => {
|
|
23
|
+
const l = a(n) ? u(n) : null;
|
|
24
|
+
l && !e.includes(l) && e.push(l);
|
|
25
|
+
}), e;
|
|
26
|
+
}, L = (r, e) => !r || !e ? r || "" : r.replace(new RegExp(`\\{\\{\\s*${v(e)}\\s*(\\|[^}]*)?\\}\\}`), ""), m = (r) => Array.isArray(r) ? r.reduce((e, n) => e || (n.value && a(n.value) ? n.value : m(n.children)), null) : null, S = (r, e, n) => !Array.isArray(r) || !(e != null && e.length) ? r || [] : r.map((l) => {
|
|
27
|
+
const c = l.value, s = e.filter((t) => h(t) === c);
|
|
28
|
+
return s.length ? {
|
|
29
|
+
...l,
|
|
30
|
+
children: (l.children || []).map((t) => {
|
|
31
|
+
const i = u(m(t.select_items));
|
|
32
|
+
return !i || s.includes(i) ? t : {
|
|
33
|
+
...t,
|
|
34
|
+
disable: !0,
|
|
35
|
+
infoBoxProps: {
|
|
36
|
+
id: `disabled-rule-${c}-${t.value}`,
|
|
37
|
+
theme: "light",
|
|
38
|
+
variant: "information",
|
|
39
|
+
descriptionText: n
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
})
|
|
43
|
+
} : l;
|
|
44
|
+
}), o = (r) => {
|
|
45
|
+
var e;
|
|
46
|
+
return Array.isArray(r == null ? void 0 : r.columns) && (((e = r == null ? void 0 : r.columns) == null ? void 0 : e.length) ?? 0) > 0;
|
|
47
|
+
}, b = (r) => !r || !o(r) ? [] : r.columns.map((e) => ({ ...e, description: `{{${e.value}}}` })), $ = (r, e) => {
|
|
48
|
+
if (!Array.isArray(e) || !e.length || !(r != null && r.value))
|
|
49
|
+
return null;
|
|
50
|
+
const n = e.flatMap((s) => Array.isArray(s.children) ? s.children : []), l = n.reduce((s, t) => {
|
|
51
|
+
if (s)
|
|
52
|
+
return s;
|
|
53
|
+
if (o(t)) {
|
|
54
|
+
const i = t.columns.find((y) => y.value === r.value);
|
|
55
|
+
return i ? { binding: t, column: i } : null;
|
|
56
|
+
}
|
|
57
|
+
return t.value === r.value ? { binding: t, column: null } : null;
|
|
58
|
+
}, null);
|
|
59
|
+
if (l)
|
|
60
|
+
return l;
|
|
61
|
+
const c = r.text ? n.find((s) => !o(s) && s.text === r.text) : void 0;
|
|
62
|
+
return c ? { binding: c, column: null } : null;
|
|
63
|
+
}, f = (r) => r.type === _ || r.value === E, k = (r) => {
|
|
64
|
+
const [e] = Object.values(r ?? {}), n = Array.isArray(e) ? e : [], l = n.find(f), c = n.filter((t) => !f(t)).map((t) => ({
|
|
65
|
+
...t,
|
|
66
|
+
children: Array.isArray(t.children) ? t.children.map((i) => ({
|
|
67
|
+
...i,
|
|
68
|
+
description: o(i) ? "" : `{{${i.value}}}`
|
|
69
|
+
})) : t.children
|
|
70
|
+
})), s = (Array.isArray(l == null ? void 0 : l.children) ? l.children : []).filter((t) => Array.isArray(t.children) && t.children.length > 0);
|
|
71
|
+
return { options: c, aooOptions: s };
|
|
72
|
+
}, w = (r) => r.filter(Boolean).join(`
|
|
73
|
+
`), R = ["a", "e", "i", "o", "u"], T = ["html", "hour"], B = (r) => r && (R.includes(r[0].toLowerCase()) || T.some((n) => r.toLowerCase().startsWith(n))) ? "an" : "a";
|
|
74
|
+
export {
|
|
75
|
+
S as applyAooDisabledState,
|
|
76
|
+
w as buildAooScanContent,
|
|
77
|
+
b as buildLookupColumnOptions,
|
|
78
|
+
k as buildPickerOptions,
|
|
79
|
+
u as extractAooRulePattern,
|
|
80
|
+
C as extractUsedAooPatterns,
|
|
81
|
+
$ as findDynamicContentSelection,
|
|
82
|
+
m as getFirstRuleTokenFromSelectItems,
|
|
83
|
+
B as getIndefiniteArticle,
|
|
84
|
+
a as isAooToken,
|
|
85
|
+
g as isAooTokenForArrays,
|
|
86
|
+
o as isLookupBinding,
|
|
87
|
+
L as removeAooTokenOnce
|
|
88
|
+
};
|
|
@@ -10,60 +10,60 @@ const m = (t) => {
|
|
|
10
10
|
const a = t.slice(u.length).trim(), e = (r) => a.length >= 2 && a.startsWith(r) && a.endsWith(r);
|
|
11
11
|
return e('"') || e("'") ? a.slice(1, -1) : a;
|
|
12
12
|
}, A = (t) => {
|
|
13
|
-
const e = t.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((n) => n.trim()), [r] = e,
|
|
13
|
+
const e = t.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((n) => n.trim()), [r] = e, s = {
|
|
14
14
|
text: t.label,
|
|
15
15
|
value: r || ""
|
|
16
16
|
};
|
|
17
17
|
if (e.length >= 2) {
|
|
18
18
|
const [, n, c] = e;
|
|
19
19
|
if (n.startsWith(u))
|
|
20
|
-
|
|
20
|
+
s.fallback = b(n);
|
|
21
21
|
else {
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const l = p(n) ?? m(n);
|
|
23
|
+
l ? s.format = l : c || (s.fallback = n), c && (s.fallback = b(c));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
return
|
|
27
|
-
},
|
|
26
|
+
return s;
|
|
27
|
+
}, v = (t) => {
|
|
28
28
|
const e = !Number.isNaN(Number(t)) && t.trim() !== "" ? t : y(t);
|
|
29
29
|
return e === null ? null : `${u} ${e}`;
|
|
30
|
-
},
|
|
31
|
-
const a = t.format ? g(t.format) : null, e = t.fallback ?
|
|
30
|
+
}, T = (t) => {
|
|
31
|
+
const a = t.format ? g(t.format) : null, e = t.fallback ? v(t.fallback) : null, r = [t.value, a, e].filter(Boolean);
|
|
32
32
|
return {
|
|
33
33
|
label: [t.text, a, e && t.fallback].filter(Boolean).join(" | "),
|
|
34
34
|
value: `{{ ${r.join(" | ")} }}`
|
|
35
35
|
};
|
|
36
|
-
}, i = (t, a = !1) => t.map((e) => a ?
|
|
36
|
+
}, i = (t, a = !1) => t.map((e) => a ? T(e) : e.format ? {
|
|
37
37
|
label: `${e.text} | ${e.format.key}=${e.format.value}`,
|
|
38
38
|
value: `{{${e.value}|${e.format.key}=${e.format.value}}}`
|
|
39
39
|
} : {
|
|
40
40
|
label: e.fallback ? `${e.text} | ${e.fallback}` : e.text,
|
|
41
41
|
value: e.fallback ? `{{${e.value}|${e.fallback}}}` : `{{${e.value}}}`
|
|
42
|
-
}),
|
|
42
|
+
}), d = (t) => {
|
|
43
43
|
const a = [], e = /* @__PURE__ */ new Set(), r = (n, c) => {
|
|
44
|
-
Array.isArray(n) && n.forEach((
|
|
45
|
-
const f = [...
|
|
44
|
+
Array.isArray(n) && n.forEach((l) => {
|
|
45
|
+
const f = [...l.children ?? [], ...l.select_items ?? [], ...l.columns ?? []], o = l.text || l.tag_text;
|
|
46
46
|
if (f.length > 0) {
|
|
47
47
|
r(f, o ? [...c, o] : c);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
o &&
|
|
50
|
+
o && l.value && !e.has(l.value) && (e.add(l.value), a.push({ value: l.value, text: o, tagText: l.tag_text || o, path: c }));
|
|
51
51
|
});
|
|
52
|
-
}, [
|
|
53
|
-
return r(
|
|
54
|
-
}, h = (t) =>
|
|
55
|
-
const r = new Set(t.map((n) => n.value)),
|
|
52
|
+
}, [s] = Object.values(t ?? {});
|
|
53
|
+
return r(s, []), a;
|
|
54
|
+
}, h = (t) => d(t).map(({ text: a, value: e }) => ({ text: a, value: e })), L = (t, a, e = !1) => {
|
|
55
|
+
const r = new Set(t.map((n) => n.value)), s = a.filter((n) => r.has(n.value) ? !1 : (r.add(n.value), !0));
|
|
56
56
|
return [
|
|
57
57
|
...i(t, e),
|
|
58
|
-
...i(
|
|
58
|
+
...i(s, e)
|
|
59
59
|
];
|
|
60
60
|
}, k = /url(_\d+)?$/i, _ = /^call_an_api_response_/, $ = (t) => k.test(t) || _.test(t), P = (t, a = !1) => {
|
|
61
61
|
const [e] = Object.values(t ?? {});
|
|
62
62
|
return (e ?? []).map((r) => {
|
|
63
|
-
const
|
|
63
|
+
const s = h({ node: [r] }).filter((n) => $(n.value));
|
|
64
64
|
return {
|
|
65
65
|
category: r.text || r.tag_text || "",
|
|
66
|
-
entries: i(
|
|
66
|
+
entries: i(s, a).map(({ label: n, value: c }) => ({ label: n, value: c }))
|
|
67
67
|
};
|
|
68
68
|
}).filter((r) => r.category && r.entries.length > 0);
|
|
69
69
|
}, F = () => {
|
|
@@ -80,7 +80,7 @@ export {
|
|
|
80
80
|
L as buildMergeTagEntries,
|
|
81
81
|
P as buildSpecialLinkGroups,
|
|
82
82
|
i as dynamicContentToMergeTags,
|
|
83
|
-
|
|
83
|
+
d as flattenDynamicContentCandidates,
|
|
84
84
|
h as flattenDynamicContentList,
|
|
85
85
|
F as getCsrfToken,
|
|
86
86
|
C as isPlainObject,
|