@gem-sdk/core 1.53.0-dev.58 → 1.53.0-dev.59

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.
@@ -66,19 +66,17 @@ const ComponentToolbarPreview = (props)=>{
66
66
  interactionData?.settingType
67
67
  ]);
68
68
  const isShowIconInteractionTarget = react.useMemo(()=>{
69
- return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && isSelectOnPage && settingType === 'TARGET';
69
+ return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && settingType === 'TARGET';
70
70
  }, [
71
71
  interactionData?.item?.targets,
72
- isSelectOnPage,
73
72
  props.uid,
74
73
  settingType
75
74
  ]);
76
75
  const isShowIconInteractionTrigger = react.useMemo(()=>{
77
- return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && isSelectOnPage && settingType === 'TRIGGER';
76
+ return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && settingType === 'TRIGGER';
78
77
  }, [
79
78
  interactionData?.item?.self?.type,
80
79
  interactionData?.item?.self?.uid,
81
- isSelectOnPage,
82
80
  props.uid,
83
81
  settingType
84
82
  ]);
@@ -62,19 +62,17 @@ const ComponentToolbarPreview = (props)=>{
62
62
  interactionData?.settingType
63
63
  ]);
64
64
  const isShowIconInteractionTarget = useMemo(()=>{
65
- return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && isSelectOnPage && settingType === 'TARGET';
65
+ return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && settingType === 'TARGET';
66
66
  }, [
67
67
  interactionData?.item?.targets,
68
- isSelectOnPage,
69
68
  props.uid,
70
69
  settingType
71
70
  ]);
72
71
  const isShowIconInteractionTrigger = useMemo(()=>{
73
- return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && isSelectOnPage && settingType === 'TRIGGER';
72
+ return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && settingType === 'TRIGGER';
74
73
  }, [
75
74
  interactionData?.item?.self?.type,
76
75
  interactionData?.item?.self?.uid,
77
- isSelectOnPage,
78
76
  props.uid,
79
77
  settingType
80
78
  ]);
@@ -31400,7 +31400,7 @@ type PageContextProps = {
31400
31400
  setInteractionItem: (item: Interaction) => void;
31401
31401
  setInteractionIsSelectOnPage: (value: boolean) => void;
31402
31402
  setInteractionSelectType: (selectType: 'ELEMENT' | 'PAGE') => void;
31403
- setInteractionSettingType: (settingType: 'TRIGGER' | 'TARGET') => void;
31403
+ setInteractionSettingType: (settingType?: 'TRIGGER' | 'TARGET') => void;
31404
31404
  };
31405
31405
  type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers'> & {
31406
31406
  children: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-dev.58",
3
+ "version": "1.53.0-dev.59",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",