@useinsider/guido 2.0.0-beta.a3f32aa → 2.0.0-beta.a716078

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.
Files changed (33) hide show
  1. package/README.md +2 -0
  2. package/dist/@types/config/schemas.js +35 -45
  3. package/dist/components/Guido.vue.js +3 -3
  4. package/dist/components/Guido.vue2.js +59 -59
  5. package/dist/components/organisms/base/Toaster.vue.js +6 -6
  6. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +6 -6
  7. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +2 -2
  8. package/dist/components/organisms/header/RightSlot.vue2.js +10 -10
  9. package/dist/composables/useConfig.js +27 -29
  10. package/dist/composables/useSave.js +11 -13
  11. package/dist/composables/useStripo.js +57 -56
  12. package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
  13. package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
  14. package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
  15. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
  16. package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
  17. package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
  18. package/dist/extensions/Blocks/controlFactories.js +122 -111
  19. package/dist/guido.css +1 -1
  20. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +57 -52
  21. package/dist/services/stripoApi.js +6 -10
  22. package/dist/src/@types/config/index.d.ts +2 -2
  23. package/dist/src/@types/config/schemas.d.ts +8 -26
  24. package/dist/src/@types/config/types.d.ts +1 -7
  25. package/dist/src/composables/useConfig.d.ts +4 -6
  26. package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
  27. package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
  28. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
  29. package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
  30. package/dist/src/stores/config.d.ts +35 -145
  31. package/dist/static/styles/components/narrow-panel.css.js +0 -10
  32. package/dist/stores/config.js +0 -7
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig, CallbacksConfig } from '@@/Types/config';
1
+ import type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig } 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,9 +96,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
94
96
  })[];
95
97
  ignoreDefaultRules: boolean;
96
98
  };
97
- callbacks: {
98
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
99
- };
100
99
  } | null;
