@useinsider/guido 2.0.0 → 2.1.0-beta.efb0c6b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/@types/config/schemas.js +57 -39
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +15 -17
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -2
- package/dist/components/organisms/header/RightSlot.vue2.js +10 -10
- package/dist/composables/useConfig.js +29 -27
- package/dist/composables/useSave.js +13 -11
- package/dist/composables/useStripo.js +57 -56
- package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
- package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
- package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
- package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
- package/dist/extensions/Blocks/common-control.js +6 -7
- package/dist/extensions/Blocks/controlFactories.js +122 -111
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +57 -52
- package/dist/services/stripoApi.js +6 -10
- package/dist/src/@types/config/index.d.ts +2 -2
- package/dist/src/@types/config/schemas.d.ts +34 -0
- package/dist/src/@types/config/types.d.ts +7 -1
- package/dist/src/composables/useConfig.d.ts +10 -0
- package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/common-control.d.ts +1 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
- package/dist/src/stores/config.d.ts +181 -1
- package/dist/static/styles/components/button.css.js +1 -1
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/dist/stores/config.js +7 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig } from '@@/Types/config';
|
|
1
|
+
import type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig, CallbacksConfig } from '@@/Types/config';
|
|
2
2
|
interface ConfigStoreState {
|
|
3
3
|
/** Whether the config has been initialized */
|
|
4
4
|
initialized: boolean;
|
|
@@ -36,6 +36,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
}[];
|
|
38
38
|
selectedUnsubscribePages: number[];
|
|
39
|
+
forceRecreate: boolean;
|
|
39
40
|
};
|
|
40
41
|
editor: {
|
|
41
42
|
locale: string;
|
|
@@ -57,6 +58,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
57
58
|
testMessage: boolean;
|
|
58
59
|
displayConditions: boolean;
|
|
59
60
|
unsubscribe: boolean;
|
|
61
|
+
modulesDisabled: boolean;
|
|
60
62
|
};
|
|
61
63
|
blocks: {
|
|
62
64
|
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")[];
|
|
@@ -94,6 +96,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
94
96
|
})[];
|
|
95
97
|
ignoreDefaultRules: boolean;
|
|
96
98
|
};
|
|
99
|
+
callbacks: {
|
|
100
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
101
|
+
};
|
|
97
102
|
} | null;
|
|
98
103
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => IdentityConfig | null;
|
|
99
104
|
/**
|
|
@@ -126,6 +131,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
126
131
|
} | undefined;
|
|
127
132
|
}[];
|
|
128
133
|
selectedUnsubscribePages: number[];
|
|
134
|
+
forceRecreate: boolean;
|
|
129
135
|
};
|
|
130
136
|
editor: {
|
|
131
137
|
locale: string;
|
|
@@ -147,6 +153,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
147
153
|
testMessage: boolean;
|
|
148
154
|
displayConditions: boolean;
|
|
149
155
|
unsubscribe: boolean;
|
|
156
|
+
modulesDisabled: boolean;
|
|
150
157
|
};
|
|
151
158
|
blocks: {
|
|
152
159
|
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")[];
|
|
@@ -184,6 +191,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
184
191
|
})[];
|
|
185
192
|
ignoreDefaultRules: boolean;
|
|
186
193
|
};
|
|
194
|
+
callbacks: {
|
|
195
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
196
|
+
};
|
|
187
197
|
} | null;
|
|
188
198
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => PartnerConfig | null;
|
|
189
199
|
/**
|
|
@@ -216,6 +226,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
216
226
|
} | undefined;
|
|
217
227
|
}[];
|
|
218
228
|
selectedUnsubscribePages: number[];
|
|
229
|
+
forceRecreate: boolean;
|
|
219
230
|
};
|
|
220
231
|
editor: {
|
|
221
232
|
locale: string;
|
|
@@ -237,6 +248,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
237
248
|
testMessage: boolean;
|
|
238
249
|
displayConditions: boolean;
|
|
239
250
|
unsubscribe: boolean;
|
|
251
|
+
modulesDisabled: boolean;
|
|
240
252
|
};
|
|
241
253
|
blocks: {
|
|
242
254
|
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")[];
|
|
@@ -274,6 +286,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
274
286
|
})[];
|
|
275
287
|
ignoreDefaultRules: boolean;
|
|
276
288
|
};
|
|
289
|
+
callbacks: {
|
|
290
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
291
|
+
};
|
|
277
292
|
} | null;
|
|
278
293
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => TemplateConfig | null;
|
|
279
294
|
/**
|
|
@@ -306,6 +321,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
306
321
|
} | undefined;
|
|
307
322
|
}[];
|
|
308
323
|
selectedUnsubscribePages: number[];
|
|
324
|
+
forceRecreate: boolean;
|
|
309
325
|
};
|
|
310
326
|
editor: {
|
|
311
327
|
locale: string;
|
|
@@ -327,6 +343,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
327
343
|
testMessage: boolean;
|
|
328
344
|
displayConditions: boolean;
|
|
329
345
|
unsubscribe: boolean;
|
|
346
|
+
modulesDisabled: boolean;
|
|
330
347
|
};
|
|
331
348
|
blocks: {
|
|
332
349
|
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")[];
|
|
@@ -364,6 +381,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
364
381
|
})[];
|
|
365
382
|
ignoreDefaultRules: boolean;
|
|
366
383
|
};
|
|
384
|
+
callbacks: {
|
|
385
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
386
|
+
};
|
|
367
387
|
} | null;
|
|
368
388
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => EditorConfig | null;
|
|
369
389
|
/**
|
|
@@ -396,6 +416,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
396
416
|
} | undefined;
|
|
397
417
|
}[];
|
|
398
418
|
selectedUnsubscribePages: number[];
|
|
419
|
+
forceRecreate: boolean;
|
|
399
420
|
};
|
|
400
421
|
editor: {
|
|
401
422
|
locale: string;
|
|
@@ -417,6 +438,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
417
438
|
testMessage: boolean;
|
|
418
439
|
displayConditions: boolean;
|
|
419
440
|
unsubscribe: boolean;
|
|
441
|
+
modulesDisabled: boolean;
|
|
420
442
|
};
|
|
421
443
|
blocks: {
|
|
422
444
|
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")[];
|
|
@@ -454,6 +476,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
454
476
|
})[];
|
|
455
477
|
ignoreDefaultRules: boolean;
|
|
456
478
|
};
|
|
479
|
+
callbacks: {
|
|
480
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
481
|
+
};
|
|
457
482
|
} | null;
|
|
458
483
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => UIConfig | null;
|
|
459
484
|
/**
|
|
@@ -486,6 +511,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
486
511
|
} | undefined;
|
|
487
512
|
}[];
|
|
488
513
|
selectedUnsubscribePages: number[];
|
|
514
|
+
forceRecreate: boolean;
|
|
489
515
|
};
|
|
490
516
|
editor: {
|
|
491
517
|
locale: string;
|
|
@@ -507,6 +533,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
507
533
|
testMessage: boolean;
|
|
508
534
|
displayConditions: boolean;
|
|
509
535
|
unsubscribe: boolean;
|
|
536
|
+
modulesDisabled: boolean;
|
|
510
537
|
};
|
|
511
538
|
blocks: {
|
|
512
539
|
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")[];
|
|
@@ -544,6 +571,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
544
571
|
})[];
|
|
545
572
|
ignoreDefaultRules: boolean;
|
|
546
573
|
};
|
|
574
|
+
callbacks: {
|
|
575
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
576
|
+
};
|
|
547
577
|
} | null;
|
|
548
578
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => FeaturesConfig | null;
|
|
549
579
|
/**
|
|
@@ -576,6 +606,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
576
606
|
} | undefined;
|
|
577
607
|
}[];
|
|
578
608
|
selectedUnsubscribePages: number[];
|
|
609
|
+
forceRecreate: boolean;
|
|
579
610
|
};
|
|
580
611
|
editor: {
|
|
581
612
|
locale: string;
|
|
@@ -597,6 +628,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
597
628
|
testMessage: boolean;
|
|
598
629
|
displayConditions: boolean;
|
|
599
630
|
unsubscribe: boolean;
|
|
631
|
+
modulesDisabled: boolean;
|
|
600
632
|
};
|
|
601
633
|
blocks: {
|
|
602
634
|
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")[];
|
|
@@ -634,6 +666,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
634
666
|
})[];
|
|
635
667
|
ignoreDefaultRules: boolean;
|
|
636
668
|
};
|
|
669
|
+
callbacks: {
|
|
670
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
671
|
+
};
|
|
637
672
|
} | null;
|
|
638
673
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => BlocksConfig | null;
|
|
639
674
|
/**
|
|
@@ -666,6 +701,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
666
701
|
} | undefined;
|
|
667
702
|
}[];
|
|
668
703
|
selectedUnsubscribePages: number[];
|
|
704
|
+
forceRecreate: boolean;
|
|
669
705
|
};
|
|
670
706
|
editor: {
|
|
671
707
|
locale: string;
|
|
@@ -687,6 +723,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
687
723
|
testMessage: boolean;
|
|
688
724
|
displayConditions: boolean;
|
|
689
725
|
unsubscribe: boolean;
|
|
726
|
+
modulesDisabled: boolean;
|
|
690
727
|
};
|
|
691
728
|
blocks: {
|
|
692
729
|
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")[];
|
|
@@ -724,8 +761,106 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
724
761
|
})[];
|
|
725
762
|
ignoreDefaultRules: boolean;
|
|
726
763
|
};
|
|
764
|
+
callbacks: {
|
|
765
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
766
|
+
};
|
|
727
767
|
} | null;
|
|
728
768
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => CompilerConfig | null;
|
|
769
|
+
/**
|
|
770
|
+
* Get the callbacks configuration
|
|
771
|
+
*/
|
|
772
|
+
callbacks: (state: {
|
|
773
|
+
initialized: boolean;
|
|
774
|
+
config: {
|
|
775
|
+
identity: {
|
|
776
|
+
templateId: string;
|
|
777
|
+
userId: string;
|
|
778
|
+
variationId?: string | undefined;
|
|
779
|
+
};
|
|
780
|
+
partner: {
|
|
781
|
+
name: string;
|
|
782
|
+
productType: 60 | 49 | 97;
|
|
783
|
+
messageType: 1 | 2;
|
|
784
|
+
username: string;
|
|
785
|
+
};
|
|
786
|
+
template: {
|
|
787
|
+
html: string;
|
|
788
|
+
css: string;
|
|
789
|
+
preselectedDynamicContent: {
|
|
790
|
+
text: string;
|
|
791
|
+
value: string;
|
|
792
|
+
fallback?: string | undefined;
|
|
793
|
+
format?: {
|
|
794
|
+
key: string;
|
|
795
|
+
value: string;
|
|
796
|
+
} | undefined;
|
|
797
|
+
}[];
|
|
798
|
+
selectedUnsubscribePages: number[];
|
|
799
|
+
forceRecreate: boolean;
|
|
800
|
+
};
|
|
801
|
+
editor: {
|
|
802
|
+
locale: string;
|
|
803
|
+
translationsPath: string;
|
|
804
|
+
migrationDate: number;
|
|
805
|
+
emailHeader: {
|
|
806
|
+
senderName: string;
|
|
807
|
+
subject: string;
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
ui: {
|
|
811
|
+
showHeader: boolean;
|
|
812
|
+
backButtonLabel?: string | undefined;
|
|
813
|
+
};
|
|
814
|
+
features: {
|
|
815
|
+
dynamicContent: boolean;
|
|
816
|
+
saveAsTemplate: boolean;
|
|
817
|
+
versionHistory: boolean;
|
|
818
|
+
testMessage: boolean;
|
|
819
|
+
displayConditions: boolean;
|
|
820
|
+
unsubscribe: boolean;
|
|
821
|
+
modulesDisabled: boolean;
|
|
822
|
+
};
|
|
823
|
+
blocks: {
|
|
824
|
+
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")[];
|
|
825
|
+
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
826
|
+
};
|
|
827
|
+
compiler: {
|
|
828
|
+
customRules: ({
|
|
829
|
+
type: "replace";
|
|
830
|
+
search: string;
|
|
831
|
+
replacement: string;
|
|
832
|
+
replaceAll?: boolean | undefined;
|
|
833
|
+
id: string;
|
|
834
|
+
description?: string | undefined;
|
|
835
|
+
priority: number;
|
|
836
|
+
} | {
|
|
837
|
+
type: "regex";
|
|
838
|
+
pattern: string;
|
|
839
|
+
replacement: string;
|
|
840
|
+
flags?: string | undefined;
|
|
841
|
+
id: string;
|
|
842
|
+
description?: string | undefined;
|
|
843
|
+
priority: number;
|
|
844
|
+
} | {
|
|
845
|
+
type: "remove";
|
|
846
|
+
targets: string[];
|
|
847
|
+
id: string;
|
|
848
|
+
description?: string | undefined;
|
|
849
|
+
priority: number;
|
|
850
|
+
} | {
|
|
851
|
+
type: "custom";
|
|
852
|
+
processor: (html: string) => string;
|
|
853
|
+
id: string;
|
|
854
|
+
description?: string | undefined;
|
|
855
|
+
priority: number;
|
|
856
|
+
})[];
|
|
857
|
+
ignoreDefaultRules: boolean;
|
|
858
|
+
};
|
|
859
|
+
callbacks: {
|
|
860
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
861
|
+
};
|
|
862
|
+
} | null;
|
|
863
|
+
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => CallbacksConfig | null;
|
|
729
864
|
/**
|
|
730
865
|
* Get the template ID
|
|
731
866
|
*/
|
|
@@ -756,6 +891,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
756
891
|
} | undefined;
|
|
757
892
|
}[];
|
|
758
893
|
selectedUnsubscribePages: number[];
|
|
894
|
+
forceRecreate: boolean;
|
|
759
895
|
};
|
|
760
896
|
editor: {
|
|
761
897
|
locale: string;
|
|
@@ -777,6 +913,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
777
913
|
testMessage: boolean;
|
|
778
914
|
displayConditions: boolean;
|
|
779
915
|
unsubscribe: boolean;
|
|
916
|
+
modulesDisabled: boolean;
|
|
780
917
|
};
|
|
781
918
|
blocks: {
|
|
782
919
|
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")[];
|
|
@@ -814,6 +951,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
814
951
|
})[];
|
|
815
952
|
ignoreDefaultRules: boolean;
|
|
816
953
|
};
|
|
954
|
+
callbacks: {
|
|
955
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
956
|
+
};
|
|
817
957
|
} | null;
|
|
818
958
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
819
959
|
/**
|
|
@@ -846,6 +986,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
846
986
|
} | undefined;
|
|
847
987
|
}[];
|
|
848
988
|
selectedUnsubscribePages: number[];
|
|
989
|
+
forceRecreate: boolean;
|
|
849
990
|
};
|
|
850
991
|
editor: {
|
|
851
992
|
locale: string;
|
|
@@ -867,6 +1008,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
867
1008
|
testMessage: boolean;
|
|
868
1009
|
displayConditions: boolean;
|
|
869
1010
|
unsubscribe: boolean;
|
|
1011
|
+
modulesDisabled: boolean;
|
|
870
1012
|
};
|
|
871
1013
|
blocks: {
|
|
872
1014
|
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")[];
|
|
@@ -904,6 +1046,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
904
1046
|
})[];
|
|
905
1047
|
ignoreDefaultRules: boolean;
|
|
906
1048
|
};
|
|
1049
|
+
callbacks: {
|
|
1050
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1051
|
+
};
|
|
907
1052
|
} | null;
|
|
908
1053
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
909
1054
|
/**
|
|
@@ -936,6 +1081,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
936
1081
|
} | undefined;
|
|
937
1082
|
}[];
|
|
938
1083
|
selectedUnsubscribePages: number[];
|
|
1084
|
+
forceRecreate: boolean;
|
|
939
1085
|
};
|
|
940
1086
|
editor: {
|
|
941
1087
|
locale: string;
|
|
@@ -957,6 +1103,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
957
1103
|
testMessage: boolean;
|
|
958
1104
|
displayConditions: boolean;
|
|
959
1105
|
unsubscribe: boolean;
|
|
1106
|
+
modulesDisabled: boolean;
|
|
960
1107
|
};
|
|
961
1108
|
blocks: {
|
|
962
1109
|
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")[];
|
|
@@ -994,6 +1141,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
994
1141
|
})[];
|
|
995
1142
|
ignoreDefaultRules: boolean;
|
|
996
1143
|
};
|
|
1144
|
+
callbacks: {
|
|
1145
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1146
|
+
};
|
|
997
1147
|
} | null;
|
|
998
1148
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
999
1149
|
/**
|
|
@@ -1026,6 +1176,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1026
1176
|
} | undefined;
|
|
1027
1177
|
}[];
|
|
1028
1178
|
selectedUnsubscribePages: number[];
|
|
1179
|
+
forceRecreate: boolean;
|
|
1029
1180
|
};
|
|
1030
1181
|
editor: {
|
|
1031
1182
|
locale: string;
|
|
@@ -1047,6 +1198,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1047
1198
|
testMessage: boolean;
|
|
1048
1199
|
displayConditions: boolean;
|
|
1049
1200
|
unsubscribe: boolean;
|
|
1201
|
+
modulesDisabled: boolean;
|
|
1050
1202
|
};
|
|
1051
1203
|
blocks: {
|
|
1052
1204
|
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")[];
|
|
@@ -1084,6 +1236,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1084
1236
|
})[];
|
|
1085
1237
|
ignoreDefaultRules: boolean;
|
|
1086
1238
|
};
|
|
1239
|
+
callbacks: {
|
|
1240
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1241
|
+
};
|
|
1087
1242
|
} | null;
|
|
1088
1243
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1089
1244
|
/**
|
|
@@ -1116,6 +1271,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1116
1271
|
} | undefined;
|
|
1117
1272
|
}[];
|
|
1118
1273
|
selectedUnsubscribePages: number[];
|
|
1274
|
+
forceRecreate: boolean;
|
|
1119
1275
|
};
|
|
1120
1276
|
editor: {
|
|
1121
1277
|
locale: string;
|
|
@@ -1137,6 +1293,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1137
1293
|
testMessage: boolean;
|
|
1138
1294
|
displayConditions: boolean;
|
|
1139
1295
|
unsubscribe: boolean;
|
|
1296
|
+
modulesDisabled: boolean;
|
|
1140
1297
|
};
|
|
1141
1298
|
blocks: {
|
|
1142
1299
|
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")[];
|
|
@@ -1174,6 +1331,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1174
1331
|
})[];
|
|
1175
1332
|
ignoreDefaultRules: boolean;
|
|
1176
1333
|
};
|
|
1334
|
+
callbacks: {
|
|
1335
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1336
|
+
};
|
|
1177
1337
|
} | null;
|
|
1178
1338
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
|
|
1179
1339
|
/**
|
|
@@ -1206,6 +1366,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1206
1366
|
} | undefined;
|
|
1207
1367
|
}[];
|
|
1208
1368
|
selectedUnsubscribePages: number[];
|
|
1369
|
+
forceRecreate: boolean;
|
|
1209
1370
|
};
|
|
1210
1371
|
editor: {
|
|
1211
1372
|
locale: string;
|
|
@@ -1227,6 +1388,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1227
1388
|
testMessage: boolean;
|
|
1228
1389
|
displayConditions: boolean;
|
|
1229
1390
|
unsubscribe: boolean;
|
|
1391
|
+
modulesDisabled: boolean;
|
|
1230
1392
|
};
|
|
1231
1393
|
blocks: {
|
|
1232
1394
|
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")[];
|
|
@@ -1264,6 +1426,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1264
1426
|
})[];
|
|
1265
1427
|
ignoreDefaultRules: boolean;
|
|
1266
1428
|
};
|
|
1429
|
+
callbacks: {
|
|
1430
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1431
|
+
};
|
|
1267
1432
|
} | null;
|
|
1268
1433
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
|
|
1269
1434
|
/**
|
|
@@ -1296,6 +1461,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1296
1461
|
} | undefined;
|
|
1297
1462
|
}[];
|
|
1298
1463
|
selectedUnsubscribePages: number[];
|
|
1464
|
+
forceRecreate: boolean;
|
|
1299
1465
|
};
|
|
1300
1466
|
editor: {
|
|
1301
1467
|
locale: string;
|
|
@@ -1317,6 +1483,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1317
1483
|
testMessage: boolean;
|
|
1318
1484
|
displayConditions: boolean;
|
|
1319
1485
|
unsubscribe: boolean;
|
|
1486
|
+
modulesDisabled: boolean;
|
|
1320
1487
|
};
|
|
1321
1488
|
blocks: {
|
|
1322
1489
|
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")[];
|
|
@@ -1354,6 +1521,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1354
1521
|
})[];
|
|
1355
1522
|
ignoreDefaultRules: boolean;
|
|
1356
1523
|
};
|
|
1524
|
+
callbacks: {
|
|
1525
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1526
|
+
};
|
|
1357
1527
|
} | null;
|
|
1358
1528
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1359
1529
|
/**
|
|
@@ -1386,6 +1556,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1386
1556
|
} | undefined;
|
|
1387
1557
|
}[];
|
|
1388
1558
|
selectedUnsubscribePages: number[];
|
|
1559
|
+
forceRecreate: boolean;
|
|
1389
1560
|
};
|
|
1390
1561
|
editor: {
|
|
1391
1562
|
locale: string;
|
|
@@ -1407,6 +1578,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1407
1578
|
testMessage: boolean;
|
|
1408
1579
|
displayConditions: boolean;
|
|
1409
1580
|
unsubscribe: boolean;
|
|
1581
|
+
modulesDisabled: boolean;
|
|
1410
1582
|
};
|
|
1411
1583
|
blocks: {
|
|
1412
1584
|
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")[];
|
|
@@ -1444,6 +1616,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1444
1616
|
})[];
|
|
1445
1617
|
ignoreDefaultRules: boolean;
|
|
1446
1618
|
};
|
|
1619
|
+
callbacks: {
|
|
1620
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1621
|
+
};
|
|
1447
1622
|
} | null;
|
|
1448
1623
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
|
|
1449
1624
|
/**
|
|
@@ -1476,6 +1651,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1476
1651
|
} | undefined;
|
|
1477
1652
|
}[];
|
|
1478
1653
|
selectedUnsubscribePages: number[];
|
|
1654
|
+
forceRecreate: boolean;
|
|
1479
1655
|
};
|
|
1480
1656
|
editor: {
|
|
1481
1657
|
locale: string;
|
|
@@ -1497,6 +1673,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1497
1673
|
testMessage: boolean;
|
|
1498
1674
|
displayConditions: boolean;
|
|
1499
1675
|
unsubscribe: boolean;
|
|
1676
|
+
modulesDisabled: boolean;
|
|
1500
1677
|
};
|
|
1501
1678
|
blocks: {
|
|
1502
1679
|
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")[];
|
|
@@ -1534,6 +1711,9 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1534
1711
|
})[];
|
|
1535
1712
|
ignoreDefaultRules: boolean;
|
|
1536
1713
|
};
|
|
1714
|
+
callbacks: {
|
|
1715
|
+
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1716
|
+
};
|
|
1537
1717
|
} | null;
|
|
1538
1718
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => (feature: keyof FeaturesConfig) => boolean;
|
|
1539
1719
|
}, {
|
|
@@ -32,16 +32,6 @@ ue-stripe-thumb:hover:not(.disabled),
|
|
|
32
32
|
padding: 0 16px 16px;
|
|
33
33
|
grid-row-gap: 16px;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
/* TODO: will be removed after we find another way to hide stripo custom modules */
|
|
37
|
-
#moduleTab_tab1,
|
|
38
|
-
button[aria-label="Default Modules"],
|
|
39
|
-
button[aria-controls="moduleTab_tab1_content"],
|
|
40
|
-
#moduleTab_tab2,
|
|
41
|
-
button[aria-label="Pre-Built AMP"],
|
|
42
|
-
button[aria-controls="moduleTab_tab2_content"] {
|
|
43
|
-
display: none !important;
|
|
44
|
-
}
|
|
45
35
|
`;
|
|
46
36
|
export {
|
|
47
37
|
o as default
|
package/dist/stores/config.js
CHANGED
|
@@ -64,6 +64,13 @@ const s = o("guido-config", {
|
|
|
64
64
|
var e;
|
|
65
65
|
return ((e = i.config) == null ? void 0 : e.compiler) ?? null;
|
|
66
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* Get the callbacks configuration
|
|
69
|
+
*/
|
|
70
|
+
callbacks: (i) => {
|
|
71
|
+
var e;
|
|
72
|
+
return ((e = i.config) == null ? void 0 : e.callbacks) ?? null;
|
|
73
|
+
},
|
|
67
74
|
/**
|
|
68
75
|
* Get the template ID
|
|
69
76
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-beta.efb0c6b",
|
|
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",
|