@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.
- package/README.md +295 -664
- package/dist/@types/config/defaults.js +44 -0
- package/dist/@types/config/schemas.js +243 -0
- package/dist/@types/config/validator.js +56 -0
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +63 -89
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +13 -13
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +5 -5
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +13 -13
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +18 -15
- package/dist/components/organisms/header/RightSlot.vue.js +10 -10
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +22 -19
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +4 -4
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +8 -8
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +17 -17
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -10
- package/dist/composables/useBlocksConfig.js +23 -20
- package/dist/composables/useConfig.js +53 -5
- package/dist/composables/useHtmlCompiler.js +20 -19
- package/dist/composables/useHtmlValidator.js +41 -41
- package/dist/composables/usePartner.js +19 -9
- package/dist/composables/useSave.js +13 -11
- package/dist/composables/useStripo.js +11 -11
- package/dist/composables/useTranslations.js +3 -2
- package/dist/config/compiler/unsubscribeCompilerRules.js +1 -1
- package/dist/enums/defaults.js +3 -67
- package/dist/enums/unsubscribe.js +23 -20
- package/dist/extensions/Blocks/CouponBlock/extension.js +4 -5
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +14 -20
- package/dist/extensions/Blocks/CouponBlock/template.js +11 -22
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +12 -11
- package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
- package/dist/extensions/Blocks/controlFactories.js +111 -122
- package/dist/guido.css +1 -1
- package/dist/library.js +12 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +52 -57
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +10 -10
- package/dist/node_modules/valibot/dist/index.js +476 -103
- package/dist/services/templateLibraryApi.js +18 -18
- package/dist/src/@types/config/defaults.d.ts +68 -0
- package/dist/src/@types/config/index.d.ts +14 -0
- package/dist/src/@types/config/schemas.d.ts +531 -0
- package/dist/src/@types/config/types.d.ts +148 -0
- package/dist/src/@types/config/validator.d.ts +119 -0
- package/dist/src/@types/generic.d.ts +4 -45
- package/dist/src/components/Guido.vue.d.ts +13 -12
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +190 -2
- package/dist/src/composables/usePartner.d.ts +8 -0
- package/dist/src/enums/defaults.d.ts +4 -6
- package/dist/src/enums/unsubscribe.d.ts +5 -1
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +7 -30
- package/dist/src/library.d.ts +3 -1
- package/dist/src/stores/config.d.ts +1691 -102
- package/dist/stores/config.js +148 -9
- package/package.json +1 -1
- package/dist/extensions/Blocks/CouponBlock/constants.js +0 -4
- package/dist/extensions/Blocks/CouponBlock/controls/index.js +0 -29
- package/dist/node_modules/lodash-es/_apply.js +0 -16
- package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -9
- package/dist/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/dist/node_modules/lodash-es/_overRest.js +0 -15
- package/dist/node_modules/lodash-es/_safeGet.js +0 -7
- package/dist/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/lodash-es/_shortOut.js +0 -16
- package/dist/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
- package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +0 -14
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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[];
|
package/dist/src/library.d.ts
CHANGED
|
@@ -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
|
|
5
|
+
export type { PositionData, DynamicContentEvent, MergeTagClickEvent, MergeTag, BaseDynamicContent, TooltipOptions, TextValueObject, L10n, } from './@types/generic';
|