@useinsider/guido 3.2.0-beta.e01b42a → 3.2.0
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 +1 -0
- package/dist/@types/config/schemas.js +66 -54
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +91 -81
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +7 -7
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +12 -20
- package/dist/components/organisms/header/EditorActions.vue.js +2 -2
- package/dist/components/organisms/header/EditorActions.vue2.js +51 -36
- package/dist/components/organisms/header/RightSlot.vue.js +10 -10
- package/dist/components/organisms/header/RightSlot.vue2.js +16 -13
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +18 -17
- package/dist/composables/useHtmlCompiler.js +23 -21
- package/dist/composables/useHtmlValidator.js +40 -38
- package/dist/composables/usePreviewMode.js +20 -16
- package/dist/composables/useSave.js +23 -15
- package/dist/composables/useStripo.js +44 -41
- package/dist/composables/validators/useLiquidValidator.js +42 -0
- package/dist/config/compiler/liquidCompilerRules.js +15 -0
- package/dist/config/compiler/recommendationCompilerRules.js +158 -44
- package/dist/config/compiler/unsubscribeCompilerRules.js +37 -37
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +49 -46
- package/dist/config/migrator/checkboxMigrator.js +5 -3
- package/dist/config/migrator/radioButtonMigrator.js +14 -12
- package/dist/enums/extensions/recommendationBlock.js +14 -11
- package/dist/enums/recommendation.js +2 -2
- package/dist/extensions/Blocks/CouponBlock/template.js +24 -13
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +27 -11
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +185 -172
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +94 -92
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +31 -31
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +7 -5
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +30 -29
- package/dist/extensions/Blocks/Recommendation/templates/index.js +7 -7
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +3 -1
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +20 -20
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +57 -50
- package/dist/extensions/DynamicContent/dynamic-content.js +17 -12
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +218 -324
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +15 -15
- package/dist/services/stripoApi.js +9 -9
- package/dist/services/templateLibraryApi.js +48 -46
- package/dist/src/@types/config/index.d.ts +1 -1
- package/dist/src/@types/config/schemas.d.ts +28 -0
- package/dist/src/@types/config/types.d.ts +3 -1
- package/dist/src/@types/generic.d.ts +0 -1
- package/dist/src/@types/save-as-template.d.ts +1 -0
- package/dist/src/composables/useConfig.d.ts +12 -0
- package/dist/src/composables/validators/useLiquidValidator.d.ts +3 -0
- package/dist/src/config/compiler/liquidCompilerRules.d.ts +2 -0
- package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +1 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +3 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +4 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +3 -3
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +20 -3
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
- package/dist/src/services/templateLibraryApi.d.ts +1 -1
- package/dist/src/stores/config.d.ts +108 -0
- package/dist/src/stores/preview.d.ts +3 -0
- package/dist/src/utils/genericUtil.d.ts +1 -1
- package/dist/src/utils/htmlCompiler.d.ts +2 -1
- package/dist/static/styles/base.css.js +7 -2
- package/dist/static/styles/components/button.css.js +7 -13
- package/dist/static/styles/components/narrow-panel.css.js +0 -52
- package/dist/stores/preview.js +4 -3
- package/dist/utils/genericUtil.js +42 -20
- package/dist/utils/htmlCompiler.js +48 -41
- package/dist/utils/templatePreparation.js +36 -25
- package/dist/utils/tooltipUtils.js +4 -5
- package/package.json +4 -4
|
@@ -22,6 +22,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
22
22
|
productType: 60 | 49 | 97;
|
|
23
23
|
messageType: 1 | 2;
|
|
24
24
|
username: string;
|
|
25
|
+
fallbackFont?: {
|
|
26
|
+
name: string;
|
|
27
|
+
family: string;
|
|
28
|
+
} | undefined;
|
|
25
29
|
};
|
|
26
30
|
template: {
|
|
27
31
|
html: string;
|
|
@@ -35,6 +39,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
35
39
|
value: string;
|
|
36
40
|
} | undefined;
|
|
37
41
|
}[];
|
|
42
|
+
customFieldAttributes: string[];
|
|
38
43
|
selectedUnsubscribePages: number[];
|
|
39
44
|
forceRecreate: boolean;
|
|
40
45
|
};
|
|
@@ -61,6 +66,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
61
66
|
displayConditions: boolean;
|
|
62
67
|
unsubscribe: boolean;
|
|
63
68
|
modulesDisabled: boolean;
|
|
69
|
+
liquidSyntax: boolean;
|
|
64
70
|
};
|
|
65
71
|
blocks: {
|
|
66
72
|
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")[];
|
|
@@ -119,6 +125,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
119
125
|
productType: 60 | 49 | 97;
|
|
120
126
|
messageType: 1 | 2;
|
|
121
127
|
username: string;
|
|
128
|
+
fallbackFont?: {
|
|
129
|
+
name: string;
|
|
130
|
+
family: string;
|
|
131
|
+
} | undefined;
|
|
122
132
|
};
|
|
123
133
|
template: {
|
|
124
134
|
html: string;
|
|
@@ -132,6 +142,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
132
142
|
value: string;
|
|
133
143
|
} | undefined;
|
|
134
144
|
}[];
|
|
145
|
+
customFieldAttributes: string[];
|
|
135
146
|
selectedUnsubscribePages: number[];
|
|
136
147
|
forceRecreate: boolean;
|
|
137
148
|
};
|
|
@@ -158,6 +169,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
158
169
|
displayConditions: boolean;
|
|
159
170
|
unsubscribe: boolean;
|
|
160
171
|
modulesDisabled: boolean;
|
|
172
|
+
liquidSyntax: boolean;
|
|
161
173
|
};
|
|
162
174
|
blocks: {
|
|
163
175
|
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")[];
|
|
@@ -216,6 +228,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
216
228
|
productType: 60 | 49 | 97;
|
|
217
229
|
messageType: 1 | 2;
|
|
218
230
|
username: string;
|
|
231
|
+
fallbackFont?: {
|
|
232
|
+
name: string;
|
|
233
|
+
family: string;
|
|
234
|
+
} | undefined;
|
|
219
235
|
};
|
|
220
236
|
template: {
|
|
221
237
|
html: string;
|
|
@@ -229,6 +245,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
229
245
|
value: string;
|
|
230
246
|
} | undefined;
|
|
231
247
|
}[];
|
|
248
|
+
customFieldAttributes: string[];
|
|
232
249
|
selectedUnsubscribePages: number[];
|
|
233
250
|
forceRecreate: boolean;
|
|
234
251
|
};
|
|
@@ -255,6 +272,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
255
272
|
displayConditions: boolean;
|
|
256
273
|
unsubscribe: boolean;
|
|
257
274
|
modulesDisabled: boolean;
|
|
275
|
+
liquidSyntax: boolean;
|
|
258
276
|
};
|
|
259
277
|
blocks: {
|
|
260
278
|
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")[];
|
|
@@ -313,6 +331,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
313
331
|
productType: 60 | 49 | 97;
|
|
314
332
|
messageType: 1 | 2;
|
|
315
333
|
username: string;
|
|
334
|
+
fallbackFont?: {
|
|
335
|
+
name: string;
|
|
336
|
+
family: string;
|
|
337
|
+
} | undefined;
|
|
316
338
|
};
|
|
317
339
|
template: {
|
|
318
340
|
html: string;
|
|
@@ -326,6 +348,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
326
348
|
value: string;
|
|
327
349
|
} | undefined;
|
|
328
350
|
}[];
|
|
351
|
+
customFieldAttributes: string[];
|
|
329
352
|
selectedUnsubscribePages: number[];
|
|
330
353
|
forceRecreate: boolean;
|
|
331
354
|
};
|
|
@@ -352,6 +375,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
352
375
|
displayConditions: boolean;
|
|
353
376
|
unsubscribe: boolean;
|
|
354
377
|
modulesDisabled: boolean;
|
|
378
|
+
liquidSyntax: boolean;
|
|
355
379
|
};
|
|
356
380
|
blocks: {
|
|
357
381
|
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")[];
|
|
@@ -410,6 +434,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
410
434
|
productType: 60 | 49 | 97;
|
|
411
435
|
messageType: 1 | 2;
|
|
412
436
|
username: string;
|
|
437
|
+
fallbackFont?: {
|
|
438
|
+
name: string;
|
|
439
|
+
family: string;
|
|
440
|
+
} | undefined;
|
|
413
441
|
};
|
|
414
442
|
template: {
|
|
415
443
|
html: string;
|
|
@@ -423,6 +451,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
423
451
|
value: string;
|
|
424
452
|
} | undefined;
|
|
425
453
|
}[];
|
|
454
|
+
customFieldAttributes: string[];
|
|
426
455
|
selectedUnsubscribePages: number[];
|
|
427
456
|
forceRecreate: boolean;
|
|
428
457
|
};
|
|
@@ -449,6 +478,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
449
478
|
displayConditions: boolean;
|
|
450
479
|
unsubscribe: boolean;
|
|
451
480
|
modulesDisabled: boolean;
|
|
481
|
+
liquidSyntax: boolean;
|
|
452
482
|
};
|
|
453
483
|
blocks: {
|
|
454
484
|
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")[];
|
|
@@ -507,6 +537,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
507
537
|
productType: 60 | 49 | 97;
|
|
508
538
|
messageType: 1 | 2;
|
|
509
539
|
username: string;
|
|
540
|
+
fallbackFont?: {
|
|
541
|
+
name: string;
|
|
542
|
+
family: string;
|
|
543
|
+
} | undefined;
|
|
510
544
|
};
|
|
511
545
|
template: {
|
|
512
546
|
html: string;
|
|
@@ -520,6 +554,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
520
554
|
value: string;
|
|
521
555
|
} | undefined;
|
|
522
556
|
}[];
|
|
557
|
+
customFieldAttributes: string[];
|
|
523
558
|
selectedUnsubscribePages: number[];
|
|
524
559
|
forceRecreate: boolean;
|
|
525
560
|
};
|
|
@@ -546,6 +581,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
546
581
|
displayConditions: boolean;
|
|
547
582
|
unsubscribe: boolean;
|
|
548
583
|
modulesDisabled: boolean;
|
|
584
|
+
liquidSyntax: boolean;
|
|
549
585
|
};
|
|
550
586
|
blocks: {
|
|
551
587
|
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")[];
|
|
@@ -604,6 +640,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
604
640
|
productType: 60 | 49 | 97;
|
|
605
641
|
messageType: 1 | 2;
|
|
606
642
|
username: string;
|
|
643
|
+
fallbackFont?: {
|
|
644
|
+
name: string;
|
|
645
|
+
family: string;
|
|
646
|
+
} | undefined;
|
|
607
647
|
};
|
|
608
648
|
template: {
|
|
609
649
|
html: string;
|
|
@@ -617,6 +657,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
617
657
|
value: string;
|
|
618
658
|
} | undefined;
|
|
619
659
|
}[];
|
|
660
|
+
customFieldAttributes: string[];
|
|
620
661
|
selectedUnsubscribePages: number[];
|
|
621
662
|
forceRecreate: boolean;
|
|
622
663
|
};
|
|
@@ -643,6 +684,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
643
684
|
displayConditions: boolean;
|
|
644
685
|
unsubscribe: boolean;
|
|
645
686
|
modulesDisabled: boolean;
|
|
687
|
+
liquidSyntax: boolean;
|
|
646
688
|
};
|
|
647
689
|
blocks: {
|
|
648
690
|
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")[];
|
|
@@ -701,6 +743,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
701
743
|
productType: 60 | 49 | 97;
|
|
702
744
|
messageType: 1 | 2;
|
|
703
745
|
username: string;
|
|
746
|
+
fallbackFont?: {
|
|
747
|
+
name: string;
|
|
748
|
+
family: string;
|
|
749
|
+
} | undefined;
|
|
704
750
|
};
|
|
705
751
|
template: {
|
|
706
752
|
html: string;
|
|
@@ -714,6 +760,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
714
760
|
value: string;
|
|
715
761
|
} | undefined;
|
|
716
762
|
}[];
|
|
763
|
+
customFieldAttributes: string[];
|
|
717
764
|
selectedUnsubscribePages: number[];
|
|
718
765
|
forceRecreate: boolean;
|
|
719
766
|
};
|
|
@@ -740,6 +787,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
740
787
|
displayConditions: boolean;
|
|
741
788
|
unsubscribe: boolean;
|
|
742
789
|
modulesDisabled: boolean;
|
|
790
|
+
liquidSyntax: boolean;
|
|
743
791
|
};
|
|
744
792
|
blocks: {
|
|
745
793
|
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")[];
|
|
@@ -798,6 +846,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
798
846
|
productType: 60 | 49 | 97;
|
|
799
847
|
messageType: 1 | 2;
|
|
800
848
|
username: string;
|
|
849
|
+
fallbackFont?: {
|
|
850
|
+
name: string;
|
|
851
|
+
family: string;
|
|
852
|
+
} | undefined;
|
|
801
853
|
};
|
|
802
854
|
template: {
|
|
803
855
|
html: string;
|
|
@@ -811,6 +863,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
811
863
|
value: string;
|
|
812
864
|
} | undefined;
|
|
813
865
|
}[];
|
|
866
|
+
customFieldAttributes: string[];
|
|
814
867
|
selectedUnsubscribePages: number[];
|
|
815
868
|
forceRecreate: boolean;
|
|
816
869
|
};
|
|
@@ -837,6 +890,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
837
890
|
displayConditions: boolean;
|
|
838
891
|
unsubscribe: boolean;
|
|
839
892
|
modulesDisabled: boolean;
|
|
893
|
+
liquidSyntax: boolean;
|
|
840
894
|
};
|
|
841
895
|
blocks: {
|
|
842
896
|
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")[];
|
|
@@ -895,6 +949,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
895
949
|
productType: 60 | 49 | 97;
|
|
896
950
|
messageType: 1 | 2;
|
|
897
951
|
username: string;
|
|
952
|
+
fallbackFont?: {
|
|
953
|
+
name: string;
|
|
954
|
+
family: string;
|
|
955
|
+
} | undefined;
|
|
898
956
|
};
|
|
899
957
|
template: {
|
|
900
958
|
html: string;
|
|
@@ -908,6 +966,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
908
966
|
value: string;
|
|
909
967
|
} | undefined;
|
|
910
968
|
}[];
|
|
969
|
+
customFieldAttributes: string[];
|
|
911
970
|
selectedUnsubscribePages: number[];
|
|
912
971
|
forceRecreate: boolean;
|
|
913
972
|
};
|
|
@@ -934,6 +993,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
934
993
|
displayConditions: boolean;
|
|
935
994
|
unsubscribe: boolean;
|
|
936
995
|
modulesDisabled: boolean;
|
|
996
|
+
liquidSyntax: boolean;
|
|
937
997
|
};
|
|
938
998
|
blocks: {
|
|
939
999
|
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")[];
|
|
@@ -992,6 +1052,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
992
1052
|
productType: 60 | 49 | 97;
|
|
993
1053
|
messageType: 1 | 2;
|
|
994
1054
|
username: string;
|
|
1055
|
+
fallbackFont?: {
|
|
1056
|
+
name: string;
|
|
1057
|
+
family: string;
|
|
1058
|
+
} | undefined;
|
|
995
1059
|
};
|
|
996
1060
|
template: {
|
|
997
1061
|
html: string;
|
|
@@ -1005,6 +1069,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1005
1069
|
value: string;
|
|
1006
1070
|
} | undefined;
|
|
1007
1071
|
}[];
|
|
1072
|
+
customFieldAttributes: string[];
|
|
1008
1073
|
selectedUnsubscribePages: number[];
|
|
1009
1074
|
forceRecreate: boolean;
|
|
1010
1075
|
};
|
|
@@ -1031,6 +1096,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1031
1096
|
displayConditions: boolean;
|
|
1032
1097
|
unsubscribe: boolean;
|
|
1033
1098
|
modulesDisabled: boolean;
|
|
1099
|
+
liquidSyntax: boolean;
|
|
1034
1100
|
};
|
|
1035
1101
|
blocks: {
|
|
1036
1102
|
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")[];
|
|
@@ -1089,6 +1155,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1089
1155
|
productType: 60 | 49 | 97;
|
|
1090
1156
|
messageType: 1 | 2;
|
|
1091
1157
|
username: string;
|
|
1158
|
+
fallbackFont?: {
|
|
1159
|
+
name: string;
|
|
1160
|
+
family: string;
|
|
1161
|
+
} | undefined;
|
|
1092
1162
|
};
|
|
1093
1163
|
template: {
|
|
1094
1164
|
html: string;
|
|
@@ -1102,6 +1172,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1102
1172
|
value: string;
|
|
1103
1173
|
} | undefined;
|
|
1104
1174
|
}[];
|
|
1175
|
+
customFieldAttributes: string[];
|
|
1105
1176
|
selectedUnsubscribePages: number[];
|
|
1106
1177
|
forceRecreate: boolean;
|
|
1107
1178
|
};
|
|
@@ -1128,6 +1199,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1128
1199
|
displayConditions: boolean;
|
|
1129
1200
|
unsubscribe: boolean;
|
|
1130
1201
|
modulesDisabled: boolean;
|
|
1202
|
+
liquidSyntax: boolean;
|
|
1131
1203
|
};
|
|
1132
1204
|
blocks: {
|
|
1133
1205
|
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")[];
|
|
@@ -1186,6 +1258,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1186
1258
|
productType: 60 | 49 | 97;
|
|
1187
1259
|
messageType: 1 | 2;
|
|
1188
1260
|
username: string;
|
|
1261
|
+
fallbackFont?: {
|
|
1262
|
+
name: string;
|
|
1263
|
+
family: string;
|
|
1264
|
+
} | undefined;
|
|
1189
1265
|
};
|
|
1190
1266
|
template: {
|
|
1191
1267
|
html: string;
|
|
@@ -1199,6 +1275,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1199
1275
|
value: string;
|
|
1200
1276
|
} | undefined;
|
|
1201
1277
|
}[];
|
|
1278
|
+
customFieldAttributes: string[];
|
|
1202
1279
|
selectedUnsubscribePages: number[];
|
|
1203
1280
|
forceRecreate: boolean;
|
|
1204
1281
|
};
|
|
@@ -1225,6 +1302,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1225
1302
|
displayConditions: boolean;
|
|
1226
1303
|
unsubscribe: boolean;
|
|
1227
1304
|
modulesDisabled: boolean;
|
|
1305
|
+
liquidSyntax: boolean;
|
|
1228
1306
|
};
|
|
1229
1307
|
blocks: {
|
|
1230
1308
|
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")[];
|
|
@@ -1283,6 +1361,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1283
1361
|
productType: 60 | 49 | 97;
|
|
1284
1362
|
messageType: 1 | 2;
|
|
1285
1363
|
username: string;
|
|
1364
|
+
fallbackFont?: {
|
|
1365
|
+
name: string;
|
|
1366
|
+
family: string;
|
|
1367
|
+
} | undefined;
|
|
1286
1368
|
};
|
|
1287
1369
|
template: {
|
|
1288
1370
|
html: string;
|
|
@@ -1296,6 +1378,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1296
1378
|
value: string;
|
|
1297
1379
|
} | undefined;
|
|
1298
1380
|
}[];
|
|
1381
|
+
customFieldAttributes: string[];
|
|
1299
1382
|
selectedUnsubscribePages: number[];
|
|
1300
1383
|
forceRecreate: boolean;
|
|
1301
1384
|
};
|
|
@@ -1322,6 +1405,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1322
1405
|
displayConditions: boolean;
|
|
1323
1406
|
unsubscribe: boolean;
|
|
1324
1407
|
modulesDisabled: boolean;
|
|
1408
|
+
liquidSyntax: boolean;
|
|
1325
1409
|
};
|
|
1326
1410
|
blocks: {
|
|
1327
1411
|
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")[];
|
|
@@ -1380,6 +1464,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1380
1464
|
productType: 60 | 49 | 97;
|
|
1381
1465
|
messageType: 1 | 2;
|
|
1382
1466
|
username: string;
|
|
1467
|
+
fallbackFont?: {
|
|
1468
|
+
name: string;
|
|
1469
|
+
family: string;
|
|
1470
|
+
} | undefined;
|
|
1383
1471
|
};
|
|
1384
1472
|
template: {
|
|
1385
1473
|
html: string;
|
|
@@ -1393,6 +1481,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1393
1481
|
value: string;
|
|
1394
1482
|
} | undefined;
|
|
1395
1483
|
}[];
|
|
1484
|
+
customFieldAttributes: string[];
|
|
1396
1485
|
selectedUnsubscribePages: number[];
|
|
1397
1486
|
forceRecreate: boolean;
|
|
1398
1487
|
};
|
|
@@ -1419,6 +1508,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1419
1508
|
displayConditions: boolean;
|
|
1420
1509
|
unsubscribe: boolean;
|
|
1421
1510
|
modulesDisabled: boolean;
|
|
1511
|
+
liquidSyntax: boolean;
|
|
1422
1512
|
};
|
|
1423
1513
|
blocks: {
|
|
1424
1514
|
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")[];
|
|
@@ -1477,6 +1567,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1477
1567
|
productType: 60 | 49 | 97;
|
|
1478
1568
|
messageType: 1 | 2;
|
|
1479
1569
|
username: string;
|
|
1570
|
+
fallbackFont?: {
|
|
1571
|
+
name: string;
|
|
1572
|
+
family: string;
|
|
1573
|
+
} | undefined;
|
|
1480
1574
|
};
|
|
1481
1575
|
template: {
|
|
1482
1576
|
html: string;
|
|
@@ -1490,6 +1584,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1490
1584
|
value: string;
|
|
1491
1585
|
} | undefined;
|
|
1492
1586
|
}[];
|
|
1587
|
+
customFieldAttributes: string[];
|
|
1493
1588
|
selectedUnsubscribePages: number[];
|
|
1494
1589
|
forceRecreate: boolean;
|
|
1495
1590
|
};
|
|
@@ -1516,6 +1611,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1516
1611
|
displayConditions: boolean;
|
|
1517
1612
|
unsubscribe: boolean;
|
|
1518
1613
|
modulesDisabled: boolean;
|
|
1614
|
+
liquidSyntax: boolean;
|
|
1519
1615
|
};
|
|
1520
1616
|
blocks: {
|
|
1521
1617
|
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")[];
|
|
@@ -1574,6 +1670,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1574
1670
|
productType: 60 | 49 | 97;
|
|
1575
1671
|
messageType: 1 | 2;
|
|
1576
1672
|
username: string;
|
|
1673
|
+
fallbackFont?: {
|
|
1674
|
+
name: string;
|
|
1675
|
+
family: string;
|
|
1676
|
+
} | undefined;
|
|
1577
1677
|
};
|
|
1578
1678
|
template: {
|
|
1579
1679
|
html: string;
|
|
@@ -1587,6 +1687,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1587
1687
|
value: string;
|
|
1588
1688
|
} | undefined;
|
|
1589
1689
|
}[];
|
|
1690
|
+
customFieldAttributes: string[];
|
|
1590
1691
|
selectedUnsubscribePages: number[];
|
|
1591
1692
|
forceRecreate: boolean;
|
|
1592
1693
|
};
|
|
@@ -1613,6 +1714,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1613
1714
|
displayConditions: boolean;
|
|
1614
1715
|
unsubscribe: boolean;
|
|
1615
1716
|
modulesDisabled: boolean;
|
|
1717
|
+
liquidSyntax: boolean;
|
|
1616
1718
|
};
|
|
1617
1719
|
blocks: {
|
|
1618
1720
|
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")[];
|
|
@@ -1671,6 +1773,10 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1671
1773
|
productType: 60 | 49 | 97;
|
|
1672
1774
|
messageType: 1 | 2;
|
|
1673
1775
|
username: string;
|
|
1776
|
+
fallbackFont?: {
|
|
1777
|
+
name: string;
|
|
1778
|
+
family: string;
|
|
1779
|
+
} | undefined;
|
|
1674
1780
|
};
|
|
1675
1781
|
template: {
|
|
1676
1782
|
html: string;
|
|
@@ -1684,6 +1790,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1684
1790
|
value: string;
|
|
1685
1791
|
} | undefined;
|
|
1686
1792
|
}[];
|
|
1793
|
+
customFieldAttributes: string[];
|
|
1687
1794
|
selectedUnsubscribePages: number[];
|
|
1688
1795
|
forceRecreate: boolean;
|
|
1689
1796
|
};
|
|
@@ -1710,6 +1817,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1710
1817
|
displayConditions: boolean;
|
|
1711
1818
|
unsubscribe: boolean;
|
|
1712
1819
|
modulesDisabled: boolean;
|
|
1820
|
+
liquidSyntax: boolean;
|
|
1713
1821
|
};
|
|
1714
1822
|
blocks: {
|
|
1715
1823
|
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")[];
|
|
@@ -7,6 +7,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"guidoPrev
|
|
|
7
7
|
templateHtml: string;
|
|
8
8
|
isLoaded: boolean;
|
|
9
9
|
isAMPErrorModalVisible: boolean;
|
|
10
|
+
emailSizeKB: number;
|
|
10
11
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
11
12
|
previewHtml(): string;
|
|
12
13
|
hasAMP: (state: {
|
|
@@ -16,6 +17,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"guidoPrev
|
|
|
16
17
|
templateHtml: string;
|
|
17
18
|
isLoaded: boolean;
|
|
18
19
|
isAMPErrorModalVisible: boolean;
|
|
20
|
+
emailSizeKB: number;
|
|
19
21
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
20
22
|
hasAMPErrors: (state: {
|
|
21
23
|
emailFormat: EmailFormat;
|
|
@@ -24,6 +26,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"guidoPrev
|
|
|
24
26
|
templateHtml: string;
|
|
25
27
|
isLoaded: boolean;
|
|
26
28
|
isAMPErrorModalVisible: boolean;
|
|
29
|
+
emailSizeKB: number;
|
|
27
30
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
28
31
|
showAMPErrorButton(): boolean;
|
|
29
32
|
isAMPResponsive(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DynamicContent, MergeTag } from '@@/Types/generic';
|
|
2
2
|
export declare const mergeTagToDynamicContent: (mergeTag: MergeTag) => DynamicContent;
|
|
3
|
-
export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[]) => MergeTag[];
|
|
3
|
+
export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
|
|
4
4
|
export declare const getCsrfToken: () => string;
|
|
5
5
|
/**
|
|
6
6
|
* URL Parameter utilities
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { FallbackFont } from '@@/Types/config';
|
|
1
2
|
import type { CompilerRule, CompilationResult, HtmlCompiler } from '@@/Types/html-compiler';
|
|
2
3
|
export declare class HtmlCompilerEngine implements HtmlCompiler {
|
|
3
4
|
private rules;
|
|
4
5
|
constructor(rules?: CompilerRule[]);
|
|
5
|
-
compile(html: string, rules?: CompilerRule[]): CompilationResult;
|
|
6
|
+
compile(html: string, rules?: CompilerRule[], fallbackFont?: FallbackFont): CompilationResult;
|
|
6
7
|
private applyRule;
|
|
7
8
|
private applyReplaceRule;
|
|
8
9
|
private applyRegexRule;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = `.amp-input-list,
|
|
2
2
|
.button,
|
|
3
3
|
.base-input,
|
|
4
4
|
ue-stripe-thumb,
|
|
5
5
|
.ue-stripe-thumb {
|
|
6
6
|
transition: all .5s ease;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
height: 100% !important;
|
|
11
|
+
min-height: 0 !important;
|
|
12
|
+
}
|
|
8
13
|
`;
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
n as default
|
|
11
16
|
};
|
|
@@ -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;
|
package/dist/stores/preview.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineStore as e } from "pinia";
|
|
2
|
-
const
|
|
2
|
+
const i = () => ({
|
|
3
3
|
emailFormat: "html",
|
|
4
4
|
ampHtml: "",
|
|
5
5
|
ampErrors: [],
|
|
6
6
|
templateHtml: "",
|
|
7
7
|
isLoaded: !1,
|
|
8
|
-
isAMPErrorModalVisible: !1
|
|
8
|
+
isAMPErrorModalVisible: !1,
|
|
9
|
+
emailSizeKB: 0
|
|
9
10
|
}), a = e("guidoPreview", {
|
|
10
|
-
state: () =>
|
|
11
|
+
state: () => i(),
|
|
11
12
|
getters: {
|
|
12
13
|
isAMPModeEnabled: (t) => t.emailFormat === "AMP",
|
|
13
14
|
previewHtml() {
|