@useinsider/guido 2.0.0-beta.a3f32aa → 2.0.0-beta.cf2fe38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/config/schemas.js +33 -45
- package/dist/components/organisms/header/RightSlot.vue2.js +10 -10
- package/dist/composables/useConfig.js +27 -29
- package/dist/composables/useSave.js +11 -13
- package/dist/composables/useStripo.js +51 -50
- 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/controlFactories.js +122 -111
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +57 -52
- package/dist/src/@types/config/index.d.ts +2 -2
- package/dist/src/@types/config/schemas.d.ts +4 -26
- package/dist/src/@types/config/types.d.ts +1 -7
- package/dist/src/composables/useConfig.d.ts +2 -6
- 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/controlFactories.d.ts +30 -7
- package/dist/src/stores/config.d.ts +18 -145
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/dist/stores/config.js +0 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig
|
|
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;
|
|
@@ -57,6 +57,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
57
57
|
testMessage: boolean;
|
|
58
58
|
displayConditions: boolean;
|
|
59
59
|
unsubscribe: boolean;
|
|
60
|
+
modulesDisabled: boolean;
|
|
60
61
|
};
|
|
61
62
|
blocks: {
|
|
62
63
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -94,9 +95,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
94
95
|
})[];
|
|
95
96
|
ignoreDefaultRules: boolean;
|
|
96
97
|
};
|
|
97
|
-
callbacks: {
|
|
98
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
99
|
-
};
|
|
100
98
|
} | null;
|
|
101
99
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => IdentityConfig | null;
|
|
102
100
|
/**
|
|
@@ -150,6 +148,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
150
148
|
testMessage: boolean;
|
|
151
149
|
displayConditions: boolean;
|
|
152
150
|
unsubscribe: boolean;
|
|
151
|
+
modulesDisabled: boolean;
|
|
153
152
|
};
|
|
154
153
|
blocks: {
|
|
155
154
|
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 +186,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
187
186
|
})[];
|
|
188
187
|
ignoreDefaultRules: boolean;
|
|
189
188
|
};
|
|
190
|
-
callbacks: {
|
|
191
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
192
|
-
};
|
|
193
189
|
} | null;
|
|
194
190
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => PartnerConfig | null;
|
|
195
191
|
/**
|
|
@@ -243,6 +239,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
243
239
|
testMessage: boolean;
|
|
244
240
|
displayConditions: boolean;
|
|
245
241
|
unsubscribe: boolean;
|
|
242
|
+
modulesDisabled: boolean;
|
|
246
243
|
};
|
|
247
244
|
blocks: {
|
|
248
245
|
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 +277,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
280
277
|
})[];
|
|
281
278
|
ignoreDefaultRules: boolean;
|
|
282
279
|
};
|
|
283
|
-
callbacks: {
|
|
284
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
285
|
-
};
|
|
286
280
|
} | null;
|
|
287
281
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => TemplateConfig | null;
|
|
288
282
|
/**
|
|
@@ -336,6 +330,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
336
330
|
testMessage: boolean;
|
|
337
331
|
displayConditions: boolean;
|
|
338
332
|
unsubscribe: boolean;
|
|
333
|
+
modulesDisabled: boolean;
|
|
339
334
|
};
|
|
340
335
|
blocks: {
|
|
341
336
|
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 +368,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
373
368
|
})[];
|
|
374
369
|
ignoreDefaultRules: boolean;
|
|
375
370
|
};
|
|
376
|
-
callbacks: {
|
|
377
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
378
|
-
};
|
|
379
371
|
} | null;
|
|
380
372
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => EditorConfig | null;
|
|
381
373
|
/**
|
|
@@ -429,6 +421,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
429
421
|
testMessage: boolean;
|
|
430
422
|
displayConditions: boolean;
|
|
431
423
|
unsubscribe: boolean;
|
|
424
|
+
modulesDisabled: boolean;
|
|
432
425
|
};
|
|
433
426
|
blocks: {
|
|
434
427
|
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 +459,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
466
459
|
})[];
|
|
467
460
|
ignoreDefaultRules: boolean;
|
|
468
461
|
};
|
|
469
|
-
callbacks: {
|
|
470
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
471
|
-
};
|
|
472
462
|
} | null;
|
|
473
463
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => UIConfig | null;
|
|
474
464
|
/**
|
|
@@ -522,6 +512,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
522
512
|
testMessage: boolean;
|
|
523
513
|
displayConditions: boolean;
|
|
524
514
|
unsubscribe: boolean;
|
|
515
|
+
modulesDisabled: boolean;
|
|
525
516
|
};
|
|
526
517
|
blocks: {
|
|
527
518
|
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 +550,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
559
550
|
})[];
|
|
560
551
|
ignoreDefaultRules: boolean;
|
|
561
552
|
};
|
|
562
|
-
callbacks: {
|
|
563
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
564
|
-
};
|
|
565
553
|
} | null;
|
|
566
554
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => FeaturesConfig | null;
|
|
567
555
|
/**
|
|
@@ -615,6 +603,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
615
603
|
testMessage: boolean;
|
|
616
604
|
displayConditions: boolean;
|
|
617
605
|
unsubscribe: boolean;
|
|
606
|
+
modulesDisabled: boolean;
|
|
618
607
|
};
|
|
619
608
|
blocks: {
|
|
620
609
|
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 +641,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
652
641
|
})[];
|
|
653
642
|
ignoreDefaultRules: boolean;
|
|
654
643
|
};
|
|
655
|
-
callbacks: {
|
|
656
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
657
|
-
};
|
|
658
644
|
} | null;
|
|
659
645
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => BlocksConfig | null;
|
|
660
646
|
/**
|
|
@@ -708,6 +694,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
708
694
|
testMessage: boolean;
|
|
709
695
|
displayConditions: boolean;
|
|
710
696
|
unsubscribe: boolean;
|
|
697
|
+
modulesDisabled: boolean;
|
|
711
698
|
};
|
|
712
699
|
blocks: {
|
|
713
700
|
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 +732,8 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
745
732
|
})[];
|
|
746
733
|
ignoreDefaultRules: boolean;
|
|
747
734
|
};
|
|
748
|
-
callbacks: {
|
|
749
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
750
|
-
};
|
|
751
735
|
} | null;
|
|
752
736
|
} & 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
737
|
/**
|
|
847
738
|
* Get the template ID
|
|
848
739
|
*/
|
|
@@ -894,6 +785,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
894
785
|
testMessage: boolean;
|
|
895
786
|
displayConditions: boolean;
|
|
896
787
|
unsubscribe: boolean;
|
|
788
|
+
modulesDisabled: boolean;
|
|
897
789
|
};
|
|
898
790
|
blocks: {
|
|
899
791
|
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 +823,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
931
823
|
})[];
|
|
932
824
|
ignoreDefaultRules: boolean;
|
|
933
825
|
};
|
|
934
|
-
callbacks: {
|
|
935
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
936
|
-
};
|
|
937
826
|
} | null;
|
|
938
827
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
939
828
|
/**
|
|
@@ -987,6 +876,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
987
876
|
testMessage: boolean;
|
|
988
877
|
displayConditions: boolean;
|
|
989
878
|
unsubscribe: boolean;
|
|
879
|
+
modulesDisabled: boolean;
|
|
990
880
|
};
|
|
991
881
|
blocks: {
|
|
992
882
|
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 +914,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1024
914
|
})[];
|
|
1025
915
|
ignoreDefaultRules: boolean;
|
|
1026
916
|
};
|
|
1027
|
-
callbacks: {
|
|
1028
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1029
|
-
};
|
|
1030
917
|
} | null;
|
|
1031
918
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1032
919
|
/**
|
|
@@ -1080,6 +967,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1080
967
|
testMessage: boolean;
|
|
1081
968
|
displayConditions: boolean;
|
|
1082
969
|
unsubscribe: boolean;
|
|
970
|
+
modulesDisabled: boolean;
|
|
1083
971
|
};
|
|
1084
972
|
blocks: {
|
|
1085
973
|
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 +1005,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1117
1005
|
})[];
|
|
1118
1006
|
ignoreDefaultRules: boolean;
|
|
1119
1007
|
};
|
|
1120
|
-
callbacks: {
|
|
1121
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1122
|
-
};
|
|
1123
1008
|
} | null;
|
|
1124
1009
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1125
1010
|
/**
|
|
@@ -1173,6 +1058,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1173
1058
|
testMessage: boolean;
|
|
1174
1059
|
displayConditions: boolean;
|
|
1175
1060
|
unsubscribe: boolean;
|
|
1061
|
+
modulesDisabled: boolean;
|
|
1176
1062
|
};
|
|
1177
1063
|
blocks: {
|
|
1178
1064
|
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 +1096,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1210
1096
|
})[];
|
|
1211
1097
|
ignoreDefaultRules: boolean;
|
|
1212
1098
|
};
|
|
1213
|
-
callbacks: {
|
|
1214
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1215
|
-
};
|
|
1216
1099
|
} | null;
|
|
1217
1100
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1218
1101
|
/**
|
|
@@ -1266,6 +1149,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1266
1149
|
testMessage: boolean;
|
|
1267
1150
|
displayConditions: boolean;
|
|
1268
1151
|
unsubscribe: boolean;
|
|
1152
|
+
modulesDisabled: boolean;
|
|
1269
1153
|
};
|
|
1270
1154
|
blocks: {
|
|
1271
1155
|
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 +1187,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1303
1187
|
})[];
|
|
1304
1188
|
ignoreDefaultRules: boolean;
|
|
1305
1189
|
};
|
|
1306
|
-
callbacks: {
|
|
1307
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1308
|
-
};
|
|
1309
1190
|
} | null;
|
|
1310
1191
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
|
|
1311
1192
|
/**
|
|
@@ -1359,6 +1240,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1359
1240
|
testMessage: boolean;
|
|
1360
1241
|
displayConditions: boolean;
|
|
1361
1242
|
unsubscribe: boolean;
|
|
1243
|
+
modulesDisabled: boolean;
|
|
1362
1244
|
};
|
|
1363
1245
|
blocks: {
|
|
1364
1246
|
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 +1278,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1396
1278
|
})[];
|
|
1397
1279
|
ignoreDefaultRules: boolean;
|
|
1398
1280
|
};
|
|
1399
|
-
callbacks: {
|
|
1400
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1401
|
-
};
|
|
1402
1281
|
} | null;
|
|
1403
1282
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => number;
|
|
1404
1283
|
/**
|
|
@@ -1452,6 +1331,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1452
1331
|
testMessage: boolean;
|
|
1453
1332
|
displayConditions: boolean;
|
|
1454
1333
|
unsubscribe: boolean;
|
|
1334
|
+
modulesDisabled: boolean;
|
|
1455
1335
|
};
|
|
1456
1336
|
blocks: {
|
|
1457
1337
|
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 +1369,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1489
1369
|
})[];
|
|
1490
1370
|
ignoreDefaultRules: boolean;
|
|
1491
1371
|
};
|
|
1492
|
-
callbacks: {
|
|
1493
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1494
|
-
};
|
|
1495
1372
|
} | null;
|
|
1496
1373
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1497
1374
|
/**
|
|
@@ -1545,6 +1422,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1545
1422
|
testMessage: boolean;
|
|
1546
1423
|
displayConditions: boolean;
|
|
1547
1424
|
unsubscribe: boolean;
|
|
1425
|
+
modulesDisabled: boolean;
|
|
1548
1426
|
};
|
|
1549
1427
|
blocks: {
|
|
1550
1428
|
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 +1460,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1582
1460
|
})[];
|
|
1583
1461
|
ignoreDefaultRules: boolean;
|
|
1584
1462
|
};
|
|
1585
|
-
callbacks: {
|
|
1586
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1587
|
-
};
|
|
1588
1463
|
} | null;
|
|
1589
1464
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => boolean;
|
|
1590
1465
|
/**
|
|
@@ -1638,6 +1513,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1638
1513
|
testMessage: boolean;
|
|
1639
1514
|
displayConditions: boolean;
|
|
1640
1515
|
unsubscribe: boolean;
|
|
1516
|
+
modulesDisabled: boolean;
|
|
1641
1517
|
};
|
|
1642
1518
|
blocks: {
|
|
1643
1519
|
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 +1551,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1675
1551
|
})[];
|
|
1676
1552
|
ignoreDefaultRules: boolean;
|
|
1677
1553
|
};
|
|
1678
|
-
callbacks: {
|
|
1679
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1680
|
-
};
|
|
1681
1554
|
} | null;
|
|
1682
1555
|
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => (feature: keyof FeaturesConfig) => boolean;
|
|
1683
1556
|
}, {
|
|
@@ -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,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.
|
|
3
|
+
"version": "2.0.0-beta.cf2fe38",
|
|
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",
|