@useinsider/guido 1.0.3-beta.154cb70 → 1.0.3-beta.15f3cdb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +73 -79
- package/dist/components/organisms/header/RightSlot.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +22 -23
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -20
- package/dist/composables/useActionsApi.js +1 -1
- package/dist/composables/useBlocksConfig.js +2 -1
- package/dist/composables/useGuidoActions.js +9 -19
- package/dist/composables/useHtmlCompiler.js +13 -15
- package/dist/composables/useHtmlValidator.js +35 -36
- package/dist/composables/useStripo.js +30 -32
- package/dist/config/compiler/unsubscribeCompilerRules.js +28 -33
- package/dist/enums/defaults.js +1 -2
- package/dist/enums/extensions/recommendationBlock.js +2 -2
- package/dist/enums/onboarding.js +3 -7
- package/dist/enums/unsubscribe.js +25 -27
- package/dist/extensions/Blocks/Checkbox/block.js +2 -5
- package/dist/extensions/Blocks/Checkbox/control.js +14 -15
- package/dist/extensions/Blocks/Checkbox/template.js +9 -14
- package/dist/extensions/Blocks/RadioButton/block.js +2 -5
- package/dist/extensions/Blocks/RadioButton/control.js +17 -18
- package/dist/extensions/Blocks/RadioButton/template.js +9 -18
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +151 -69
- package/dist/extensions/Blocks/Recommendation/constants.js +7 -1
- package/dist/extensions/Blocks/Recommendation/control.js +74 -59
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +68 -0
- package/dist/extensions/Blocks/Recommendation/controls/index.js +175 -0
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +74 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +188 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +8 -38
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +43 -43
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +54 -49
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +50 -53
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +17 -16
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +48 -41
- package/dist/extensions/Blocks/Unsubscribe/block.js +41 -45
- package/dist/extensions/Blocks/common-control.js +110 -174
- package/dist/extensions/Blocks/controlFactories.js +21 -21
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +19 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +33 -128
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +160 -205
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/keysIn.js +3 -3
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +19 -13
- package/dist/src/@types/generic.d.ts +6 -27
- package/dist/src/components/Guido.vue.d.ts +2 -3
- package/dist/src/composables/useGuidoActions.d.ts +0 -9
- package/dist/src/enums/onboarding.d.ts +0 -4
- package/dist/src/extensions/Blocks/Checkbox/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/RadioButton/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +50 -3
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +5 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +46 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +60 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +8 -7
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +4 -3
- package/dist/src/extensions/Blocks/common-control.d.ts +7 -44
- package/dist/src/extensions/Blocks/controlFactories.d.ts +20 -241
- package/dist/src/extensions/DynamicContent/dynamic-content-modal.d.ts +2 -9
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +2 -52
- package/dist/src/stores/config.d.ts +2 -3
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/editor.d.ts +1 -1
- package/dist/src/stores/onboarding.d.ts +1 -335
- package/dist/src/stores/preview.d.ts +1 -1
- package/dist/src/stores/recommendation.d.ts +1 -1
- package/dist/src/stores/save-as-template.d.ts +1 -1
- package/dist/src/stores/toaster.d.ts +1 -1
- package/dist/src/stores/unsubscribe.d.ts +1 -1
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/genericUtil.d.ts +0 -1
- package/dist/static/styles/components/wide-panel.css.js +0 -4
- package/dist/static/styles/customEditorStyle.css.js +15 -1
- package/dist/stores/config.js +5 -5
- package/dist/stores/dynamic-content.js +2 -2
- package/dist/stores/editor.js +1 -1
- package/dist/stores/onboarding.js +36 -44
- package/dist/stores/preview.js +1 -1
- package/dist/stores/recommendation.js +3 -3
- package/dist/stores/save-as-template.js +2 -2
- package/dist/stores/toaster.js +1 -1
- package/dist/stores/unsubscribe.js +1 -1
- package/dist/stores/version-history.js +4 -4
- package/dist/utils/genericUtil.js +8 -18
- package/package.json +4 -4
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +0 -99
- package/dist/config/compiler/itemsCompilerRules.js +0 -14
- package/dist/extensions/Blocks/Items/block.js +0 -67
- package/dist/extensions/Blocks/Items/controls/button/link.js +0 -68
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +0 -193
- package/dist/extensions/Blocks/Items/controls/image/link.js +0 -68
- package/dist/extensions/Blocks/Items/controls/index.js +0 -217
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +0 -70
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +0 -107
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +0 -123
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +0 -76
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +0 -61
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +0 -92
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +0 -316
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +0 -5
- package/dist/extensions/Blocks/Items/enums/productEnums.js +0 -274
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +0 -77
- package/dist/extensions/Blocks/Items/extension.js +0 -20
- package/dist/extensions/Blocks/Items/iconsRegistry.js +0 -32
- package/dist/extensions/Blocks/Items/items.css.js +0 -23
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +0 -62
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +0 -72
- package/dist/extensions/Blocks/Items/settingsPanel.js +0 -132
- package/dist/extensions/Blocks/Items/store/items-block.js +0 -75
- package/dist/extensions/Blocks/Items/template.js +0 -195
- package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +0 -17
- package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +0 -28
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +0 -76
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +0 -46
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_SetCache.js +0 -13
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
- package/dist/node_modules/lodash-es/_arraySome.js +0 -9
- package/dist/node_modules/lodash-es/_baseEach.js +0 -6
- package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/lodash-es/_baseGet.js +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
- package/dist/node_modules/lodash-es/_baseMap.js +0 -11
- package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/lodash-es/_baseRange.js +0 -9
- package/dist/node_modules/lodash-es/_baseToString.js +0 -18
- package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/dist/node_modules/lodash-es/_createRange.js +0 -11
- package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/lodash-es/_getTag.js +0 -28
- package/dist/node_modules/lodash-es/_hasPath.js +0 -19
- package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/lodash-es/_isKey.js +0 -12
- package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/lodash-es/flatMap.js +0 -8
- package/dist/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/lodash-es/hasIn.js +0 -8
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/map.js +0 -11
- package/dist/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/lodash-es/range.js +0 -5
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/toFinite.js +0 -14
- package/dist/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/toString.js +0 -7
- package/dist/src/components/organisms/onboarding/ItemsOnboarding.vue.d.ts +0 -2
- package/dist/src/config/compiler/itemsCompilerRules.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/block.d.ts +0 -27
- package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -14
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +0 -33
- package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -14
- package/dist/src/extensions/Blocks/Items/controls/index.d.ts +0 -501
- package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +0 -14
- package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +0 -19
- package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -21
- package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +0 -14
- package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +0 -13
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +0 -15
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -48
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -62
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -163
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -50
- package/dist/src/extensions/Blocks/Items/extension.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Items/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +0 -43
- package/dist/src/extensions/Blocks/Items/template.d.ts +0 -24
- package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +0 -23
- package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +0 -32
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -50
- package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +0 -8
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/utils/environmentUtil.d.ts +0 -5
- package/dist/src/utils/pairProductVariables.d.ts +0 -7
- package/dist/utils/environmentUtil.js +0 -4
- package/dist/utils/pairProductVariables.js +0 -136
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Control, ImmutableHtmlElementNode, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
1
|
+
import { Control, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
3
2
|
interface TextInputProps {
|
|
4
3
|
name: string;
|
|
5
4
|
placeholder?: string;
|
|
6
5
|
className?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
6
|
}
|
|
9
7
|
interface LabelProps {
|
|
10
8
|
text: string;
|
|
@@ -19,7 +17,10 @@ interface IconButtonProps {
|
|
|
19
17
|
interface SelectProps {
|
|
20
18
|
name: string;
|
|
21
19
|
placeholder: string;
|
|
22
|
-
options:
|
|
20
|
+
options: {
|
|
21
|
+
text: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
23
24
|
className?: string;
|
|
24
25
|
}
|
|
25
26
|
interface CounterProps {
|
|
@@ -28,15 +29,6 @@ interface CounterProps {
|
|
|
28
29
|
minValue?: number;
|
|
29
30
|
step?: number;
|
|
30
31
|
}
|
|
31
|
-
interface RadioButtonProps {
|
|
32
|
-
name: string;
|
|
33
|
-
buttons: {
|
|
34
|
-
text?: string;
|
|
35
|
-
value: string;
|
|
36
|
-
icon?: string;
|
|
37
|
-
}[];
|
|
38
|
-
id?: string;
|
|
39
|
-
}
|
|
40
32
|
interface ButtonProps {
|
|
41
33
|
name: string;
|
|
42
34
|
label: string;
|
|
@@ -48,33 +40,11 @@ interface ButtonProps {
|
|
|
48
40
|
*/
|
|
49
41
|
export declare abstract class CommonControl extends Control {
|
|
50
42
|
currentNode?: ImmutableHtmlNode;
|
|
51
|
-
protected lastBlockInstanceId: string | null;
|
|
52
43
|
abstract getId(): string;
|
|
53
44
|
abstract getTemplate(): string;
|
|
54
45
|
abstract onRender(): Promise<void> | void;
|
|
55
46
|
getContainer(): ShadowRoot;
|
|
56
47
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
57
|
-
onDestroy(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the config block element from the current node.
|
|
60
|
-
* @returns The config block element or null if not found
|
|
61
|
-
*/
|
|
62
|
-
protected getConfigBlock(): ImmutableHtmlElementNode | null;
|
|
63
|
-
/**
|
|
64
|
-
* Gets the current block instance ID from the config block.
|
|
65
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
66
|
-
* @returns The block instance ID or null if not found
|
|
67
|
-
*/
|
|
68
|
-
protected getBlockInstanceId(blockInstanceIdAttribute?: string): string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Handles block instance change detection and syncing.
|
|
71
|
-
* This is a helper method for controls that need to sync attributes when switching between block instances.
|
|
72
|
-
* @param syncFunction - Function to call when block instance changes (to sync from attributes)
|
|
73
|
-
* @param updateUI - Function to call to update the UI (called both on change and when same block)
|
|
74
|
-
* @param blockInstanceIdAttribute - The attribute name for block instance ID (default: 'data-block-instance-id')
|
|
75
|
-
* @returns true if block instance changed, false otherwise
|
|
76
|
-
*/
|
|
77
|
-
protected handleBlockInstanceChange(syncFunction: (node: ImmutableHtmlNode) => void, updateUI: () => void, blockInstanceIdAttribute?: string): boolean;
|
|
78
48
|
_GuLabel({ text, name, position }: LabelProps): string;
|
|
79
49
|
_GuToggle(name: string): string;
|
|
80
50
|
_GuSelectItem({ text, value }: {
|
|
@@ -82,14 +52,8 @@ export declare abstract class CommonControl extends Control {
|
|
|
82
52
|
value: string;
|
|
83
53
|
}): string;
|
|
84
54
|
_GuSelect({ name, placeholder, options, className }: SelectProps): string;
|
|
85
|
-
_GuTextInput({ name, placeholder, className
|
|
55
|
+
_GuTextInput({ name, placeholder, className }: TextInputProps): string;
|
|
86
56
|
_GuCounter({ name, maxValue, minValue, step }: CounterProps): string;
|
|
87
|
-
_GuRadioButtonItem({ text, value, icon }: {
|
|
88
|
-
text?: string;
|
|
89
|
-
value: string;
|
|
90
|
-
icon?: string;
|
|
91
|
-
}): string;
|
|
92
|
-
_GuRadioButton({ name, buttons, id }: RadioButtonProps): string;
|
|
93
57
|
_GuButton({ name, label, id }: ButtonProps): string;
|
|
94
58
|
/**
|
|
95
59
|
*
|
|
@@ -97,8 +61,7 @@ export declare abstract class CommonControl extends Control {
|
|
|
97
61
|
* @returns It returns a button with an icon.
|
|
98
62
|
*/
|
|
99
63
|
_GuIconButton({ name, icon, className }: IconButtonProps): string;
|
|
100
|
-
|
|
101
|
-
_GuTwoColumns(children: string[], className?: string): string;
|
|
64
|
+
_GuTwoColumns(children: string[]): string;
|
|
102
65
|
/**
|
|
103
66
|
* Creates an orderable (sortable) list control
|
|
104
67
|
* @param name - The control name for value binding
|
|
@@ -9,304 +9,83 @@
|
|
|
9
9
|
* extensive type assertions throughout the file. The generated controls are type-safe
|
|
10
10
|
* at runtime and follow the exact same patterns as manually-written control classes.
|
|
11
11
|
*/
|
|
12
|
-
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
13
12
|
/**
|
|
14
13
|
* Factory function to create text align controls for different block elements
|
|
15
14
|
*/
|
|
16
|
-
export declare function createTextAlignControl(controlId: string, targetBlockId: string, containerSelector: string):
|
|
17
|
-
new (): {
|
|
18
|
-
getId(): string;
|
|
19
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
20
|
-
getParentControlId(): string;
|
|
21
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
22
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
23
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
24
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
25
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
15
|
+
export declare function createTextAlignControl(controlId: string, targetBlockId: string, containerSelector: string): any;
|
|
28
16
|
/**
|
|
29
17
|
* Factory function to create text color controls for different block elements
|
|
30
18
|
*/
|
|
31
|
-
export declare function createTextColorControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
32
|
-
new (): {
|
|
33
|
-
getId(): string;
|
|
34
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
35
|
-
getParentControlId(): string;
|
|
36
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
37
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
38
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
39
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
40
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
19
|
+
export declare function createTextColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
43
20
|
/**
|
|
44
21
|
* Factory function to create text size controls for different block elements
|
|
45
22
|
*/
|
|
46
|
-
export declare function createTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
47
|
-
new (): {
|
|
48
|
-
getId(): string;
|
|
49
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
50
|
-
getParentControlId(): string;
|
|
51
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
52
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
53
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
54
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
55
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
23
|
+
export declare function createTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
58
24
|
/**
|
|
59
25
|
* Factory function to create text style controls for different block elements
|
|
60
26
|
*/
|
|
61
|
-
export declare function createTextStyleControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
62
|
-
new (): {
|
|
63
|
-
getId(): string;
|
|
64
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
65
|
-
getParentControlId(): string;
|
|
66
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
67
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
68
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
69
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
70
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
27
|
+
export declare function createTextStyleControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
73
28
|
/**
|
|
74
29
|
* Factory function to create text font family controls for different block elements
|
|
75
30
|
*/
|
|
76
|
-
export declare function createTextFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
77
|
-
new (): {
|
|
78
|
-
getId(): string;
|
|
79
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
80
|
-
getParentControlId(): string;
|
|
81
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
82
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
83
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
84
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
85
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
31
|
+
export declare function createTextFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
88
32
|
/**
|
|
89
33
|
* Factory function to create text background color controls for different block elements
|
|
90
34
|
*/
|
|
91
|
-
export declare function createTextBackgroundColorControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
92
|
-
new (): {
|
|
93
|
-
getId(): string;
|
|
94
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
95
|
-
getParentControlId(): string;
|
|
96
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
97
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
98
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
99
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
100
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
35
|
+
export declare function createTextBackgroundColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
103
36
|
/**
|
|
104
37
|
* Factory function to create paddings controls for different block elements
|
|
105
38
|
*/
|
|
106
|
-
export declare function createPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
107
|
-
new (): {
|
|
108
|
-
getId(): string;
|
|
109
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
110
|
-
getParentControlId(): string;
|
|
111
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
112
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
113
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
114
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
115
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
39
|
+
export declare function createPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
118
40
|
/**
|
|
119
41
|
* Factory function to create button align controls for different block elements
|
|
120
42
|
*/
|
|
121
|
-
export declare function createButtonAlignControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
122
|
-
new (): {
|
|
123
|
-
getId(): string;
|
|
124
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
125
|
-
getParentControlId(): string;
|
|
126
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
127
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
128
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
129
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
130
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
43
|
+
export declare function createButtonAlignControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
133
44
|
/**
|
|
134
45
|
* Factory function to create button color controls for different block elements
|
|
135
46
|
*/
|
|
136
|
-
export declare function createButtonColorControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
137
|
-
new (): {
|
|
138
|
-
getId(): string;
|
|
139
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
140
|
-
getParentControlId(): string;
|
|
141
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
142
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
143
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
144
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
145
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
47
|
+
export declare function createButtonColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
148
48
|
/**
|
|
149
49
|
* Factory function to create button border controls for different block elements
|
|
150
50
|
*/
|
|
151
|
-
export declare function createButtonBorderControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
152
|
-
new (): {
|
|
153
|
-
getId(): string;
|
|
154
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
155
|
-
getParentControlId(): string;
|
|
156
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ButtonBorderControlLabels | undefined;
|
|
157
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
158
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
159
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
160
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
51
|
+
export declare function createButtonBorderControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
163
52
|
/**
|
|
164
53
|
* Factory function to create button border radius controls for different block elements
|
|
165
54
|
*/
|
|
166
|
-
export declare function createButtonBorderRadiusControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
167
|
-
new (): {
|
|
168
|
-
getId(): string;
|
|
169
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
170
|
-
getParentControlId(): string;
|
|
171
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ButtonBorderRadiusControlLabels | undefined;
|
|
172
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
173
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
174
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
175
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
55
|
+
export declare function createButtonBorderRadiusControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
178
56
|
/**
|
|
179
57
|
* Factory function to create button font family controls for different block elements
|
|
180
58
|
*/
|
|
181
|
-
export declare function createButtonFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
182
|
-
new (): {
|
|
183
|
-
getId(): string;
|
|
184
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
185
|
-
getParentControlId(): string;
|
|
186
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
187
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
188
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
189
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
190
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
59
|
+
export declare function createButtonFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
193
60
|
/**
|
|
194
61
|
* Factory function to create button margins controls for different block elements
|
|
195
62
|
*/
|
|
196
|
-
export declare function createButtonMarginsControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
197
|
-
new (): {
|
|
198
|
-
getId(): string;
|
|
199
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
200
|
-
getParentControlId(): string;
|
|
201
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
202
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
203
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
204
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
205
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
63
|
+
export declare function createButtonMarginsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
208
64
|
/**
|
|
209
65
|
* Factory function to create button paddings controls for different block elements
|
|
210
66
|
*/
|
|
211
|
-
export declare function createButtonPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
212
|
-
new (): {
|
|
213
|
-
getId(): string;
|
|
214
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
215
|
-
getParentControlId(): string;
|
|
216
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
217
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
218
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
219
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
220
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
67
|
+
export declare function createButtonPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
223
68
|
/**
|
|
224
69
|
* Factory function to create button text controls for different block elements
|
|
225
70
|
*/
|
|
226
|
-
export declare function createButtonTextControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
227
|
-
new (): {
|
|
228
|
-
getId(): string;
|
|
229
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
230
|
-
getParentControlId(): string;
|
|
231
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
232
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
233
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
234
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
235
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
71
|
+
export declare function createButtonTextControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
238
72
|
/**
|
|
239
73
|
* Factory function to create button text size controls for different block elements
|
|
240
74
|
*/
|
|
241
|
-
export declare function createButtonTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string):
|
|
242
|
-
new (): {
|
|
243
|
-
getId(): string;
|
|
244
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
245
|
-
getParentControlId(): string;
|
|
246
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
247
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
248
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
249
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
250
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
251
|
-
};
|
|
252
|
-
};
|
|
75
|
+
export declare function createButtonTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
|
|
253
76
|
/**
|
|
254
77
|
* Factory function to create button text style and font color controls for different block elements
|
|
255
78
|
*/
|
|
256
|
-
export declare function createButtonTextStyleAndFontColorControl(controlId: string, targetBlockId: string, containerSelector: string):
|
|
257
|
-
new (): {
|
|
258
|
-
getId(): string;
|
|
259
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
260
|
-
getParentControlId(): string;
|
|
261
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ButtonTextStyleAndFontColorControlLabels | undefined;
|
|
262
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
263
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
264
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
265
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
79
|
+
export declare function createButtonTextStyleAndFontColorControl(controlId: string, targetBlockId: string, containerSelector: string): any;
|
|
268
80
|
/**
|
|
269
81
|
* Factory function to create button fit to container controls for different block elements
|
|
270
82
|
*/
|
|
271
|
-
export declare function createButtonFitToContainerControl(controlId: string, targetBlockId: string, containerSelector: string):
|
|
272
|
-
new (): {
|
|
273
|
-
getId(): string;
|
|
274
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
275
|
-
getParentControlId(): string;
|
|
276
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
277
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
278
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
279
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
280
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
83
|
+
export declare function createButtonFitToContainerControl(controlId: string, targetBlockId: string, containerSelector: string): any;
|
|
283
84
|
/**
|
|
284
85
|
* Factory function to create image size controls for different block elements
|
|
285
86
|
*/
|
|
286
|
-
export declare function createImageSizeControl(controlId: string, targetBlockId: string, containerSelector: string):
|
|
287
|
-
new (): {
|
|
288
|
-
getId(): string;
|
|
289
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
290
|
-
getParentControlId(): string;
|
|
291
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
292
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
293
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
294
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
295
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
87
|
+
export declare function createImageSizeControl(controlId: string, targetBlockId: string, containerSelector: string): any;
|
|
298
88
|
/**
|
|
299
89
|
* Factory function to create image margins controls for different block elements
|
|
300
90
|
*/
|
|
301
|
-
export declare function createImageMarginsControl(controlId: string, targetBlockId: string, containerSelector: string):
|
|
302
|
-
new (): {
|
|
303
|
-
getId(): string;
|
|
304
|
-
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
305
|
-
getParentControlId(): string;
|
|
306
|
-
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
307
|
-
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
308
|
-
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
309
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
310
|
-
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
91
|
+
export declare function createImageMarginsControl(controlId: string, targetBlockId: string, containerSelector: string): any;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { DynamicContent
|
|
1
|
+
import type { DynamicContent } from '@@/Types/generic';
|
|
2
2
|
export declare class ExternalMergeTagsLibrary {
|
|
3
3
|
selectedDynamicContent: DynamicContent | null;
|
|
4
4
|
dataSelectCallback: (data: DynamicContent) => void;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Opens the merge tags library modal
|
|
8
|
-
* @param dynamicContent - Currently selected dynamic content (if any)
|
|
9
|
-
* @param onDataSelectCallback - Callback invoked when user selects a merge tag
|
|
10
|
-
* @param position - Optional position data to place the modal
|
|
11
|
-
*/
|
|
12
|
-
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void, position?: PositionData): void;
|
|
5
|
+
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void): void;
|
|
13
6
|
}
|
|
@@ -1,66 +1,16 @@
|
|
|
1
|
-
import type { MergeTag } from '@@/Types/generic';
|
|
2
1
|
import { UIElementType, UIElement, UIElementTagRegistry } from '@stripoinc/ui-editor-extensions';
|
|
3
2
|
export declare class DynamicContentTagRegistry extends UIElementTagRegistry {
|
|
4
3
|
registerUiElements(uiElementsTagsMap: Record<UIElementType, string>): void;
|
|
5
4
|
}
|
|
6
5
|
export declare class DynamicContentUiElementExtension extends UIElement {
|
|
7
6
|
private mergeTagsButton;
|
|
7
|
+
private listener;
|
|
8
8
|
private mergeTagsLibrary;
|
|
9
|
-
private
|
|
10
|
-
private lastClickedElement;
|
|
11
|
-
private lastClickedFrame;
|
|
12
|
-
private mousedownListener;
|
|
9
|
+
private selectedDynamicContent;
|
|
13
10
|
getId(): string;
|
|
14
11
|
onRender(container: HTMLElement): void;
|
|
15
12
|
onDestroy(): void;
|
|
16
13
|
_onClick(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Called when Stripo detects merge tag interactions
|
|
19
|
-
* This is the key method that receives notifications about merge tag clicks
|
|
20
|
-
* @param name - Attribute name (e.g., 'mergeTag')
|
|
21
|
-
* @param value - MergeTag object with label, value, selStart, selEnd, etc.
|
|
22
|
-
*/
|
|
23
|
-
onAttributeUpdated(name: string, value: MergeTag | null | undefined): void;
|
|
24
14
|
openMergeTagLibrary(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Opens the dynamic content library for external apps
|
|
27
|
-
* Dispatches event with dynamic content data and position
|
|
28
|
-
*/
|
|
29
|
-
private _openDynamicContentLibrary;
|
|
30
|
-
/**
|
|
31
|
-
* Gets the button's position on the screen
|
|
32
|
-
* Used to position the modal or anything else near the button
|
|
33
|
-
*/
|
|
34
|
-
private _getButtonPosition;
|
|
35
|
-
/**
|
|
36
|
-
* Sets up coordinate tracking for merge tag clicks in the iframe
|
|
37
|
-
* Workaround from Stripo intercepting click events - tracks mousedown events instead
|
|
38
|
-
*/
|
|
39
|
-
private _setupCoordinateTracking;
|
|
40
|
-
/**
|
|
41
|
-
* Gets the editor iframe element
|
|
42
|
-
*/
|
|
43
|
-
private _getEditorFrame;
|
|
44
|
-
/**
|
|
45
|
-
* Finds merge tag element in the element tree
|
|
46
|
-
*/
|
|
47
|
-
private _findMergeTagElement;
|
|
48
|
-
/**
|
|
49
|
-
* Gets the position of the last clicked element, calculated on-demand
|
|
50
|
-
* This ensures we always use the correct element's position even with rapid clicks
|
|
51
|
-
*/
|
|
52
|
-
private _getLastClickedPosition;
|
|
53
|
-
/**
|
|
54
|
-
* Calculates absolute position of element relative to page
|
|
55
|
-
*/
|
|
56
|
-
private _calculateAbsolutePosition;
|
|
57
|
-
/**
|
|
58
|
-
* Cleans up the coordinate tracking event listener
|
|
59
|
-
*/
|
|
60
|
-
private _cleanupCoordinateTracking;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the HTML template for the "Add Dynamic Content" button
|
|
63
|
-
* This button is placed in the merge tags selector UI
|
|
64
|
-
*/
|
|
65
15
|
getTemplate(): string;
|
|
66
16
|
}
|
|
@@ -3,7 +3,7 @@ interface StoreState {
|
|
|
3
3
|
guidoConfig: GuidoConfig;
|
|
4
4
|
templateConfig?: TemplateConfig;
|
|
5
5
|
}
|
|
6
|
-
export declare const useConfigStore: import("pinia").StoreDefinition<"
|
|
6
|
+
export declare const useConfigStore: import("pinia").StoreDefinition<"config", StoreState, {
|
|
7
7
|
getVariationId: (state: {
|
|
8
8
|
guidoConfig: {
|
|
9
9
|
translationsPath: string;
|
|
@@ -78,7 +78,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guidoConfi
|
|
|
78
78
|
saveAsTemplate?: boolean | undefined;
|
|
79
79
|
versionHistory?: boolean | undefined;
|
|
80
80
|
testMessage?: boolean | undefined;
|
|
81
|
-
displayConditions?: boolean | undefined;
|
|
82
81
|
} | undefined;
|
|
83
82
|
blocks?: {
|
|
84
83
|
excludeDefaults?: import("@@/Types/generic").GuidoBlockType[] | undefined;
|
|
@@ -89,12 +88,12 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guidoConfi
|
|
|
89
88
|
templateConfig?: {
|
|
90
89
|
preselectedDynamicContentList?: {
|
|
91
90
|
value: string;
|
|
91
|
+
text: string;
|
|
92
92
|
fallback?: string | undefined;
|
|
93
93
|
format?: {
|
|
94
94
|
key: string;
|
|
95
95
|
value: string;
|
|
96
96
|
} | undefined;
|
|
97
|
-
text: string;
|
|
98
97
|
}[] | undefined;
|
|
99
98
|
selectedUnsubscribePages?: number[] | undefined;
|
|
100
99
|
variationId?: string | undefined;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import type { DynamicContent } from '@@/Types/generic';
|
|
2
|
-
export declare const useDynamicContentStore: import("pinia").StoreDefinition<"
|
|
2
|
+
export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dynamicContent", {
|
|
3
3
|
selectedDynamicContent: DynamicContent;
|
|
4
4
|
selectedDynamicContentList: DynamicContent[];
|
|
5
5
|
}, {
|
|
6
6
|
getSelectedDynamicContentList: (state: {
|
|
7
7
|
selectedDynamicContent: {
|
|
8
8
|
value: string;
|
|
9
|
+
text: string;
|
|
9
10
|
fallback?: string | undefined;
|
|
10
11
|
format?: {
|
|
11
12
|
key: string;
|
|
12
13
|
value: string;
|
|
13
14
|
} | undefined;
|
|
14
|
-
text: string;
|
|
15
15
|
};
|
|
16
16
|
selectedDynamicContentList: {
|
|
17
17
|
value: string;
|
|
18
|
+
text: string;
|
|
18
19
|
fallback?: string | undefined;
|
|
19
20
|
format?: {
|
|
20
21
|
key: string;
|
|
21
22
|
value: string;
|
|
22
23
|
} | undefined;
|
|
23
|
-
text: string;
|
|
24
24
|
}[];
|
|
25
25
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
26
26
|
selectedDynamicContent: DynamicContent;
|