@gem-sdk/core 1.46.0-staging.31 → 1.46.0-staging.36

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.
@@ -76,6 +76,10 @@ const ComponentToolbarPreview = (props)=>{
76
76
  'Article Category',
77
77
  'Article Date'
78
78
  ];
79
+ const editAbleElementList = [
80
+ ...editProductElementList,
81
+ ...editArticleElementList
82
+ ];
79
83
  const isOverToolbarPosition = (el, parent)=>{
80
84
  const parentLength = parents.length;
81
85
  const rect = el.getBoundingClientRect();
@@ -524,7 +528,7 @@ const ComponentToolbarPreview = (props)=>{
524
528
  })
525
529
  })
526
530
  }),
527
- editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
531
+ editAbleElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
528
532
  "data-toolbar-title": true,
529
533
  enable: true,
530
534
  "data-toolbar-disable": false,
@@ -10,7 +10,6 @@ const SectionContext = /*#__PURE__*/ react.createContext(null);
10
10
  const createSectionProvider = (data)=>zustand.createStore((set, get)=>({
11
11
  data: data ?? {},
12
12
  getSection: (id)=>{
13
- console.log('get().data', get().data);
14
13
  const section = get().data[id];
15
14
  return section ?? undefined;
16
15
  },
@@ -5,7 +5,6 @@ var react = require('react');
5
5
  const useAnimationPreview = ({ props, playAnimation, cancelAnimation, setAnimationOnFinish, setToolbarActive })=>{
6
6
  const previewAnimation = react.useCallback((e)=>{
7
7
  const { uid, isCancel } = e.detail;
8
- console.log('props.uid !== uid', props.uid !== uid, props.uid, uid);
9
8
  if (props.uid !== uid) return;
10
9
  cancelAnimation();
11
10
  if (isCancel) {
@@ -41,7 +41,6 @@ const useApplyAnimation = ({ props })=>{
41
41
  setting,
42
42
  target: item.target
43
43
  }));
44
- console.log('listAnimations', listAnimations);
45
44
  cancelAnimation();
46
45
  setAnimation(listAnimations);
47
46
  }, [
@@ -72,6 +72,10 @@ const ComponentToolbarPreview = (props)=>{
72
72
  'Article Category',
73
73
  'Article Date'
74
74
  ];
75
+ const editAbleElementList = [
76
+ ...editProductElementList,
77
+ ...editArticleElementList
78
+ ];
75
79
  const isOverToolbarPosition = (el, parent)=>{
76
80
  const parentLength = parents.length;
77
81
  const rect = el.getBoundingClientRect();
@@ -520,7 +524,7 @@ const ComponentToolbarPreview = (props)=>{
520
524
  })
521
525
  })
522
526
  }),
523
- editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
527
+ editAbleElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
524
528
  "data-toolbar-title": true,
525
529
  enable: true,
526
530
  "data-toolbar-disable": false,
@@ -8,7 +8,6 @@ const SectionContext = /*#__PURE__*/ createContext(null);
8
8
  const createSectionProvider = (data)=>createStore((set, get)=>({
9
9
  data: data ?? {},
10
10
  getSection: (id)=>{
11
- console.log('get().data', get().data);
12
11
  const section = get().data[id];
13
12
  return section ?? undefined;
14
13
  },
@@ -3,7 +3,6 @@ import { useCallback } from 'react';
3
3
  const useAnimationPreview = ({ props, playAnimation, cancelAnimation, setAnimationOnFinish, setToolbarActive })=>{
4
4
  const previewAnimation = useCallback((e)=>{
5
5
  const { uid, isCancel } = e.detail;
6
- console.log('props.uid !== uid', props.uid !== uid, props.uid, uid);
7
6
  if (props.uid !== uid) return;
8
7
  cancelAnimation();
9
8
  if (isCancel) {
@@ -37,7 +37,6 @@ const useApplyAnimation = ({ props })=>{
37
37
  setting,
38
38
  target: item.target
39
39
  }));
40
- console.log('listAnimations', listAnimations);
41
40
  cancelAnimation();
42
41
  setAnimation(listAnimations);
43
42
  }, [
@@ -5433,9 +5433,6 @@ type PublishedThemePage$1 = {
5433
5433
  themePageOnlineStoreData?: Maybe$1<Array<Maybe$1<PublishedThemePageOnlineStoreData$1>>>;
5434
5434
  type: PublishedThemePageType$1;
5435
5435
  updatedAt?: Maybe$1<Scalars$2['Time']>;
5436
- publishedAt?: Maybe$1<Scalars$2['Time']>;
5437
- isPlatformDefault?: boolean;
5438
- platformOriginalTemplateContent?: string;
5439
5436
  };
5440
5437
  type PublishedThemePageCustomSection$1 = {
5441
5438
  id: Scalars$2['ID'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.46.0-staging.31",
3
+ "version": "1.46.0-staging.36",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",