@gem-sdk/core 1.53.0-staging.13 → 1.53.0-staging.25
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.
|
@@ -88,6 +88,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
88
88
|
bundle_id: appSetting?.['customBundleId']
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
+
case 'PumperBundlesVolumeDiscount':
|
|
92
|
+
{
|
|
93
|
+
return {
|
|
94
|
+
...currentSetting,
|
|
95
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
96
|
+
};
|
|
97
|
+
}
|
|
91
98
|
default:
|
|
92
99
|
return currentSetting;
|
|
93
100
|
}
|
|
@@ -107,7 +114,7 @@ const ReviewxpoProductReviewsApp = {
|
|
|
107
114
|
const PumperBundlesVolumeDiscount = {
|
|
108
115
|
PumperBundlesVolumeDiscount: {
|
|
109
116
|
'app-block': {
|
|
110
|
-
selected_product: '{{product}}',
|
|
117
|
+
selected_product: '{{ product }}',
|
|
111
118
|
using_page_builder: false
|
|
112
119
|
}
|
|
113
120
|
}
|
|
@@ -58,6 +58,7 @@ const useInitialSwatchesOptions = (options)=>{
|
|
|
58
58
|
}), '*');
|
|
59
59
|
changeSwatches(swatches);
|
|
60
60
|
}
|
|
61
|
+
swatchChange = false;
|
|
61
62
|
};
|
|
62
63
|
const getColorDefault = (label, color)=>{
|
|
63
64
|
const colorByLabel = label ? variantPresets.colorPreset[label.toLocaleLowerCase()] : undefined;
|
|
@@ -86,6 +86,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
86
86
|
bundle_id: appSetting?.['customBundleId']
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
+
case 'PumperBundlesVolumeDiscount':
|
|
90
|
+
{
|
|
91
|
+
return {
|
|
92
|
+
...currentSetting,
|
|
93
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
94
|
+
};
|
|
95
|
+
}
|
|
89
96
|
default:
|
|
90
97
|
return currentSetting;
|
|
91
98
|
}
|
|
@@ -105,7 +112,7 @@ const ReviewxpoProductReviewsApp = {
|
|
|
105
112
|
const PumperBundlesVolumeDiscount = {
|
|
106
113
|
PumperBundlesVolumeDiscount: {
|
|
107
114
|
'app-block': {
|
|
108
|
-
selected_product: '{{product}}',
|
|
115
|
+
selected_product: '{{ product }}',
|
|
109
116
|
using_page_builder: false
|
|
110
117
|
}
|
|
111
118
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8141,7 +8141,11 @@ type SelectProductBundleControlType<T> = SharedControlType<T> & {
|
|
|
8141
8141
|
hide?: boolean;
|
|
8142
8142
|
};
|
|
8143
8143
|
|
|
8144
|
-
type
|
|
8144
|
+
type ProductHandleType<T> = SharedControlType<T> & {
|
|
8145
|
+
type: 'product-handle';
|
|
8146
|
+
};
|
|
8147
|
+
|
|
8148
|
+
type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T>;
|
|
8145
8149
|
type ControlTriggerAction = {
|
|
8146
8150
|
controlId: string;
|
|
8147
8151
|
newValue?: any;
|