@useinsider/guido 3.1.1-beta.6165f1e → 3.1.1-beta.6b60896
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/dist/@types/config/schemas.js +19 -15
- package/dist/composables/useHtmlValidator.js +40 -38
- package/dist/config/compiler/unsubscribeCompilerRules.js +37 -37
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +55 -53
- package/dist/enums/recommendation.js +2 -2
- package/dist/extensions/Blocks/Recommendation/block.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +79 -81
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +17 -16
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +218 -324
- package/dist/package.json.js +1 -1
- package/dist/src/@types/config/schemas.d.ts +8 -0
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
- package/dist/src/stores/config.d.ts +36 -0
- package/dist/static/styles/components/button.css.js +7 -13
- package/dist/static/styles/components/narrow-panel.css.js +0 -52
- package/dist/utils/templatePreparation.js +16 -14
- package/package.json +3 -3
package/dist/package.json.js
CHANGED
|
@@ -95,6 +95,8 @@ export declare const TemplateSchema: v.ObjectSchema<{
|
|
|
95
95
|
readonly value: v.StringSchema<undefined>;
|
|
96
96
|
}, undefined>, undefined>;
|
|
97
97
|
}, undefined>, undefined>, readonly []>;
|
|
98
|
+
/** Valid custom field attribute names from the partner's categorized fields */
|
|
99
|
+
readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
|
|
98
100
|
/** Selected unsubscribe page IDs */
|
|
99
101
|
readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
|
|
100
102
|
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
@@ -161,6 +163,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
161
163
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
162
164
|
/** Disable modules panel in the editor */
|
|
163
165
|
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
166
|
+
/** Enable Liquid template syntax */
|
|
167
|
+
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
164
168
|
}, undefined>;
|
|
165
169
|
/**
|
|
166
170
|
* Default block types available in Stripo
|
|
@@ -422,6 +426,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
422
426
|
readonly value: v.StringSchema<undefined>;
|
|
423
427
|
}, undefined>, undefined>;
|
|
424
428
|
}, undefined>, undefined>, readonly []>;
|
|
429
|
+
/** Valid custom field attribute names from the partner's categorized fields */
|
|
430
|
+
readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
|
|
425
431
|
/** Selected unsubscribe page IDs */
|
|
426
432
|
readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
|
|
427
433
|
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
@@ -473,6 +479,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
473
479
|
readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
474
480
|
/** Disable modules panel in the editor */
|
|
475
481
|
readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
482
|
+
/** Enable Liquid template syntax */
|
|
483
|
+
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
476
484
|
}, undefined>, {}>;
|
|
477
485
|
/** Block configuration */
|
|
478
486
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -30,6 +30,7 @@ export declare const useConfig: () => {
|
|
|
30
30
|
value: string;
|
|
31
31
|
} | undefined;
|
|
32
32
|
}[];
|
|
33
|
+
customFieldAttributes: string[];
|
|
33
34
|
selectedUnsubscribePages: number[];
|
|
34
35
|
forceRecreate: boolean;
|
|
35
36
|
};
|
|
@@ -56,6 +57,7 @@ export declare const useConfig: () => {
|
|
|
56
57
|
displayConditions: boolean;
|
|
57
58
|
unsubscribe: boolean;
|
|
58
59
|
modulesDisabled: boolean;
|
|
60
|
+
liquidSyntax: boolean;
|
|
59
61
|
};
|
|
60
62
|
blocks: {
|
|
61
63
|
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")[];
|
|
@@ -121,6 +123,7 @@ export declare const useConfig: () => {
|
|
|
121
123
|
value: string;
|
|
122
124
|
} | undefined;
|
|
123
125
|
}[];
|
|
126
|
+
customFieldAttributes: string[];
|
|
124
127
|
selectedUnsubscribePages: number[];
|
|
125
128
|
forceRecreate: boolean;
|
|
126
129
|
} | null>;
|
|
@@ -147,6 +150,7 @@ export declare const useConfig: () => {
|
|
|
147
150
|
displayConditions: boolean;
|
|
148
151
|
unsubscribe: boolean;
|
|
149
152
|
modulesDisabled: boolean;
|
|
153
|
+
liquidSyntax: boolean;
|
|
150
154
|
} | null>;
|
|
151
155
|
blocks: import("vue").ComputedRef<{
|
|
152
156
|
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")[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @param alignment - Currency alignment from block config: 'before' or 'after'
|
|
7
7
|
* @returns Formatted price string with currency variable in correct position
|
|
8
8
|
*/
|
|
9
|
-
export declare function formatPriceVariable(campaignId: string, productIndex: number, attribute: string, alignment: string): string;
|
|
9
|
+
export declare function formatPriceVariable(campaignId: string, productIndex: number, attribute: string, alignment: string, prefix?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* Transforms recommendation block HTML by replacing product data with
|
|
12
12
|
* template variables.
|
|
@@ -15,7 +15,7 @@ export interface NodeWithGetStyle {
|
|
|
15
15
|
}
|
|
16
16
|
/** Interface for nodes with parent method */
|
|
17
17
|
export interface NodeWithParent {
|
|
18
|
-
parent: () => ImmutableHtmlNode |
|
|
18
|
+
parent: () => ImmutableHtmlNode | null;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Type guard to check if a node has getStyle method
|
|
@@ -38,13 +38,13 @@ export declare function isTdNode(node: unknown): node is ImmutableHtmlNode & Nod
|
|
|
38
38
|
* @param property - The CSS property name
|
|
39
39
|
* @returns The style value or null if not accessible
|
|
40
40
|
*/
|
|
41
|
-
export declare function safeGetStyle(node: ImmutableHtmlNode | null
|
|
41
|
+
export declare function safeGetStyle(node: ImmutableHtmlNode | null, property: string): string | null | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Safely retrieves the parent element of a node
|
|
44
44
|
* @param node - The node to get the parent from
|
|
45
45
|
* @returns The parent node or null if not accessible
|
|
46
46
|
*/
|
|
47
|
-
export declare function safeGetParent(node: ImmutableHtmlNode | null
|
|
47
|
+
export declare function safeGetParent(node: ImmutableHtmlNode | null): ImmutableHtmlNode | null;
|
|
48
48
|
/**
|
|
49
49
|
* Safely retrieves the tag name from a node.
|
|
50
50
|
* Handles both standard DOM tagName property and Stripo's getTagName() method.
|
|
@@ -35,6 +35,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
35
35
|
value: string;
|
|
36
36
|
} | undefined;
|
|
37
37
|
}[];
|
|
38
|
+
customFieldAttributes: string[];
|
|
38
39
|
selectedUnsubscribePages: number[];
|
|
39
40
|
forceRecreate: boolean;
|
|
40
41
|
};
|
|
@@ -61,6 +62,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
61
62
|
displayConditions: boolean;
|
|
62
63
|
unsubscribe: boolean;
|
|
63
64
|
modulesDisabled: boolean;
|
|
65
|
+
liquidSyntax: boolean;
|
|
64
66
|
};
|
|
65
67
|
blocks: {
|
|
66
68
|
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")[];
|
|
@@ -132,6 +134,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
132
134
|
value: string;
|
|
133
135
|
} | undefined;
|
|
134
136
|
}[];
|
|
137
|
+
customFieldAttributes: string[];
|
|
135
138
|
selectedUnsubscribePages: number[];
|
|
136
139
|
forceRecreate: boolean;
|
|
137
140
|
};
|
|
@@ -158,6 +161,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
158
161
|
displayConditions: boolean;
|
|
159
162
|
unsubscribe: boolean;
|
|
160
163
|
modulesDisabled: boolean;
|
|
164
|
+
liquidSyntax: boolean;
|
|
161
165
|
};
|
|
162
166
|
blocks: {
|
|
163
167
|
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")[];
|
|
@@ -229,6 +233,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
229
233
|
value: string;
|
|
230
234
|
} | undefined;
|
|
231
235
|
}[];
|
|
236
|
+
customFieldAttributes: string[];
|
|
232
237
|
selectedUnsubscribePages: number[];
|
|
233
238
|
forceRecreate: boolean;
|
|
234
239
|
};
|
|
@@ -255,6 +260,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
255
260
|
displayConditions: boolean;
|
|
256
261
|
unsubscribe: boolean;
|
|
257
262
|
modulesDisabled: boolean;
|
|
263
|
+
liquidSyntax: boolean;
|
|
258
264
|
};
|
|
259
265
|
blocks: {
|
|
260
266
|
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")[];
|
|
@@ -326,6 +332,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
326
332
|
value: string;
|
|
327
333
|
} | undefined;
|
|
328
334
|
}[];
|
|
335
|
+
customFieldAttributes: string[];
|
|
329
336
|
selectedUnsubscribePages: number[];
|
|
330
337
|
forceRecreate: boolean;
|
|
331
338
|
};
|
|
@@ -352,6 +359,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
352
359
|
displayConditions: boolean;
|
|
353
360
|
unsubscribe: boolean;
|
|
354
361
|
modulesDisabled: boolean;
|
|
362
|
+
liquidSyntax: boolean;
|
|
355
363
|
};
|
|
356
364
|
blocks: {
|
|
357
365
|
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")[];
|
|
@@ -423,6 +431,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
423
431
|
value: string;
|
|
424
432
|
} | undefined;
|
|
425
433
|
}[];
|
|
434
|
+
customFieldAttributes: string[];
|
|
426
435
|
selectedUnsubscribePages: number[];
|
|
427
436
|
forceRecreate: boolean;
|
|
428
437
|
};
|
|
@@ -449,6 +458,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
449
458
|
displayConditions: boolean;
|
|
450
459
|
unsubscribe: boolean;
|
|
451
460
|
modulesDisabled: boolean;
|
|
461
|
+
liquidSyntax: boolean;
|
|
452
462
|
};
|
|
453
463
|
blocks: {
|
|
454
464
|
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")[];
|
|
@@ -520,6 +530,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
520
530
|
value: string;
|
|
521
531
|
} | undefined;
|
|
522
532
|
}[];
|
|
533
|
+
customFieldAttributes: string[];
|
|
523
534
|
selectedUnsubscribePages: number[];
|
|
524
535
|
forceRecreate: boolean;
|
|
525
536
|
};
|
|
@@ -546,6 +557,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
546
557
|
displayConditions: boolean;
|
|
547
558
|
unsubscribe: boolean;
|
|
548
559
|
modulesDisabled: boolean;
|
|
560
|
+
liquidSyntax: boolean;
|
|
549
561
|
};
|
|
550
562
|
blocks: {
|
|
551
563
|
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")[];
|
|
@@ -617,6 +629,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
617
629
|
value: string;
|
|
618
630
|
} | undefined;
|
|
619
631
|
}[];
|
|
632
|
+
customFieldAttributes: string[];
|
|
620
633
|
selectedUnsubscribePages: number[];
|
|
621
634
|
forceRecreate: boolean;
|
|
622
635
|
};
|
|
@@ -643,6 +656,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
643
656
|
displayConditions: boolean;
|
|
644
657
|
unsubscribe: boolean;
|
|
645
658
|
modulesDisabled: boolean;
|
|
659
|
+
liquidSyntax: boolean;
|
|
646
660
|
};
|
|
647
661
|
blocks: {
|
|
648
662
|
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")[];
|
|
@@ -714,6 +728,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
714
728
|
value: string;
|
|
715
729
|
} | undefined;
|
|
716
730
|
}[];
|
|
731
|
+
customFieldAttributes: string[];
|
|
717
732
|
selectedUnsubscribePages: number[];
|
|
718
733
|
forceRecreate: boolean;
|
|
719
734
|
};
|
|
@@ -740,6 +755,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
740
755
|
displayConditions: boolean;
|
|
741
756
|
unsubscribe: boolean;
|
|
742
757
|
modulesDisabled: boolean;
|
|
758
|
+
liquidSyntax: boolean;
|
|
743
759
|
};
|
|
744
760
|
blocks: {
|
|
745
761
|
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")[];
|
|
@@ -811,6 +827,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
811
827
|
value: string;
|
|
812
828
|
} | undefined;
|
|
813
829
|
}[];
|
|
830
|
+
customFieldAttributes: string[];
|
|
814
831
|
selectedUnsubscribePages: number[];
|
|
815
832
|
forceRecreate: boolean;
|
|
816
833
|
};
|
|
@@ -837,6 +854,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
837
854
|
displayConditions: boolean;
|
|
838
855
|
unsubscribe: boolean;
|
|
839
856
|
modulesDisabled: boolean;
|
|
857
|
+
liquidSyntax: boolean;
|
|
840
858
|
};
|
|
841
859
|
blocks: {
|
|
842
860
|
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")[];
|
|
@@ -908,6 +926,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
908
926
|
value: string;
|
|
909
927
|
} | undefined;
|
|
910
928
|
}[];
|
|
929
|
+
customFieldAttributes: string[];
|
|
911
930
|
selectedUnsubscribePages: number[];
|
|
912
931
|
forceRecreate: boolean;
|
|
913
932
|
};
|
|
@@ -934,6 +953,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
934
953
|
displayConditions: boolean;
|
|
935
954
|
unsubscribe: boolean;
|
|
936
955
|
modulesDisabled: boolean;
|
|
956
|
+
liquidSyntax: boolean;
|
|
937
957
|
};
|
|
938
958
|
blocks: {
|
|
939
959
|
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")[];
|
|
@@ -1005,6 +1025,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1005
1025
|
value: string;
|
|
1006
1026
|
} | undefined;
|
|
1007
1027
|
}[];
|
|
1028
|
+
customFieldAttributes: string[];
|
|
1008
1029
|
selectedUnsubscribePages: number[];
|
|
1009
1030
|
forceRecreate: boolean;
|
|
1010
1031
|
};
|
|
@@ -1031,6 +1052,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1031
1052
|
displayConditions: boolean;
|
|
1032
1053
|
unsubscribe: boolean;
|
|
1033
1054
|
modulesDisabled: boolean;
|
|
1055
|
+
liquidSyntax: boolean;
|
|
1034
1056
|
};
|
|
1035
1057
|
blocks: {
|
|
1036
1058
|
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")[];
|
|
@@ -1102,6 +1124,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1102
1124
|
value: string;
|
|
1103
1125
|
} | undefined;
|
|
1104
1126
|
}[];
|
|
1127
|
+
customFieldAttributes: string[];
|
|
1105
1128
|
selectedUnsubscribePages: number[];
|
|
1106
1129
|
forceRecreate: boolean;
|
|
1107
1130
|
};
|
|
@@ -1128,6 +1151,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1128
1151
|
displayConditions: boolean;
|
|
1129
1152
|
unsubscribe: boolean;
|
|
1130
1153
|
modulesDisabled: boolean;
|
|
1154
|
+
liquidSyntax: boolean;
|
|
1131
1155
|
};
|
|
1132
1156
|
blocks: {
|
|
1133
1157
|
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")[];
|
|
@@ -1199,6 +1223,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1199
1223
|
value: string;
|
|
1200
1224
|
} | undefined;
|
|
1201
1225
|
}[];
|
|
1226
|
+
customFieldAttributes: string[];
|
|
1202
1227
|
selectedUnsubscribePages: number[];
|
|
1203
1228
|
forceRecreate: boolean;
|
|
1204
1229
|
};
|
|
@@ -1225,6 +1250,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1225
1250
|
displayConditions: boolean;
|
|
1226
1251
|
unsubscribe: boolean;
|
|
1227
1252
|
modulesDisabled: boolean;
|
|
1253
|
+
liquidSyntax: boolean;
|
|
1228
1254
|
};
|
|
1229
1255
|
blocks: {
|
|
1230
1256
|
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")[];
|
|
@@ -1296,6 +1322,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1296
1322
|
value: string;
|
|
1297
1323
|
} | undefined;
|
|
1298
1324
|
}[];
|
|
1325
|
+
customFieldAttributes: string[];
|
|
1299
1326
|
selectedUnsubscribePages: number[];
|
|
1300
1327
|
forceRecreate: boolean;
|
|
1301
1328
|
};
|
|
@@ -1322,6 +1349,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1322
1349
|
displayConditions: boolean;
|
|
1323
1350
|
unsubscribe: boolean;
|
|
1324
1351
|
modulesDisabled: boolean;
|
|
1352
|
+
liquidSyntax: boolean;
|
|
1325
1353
|
};
|
|
1326
1354
|
blocks: {
|
|
1327
1355
|
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")[];
|
|
@@ -1393,6 +1421,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1393
1421
|
value: string;
|
|
1394
1422
|
} | undefined;
|
|
1395
1423
|
}[];
|
|
1424
|
+
customFieldAttributes: string[];
|
|
1396
1425
|
selectedUnsubscribePages: number[];
|
|
1397
1426
|
forceRecreate: boolean;
|
|
1398
1427
|
};
|
|
@@ -1419,6 +1448,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1419
1448
|
displayConditions: boolean;
|
|
1420
1449
|
unsubscribe: boolean;
|
|
1421
1450
|
modulesDisabled: boolean;
|
|
1451
|
+
liquidSyntax: boolean;
|
|
1422
1452
|
};
|
|
1423
1453
|
blocks: {
|
|
1424
1454
|
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")[];
|
|
@@ -1490,6 +1520,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1490
1520
|
value: string;
|
|
1491
1521
|
} | undefined;
|
|
1492
1522
|
}[];
|
|
1523
|
+
customFieldAttributes: string[];
|
|
1493
1524
|
selectedUnsubscribePages: number[];
|
|
1494
1525
|
forceRecreate: boolean;
|
|
1495
1526
|
};
|
|
@@ -1516,6 +1547,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1516
1547
|
displayConditions: boolean;
|
|
1517
1548
|
unsubscribe: boolean;
|
|
1518
1549
|
modulesDisabled: boolean;
|
|
1550
|
+
liquidSyntax: boolean;
|
|
1519
1551
|
};
|
|
1520
1552
|
blocks: {
|
|
1521
1553
|
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")[];
|
|
@@ -1587,6 +1619,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1587
1619
|
value: string;
|
|
1588
1620
|
} | undefined;
|
|
1589
1621
|
}[];
|
|
1622
|
+
customFieldAttributes: string[];
|
|
1590
1623
|
selectedUnsubscribePages: number[];
|
|
1591
1624
|
forceRecreate: boolean;
|
|
1592
1625
|
};
|
|
@@ -1613,6 +1646,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1613
1646
|
displayConditions: boolean;
|
|
1614
1647
|
unsubscribe: boolean;
|
|
1615
1648
|
modulesDisabled: boolean;
|
|
1649
|
+
liquidSyntax: boolean;
|
|
1616
1650
|
};
|
|
1617
1651
|
blocks: {
|
|
1618
1652
|
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")[];
|
|
@@ -1684,6 +1718,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1684
1718
|
value: string;
|
|
1685
1719
|
} | undefined;
|
|
1686
1720
|
}[];
|
|
1721
|
+
customFieldAttributes: string[];
|
|
1687
1722
|
selectedUnsubscribePages: number[];
|
|
1688
1723
|
forceRecreate: boolean;
|
|
1689
1724
|
};
|
|
@@ -1710,6 +1745,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1710
1745
|
displayConditions: boolean;
|
|
1711
1746
|
unsubscribe: boolean;
|
|
1712
1747
|
modulesDisabled: boolean;
|
|
1748
|
+
liquidSyntax: boolean;
|
|
1713
1749
|
};
|
|
1714
1750
|
blocks: {
|
|
1715
1751
|
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")[];
|
|
@@ -99,12 +99,18 @@ ue-check-button.checked:not(.flat-white) input:checked + label .icon-button {
|
|
|
99
99
|
color: var(--guido-color-primary-500);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
ue-select.full-width .button {
|
|
103
|
+
border: none !important;
|
|
104
|
+
background-color: var(--guido-color-neutral-200) !important;
|
|
105
|
+
color: var(--guido-color-neutral-800) !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
102
108
|
ue-select.full-width .button .icon-button {
|
|
103
109
|
color: var(--guido-color-gray-600) !important;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
ue-select.full-width .button:hover:not(:disabled,.disabled) {
|
|
107
|
-
background-color: var(--guido-color-
|
|
113
|
+
background-color: var(--guido-color-neutral-100) !important;
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
ue-color {
|
|
@@ -124,18 +130,6 @@ ue-select-text-input .select-text-input-toggle .button {
|
|
|
124
130
|
justify-content: center;
|
|
125
131
|
background-color: transparent !important;
|
|
126
132
|
}
|
|
127
|
-
|
|
128
|
-
.control-shadow-wrapper,
|
|
129
|
-
ue-button:not(.no-shadow,.flat-white),
|
|
130
|
-
ue-toggle:not(.no-shadow,.flat-white),
|
|
131
|
-
:is(ue-popover-toggler,ue-toggle-icon-picker,ue-emoji-toggle),
|
|
132
|
-
.button-group,
|
|
133
|
-
ue-counter:not(.no-shadow),
|
|
134
|
-
:is(ue-select,ue-mergetags,ue-font-family-select):not(.no-shadow),
|
|
135
|
-
ue-check-button:not(.no-shadow,.flat-white) {
|
|
136
|
-
background: none;
|
|
137
|
-
padding: 0;
|
|
138
|
-
}
|
|
139
133
|
`;
|
|
140
134
|
export {
|
|
141
135
|
o as default
|
|
@@ -28,58 +28,6 @@ ue-stripe-thumb:hover:not(.disabled),
|
|
|
28
28
|
border-color: var(--guido-color-primary-500);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/* Module search — initial */
|
|
32
|
-
.module-search-container {
|
|
33
|
-
background-color: var(--guido-color-gray-0);
|
|
34
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
35
|
-
border-radius: 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.module-search-container .service-element {
|
|
39
|
-
background-color: unset;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.module-filter-toggle {
|
|
43
|
-
top: -1px !important;
|
|
44
|
-
right: -1px !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.module-filter-toggle > .button,
|
|
48
|
-
.module-search-container:hover .module-filter-toggle > .button {
|
|
49
|
-
border: none;
|
|
50
|
-
background: transparent;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Module search — hover */
|
|
54
|
-
.module-search-container:has(.module-search-chip-input:hover) {
|
|
55
|
-
border-color: var(--guido-color-primary-500);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.module-search-container .module-search-chip-input .service-element:hover {
|
|
59
|
-
background-color: var(--guido-color-gray-0);
|
|
60
|
-
border-radius: 4px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.module-search-container .module-filter-toggle:hover > .button {
|
|
64
|
-
background-color: var(--guido-color-gray-1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Module search — selected (.on) */
|
|
68
|
-
.module-search-container:has(.module-search-chip-input.on),
|
|
69
|
-
.module-search-container:has(.module-search-chip-input.on):hover {
|
|
70
|
-
border-color: var(--guido-color-primary-500);
|
|
71
|
-
box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.module-search-container .module-search-chip-input.on .input-section {
|
|
75
|
-
background-color: unset;
|
|
76
|
-
box-shadow: unset;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.module-categories-list .menu-item {
|
|
80
|
-
padding: 8px 20px !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
31
|
.modules-layout-wrapper {
|
|
84
32
|
padding: 0 16px 16px;
|
|
85
33
|
grid-row-gap: 16px;
|
|
@@ -3,22 +3,24 @@ import { useHtmlCompiler as C } from "../composables/useHtmlCompiler.js";
|
|
|
3
3
|
import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
4
4
|
import { useDynamicContentStore as x } from "../stores/dynamic-content.js";
|
|
5
5
|
import { useUnsubscribeStore as y } from "../stores/unsubscribe.js";
|
|
6
|
-
const
|
|
7
|
-
const o = x(),
|
|
6
|
+
const w = () => {
|
|
7
|
+
const o = x(), e = y(), { getCompiledEmail: i, getTemplateData: s, editorSave: n } = f(), { compileHtml: a } = C();
|
|
8
8
|
return {
|
|
9
9
|
prepareTemplateDetails: async () => {
|
|
10
|
-
const { html:
|
|
10
|
+
const { html: m, ampHtml: r = "", ampErrors: c = [] } = await i({
|
|
11
11
|
minimize: !0,
|
|
12
12
|
resetDataSavedFlag: !1
|
|
13
|
-
}), { html: l, css: p, syncModulesIds: u = [] } = await
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
}), { html: l, css: p, syncModulesIds: u = [] } = await s();
|
|
14
|
+
e.selectedUnsubscribePages.length && await e.fetchTemplates();
|
|
15
|
+
const { compiledHtml: d, stats: t, appliedRules: g } = a(m), S = o.getSelectedDynamicContentList, b = T();
|
|
16
|
+
return n(), console.debug("HTML Compilation Stats:", {
|
|
17
|
+
originalSize: t.originalSize,
|
|
18
|
+
compiledSize: t.compiledSize,
|
|
19
|
+
reduction: `${t.reductionPercentage.toFixed(2)}%`,
|
|
20
|
+
appliedRules: g,
|
|
21
|
+
executionTime: `${t.executionTime.toFixed(2)}ms`
|
|
20
22
|
}), {
|
|
21
|
-
dynamicContentList:
|
|
23
|
+
dynamicContentList: S,
|
|
22
24
|
compiledHtml: d,
|
|
23
25
|
rawHtml: l,
|
|
24
26
|
css: p,
|
|
@@ -30,13 +32,13 @@ const E = () => {
|
|
|
30
32
|
configs: {}
|
|
31
33
|
},
|
|
32
34
|
unsubscribe: {
|
|
33
|
-
status:
|
|
34
|
-
config:
|
|
35
|
+
status: e.unsubscribePagesStatus,
|
|
36
|
+
config: e.selectedUnsubscribePages
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
w as useTemplatePreparation
|
|
42
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.1.1-beta.
|
|
3
|
+
"version": "3.1.1-beta.6b60896",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stripoinc/ui-editor-extensions": "3.
|
|
35
|
+
"@stripoinc/ui-editor-extensions": "3.5.0",
|
|
36
36
|
"@useinsider/design-system-vue": "0.14.28",
|
|
37
37
|
"@vueuse/core": "11.3.0",
|
|
38
38
|
"lodash-es": "4.17.21",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"guido": {
|
|
88
88
|
"stripo": {
|
|
89
|
-
"version": "2.
|
|
89
|
+
"version": "2.54.0"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|