@useinsider/guido 1.0.3-beta.cdff8ce → 1.0.3-beta.ce3ed00
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 +32 -6
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +73 -79
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +20 -21
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -20
- package/dist/composables/useActionsApi.js +1 -1
- package/dist/composables/useGuidoActions.js +9 -19
- package/dist/composables/useHtmlCompiler.js +13 -15
- package/dist/composables/useHtmlValidator.js +35 -36
- package/dist/composables/useStripo.js +41 -47
- package/dist/config/compiler/unsubscribeCompilerRules.js +28 -33
- package/dist/enums/defaults.js +1 -2
- package/dist/enums/onboarding.js +3 -7
- package/dist/enums/unsubscribe.js +25 -27
- package/dist/extensions/Blocks/Checkbox/control.js +14 -15
- package/dist/extensions/Blocks/Checkbox/template.js +9 -14
- package/dist/extensions/Blocks/Items/block.js +43 -40
- package/dist/extensions/Blocks/Items/controls/button/link.js +17 -25
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +57 -151
- package/dist/extensions/Blocks/Items/controls/image/link.js +20 -28
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +22 -29
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +18 -25
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +8 -18
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +30 -37
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +14 -37
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +130 -167
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
- package/dist/extensions/Blocks/Items/enums/productEnums.js +5 -98
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +7 -21
- package/dist/extensions/Blocks/Items/extension.js +8 -9
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +59 -57
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +61 -67
- package/dist/extensions/Blocks/Items/settingsPanel.js +43 -69
- package/dist/extensions/Blocks/Items/store/items-block.js +4 -12
- package/dist/extensions/Blocks/Items/template.js +63 -150
- package/dist/extensions/Blocks/RadioButton/control.js +17 -18
- package/dist/extensions/Blocks/RadioButton/template.js +9 -18
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
- package/dist/extensions/Blocks/Unsubscribe/block.js +41 -45
- package/dist/extensions/Blocks/common-control.js +125 -164
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +19 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +33 -128
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +2 -12
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/keysIn.js +3 -3
- package/dist/package.json.js +1 -1
- package/dist/src/@types/generic.d.ts +6 -27
- package/dist/src/components/Guido.vue.d.ts +2 -3
- package/dist/src/composables/useGuidoActions.d.ts +0 -9
- package/dist/src/enums/onboarding.d.ts +0 -4
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/block.d.ts +0 -15
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +7 -20
- package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +1 -5
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +2 -8
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -20
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -15
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +1 -5
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -9
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +4 -3
- package/dist/src/extensions/Blocks/common-control.d.ts +2 -25
- package/dist/src/extensions/DynamicContent/dynamic-content-modal.d.ts +2 -9
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +2 -52
- package/dist/src/stores/config.d.ts +2 -3
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/editor.d.ts +1 -1
- package/dist/src/stores/onboarding.d.ts +1 -335
- package/dist/src/stores/preview.d.ts +1 -1
- package/dist/src/stores/recommendation.d.ts +1 -1
- package/dist/src/stores/save-as-template.d.ts +1 -1
- package/dist/src/stores/toaster.d.ts +1 -1
- package/dist/src/stores/unsubscribe.d.ts +1 -1
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/genericUtil.d.ts +0 -1
- package/dist/stores/config.js +5 -5
- package/dist/stores/dynamic-content.js +2 -2
- package/dist/stores/editor.js +1 -1
- package/dist/stores/onboarding.js +36 -44
- package/dist/stores/preview.js +1 -1
- package/dist/stores/recommendation.js +3 -3
- package/dist/stores/save-as-template.js +2 -2
- package/dist/stores/toaster.js +1 -1
- package/dist/stores/unsubscribe.js +1 -1
- package/dist/stores/version-history.js +4 -4
- package/dist/utils/genericUtil.js +6 -17
- package/package.json +12 -7
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +0 -99
- package/dist/config/compiler/itemsCompilerRules.js +0 -14
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +0 -92
- package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +0 -17
- package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +0 -28
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +0 -76
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +0 -46
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_SetCache.js +0 -13
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
- package/dist/node_modules/lodash-es/_arraySome.js +0 -9
- package/dist/node_modules/lodash-es/_baseEach.js +0 -6
- package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/lodash-es/_baseGet.js +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
- package/dist/node_modules/lodash-es/_baseMap.js +0 -11
- package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/lodash-es/_baseRange.js +0 -9
- package/dist/node_modules/lodash-es/_baseToString.js +0 -18
- package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/dist/node_modules/lodash-es/_createRange.js +0 -11
- package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/lodash-es/_getTag.js +0 -28
- package/dist/node_modules/lodash-es/_hasPath.js +0 -19
- package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/lodash-es/_isKey.js +0 -12
- package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/lodash-es/flatMap.js +0 -8
- package/dist/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/lodash-es/hasIn.js +0 -8
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/map.js +0 -11
- package/dist/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/lodash-es/range.js +0 -5
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/toFinite.js +0 -14
- package/dist/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/toString.js +0 -7
- package/dist/src/components/organisms/onboarding/ItemsOnboarding.vue.d.ts +0 -2
- package/dist/src/config/compiler/itemsCompilerRules.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +0 -15
- package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +0 -23
- package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +0 -32
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -50
- package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +0 -8
- package/dist/src/utils/environmentUtil.d.ts +0 -5
- package/dist/src/utils/pairProductVariables.d.ts +0 -7
- package/dist/utils/environmentUtil.js +0 -4
- package/dist/utils/pairProductVariables.js +0 -136
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var M = class u {
|
|
1
|
+
var et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(et || {}), M = class u {
|
|
2
2
|
/**
|
|
3
3
|
* Validates that all required methods are properly implemented in the subclass.
|
|
4
4
|
* @param requiredMethods - Array of method names that must be implemented
|
|
@@ -34,7 +34,7 @@ ${s.map((E) => ` - ${E}`).join(`
|
|
|
34
34
|
};
|
|
35
35
|
M.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
36
|
M.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
-
var a = M,
|
|
37
|
+
var a = M, y = class c extends a {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(c.REQUIRED_METHODS, c);
|
|
40
40
|
}
|
|
@@ -176,16 +176,6 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
176
176
|
getName() {
|
|
177
177
|
throw new Error("Method getName() must be implemented by the subclass");
|
|
178
178
|
}
|
|
179
|
-
/**
|
|
180
|
-
* Retrieves the name of block in the block panel.
|
|
181
|
-
* Can contain html markup
|
|
182
|
-
* If not implemented by the subclass, getName() function will be used to display name in the block panel
|
|
183
|
-
*
|
|
184
|
-
* @return {string} The name of the block panel.
|
|
185
|
-
*/
|
|
186
|
-
getSettingsPanelName() {
|
|
187
|
-
return "";
|
|
188
|
-
}
|
|
189
179
|
/**
|
|
190
180
|
* Gets a short description of the block shown to the user, often as a tooltip in the block panel.
|
|
191
181
|
* Use `this.api.translate()` for localization.
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from "./_baseTimes.js";
|
|
2
2
|
import g from "./isArguments.js";
|
|
3
3
|
import h from "./isArray.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(p || O.call(t, r)) && !(n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4
|
+
import a from "./isBuffer.js";
|
|
5
|
+
import d from "./_isIndex.js";
|
|
6
|
+
import A from "./isTypedArray.js";
|
|
7
|
+
function c(i, b) {
|
|
8
|
+
var t = h(i), f = !t && g(i), s = !t && !f && a(i), o = !t && !f && !s && A(i), n = t || f || s || o, e = n ? p(i.length, String) : [], m = e.length;
|
|
9
|
+
for (var r in i)
|
|
10
|
+
n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
12
11
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
13
12
|
s && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
13
|
+
o && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
14
|
+
d(r, m)) || e.push(r);
|
|
15
|
+
return e;
|
|
17
16
|
}
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
c as default
|
|
20
19
|
};
|
package/dist/package.json.js
CHANGED
|
@@ -7,7 +7,6 @@ type Features = {
|
|
|
7
7
|
saveAsTemplate?: boolean;
|
|
8
8
|
versionHistory?: boolean;
|
|
9
9
|
testMessage?: boolean;
|
|
10
|
-
displayConditions?: boolean;
|
|
11
10
|
};
|
|
12
11
|
type Partner = {
|
|
13
12
|
partnerName: string;
|
|
@@ -38,39 +37,15 @@ export type TemplateConfig = {
|
|
|
38
37
|
selectedUnsubscribePages?: number[];
|
|
39
38
|
variationId?: string;
|
|
40
39
|
};
|
|
41
|
-
export type
|
|
40
|
+
export type DynamicContent = {
|
|
42
41
|
value: string;
|
|
42
|
+
text: string;
|
|
43
43
|
fallback?: string;
|
|
44
44
|
format?: {
|
|
45
45
|
key: string;
|
|
46
46
|
value: string;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export type DynamicContent = BaseDynamicContent & {
|
|
50
|
-
text: string;
|
|
51
|
-
};
|
|
52
|
-
export type MergeTag = BaseDynamicContent & {
|
|
53
|
-
label: string;
|
|
54
|
-
selStart?: number;
|
|
55
|
-
selEnd?: number;
|
|
56
|
-
hidden?: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type PositionData = {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
width?: number;
|
|
62
|
-
height?: number;
|
|
63
|
-
};
|
|
64
|
-
export type DynamicContentEvent = {
|
|
65
|
-
attribute: DynamicContent;
|
|
66
|
-
position?: PositionData;
|
|
67
|
-
};
|
|
68
|
-
export type MergeTagClickEvent = {
|
|
69
|
-
position: PositionData;
|
|
70
|
-
element: HTMLElement;
|
|
71
|
-
tagValue: string | null;
|
|
72
|
-
tagLabel: string | null;
|
|
73
|
-
};
|
|
74
49
|
export interface EmailHeader {
|
|
75
50
|
senderName: string;
|
|
76
51
|
subject: string;
|
|
@@ -86,6 +61,10 @@ export interface TooltipOptions {
|
|
|
86
61
|
};
|
|
87
62
|
preventXss?: boolean;
|
|
88
63
|
}
|
|
64
|
+
export type MergeTag = {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
89
68
|
export type TextValueObject = {
|
|
90
69
|
text: string;
|
|
91
70
|
value: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DynamicContent, GuidoConfig,
|
|
1
|
+
import type { DynamicContent, GuidoConfig, TemplateConfig } from '@@/Types/generic';
|
|
2
2
|
import type { SavedTemplateDetails } from '@@/Types/stripo';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
templateId: string;
|
|
@@ -20,14 +20,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__
|
|
|
20
20
|
hasChanges: import("vue").ComputedRef<boolean>;
|
|
21
21
|
saveSilent: () => Promise<SavedTemplateDetails | undefined> | undefined;
|
|
22
22
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
23
|
-
"dynamic-content:open": (detail: DynamicContent | null
|
|
23
|
+
"dynamic-content:open": (detail: DynamicContent | null) => void;
|
|
24
24
|
back: () => void;
|
|
25
25
|
"save:start": () => void;
|
|
26
26
|
"save:complete": (data: Omit<SavedTemplateDetails, "forceRecreate">) => void;
|
|
27
27
|
"on-change": (hasChanges: boolean) => void;
|
|
28
28
|
ready: () => void;
|
|
29
29
|
"onboarding:finished": () => void;
|
|
30
|
-
"test-email:click": () => void;
|
|
31
30
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
32
31
|
export default _default;
|
|
33
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -3,11 +3,9 @@ import type { InjectionKey } from 'vue';
|
|
|
3
3
|
export type BackHandler = () => void;
|
|
4
4
|
export type SaveStartHandler = () => void;
|
|
5
5
|
export type SaveCompleteHandler = (template: Omit<SavedTemplateDetails, 'forceRecreate'>) => void;
|
|
6
|
-
export type TestEmailClickHandler = () => void;
|
|
7
6
|
export declare const BACK_KEY: InjectionKey<BackHandler>;
|
|
8
7
|
export declare const SAVE_START_KEY: InjectionKey<SaveStartHandler>;
|
|
9
8
|
export declare const SAVE_COMPLETE_KEY: InjectionKey<SaveCompleteHandler>;
|
|
10
|
-
export declare const TEST_EMAIL_CLICK_KEY: InjectionKey<TestEmailClickHandler>;
|
|
11
9
|
/**
|
|
12
10
|
* Provides Guido action handlers to child components
|
|
13
11
|
*/
|
|
@@ -15,7 +13,6 @@ export declare const provideGuidoActions: (actions: {
|
|
|
15
13
|
onBack: BackHandler;
|
|
16
14
|
onSaveStart: SaveStartHandler;
|
|
17
15
|
onSaveComplete: SaveCompleteHandler;
|
|
18
|
-
onTestEmailClick: TestEmailClickHandler;
|
|
19
16
|
}) => void;
|
|
20
17
|
/**
|
|
21
18
|
* Provides individual Guido action handlers
|
|
@@ -38,11 +35,6 @@ export declare const useSaveStart: () => SaveStartHandler;
|
|
|
38
35
|
* @returns Save complete function
|
|
39
36
|
*/
|
|
40
37
|
export declare const useSaveComplete: () => SaveCompleteHandler;
|
|
41
|
-
/**
|
|
42
|
-
* Hook to use the test email click handler
|
|
43
|
-
* @returns Test email click function
|
|
44
|
-
*/
|
|
45
|
-
export declare const useTestEmailClick: () => TestEmailClickHandler;
|
|
46
38
|
/**
|
|
47
39
|
* Convenience hook to get all Guido actions
|
|
48
40
|
* @returns Object containing all action handlers
|
|
@@ -51,5 +43,4 @@ export declare const useGuidoActions: () => {
|
|
|
51
43
|
back: BackHandler;
|
|
52
44
|
saveStart: SaveStartHandler;
|
|
53
45
|
saveComplete: SaveCompleteHandler;
|
|
54
|
-
testEmailClick: TestEmailClickHandler;
|
|
55
46
|
};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
export declare const SERVICE_HOVER_SELECTORS: string[];
|
|
2
|
-
export declare const UI_EDITOR_SELECTOR = "ui-editor";
|
|
3
|
-
export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
|
|
4
|
-
export declare const SETTINGS_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Settings\"]";
|
|
5
|
-
export declare const RIBBON_SELECTOR = ".in-ribbons-wrapper";
|
|
6
2
|
export declare const ACADEMY_LINK = "https://academy.useinsider.com/docs/email-drag-drop-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"checkbox-block\"\n class=\"
|
|
1
|
+
declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"checkbox-block\" \n class=\"checkbox-block-v2 esd-block-checkbox esd-checkbox-block esd-extension-block es-p20\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"39\" style=\"vertical-align: top\">\n <input type=\"checkbox\">\n </td>\n <td align=\"left\" width=\"816\" style=\"vertical-align: top\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
|
|
2
2
|
/**
|
|
3
3
|
* @returns The template for the default checkbox block
|
|
4
4
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { Block, BlockCompositionType, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
export declare const BLOCK_ID = "items-block";
|
|
3
|
-
/**
|
|
4
|
-
* Items Block extension for Stripo email editor.
|
|
5
|
-
*
|
|
6
|
-
* Displays personalized product items (cart items, browsed items, or purchased items)
|
|
7
|
-
* in a configurable card layout with horizontal or vertical orientation.
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Multiple product data sources (cart, browsed, purchased)
|
|
11
|
-
* - Configurable card composition (image, name, price, quantity, button)
|
|
12
|
-
* - Orientation control (horizontal/vertical)
|
|
13
|
-
* - Price formatting and currency display options
|
|
14
|
-
* - Product name trimming
|
|
15
|
-
* - Onboarding support
|
|
16
|
-
*/
|
|
17
3
|
export declare class ItemsBlock extends Block {
|
|
18
4
|
getId(): string;
|
|
19
5
|
getIcon(): string;
|
|
@@ -23,5 +9,4 @@ export declare class ItemsBlock extends Block {
|
|
|
23
9
|
getTemplate(): string;
|
|
24
10
|
allowInnerBlocksDND(): boolean;
|
|
25
11
|
onCreated(node: ImmutableHtmlNode): void;
|
|
26
|
-
onSelect(node: ImmutableHtmlNode): void;
|
|
27
12
|
}
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
1
|
import { CommonControl } from '../../common-control';
|
|
3
2
|
export declare const COMPOSITION_CONTROL_BLOCK_ID = "ui-elements-items-card-composition-block";
|
|
4
3
|
export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
5
|
-
private store;
|
|
6
|
-
private visibilityState;
|
|
7
4
|
getId(): string;
|
|
8
5
|
getTemplate(): string;
|
|
9
6
|
onRender(): void;
|
|
10
|
-
|
|
7
|
+
onDestroy(): void;
|
|
11
8
|
_getToggleContainer({ name, label }: {
|
|
12
9
|
name: string;
|
|
13
10
|
label: string;
|
|
14
11
|
}): string;
|
|
15
12
|
_initializeToggles(): void;
|
|
16
|
-
_updateTogglesFromState(): void;
|
|
17
|
-
_syncVisibilityFromAttributes(): void;
|
|
18
|
-
/**
|
|
19
|
-
* If itemsType is not BROWSED_ITEMS, show quantity
|
|
20
|
-
* If itemsType is BROWSED_ITEMS, hide quantity
|
|
21
|
-
* and mark it as '0'
|
|
22
|
-
*/
|
|
23
|
-
_handleBrowsedItemsQuantity(): void;
|
|
24
|
-
_applyVisibilityStyles(): void;
|
|
25
|
-
_updateVisibilityAttribute(elementName: string, isVisible: boolean): void;
|
|
26
13
|
_listenToFormUpdates(): void;
|
|
27
|
-
_onProductImageChange(value:
|
|
28
|
-
_onProductNameChange(value:
|
|
29
|
-
_onProductQuantityChange(value:
|
|
30
|
-
_onProductPriceChange(value:
|
|
31
|
-
_onProductOriginalPriceChange(value:
|
|
32
|
-
_onProductButtonChange(value:
|
|
14
|
+
_onProductImageChange(value: string): void;
|
|
15
|
+
_onProductNameChange(value: string): void;
|
|
16
|
+
_onProductQuantityChange(value: string): void;
|
|
17
|
+
_onProductPriceChange(value: string): void;
|
|
18
|
+
_onProductOriginalPriceChange(value: string): void;
|
|
19
|
+
_onProductButtonChange(value: string): void;
|
|
33
20
|
}
|
|
@@ -8,7 +8,6 @@ export declare class PriceCurrencySymbolControl extends CommonControl {
|
|
|
8
8
|
getId(): string;
|
|
9
9
|
getTemplate(): string;
|
|
10
10
|
onRender(): void;
|
|
11
|
-
onDestroy(): void;
|
|
12
11
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
13
12
|
_onCurrencySymbolChange(value: string): void;
|
|
14
13
|
private _storeOriginalContents;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
1
|
import { CommonControl } from '../../../common-control';
|
|
3
2
|
import { ItemsBlockControlId } from '../../enums/controlEnums';
|
|
4
3
|
export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.PRICE_HIDE_DISCOUNT;
|
|
5
4
|
export declare class PriceHideDiscountControl extends CommonControl {
|
|
6
|
-
private store;
|
|
7
5
|
getId(): string;
|
|
8
6
|
getTemplate(): string;
|
|
9
|
-
onRender(): void
|
|
10
|
-
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
11
|
-
_onHideDiscountChange(value: boolean): void;
|
|
7
|
+
onRender(): Promise<void>;
|
|
12
8
|
_getHideDiscount(): string;
|
|
13
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ProductType } from '@@/Types/extensions/items';
|
|
2
1
|
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
3
2
|
import { CommonControl } from '../../common-control';
|
|
4
3
|
export declare const CONTROL_BLOCK_ID = "ui-elements-items-block";
|
|
@@ -13,7 +12,7 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
13
12
|
_getOrientation(): string;
|
|
14
13
|
_getItemInCart(): string;
|
|
15
14
|
_onOrientationChange(value: string): void;
|
|
16
|
-
_onItemsTypeChange(value: string): void;
|
|
15
|
+
_onItemsTypeChange(value: string, oldValue: string): void;
|
|
17
16
|
_onItemIdsChange(value: string): void;
|
|
18
17
|
_initializeSelectItems(): void;
|
|
19
18
|
_listenToFormUpdates(): void;
|
|
@@ -31,13 +30,8 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
31
30
|
_updatePrice(price: string): void;
|
|
32
31
|
_updateOriginalPrice(originalPrice: string): void;
|
|
33
32
|
_updateQuantity(quantity: string): void;
|
|
34
|
-
|
|
35
|
-
* @todo Optimize template reordering for performance.
|
|
36
|
-
* @description Reorders the template structure based on current orientation and visibility settings.
|
|
37
|
-
*/
|
|
33
|
+
_updateButton(button: string): void;
|
|
38
34
|
_reOrderTemplate(): void;
|
|
39
|
-
_updateDataTypeAttributes(itemsType: ProductType): void;
|
|
40
|
-
_updateDataNumberAttributes(itemId: string): void;
|
|
41
35
|
_reFillTemplate(): void;
|
|
42
36
|
_recalculateTrimming(): void;
|
|
43
37
|
private _getParagraphFromBlock;
|
|
@@ -44,7 +44,6 @@ export declare enum ItemsBlockControlId {
|
|
|
44
44
|
PRICE_FORMATTED_PRICE = "items-block-price-formatted-price-control",
|
|
45
45
|
PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
|
|
46
46
|
PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
|
|
47
|
-
PRICE_ORIENTATION = "items-block-price-orientation-control",
|
|
48
47
|
NAME_ALIGN = "items-block-name-align-control",
|
|
49
48
|
NAME_COLOR = "items-block-name-color-control",
|
|
50
49
|
NAME_SIZE = "items-block-name-size-control",
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
export declare const templateFirstLine = "<td align=\"center\" class=\"ins-product-td items-block items-block-v2\">";
|
|
2
1
|
export declare const configAttributes: {
|
|
3
2
|
TYPE: string;
|
|
4
3
|
ITEMS_INDEX_SELECT_CONTROL_VALUE: string;
|
|
5
4
|
ORIENTATION: string;
|
|
6
|
-
PRODUCT_NAME_TRIMMING: string;
|
|
7
|
-
PRODUCT_PRICE_HIDE_DISCOUNT: string;
|
|
8
|
-
PRODUCT_PRICE_FORMATTED: string;
|
|
9
|
-
PRODUCT_PRICE_CURRENCY_SYMBOL: string;
|
|
10
|
-
PRODUCT_PRICE_CURRENCY_LOCATION: string;
|
|
11
|
-
PRODUCT_ORIGINAL_PRICE_CONTROL_ORIENTATION: string;
|
|
12
|
-
PRODUCT_BUTTON_LINK: string;
|
|
13
|
-
PRODUCT_IMAGE_LINK: string;
|
|
14
5
|
PRODUCT_NAME_CONTROL_VALUE: string;
|
|
15
6
|
PRODUCT_QUANTITY_CONTROL_VALUE: string;
|
|
16
7
|
PRODUCT_PRICE_CONTROL_VALUE: string;
|
|
17
|
-
BLOCK_INSTANCE_ID: string;
|
|
18
|
-
NAME_CONTROL_ENABLED: string;
|
|
19
|
-
QUANTITY_CONTROL_ENABLED: string;
|
|
20
|
-
PRICE_CONTROL_OPENED: string;
|
|
21
|
-
PRODUCT_IMAGE_VISIBLE: string;
|
|
22
|
-
PRODUCT_NAME_VISIBLE: string;
|
|
23
|
-
PRODUCT_QUANTITY_VISIBLE: string;
|
|
24
|
-
PRODUCT_PRICE_VISIBLE: string;
|
|
25
|
-
PRODUCT_ORIGINAL_PRICE_VISIBLE: string;
|
|
26
|
-
PRODUCT_BUTTON_VISIBLE: string;
|
|
27
8
|
};
|
|
28
9
|
export declare const productPairs: {
|
|
29
10
|
PAIRS_FOR_EXTENSION: {
|
|
@@ -160,4 +141,3 @@ export declare const productPairs: {
|
|
|
160
141
|
};
|
|
161
142
|
};
|
|
162
143
|
};
|
|
163
|
-
export declare const itemsBlockDynamicVariables: string[];
|
|
@@ -19,28 +19,13 @@ export declare const OrientationOptions: {
|
|
|
19
19
|
}[];
|
|
20
20
|
export declare const DefaultConfigValues: {
|
|
21
21
|
itemsType: string;
|
|
22
|
-
isDataInitialized: string;
|
|
23
22
|
cartItemsSelectControlValue: string;
|
|
24
23
|
cardOrientationControlValue: string;
|
|
25
|
-
productNameTrimmingControlValue: string;
|
|
26
|
-
productPriceHideDiscountControlValue: string;
|
|
27
|
-
productPriceFormattedControlValue: string;
|
|
28
|
-
productPriceCurrencySymbolControlValue: string;
|
|
29
|
-
productPriceCurrencyLocationControlValue: string;
|
|
30
|
-
productButtonLinkControlValue: string;
|
|
31
|
-
productImageLinkControlValue: string;
|
|
32
24
|
productNameControlEnabled: string;
|
|
33
25
|
productQuantityControlOpened: string;
|
|
34
26
|
productNameControlTrim: string;
|
|
35
27
|
productQuantityControlEnabled: string;
|
|
36
28
|
productPriceControlOpened: string;
|
|
37
|
-
productImageVisible: string;
|
|
38
|
-
productNameVisible: string;
|
|
39
|
-
productQuantityVisible: string;
|
|
40
|
-
productPriceVisible: string;
|
|
41
|
-
productOriginalPriceVisible: string;
|
|
42
|
-
productButtonVisible: string;
|
|
43
|
-
productImageWidth: string;
|
|
44
29
|
};
|
|
45
30
|
export declare const ItemInCartOptions: {
|
|
46
31
|
[x: string]: {
|
|
@@ -6,11 +6,9 @@ interface ItemsBlockState {
|
|
|
6
6
|
buttonLink: string;
|
|
7
7
|
orientation: OrientationType;
|
|
8
8
|
nameTrimming: boolean;
|
|
9
|
-
hideDiscount: boolean;
|
|
10
9
|
currencySymbol: string;
|
|
11
10
|
currencyLocation: string;
|
|
12
11
|
formattedPrice: boolean;
|
|
13
|
-
priceOrientation: 'vertical' | 'horizontal';
|
|
14
12
|
templateData: {
|
|
15
13
|
imageSrc: string;
|
|
16
14
|
name: string;
|
|
@@ -20,18 +18,16 @@ interface ItemsBlockState {
|
|
|
20
18
|
button: string;
|
|
21
19
|
};
|
|
22
20
|
}
|
|
23
|
-
export declare const useItemsBlockStore: import("pinia").StoreDefinition<"
|
|
21
|
+
export declare const useItemsBlockStore: import("pinia").StoreDefinition<"items-block", ItemsBlockState, {}, {
|
|
24
22
|
setItemsType(itemsType: ProductType): void;
|
|
25
23
|
setItemIds(itemIds: string): void;
|
|
26
24
|
setImageLink(imageLink: string): void;
|
|
27
25
|
setButtonLink(buttonLink: string): void;
|
|
28
26
|
setOrientation(orientation: OrientationType): void;
|
|
29
27
|
setNameTrimming(nameTrimming: boolean): void;
|
|
30
|
-
setHideDiscount(hideDiscount: boolean): void;
|
|
31
28
|
setCurrencySymbol(currencySymbol: string): void;
|
|
32
29
|
setCurrencyLocation(currencyLocation: string): void;
|
|
33
30
|
setFormattedPrice(formattedPrice: boolean): void;
|
|
34
|
-
setPriceOrientation(priceOrientation: "vertical" | "horizontal"): void;
|
|
35
31
|
setTemplateData(templateData: ItemsBlockState["templateData"]): void;
|
|
36
32
|
updateFromAttributes(attributes: {
|
|
37
33
|
itemsType?: string;
|
|
@@ -10,15 +10,7 @@ type TemplateParameters = {
|
|
|
10
10
|
formattedPrice?: boolean;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @param params - Template parameters including orientation, items type, item ID, and formatting options
|
|
15
|
-
* @param params.orientation - Layout orientation ('vertical' or 'horizontal')
|
|
16
|
-
* @param params.itemsType - Product data source type ('CART_ITEMS', 'BROWSED_ITEMS', or 'PURCHASED_ITEMS')
|
|
17
|
-
* @param params.itemId - The merge tag for the item (e.g., '{{Abandoned Cart Item (1) Url}}')
|
|
18
|
-
* @param params.currencySymbol - Currency symbol to display (e.g., 'USD')
|
|
19
|
-
* @param params.currencyLocation - Currency position ('0' for before, '1' for after)
|
|
20
|
-
* @param params.formattedPrice - Whether to use formatted price display
|
|
21
|
-
* @returns HTML template string for the Items Block
|
|
13
|
+
* @returns The template for the default checkbox block
|
|
22
14
|
*/
|
|
23
15
|
export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, formattedPrice, }: TemplateParameters): string;
|
|
24
16
|
export default migrationTemplate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"radio-button-block\"\n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"
|
|
1
|
+
declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"radio-button-block\" \n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"radio-button-v2 esd-block-ra esd-radio-button-block esd-extension-block es-p10t es-p10b es-p30r es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;>\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
|
|
2
2
|
/**
|
|
3
3
|
* @returns The template for the default checkbox block
|
|
4
4
|
*/
|
|
@@ -34,7 +34,7 @@ interface StoreState {
|
|
|
34
34
|
filterList: FiltersResponse;
|
|
35
35
|
filterGroup: number;
|
|
36
36
|
}
|
|
37
|
-
export declare const useRecommendationExtensionStore: import("pinia").StoreDefinition<"
|
|
37
|
+
export declare const useRecommendationExtensionStore: import("pinia").StoreDefinition<"recommendationExtension", StoreState, {
|
|
38
38
|
hasFilters: (state: {
|
|
39
39
|
recommendationCampaignUrls: Record<string, string>;
|
|
40
40
|
recommendationConfigs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
|
|
3
3
|
export declare const UNSUBSCRIBE_BLOCK_ID = "unsubscribe-block";
|
|
4
4
|
export declare class UnsubscribeBlock extends Block {
|
|
@@ -12,8 +12,9 @@ export declare class UnsubscribeBlock extends Block {
|
|
|
12
12
|
getName(): string;
|
|
13
13
|
getDescription(): string;
|
|
14
14
|
getTemplate(): string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
onCreated(node: ImmutableHtmlNode): void;
|
|
16
|
+
onSelect(node: ImmutableHtmlNode): undefined;
|
|
17
|
+
onDelete(node: ImmutableHtmlNode): undefined;
|
|
17
18
|
onDestroy(): void;
|
|
18
19
|
private _setupSelectEventListener;
|
|
19
20
|
private _removeSelectEventListener;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { TextValueObject } from '@@/Types/generic';
|
|
2
|
-
import { Control,
|
|
2
|
+
import { Control, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
3
3
|
interface TextInputProps {
|
|
4
4
|
name: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
className?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
7
|
}
|
|
9
8
|
interface LabelProps {
|
|
10
9
|
text: string;
|
|
@@ -48,33 +47,11 @@ interface ButtonProps {
|
|
|
48
47
|
*/
|
|
49
48
|
export declare abstract class CommonControl extends Control {
|
|
50
49
|
currentNode?: ImmutableHtmlNode;
|
|
51
|
-
protected lastBlockInstanceId: string | null;
|
|
52
50
|
abstract getId(): string;
|
|
53
51
|
abstract getTemplate(): string;
|
|
54
52
|
abstract onRender(): Promise<void> | void;
|
|
55
53
|
getContainer(): ShadowRoot;
|
|
56
54
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
57
|
-
onDestroy(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the config block element from the current node.
|
|
60
|
-
* @returns The config block element or null if not found
|
|
61
|
-
*/
|
|
62
|
-
protected getConfigBlock(): ImmutableHtmlElementNode | null;
|
|
63
|
-
/**
|
|
64
|
-
* Gets the current block instance ID from the config block.
|
|
65
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
66
|
-
* @returns The block instance ID or null if not found
|
|
67
|
-
*/
|
|
68
|
-
protected getBlockInstanceId(blockInstanceIdAttribute?: string): string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Handles block instance change detection and syncing.
|
|
71
|
-
* This is a helper method for controls that need to sync attributes when switching between block instances.
|
|
72
|
-
* @param syncFunction - Function to call when block instance changes (to sync from attributes)
|
|
73
|
-
* @param updateUI - Function to call to update the UI (called both on change and when same block)
|
|
74
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
75
|
-
* @returns true if block instance changed, false otherwise
|
|
76
|
-
*/
|
|
77
|
-
protected handleBlockInstanceChange(syncFunction: (node: ImmutableHtmlNode) => void, updateUI: () => void, blockInstanceIdAttribute?: string): boolean;
|
|
78
55
|
_GuLabel({ text, name, position }: LabelProps): string;
|
|
79
56
|
_GuToggle(name: string): string;
|
|
80
57
|
_GuSelectItem({ text, value }: {
|
|
@@ -82,7 +59,7 @@ export declare abstract class CommonControl extends Control {
|
|
|
82
59
|
value: string;
|
|
83
60
|
}): string;
|
|
84
61
|
_GuSelect({ name, placeholder, options, className }: SelectProps): string;
|
|
85
|
-
_GuTextInput({ name, placeholder, className
|
|
62
|
+
_GuTextInput({ name, placeholder, className }: TextInputProps): string;
|
|
86
63
|
_GuCounter({ name, maxValue, minValue, step }: CounterProps): string;
|
|
87
64
|
_GuRadioButtonItem({ text, value, icon }: {
|
|
88
65
|
text?: string;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { DynamicContent
|
|
1
|
+
import type { DynamicContent } from '@@/Types/generic';
|
|
2
2
|
export declare class ExternalMergeTagsLibrary {
|
|
3
3
|
selectedDynamicContent: DynamicContent | null;
|
|
4
4
|
dataSelectCallback: (data: DynamicContent) => void;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Opens the merge tags library modal
|
|
8
|
-
* @param dynamicContent - Currently selected dynamic content (if any)
|
|
9
|
-
* @param onDataSelectCallback - Callback invoked when user selects a merge tag
|
|
10
|
-
* @param position - Optional position data to place the modal
|
|
11
|
-
*/
|
|
12
|
-
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void, position?: PositionData): void;
|
|
5
|
+
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void): void;
|
|
13
6
|
}
|