@gem-sdk/core 1.43.0-dev.93 → 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() === 'Product Title' && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
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,
@@ -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() === 'Product Title' && /*#__PURE__*/ jsx(Tooltip, {
479
+ editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
475
480
  "data-toolbar-title": true,
476
481
  enable: true,
477
482
  "data-toolbar-disable": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.43.0-dev.93",
3
+ "version": "1.43.0-dev.95",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",