@gem-sdk/core 1.40.2-staging.7 → 1.40.4
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.
|
@@ -219,14 +219,14 @@ const appendAnimation = (props, liquid)=>{
|
|
|
219
219
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
220
220
|
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
221
221
|
if (!enableAnimation) return liquid;
|
|
222
|
-
const
|
|
222
|
+
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
223
223
|
'shake',
|
|
224
224
|
'none'
|
|
225
|
-
].includes(getAnimationType(getSettingsByDevice(device), 'appear'))
|
|
225
|
+
].includes(getAnimationType(getSettingsByDevice(device), 'appear')) ? 'hidden' : 'visible';
|
|
226
226
|
const opacityObject = {
|
|
227
|
-
desktop:
|
|
228
|
-
tablet:
|
|
229
|
-
mobile:
|
|
227
|
+
desktop: getInitVisibility('desktop'),
|
|
228
|
+
tablet: getInitVisibility('tablet'),
|
|
229
|
+
mobile: getInitVisibility('mobile')
|
|
230
230
|
};
|
|
231
231
|
return render.template`
|
|
232
232
|
<gp-animation
|
|
@@ -240,7 +240,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
240
240
|
}}"
|
|
241
241
|
>
|
|
242
242
|
<div style="${{
|
|
243
|
-
...makeStyle.makeStyleResponsive('
|
|
243
|
+
...makeStyle.makeStyleResponsive('v', opacityObject),
|
|
244
244
|
display: 'contents'
|
|
245
245
|
}}">${liquid}</div>
|
|
246
246
|
</gp-animation>
|
|
@@ -215,14 +215,14 @@ const appendAnimation = (props, liquid)=>{
|
|
|
215
215
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
216
216
|
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
217
217
|
if (!enableAnimation) return liquid;
|
|
218
|
-
const
|
|
218
|
+
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
219
219
|
'shake',
|
|
220
220
|
'none'
|
|
221
|
-
].includes(getAnimationType(getSettingsByDevice(device), 'appear'))
|
|
221
|
+
].includes(getAnimationType(getSettingsByDevice(device), 'appear')) ? 'hidden' : 'visible';
|
|
222
222
|
const opacityObject = {
|
|
223
|
-
desktop:
|
|
224
|
-
tablet:
|
|
225
|
-
mobile:
|
|
223
|
+
desktop: getInitVisibility('desktop'),
|
|
224
|
+
tablet: getInitVisibility('tablet'),
|
|
225
|
+
mobile: getInitVisibility('mobile')
|
|
226
226
|
};
|
|
227
227
|
return template`
|
|
228
228
|
<gp-animation
|
|
@@ -236,7 +236,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
236
236
|
}}"
|
|
237
237
|
>
|
|
238
238
|
<div style="${{
|
|
239
|
-
...makeStyleResponsive('
|
|
239
|
+
...makeStyleResponsive('v', opacityObject),
|
|
240
240
|
display: 'contents'
|
|
241
241
|
}}">${liquid}</div>
|
|
242
242
|
</gp-animation>
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5183,7 +5183,6 @@ type PublishedThemePage$1 = {
|
|
|
5183
5183
|
themePageOnlineStoreData?: Maybe$1<Array<Maybe$1<PublishedThemePageOnlineStoreData$1>>>;
|
|
5184
5184
|
type: PublishedThemePageType$1;
|
|
5185
5185
|
updatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
5186
|
-
publishedAt?: Maybe$1<Scalars$2['Time']>;
|
|
5187
5186
|
};
|
|
5188
5187
|
type PublishedThemePageCustomSection$1 = {
|
|
5189
5188
|
id: Scalars$2['ID'];
|
|
@@ -7379,10 +7378,6 @@ type VariantSwatchesPresetControlType<T> = SharedControlType<T> & {
|
|
|
7379
7378
|
id?: string;
|
|
7380
7379
|
type: 'variant:presets';
|
|
7381
7380
|
};
|
|
7382
|
-
type VariantSwatchesOnlyDefaultVariantControlType<T> = SharedControlType<T> & {
|
|
7383
|
-
id?: string;
|
|
7384
|
-
type: 'variant:default';
|
|
7385
|
-
};
|
|
7386
7381
|
|
|
7387
7382
|
type LayoutControlType<T> = SharedControlType<T> & {
|
|
7388
7383
|
type: 'layout';
|
|
@@ -7703,7 +7698,7 @@ type PostPurchaseTextareaControlType<T> = SharedControlType<T> & {
|
|
|
7703
7698
|
}[];
|
|
7704
7699
|
};
|
|
7705
7700
|
|
|
7706
|
-
type ControlProp<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> | 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> |
|
|
7701
|
+
type ControlProp<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> | 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> | ProductListControlType<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> | BackgroundColorPickerType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | SneakPeakControlType<T> | PostPurchaseTextareaControlType<T>;
|
|
7707
7702
|
type ControlTriggerAction = {
|
|
7708
7703
|
controlId: string;
|
|
7709
7704
|
newValue?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.4",
|
|
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.40.
|
|
31
|
-
"@gem-sdk/styles": "1.40.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.40.0",
|
|
31
|
+
"@gem-sdk/styles": "1.40.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"react-error-boundary": "4.0.10",
|