@gem-sdk/core 1.43.0-dev.90 → 1.43.0-dev.95
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.
|
@@ -56,6 +56,11 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
56
56
|
editingPageType
|
|
57
57
|
]);
|
|
58
58
|
const { checkDisableDelete, getTooltipText, checkDisableDuplicate } = useToolbarPostPurchase.usePostPurchase(props.uid, props.tag || '');
|
|
59
|
+
const editProductElementList = [
|
|
60
|
+
'Product Title',
|
|
61
|
+
'Product Description',
|
|
62
|
+
'Product Price'
|
|
63
|
+
];
|
|
59
64
|
const isOverToolbarPosition = (el, parent)=>{
|
|
60
65
|
const parentLength = parents.length;
|
|
61
66
|
const rect = el.getBoundingClientRect();
|
|
@@ -475,7 +480,7 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
475
480
|
})
|
|
476
481
|
})
|
|
477
482
|
}),
|
|
478
|
-
toolbarName()
|
|
483
|
+
editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
|
|
479
484
|
"data-toolbar-title": true,
|
|
480
485
|
enable: true,
|
|
481
486
|
"data-toolbar-disable": false,
|
|
@@ -45,6 +45,7 @@ const RenderPreview = ({ uid, ...passProps })=>{
|
|
|
45
45
|
setting: item.settings,
|
|
46
46
|
...passProps,
|
|
47
47
|
children: item.childrens.map((id)=>/*#__PURE__*/ jsxRuntime.jsx(RenderPreviewMemo, {
|
|
48
|
+
...passProps,
|
|
48
49
|
uid: id
|
|
49
50
|
}, id))
|
|
50
51
|
}) : /*#__PURE__*/ jsxRuntime.jsx(Component, {
|
|
@@ -52,6 +52,11 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
52
52
|
editingPageType
|
|
53
53
|
]);
|
|
54
54
|
const { checkDisableDelete, getTooltipText, checkDisableDuplicate } = usePostPurchase(props.uid, props.tag || '');
|
|
55
|
+
const editProductElementList = [
|
|
56
|
+
'Product Title',
|
|
57
|
+
'Product Description',
|
|
58
|
+
'Product Price'
|
|
59
|
+
];
|
|
55
60
|
const isOverToolbarPosition = (el, parent)=>{
|
|
56
61
|
const parentLength = parents.length;
|
|
57
62
|
const rect = el.getBoundingClientRect();
|
|
@@ -471,7 +476,7 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
471
476
|
})
|
|
472
477
|
})
|
|
473
478
|
}),
|
|
474
|
-
toolbarName()
|
|
479
|
+
editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
|
|
475
480
|
"data-toolbar-title": true,
|
|
476
481
|
enable: true,
|
|
477
482
|
"data-toolbar-disable": false,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7776,7 +7776,22 @@ type CustomPositionControlType<T> = SharedControlType<T> & {
|
|
|
7776
7776
|
bottomGap?: string;
|
|
7777
7777
|
};
|
|
7778
7778
|
|
|
7779
|
-
type
|
|
7779
|
+
type DealControlType<T> = SharedControlType<T> & {
|
|
7780
|
+
type: 'bundleItem';
|
|
7781
|
+
readonly?: boolean;
|
|
7782
|
+
};
|
|
7783
|
+
|
|
7784
|
+
type ProductBundleChildControlType<T> = SharedControlType<T> & {
|
|
7785
|
+
type: 'product-bundle-child-item';
|
|
7786
|
+
[key: string]: any;
|
|
7787
|
+
};
|
|
7788
|
+
type SelectProductBundleControlType<T> = SharedControlType<T> & {
|
|
7789
|
+
type: 'select-product-bundle';
|
|
7790
|
+
label?: string;
|
|
7791
|
+
hide?: boolean;
|
|
7792
|
+
};
|
|
7793
|
+
|
|
7794
|
+
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> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | CustomPositionControlType<T> | SneakPeakControlType<T> | PostPurchaseTextareaControlType<T> | DealControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T>;
|
|
7780
7795
|
type ControlTriggerAction = {
|
|
7781
7796
|
controlId: string;
|
|
7782
7797
|
newValue?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.43.0-dev.
|
|
3
|
+
"version": "1.43.0-dev.95",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "1.43.0-dev.
|
|
31
|
-
"@gem-sdk/styles": "1.43.0-dev.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.43.0-dev.93",
|
|
31
|
+
"@gem-sdk/styles": "1.43.0-dev.93",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|