@gem-sdk/core 1.48.0-dev.74 → 1.48.0-dev.79
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.
- package/dist/cjs/components/Render.liquid.js +5 -3
- package/dist/cjs/helpers/animations.js +6 -6
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +34 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/cjs/types/animations.js +2 -0
- package/dist/esm/components/Render.liquid.js +5 -3
- package/dist/esm/helpers/animations.js +6 -6
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +34 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/esm/types/animations.js +2 -0
- package/dist/types/index.d.ts +7 -5
- package/package.json +1 -1
|
@@ -219,7 +219,7 @@ const RenderCustomCode = (item)=>{
|
|
|
219
219
|
};
|
|
220
220
|
const appendAnimation = (props, liquid)=>{
|
|
221
221
|
const { advanced, tag } = props;
|
|
222
|
-
const { animation, op: opacity } = advanced ?? {};
|
|
222
|
+
const { animation, op: opacity, hasAnimationInteraction } = advanced ?? {};
|
|
223
223
|
const getAnimationType = (settings, type)=>{
|
|
224
224
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
225
225
|
};
|
|
@@ -233,7 +233,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
233
233
|
const hoverDesktop = getAnimationType(getSettingsByDevice('desktop'), 'hover');
|
|
234
234
|
const appearTablet = getAnimationType(getSettingsByDevice('tablet'), 'appear');
|
|
235
235
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
236
|
-
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
236
|
+
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none' || !!hasAnimationInteraction;
|
|
237
|
+
const enableAnimationWhenInit = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
237
238
|
if (!enableAnimation) return liquid;
|
|
238
239
|
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
239
240
|
'shake',
|
|
@@ -249,7 +250,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
249
250
|
gp-data='${JSON.stringify({
|
|
250
251
|
config: animation,
|
|
251
252
|
tag,
|
|
252
|
-
opacity
|
|
253
|
+
opacity,
|
|
254
|
+
notEnableAnimationWhenInit: !enableAnimationWhenInit
|
|
253
255
|
})}'
|
|
254
256
|
style="${{
|
|
255
257
|
display: 'contents'
|
|
@@ -46,7 +46,7 @@ const animations = ()=>{
|
|
|
46
46
|
});
|
|
47
47
|
return cloneOptions;
|
|
48
48
|
};
|
|
49
|
-
const slide = (target, options)=>{
|
|
49
|
+
const slide = (target, options, reverse)=>{
|
|
50
50
|
const normalizedOptions = normalizeOptions(options);
|
|
51
51
|
const { direction, distance } = normalizedOptions;
|
|
52
52
|
const coordinate = [
|
|
@@ -67,11 +67,11 @@ const animations = ()=>{
|
|
|
67
67
|
transform: `translate${coordinate}(0)`
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
|
-
return generateAnimationInstance(target, preset, {
|
|
70
|
+
return generateAnimationInstance(target, reverse ? preset.reverse() : preset, {
|
|
71
71
|
...generateOptions(normalizedOptions, 500)
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
const fade = (target, options)=>{
|
|
74
|
+
const fade = (target, options, reverse)=>{
|
|
75
75
|
const normalizedOptions = normalizeOptions(options);
|
|
76
76
|
const preset = [
|
|
77
77
|
{
|
|
@@ -81,7 +81,7 @@ const animations = ()=>{
|
|
|
81
81
|
opacity: 1
|
|
82
82
|
}
|
|
83
83
|
];
|
|
84
|
-
return generateAnimationInstance(target, preset, {
|
|
84
|
+
return generateAnimationInstance(target, reverse ? preset.reverse() : preset, {
|
|
85
85
|
...generateOptions(normalizedOptions, 500)
|
|
86
86
|
});
|
|
87
87
|
};
|
|
@@ -101,7 +101,7 @@ const animations = ()=>{
|
|
|
101
101
|
easing: EASING[easing ?? 'linear']
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
-
const zoom = (target, options)=>{
|
|
104
|
+
const zoom = (target, options, reverse)=>{
|
|
105
105
|
const normalizedOptions = normalizeOptions(options);
|
|
106
106
|
const { scale, zoomDirection, isFade } = normalizedOptions;
|
|
107
107
|
const [i1, i2] = scale.in;
|
|
@@ -127,7 +127,7 @@ const animations = ()=>{
|
|
|
127
127
|
}
|
|
128
128
|
];
|
|
129
129
|
const zoomPreset = zoomDirection === 'in' ? zoomInPreset : zoomOutPreset;
|
|
130
|
-
return generateAnimationInstance(target, zoomPreset, {
|
|
130
|
+
return generateAnimationInstance(target, reverse ? zoomPreset.reverse() : zoomPreset, {
|
|
131
131
|
...generateOptions(normalizedOptions, 700)
|
|
132
132
|
});
|
|
133
133
|
};
|
|
@@ -114,12 +114,19 @@ const PreorderNowWodPresaleConfig = {
|
|
|
114
114
|
appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
+
const JunipProductReviewsUgcConfig = {
|
|
118
|
+
JunipProductReviewsUgc: {
|
|
119
|
+
appName: 'junip-product-reviews-ugc',
|
|
120
|
+
appId: 'dc14f5a8-ed15-41b1-ad08-cfba23f9789b'
|
|
121
|
+
}
|
|
122
|
+
};
|
|
117
123
|
|
|
118
124
|
exports.AssortionUpsellBundlesConfig = AssortionUpsellBundlesConfig;
|
|
119
125
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
120
126
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
121
127
|
exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
122
128
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
129
|
+
exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
|
|
123
130
|
exports.KPreorderNowPartialPaymentConfig = KPreorderNowPartialPaymentConfig;
|
|
124
131
|
exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
125
132
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
@@ -177,7 +177,41 @@ const PreorderNowWodPresale = {
|
|
|
177
177
|
'popups-block': null
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
|
+
const JunipProductReviewsUgc = {
|
|
181
|
+
JunipProductReviewsUgc: {
|
|
182
|
+
'junip-review-carousel': {
|
|
183
|
+
reviewsType: 'product_reviews',
|
|
184
|
+
showSummary: true,
|
|
185
|
+
title: 'Reviews',
|
|
186
|
+
paddingTop: 48,
|
|
187
|
+
paddingBottom: 48,
|
|
188
|
+
containerClass: ''
|
|
189
|
+
},
|
|
190
|
+
'junip-ugc-gallery': {
|
|
191
|
+
layout: 'scroll',
|
|
192
|
+
title: '',
|
|
193
|
+
product: '{{product}}',
|
|
194
|
+
paddingTop: 48,
|
|
195
|
+
paddingBottom: 48,
|
|
196
|
+
containerClass: ''
|
|
197
|
+
},
|
|
198
|
+
'junip-product-review': {
|
|
199
|
+
product: '{{product}}'
|
|
200
|
+
},
|
|
201
|
+
'junip-product-summary': {
|
|
202
|
+
product: '{{product}}'
|
|
203
|
+
},
|
|
204
|
+
'junip-reviews': {
|
|
205
|
+
layout: 'list',
|
|
206
|
+
reviewsType: 'all',
|
|
207
|
+
showSummary: true,
|
|
208
|
+
reviewsCount: 10,
|
|
209
|
+
containerClass: ''
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
180
213
|
const composeSettingsByWidgetType = {
|
|
214
|
+
...JunipProductReviewsUgc,
|
|
181
215
|
...FlyBundlesUpsellsFbt,
|
|
182
216
|
...PreorderNowWodPresale,
|
|
183
217
|
...KPreorderNowPartialPayment,
|
|
@@ -21,7 +21,8 @@ const mapShopifyAppMeta = {
|
|
|
21
21
|
...appConfig.PreorderNowPreOrderPqConfig,
|
|
22
22
|
...appConfig.KPreorderNowPartialPaymentConfig,
|
|
23
23
|
...appConfig.FlyBundlesUpsellsFbtConfig,
|
|
24
|
-
...appConfig.PreorderNowWodPresaleConfig
|
|
24
|
+
...appConfig.PreorderNowWodPresaleConfig,
|
|
25
|
+
...appConfig.JunipProductReviewsUgcConfig
|
|
25
26
|
};
|
|
26
27
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
27
28
|
|
|
@@ -32,6 +32,8 @@ exports.AnimationTriggerType = void 0;
|
|
|
32
32
|
(function(AnimationTriggerType) {
|
|
33
33
|
AnimationTriggerType["Appear"] = 'appear';
|
|
34
34
|
AnimationTriggerType["Hover"] = 'hover';
|
|
35
|
+
AnimationTriggerType["Hidden"] = 'hidden';
|
|
36
|
+
AnimationTriggerType["AppearByTrigger"] = 'appearByTrigger';
|
|
35
37
|
})(exports.AnimationTriggerType || (exports.AnimationTriggerType = {}));
|
|
36
38
|
exports.AnimationZoomDirectionType = void 0;
|
|
37
39
|
(function(AnimationZoomDirectionType) {
|
|
@@ -215,7 +215,7 @@ const RenderCustomCode = (item)=>{
|
|
|
215
215
|
};
|
|
216
216
|
const appendAnimation = (props, liquid)=>{
|
|
217
217
|
const { advanced, tag } = props;
|
|
218
|
-
const { animation, op: opacity } = advanced ?? {};
|
|
218
|
+
const { animation, op: opacity, hasAnimationInteraction } = advanced ?? {};
|
|
219
219
|
const getAnimationType = (settings, type)=>{
|
|
220
220
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
221
221
|
};
|
|
@@ -229,7 +229,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
229
229
|
const hoverDesktop = getAnimationType(getSettingsByDevice('desktop'), 'hover');
|
|
230
230
|
const appearTablet = getAnimationType(getSettingsByDevice('tablet'), 'appear');
|
|
231
231
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
232
|
-
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
232
|
+
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none' || !!hasAnimationInteraction;
|
|
233
|
+
const enableAnimationWhenInit = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
233
234
|
if (!enableAnimation) return liquid;
|
|
234
235
|
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
235
236
|
'shake',
|
|
@@ -245,7 +246,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
245
246
|
gp-data='${JSON.stringify({
|
|
246
247
|
config: animation,
|
|
247
248
|
tag,
|
|
248
|
-
opacity
|
|
249
|
+
opacity,
|
|
250
|
+
notEnableAnimationWhenInit: !enableAnimationWhenInit
|
|
249
251
|
})}'
|
|
250
252
|
style="${{
|
|
251
253
|
display: 'contents'
|
|
@@ -44,7 +44,7 @@ const animations = ()=>{
|
|
|
44
44
|
});
|
|
45
45
|
return cloneOptions;
|
|
46
46
|
};
|
|
47
|
-
const slide = (target, options)=>{
|
|
47
|
+
const slide = (target, options, reverse)=>{
|
|
48
48
|
const normalizedOptions = normalizeOptions(options);
|
|
49
49
|
const { direction, distance } = normalizedOptions;
|
|
50
50
|
const coordinate = [
|
|
@@ -65,11 +65,11 @@ const animations = ()=>{
|
|
|
65
65
|
transform: `translate${coordinate}(0)`
|
|
66
66
|
}
|
|
67
67
|
];
|
|
68
|
-
return generateAnimationInstance(target, preset, {
|
|
68
|
+
return generateAnimationInstance(target, reverse ? preset.reverse() : preset, {
|
|
69
69
|
...generateOptions(normalizedOptions, 500)
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
const fade = (target, options)=>{
|
|
72
|
+
const fade = (target, options, reverse)=>{
|
|
73
73
|
const normalizedOptions = normalizeOptions(options);
|
|
74
74
|
const preset = [
|
|
75
75
|
{
|
|
@@ -79,7 +79,7 @@ const animations = ()=>{
|
|
|
79
79
|
opacity: 1
|
|
80
80
|
}
|
|
81
81
|
];
|
|
82
|
-
return generateAnimationInstance(target, preset, {
|
|
82
|
+
return generateAnimationInstance(target, reverse ? preset.reverse() : preset, {
|
|
83
83
|
...generateOptions(normalizedOptions, 500)
|
|
84
84
|
});
|
|
85
85
|
};
|
|
@@ -99,7 +99,7 @@ const animations = ()=>{
|
|
|
99
99
|
easing: EASING[easing ?? 'linear']
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
const zoom = (target, options)=>{
|
|
102
|
+
const zoom = (target, options, reverse)=>{
|
|
103
103
|
const normalizedOptions = normalizeOptions(options);
|
|
104
104
|
const { scale, zoomDirection, isFade } = normalizedOptions;
|
|
105
105
|
const [i1, i2] = scale.in;
|
|
@@ -125,7 +125,7 @@ const animations = ()=>{
|
|
|
125
125
|
}
|
|
126
126
|
];
|
|
127
127
|
const zoomPreset = zoomDirection === 'in' ? zoomInPreset : zoomOutPreset;
|
|
128
|
-
return generateAnimationInstance(target, zoomPreset, {
|
|
128
|
+
return generateAnimationInstance(target, reverse ? zoomPreset.reverse() : zoomPreset, {
|
|
129
129
|
...generateOptions(normalizedOptions, 700)
|
|
130
130
|
});
|
|
131
131
|
};
|
|
@@ -112,5 +112,11 @@ const PreorderNowWodPresaleConfig = {
|
|
|
112
112
|
appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
+
const JunipProductReviewsUgcConfig = {
|
|
116
|
+
JunipProductReviewsUgc: {
|
|
117
|
+
appName: 'junip-product-reviews-ugc',
|
|
118
|
+
appId: 'dc14f5a8-ed15-41b1-ad08-cfba23f9789b'
|
|
119
|
+
}
|
|
120
|
+
};
|
|
115
121
|
|
|
116
|
-
export { AssortionUpsellBundlesConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, KPreorderNowPartialPaymentConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
122
|
+
export { AssortionUpsellBundlesConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KPreorderNowPartialPaymentConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
@@ -175,7 +175,41 @@ const PreorderNowWodPresale = {
|
|
|
175
175
|
'popups-block': null
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
+
const JunipProductReviewsUgc = {
|
|
179
|
+
JunipProductReviewsUgc: {
|
|
180
|
+
'junip-review-carousel': {
|
|
181
|
+
reviewsType: 'product_reviews',
|
|
182
|
+
showSummary: true,
|
|
183
|
+
title: 'Reviews',
|
|
184
|
+
paddingTop: 48,
|
|
185
|
+
paddingBottom: 48,
|
|
186
|
+
containerClass: ''
|
|
187
|
+
},
|
|
188
|
+
'junip-ugc-gallery': {
|
|
189
|
+
layout: 'scroll',
|
|
190
|
+
title: '',
|
|
191
|
+
product: '{{product}}',
|
|
192
|
+
paddingTop: 48,
|
|
193
|
+
paddingBottom: 48,
|
|
194
|
+
containerClass: ''
|
|
195
|
+
},
|
|
196
|
+
'junip-product-review': {
|
|
197
|
+
product: '{{product}}'
|
|
198
|
+
},
|
|
199
|
+
'junip-product-summary': {
|
|
200
|
+
product: '{{product}}'
|
|
201
|
+
},
|
|
202
|
+
'junip-reviews': {
|
|
203
|
+
layout: 'list',
|
|
204
|
+
reviewsType: 'all',
|
|
205
|
+
showSummary: true,
|
|
206
|
+
reviewsCount: 10,
|
|
207
|
+
containerClass: ''
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
178
211
|
const composeSettingsByWidgetType = {
|
|
212
|
+
...JunipProductReviewsUgc,
|
|
179
213
|
...FlyBundlesUpsellsFbt,
|
|
180
214
|
...PreorderNowWodPresale,
|
|
181
215
|
...KPreorderNowPartialPayment,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, AssortionUpsellBundlesConfig, PreorderNowPreOrderPqConfig, KPreorderNowPartialPaymentConfig, FlyBundlesUpsellsFbtConfig, PreorderNowWodPresaleConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, AssortionUpsellBundlesConfig, PreorderNowPreOrderPqConfig, KPreorderNowPartialPaymentConfig, FlyBundlesUpsellsFbtConfig, PreorderNowWodPresaleConfig, JunipProductReviewsUgcConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -19,7 +19,8 @@ const mapShopifyAppMeta = {
|
|
|
19
19
|
...PreorderNowPreOrderPqConfig,
|
|
20
20
|
...KPreorderNowPartialPaymentConfig,
|
|
21
21
|
...FlyBundlesUpsellsFbtConfig,
|
|
22
|
-
...PreorderNowWodPresaleConfig
|
|
22
|
+
...PreorderNowWodPresaleConfig,
|
|
23
|
+
...JunipProductReviewsUgcConfig
|
|
23
24
|
};
|
|
24
25
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
25
26
|
|
|
@@ -30,6 +30,8 @@ var AnimationTriggerType;
|
|
|
30
30
|
(function(AnimationTriggerType) {
|
|
31
31
|
AnimationTriggerType["Appear"] = 'appear';
|
|
32
32
|
AnimationTriggerType["Hover"] = 'hover';
|
|
33
|
+
AnimationTriggerType["Hidden"] = 'hidden';
|
|
34
|
+
AnimationTriggerType["AppearByTrigger"] = 'appearByTrigger';
|
|
33
35
|
})(AnimationTriggerType || (AnimationTriggerType = {}));
|
|
34
36
|
var AnimationZoomDirectionType;
|
|
35
37
|
(function(AnimationZoomDirectionType) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28771,10 +28771,12 @@ declare enum AnimationDirectionType {
|
|
|
28771
28771
|
Up = "up",
|
|
28772
28772
|
Down = "down"
|
|
28773
28773
|
}
|
|
28774
|
-
type AnimationTrigger = 'appear' | 'hover';
|
|
28774
|
+
type AnimationTrigger = 'appear' | 'hover' | "hidden" | 'appearByTrigger';
|
|
28775
28775
|
declare enum AnimationTriggerType {
|
|
28776
28776
|
Appear = "appear",
|
|
28777
|
-
Hover = "hover"
|
|
28777
|
+
Hover = "hover",
|
|
28778
|
+
Hidden = "hidden",
|
|
28779
|
+
AppearByTrigger = "appearByTrigger"
|
|
28778
28780
|
}
|
|
28779
28781
|
declare enum AnimationZoomDirectionType {
|
|
28780
28782
|
In = "in",
|
|
@@ -29559,10 +29561,10 @@ type ClassDictionary = Record<string, boolean | undefined | null>;
|
|
|
29559
29561
|
declare function cls(...classes: ClassValue[]): string;
|
|
29560
29562
|
|
|
29561
29563
|
declare const animations: () => {
|
|
29562
|
-
zoom: (target: Element, options: AnimationSettingType) => Animation;
|
|
29564
|
+
zoom: (target: Element, options: AnimationSettingType, reverse?: boolean) => Animation;
|
|
29563
29565
|
shake: (target: Element, options: AnimationSettingType) => Animation;
|
|
29564
|
-
fade: (target: Element, options: AnimationSettingType) => Animation;
|
|
29565
|
-
slide: (target: Element, options: AnimationSettingType) => Animation;
|
|
29566
|
+
fade: (target: Element, options: AnimationSettingType, reverse?: boolean) => Animation;
|
|
29567
|
+
slide: (target: Element, options: AnimationSettingType, reverse?: boolean) => Animation;
|
|
29566
29568
|
};
|
|
29567
29569
|
|
|
29568
29570
|
declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean) => React.ReactNode;
|