@gem-sdk/core 1.53.0-dev.45 → 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') &&
|
|
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' &&
|
|
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
|
]);
|
|
@@ -13,7 +13,9 @@ const getStyleBackgroundByDevice = (background, options)=>{
|
|
|
13
13
|
...getStyleBgColor(background)
|
|
14
14
|
} : {},
|
|
15
15
|
...!options?.ignoreBackgroundImage ? {
|
|
16
|
-
...getStyleBgImage(background, options)
|
|
16
|
+
...getStyleBgImage(background, options)
|
|
17
|
+
} : {},
|
|
18
|
+
...!options?.ignoreBackgroundImageProperties ? {
|
|
17
19
|
...getStyleBgPosition(background),
|
|
18
20
|
...getStyleBgSize(background),
|
|
19
21
|
...getStyleBgRepeat(background)
|
|
@@ -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') &&
|
|
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' &&
|
|
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
|
]);
|
|
@@ -11,7 +11,9 @@ const getStyleBackgroundByDevice = (background, options)=>{
|
|
|
11
11
|
...getStyleBgColor(background)
|
|
12
12
|
} : {},
|
|
13
13
|
...!options?.ignoreBackgroundImage ? {
|
|
14
|
-
...getStyleBgImage(background, options)
|
|
14
|
+
...getStyleBgImage(background, options)
|
|
15
|
+
} : {},
|
|
16
|
+
...!options?.ignoreBackgroundImageProperties ? {
|
|
15
17
|
...getStyleBgPosition(background),
|
|
16
18
|
...getStyleBgSize(background),
|
|
17
19
|
...getStyleBgRepeat(background)
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
31403
|
+
setInteractionSettingType: (settingType?: 'TRIGGER' | 'TARGET') => void;
|
|
31404
31404
|
};
|
|
31405
31405
|
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers'> & {
|
|
31406
31406
|
children: React.ReactNode;
|
|
@@ -31954,6 +31954,7 @@ type Options = {
|
|
|
31954
31954
|
liquid?: boolean;
|
|
31955
31955
|
ignoreBgAttachment?: boolean;
|
|
31956
31956
|
ignoreBackgroundImage?: boolean;
|
|
31957
|
+
ignoreBackgroundImageProperties?: boolean;
|
|
31957
31958
|
ignoreBackgroundColor?: boolean;
|
|
31958
31959
|
};
|
|
31959
31960
|
declare const getStyleBackgroundByDevice: (background?: ObjectDevices<Background>, options?: Options) => {
|