@useinsider/guido 1.4.4-beta.00a1e0a → 1.4.4-beta.37e7556

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 (93) hide show
  1. package/README.md +295 -664
  2. package/dist/@types/config/defaults.js +44 -0
  3. package/dist/@types/config/schemas.js +243 -0
  4. package/dist/@types/config/validator.js +56 -0
  5. package/dist/components/Guido.vue.js +1 -1
  6. package/dist/components/Guido.vue2.js +63 -89
  7. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +13 -13
  8. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +5 -5
  9. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +13 -13
  10. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  11. package/dist/components/organisms/header/LeftSlot.vue2.js +18 -15
  12. package/dist/components/organisms/header/RightSlot.vue.js +10 -10
  13. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +22 -19
  14. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +4 -4
  15. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +8 -8
  16. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
  17. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +17 -17
  18. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -10
  19. package/dist/composables/useBlocksConfig.js +23 -20
  20. package/dist/composables/useConfig.js +53 -5
  21. package/dist/composables/useHtmlCompiler.js +20 -19
  22. package/dist/composables/useHtmlValidator.js +41 -41
  23. package/dist/composables/usePartner.js +19 -9
  24. package/dist/composables/useSave.js +13 -11
  25. package/dist/composables/useStripo.js +11 -11
  26. package/dist/composables/useTranslations.js +3 -2
  27. package/dist/config/compiler/unsubscribeCompilerRules.js +1 -1
  28. package/dist/enums/defaults.js +3 -67
  29. package/dist/enums/unsubscribe.js +23 -20
  30. package/dist/extensions/Blocks/CouponBlock/extension.js +4 -5
  31. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +14 -20
  32. package/dist/extensions/Blocks/CouponBlock/template.js +11 -22
  33. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +12 -11
  34. package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
  35. package/dist/extensions/Blocks/controlFactories.js +111 -122
  36. package/dist/guido.css +1 -1
  37. package/dist/library.js +12 -2
  38. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +52 -57
  39. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +10 -10
  40. package/dist/node_modules/valibot/dist/index.js +476 -103
  41. package/dist/services/templateLibraryApi.js +18 -18
  42. package/dist/src/@types/config/defaults.d.ts +68 -0
  43. package/dist/src/@types/config/index.d.ts +14 -0
  44. package/dist/src/@types/config/schemas.d.ts +531 -0
  45. package/dist/src/@types/config/types.d.ts +148 -0
  46. package/dist/src/@types/config/validator.d.ts +119 -0
  47. package/dist/src/@types/generic.d.ts +4 -45
  48. package/dist/src/components/Guido.vue.d.ts +13 -12
  49. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  50. package/dist/src/composables/useConfig.d.ts +190 -2
  51. package/dist/src/composables/usePartner.d.ts +8 -0
  52. package/dist/src/enums/defaults.d.ts +4 -6
  53. package/dist/src/enums/unsubscribe.d.ts +5 -1
  54. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
  55. package/dist/src/extensions/Blocks/controlFactories.d.ts +7 -30
  56. package/dist/src/library.d.ts +3 -1
  57. package/dist/src/stores/config.d.ts +1691 -102
  58. package/dist/stores/config.js +148 -9
  59. package/package.json +1 -1
  60. package/dist/extensions/Blocks/CouponBlock/constants.js +0 -4
  61. package/dist/extensions/Blocks/CouponBlock/controls/index.js +0 -29
  62. package/dist/node_modules/lodash-es/_apply.js +0 -16
  63. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  64. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  65. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  66. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  67. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  68. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  69. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  70. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  71. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  72. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  73. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  74. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  75. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  76. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  77. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  78. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  79. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  80. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  81. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  82. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  83. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  84. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  85. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  86. package/dist/node_modules/lodash-es/constant.js +0 -8
  87. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  88. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  89. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  90. package/dist/node_modules/lodash-es/merge.js +0 -8
  91. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  92. package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +0 -14
  93. package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +0 -108
@@ -12,9 +12,8 @@
12
12
  import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
13
13
  /**
14
14
  * Factory function to create text align controls for different block elements
15
- * When targetBlockId and containerSelector are not provided, applies directly to root
16
15
  */
