@useinsider/guido 3.2.0-beta.570fb6d → 3.2.0-beta.5cea610
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 +1 -1
- package/dist/@types/config/validator.js +34 -27
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +81 -76
- package/dist/components/organisms/base/Toaster.vue2.js +11 -10
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +15 -9
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +40 -31
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +20 -19
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +14 -11
- package/dist/components/organisms/header/EditorActions.vue.js +12 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +22 -18
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -12
- package/dist/components/organisms/header/LeftSlot.vue2.js +19 -16
- package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -14
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +51 -29
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +13 -12
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +44 -40
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +13 -12
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +50 -47
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +21 -18
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +31 -27
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -12
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +35 -44
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -20
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +9 -8
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -9
- package/dist/composables/useActionsApi.js +38 -37
- package/dist/composables/useBlocksConfig.js +26 -26
- package/dist/composables/useFullStoryBridge.js +9 -8
- package/dist/composables/useHtmlCompiler.js +26 -34
- package/dist/composables/useHtmlValidator.js +109 -101
- package/dist/composables/useHttp.js +30 -30
- package/dist/composables/usePartner.js +1 -1
- package/dist/composables/useRecommendation.js +15 -14
- package/dist/composables/useRibbonOffset.js +21 -0
- package/dist/composables/useSave.js +22 -21
- package/dist/composables/useStripo.js +50 -53
- package/dist/composables/useSyncModuleExtractor.js +29 -31
- package/dist/composables/useTimerClone.js +25 -24
- package/dist/composables/useTranslations.js +16 -23
- package/dist/composables/useValidation.js +8 -7
- package/dist/composables/validators/useLiquidValidator.js +13 -13
- package/dist/config/compiler/unsubscribeCompilerRules.js +19 -17
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +11 -10
- package/dist/config/migrator/checkboxMigrator.js +21 -20
- package/dist/config/migrator/couponBlockMigrator.js +19 -18
- package/dist/config/migrator/itemsBlockMigrator.js +105 -93
- package/dist/config/migrator/radioButtonMigrator.js +13 -12
- package/dist/config/migrator/recommendationMigrator.js +109 -106
- package/dist/config/migrator/unsubscribeMigrator.js +11 -10
- package/dist/enums/onboarding.js +7 -2
- package/dist/enums/unsubscribe.js +19 -18
- package/dist/extensions/Blocks/Items/block.js +9 -9
- package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +97 -89
- package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +24 -23
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +14 -13
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +47 -44
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +40 -38
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +162 -155
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/template.js +210 -210
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +133 -128
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +18 -17
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +6 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -82
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +36 -35
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +135 -134
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +10 -10
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
- package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +20 -18
- package/dist/extensions/Blocks/Recommendation/extension.js +32 -31
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +16 -8
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +56 -55
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +23 -22
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +25 -24
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +47 -45
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +16 -13
- package/dist/extensions/Blocks/Unsubscribe/control.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +18 -16
- package/dist/extensions/Blocks/common-control.js +26 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +58 -53
- package/dist/guido.css +1 -1
- package/dist/library.js +12 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +286 -262
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Hash.js +20 -0
- package/dist/node_modules/lodash-es/_ListCache.js +20 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +20 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
- package/dist/node_modules/lodash-es/_arraySome.js +9 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/dist/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/lodash-es/_baseRange.js +9 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_createRange.js +11 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/lodash-es/_getTag.js +28 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hasPath.js +19 -0
- package/dist/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/lodash-es/_toSource.js +17 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isFunction.js +12 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/map.js +11 -0
- package/dist/node_modules/lodash-es/memoize.js +18 -0
- package/dist/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/lodash-es/range.js +5 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toFinite.js +14 -0
- package/dist/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/valibot/dist/index.js +126 -122
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +17 -14
- package/dist/services/templateLibraryApi.js +40 -38
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useHtmlCompiler.d.ts +2 -1
- package/dist/src/composables/useRibbonOffset.d.ts +4 -0
- package/dist/src/composables/useTranslations.d.ts +1 -1
- package/dist/src/enums/onboarding.d.ts +6 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/onboarding.d.ts +4 -0
- package/dist/stores/config.js +81 -25
- package/dist/stores/dynamic-content.js +11 -6
- package/dist/stores/onboarding.js +9 -5
- package/dist/stores/preview.js +9 -6
- package/dist/stores/unsubscribe.js +4 -1
- package/dist/utils/dateUtil.js +10 -7
- package/dist/utils/genericUtil.js +13 -10
- package/dist/utils/pairProductVariables.js +89 -87
- package/package.json +5 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x = class d {
|
|
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
|
|
5
5
|
* @param classRef - Reference to the class constructor for validation caching
|
|
6
6
|
*/
|
|
7
|
-
constructor(t,
|
|
8
|
-
if (
|
|
9
|
-
d.validatedClasses.has(
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
7
|
+
constructor(t, r) {
|
|
8
|
+
if (r !== d) {
|
|
9
|
+
d.validatedClasses.has(r) || this.validateImplementation(t, r);
|
|
10
|
+
const s = d.validationErrors.get(r);
|
|
11
|
+
if (s && s.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
14
|
-
${
|
|
13
|
+
`${r.name} has validation errors:
|
|
14
|
+
${s.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -20,15 +20,16 @@ ${i.map((E) => ` - ${E}`).join(`
|
|
|
20
20
|
* Validates that all required methods are properly implemented in the subclass.
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
|
-
validateImplementation(t,
|
|
24
|
-
|
|
23
|
+
validateImplementation(t, r) {
|
|
24
|
+
var y;
|
|
25
|
+
const s = [], o = r.name, W = Object.getPrototypeOf(this);
|
|
25
26
|
t.forEach((u) => {
|
|
26
27
|
if (typeof this[u] != "function") {
|
|
27
|
-
|
|
28
|
+
s.push(`Method ${u}() is not defined`);
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
}), d.validatedClasses.add(
|
|
31
|
+
W[u] === r.prototype[u] && s.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((y = process.env) == null ? void 0 : y.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
|
|
@@ -38,9 +39,9 @@ ${i.map((E) => ` - ${E}`).join(`
|
|
|
38
39
|
destroy() {
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var
|
|
42
|
+
x.validatedClasses = /* @__PURE__ */ new Set();
|
|
43
|
+
x.validationErrors = /* @__PURE__ */ new Map();
|
|
44
|
+
var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(z || {}), P = class T extends i {
|
|
44
45
|
constructor() {
|
|
45
46
|
super(T.REQUIRED_METHODS, T);
|
|
46
47
|
}
|
|
@@ -159,6 +160,9 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
|
|
|
159
160
|
allowInnerBlocksDND() {
|
|
160
161
|
return !0;
|
|
161
162
|
}
|
|
163
|
+
allowInteractWithAMPWhenSelected() {
|
|
164
|
+
return !0;
|
|
165
|
+
}
|
|
162
166
|
/**
|
|
163
167
|
* Gets the unique identifier for this block type.
|
|
164
168
|
* This ID is used for registration and referencing the block.
|
|
@@ -217,15 +221,14 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
|
|
|
217
221
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
218
222
|
}
|
|
219
223
|
};
|
|
220
|
-
|
|
221
|
-
var
|
|
224
|
+
P.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
225
|
+
var Ze = P, Z = class I extends i {
|
|
222
226
|
constructor() {
|
|
223
227
|
super(I.REQUIRED_METHODS, I);
|
|
224
228
|
}
|
|
225
229
|
/**
|
|
226
230
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
227
231
|
*/
|
|
228
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
229
232
|
getPreviewHtml(t) {
|
|
230
233
|
}
|
|
231
234
|
/**
|
|
@@ -235,8 +238,8 @@ var Ye = v, W = class I extends a {
|
|
|
235
238
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
236
239
|
}
|
|
237
240
|
};
|
|
238
|
-
|
|
239
|
-
var
|
|
241
|
+
Z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
242
|
+
var qe = class {
|
|
240
243
|
/**
|
|
241
244
|
* Generates HTML representation for a block item
|
|
242
245
|
* @param block - The block item to generate HTML for
|
|
@@ -310,7 +313,7 @@ var $e = class {
|
|
|
310
313
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
311
314
|
getModulesTabIconName(e) {
|
|
312
315
|
}
|
|
313
|
-
},
|
|
316
|
+
}, q = class b extends i {
|
|
314
317
|
constructor() {
|
|
315
318
|
super(b.REQUIRED_METHODS, b);
|
|
316
319
|
}
|
|
@@ -327,86 +330,86 @@ var $e = class {
|
|
|
327
330
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
328
331
|
}
|
|
329
332
|
};
|
|
330
|
-
|
|
331
|
-
var
|
|
333
|
+
q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
334
|
+
var j = {
|
|
332
335
|
src: "src",
|
|
333
336
|
alt: "alt",
|
|
334
337
|
href: "href",
|
|
335
338
|
width: "width",
|
|
336
339
|
height: "height"
|
|
337
|
-
},
|
|
338
|
-
BLOCK_IMAGE:
|
|
339
|
-
},
|
|
340
|
-
BLOCK_BUTTON:
|
|
341
|
-
BLOCK_TEXT:
|
|
342
|
-
BLOCK_IMAGE:
|
|
343
|
-
GENERAL:
|
|
344
|
-
},
|
|
340
|
+
}, je = {
|
|
341
|
+
BLOCK_IMAGE: j
|
|
342
|
+
}, U = "esd-block-button", w = "esd-block-text", K = "esd-block-image", J = "esd-structure", ee = "esd-block-video", te = "esd-block-social", re = "esd-block-banner", ae = "esd-block-timer", ne = "esd-block-menu", se = "esd-block-html", ie = "esd-block-spacer", le = "esd-container-frame", Ee = "esd-stripe", oe = "esd-amp-form", c = ((e) => (e.BUTTON = `.${U}`, e.TEXT = `.${w}`, e.IMAGE = `.${K}`, e.STRUCTURE = `.${J}`, e.VIDEO = `.${ee}`, e.SOCIAL = `.${te}`, e.BANNER = `.${re}`, e.TIMER = `.${ae}`, e.MENU = `.${ne}`, e.HTML = `.${se}`, e.SPACER = `.${ie}`, e.CONTAINER = `.${le}`, e.STRIPE = `.${Ee}`, e.FORM = `.${oe}`, e))(c || {}), de = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(de || {}), F = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(H || {}), k = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.FONT_WEIGHT = "textBlockFontWeight", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(k || {}), p = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(p || {}), ue = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(ue || {}), n = {
|
|
343
|
+
BLOCK_BUTTON: H,
|
|
344
|
+
BLOCK_TEXT: k,
|
|
345
|
+
BLOCK_IMAGE: p,
|
|
346
|
+
GENERAL: F
|
|
347
|
+
}, ce = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e.themeMode = "themeMode", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(Te || {}), Ie = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Ie || {}), a = {
|
|
345
348
|
name: "name",
|
|
346
349
|
disabled: "disabled"
|
|
347
|
-
},
|
|
348
|
-
...
|
|
350
|
+
}, be = {
|
|
351
|
+
...a,
|
|
349
352
|
caption: "caption",
|
|
350
353
|
icon: "icon"
|
|
351
|
-
},
|
|
352
|
-
...
|
|
354
|
+
}, he = {
|
|
355
|
+
...a,
|
|
353
356
|
caption: "caption"
|
|
354
|
-
},
|
|
355
|
-
...
|
|
357
|
+
}, me = {
|
|
358
|
+
...a,
|
|
356
359
|
minValue: "min-value",
|
|
357
360
|
maxValue: "max-value",
|
|
358
361
|
step: "step"
|
|
359
|
-
},
|
|
360
|
-
...
|
|
362
|
+
}, ge = {
|
|
363
|
+
...a,
|
|
361
364
|
placeholder: "placeholder",
|
|
362
365
|
minDate: "min-date"
|
|
363
|
-
},
|
|
364
|
-
...
|
|
366
|
+
}, Oe = {
|
|
367
|
+
...a,
|
|
365
368
|
text: "text",
|
|
366
369
|
hint: "hint"
|
|
367
|
-
},
|
|
368
|
-
...
|
|
370
|
+
}, Re = {
|
|
371
|
+
...a,
|
|
369
372
|
type: "type"
|
|
370
|
-
},
|
|
371
|
-
...
|
|
373
|
+
}, Le = {
|
|
374
|
+
...a,
|
|
372
375
|
buttons: "buttons"
|
|
373
|
-
},
|
|
374
|
-
...
|
|
376
|
+
}, X = {
|
|
377
|
+
...a,
|
|
375
378
|
searchable: "searchable",
|
|
376
379
|
multiSelect: "multi-select",
|
|
377
380
|
placeholder: "placeholder",
|
|
378
381
|
items: "items"
|
|
379
|
-
},
|
|
380
|
-
...
|
|
382
|
+
}, _e = {
|
|
383
|
+
...X,
|
|
381
384
|
addCustomFontOption: "add-custom-font-option"
|
|
382
|
-
},
|
|
383
|
-
...
|
|
385
|
+
}, Ce = {
|
|
386
|
+
...a,
|
|
384
387
|
text: "text",
|
|
385
388
|
value: "value"
|
|
386
|
-
},
|
|
387
|
-
...
|
|
389
|
+
}, Ae = {
|
|
390
|
+
...a,
|
|
388
391
|
text: "text",
|
|
389
392
|
hint: "hint",
|
|
390
393
|
icon: "icon",
|
|
391
394
|
value: "value"
|
|
392
|
-
},
|
|
393
|
-
...
|
|
395
|
+
}, Ne = {
|
|
396
|
+
...a,
|
|
394
397
|
buttons: "buttons"
|
|
395
|
-
},
|
|
396
|
-
...
|
|
398
|
+
}, De = {
|
|
399
|
+
...a,
|
|
397
400
|
text: "text",
|
|
398
401
|
hint: "hint",
|
|
399
402
|
icon: "icon",
|
|
400
403
|
value: "value"
|
|
401
|
-
},
|
|
402
|
-
...
|
|
404
|
+
}, Se = {
|
|
405
|
+
...a,
|
|
403
406
|
placeholder: "placeholder"
|
|
404
|
-
},
|
|
405
|
-
...
|
|
407
|
+
}, Me = {
|
|
408
|
+
...a,
|
|
406
409
|
resizable: "resizable",
|
|
407
410
|
placeholder: "placeholder"
|
|
408
|
-
},
|
|
409
|
-
...
|
|
411
|
+
}, Be = {
|
|
412
|
+
...a,
|
|
410
413
|
img: "img",
|
|
411
414
|
src: "src",
|
|
412
415
|
title: "title",
|
|
@@ -416,54 +419,61 @@ var Z = {
|
|
|
416
419
|
isActive: "is-active",
|
|
417
420
|
visibility: "visibility",
|
|
418
421
|
transform: "transform"
|
|
419
|
-
},
|
|
420
|
-
...
|
|
422
|
+
}, xe = {
|
|
423
|
+
...a,
|
|
421
424
|
controlId: "control-id"
|
|
422
|
-
},
|
|
423
|
-
...
|
|
425
|
+
}, ve = {
|
|
426
|
+
...a,
|
|
424
427
|
expanded: "expanded"
|
|
425
|
-
},
|
|
426
|
-
...
|
|
428
|
+
}, ye = {
|
|
429
|
+
...a,
|
|
427
430
|
icon: "icon",
|
|
428
431
|
position: "position"
|
|
429
|
-
}, ve = {
|
|
430
|
-
...r
|
|
431
|
-
}, ye = {
|
|
432
|
-
...r,
|
|
433
|
-
icon: "icon"
|
|
434
432
|
}, Pe = {
|
|
435
|
-
...
|
|
436
|
-
},
|
|
437
|
-
...
|
|
433
|
+
...a
|
|
434
|
+
}, Ue = {
|
|
435
|
+
...a,
|
|
436
|
+
icon: "icon"
|
|
437
|
+
}, we = {
|
|
438
|
+
...a
|
|
439
|
+
}, Ke = {
|
|
440
|
+
...a,
|
|
438
441
|
blockId: "block-id"
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
442
|
+
}, Fe = {
|
|
443
|
+
...a
|
|
444
|
+
}, He = {
|
|
445
|
+
...a,
|
|
446
|
+
placeholder: "placeholder"
|
|
447
|
+
}, Je = {
|
|
448
|
+
DEFAULT: a,
|
|
449
|
+
BUTTON: be,
|
|
450
|
+
CHECKBOX: he,
|
|
451
|
+
CHECK_BUTTONS: Ne,
|
|
452
|
+
COLOR: a,
|
|
453
|
+
COUNTER: me,
|
|
454
|
+
DATEPICKER: ge,
|
|
455
|
+
LABEL: Oe,
|
|
456
|
+
MESSAGE: Re,
|
|
457
|
+
RADIO_BUTTONS: Le,
|
|
458
|
+
SELECTPICKER: X,
|
|
459
|
+
FONT_FAMILY_SELECT: _e,
|
|
460
|
+
SWITCHER: a,
|
|
461
|
+
TEXT: Se,
|
|
462
|
+
TEXTAREA: Me,
|
|
463
|
+
ICON: Be,
|
|
464
|
+
CHECK_ITEM: Ae,
|
|
465
|
+
SELECT_ITEM: Ce,
|
|
466
|
+
RADIO_ITEM: De,
|
|
467
|
+
NESTED_CONTROL: xe,
|
|
468
|
+
EXPANDABLE: ve,
|
|
469
|
+
ORDERABLE: ye,
|
|
470
|
+
ORDERABLE_ITEM: Pe,
|
|
471
|
+
ORDERABLE_ICON: Ue,
|
|
472
|
+
REPEATABLE: we,
|
|
473
|
+
DRAGGABLE_BLOCK: Ke,
|
|
474
|
+
AMP_FORM_SERVICE_PICKER: Fe,
|
|
475
|
+
MULTIPLE_SELECT: He
|
|
476
|
+
}, ke = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e.AMP_FORM_SERVICE_PICKER = "UE-AMP-FORM-SERVICE-PICKER", e.MULTIPLE_SELECT = "UE-MULTIPLE_SELECT", e.SCROLLABLE = "UE-SCROLLABLE-CONTAINER", e))(ke || {}), v = class {
|
|
467
477
|
/**
|
|
468
478
|
* @description returns map of nodes parent control operates on
|
|
469
479
|
*/
|
|
@@ -494,66 +504,66 @@ var Z = {
|
|
|
494
504
|
isVisible(e) {
|
|
495
505
|
return !0;
|
|
496
506
|
}
|
|
497
|
-
}, l = class extends
|
|
507
|
+
}, l = class extends v {
|
|
498
508
|
getTargetNodes(e) {
|
|
499
|
-
const t = e.querySelectorAll(c.BUTTON),
|
|
500
|
-
return t.length ? t :
|
|
509
|
+
const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(U) ? [e] : [];
|
|
510
|
+
return t.length ? t : r;
|
|
501
511
|
}
|
|
502
|
-
},
|
|
512
|
+
}, et = class extends l {
|
|
503
513
|
getParentControlId() {
|
|
504
|
-
return
|
|
514
|
+
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
505
515
|
}
|
|
506
516
|
getLabels() {
|
|
507
517
|
}
|
|
508
|
-
},
|
|
518
|
+
}, tt = class extends l {
|
|
509
519
|
getParentControlId() {
|
|
510
|
-
return
|
|
520
|
+
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
511
521
|
}
|
|
512
|
-
},
|
|
522
|
+
}, rt = class extends l {
|
|
513
523
|
getParentControlId() {
|
|
514
|
-
return
|
|
524
|
+
return n.GENERAL.BACKGROUND_COLOR;
|
|
515
525
|
}
|
|
516
|
-
},
|
|
526
|
+
}, at = class extends l {
|
|
517
527
|
getParentControlId() {
|
|
518
|
-
return
|
|
528
|
+
return n.BLOCK_BUTTON.BORDER;
|
|
519
529
|
}
|
|
520
530
|
getLabels() {
|
|
521
531
|
}
|
|
522
|
-
},
|
|
532
|
+
}, nt = class extends l {
|
|
523
533
|
getParentControlId() {
|
|
524
|
-
return
|
|
534
|
+
return n.BLOCK_BUTTON.COLOR;
|
|
525
535
|
}
|
|
526
|
-
},
|
|
536
|
+
}, st = class extends l {
|
|
527
537
|
getParentControlId() {
|
|
528
|
-
return
|
|
538
|
+
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
529
539
|
}
|
|
530
|
-
},
|
|
540
|
+
}, it = class extends l {
|
|
531
541
|
getParentControlId() {
|
|
532
|
-
return
|
|
542
|
+
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
533
543
|
}
|
|
534
|
-
},
|
|
544
|
+
}, lt = class extends l {
|
|
535
545
|
getParentControlId() {
|
|
536
|
-
return
|
|
546
|
+
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
537
547
|
}
|
|
538
|
-
},
|
|
548
|
+
}, Et = class extends l {
|
|
539
549
|
getParentControlId() {
|
|
540
|
-
return
|
|
550
|
+
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
541
551
|
}
|
|
542
|
-
},
|
|
552
|
+
}, ot = class extends l {
|
|
543
553
|
getParentControlId() {
|
|
544
|
-
return
|
|
554
|
+
return n.BLOCK_BUTTON.TEXT;
|
|
545
555
|
}
|
|
546
|
-
},
|
|
556
|
+
}, dt = class extends l {
|
|
547
557
|
getParentControlId() {
|
|
548
|
-
return
|
|
558
|
+
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
549
559
|
}
|
|
550
|
-
},
|
|
560
|
+
}, ut = class extends l {
|
|
551
561
|
getParentControlId() {
|
|
552
|
-
return
|
|
562
|
+
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
553
563
|
}
|
|
554
564
|
getLabels() {
|
|
555
565
|
}
|
|
556
|
-
},
|
|
566
|
+
}, G = class h extends i {
|
|
557
567
|
constructor() {
|
|
558
568
|
super(h.REQUIRED_METHODS, h);
|
|
559
569
|
}
|
|
@@ -608,8 +618,8 @@ var Z = {
|
|
|
608
618
|
onDocumentChanged(t) {
|
|
609
619
|
}
|
|
610
620
|
};
|
|
611
|
-
|
|
612
|
-
var
|
|
621
|
+
G.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
622
|
+
var ct = G, pe = class m extends i {
|
|
613
623
|
constructor() {
|
|
614
624
|
super(m.REQUIRED_METHODS, m);
|
|
615
625
|
}
|
|
@@ -678,21 +688,21 @@ var ot = k, we = class m extends a {
|
|
|
678
688
|
onDestroy() {
|
|
679
689
|
}
|
|
680
690
|
};
|
|
681
|
-
|
|
682
|
-
var
|
|
691
|
+
pe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
692
|
+
var V = class extends v {
|
|
683
693
|
getTargetNodes(e) {
|
|
684
|
-
const t = e.querySelectorAll(c.IMAGE),
|
|
685
|
-
return t.length ? t :
|
|
694
|
+
const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(K) ? [e] : [];
|
|
695
|
+
return t.length ? t : r;
|
|
686
696
|
}
|
|
687
|
-
},
|
|
697
|
+
}, Tt = class extends V {
|
|
688
698
|
getParentControlId() {
|
|
689
|
-
return
|
|
699
|
+
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
690
700
|
}
|
|
691
|
-
},
|
|
701
|
+
}, It = class extends V {
|
|
692
702
|
getParentControlId() {
|
|
693
|
-
return
|
|
703
|
+
return n.BLOCK_IMAGE.SIZE;
|
|
694
704
|
}
|
|
695
|
-
},
|
|
705
|
+
}, Xe = class g extends i {
|
|
696
706
|
constructor() {
|
|
697
707
|
super(g.REQUIRED_METHODS, g);
|
|
698
708
|
}
|
|
@@ -756,8 +766,8 @@ var X = class extends x {
|
|
|
756
766
|
onDocumentChanged() {
|
|
757
767
|
}
|
|
758
768
|
};
|
|
759
|
-
|
|
760
|
-
var
|
|
769
|
+
Xe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
770
|
+
var f = class O extends i {
|
|
761
771
|
constructor() {
|
|
762
772
|
super(O.REQUIRED_METHODS, O);
|
|
763
773
|
}
|
|
@@ -765,10 +775,10 @@ var G = class O extends a {
|
|
|
765
775
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
766
776
|
}
|
|
767
777
|
};
|
|
768
|
-
|
|
769
|
-
var
|
|
770
|
-
constructor(
|
|
771
|
-
this.tabId =
|
|
778
|
+
f.REQUIRED_METHODS = ["registerBlockControls"];
|
|
779
|
+
var bt = f, ht = class R {
|
|
780
|
+
constructor(t, r) {
|
|
781
|
+
this.tabId = t, this.controls = r.map(R.normalizeControl);
|
|
772
782
|
}
|
|
773
783
|
getTabId() {
|
|
774
784
|
return this.tabId;
|
|
@@ -777,54 +787,68 @@ var ut = G, ct = class {
|
|
|
777
787
|
return this.label;
|
|
778
788
|
}
|
|
779
789
|
getControlsIds() {
|
|
780
|
-
return this.
|
|
790
|
+
return this.controls.map((t) => t.id);
|
|
791
|
+
}
|
|
792
|
+
getControls() {
|
|
793
|
+
return this.controls;
|
|
781
794
|
}
|
|
782
|
-
withLabel(
|
|
783
|
-
return this.label =
|
|
795
|
+
withLabel(t) {
|
|
796
|
+
return this.label = t, this;
|
|
784
797
|
}
|
|
785
|
-
addControl(
|
|
786
|
-
|
|
798
|
+
addControl(t, r) {
|
|
799
|
+
const s = R.normalizeControl(t);
|
|
800
|
+
return r < 0 ? this.controls.unshift(s) : r > this.controls.length ? this.controls.push(s) : this.controls.splice(r, 0, s), this;
|
|
787
801
|
}
|
|
788
|
-
deleteControl(
|
|
789
|
-
const
|
|
790
|
-
|
|
802
|
+
deleteControl(t) {
|
|
803
|
+
const r = this.controls.findIndex((s) => s.id === t);
|
|
804
|
+
r !== -1 && this.controls.splice(r, 1);
|
|
791
805
|
}
|
|
792
|
-
|
|
806
|
+
static normalizeControl(t) {
|
|
807
|
+
if (typeof t == "string")
|
|
808
|
+
return { id: t };
|
|
809
|
+
if (!t.id)
|
|
810
|
+
throw new Error("SettingsPanelTabControlConfig.id is required");
|
|
811
|
+
return {
|
|
812
|
+
...t,
|
|
813
|
+
id: t.id
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}, E = class extends v {
|
|
793
817
|
getTargetNodes(e) {
|
|
794
|
-
const t = e.querySelectorAll(c.TEXT),
|
|
795
|
-
return t.length ? t :
|
|
818
|
+
const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(w) ? [e] : [];
|
|
819
|
+
return t.length ? t : r;
|
|
796
820
|
}
|
|
797
|
-
},
|
|
821
|
+
}, mt = class extends E {
|
|
798
822
|
getParentControlId() {
|
|
799
|
-
return
|
|
823
|
+
return n.GENERAL.TEXT_ALIGN;
|
|
800
824
|
}
|
|
801
|
-
},
|
|
825
|
+
}, gt = class extends E {
|
|
802
826
|
getParentControlId() {
|
|
803
|
-
return
|
|
827
|
+
return n.GENERAL.TEXT_COLOR;
|
|
804
828
|
}
|
|
805
|
-
},
|
|
829
|
+
}, Ot = class extends E {
|
|
806
830
|
getParentControlId() {
|
|
807
|
-
return
|
|
831
|
+
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
808
832
|
}
|
|
809
|
-
},
|
|
833
|
+
}, Rt = class extends E {
|
|
810
834
|
getParentControlId() {
|
|
811
|
-
return
|
|
835
|
+
return n.GENERAL.TEXT_LINE_SPACING;
|
|
812
836
|
}
|
|
813
|
-
},
|
|
837
|
+
}, Lt = class extends E {
|
|
814
838
|
getParentControlId() {
|
|
815
|
-
return
|
|
839
|
+
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
816
840
|
}
|
|
817
|
-
},
|
|
841
|
+
}, _t = class extends E {
|
|
818
842
|
getParentControlId() {
|
|
819
|
-
return
|
|
843
|
+
return n.GENERAL.TEXT_SIZE;
|
|
820
844
|
}
|
|
821
|
-
},
|
|
845
|
+
}, Ct = class extends E {
|
|
822
846
|
getParentControlId() {
|
|
823
|
-
return
|
|
847
|
+
return n.GENERAL.TEXT_STYLE;
|
|
824
848
|
}
|
|
825
|
-
},
|
|
849
|
+
}, Ge = class {
|
|
826
850
|
constructor(e) {
|
|
827
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e
|
|
851
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.modulesPanelTabs = (e == null ? void 0 : e.modulesPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
|
|
828
852
|
}
|
|
829
853
|
getI18n() {
|
|
830
854
|
return this.i18n;
|
|
@@ -886,7 +910,7 @@ var ut = G, ct = class {
|
|
|
886
910
|
getModulesPanelTabs() {
|
|
887
911
|
return this.modulesPanelTabs;
|
|
888
912
|
}
|
|
889
|
-
},
|
|
913
|
+
}, At = class {
|
|
890
914
|
constructor() {
|
|
891
915
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
|
|
892
916
|
}
|
|
@@ -957,7 +981,7 @@ var ut = G, ct = class {
|
|
|
957
981
|
return this.modulesPanelTabs.push(e), this;
|
|
958
982
|
}
|
|
959
983
|
build() {
|
|
960
|
-
return new
|
|
984
|
+
return new Ge({
|
|
961
985
|
i18n: this.i18n,
|
|
962
986
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
963
987
|
`),
|
|
@@ -980,18 +1004,18 @@ var ut = G, ct = class {
|
|
|
980
1004
|
modulesPanelTabs: this.modulesPanelTabs
|
|
981
1005
|
});
|
|
982
1006
|
}
|
|
983
|
-
},
|
|
1007
|
+
}, Ve = class L extends i {
|
|
984
1008
|
constructor() {
|
|
985
|
-
super(
|
|
1009
|
+
super(L.REQUIRED_METHODS, L);
|
|
986
1010
|
}
|
|
987
1011
|
openAiAssistant(t) {
|
|
988
1012
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
989
1013
|
}
|
|
990
1014
|
};
|
|
991
|
-
|
|
992
|
-
var
|
|
1015
|
+
Ve.REQUIRED_METHODS = ["openAiAssistant"];
|
|
1016
|
+
var fe = class _ extends i {
|
|
993
1017
|
constructor() {
|
|
994
|
-
super(
|
|
1018
|
+
super(_.REQUIRED_METHODS, _);
|
|
995
1019
|
}
|
|
996
1020
|
/**
|
|
997
1021
|
* Retrieves the name of the category.
|
|
@@ -1008,7 +1032,7 @@ var ke = class L extends a {
|
|
|
1008
1032
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
1009
1033
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
1010
1034
|
*/
|
|
1011
|
-
openExternalDisplayConditionsDialog(t,
|
|
1035
|
+
openExternalDisplayConditionsDialog(t, r, s) {
|
|
1012
1036
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
1013
1037
|
}
|
|
1014
1038
|
/**
|
|
@@ -1029,19 +1053,19 @@ var ke = class L extends a {
|
|
|
1029
1053
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
1030
1054
|
}
|
|
1031
1055
|
};
|
|
1032
|
-
|
|
1033
|
-
var
|
|
1056
|
+
fe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
1057
|
+
var Qe = class C extends i {
|
|
1034
1058
|
constructor() {
|
|
1035
|
-
super(
|
|
1059
|
+
super(C.REQUIRED_METHODS, C);
|
|
1036
1060
|
}
|
|
1037
|
-
openImageLibrary(t,
|
|
1061
|
+
openImageLibrary(t, r, s) {
|
|
1038
1062
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
1039
1063
|
}
|
|
1040
1064
|
};
|
|
1041
|
-
|
|
1042
|
-
var
|
|
1065
|
+
Qe.REQUIRED_METHODS = ["openImageLibrary"];
|
|
1066
|
+
var Ye = class A extends i {
|
|
1043
1067
|
constructor() {
|
|
1044
|
-
super(
|
|
1068
|
+
super(A.REQUIRED_METHODS, A);
|
|
1045
1069
|
}
|
|
1046
1070
|
/**
|
|
1047
1071
|
* @description Returns the translated name/label for the tab
|
|
@@ -1056,39 +1080,39 @@ var Ge = class C extends a {
|
|
|
1056
1080
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
1057
1081
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
1058
1082
|
*/
|
|
1059
|
-
openImageLibraryTab(t,
|
|
1083
|
+
openImageLibraryTab(t, r, s) {
|
|
1060
1084
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
1061
1085
|
}
|
|
1062
1086
|
};
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1087
|
+
Ye.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
1088
|
+
var $e = class N extends i {
|
|
1065
1089
|
constructor() {
|
|
1066
|
-
super(
|
|
1090
|
+
super(N.REQUIRED_METHODS, N);
|
|
1067
1091
|
}
|
|
1068
|
-
openSmartElementsLibrary(t,
|
|
1092
|
+
openSmartElementsLibrary(t, r) {
|
|
1069
1093
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
1070
1094
|
}
|
|
1071
1095
|
};
|
|
1072
|
-
|
|
1073
|
-
var
|
|
1096
|
+
$e.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
1097
|
+
var We = class D extends i {
|
|
1074
1098
|
constructor() {
|
|
1075
|
-
super(
|
|
1099
|
+
super(D.REQUIRED_METHODS, D);
|
|
1076
1100
|
}
|
|
1077
|
-
openExternalVideosLibraryDialog(t,
|
|
1101
|
+
openExternalVideosLibraryDialog(t, r, s) {
|
|
1078
1102
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
1079
1103
|
}
|
|
1080
1104
|
};
|
|
1081
|
-
|
|
1082
|
-
var
|
|
1105
|
+
We.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
1106
|
+
var Q = class S extends i {
|
|
1083
1107
|
constructor() {
|
|
1084
|
-
super(
|
|
1108
|
+
super(S.REQUIRED_METHODS, S);
|
|
1085
1109
|
}
|
|
1086
1110
|
registerIconsSvg(t) {
|
|
1087
1111
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
1088
1112
|
}
|
|
1089
1113
|
};
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1114
|
+
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
1115
|
+
var Nt = Q, Dt = class {
|
|
1092
1116
|
constructor(e) {
|
|
1093
1117
|
this.key = e;
|
|
1094
1118
|
}
|
|
@@ -1101,9 +1125,9 @@ var Lt = V, _t = class {
|
|
|
1101
1125
|
params: this.params
|
|
1102
1126
|
};
|
|
1103
1127
|
}
|
|
1104
|
-
},
|
|
1128
|
+
}, Y = class M extends i {
|
|
1105
1129
|
constructor() {
|
|
1106
|
-
super(
|
|
1130
|
+
super(M.REQUIRED_METHODS, M);
|
|
1107
1131
|
}
|
|
1108
1132
|
/**
|
|
1109
1133
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -1138,7 +1162,7 @@ var Lt = V, _t = class {
|
|
|
1138
1162
|
* @param name - The name of the attribute that was updated.
|
|
1139
1163
|
* @param value - The new value of the attribute.
|
|
1140
1164
|
*/
|
|
1141
|
-
onAttributeUpdated(t,
|
|
1165
|
+
onAttributeUpdated(t, r) {
|
|
1142
1166
|
}
|
|
1143
1167
|
/**
|
|
1144
1168
|
* Gets the unique identifier for this UI element type.
|
|
@@ -1156,64 +1180,64 @@ var Lt = V, _t = class {
|
|
|
1156
1180
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
1157
1181
|
}
|
|
1158
1182
|
};
|
|
1159
|
-
|
|
1160
|
-
var
|
|
1183
|
+
Y.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1184
|
+
var St = Y, $ = class B extends i {
|
|
1161
1185
|
constructor() {
|
|
1162
|
-
super(
|
|
1186
|
+
super(B.REQUIRED_METHODS, B);
|
|
1163
1187
|
}
|
|
1164
1188
|
registerUiElements(t) {
|
|
1165
1189
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
1166
1190
|
}
|
|
1167
1191
|
};
|
|
1168
|
-
|
|
1169
|
-
var
|
|
1192
|
+
$.REQUIRED_METHODS = ["registerUiElements"];
|
|
1193
|
+
var Mt = $;
|
|
1170
1194
|
export {
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1195
|
+
Ze as Block,
|
|
1196
|
+
je as BlockAttr,
|
|
1197
|
+
z as BlockCompositionType,
|
|
1174
1198
|
c as BlockSelector,
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1199
|
+
de as BlockType,
|
|
1200
|
+
qe as BlocksPanel,
|
|
1201
|
+
v as BuiltInControl,
|
|
1202
|
+
n as BuiltInControlTypes,
|
|
1203
|
+
tt as ButtonAlignBuiltInControl,
|
|
1204
|
+
rt as ButtonBackgroundColorBuiltInControl,
|
|
1205
|
+
at as ButtonBorderBuiltInControl,
|
|
1206
|
+
et as ButtonBorderRadiusBuiltInControl,
|
|
1207
|
+
nt as ButtonColorBuiltInControl,
|
|
1208
|
+
H as ButtonControls,
|
|
1209
|
+
st as ButtonFitToContainerBuiltInControl,
|
|
1210
|
+
it as ButtonFontFamilyBuiltInControl,
|
|
1211
|
+
lt as ButtonMarginsBuiltInControl,
|
|
1212
|
+
Et as ButtonPaddingsBuiltInControl,
|
|
1213
|
+
ot as ButtonTextBuiltInControl,
|
|
1214
|
+
dt as ButtonTextSizeBuiltInControl,
|
|
1215
|
+
ut as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1216
|
+
ue as ContainerControls,
|
|
1217
|
+
ct as Control,
|
|
1218
|
+
ce as EditorStatePropertyType,
|
|
1219
|
+
Ge as Extension,
|
|
1220
|
+
At as ExtensionBuilder,
|
|
1221
|
+
F as GeneralControls,
|
|
1222
|
+
Nt as IconsRegistry,
|
|
1223
|
+
p as ImageControls,
|
|
1224
|
+
Tt as ImageMarginsBuiltInControl,
|
|
1225
|
+
It as ImageSizeBuiltInControl,
|
|
1226
|
+
Dt as ModificationDescription,
|
|
1227
|
+
Te as PreviewDeviceMode,
|
|
1228
|
+
bt as SettingsPanelRegistry,
|
|
1229
|
+
ht as SettingsPanelTab,
|
|
1230
|
+
Ie as SettingsTab,
|
|
1231
|
+
mt as TextAlignBuiltInControl,
|
|
1232
|
+
gt as TextColorBuiltInControl,
|
|
1233
|
+
k as TextControls,
|
|
1234
|
+
Ot as TextFontFamilyBuiltInControl,
|
|
1235
|
+
Rt as TextLineSpacingBuiltInControl,
|
|
1236
|
+
Lt as TextPaddingsBuiltInControl,
|
|
1237
|
+
_t as TextSizeBuiltInControl,
|
|
1238
|
+
Ct as TextStyleBuiltInControl,
|
|
1239
|
+
Je as UEAttr,
|
|
1240
|
+
St as UIElement,
|
|
1241
|
+
Mt as UIElementTagRegistry,
|
|
1242
|
+
ke as UIElementType
|
|
1219
1243
|
};
|