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