101
100
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => IdentityConfig | null;
102
101
  /**
@@ -129,6 +128,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
129
128
  } | undefined;
130
129
  }[];
131
130
  selectedUnsubscribePages: number[];
131
+ forceRecreate: boolean;
132
132
  };
133
133
  editor: {
134
134
  locale: string;
@@ -150,6 +150,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
150
150
  testMessage: boolean;
151
151
  displayConditions: boolean;
152
152
  unsubscribe: boolean;
153
+ modulesDisabled: boolean;
153
154
  };
154
155
  blocks: {
155
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")[];
@@ -187,9 +188,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
187
188
  })[];
188
189
  ignoreDefaultRules: boolean;
189
190
  };
190
- callbacks: {
191
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
192
- };
193
191
  } | null;
194
192
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => PartnerConfig | null;
195
193
  /**
@@ -222,6 +220,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
222
220
  } | undefined;
223
221
  }[];
224
222
  selectedUnsubscribePages: number[];
223
+ forceRecreate: boolean;
225
224
  };
226
225
  editor: {
227
226
  locale: string;
@@ -243,6 +242,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
243
242
  testMessage: boolean;
244
243
  displayConditions: boolean;
245
244
  unsubscribe: boolean;
245
+ modulesDisabled: boolean;
246
246
  };
247
247
  blocks: {
248
248
  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")[];
@@ -280,9 +280,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
280
280
  })[];
281
281
  ignoreDefaultRules: boolean;
282
282
  };
283
- callbacks: {
284
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
285
- };
286
283
  } | null;
287
284
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => TemplateConfig | null;
288
285
  /**
@@ -315,6 +312,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
315
312
  } | undefined;
316
313
  }[];
317
314
  selectedUnsubscribePages: number[];
315
+ forceRecreate: boolean;
318
316
  };
319
317
  editor: {
320
318
  locale: string;
@@ -336,6 +334,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
336
334
  testMessage: boolean;
337
335
  displayConditions: boolean;
338
336
  unsubscribe: boolean;
337
+ modulesDisabled: boolean;
339
338
  };
340
339
  blocks: {
341
340
  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")[];
@@ -373,9 +372,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
373
372
  })[];
374
373
  ignoreDefaultRules: boolean;
375
374
  };
376
- callbacks: {
377
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
378
- };
379
375
  } | null;
380
376
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => EditorConfig | null;
381
377
  /**
@@ -408,6 +404,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
408
404
  } | undefined;
409
405
  }[];
410
406
  selectedUnsubscribePages: number[];
407
+ forceRecreate: boolean;
411
408
  };
412
409
  editor: {
413
410
  locale: string;
@@ -429,6 +426,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
429
426
  testMessage: boolean;
430
427
  displayConditions: boolean;
431
428
  unsubscribe: boolean;
429
+ modulesDisabled: boolean;
432
430
  };
433
431
  blocks: {
434
432
  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")[];
@@ -466,9 +464,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
466
464
  })[];
467
465
  ignoreDefaultRules: boolean;
468
466
  };
469
- callbacks: {
470
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
471
- };
472
467
  } | null;
473
468
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => UIConfig | null;
474
469
  /**
@@ -501,6 +496,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
501
496
  } | undefined;
502
497
  }[];
503
498
  selectedUnsubscribePages: number[];
499
+ forceRecreate: boolean;
504
500
  };
505
501
  editor: {
506
502
  locale: string;
@@ -522,6 +518,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
522
518
  testMessage: boolean;
523
519
  displayConditions: boolean;
524
520
  unsubscribe: boolean;
521
+ modulesDisabled: boolean;
525
522
  };
526
523
  blocks: {
527
524
  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")[];
@@ -559,9 +556,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
559
556
  })[];
560
557
  ignoreDefaultRules: boolean;
561
558
  };
562
- callbacks: {
563
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
564
- };
565
559
  } | null;
566
560
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => FeaturesConfig | null;
567
561
  /**
@@ -594,6 +588,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
594
588
  } | undefined;
595
589
  }[];
596
590
  selectedUnsubscribePages: number[];
591
+ forceRecreate: boolean;
597
592
  };
598
593
  editor: {
599
594
  locale: string;
@@ -615,6 +610,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
615
610
  testMessage: boolean;
616
611
  displayConditions: boolean;
617
612
  unsubscribe: boolean;
613
+ modulesDisabled: boolean;
618
614
  };
619
615
  blocks: {
620
616
  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")[];
@@ -652,9 +648,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
652
648
  })[];
653
649
  ignoreDefaultRules: boolean;
654
650
  };
655
- callbacks: {
656
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
657
- };
658
651
  } | null;
659
652
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => BlocksConfig | null;
660
653
  /**
@@ -687,6 +680,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
687
680
  } | undefined;
688
681
  }[];
689
682
  selectedUnsubscribePages: number[];
683
+ forceRecreate: boolean;
690
684
  };
691
685
  editor: {
692
686
  locale: string;
@@ -708,6 +702,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
708
702
  testMessage: boolean;
709
703
  displayConditions: boolean;
710
704
  unsubscribe: boolean;
705
+ modulesDisabled: boolean;
711
706
  };
712
707
  blocks: {
713
708
  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")[];
@@ -745,104 +740,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
745
740
  })[];
746
741
  ignoreDefaultRules: boolean;
747
742
  };
748
- callbacks: {
749
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
750
- };
751
743
  } | null;
752
744
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => CompilerConfig | null;
753
- /**
754
- * Get the callbacks configuration
755
- */
756
- callbacks: (state: {
757
- initialized: boolean;
758
- config: {
759
- identity: {
760
- templateId: string;
761
- userId: string;
762
- variationId?: string | undefined;
763
- };
764
- partner: {
765
- name: string;
766
- productType: 60 | 49 | 97;
767
- messageType: 1 | 2;
768
- username: string;
769
- };
770
- template: {
771
- html: string;
772
- css: string;
773
- preselectedDynamicContent: {
774
- text: string;
775
- value: string;
776
- fallback?: string | undefined;
777
- format?: {
778
- key: string;
779
- value: string;
780
- } | undefined;
781
- }[];
782
- selectedUnsubscribePages: number[];
783
- };
784
- editor: {
785
- locale: string;
786
- translationsPath: string;
787
- migrationDate: number;
788
- emailHeader: {
789
- senderName: string;
790
- subject: string;
791
- };
792
- };
793
- ui: {
794
- showHeader: boolean;
795
- backButtonLabel?: string | undefined;
796
- };
797
- features: {
798
- dynamicContent: boolean;
799
- saveAsTemplate: boolean;
800
- versionHistory: boolean;
801
- testMessage: boolean;
802
- displayConditions: boolean;
803
- unsubscribe: boolean;
804
- };
805
- blocks: {
806
- 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")[];
807
- includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
808
- };
809
- compiler: {
810
- customRules: ({
811
- type: "replace";
812
- search: string;
813
- replacement: string;
814
- replaceAll?: boolean | undefined;
815
- id: string;
816
- description?: string | undefined;
817
- priority: number;
818
- } | {
819
- type: "regex";
820
- pattern: string;
821
- replacement: string;
822
- flags?: string | undefined;
823
- id: string;
824
- description?: string | undefined;
825
- priority: number;
826
- } | {
827
- type: "remove";
828
- targets: string[];
829
- id: string;
830
- description?: string | undefined;
831
- priority: number;
832
- } | {
833
- type: "custom";
834
- processor: (html: string) => string;
835
- id: string;
836
- description?: string | undefined;
837
- priority: number;
838
- })[];
839
- ignoreDefaultRules: boolean;
840
- };
841
- callbacks: {
842
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
843
- };
844
- } | null;
845
- } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => CallbacksConfig | null;
846
745
  /**
847
746
  * Get the template ID
848
747
  */
@@ -873,6 +772,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
873
772
  } | undefined;
