@gem-sdk/core 1.53.0-dev.16 → 1.53.0-dev.160

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.
Files changed (38) hide show
  1. package/dist/cjs/components/ComponentToolbarPreview.js +58 -3
  2. package/dist/cjs/components/InteractionSuffix.js +10 -91
  3. package/dist/cjs/components/Render.liquid.js +40 -7
  4. package/dist/cjs/contexts/PageContext.js +9 -1
  5. package/dist/cjs/graphql/queries/published-shop-metas.js +15 -0
  6. package/dist/cjs/helpers/animations.js +11 -2
  7. package/dist/cjs/helpers/background.js +10 -5
  8. package/dist/cjs/helpers/compose-advance-style.js +6 -1
  9. package/dist/cjs/helpers/interaction/index.js +25 -6
  10. package/dist/cjs/helpers/radius.js +11 -1
  11. package/dist/cjs/helpers/shadow.js +4 -3
  12. package/dist/cjs/helpers/third-party/appConfig.js +42 -0
  13. package/dist/cjs/helpers/third-party/appSetting.js +144 -1
  14. package/dist/cjs/helpers/third-party/constant.js +7 -1
  15. package/dist/cjs/helpers/typography.js +5 -2
  16. package/dist/cjs/hooks/animation/useAnimationConfig.js +2 -1
  17. package/dist/cjs/hooks/animation/useApplyAnimation.js +5 -5
  18. package/dist/cjs/index.js +5 -1
  19. package/dist/esm/components/ComponentToolbarPreview.js +58 -3
  20. package/dist/esm/components/InteractionSuffix.js +11 -92
  21. package/dist/esm/components/Render.liquid.js +40 -7
  22. package/dist/esm/contexts/PageContext.js +9 -1
  23. package/dist/esm/graphql/queries/published-shop-metas.js +13 -0
  24. package/dist/esm/helpers/animations.js +11 -2
  25. package/dist/esm/helpers/background.js +10 -5
  26. package/dist/esm/helpers/compose-advance-style.js +7 -2
  27. package/dist/esm/helpers/interaction/index.js +25 -6
  28. package/dist/esm/helpers/radius.js +11 -1
  29. package/dist/esm/helpers/shadow.js +4 -3
  30. package/dist/esm/helpers/third-party/appConfig.js +37 -1
  31. package/dist/esm/helpers/third-party/appSetting.js +144 -1
  32. package/dist/esm/helpers/third-party/constant.js +8 -2
  33. package/dist/esm/helpers/typography.js +5 -2
  34. package/dist/esm/hooks/animation/useAnimationConfig.js +2 -1
  35. package/dist/esm/hooks/animation/useApplyAnimation.js +5 -5
  36. package/dist/esm/index.js +3 -1
  37. package/dist/types/index.d.ts +350 -187
  38. package/package.json +3 -3
@@ -21,13 +21,13 @@ const useApplyAnimation = ({ props })=>{
21
21
  setAnimationOnFinish,
22
22
  setToolbarActive
23
23
  });
24
- const generateAnimation = useCallback(({ target, setting, type })=>{
25
- return animation[type](target, setting);
24
+ const generateAnimation = useCallback(({ target, setting, type, reverse })=>{
25
+ return animation[type](target, setting, reverse);
26
26
  }, [
27
27
  animation
28
28
  ]);
29
29
  const initListAnimations = useCallback(()=>{
30
- const { type, setting } = getAnimationConfig();
30
+ const { type, setting, reverse } = getAnimationConfig();
31
31
  if (!type || type === AnimationType.None || !targetObjects.current.length) {
32
32
  cancelAnimation();
33
33
  return;
@@ -35,9 +35,9 @@ const useApplyAnimation = ({ props })=>{
35
35
  const listAnimations = targetObjects.current.map((item)=>generateAnimation({
36
36
  type,
37
37
  setting,
38
- target: item.target
38
+ target: item.target,
39
+ reverse
39
40
  }));
40
- console.log('listAnimations', listAnimations);
41
41
  cancelAnimation();
42
42
  setAnimation(listAnimations);
43
43
  }, [
package/dist/esm/index.js CHANGED
@@ -17,6 +17,7 @@ export { ModalProvider, useModalStore } from './contexts/ModalContext.js';
17
17
  export { ArticleListProvider, useArticleListStore } from './contexts/ArticleListContext.js';
18
18
  export { ArticleProvider, useArticleStore } from './contexts/ArticleContext.js';
19
19
  export { PageViewUpDocument } from './graphql/mutations/page-view-up.generated.js';
20
+ export { PublishedShopMetasDocument } from './graphql/queries/published-shop-metas.js';
20
21
  export { CollectionDetailFilterDocument } from './graphql/queries/collection-detail-filter.generated.js';
21
22
  export { CollectionDocument } from './graphql/queries/collection.generated.js';
22
23
  export { CollectionsDocument } from './graphql/queries/collections.generated.js';
@@ -63,11 +64,12 @@ export { isDefined } from './helpers/is-defined.js';
63
64
  export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle } from './helpers/layout.js';
64
65
  export { makeAspectRatio, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
65
66
  export { convertTextAlignToJustify } from './helpers/align.js';
67
+ export { checkInStock } from './helpers/variant.js';
66
68
  export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
67
69
  export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
68
70
  export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
69
71
  export { RenderIf, composeMemo, dataStringify, props, removeUndefinedValuesFromObject, styles, template } from './helpers/render.js';
70
- export { composeShadowCss, getResonsiveStyleShadow, getStyleShadow, getStyleShadowState, parseValueWithUnit } from './helpers/shadow.js';
72
+ export { composeShadowCss, getResponsiveStyleShadow, getStyleShadow, getStyleShadowState, parseValueWithUnit } from './helpers/shadow.js';
71
73
  export { composeSize, composeSizeCss, genSizeClass, getAspectRatioGlobalSize, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeGlobalSizeIcon, makeStyleWithDefault } from './helpers/size.js';
72
74
  export { composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass } from './helpers/typography.js';
73
75
  export { useAddToCart } from './hooks/cart/use-add-to-cart.js';