@gem-sdk/core 3.0.0-pre-production.15 → 3.0.6
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/README.md +1 -1
- package/dist/cjs/components/AddOn.js +2 -18
- package/dist/cjs/components/ComponentAnimation.js +2 -17
- package/dist/cjs/components/ComponentToolbarPreview.js +2 -752
- package/dist/cjs/components/ComponentWrapper.js +2 -61
- package/dist/cjs/components/ComponentWrapperPreview.js +2 -213
- package/dist/cjs/components/Empty.js +2 -7
- package/dist/cjs/components/InteractionSuffix.js +2 -42
- package/dist/cjs/components/Render.js +2 -75
- package/dist/cjs/components/Render.liquid.js +16 -307
- package/dist/cjs/components/RenderBlock.js +2 -54
- package/dist/cjs/components/RenderCustomCode.js +4 -59
- package/dist/cjs/components/RenderPreview.js +2 -67
- package/dist/cjs/components/RenderSection.js +2 -23
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +2 -252
- package/dist/cjs/components/ai-generator/AIGenContentLoading.js +2 -85
- package/dist/cjs/components/ai-generator/components/PickProduct.js +2 -220
- package/dist/cjs/components/ai-generator/components/ToneAndVoice.js +2 -77
- package/dist/cjs/components/ai-generator/hooks/useCheckingProductInside.js +1 -47
- package/dist/cjs/components/ai-generator/hooks/useFlipPopup.js +1 -110
- package/dist/cjs/components/ai-generator/hooks/useGettingGenerateRequest.js +1 -37
- package/dist/cjs/components/ai-generator/hooks/useListenEventGenerate.js +1 -70
- package/dist/cjs/components/ai-generator/icons/AIIcon.js +2 -67
- package/dist/cjs/components/ai-generator/icons/CloseIcon.js +2 -19
- package/dist/cjs/components/ai-generator/icons/DropdownIcon.js +2 -37
- package/dist/cjs/components/ai-generator/icons/SearchIcon.js +2 -21
- package/dist/cjs/components/ai-generator/icons/ShowMoreIcon.js +2 -21
- package/dist/cjs/components/ai-generator/icons/UpgradeIcon.js +2 -27
- package/dist/cjs/components/ai-generator/icons/WarningIcon.js +2 -31
- package/dist/cjs/components/constant.js +1 -82
- package/dist/cjs/components/resize/Resize.js +2 -16
- package/dist/cjs/components/resize/Spacing.js +2 -260
- package/dist/cjs/components/src/product/helpers/variant-presets.js +1 -56
- package/dist/cjs/components/theme-section/CreateThemeSection.js +2 -123
- package/dist/cjs/components/theme-section/ThemeSectionStatus.js +2 -45
- package/dist/cjs/components/theme-section/ThemeSectionTooltip.js +2 -126
- package/dist/cjs/components/toolbar/Tooltip.js +2 -28
- package/dist/cjs/constants/device.js +1 -0
- package/dist/cjs/contexts/AddonContext.js +2 -36
- package/dist/cjs/contexts/ArticleContext.js +2 -39
- package/dist/cjs/contexts/ArticleListContext.js +2 -31
- package/dist/cjs/contexts/BuilderComponent.js +2 -34
- package/dist/cjs/contexts/BuilderContext.js +2 -39
- package/dist/cjs/contexts/BuilderPreviewContext.js +2 -482
- package/dist/cjs/contexts/CartLineContext.js +2 -29
- package/dist/cjs/contexts/CollectionContext.js +2 -38
- package/dist/cjs/contexts/I18nContext.js +2 -0
- package/dist/cjs/contexts/ModalContext.js +2 -47
- package/dist/cjs/contexts/PageContext.js +2 -111
- package/dist/cjs/contexts/ProductContext.js +2 -182
- package/dist/cjs/contexts/ProductListContext.js +2 -32
- package/dist/cjs/contexts/SectionContext.js +2 -53
- package/dist/cjs/contexts/ShopContext.js +2 -107
- package/dist/cjs/graphql/fragments/analytic.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection-detail.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection-product.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection.generated.js +2 -6
- package/dist/cjs/graphql/fragments/custom-code.generated.js +2 -6
- package/dist/cjs/graphql/fragments/custom-font.generated.js +7 -7
- package/dist/cjs/graphql/fragments/data-seo.generated.js +2 -6
- package/dist/cjs/graphql/fragments/media.generated.js +2 -6
- package/dist/cjs/graphql/fragments/preview-theme-page.generated.js +6 -6
- package/dist/cjs/graphql/fragments/product-little.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product-option-value.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product-option.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product.generated.js +2 -6
- package/dist/cjs/graphql/fragments/published-custom-section.generated.js +2 -6
- package/dist/cjs/graphql/fragments/published-page-section.generated.js +2 -6
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +4 -18
- package/dist/cjs/graphql/fragments/published-theme-style.generated.js +2 -6
- package/dist/cjs/graphql/fragments/selected-option.generated.js +2 -6
- package/dist/cjs/graphql/fragments/variant.generated.js +2 -6
- package/dist/cjs/graphql/mutations/page-view-up.generated.js +2 -6
- package/dist/cjs/graphql/queries/articles.generated.js +2 -6
- package/dist/cjs/graphql/queries/blogs.generated.js +2 -6
- package/dist/cjs/graphql/queries/collection-detail-filter.generated.js +2 -16
- package/dist/cjs/graphql/queries/collection.generated.js +2 -14
- package/dist/cjs/graphql/queries/collections.generated.js +2 -9
- package/dist/cjs/graphql/queries/preview-page.generated.js +2 -12
- package/dist/cjs/graphql/queries/product-little-detail.generated.js +2 -11
- package/dist/cjs/graphql/queries/product-medias.generated.js +2 -8
- package/dist/cjs/graphql/queries/product-value-label.generated.js +2 -6
- package/dist/cjs/graphql/queries/product-variants.generated.js +3 -11
- package/dist/cjs/graphql/queries/products.generated.js +3 -17
- package/dist/cjs/graphql/queries/{published-shop-metas.js → published-shop-metas.generated.js} +2 -6
- package/dist/cjs/graphql/queries/published-theme-pages.generated.js +3 -19
- package/dist/cjs/graphql/queries/shop-shopify.generated.js +2 -6
- package/dist/cjs/graphql/queries/store-property.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/LibraryTemplate.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/SaleFunnelOffer.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/ShopLibraryPage.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/ThemePage.generated.js +2 -6
- package/dist/cjs/helpers/GlobalEvent.js +1 -19
- package/dist/cjs/helpers/align.js +1 -37
- package/dist/cjs/helpers/animations.js +1 -222
- package/dist/cjs/helpers/background.js +1 -236
- package/dist/cjs/helpers/backgroundImage.js +1 -0
- package/dist/cjs/helpers/borders.js +4 -198
- package/dist/cjs/helpers/carousel.js +1 -55
- package/dist/cjs/helpers/clone-deep.js +1 -5
- package/dist/cjs/helpers/cls.js +1 -16
- package/dist/cjs/helpers/colors.js +1 -184
- package/dist/cjs/helpers/compose-advance-style.js +1 -323
- package/dist/cjs/helpers/composeClasses.js +1 -0
- package/dist/cjs/helpers/const.js +1 -0
- package/dist/cjs/helpers/constant.js +1 -23
- package/dist/cjs/helpers/convert.js +1 -7
- package/dist/cjs/helpers/covert-entities-html.js +1 -19
- package/dist/cjs/helpers/css-variable.js +1 -7
- package/dist/cjs/helpers/email.js +1 -11
- package/dist/cjs/helpers/filter-styles.js +1 -0
- package/dist/cjs/helpers/filter-toolbar-preview.js +2 -14
- package/dist/cjs/helpers/flatten-connection.js +1 -9
- package/dist/cjs/helpers/get-resonsive-value.js +1 -36
- package/dist/cjs/helpers/get-shortname.js +1 -92
- package/dist/cjs/helpers/icon-list.js +1 -61
- package/dist/cjs/helpers/interaction/index.js +2 -134
- package/dist/cjs/helpers/is-browser.js +1 -9
- package/dist/cjs/helpers/is-defined.js +1 -7
- package/dist/cjs/helpers/is-empty-children.js +2 -15
- package/dist/cjs/helpers/is-safari.js +1 -9
- package/dist/cjs/helpers/layout.js +1 -76
- package/dist/cjs/helpers/load-script.js +1 -31
- package/dist/cjs/helpers/loop-component.js +1 -16
- package/dist/cjs/helpers/make-style.js +1 -163
- package/dist/cjs/helpers/normalize-builder-data.js +1 -23
- package/dist/cjs/helpers/pascal-to-kebab-case.js +1 -7
- package/dist/cjs/helpers/prefetch-queries.js +1 -78
- package/dist/cjs/helpers/product.js +1 -48
- package/dist/cjs/helpers/queries/get-collection.js +1 -226
- package/dist/cjs/helpers/queries/get-collections.js +1 -21
- package/dist/cjs/helpers/queries/get-product-by-slug.js +1 -125
- package/dist/cjs/helpers/queries/get-product.js +1 -154
- package/dist/cjs/helpers/queries/get-products.js +1 -214
- package/dist/cjs/helpers/query.js +1 -29
- package/dist/cjs/helpers/radius.js +6 -140
- package/dist/cjs/helpers/render.js +1 -91
- package/dist/cjs/helpers/shadow.js +1 -69
- package/dist/cjs/helpers/size.js +4 -228
- package/dist/cjs/helpers/spacing.js +1 -43
- package/dist/cjs/helpers/third-party/addAppBlockId.js +1 -20
- package/dist/cjs/helpers/third-party/appConfig.js +1 -416
- package/dist/cjs/helpers/third-party/appSetting.js +1 -1324
- package/dist/cjs/helpers/third-party/composeAppBlockId.js +1 -11
- package/dist/cjs/helpers/third-party/constant.js +1 -69
- package/dist/cjs/helpers/third-party/generateAppBlockConfigs.js +1 -34
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +1 -55
- package/dist/cjs/helpers/third-party/getAppBlockType.js +1 -12
- package/dist/cjs/helpers/third-party/getAppBlocks.js +1 -30
- package/dist/cjs/helpers/third-party/mergeBlock.js +1 -19
- package/dist/cjs/helpers/third-party/mergeBlockOrder.js +1 -47
- package/dist/cjs/helpers/third-party/removeGPAppItems.js +1 -18
- package/dist/cjs/helpers/tracking/fpixel.js +1 -28
- package/dist/cjs/helpers/tracking/gtag.js +1 -93
- package/dist/cjs/helpers/tracking/tiktokpixel.js +1 -17
- package/dist/cjs/helpers/typography.js +19 -160
- package/dist/cjs/helpers/variant.js +1 -11
- package/dist/cjs/hooks/animation/useAnimationActions.js +2 -39
- package/dist/cjs/hooks/animation/useAnimationConfig.js +2 -30
- package/dist/cjs/hooks/animation/useAnimationPreview.js +2 -31
- package/dist/cjs/hooks/animation/useAnimationTarget.js +2 -122
- package/dist/cjs/hooks/animation/useApplyAnimation.js +2 -89
- package/dist/cjs/hooks/articles/useArticlesQuery.js +2 -33
- package/dist/cjs/hooks/cart/use-add-to-cart.js +2 -20
- package/dist/cjs/hooks/cart/use-cart-data.js +2 -28
- package/dist/cjs/hooks/cart/use-cart-discount-codes-update.js +2 -20
- package/dist/cjs/hooks/cart/use-cart-note-update.js +2 -20
- package/dist/cjs/hooks/cart/use-create-cart.js +2 -22
- package/dist/cjs/hooks/cart/use-remove-cart-item.js +2 -20
- package/dist/cjs/hooks/cart/use-update-cart-item.js +2 -20
- package/dist/cjs/hooks/shop/use-collection-query.js +2 -22
- package/dist/cjs/hooks/shop/use-collections-query.js +2 -17
- package/dist/cjs/hooks/shop/use-product-query.js +2 -22
- package/dist/cjs/hooks/shop/use-products-query.js +2 -63
- package/dist/cjs/hooks/shop/useShopifyLink.js +2 -0
- package/dist/cjs/hooks/shop.js +2 -135
- package/dist/cjs/hooks/use-current-device.js +2 -30
- package/dist/cjs/hooks/use-lazy-video.js +2 -15
- package/dist/cjs/hooks/useAnimations.js +2 -29
- package/dist/cjs/hooks/useCartId.js +2 -44
- package/dist/cjs/hooks/useCartLine.js +2 -11
- package/dist/cjs/hooks/useCartUI.js +2 -48
- package/dist/cjs/hooks/useCollection.js +2 -9
- package/dist/cjs/hooks/useFetchHandle.js +2 -13
- package/dist/cjs/hooks/useFormatMoney.js +2 -75
- package/dist/cjs/hooks/useI18n.js +2 -0
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +2 -127
- package/dist/cjs/hooks/useInteraction.js +2 -19
- package/dist/cjs/hooks/useIsomorphicLayoutEffect.js +2 -10
- package/dist/cjs/hooks/useLoadScript.js +2 -32
- package/dist/cjs/hooks/useMoney.js +2 -84
- package/dist/cjs/hooks/usePrevious.js +2 -19
- package/dist/cjs/hooks/useProduct.js +2 -250
- package/dist/cjs/hooks/useProductList.js +2 -21
- package/dist/cjs/hooks/useStickyStore.js +1 -0
- package/dist/cjs/hooks/useSuspenseFetch.js +2 -27
- package/dist/cjs/hooks/useSwatchesOptions.js +2 -41
- package/dist/cjs/hooks/useToolbarPostPurchase.js +2 -89
- package/dist/cjs/index.js +1 -425
- package/dist/cjs/types/animations.js +1 -49
- package/dist/cjs/types/appAPI.js +1 -2
- package/dist/cjs/types/custom.js +1 -52
- package/dist/cjs/types/global-style.js +1 -15
- package/dist/cjs/types/shop.js +1 -2
- package/dist/esm/components/AddOn.js +2 -14
- package/dist/esm/components/ComponentAnimation.js +2 -13
- package/dist/esm/components/ComponentToolbarPreview.js +2 -748
- package/dist/esm/components/ComponentWrapper.js +2 -57
- package/dist/esm/components/ComponentWrapperPreview.js +2 -209
- package/dist/esm/components/Empty.js +2 -3
- package/dist/esm/components/InteractionSuffix.js +2 -40
- package/dist/esm/components/Render.js +2 -71
- package/dist/esm/components/Render.liquid.js +16 -301
- package/dist/esm/components/RenderBlock.js +2 -50
- package/dist/esm/components/RenderCustomCode.js +4 -55
- package/dist/esm/components/RenderPreview.js +2 -63
- package/dist/esm/components/RenderSection.js +2 -19
- package/dist/esm/components/ai-generator/AIContentGenerator.js +2 -250
- package/dist/esm/components/ai-generator/AIGenContentLoading.js +2 -83
- package/dist/esm/components/ai-generator/components/PickProduct.js +2 -218
- package/dist/esm/components/ai-generator/components/ToneAndVoice.js +2 -75
- package/dist/esm/components/ai-generator/hooks/useCheckingProductInside.js +1 -45
- package/dist/esm/components/ai-generator/hooks/useFlipPopup.js +1 -108
- package/dist/esm/components/ai-generator/hooks/useGettingGenerateRequest.js +1 -35
- package/dist/esm/components/ai-generator/hooks/useListenEventGenerate.js +1 -68
- package/dist/esm/components/ai-generator/icons/AIIcon.js +2 -65
- package/dist/esm/components/ai-generator/icons/CloseIcon.js +2 -17
- package/dist/esm/components/ai-generator/icons/DropdownIcon.js +2 -34
- package/dist/esm/components/ai-generator/icons/SearchIcon.js +2 -19
- package/dist/esm/components/ai-generator/icons/ShowMoreIcon.js +2 -19
- package/dist/esm/components/ai-generator/icons/UpgradeIcon.js +2 -25
- package/dist/esm/components/ai-generator/icons/WarningIcon.js +2 -29
- package/dist/esm/components/constant.js +1 -75
- package/dist/esm/components/resize/Resize.js +2 -12
- package/dist/esm/components/resize/Spacing.js +2 -256
- package/dist/esm/components/src/product/helpers/variant-presets.js +1 -54
- package/dist/esm/components/theme-section/CreateThemeSection.js +2 -121
- package/dist/esm/components/theme-section/ThemeSectionStatus.js +2 -43
- package/dist/esm/components/theme-section/ThemeSectionTooltip.js +2 -124
- package/dist/esm/components/toolbar/Tooltip.js +2 -24
- package/dist/esm/constants/device.js +1 -0
- package/dist/esm/contexts/AddonContext.js +2 -32
- package/dist/esm/contexts/ArticleContext.js +2 -36
- package/dist/esm/contexts/ArticleListContext.js +2 -27
- package/dist/esm/contexts/BuilderComponent.js +2 -31
- package/dist/esm/contexts/BuilderContext.js +2 -36
- package/dist/esm/contexts/BuilderPreviewContext.js +2 -479
- package/dist/esm/contexts/CartLineContext.js +2 -26
- package/dist/esm/contexts/CollectionContext.js +2 -35
- package/dist/esm/contexts/I18nContext.js +2 -0
- package/dist/esm/contexts/ModalContext.js +2 -44
- package/dist/esm/contexts/PageContext.js +2 -108
- package/dist/esm/contexts/ProductContext.js +2 -179
- package/dist/esm/contexts/ProductListContext.js +2 -28
- package/dist/esm/contexts/SectionContext.js +2 -49
- package/dist/esm/contexts/ShopContext.js +2 -104
- package/dist/esm/graphql/fragments/analytic.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection-detail.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection-product.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection.generated.js +2 -4
- package/dist/esm/graphql/fragments/custom-code.generated.js +2 -4
- package/dist/esm/graphql/fragments/custom-font.generated.js +7 -5
- package/dist/esm/graphql/fragments/data-seo.generated.js +2 -4
- package/dist/esm/graphql/fragments/media.generated.js +2 -4
- package/dist/esm/graphql/fragments/preview-theme-page.generated.js +6 -4
- package/dist/esm/graphql/fragments/product-little.generated.js +2 -4
- package/dist/esm/graphql/fragments/product-option-value.generated.js +2 -4
- package/dist/esm/graphql/fragments/product-option.generated.js +2 -4
- package/dist/esm/graphql/fragments/product.generated.js +2 -4
- package/dist/esm/graphql/fragments/published-custom-section.generated.js +2 -4
- package/dist/esm/graphql/fragments/published-page-section.generated.js +2 -4
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +4 -16
- package/dist/esm/graphql/fragments/published-theme-style.generated.js +2 -4
- package/dist/esm/graphql/fragments/selected-option.generated.js +2 -4
- package/dist/esm/graphql/fragments/variant.generated.js +2 -4
- package/dist/esm/graphql/mutations/page-view-up.generated.js +2 -4
- package/dist/esm/graphql/queries/articles.generated.js +2 -4
- package/dist/esm/graphql/queries/blogs.generated.js +2 -4
- package/dist/esm/graphql/queries/collection-detail-filter.generated.js +10 -22
- package/dist/esm/graphql/queries/collection.generated.js +8 -18
- package/dist/esm/graphql/queries/collections.generated.js +3 -8
- package/dist/esm/graphql/queries/preview-page.generated.js +6 -14
- package/dist/esm/graphql/queries/product-little-detail.generated.js +5 -12
- package/dist/esm/graphql/queries/product-medias.generated.js +2 -6
- package/dist/esm/graphql/queries/product-value-label.generated.js +2 -4
- package/dist/esm/graphql/queries/product-variants.generated.js +5 -11
- package/dist/esm/graphql/queries/products.generated.js +9 -20
- package/dist/esm/graphql/queries/{published-shop-metas.js → published-shop-metas.generated.js} +2 -4
- package/dist/esm/graphql/queries/published-theme-pages.generated.js +6 -20
- package/dist/esm/graphql/queries/shop-shopify.generated.js +2 -4
- package/dist/esm/graphql/queries/store-property.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/LibraryTemplate.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/SaleFunnelOffer.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/ShopLibraryPage.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/ThemePage.generated.js +2 -4
- package/dist/esm/helpers/GlobalEvent.js +1 -15
- package/dist/esm/helpers/align.js +1 -34
- package/dist/esm/helpers/animations.js +1 -220
- package/dist/esm/helpers/background.js +1 -227
- package/dist/esm/helpers/backgroundImage.js +1 -0
- package/dist/esm/helpers/borders.js +4 -189
- package/dist/esm/helpers/carousel.js +1 -51
- package/dist/esm/helpers/clone-deep.js +1 -3
- package/dist/esm/helpers/cls.js +1 -14
- package/dist/esm/helpers/colors.js +1 -169
- package/dist/esm/helpers/compose-advance-style.js +1 -315
- package/dist/esm/helpers/composeClasses.js +1 -0
- package/dist/esm/helpers/const.js +1 -0
- package/dist/esm/helpers/constant.js +1 -19
- package/dist/esm/helpers/convert.js +1 -4
- package/dist/esm/helpers/covert-entities-html.js +1 -17
- package/dist/esm/helpers/css-variable.js +1 -5
- package/dist/esm/helpers/email.js +1 -6
- package/dist/esm/helpers/filter-styles.js +1 -0
- package/dist/esm/helpers/filter-toolbar-preview.js +2 -9
- package/dist/esm/helpers/flatten-connection.js +1 -7
- package/dist/esm/helpers/get-resonsive-value.js +1 -31
- package/dist/esm/helpers/get-shortname.js +1 -90
- package/dist/esm/helpers/icon-list.js +1 -58
- package/dist/esm/helpers/interaction/index.js +2 -132
- package/dist/esm/helpers/is-browser.js +1 -5
- package/dist/esm/helpers/is-defined.js +1 -5
- package/dist/esm/helpers/is-empty-children.js +2 -10
- package/dist/esm/helpers/is-safari.js +1 -5
- package/dist/esm/helpers/layout.js +1 -70
- package/dist/esm/helpers/load-script.js +1 -29
- package/dist/esm/helpers/loop-component.js +1 -14
- package/dist/esm/helpers/make-style.js +1 -149
- package/dist/esm/helpers/normalize-builder-data.js +1 -21
- package/dist/esm/helpers/pascal-to-kebab-case.js +1 -5
- package/dist/esm/helpers/prefetch-queries.js +1 -76
- package/dist/esm/helpers/product.js +1 -44
- package/dist/esm/helpers/queries/get-collection.js +1 -223
- package/dist/esm/helpers/queries/get-collections.js +1 -19
- package/dist/esm/helpers/queries/get-product-by-slug.js +1 -123
- package/dist/esm/helpers/queries/get-product.js +1 -150
- package/dist/esm/helpers/queries/get-products.js +1 -210
- package/dist/esm/helpers/query.js +1 -25
- package/dist/esm/helpers/radius.js +6 -132
- package/dist/esm/helpers/render.js +1 -82
- package/dist/esm/helpers/shadow.js +1 -63
- package/dist/esm/helpers/size.js +4 -213
- package/dist/esm/helpers/spacing.js +1 -40
- package/dist/esm/helpers/third-party/addAppBlockId.js +1 -18
- package/dist/esm/helpers/third-party/appConfig.js +1 -356
- package/dist/esm/helpers/third-party/appSetting.js +1 -1321
- package/dist/esm/helpers/third-party/composeAppBlockId.js +1 -9
- package/dist/esm/helpers/third-party/constant.js +1 -66
- package/dist/esm/helpers/third-party/generateAppBlockConfigs.js +1 -32
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +1 -53
- package/dist/esm/helpers/third-party/getAppBlockType.js +1 -10
- package/dist/esm/helpers/third-party/getAppBlocks.js +1 -28
- package/dist/esm/helpers/third-party/mergeBlock.js +1 -17
- package/dist/esm/helpers/third-party/mergeBlockOrder.js +1 -45
- package/dist/esm/helpers/third-party/removeGPAppItems.js +1 -15
- package/dist/esm/helpers/tracking/fpixel.js +1 -24
- package/dist/esm/helpers/tracking/gtag.js +1 -87
- package/dist/esm/helpers/tracking/tiktokpixel.js +1 -15
- package/dist/esm/helpers/typography.js +19 -149
- package/dist/esm/helpers/variant.js +1 -9
- package/dist/esm/hooks/animation/useAnimationActions.js +2 -37
- package/dist/esm/hooks/animation/useAnimationConfig.js +2 -28
- package/dist/esm/hooks/animation/useAnimationPreview.js +2 -29
- package/dist/esm/hooks/animation/useAnimationTarget.js +2 -120
- package/dist/esm/hooks/animation/useApplyAnimation.js +2 -85
- package/dist/esm/hooks/articles/useArticlesQuery.js +2 -30
- package/dist/esm/hooks/cart/use-add-to-cart.js +2 -18
- package/dist/esm/hooks/cart/use-cart-data.js +2 -26
- package/dist/esm/hooks/cart/use-cart-discount-codes-update.js +2 -18
- package/dist/esm/hooks/cart/use-cart-note-update.js +2 -18
- package/dist/esm/hooks/cart/use-create-cart.js +2 -20
- package/dist/esm/hooks/cart/use-remove-cart-item.js +2 -18
- package/dist/esm/hooks/cart/use-update-cart-item.js +2 -18
- package/dist/esm/hooks/shop/use-collection-query.js +2 -20
- package/dist/esm/hooks/shop/use-collections-query.js +2 -15
- package/dist/esm/hooks/shop/use-product-query.js +2 -20
- package/dist/esm/hooks/shop/use-products-query.js +2 -59
- package/dist/esm/hooks/shop/useShopifyLink.js +2 -0
- package/dist/esm/hooks/shop.js +2 -119
- package/dist/esm/hooks/use-current-device.js +2 -28
- package/dist/esm/hooks/use-lazy-video.js +2 -13
- package/dist/esm/hooks/useAnimations.js +2 -27
- package/dist/esm/hooks/useCartId.js +2 -40
- package/dist/esm/hooks/useCartLine.js +2 -7
- package/dist/esm/hooks/useCartUI.js +2 -44
- package/dist/esm/hooks/useCollection.js +2 -7
- package/dist/esm/hooks/useFetchHandle.js +2 -11
- package/dist/esm/hooks/useFormatMoney.js +2 -71
- package/dist/esm/hooks/useI18n.js +2 -0
- package/dist/esm/hooks/useInitialSwatchesOptions.js +2 -123
- package/dist/esm/hooks/useInteraction.js +2 -17
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js +2 -6
- package/dist/esm/hooks/useLoadScript.js +2 -28
- package/dist/esm/hooks/useMoney.js +2 -80
- package/dist/esm/hooks/usePrevious.js +2 -17
- package/dist/esm/hooks/useProduct.js +2 -233
- package/dist/esm/hooks/useProductList.js +2 -16
- package/dist/esm/hooks/useStickyStore.js +1 -0
- package/dist/esm/hooks/useSuspenseFetch.js +2 -23
- package/dist/esm/hooks/useSwatchesOptions.js +2 -37
- package/dist/esm/hooks/useToolbarPostPurchase.js +2 -87
- package/dist/esm/index.js +1 -119
- package/dist/esm/types/animations.js +1 -49
- package/dist/esm/types/custom.js +1 -52
- package/dist/esm/types/global-style.js +1 -12
- package/dist/types/index.d.ts +12025 -8969
- package/package.json +6 -6
- package/dist/cjs/web-components/src/helpers/styles/constant.js +0 -9
- package/dist/esm/web-components/src/helpers/styles/constant.js +0 -7
|
@@ -1,323 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var borders = require('./borders.js');
|
|
4
|
-
var colors = require('./colors.js');
|
|
5
|
-
var constant = require('./constant.js');
|
|
6
|
-
var makeStyle = require('./make-style.js');
|
|
7
|
-
var radius = require('./radius.js');
|
|
8
|
-
var shadow = require('./shadow.js');
|
|
9
|
-
|
|
10
|
-
const composeSpacing = ({ source, spacing, type, suffix = '' })=>{
|
|
11
|
-
const { top, left, bottom, right } = spacing;
|
|
12
|
-
if (top) source[`--${type}t${suffix}`] = top;
|
|
13
|
-
if (left) source[`--${type}l${suffix}`] = left;
|
|
14
|
-
if (bottom) source[`--${type}b${suffix}`] = bottom;
|
|
15
|
-
if (right) source[`--${type}r${suffix}`] = right;
|
|
16
|
-
};
|
|
17
|
-
const composeSpacingV2 = ({ source, spacing, suffix = '', tag = '' })=>{
|
|
18
|
-
if (spacing && spacing.margin) {
|
|
19
|
-
const { top, left, bottom, right } = spacing.margin;
|
|
20
|
-
if (top) source[`--mt${suffix}`] = top;
|
|
21
|
-
if (left) source[`--ml${suffix}`] = constant.layoutComponent.includes(tag) && left === '0px' ? 'auto' : left;
|
|
22
|
-
if (bottom) source[`--mb${suffix}`] = bottom;
|
|
23
|
-
if (right) source[`--mr${suffix}`] = constant.layoutComponent.includes(tag) && right === '0px' ? 'auto' : right;
|
|
24
|
-
}
|
|
25
|
-
if (spacing && spacing.padding) {
|
|
26
|
-
const { top, left, bottom, right } = spacing.padding;
|
|
27
|
-
if (top) source[`--pt${suffix}`] = top;
|
|
28
|
-
if (left) source[`--pl${suffix}`] = left;
|
|
29
|
-
if (bottom) source[`--pb${suffix}`] = bottom;
|
|
30
|
-
if (right) source[`--pr${suffix}`] = right;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const getAttrValue = (attr, value, tag)=>{
|
|
34
|
-
if (value === undefined || value === null) return undefined;
|
|
35
|
-
switch(attr){
|
|
36
|
-
case 'bgc':
|
|
37
|
-
case 'c':
|
|
38
|
-
return colors.isColor(value.toString()) ? value : `var(--g-c-${value})`;
|
|
39
|
-
case 'd':
|
|
40
|
-
if (!value) return 'none';
|
|
41
|
-
if (value && tag && constant.layoutComponent.includes(tag)) return 'grid';
|
|
42
|
-
return 'block';
|
|
43
|
-
case 'animation':
|
|
44
|
-
return undefined;
|
|
45
|
-
case 'hasBoxShadow':
|
|
46
|
-
return undefined;
|
|
47
|
-
case 'rounded':
|
|
48
|
-
return undefined;
|
|
49
|
-
case 'boxShadow':
|
|
50
|
-
return undefined;
|
|
51
|
-
case 'border':
|
|
52
|
-
return undefined;
|
|
53
|
-
default:
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const postPurchasePaddingMapping = {
|
|
58
|
-
loose: '21px',
|
|
59
|
-
extraLoose: '38px',
|
|
60
|
-
tight: '9px',
|
|
61
|
-
extraTight: '5px',
|
|
62
|
-
base: '14px'
|
|
63
|
-
};
|
|
64
|
-
const composeAdvanceStyleForPostPurchase = (data, tag)=>{
|
|
65
|
-
if (!data) return {};
|
|
66
|
-
const styles = {};
|
|
67
|
-
Object.keys(data).forEach((attr)=>{
|
|
68
|
-
const value = data[attr];
|
|
69
|
-
if (attr === 'blockPadding') {
|
|
70
|
-
const valueMapped = postPurchasePaddingMapping[value];
|
|
71
|
-
styles[`--pb`] = getAttrValue(attr, valueMapped, tag);
|
|
72
|
-
styles[`--pt`] = getAttrValue(attr, valueMapped, tag);
|
|
73
|
-
styles[`--mb`] = '0px';
|
|
74
|
-
styles[`--mt`] = '0px';
|
|
75
|
-
}
|
|
76
|
-
if (attr === 'inlinePadding') {
|
|
77
|
-
const valueMapped = postPurchasePaddingMapping[value];
|
|
78
|
-
styles[`--pl`] = getAttrValue(attr, valueMapped, tag);
|
|
79
|
-
styles[`--pr`] = getAttrValue(attr, valueMapped, tag);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
return styles;
|
|
83
|
-
};
|
|
84
|
-
function composeAdvanceStyle(data, tag, pageType) {
|
|
85
|
-
if (!data) return {};
|
|
86
|
-
const styles = {};
|
|
87
|
-
const devices = [
|
|
88
|
-
'desktop',
|
|
89
|
-
'tablet',
|
|
90
|
-
'mobile'
|
|
91
|
-
];
|
|
92
|
-
const states = [
|
|
93
|
-
'hover',
|
|
94
|
-
'normal'
|
|
95
|
-
];
|
|
96
|
-
Object.keys(data).forEach((attr)=>{
|
|
97
|
-
const value = data[attr];
|
|
98
|
-
if (attr === 'cssClass') return;
|
|
99
|
-
if (value === undefined || value === null) return;
|
|
100
|
-
const hasBoxShadow = data.hasBoxShadow ? data.hasBoxShadow : {};
|
|
101
|
-
if (typeof value === 'object') {
|
|
102
|
-
if (Array.isArray(value)) return;
|
|
103
|
-
Object.keys(value).forEach((composeAttr)=>{
|
|
104
|
-
if (devices.includes(composeAttr)) {
|
|
105
|
-
const deviceValue = value[composeAttr];
|
|
106
|
-
if (deviceValue !== undefined) {
|
|
107
|
-
// Responsive border with state
|
|
108
|
-
if (attr === 'border') {
|
|
109
|
-
Object.assign(styles, borders.handleConvertBorderStyle(value), borders.handleConvertBorderWidth(value), borders.handleConvertBorderColor(value));
|
|
110
|
-
}
|
|
111
|
-
if (attr === 'rounded') {
|
|
112
|
-
Object.assign(styles, radius.composeRadius(value));
|
|
113
|
-
}
|
|
114
|
-
if (attr === 'boxShadow') {
|
|
115
|
-
Object.assign(styles, shadow.getResponsiveStyleShadow(value, 'box-shadow', hasBoxShadow));
|
|
116
|
-
}
|
|
117
|
-
const styleValue = getAttrValue(attr, deviceValue, tag);
|
|
118
|
-
if (composeAttr === 'desktop') {
|
|
119
|
-
switch(attr){
|
|
120
|
-
case 'padding':
|
|
121
|
-
composeSpacing({
|
|
122
|
-
source: styles,
|
|
123
|
-
spacing: deviceValue,
|
|
124
|
-
type: 'p'
|
|
125
|
-
});
|
|
126
|
-
break;
|
|
127
|
-
case 'margin':
|
|
128
|
-
composeSpacing({
|
|
129
|
-
source: styles,
|
|
130
|
-
spacing: deviceValue,
|
|
131
|
-
type: 'm'
|
|
132
|
-
});
|
|
133
|
-
break;
|
|
134
|
-
case 'spacing-setting':
|
|
135
|
-
composeSpacingV2({
|
|
136
|
-
source: styles,
|
|
137
|
-
spacing: deviceValue,
|
|
138
|
-
tag
|
|
139
|
-
});
|
|
140
|
-
break;
|
|
141
|
-
case 'm':
|
|
142
|
-
case 'p':
|
|
143
|
-
break;
|
|
144
|
-
default:
|
|
145
|
-
styleValue && (styles[`--${attr}`] = styleValue);
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
} else {
|
|
149
|
-
switch(attr){
|
|
150
|
-
case 'padding':
|
|
151
|
-
composeSpacing({
|
|
152
|
-
source: styles,
|
|
153
|
-
spacing: deviceValue,
|
|
154
|
-
type: 'p',
|
|
155
|
-
suffix: `-${composeAttr}`
|
|
156
|
-
});
|
|
157
|
-
break;
|
|
158
|
-
case 'margin':
|
|
159
|
-
composeSpacing({
|
|
160
|
-
source: styles,
|
|
161
|
-
spacing: deviceValue,
|
|
162
|
-
type: 'm',
|
|
163
|
-
suffix: `-${composeAttr}`
|
|
164
|
-
});
|
|
165
|
-
break;
|
|
166
|
-
case 'spacing-setting':
|
|
167
|
-
composeSpacingV2({
|
|
168
|
-
source: styles,
|
|
169
|
-
spacing: deviceValue,
|
|
170
|
-
suffix: `-${composeAttr}`,
|
|
171
|
-
tag
|
|
172
|
-
});
|
|
173
|
-
break;
|
|
174
|
-
case 'm':
|
|
175
|
-
case 'p':
|
|
176
|
-
break;
|
|
177
|
-
default:
|
|
178
|
-
styleValue && (styles[`--${attr}-${composeAttr}`] = styleValue);
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
} else if (states.includes(composeAttr)) {
|
|
184
|
-
switch(attr){
|
|
185
|
-
case 'hasBoxShadow':
|
|
186
|
-
break;
|
|
187
|
-
case 'boxShadow':
|
|
188
|
-
Object.assign(styles, shadow.getStyleShadowState(value, 'box-shadow', hasBoxShadow));
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
} else {
|
|
192
|
-
if (attr === 'border') {
|
|
193
|
-
const borderStyle = value;
|
|
194
|
-
if (borderStyle.border === 'none') {
|
|
195
|
-
borderStyle.border = 'solid';
|
|
196
|
-
borderStyle.color = '#121212';
|
|
197
|
-
borderStyle.isCustom = true;
|
|
198
|
-
borderStyle.width = '0px';
|
|
199
|
-
borderStyle.position = 'all';
|
|
200
|
-
}
|
|
201
|
-
Object.assign(styles, borders.getBorderStyle(borderStyle));
|
|
202
|
-
}
|
|
203
|
-
if (attr === 'rounded') {
|
|
204
|
-
Object.assign(styles, radius.getCornerCSSFromGlobal(value));
|
|
205
|
-
}
|
|
206
|
-
if (attr === 'hasBoxShadow') {
|
|
207
|
-
Object.assign(styles, shadow.getStyleShadow({
|
|
208
|
-
value: data.boxShadow,
|
|
209
|
-
styleAppliedFor: 'box-shadow',
|
|
210
|
-
isEnableShadow: data.hasBoxShadow
|
|
211
|
-
}));
|
|
212
|
-
}
|
|
213
|
-
if (attr === 'boxShadow') {
|
|
214
|
-
Object.assign(styles, shadow.getStyleShadow({
|
|
215
|
-
value: value,
|
|
216
|
-
styleAppliedFor: 'box-shadow',
|
|
217
|
-
isEnableShadow: data.hasBoxShadow
|
|
218
|
-
}));
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
} else {
|
|
223
|
-
const styleValue = getAttrValue(attr, value, tag);
|
|
224
|
-
styleValue && (styles[`--${attr}`] = styleValue);
|
|
225
|
-
if (attr === 'hasBoxShadow' && data.boxShadow) {
|
|
226
|
-
Object.assign(styles, shadow.getStyleShadow({
|
|
227
|
-
value: data.boxShadow,
|
|
228
|
-
styleAppliedFor: 'box-shadow',
|
|
229
|
-
isEnableShadow: data.hasBoxShadow
|
|
230
|
-
}));
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (attr === 'blockPadding' && pageType === 'POST_PURCHASE') {
|
|
234
|
-
const valueMapped = postPurchasePaddingMapping[value];
|
|
235
|
-
styles[`--pb`] = getAttrValue(attr, valueMapped, tag);
|
|
236
|
-
styles[`--pt`] = getAttrValue(attr, valueMapped, tag);
|
|
237
|
-
styles[`--mb`] = '0px';
|
|
238
|
-
styles[`--mt`] = '0px';
|
|
239
|
-
}
|
|
240
|
-
if (attr === 'inlinePadding' && pageType === 'POST_PURCHASE') {
|
|
241
|
-
const valueMapped = postPurchasePaddingMapping[value];
|
|
242
|
-
styles[`--pl`] = getAttrValue(attr, valueMapped, tag);
|
|
243
|
-
styles[`--pr`] = getAttrValue(attr, valueMapped, tag);
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
const advancedPostPurchaseStyles = pageType === 'POST_PURCHASE' ? composeAdvanceStyleForPostPurchase(data, tag) : {};
|
|
247
|
-
return {
|
|
248
|
-
...styles,
|
|
249
|
-
...advancedPostPurchaseStyles
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
const splitStyle = (keys, style = {})=>{
|
|
253
|
-
const fullKeys = keys.map((key)=>makeStyle.makeStyleKey(key)).flat();
|
|
254
|
-
const splitKeys = Object.keys(style).filter((key)=>{
|
|
255
|
-
return fullKeys.includes(key);
|
|
256
|
-
});
|
|
257
|
-
const splitStyle = splitKeys.reduce((curr, key)=>{
|
|
258
|
-
return {
|
|
259
|
-
...curr,
|
|
260
|
-
[key]: style[key]
|
|
261
|
-
};
|
|
262
|
-
}, {});
|
|
263
|
-
const restStyle = Object.keys(style).filter((key)=>{
|
|
264
|
-
return !splitKeys.includes(key);
|
|
265
|
-
}).reduce((curr, key)=>{
|
|
266
|
-
return {
|
|
267
|
-
...curr,
|
|
268
|
-
[key]: style[key]
|
|
269
|
-
};
|
|
270
|
-
}, {});
|
|
271
|
-
return [
|
|
272
|
-
splitStyle,
|
|
273
|
-
restStyle
|
|
274
|
-
];
|
|
275
|
-
};
|
|
276
|
-
const filterAttrInStyle = (style, filterKeys)=>{
|
|
277
|
-
if (!style || !filterKeys) return {};
|
|
278
|
-
const newStyle = {
|
|
279
|
-
...style
|
|
280
|
-
};
|
|
281
|
-
Object.entries(newStyle).forEach(([key])=>{
|
|
282
|
-
if (!filterKeys.includes(key)) {
|
|
283
|
-
delete newStyle[key];
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
return newStyle;
|
|
287
|
-
};
|
|
288
|
-
const removeAttrInStyle = (style, filterKeys)=>{
|
|
289
|
-
if (!style || !filterKeys) return {};
|
|
290
|
-
const newStyle = {
|
|
291
|
-
...style
|
|
292
|
-
};
|
|
293
|
-
Object.entries(newStyle).forEach(([key])=>{
|
|
294
|
-
if (filterKeys.includes(key)) {
|
|
295
|
-
delete newStyle[key];
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
return newStyle;
|
|
299
|
-
};
|
|
300
|
-
const getCornerStyle = (advancedSetting)=>{
|
|
301
|
-
return composeAdvanceStyle({
|
|
302
|
-
rounded: advancedSetting?.rounded
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
const removePaddingYInStyle = (style)=>{
|
|
306
|
-
const keys = [
|
|
307
|
-
'--pt',
|
|
308
|
-
'--pt-tablet',
|
|
309
|
-
'--pt-mobile',
|
|
310
|
-
'--pb',
|
|
311
|
-
'--pb-tablet',
|
|
312
|
-
'--pb-mobile'
|
|
313
|
-
];
|
|
314
|
-
return removeAttrInStyle(style, keys);
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
exports.composeAdvanceStyle = composeAdvanceStyle;
|
|
318
|
-
exports.composeAdvanceStyleForPostPurchase = composeAdvanceStyleForPostPurchase;
|
|
319
|
-
exports.filterAttrInStyle = filterAttrInStyle;
|
|
320
|
-
exports.getCornerStyle = getCornerStyle;
|
|
321
|
-
exports.removeAttrInStyle = removeAttrInStyle;
|
|
322
|
-
exports.removePaddingYInStyle = removePaddingYInStyle;
|
|
323
|
-
exports.splitStyle = splitStyle;
|
|
1
|
+
"use strict";var borders=require("./borders.js"),colors=require("./colors.js"),constant=require("./constant.js"),makeStyle=require("./make-style.js"),radius=require("./radius.js"),shadow=require("./shadow.js"),device=require("../constants/device.js");const composeSpacing=({source:e,spacing:t,type:o,suffix:r=""})=>{let{top:a,left:s,bottom:n,right:i}=t;a&&(e[`--${o}t${r}`]=a),s&&(e[`--${o}l${r}`]=s),n&&(e[`--${o}b${r}`]=n),i&&(e[`--${o}r${r}`]=i)},composeSpacingV2=({source:e,spacing:t,suffix:o="",tag:r=""})=>{if(t&&t.margin){let{top:a,left:s,bottom:n,right:i}=t.margin;a&&(e[`--mt${o}`]=a),s&&(e[`--ml${o}`]=constant.layoutComponent.includes(r)&&"0px"===s?"auto":s),n&&(e[`--mb${o}`]=n),i&&(e[`--mr${o}`]=constant.layoutComponent.includes(r)&&"0px"===i?"auto":i)}if(t&&t.padding){let{top:r,left:a,bottom:s,right:n}=t.padding;r&&(e[`--pt${o}`]=r),a&&(e[`--pl${o}`]=a),s&&(e[`--pb${o}`]=s),n&&(e[`--pr${o}`]=n)}},getAttrValue=(e,t,o)=>{if(null!=t)switch(e){case"bgc":case"c":return colors.isColor(t.toString())?t:`var(--g-c-${t})`;case"d":if(!t)return"none";if(t&&o&&constant.layoutComponent.includes(o))return"grid";return"block";case"animation":case"hasBoxShadow":case"rounded":case"boxShadow":case"border":return;default:return t}},postPurchasePaddingMapping={loose:"21px",extraLoose:"38px",tight:"9px",extraTight:"5px",base:"14px"},composeAdvanceStyleForPostPurchase=(e,t)=>{if(!e)return{};let o={};return Object.keys(e).forEach(r=>{let a=e[r];if("blockPadding"===r){let e=postPurchasePaddingMapping[a];o["--pb"]=getAttrValue(r,e,t),o["--pt"]=getAttrValue(r,e,t),o["--mb"]="0px",o["--mt"]="0px"}if("inlinePadding"===r){let e=postPurchasePaddingMapping[a];o["--pl"]=getAttrValue(r,e,t),o["--pr"]=getAttrValue(r,e,t)}}),o};function composeAdvanceStyle(e,t,o){if(!e)return{};let r={},a=["hover","normal"];Object.keys(e).forEach(s=>{let n=e[s];if("cssClass"===s||null==n)return;let i=e.hasBoxShadow?e.hasBoxShadow:{};if("object"==typeof n){if(Array.isArray(n))return;Object.keys(n).forEach(o=>{if(device.DEVICES.includes(o)){let e=n[o];if(void 0!==e){"border"===s&&Object.assign(r,borders.handleConvertBorderStyle(n),borders.handleConvertBorderWidth(n),borders.handleConvertBorderColor(n)),"rounded"===s&&Object.assign(r,radius.composeRadius(n)),"boxShadow"===s&&Object.assign(r,shadow.getResponsiveStyleShadow(n,"box-shadow",i));let a=getAttrValue(s,e,t);if("desktop"===o)switch(s){case"padding":composeSpacing({source:r,spacing:e,type:"p"});break;case"margin":composeSpacing({source:r,spacing:e,type:"m"});break;case"spacing-setting":composeSpacingV2({source:r,spacing:e,tag:t});break;case"m":case"p":break;default:a&&(r[`--${s}`]=a)}else switch(s){case"padding":composeSpacing({source:r,spacing:e,type:"p",suffix:`-${o}`});break;case"margin":composeSpacing({source:r,spacing:e,type:"m",suffix:`-${o}`});break;case"spacing-setting":composeSpacingV2({source:r,spacing:e,suffix:`-${o}`,tag:t});break;case"m":case"p":break;default:a&&(r[`--${s}-${o}`]=a)}}}else if(a.includes(o))switch(s){case"hasBoxShadow":break;case"boxShadow":Object.assign(r,shadow.getStyleShadowState(n,"box-shadow",i))}else"border"===s&&("none"===n.border&&(n.border="solid",n.color="#121212",n.isCustom=!0,n.width="0px",n.position="all"),Object.assign(r,borders.getBorderStyle(n))),"rounded"===s&&Object.assign(r,radius.getCornerCSSFromGlobal(n)),"hasBoxShadow"===s&&Object.assign(r,shadow.getStyleShadow({value:e.boxShadow,styleAppliedFor:"box-shadow",isEnableShadow:e.hasBoxShadow})),"boxShadow"===s&&Object.assign(r,shadow.getStyleShadow({value:n,styleAppliedFor:"box-shadow",isEnableShadow:e.hasBoxShadow}))})}else{let o=getAttrValue(s,n,t);o&&(r[`--${s}`]=o),"hasBoxShadow"===s&&e.boxShadow&&Object.assign(r,shadow.getStyleShadow({value:e.boxShadow,styleAppliedFor:"box-shadow",isEnableShadow:e.hasBoxShadow}))}if("blockPadding"===s&&"POST_PURCHASE"===o){let e=postPurchasePaddingMapping[n];r["--pb"]=getAttrValue(s,e,t),r["--pt"]=getAttrValue(s,e,t),r["--mb"]="0px",r["--mt"]="0px"}if("inlinePadding"===s&&"POST_PURCHASE"===o){let e=postPurchasePaddingMapping[n];r["--pl"]=getAttrValue(s,e,t),r["--pr"]=getAttrValue(s,e,t)}});let s="POST_PURCHASE"===o?composeAdvanceStyleForPostPurchase(e,t):{};return{...r,...s}}const convertBoxShadowV1ToV2=(e,t,o)=>{let r=["Section","Row","Text","Heading","Image","Button","HeroBanner","ImageComparison","Countdown","Video"],a=["ProductTitle","ProductDescription","ProductPrice","ProductVendor","Product","ProductSku","StockCounter","Sticky","ProductBadge","ProductViewMore","ProductButton","DynamicCheckout","ProductList","ProductQuantity","ProductVariants"],s=["Icon","IconListHoz","Line","IconList","IconListV2","Tabs","Accordion","Marquee","Breadcrumb","EstimateDate"],n=["Newsletter","ContactForm","TextField","FormTextarea","FormEmail","FormDropdown","FormCheckbox","SubmitButton","TextInput"],i=["CollectionTitle","CollectionDescription","CollectionBanner","CollectionToolbar","CollectionPaginator"],c=[...r,...a,...s,...n,...i],d=e;return c.includes(o||"")&&(d={desktop:t.desktop??{},tablet:t.tablet??t.desktop??{},mobile:t.mobile??t.tablet??t.desktop??{}}),d},splitStyle=(e,t={})=>{let o=e.map(e=>makeStyle.makeStyleKey(e)).flat(),r=Object.keys(t).filter(e=>o.includes(e)),a=r.reduce((e,o)=>({...e,[o]:t[o]}),{}),s=Object.keys(t).filter(e=>!r.includes(e)).reduce((e,o)=>({...e,[o]:t[o]}),{});return[a,s]},filterAttrInStyle=(e,t)=>{if(!e||!t)return{};let o={...e};return Object.entries(o).forEach(([e])=>{t.includes(e)||delete o[e]}),o},removeAttrInStyle=(e,t)=>{if(!e||!t)return{};let o={...e};return Object.entries(o).forEach(([e])=>{t.includes(e)&&delete o[e]}),o},getCornerStyle=e=>composeAdvanceStyle({rounded:e?.rounded}),removePaddingYInStyle=e=>{let t=["--pt","--pt-tablet","--pt-mobile","--pb","--pb-tablet","--pb-mobile"];return removeAttrInStyle(e,t)};exports.composeAdvanceStyle=composeAdvanceStyle,exports.composeAdvanceStyleForPostPurchase=composeAdvanceStyleForPostPurchase,exports.convertBoxShadowV1ToV2=convertBoxShadowV1ToV2,exports.filterAttrInStyle=filterAttrInStyle,exports.getCornerStyle=getCornerStyle,exports.removeAttrInStyle=removeAttrInStyle,exports.removePaddingYInStyle=removePaddingYInStyle,exports.splitStyle=splitStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function composeClasses(s){return s?s.split(" ").reduce((s,e)=>(s[e]=!0,s),{}):{}}exports.composeClasses=composeClasses;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const DIALOG="Dialog";exports.DIALOG="Dialog";
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const stateMapping = {
|
|
4
|
-
normal: '',
|
|
5
|
-
hover: '-hvr',
|
|
6
|
-
focus: '-focus'
|
|
7
|
-
};
|
|
8
|
-
const devicesMapping = {
|
|
9
|
-
desktop: '',
|
|
10
|
-
tablet: '-tablet',
|
|
11
|
-
mobile: '-mobile'
|
|
12
|
-
};
|
|
13
|
-
const layoutComponent = [
|
|
14
|
-
'Row',
|
|
15
|
-
'Section',
|
|
16
|
-
'Product',
|
|
17
|
-
'HeroBanner',
|
|
18
|
-
'CollectionBanner'
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
exports.devicesMapping = devicesMapping;
|
|
22
|
-
exports.layoutComponent = layoutComponent;
|
|
23
|
-
exports.stateMapping = stateMapping;
|
|
1
|
+
"use strict";const stateMapping={normal:"",hover:"-hvr",focus:"-focus"},devicesMapping={desktop:"",tablet:"-tablet",mobile:"-mobile"},layoutComponent=["Row","Section","Product","HeroBanner","CollectionBanner"];exports.devicesMapping=devicesMapping,exports.layoutComponent=layoutComponent,exports.stateMapping=stateMapping;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const isLocalEnv = process.env.NEXT_CONVERT_ENV === 'local';
|
|
4
|
-
const baseAssetURL = process.env.GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
5
|
-
|
|
6
|
-
exports.baseAssetURL = baseAssetURL;
|
|
7
|
-
exports.isLocalEnv = isLocalEnv;
|
|
1
|
+
"use strict";const isLocalEnv="local"===process.env.NEXT_CONVERT_ENV,baseAssetURL=process.env.GP_BASE_ASSET_URL||"https://assets.gemcommerce.xyz";exports.baseAssetURL=baseAssetURL,exports.isLocalEnv=isLocalEnv;
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const convertHTML = (str)=>{
|
|
4
|
-
const symbols = {
|
|
5
|
-
'&': '&',
|
|
6
|
-
'<': '<',
|
|
7
|
-
'>': '>',
|
|
8
|
-
' ': ' '
|
|
9
|
-
};
|
|
10
|
-
let newStr = str;
|
|
11
|
-
for(const symbol in symbols){
|
|
12
|
-
if (str.indexOf(symbol) >= 0) {
|
|
13
|
-
newStr = newStr.replaceAll(symbol, symbols[symbol]);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return newStr;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
exports.convertHTML = convertHTML;
|
|
1
|
+
"use strict";const convertHTML=t=>{let e={"&":"&","<":"<",">":">"," ":" "},r=t;for(let n in e)t.indexOf(n)>=0&&(r=r.replaceAll(n,e[n]));return r};exports.convertHTML=convertHTML;
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const validateEmail = (email)=>{
|
|
6
|
-
const emailRegex = new RegExp(/^(?:[^<>()[\]\\.,;:\s@"]+(?:\.[^<>()[\]\\.,;:\s@"]+)*|".+")@(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]|(?:[a-zA-Z\-\d]+\.)+[a-zA-Z]{2,})$/);
|
|
7
|
-
return emailRegex.test(email);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
exports.default = validateEmail;
|
|
11
|
-
exports.validateEmail = validateEmail;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validateEmail=e=>{let t=new RegExp(/^(?:[^<>()[\]\\.,;:\s@"]+(?:\.[^<>()[\]\\.,;:\s@"]+)*|".+")@(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]|(?:[a-zA-Z\-\d]+\.)+[a-zA-Z]{2,})$/);return t.test(e)};exports.default=validateEmail,exports.validateEmail=validateEmail;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function filterTruthyStyles(t){return Object.fromEntries(Object.entries(t||{}).filter(([,t])=>!!t))}const filterHoverVariables=t=>Object.fromEntries(Object.entries(t||{}).filter(([t])=>!t.startsWith("--hvr")));exports.filterHoverVariables=filterHoverVariables,exports.filterTruthyStyles=filterTruthyStyles;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
'use
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var ComponentToolbarPreview = require('../components/ComponentToolbarPreview.js');
|
|
7
|
-
|
|
8
|
-
const filterToolbarPreview = (children, keep = false)=>{
|
|
9
|
-
const arrChild = react.Children.toArray(children);
|
|
10
|
-
return arrChild.filter((child)=>!keep ? child?.type != ComponentToolbarPreview.default : child?.type == ComponentToolbarPreview.default);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.default = filterToolbarPreview;
|
|
14
|
-
exports.filterToolbarPreview = filterToolbarPreview;
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var react=require("react"),ComponentToolbarPreview=require("../components/ComponentToolbarPreview.js");const filterToolbarPreview=(e,r=!1)=>{let o=react.Children.toArray(e);return o.filter(e=>r?e?.type==ComponentToolbarPreview.default:e?.type!=ComponentToolbarPreview.default)};exports.default=filterToolbarPreview,exports.filterToolbarPreview=filterToolbarPreview;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The `flattenConnection` utility transforms a connection object from the Storefront API (for example, [Product-related connections](api/storefront/reference/products/product#connections)) into a flat array of nodes.
|
|
5
|
-
*/ const flattenConnection = (connection)=>{
|
|
6
|
-
return connection?.edges?.map((edge)=>edge.node) ?? [];
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
exports.flattenConnection = flattenConnection;
|
|
1
|
+
"use strict";const flattenConnection=n=>n?.edges?.map(n=>n.node)??[];exports.flattenConnection=flattenConnection;
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const getResponsiveValue = (input, k)=>{
|
|
4
|
-
if (!k) return {};
|
|
5
|
-
return {
|
|
6
|
-
desktop: input?.desktop?.[k],
|
|
7
|
-
tablet: input?.tablet?.[k],
|
|
8
|
-
mobile: input?.mobile?.[k]
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
const getResponsiveStateValue = (k, input)=>{
|
|
12
|
-
return {
|
|
13
|
-
desktop: input?.desktop?.[k],
|
|
14
|
-
tablet: input?.tablet?.[k],
|
|
15
|
-
mobile: input?.mobile?.[k]
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
const getResponsiveValueByScreen = (value, breakpoint, defaultValue)=>{
|
|
19
|
-
switch(breakpoint){
|
|
20
|
-
case 'tablet':
|
|
21
|
-
return value?.tablet ?? value?.desktop ?? defaultValue;
|
|
22
|
-
case 'mobile':
|
|
23
|
-
return value?.mobile ?? value?.tablet ?? value?.desktop ?? defaultValue;
|
|
24
|
-
default:
|
|
25
|
-
return value?.desktop ?? defaultValue;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const isColumnDirectionExist = (layout, breakpoint)=>{
|
|
29
|
-
if (breakpoint === 'desktop' || breakpoint === 'tablet') return false;
|
|
30
|
-
return layout?.[breakpoint]?.cols?.length !== layout?.desktop?.cols?.length;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
exports.getResponsiveStateValue = getResponsiveStateValue;
|
|
34
|
-
exports.getResponsiveValue = getResponsiveValue;
|
|
35
|
-
exports.getResponsiveValueByScreen = getResponsiveValueByScreen;
|
|
36
|
-
exports.isColumnDirectionExist = isColumnDirectionExist;
|
|
1
|
+
"use strict";const getResponsiveValue=(e,t)=>t?{desktop:e?.desktop?.[t],tablet:e?.tablet?.[t],mobile:e?.mobile?.[t]}:{},getResponsiveStateValue=(e,t)=>({desktop:t?.desktop?.[e],tablet:t?.tablet?.[e],mobile:t?.mobile?.[e]}),getResponsiveValueByScreen=(e,t,s)=>{switch(t){case"tablet":return e?.tablet??e?.desktop??s;case"mobile":return e?.mobile??e?.tablet??e?.desktop??s;default:return e?.desktop??s}},isColumnDirectionExist=(e,t)=>"desktop"!==t&&"tablet"!==t&&e?.[t]?.cols?.length!==e?.desktop?.cols?.length;exports.getResponsiveStateValue=getResponsiveStateValue,exports.getResponsiveValue=getResponsiveValue,exports.getResponsiveValueByScreen=getResponsiveValueByScreen,exports.isColumnDirectionExist=isColumnDirectionExist;
|
|
@@ -1,92 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const globalSortNameMapping = {
|
|
4
|
-
'typography-heading-1-fontFamily': 'h1-ff',
|
|
5
|
-
'typography-heading-1-fontSize': 'h1-size',
|
|
6
|
-
'typography-heading-1-fontWeight': 'h1-weight',
|
|
7
|
-
'typography-heading-1-lineHeight': 'h1-lh',
|
|
8
|
-
'typography-heading-1-letterSpacing': 'h1-ls',
|
|
9
|
-
'typography-heading-1-fontStyle': 'h1-fs',
|
|
10
|
-
'typography-heading-2-fontFamily': 'h2-ff',
|
|
11
|
-
'typography-heading-2-fontSize': 'h2-size',
|
|
12
|
-
'typography-heading-2-fontWeight': 'h2-weight',
|
|
13
|
-
'typography-heading-2-lineHeight': 'h2-lh',
|
|
14
|
-
'typography-heading-2-letterSpacing': 'h2-ls',
|
|
15
|
-
'typography-heading-2-fontStyle': 'h2-fs',
|
|
16
|
-
'typography-heading-3-fontFamily': 'h3-ff',
|
|
17
|
-
'typography-heading-3-fontSize': 'h3-size',
|
|
18
|
-
'typography-heading-3-fontWeight': 'h3-weight',
|
|
19
|
-
'typography-heading-3-lineHeight': 'h3-lh',
|
|
20
|
-
'typography-heading-3-letterSpacing': 'h3-ls',
|
|
21
|
-
'typography-heading-3-fontStyle': 'h3-fs',
|
|
22
|
-
'typography-subheading-1-fontFamily': 'sh1-ff',
|
|
23
|
-
'typography-subheading-1-fontSize': 'sh1-size',
|
|
24
|
-
'typography-subheading-1-fontWeight': 'sh1-weight',
|
|
25
|
-
'typography-subheading-1-lineHeight': 'sh1-lh',
|
|
26
|
-
'typography-subheading-1-letterSpacing': 'sh1-ls',
|
|
27
|
-
'typography-subheading-1-fontStyle': 'sh1-fs',
|
|
28
|
-
'typography-subheading-2-fontFamily': 'sh2-ff',
|
|
29
|
-
'typography-subheading-2-fontSize': 'sh2-size',
|
|
30
|
-
'typography-subheading-2-fontWeight': 'sh2-weight',
|
|
31
|
-
'typography-subheading-2-lineHeight': 'sh2-lh',
|
|
32
|
-
'typography-subheading-2-letterSpacing': 'sh2-ls',
|
|
33
|
-
'typography-subheading-2-fontStyle': 'sh2-fs',
|
|
34
|
-
'typography-subheading-3-fontFamily': 'sh3-ff',
|
|
35
|
-
'typography-subheading-3-fontSize': 'sh3-size',
|
|
36
|
-
'typography-subheading-3-fontWeight': 'sh3-weight',
|
|
37
|
-
'typography-subheading-3-lineHeight': 'sh3-lh',
|
|
38
|
-
'typography-subheading-3-letterSpacing': 'sh3-ls',
|
|
39
|
-
'typography-subheading-3-fontStyle': 'sh3-fs',
|
|
40
|
-
'typography-paragraph-1-fontFamily': 'p1-ff',
|
|
41
|
-
'typography-paragraph-1-fontSize': 'p1-size',
|
|
42
|
-
'typography-paragraph-1-fontWeight': 'p1-weight',
|
|
43
|
-
'typography-paragraph-1-lineHeight': 'p1-lh',
|
|
44
|
-
'typography-paragraph-1-letterSpacing': 'p1-ls',
|
|
45
|
-
'typography-paragraph-1-fontStyle': 'p1-fs',
|
|
46
|
-
'typography-paragraph-2-fontFamily': 'p2-ff',
|
|
47
|
-
'typography-paragraph-2-fontSize': 'p2-size',
|
|
48
|
-
'typography-paragraph-2-fontWeight': 'p2-weight',
|
|
49
|
-
'typography-paragraph-2-lineHeight': 'p2-lh',
|
|
50
|
-
'typography-paragraph-2-letterSpacing': 'p2-ls',
|
|
51
|
-
'typography-paragraph-2-fontStyle': 'p2-fs',
|
|
52
|
-
'typography-paragraph-3-fontFamily': 'p3-ff',
|
|
53
|
-
'typography-paragraph-3-fontSize': 'p3-size',
|
|
54
|
-
'typography-paragraph-3-fontWeight': 'p3-weight',
|
|
55
|
-
'typography-paragraph-3-lineHeight': 'p3-lh',
|
|
56
|
-
'typography-paragraph-3-letterSpacing': 'p3-ls',
|
|
57
|
-
'typography-paragraph-3-fontStyle': 'p3-fs',
|
|
58
|
-
'color-brand': 'c-brand',
|
|
59
|
-
'color-highlight': 'c-highlight',
|
|
60
|
-
'color-text-1': 'c-text-1',
|
|
61
|
-
'color-text-2': 'c-text-2',
|
|
62
|
-
'color-text-3': 'c-text-3',
|
|
63
|
-
'color-bg-1': 'c-bg-1',
|
|
64
|
-
'color-bg-2': 'c-bg-2',
|
|
65
|
-
'color-bg-3': 'c-bg-3',
|
|
66
|
-
'color-line-1': 'c-line-1',
|
|
67
|
-
'color-line-2': 'c-line-2',
|
|
68
|
-
'color-line-3': 'c-line-3',
|
|
69
|
-
'color-success': 'c-success',
|
|
70
|
-
'color-info': 'c-info',
|
|
71
|
-
'color-warning': 'c-warning',
|
|
72
|
-
'color-error': 'c-error',
|
|
73
|
-
'spacing-xxs': 's-xxs',
|
|
74
|
-
'spacing-xs': 's-xs',
|
|
75
|
-
'spacing-s': 's-s',
|
|
76
|
-
'spacing-m': 's-m',
|
|
77
|
-
'spacing-l': 's-l',
|
|
78
|
-
'spacing-xl': 's-xl',
|
|
79
|
-
'spacing-2xl': 's-2xl',
|
|
80
|
-
'spacing-3xl': 's-3xl',
|
|
81
|
-
'spacing-4xl': 's-4xl',
|
|
82
|
-
'spacing-5xl': 's-5xl',
|
|
83
|
-
'container-width': 'ct-w',
|
|
84
|
-
'container-padding': 'ct-p',
|
|
85
|
-
'text-shadow': 'ts',
|
|
86
|
-
'box-shadow': 'shadow'
|
|
87
|
-
};
|
|
88
|
-
function getShortName(name) {
|
|
89
|
-
return globalSortNameMapping[name] || name;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
exports.getShortName = getShortName;
|
|
1
|
+
"use strict";const globalSortNameMapping={"typography-heading-1-fontFamily":"h1-ff","typography-heading-1-fontSize":"h1-size","typography-heading-1-fontWeight":"h1-weight","typography-heading-1-lineHeight":"h1-lh","typography-heading-1-letterSpacing":"h1-ls","typography-heading-1-fontStyle":"h1-fs","typography-heading-2-fontFamily":"h2-ff","typography-heading-2-fontSize":"h2-size","typography-heading-2-fontWeight":"h2-weight","typography-heading-2-lineHeight":"h2-lh","typography-heading-2-letterSpacing":"h2-ls","typography-heading-2-fontStyle":"h2-fs","typography-heading-3-fontFamily":"h3-ff","typography-heading-3-fontSize":"h3-size","typography-heading-3-fontWeight":"h3-weight","typography-heading-3-lineHeight":"h3-lh","typography-heading-3-letterSpacing":"h3-ls","typography-heading-3-fontStyle":"h3-fs","typography-subheading-1-fontFamily":"sh1-ff","typography-subheading-1-fontSize":"sh1-size","typography-subheading-1-fontWeight":"sh1-weight","typography-subheading-1-lineHeight":"sh1-lh","typography-subheading-1-letterSpacing":"sh1-ls","typography-subheading-1-fontStyle":"sh1-fs","typography-subheading-2-fontFamily":"sh2-ff","typography-subheading-2-fontSize":"sh2-size","typography-subheading-2-fontWeight":"sh2-weight","typography-subheading-2-lineHeight":"sh2-lh","typography-subheading-2-letterSpacing":"sh2-ls","typography-subheading-2-fontStyle":"sh2-fs","typography-subheading-3-fontFamily":"sh3-ff","typography-subheading-3-fontSize":"sh3-size","typography-subheading-3-fontWeight":"sh3-weight","typography-subheading-3-lineHeight":"sh3-lh","typography-subheading-3-letterSpacing":"sh3-ls","typography-subheading-3-fontStyle":"sh3-fs","typography-paragraph-1-fontFamily":"p1-ff","typography-paragraph-1-fontSize":"p1-size","typography-paragraph-1-fontWeight":"p1-weight","typography-paragraph-1-lineHeight":"p1-lh","typography-paragraph-1-letterSpacing":"p1-ls","typography-paragraph-1-fontStyle":"p1-fs","typography-paragraph-2-fontFamily":"p2-ff","typography-paragraph-2-fontSize":"p2-size","typography-paragraph-2-fontWeight":"p2-weight","typography-paragraph-2-lineHeight":"p2-lh","typography-paragraph-2-letterSpacing":"p2-ls","typography-paragraph-2-fontStyle":"p2-fs","typography-paragraph-3-fontFamily":"p3-ff","typography-paragraph-3-fontSize":"p3-size","typography-paragraph-3-fontWeight":"p3-weight","typography-paragraph-3-lineHeight":"p3-lh","typography-paragraph-3-letterSpacing":"p3-ls","typography-paragraph-3-fontStyle":"p3-fs","color-brand":"c-brand","color-highlight":"c-highlight","color-text-1":"c-text-1","color-text-2":"c-text-2","color-text-3":"c-text-3","color-bg-1":"c-bg-1","color-bg-2":"c-bg-2","color-bg-3":"c-bg-3","color-line-1":"c-line-1","color-line-2":"c-line-2","color-line-3":"c-line-3","color-success":"c-success","color-info":"c-info","color-warning":"c-warning","color-error":"c-error","spacing-xxs":"s-xxs","spacing-xs":"s-xs","spacing-s":"s-s","spacing-m":"s-m","spacing-l":"s-l","spacing-xl":"s-xl","spacing-2xl":"s-2xl","spacing-3xl":"s-3xl","spacing-4xl":"s-4xl","spacing-5xl":"s-5xl","container-width":"ct-w","container-padding":"ct-p","text-shadow":"ts","box-shadow":"shadow"};function getShortName(h){return globalSortNameMapping[h]||h}exports.getShortName=getShortName;
|