874
773
  }[];
875
774
  selectedUnsubscribePages: number[];
775
+ forceRecreate: boolean;
876
776
  };
877
777
  editor: {
878
778
  locale: string;
@@ -894,6 +794,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
894
794
  testMessage: boolean;
895
795
  displayConditions: boolean;
896
796
  unsubscribe: boolean;
797
+ modulesDisabled: boolean;
897
798
  };
898
799
  blocks: {
899
800
  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")[];
@@ -931,9 +832,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
931
832
  })[];
932
833
  ignoreDefaultRules: boolean;
933
834
  };
934
- callbacks: {
935
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
936
- };
937
835
  } | null;
938
836
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
939
837
  /**
@@ -966,6 +864,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
966
864
  } | undefined;
967
865
  }[];
968
866
  selectedUnsubscribePages: number[];
867
+ forceRecreate: boolean;
969
868
  };
970
869
  editor: {
971
870
  locale: string;
@@ -987,6 +886,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
987
886
  testMessage: boolean;
988
887
  displayConditions: boolean;
989
888
  unsubscribe: boolean;
889
+ modulesDisabled: boolean;
990
890
  };
991
891
  blocks: {
992
892
  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")[];
@@ -1024,9 +924,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1024
924
  })[];
1025
925
  ignoreDefaultRules: boolean;
1026
926
  };
1027
- callbacks: {
1028
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1029
- };
1030
927
  } | null;
1031
928
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
1032
929
  /**
@@ -1059,6 +956,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1059
956
  } | undefined;
1060
957
  }[];
1061
958
  selectedUnsubscribePages: number[];
959
+ forceRecreate: boolean;
1062
960
  };
1063
961
  editor: {
1064
962
  locale: string;
@@ -1080,6 +978,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1080
978
  testMessage: boolean;
1081
979
  displayConditions: boolean;
1082
980
  unsubscribe: boolean;
981
+ modulesDisabled: boolean;
1083
982
  };
1084
983
  blocks: {
1085
984
  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")[];
@@ -1117,9 +1016,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1117
1016
  })[];
1118
1017
  ignoreDefaultRules: boolean;
1119
1018
  };
1120
- callbacks: {
1121
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1122
- };
1123
1019
  } | null;
1124
1020
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
1125
1021
  /**
@@ -1152,6 +1048,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1152
1048
  } | undefined;
1153
1049
  }[];
1154
1050
  selectedUnsubscribePages: number[];
1051
+ forceRecreate: boolean;
1155
1052
  };
1156
1053
  editor: {
1157
1054
  locale: string;
@@ -1173,6 +1070,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1173
1070
  testMessage: boolean;
1174
1071
  displayConditions: boolean;
1175
1072
  unsubscribe: boolean;
1073
+ modulesDisabled: boolean;
1176
1074
  };
1177
1075
  blocks: {
1178
1076
  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")[];
@@ -1210,9 +1108,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1210
1108
  })[];
1211
1109
  ignoreDefaultRules: boolean;
1212
1110
  };
1213
- callbacks: {
1214
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1215
- };
1216
1111
  } | null;
1217
1112
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
1218
1113
  /**
@@ -1245,6 +1140,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1245
1140
  } | undefined;
1246
1141
  }[];
1247
1142
  selectedUnsubscribePages: number[];
1143
+ forceRecreate: boolean;
1248
1144
  };
1249
1145
  editor: {
1250
1146
  locale: string;
@@ -1266,6 +1162,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1266
1162
  testMessage: boolean;
1267
1163
  displayConditions: boolean;
1268
1164
  unsubscribe: boolean;
1165
+ modulesDisabled: boolean;
1269
1166
  };
1270
1167
  blocks: {
1271
1168
  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")[];
@@ -1303,9 +1200,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1303
1200
  })[];
1304
1201
  ignoreDefaultRules: boolean;
1305
1202
  };
1306
- callbacks: {
1307
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1308
- };
1309
1203
  } | null;
1310
1204
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
1311
1205
  /**
@@ -1338,6 +1232,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1338
1232
  } | undefined;
1339
1233
  }[];
1340
1234
  selectedUnsubscribePages: number[];
1235
+ forceRecreate: boolean;
1341
1236
  };
1342
1237
  editor: {
1343
1238
  locale: string;
@@ -1359,6 +1254,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1359
1254
  testMessage: boolean;
1360
1255
  displayConditions: boolean;
1361
1256
  unsubscribe: boolean;
1257
+ modulesDisabled: boolean;
1362
1258
  };
1363
1259
  blocks: {
1364
1260
  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")[];
@@ -1396,9 +1292,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1396
1292
  })[];
1397
1293
  ignoreDefaultRules: boolean;
1398
1294
  };
1399
- callbacks: {
1400
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1401
- };
1402
1295
  } | null;
1403
1296
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
1404
1297
  /**
@@ -1431,6 +1324,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1431
1324
  } | undefined;
1432
1325
  }[];
1433
1326
  selectedUnsubscribePages: number[];
1327
+ forceRecreate: boolean;
1434
1328
  };
1435
1329
  editor: {
1436
1330
  locale: string;
@@ -1452,6 +1346,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1452
1346
  testMessage: boolean;
1453
1347
  displayConditions: boolean;
1454
1348
  unsubscribe: boolean;
1349
+ modulesDisabled: boolean;
1455
1350
  };
1456
1351
  blocks: {
1457
1352
  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")[];
@@ -1489,9 +1384,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1489
1384
  })[];
1490
1385
  ignoreDefaultRules: boolean;
1491
1386
  };
1492
- callbacks: {
1493
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1494
- };
1495
1387
  } | null;
1496
1388
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
1497
1389
  /**
@@ -1524,6 +1416,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1524
1416
  } | undefined;
1525
1417
  }[];
1526
1418
  selectedUnsubscribePages: number[];
1419
+ forceRecreate: boolean;
1527
1420
  };
1528
1421
  editor: {
1529
1422
  locale: string;
@@ -1545,6 +1438,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1545
1438
  testMessage: boolean;
1546
1439
  displayConditions: boolean;
1547
1440
  unsubscribe: boolean;
1441
+ modulesDisabled: boolean;
1548
1442
  };
1549
1443
  blocks: {
1550
1444
  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")[];
@@ -1582,9 +1476,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1582
1476
  })[];
1583
1477
  ignoreDefaultRules: boolean;
1584
1478
  };
1585
- callbacks: {
1586
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1587
- };
1588
1479
  } | null;
1589
1480
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
1590
1481
  /**
@@ -1617,6 +1508,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1617
1508
  } | undefined;
1618
1509
  }[];
1619
1510
  selectedUnsubscribePages: number[];
1511
+ forceRecreate: boolean;
1620
1512
  };
1621
1513
  editor: {
1622
1514
  locale: string;
@@ -1638,6 +1530,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1638
1530
  testMessage: boolean;
1639
1531
  displayConditions: boolean;
1640
1532
  unsubscribe: boolean;
1533
+ modulesDisabled: boolean;
1641
1534
  };
1642
1535
  blocks: {
1643
1536
  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")[];
@@ -1675,9 +1568,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1675
1568
  })[];
1676
1569
  ignoreDefaultRules: boolean;
1677
1570
  };
1678
- callbacks: {
1679
- externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
1680
- };
1681
1571
  } | null;
1682
1572
  } & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => (feature: keyof FeaturesConfig) => boolean;
1683
1573
  }, {
@@ -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
@@ -64,13 +64,6 @@ 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
- },
74
67
  /**
75
68
  * Get the template ID
76
69
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "2.0.0-beta.a3f32aa",
3
+ "version": "2.0.0-beta.a716078",
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",