17
- export declare function createTextAlignControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
16
+ export declare function createTextAlignControl(controlId: string, targetBlockId: string, containerSelector: string): {
18
17
  new (): {
19
18
  getId(): string;
20
19
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -28,9 +27,8 @@ export declare function createTextAlignControl(controlId: string, targetBlockId?
28
27
  };
29
28
  /**
30
29
  * Factory function to create text color controls for different block elements
31
- * When targetBlockId and containerSelector are not provided, applies directly to root
32
30
  */
33
- export declare function createTextColorControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
31
+ export declare function createTextColorControl(controlId: string, targetBlockId: string, containerSelector?: string): {
34
32
  new (): {
35
33
  getId(): string;
36
34
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -44,9 +42,8 @@ export declare function createTextColorControl(controlId: string, targetBlockId?
44
42
  };
45
43
  /**
46
44
  * Factory function to create text size controls for different block elements
47
- * When targetBlockId and containerSelector are not provided, applies directly to root
48
45
  */
49
- export declare function createTextSizeControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
46
+ export declare function createTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): {
50
47
  new (): {
51
48
  getId(): string;
52
49
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -60,9 +57,8 @@ export declare function createTextSizeControl(controlId: string, targetBlockId?:
60
57
  };
61
58
  /**
62
59
  * Factory function to create text style controls for different block elements
63
- * When targetBlockId and containerSelector are not provided, applies directly to root
64
60
  */
65
- export declare function createTextStyleControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
61
+ export declare function createTextStyleControl(controlId: string, targetBlockId: string, containerSelector?: string): {
66
62
  new (): {
67
63
  getId(): string;
68
64
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -76,9 +72,8 @@ export declare function createTextStyleControl(controlId: string, targetBlockId?
76
72
  };
77
73
  /**
78
74
  * Factory function to create text font family controls for different block elements
79
- * When targetBlockId and containerSelector are not provided, applies directly to root
80
75
  */
81
- export declare function createTextFontFamilyControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
76
+ export declare function createTextFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): {
82
77
  new (): {
83
78
  getId(): string;
84
79
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -92,9 +87,8 @@ export declare function createTextFontFamilyControl(controlId: string, targetBlo
92
87
  };
93
88
  /**
94
89
  * Factory function to create text background color controls for different block elements
95
- * When targetBlockId and containerSelector are not provided, applies directly to root
96
90
  */
97
- export declare function createTextBackgroundColorControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
91
+ export declare function createTextBackgroundColorControl(controlId: string, targetBlockId: string, containerSelector?: string): {
98
92
  new (): {
99
93
  getId(): string;
100
94
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -108,25 +102,8 @@ export declare function createTextBackgroundColorControl(controlId: string, targ
108
102
  };
109
103
  /**
110
104
  * Factory function to create paddings controls for different block elements
111
- * When targetBlockId and containerSelector are not provided, applies directly to root
112
105
  */
113
- export declare function createPaddingsControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
114
- new (): {
115
- getId(): string;
116
- getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
117
- getParentControlId(): string;
118
- api: import("@stripoinc/ui-editor-extensions").ControlApi;
119
- getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
120
- getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
121
- getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
122
- isVisible(_node: ImmutableHtmlNode): boolean;
123
- };
124
- };
125
- /**
126
- * Factory function to create text line spacing controls for different block elements
127
- * When targetBlockId and containerSelector are not provided, applies directly to root
128
- */
129
- export declare function createTextLineSpacingControl(controlId: string, targetBlockId?: string, containerSelector?: string): {
106
+ export declare function createPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): {
130
107
  new (): {
131
108
  getId(): string;
132
109
  getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
@@ -1,3 +1,5 @@
1
1
  export { default as Guido } from './components/Guido.vue';
2
+ export type { GuidoConfig, GuidoConfigInput, IdentityConfig, PartnerConfig, TemplateConfig, EditorConfig, UIConfig, FeaturesConfig, BlocksConfig, CompilerConfig, DynamicContent, EmailHeader, DefaultBlockType, CustomBlockType, ValidationResult, ValidationError, } from './@types/config';
3
+ export { validateConfig, parseConfig, parseConfigSafe, isValidConfig, getValidationErrors, MessageType, ProductType, } from './@types/config';
2
4
  export type { StripoEventType } from './@types/events';
3
- export type * from './@types/generic';
5
+ export type { PositionData, DynamicContentEvent, MergeTagClickEvent, MergeTag, BaseDynamicContent, TooltipOptions, TextValueObject, L10n, } from './@types/generic';