@useinsider/guido 3.30.0-beta.232ea3c → 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 +52 -0
- package/dist/@types/config/schemas.js +40 -33
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +128 -113
- 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/useHtmlCompiler.js +15 -13
- package/dist/composables/useInfoBoxPosition.js +16 -0
- package/dist/composables/useStripo.js +59 -57
- package/dist/config/compiler/liquidCompilerRules.js +13 -5
- package/dist/config/migrator/itemsBlockMigrator.js +164 -161
- package/dist/enums/dynamic-content.js +180 -2
- package/dist/extensions/DynamicContent/dynamic-content.js +56 -33
- package/dist/guido.css +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/@types/config/schemas.d.ts +16 -0
- package/dist/src/@types/generic.d.ts +11 -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 +6 -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/extensions/DynamicContent/dynamic-content.d.ts +11 -0
- package/dist/src/stores/config.d.ts +63 -0
- package/dist/src/utils/clipboardText.d.ts +1 -0
- package/dist/src/utils/dynamicContentPicker.d.ts +43 -0
- package/dist/src/utils/genericUtil.d.ts +7 -2
- package/dist/src/utils/linkTokenPaste.d.ts +3 -0
- package/dist/src/utils/liquidLinkQuotes.d.ts +4 -0
- package/dist/utils/clipboardText.js +31 -0
- package/dist/utils/dynamicContentPicker.js +88 -0
- package/dist/utils/genericUtil.js +53 -43
- package/dist/utils/linkTokenPaste.js +28 -0
- package/dist/utils/liquidLinkQuotes.js +10 -0
- package/dist/utils/pairProductVariables.js +98 -108
- package/package.json +1 -1
|
@@ -35,10 +35,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
35
35
|
descriptionText: string;
|
|
36
36
|
}>>>, {
|
|
37
37
|
size: "small" | "medium" | "large";
|
|
38
|
+
descriptionText: string;
|
|
38
39
|
className: string;
|
|
39
40
|
closeOnOutsideClick: boolean;
|
|
40
41
|
descriptionStatus: boolean;
|
|
41
|
-
descriptionText: string;
|
|
42
42
|
}>;
|
|
43
43
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
44
|
export default _default;
|
|
@@ -82,6 +82,7 @@ export declare const useConfig: () => {
|
|
|
82
82
|
emailHeader: {
|
|
83
83
|
senderName: string;
|
|
84
84
|
subject: string;
|
|
85
|
+
preheader: string;
|
|
85
86
|
};
|
|
86
87
|
savedModulesFolderName: string;
|
|
87
88
|
defaultModulesFolderName: string;
|
|
@@ -106,6 +107,8 @@ export declare const useConfig: () => {
|
|
|
106
107
|
linkTrackingIds: boolean;
|
|
107
108
|
allowSaveWithErrors: boolean;
|
|
108
109
|
reusableRecommendationStrategy: boolean;
|
|
110
|
+
dynamicContentSpecialLinks: boolean;
|
|
111
|
+
dynamicContentPicker: boolean;
|
|
109
112
|
legacyUnsubscribeConversion: boolean;
|
|
110
113
|
itemsPriceFormatting: boolean;
|
|
111
114
|
blockUnsubscribeLinks: boolean;
|
|
@@ -226,6 +229,7 @@ export declare const useConfig: () => {
|
|
|
226
229
|
emailHeader: {
|
|
227
230
|
senderName: string;
|
|
228
231
|
subject: string;
|
|
232
|
+
preheader: string;
|
|
229
233
|
};
|
|
230
234
|
savedModulesFolderName: string;
|
|
231
235
|
defaultModulesFolderName: string;
|
|
@@ -250,6 +254,8 @@ export declare const useConfig: () => {
|
|
|
250
254
|
linkTrackingIds: boolean;
|
|
251
255
|
allowSaveWithErrors: boolean;
|
|
252
256
|
reusableRecommendationStrategy: boolean;
|
|
257
|
+
dynamicContentSpecialLinks: boolean;
|
|
258
|
+
dynamicContentPicker: boolean;
|
|
253
259
|
legacyUnsubscribeConversion: boolean;
|
|
254
260
|
itemsPriceFormatting: boolean;
|
|
255
261
|
blockUnsubscribeLinks: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DynamicContentCustomFormat } from '@@/Enums/dynamic-content';
|
|
2
|
+
export declare const useDynamicContentFormat: () => {
|
|
3
|
+
isNumberFormatSupported: import("vue").ComputedRef<boolean>;
|
|
4
|
+
getFormatOptions: (formatType: DynamicContentCustomFormat) => import("@@/Enums/dynamic-content").DynamicContentFormatOption[];
|
|
5
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DynamicContent } from '@@/Types/config';
|
|
2
|
+
import type { PositionData } from '@@/Types/generic';
|
|
3
|
+
import type { PickerInitialData, PickerOption } from '@@/Utils/dynamicContentPicker';
|
|
4
|
+
export declare const useDynamicContentPicker: ({ onInsert, onClose }: {
|
|
5
|
+
onInsert: (data: DynamicContent) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}) => {
|
|
8
|
+
isPickerEnabled: import("vue").ComputedRef<boolean>;
|
|
9
|
+
picker: import("vue").Ref<{
|
|
10
|
+
visible: boolean;
|
|
11
|
+
initialData: {
|
|
12
|
+
text?: string | undefined;
|
|
13
|
+
value?: string | undefined;
|
|
14
|
+
fallback?: string | undefined;
|
|
15
|
+
format?: {
|
|
16
|
+
key: string;
|
|
17
|
+
value: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
} | null;
|
|
20
|
+
position?: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width?: number | undefined;
|
|
24
|
+
height?: number | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
pickerOptions: import("vue").ComputedRef<{
|
|
28
|
+
options: PickerOption[];
|
|
29
|
+
aooOptions: PickerOption[];
|
|
30
|
+
}>;
|
|
31
|
+
pickerAooScanContent: import("vue").ComputedRef<string>;
|
|
32
|
+
openPicker: (attribute: PickerInitialData | null | undefined, position?: PositionData) => void;
|
|
33
|
+
pickerSaveHandler: (data: PickerOption & PickerInitialData) => void;
|
|
34
|
+
pickerCloseHandler: () => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export type InfoBoxAnchor = {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
} | null | undefined;
|
|
8
|
+
export type InfoBoxSize = {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const useInfoBoxPosition: ({ anchor, size, isAbove }: {
|
|
13
|
+
anchor: Ref<InfoBoxAnchor>;
|
|
14
|
+
size: Ref<InfoBoxSize>;
|
|
15
|
+
isAbove: Ref<boolean>;
|
|
16
|
+
}) => {
|
|
17
|
+
positionStyle: import("vue").ComputedRef<{
|
|
18
|
+
left: string;
|
|
19
|
+
bottom: string;
|
|
20
|
+
} | {
|
|
21
|
+
left: string;
|
|
22
|
+
top: string;
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
export declare enum ModuleDynamicContentAttribute {
|
|
2
2
|
Pending = "data-guido-dc-pending"
|
|
3
3
|
}
|
|
4
|
+
export declare enum DynamicContentAttributeType {
|
|
5
|
+
Datetime = "datetime",
|
|
6
|
+
Number = "number"
|
|
7
|
+
}
|
|
8
|
+
export declare enum DynamicContentCustomFormat {
|
|
9
|
+
Time = "time-format",
|
|
10
|
+
Number = "number-format"
|
|
11
|
+
}
|
|
12
|
+
export declare const ARRAY_OF_OBJECTS_TYPE = "array_of_objects";
|
|
13
|
+
export declare const ARRAY_OF_OBJECTS_CATEGORY_VALUE = "array-of-objects";
|
|
14
|
+
export declare const ARRAY_OF_OBJECTS_LABEL_BASE = "dynamic-content.array-of-objects";
|
|
15
|
+
export declare const AOO_INFO_TEXT_KEY = "dynamic-content.array-of-objects-info-text";
|
|
16
|
+
export declare const AOO_INFO_TEXT_TEMPLATE = "Order the objects by {key} {order} and return top {limit}.";
|
|
17
|
+
export type DynamicContentFormatOption = {
|
|
18
|
+
text: string;
|
|
19
|
+
value: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const PongoTimeFormats: DynamicContentFormatOption[];
|
|
23
|
+
export declare const LiquidTimeFormats: DynamicContentFormatOption[];
|
|
24
|
+
export declare const NumberFormats: DynamicContentFormatOption[];
|
|
@@ -10,6 +10,8 @@ export declare class DynamicContentUiElementExtension extends UIElement {
|
|
|
10
10
|
private lastClickedElement;
|
|
11
11
|
private lastClickedFrame;
|
|
12
12
|
private mousedownListener;
|
|
13
|
+
private clipboardWindow;
|
|
14
|
+
private readonly clipboardListener;
|
|
13
15
|
getId(): string;
|
|
14
16
|
onRender(container: HTMLElement): void;
|
|
15
17
|
onDestroy(): void;
|
|
@@ -37,6 +39,15 @@ export declare class DynamicContentUiElementExtension extends UIElement {
|
|
|
37
39
|
* Workaround from Stripo intercepting click events - tracks mousedown events instead
|
|
38
40
|
*/
|
|
39
41
|
private _setupCoordinateTracking;
|
|
42
|
+
/**
|
|
43
|
+
* Listens on the canvas window so it runs after Stripo's own copy handler
|
|
44
|
+
*/
|
|
45
|
+
private _setupClipboardTracking;
|
|
46
|
+
private _cleanupClipboardTracking;
|
|
47
|
+
/**
|
|
48
|
+
* Link and image fields paste the plain flavour, where Stripo puts the chip label
|
|
49
|
+
*/
|
|
50
|
+
private _writeTokenAsPlainText;
|
|
40
51
|
/**
|
|
41
52
|
* Gets the editor iframe element
|
|
42
53
|
*/
|
|
@@ -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;
|
|
@@ -111,6 +112,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
111
112
|
linkTrackingIds: boolean;
|
|
112
113
|
allowSaveWithErrors: boolean;
|
|
113
114
|
reusableRecommendationStrategy: boolean;
|
|
115
|
+
dynamicContentSpecialLinks: boolean;
|
|
116
|
+
dynamicContentPicker: boolean;
|
|
114
117
|
legacyUnsubscribeConversion: boolean;
|
|
115
118
|
itemsPriceFormatting: boolean;
|
|
116
119
|
blockUnsubscribeLinks: boolean;
|
|
@@ -237,6 +240,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
237
240
|
emailHeader: {
|
|
238
241
|
senderName: string;
|
|
239
242
|
subject: string;
|
|
243
|
+
preheader: string;
|
|
240
244
|
};
|
|
241
245
|
savedModulesFolderName: string;
|
|
242
246
|
defaultModulesFolderName: string;
|
|
@@ -261,6 +265,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
261
265
|
linkTrackingIds: boolean;
|
|
262
266
|
allowSaveWithErrors: boolean;
|
|
263
267
|
reusableRecommendationStrategy: boolean;
|
|
268
|
+
dynamicContentSpecialLinks: boolean;
|
|
269
|
+
dynamicContentPicker: boolean;
|
|
264
270
|
legacyUnsubscribeConversion: boolean;
|
|
265
271
|
itemsPriceFormatting: boolean;
|
|
266
272
|
blockUnsubscribeLinks: boolean;
|
|
@@ -387,6 +393,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
387
393
|
emailHeader: {
|
|
388
394
|
senderName: string;
|
|
389
395
|
subject: string;
|
|
396
|
+
preheader: string;
|
|
390
397
|
};
|
|
391
398
|
savedModulesFolderName: string;
|
|
392
399
|
defaultModulesFolderName: string;
|
|
@@ -411,6 +418,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
411
418
|
linkTrackingIds: boolean;
|
|
412
419
|
allowSaveWithErrors: boolean;
|
|
413
420
|
reusableRecommendationStrategy: boolean;
|
|
421
|
+
dynamicContentSpecialLinks: boolean;
|
|
422
|
+
dynamicContentPicker: boolean;
|
|
414
423
|
legacyUnsubscribeConversion: boolean;
|
|
415
424
|
itemsPriceFormatting: boolean;
|
|
416
425
|
blockUnsubscribeLinks: boolean;
|
|
@@ -537,6 +546,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
537
546
|
emailHeader: {
|
|
538
547
|
senderName: string;
|
|
539
548
|
subject: string;
|
|
549
|
+
preheader: string;
|
|
540
550
|
};
|
|
541
551
|
savedModulesFolderName: string;
|
|
542
552
|
defaultModulesFolderName: string;
|
|
@@ -561,6 +571,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
561
571
|
linkTrackingIds: boolean;
|
|
562
572
|
allowSaveWithErrors: boolean;
|
|
563
573
|
reusableRecommendationStrategy: boolean;
|
|
574
|
+
dynamicContentSpecialLinks: boolean;
|
|
575
|
+
dynamicContentPicker: boolean;
|
|
564
576
|
legacyUnsubscribeConversion: boolean;
|
|
565
577
|
itemsPriceFormatting: boolean;
|
|
566
578
|
blockUnsubscribeLinks: boolean;
|
|
@@ -687,6 +699,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
687
699
|
emailHeader: {
|
|
688
700
|
senderName: string;
|
|
689
701
|
subject: string;
|
|
702
|
+
preheader: string;
|
|
690
703
|
};
|
|
691
704
|
savedModulesFolderName: string;
|
|
692
705
|
defaultModulesFolderName: string;
|
|
@@ -711,6 +724,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
711
724
|
linkTrackingIds: boolean;
|
|
712
725
|
allowSaveWithErrors: boolean;
|
|
713
726
|
reusableRecommendationStrategy: boolean;
|
|
727
|
+
dynamicContentSpecialLinks: boolean;
|
|
728
|
+
dynamicContentPicker: boolean;
|
|
714
729
|
legacyUnsubscribeConversion: boolean;
|
|
715
730
|
itemsPriceFormatting: boolean;
|
|
716
731
|
blockUnsubscribeLinks: boolean;
|
|
@@ -837,6 +852,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
837
852
|
emailHeader: {
|
|
838
853
|
senderName: string;
|
|
839
854
|
subject: string;
|
|
855
|
+
preheader: string;
|
|
840
856
|
};
|
|
841
857
|
savedModulesFolderName: string;
|
|
842
858
|
defaultModulesFolderName: string;
|
|
@@ -861,6 +877,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
861
877
|
linkTrackingIds: boolean;
|
|
862
878
|
allowSaveWithErrors: boolean;
|
|
863
879
|
reusableRecommendationStrategy: boolean;
|
|
880
|
+
dynamicContentSpecialLinks: boolean;
|
|
881
|
+
dynamicContentPicker: boolean;
|
|
864
882
|
legacyUnsubscribeConversion: boolean;
|
|
865
883
|
itemsPriceFormatting: boolean;
|
|
866
884
|
blockUnsubscribeLinks: boolean;
|
|
@@ -987,6 +1005,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
987
1005
|
emailHeader: {
|
|
988
1006
|
senderName: string;
|
|
989
1007
|
subject: string;
|
|
1008
|
+
preheader: string;
|
|
990
1009
|
};
|
|
991
1010
|
savedModulesFolderName: string;
|
|
992
1011
|
defaultModulesFolderName: string;
|
|
@@ -1011,6 +1030,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1011
1030
|
linkTrackingIds: boolean;
|
|
1012
1031
|
allowSaveWithErrors: boolean;
|
|
1013
1032
|
reusableRecommendationStrategy: boolean;
|
|
1033
|
+
dynamicContentSpecialLinks: boolean;
|
|
1034
|
+
dynamicContentPicker: boolean;
|
|
1014
1035
|
legacyUnsubscribeConversion: boolean;
|
|
1015
1036
|
itemsPriceFormatting: boolean;
|
|
1016
1037
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1137,6 +1158,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1137
1158
|
emailHeader: {
|
|
1138
1159
|
senderName: string;
|
|
1139
1160
|
subject: string;
|
|
1161
|
+
preheader: string;
|
|
1140
1162
|
};
|
|
1141
1163
|
savedModulesFolderName: string;
|
|
1142
1164
|
defaultModulesFolderName: string;
|
|
@@ -1161,6 +1183,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1161
1183
|
linkTrackingIds: boolean;
|
|
1162
1184
|
allowSaveWithErrors: boolean;
|
|
1163
1185
|
reusableRecommendationStrategy: boolean;
|
|
1186
|
+
dynamicContentSpecialLinks: boolean;
|
|
1187
|
+
dynamicContentPicker: boolean;
|
|
1164
1188
|
legacyUnsubscribeConversion: boolean;
|
|
1165
1189
|
itemsPriceFormatting: boolean;
|
|
1166
1190
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1287,6 +1311,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1287
1311
|
emailHeader: {
|
|
1288
1312
|
senderName: string;
|
|
1289
1313
|
subject: string;
|
|
1314
|
+
preheader: string;
|
|
1290
1315
|
};
|
|
1291
1316
|
savedModulesFolderName: string;
|
|
1292
1317
|
defaultModulesFolderName: string;
|
|
@@ -1311,6 +1336,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1311
1336
|
linkTrackingIds: boolean;
|
|
1312
1337
|
allowSaveWithErrors: boolean;
|
|
1313
1338
|
reusableRecommendationStrategy: boolean;
|
|
1339
|
+
dynamicContentSpecialLinks: boolean;
|
|
1340
|
+
dynamicContentPicker: boolean;
|
|
1314
1341
|
legacyUnsubscribeConversion: boolean;
|
|
1315
1342
|
itemsPriceFormatting: boolean;
|
|
1316
1343
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1437,6 +1464,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1437
1464
|
emailHeader: {
|
|
1438
1465
|
senderName: string;
|
|
1439
1466
|
subject: string;
|
|
1467
|
+
preheader: string;
|
|
1440
1468
|
};
|
|
1441
1469
|
savedModulesFolderName: string;
|
|
1442
1470
|
defaultModulesFolderName: string;
|
|
@@ -1461,6 +1489,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1461
1489
|
linkTrackingIds: boolean;
|
|
1462
1490
|
allowSaveWithErrors: boolean;
|
|
1463
1491
|
reusableRecommendationStrategy: boolean;
|
|
1492
|
+
dynamicContentSpecialLinks: boolean;
|
|
1493
|
+
dynamicContentPicker: boolean;
|
|
1464
1494
|
legacyUnsubscribeConversion: boolean;
|
|
1465
1495
|
itemsPriceFormatting: boolean;
|
|
1466
1496
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1587,6 +1617,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1587
1617
|
emailHeader: {
|
|
1588
1618
|
senderName: string;
|
|
1589
1619
|
subject: string;
|
|
1620
|
+
preheader: string;
|
|
1590
1621
|
};
|
|
1591
1622
|
savedModulesFolderName: string;
|
|
1592
1623
|
defaultModulesFolderName: string;
|
|
@@ -1611,6 +1642,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1611
1642
|
linkTrackingIds: boolean;
|
|
1612
1643
|
allowSaveWithErrors: boolean;
|
|
1613
1644
|
reusableRecommendationStrategy: boolean;
|
|
1645
|
+
dynamicContentSpecialLinks: boolean;
|
|
1646
|
+
dynamicContentPicker: boolean;
|
|
1614
1647
|
legacyUnsubscribeConversion: boolean;
|
|
1615
1648
|
itemsPriceFormatting: boolean;
|
|
1616
1649
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1737,6 +1770,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1737
1770
|
emailHeader: {
|
|
1738
1771
|
senderName: string;
|
|
1739
1772
|
subject: string;
|
|
1773
|
+
preheader: string;
|
|
1740
1774
|
};
|
|
1741
1775
|
savedModulesFolderName: string;
|
|
1742
1776
|
defaultModulesFolderName: string;
|
|
@@ -1761,6 +1795,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1761
1795
|
linkTrackingIds: boolean;
|
|
1762
1796
|
allowSaveWithErrors: boolean;
|
|
1763
1797
|
reusableRecommendationStrategy: boolean;
|
|
1798
|
+
dynamicContentSpecialLinks: boolean;
|
|
1799
|
+
dynamicContentPicker: boolean;
|
|
1764
1800
|
legacyUnsubscribeConversion: boolean;
|
|
1765
1801
|
itemsPriceFormatting: boolean;
|
|
1766
1802
|
blockUnsubscribeLinks: boolean;
|
|
@@ -1887,6 +1923,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1887
1923
|
emailHeader: {
|
|
1888
1924
|
senderName: string;
|
|
1889
1925
|
subject: string;
|
|
1926
|
+
preheader: string;
|
|
1890
1927
|
};
|
|
1891
1928
|
savedModulesFolderName: string;
|
|
1892
1929
|
defaultModulesFolderName: string;
|
|
@@ -1911,6 +1948,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1911
1948
|
linkTrackingIds: boolean;
|
|
1912
1949
|
allowSaveWithErrors: boolean;
|
|
1913
1950
|
reusableRecommendationStrategy: boolean;
|
|
1951
|
+
dynamicContentSpecialLinks: boolean;
|
|
1952
|
+
dynamicContentPicker: boolean;
|
|
1914
1953
|
legacyUnsubscribeConversion: boolean;
|
|
1915
1954
|
itemsPriceFormatting: boolean;
|
|
1916
1955
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2037,6 +2076,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2037
2076
|
emailHeader: {
|
|
2038
2077
|
senderName: string;
|
|
2039
2078
|
subject: string;
|
|
2079
|
+
preheader: string;
|
|
2040
2080
|
};
|
|
2041
2081
|
savedModulesFolderName: string;
|
|
2042
2082
|
defaultModulesFolderName: string;
|
|
@@ -2061,6 +2101,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2061
2101
|
linkTrackingIds: boolean;
|
|
2062
2102
|
allowSaveWithErrors: boolean;
|
|
2063
2103
|
reusableRecommendationStrategy: boolean;
|
|
2104
|
+
dynamicContentSpecialLinks: boolean;
|
|
2105
|
+
dynamicContentPicker: boolean;
|
|
2064
2106
|
legacyUnsubscribeConversion: boolean;
|
|
2065
2107
|
itemsPriceFormatting: boolean;
|
|
2066
2108
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2187,6 +2229,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2187
2229
|
emailHeader: {
|
|
2188
2230
|
senderName: string;
|
|
2189
2231
|
subject: string;
|
|
2232
|
+
preheader: string;
|
|
2190
2233
|
};
|
|
2191
2234
|
savedModulesFolderName: string;
|
|
2192
2235
|
defaultModulesFolderName: string;
|
|
@@ -2211,6 +2254,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2211
2254
|
linkTrackingIds: boolean;
|
|
2212
2255
|
allowSaveWithErrors: boolean;
|
|
2213
2256
|
reusableRecommendationStrategy: boolean;
|
|
2257
|
+
dynamicContentSpecialLinks: boolean;
|
|
2258
|
+
dynamicContentPicker: boolean;
|
|
2214
2259
|
legacyUnsubscribeConversion: boolean;
|
|
2215
2260
|
itemsPriceFormatting: boolean;
|
|
2216
2261
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2337,6 +2382,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2337
2382
|
emailHeader: {
|
|
2338
2383
|
senderName: string;
|
|
2339
2384
|
subject: string;
|
|
2385
|
+
preheader: string;
|
|
2340
2386
|
};
|
|
2341
2387
|
savedModulesFolderName: string;
|
|
2342
2388
|
defaultModulesFolderName: string;
|
|
@@ -2361,6 +2407,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2361
2407
|
linkTrackingIds: boolean;
|
|
2362
2408
|
allowSaveWithErrors: boolean;
|
|
2363
2409
|
reusableRecommendationStrategy: boolean;
|
|
2410
|
+
dynamicContentSpecialLinks: boolean;
|
|
2411
|
+
dynamicContentPicker: boolean;
|
|
2364
2412
|
legacyUnsubscribeConversion: boolean;
|
|
2365
2413
|
itemsPriceFormatting: boolean;
|
|
2366
2414
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2487,6 +2535,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2487
2535
|
emailHeader: {
|
|
2488
2536
|
senderName: string;
|
|
2489
2537
|
subject: string;
|
|
2538
|
+
preheader: string;
|
|
2490
2539
|
};
|
|
2491
2540
|
savedModulesFolderName: string;
|
|
2492
2541
|
defaultModulesFolderName: string;
|
|
@@ -2511,6 +2560,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2511
2560
|
linkTrackingIds: boolean;
|
|
2512
2561
|
allowSaveWithErrors: boolean;
|
|
2513
2562
|
reusableRecommendationStrategy: boolean;
|
|
2563
|
+
dynamicContentSpecialLinks: boolean;
|
|
2564
|
+
dynamicContentPicker: boolean;
|
|
2514
2565
|
legacyUnsubscribeConversion: boolean;
|
|
2515
2566
|
itemsPriceFormatting: boolean;
|
|
2516
2567
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2649,6 +2700,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2649
2700
|
emailHeader: {
|
|
2650
2701
|
senderName: string;
|
|
2651
2702
|
subject: string;
|
|
2703
|
+
preheader: string;
|
|
2652
2704
|
};
|
|
2653
2705
|
savedModulesFolderName: string;
|
|
2654
2706
|
defaultModulesFolderName: string;
|
|
@@ -2673,6 +2725,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2673
2725
|
linkTrackingIds: boolean;
|
|
2674
2726
|
allowSaveWithErrors: boolean;
|
|
2675
2727
|
reusableRecommendationStrategy: boolean;
|
|
2728
|
+
dynamicContentSpecialLinks: boolean;
|
|
2729
|
+
dynamicContentPicker: boolean;
|
|
2676
2730
|
legacyUnsubscribeConversion: boolean;
|
|
2677
2731
|
itemsPriceFormatting: boolean;
|
|
2678
2732
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2799,6 +2853,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2799
2853
|
emailHeader: {
|
|
2800
2854
|
senderName: string;
|
|
2801
2855
|
subject: string;
|
|
2856
|
+
preheader: string;
|
|
2802
2857
|
};
|
|
2803
2858
|
savedModulesFolderName: string;
|
|
2804
2859
|
defaultModulesFolderName: string;
|
|
@@ -2823,6 +2878,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2823
2878
|
linkTrackingIds: boolean;
|
|
2824
2879
|
allowSaveWithErrors: boolean;
|
|
2825
2880
|
reusableRecommendationStrategy: boolean;
|
|
2881
|
+
dynamicContentSpecialLinks: boolean;
|
|
2882
|
+
dynamicContentPicker: boolean;
|
|
2826
2883
|
legacyUnsubscribeConversion: boolean;
|
|
2827
2884
|
itemsPriceFormatting: boolean;
|
|
2828
2885
|
blockUnsubscribeLinks: boolean;
|
|
@@ -2949,6 +3006,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2949
3006
|
emailHeader: {
|
|
2950
3007
|
senderName: string;
|
|
2951
3008
|
subject: string;
|
|
3009
|
+
preheader: string;
|
|
2952
3010
|
};
|
|
2953
3011
|
savedModulesFolderName: string;
|
|
2954
3012
|
defaultModulesFolderName: string;
|
|
@@ -2973,6 +3031,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2973
3031
|
linkTrackingIds: boolean;
|
|
2974
3032
|
allowSaveWithErrors: boolean;
|
|
2975
3033
|
reusableRecommendationStrategy: boolean;
|
|
3034
|
+
dynamicContentSpecialLinks: boolean;
|
|
3035
|
+
dynamicContentPicker: boolean;
|
|
2976
3036
|
legacyUnsubscribeConversion: boolean;
|
|
2977
3037
|
itemsPriceFormatting: boolean;
|
|
2978
3038
|
blockUnsubscribeLinks: boolean;
|
|
@@ -3101,6 +3161,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
3101
3161
|
emailHeader: {
|
|
3102
3162
|
senderName: string;
|
|
3103
3163
|
subject: string;
|
|
3164
|
+
preheader: string;
|
|
3104
3165
|
};
|
|
3105
3166
|
savedModulesFolderName: string;
|
|
3106
3167
|
defaultModulesFolderName: string;
|
|
@@ -3125,6 +3186,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
3125
3186
|
linkTrackingIds: boolean;
|
|
3126
3187
|
allowSaveWithErrors: boolean;
|
|
3127
3188
|
reusableRecommendationStrategy: boolean;
|
|
3189
|
+
dynamicContentSpecialLinks: boolean;
|
|
3190
|
+
dynamicContentPicker: boolean;
|
|
3128
3191
|
legacyUnsubscribeConversion: boolean;
|
|
3129
3192
|
itemsPriceFormatting: boolean;
|
|
3130
3193
|
blockUnsubscribeLinks: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clipboardHtmlToPlainText: (html: string) => string | null;
|
|
@@ -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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { DynamicContent, DynamicContentCandidate, DynamicContentList, MergeTag } from '@@/Types/generic';
|
|
1
|
+
import type { DynamicContent, DynamicContentCandidate, DynamicContentList, MergeTag, SpecialLinkGroup } from '@@/Types/generic';
|
|
2
2
|
export declare const mergeTagToDynamicContent: (mergeTag: MergeTag) => DynamicContent;
|
|
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[];
|
|
@@ -14,6 +14,11 @@ export declare const flattenDynamicContentList: (list: DynamicContentList | unde
|
|
|
14
14
|
* token — including ones repaired on module drop — render as a chip.
|
|
15
15
|
*/
|
|
16
16
|
export declare const buildMergeTagEntries: (preselected: DynamicContent[], available: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
|
|
17
|
+
/**
|
|
18
|
+
* Groups the active partner's URL attributes and every Call an API variable under
|
|
19
|
+
* their top-level category for Stripo's `specialLinks` option.
|
|
20
|
+
*/
|
|
21
|
+
export declare const buildSpecialLinkGroups: (list: DynamicContentList | undefined | null, liquidSyntax?: boolean) => SpecialLinkGroup[];
|
|
17
22
|
export declare const getCsrfToken: () => string;
|
|
18
23
|
/**
|
|
19
24
|
* URL Parameter utilities
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const i = "p, div, li, h1, h2, h3, h4, h5, h6, td", d = "style, script", l = /\u200B/g, o = (e) => {
|
|
2
|
+
const n = e.replace(/[ \t]+$/, "");
|
|
3
|
+
return n && !n.endsWith(`
|
|
4
|
+
`) ? `${n}
|
|
5
|
+
` : n;
|
|
6
|
+
}, E = (e, n) => {
|
|
7
|
+
const r = n.replace(l, "").replace(/[ \t]*[\r\n]\s*/g, " ");
|
|
8
|
+
return e + (e === "" || e.endsWith(`
|
|
9
|
+
`) ? r.replace(/^[ \t]+/, "") : r);
|
|
10
|
+
}, s = (e, n) => {
|
|
11
|
+
if (n.nodeType === Node.TEXT_NODE)
|
|
12
|
+
return E(e, n.textContent ?? "");
|
|
13
|
+
if (n.nodeType !== Node.ELEMENT_NODE)
|
|
14
|
+
return e;
|
|
15
|
+
const r = n;
|
|
16
|
+
if (r.matches(d))
|
|
17
|
+
return e;
|
|
18
|
+
if (r.matches("br"))
|
|
19
|
+
return `${e}
|
|
20
|
+
`;
|
|
21
|
+
const t = r.matches(i), c = Array.from(r.childNodes).reduce(s, t ? o(e) : e);
|
|
22
|
+
return t ? o(c) : c;
|
|
23
|
+
}, N = (e) => {
|
|
24
|
+
if (!e.includes("{{"))
|
|
25
|
+
return null;
|
|
26
|
+
const { body: n } = new DOMParser().parseFromString(e, "text/html"), r = Array.from(n.childNodes).reduce(s, "").trim();
|
|
27
|
+
return r.includes("{{") ? r : null;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
N as clipboardHtmlToPlainText
|
|
31
|
+
};
|