@gem-sdk/core 2.0.0-dev.896 → 2.0.0
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/AddOn.js +18 -1
- package/dist/cjs/components/ComponentAnimation.js +17 -0
- package/dist/cjs/components/ComponentToolbarPreview.js +752 -1
- package/dist/cjs/components/ComponentWrapper.js +61 -1
- package/dist/cjs/components/ComponentWrapperPreview.js +213 -1
- package/dist/cjs/components/Empty.js +7 -1
- package/dist/cjs/components/InteractionSuffix.js +42 -0
- package/dist/cjs/components/Render.js +75 -1
- package/dist/cjs/components/Render.liquid.js +313 -17
- package/dist/cjs/components/RenderBlock.js +54 -1
- package/dist/cjs/components/RenderCustomCode.js +59 -3
- package/dist/cjs/components/RenderPreview.js +67 -1
- package/dist/cjs/components/RenderSection.js +23 -1
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +252 -1
- package/dist/cjs/components/ai-generator/AIGenContentLoading.js +85 -1
- package/dist/cjs/components/ai-generator/components/PickProduct.js +220 -1
- package/dist/cjs/components/ai-generator/components/ToneAndVoice.js +77 -1
- package/dist/cjs/components/ai-generator/hooks/useCheckingProductInside.js +47 -0
- package/dist/cjs/components/ai-generator/hooks/useFlipPopup.js +110 -0
- package/dist/cjs/components/ai-generator/hooks/useGettingGenerateRequest.js +37 -1
- package/dist/cjs/components/ai-generator/hooks/useListenEventGenerate.js +70 -1
- package/dist/cjs/components/ai-generator/icons/AIIcon.js +67 -1
- package/dist/cjs/components/ai-generator/icons/CloseIcon.js +19 -1
- package/dist/cjs/components/ai-generator/icons/DropdownIcon.js +37 -1
- package/dist/cjs/components/ai-generator/icons/SearchIcon.js +21 -1
- package/dist/cjs/components/ai-generator/icons/ShowMoreIcon.js +21 -1
- package/dist/cjs/components/ai-generator/icons/UpgradeIcon.js +27 -0
- package/dist/cjs/components/ai-generator/icons/WarningIcon.js +31 -0
- package/dist/cjs/components/constant.js +83 -1
- package/dist/cjs/components/resize/Resize.js +16 -1
- package/dist/cjs/components/resize/Spacing.js +260 -1
- package/dist/cjs/components/src/product/helpers/variant-presets.js +56 -1
- package/dist/cjs/components/theme-section/CreateThemeSection.js +123 -1
- package/dist/cjs/components/theme-section/ThemeSectionStatus.js +45 -1
- package/dist/cjs/components/theme-section/ThemeSectionTooltip.js +126 -1
- package/dist/cjs/components/toolbar/Tooltip.js +28 -1
- package/dist/cjs/contexts/AddonContext.js +36 -1
- package/dist/cjs/contexts/ArticleContext.js +39 -1
- package/dist/cjs/contexts/ArticleListContext.js +31 -1
- package/dist/cjs/contexts/BuilderComponent.js +34 -1
- package/dist/cjs/contexts/BuilderContext.js +39 -1
- package/dist/cjs/contexts/BuilderPreviewContext.js +486 -1
- package/dist/cjs/contexts/CartLineContext.js +29 -1
- package/dist/cjs/contexts/CollectionContext.js +38 -1
- package/dist/cjs/contexts/ModalContext.js +47 -1
- package/dist/cjs/contexts/PageContext.js +104 -1
- package/dist/cjs/contexts/ProductContext.js +177 -1
- package/dist/cjs/contexts/ProductListContext.js +32 -1
- package/dist/cjs/contexts/SectionContext.js +53 -1
- package/dist/cjs/contexts/ShopContext.js +107 -1
- package/dist/cjs/graphql/fragments/analytic.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection-detail.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection-product.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection.generated.js +6 -2
- package/dist/cjs/graphql/fragments/custom-code.generated.js +6 -2
- package/dist/cjs/graphql/fragments/custom-font.generated.js +6 -2
- package/dist/cjs/graphql/fragments/data-seo.generated.js +6 -2
- package/dist/cjs/graphql/fragments/media.generated.js +6 -2
- package/dist/cjs/graphql/fragments/preview-theme-page.generated.js +39 -0
- package/dist/cjs/graphql/fragments/product-little.generated.js +7 -2
- package/dist/cjs/graphql/fragments/product-option-value.generated.js +6 -2
- package/dist/cjs/graphql/fragments/product-option.generated.js +6 -2
- package/dist/cjs/graphql/fragments/product.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-custom-section.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-page-section.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +10 -28
- package/dist/cjs/graphql/fragments/published-theme-style.generated.js +6 -2
- package/dist/cjs/graphql/fragments/selected-option.generated.js +6 -2
- package/dist/cjs/graphql/fragments/variant.generated.js +6 -2
- package/dist/cjs/graphql/mutations/page-view-up.generated.js +8 -4
- package/dist/cjs/graphql/queries/articles.generated.js +61 -0
- package/dist/cjs/graphql/queries/blogs.generated.js +69 -0
- package/dist/cjs/graphql/queries/collection-detail-filter.generated.js +16 -2
- package/dist/cjs/graphql/queries/collection.generated.js +14 -2
- package/dist/cjs/graphql/queries/collections.generated.js +9 -2
- package/dist/cjs/graphql/queries/preview-page.generated.js +16 -8
- package/dist/cjs/graphql/queries/product-little-detail.generated.js +11 -2
- package/dist/cjs/graphql/queries/product-medias.generated.js +8 -2
- package/dist/cjs/graphql/queries/product-value-label.generated.js +6 -2
- package/dist/cjs/graphql/queries/product-variants.generated.js +10 -2
- package/dist/cjs/graphql/queries/products.generated.js +17 -3
- package/dist/cjs/graphql/queries/published-shop-metas.js +15 -0
- package/dist/cjs/graphql/queries/published-theme-pages.generated.js +15 -2
- package/dist/cjs/graphql/queries/store-property.generated.js +6 -2
- package/dist/cjs/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +6 -2
- package/dist/cjs/graphql-app-api/queries/LibraryTemplate.generated.js +6 -2
- package/dist/cjs/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +6 -2
- package/dist/cjs/graphql-app-api/queries/ShopLibraryPage.generated.js +17 -0
- package/dist/cjs/graphql-app-api/queries/ThemePage.generated.js +6 -2
- package/dist/cjs/helpers/GlobalEvent.js +19 -1
- package/dist/cjs/helpers/align.js +19 -0
- package/dist/cjs/helpers/animations.js +222 -1
- package/dist/cjs/helpers/background.js +235 -1
- package/dist/cjs/helpers/borders.js +198 -4
- package/dist/cjs/helpers/carousel.js +55 -1
- package/dist/cjs/helpers/clone-deep.js +5 -1
- package/dist/cjs/helpers/cls.js +16 -1
- package/dist/cjs/helpers/colors.js +184 -1
- package/dist/cjs/helpers/compose-advance-style.js +327 -1
- package/dist/cjs/helpers/constant.js +23 -1
- package/dist/cjs/helpers/convert.js +7 -1
- package/dist/cjs/helpers/covert-entities-html.js +19 -1
- package/dist/cjs/helpers/css-variable.js +7 -1
- package/dist/cjs/helpers/email.js +11 -1
- package/dist/cjs/helpers/filter-toolbar-preview.js +14 -1
- package/dist/cjs/helpers/flatten-connection.js +9 -1
- package/dist/cjs/helpers/get-resonsive-value.js +36 -1
- package/dist/cjs/helpers/get-shortname.js +92 -1
- package/dist/cjs/helpers/icon-list.js +61 -1
- package/dist/cjs/helpers/interaction/index.js +134 -0
- package/dist/cjs/helpers/is-browser.js +9 -1
- package/dist/cjs/helpers/is-defined.js +7 -1
- package/dist/cjs/helpers/is-empty-children.js +15 -1
- package/dist/cjs/helpers/is-safari.js +9 -1
- package/dist/cjs/helpers/layout.js +59 -1
- package/dist/cjs/helpers/load-script.js +31 -1
- package/dist/cjs/helpers/loop-component.js +16 -0
- package/dist/cjs/helpers/make-style.js +163 -1
- package/dist/cjs/helpers/normalize-builder-data.js +23 -1
- package/dist/cjs/helpers/pascal-to-kebab-case.js +7 -0
- package/dist/cjs/helpers/prefetch-queries.js +78 -1
- package/dist/cjs/helpers/product.js +48 -1
- package/dist/cjs/helpers/queries/get-collection.js +226 -1
- package/dist/cjs/helpers/queries/get-collections.js +21 -1
- package/dist/cjs/helpers/queries/get-product-by-slug.js +125 -1
- package/dist/cjs/helpers/queries/get-product.js +154 -1
- package/dist/cjs/helpers/queries/get-products.js +214 -1
- package/dist/cjs/helpers/query.js +29 -1
- package/dist/cjs/helpers/radius.js +140 -6
- package/dist/cjs/helpers/render.js +78 -1
- package/dist/cjs/helpers/shadow.js +69 -1
- package/dist/cjs/helpers/size.js +206 -4
- package/dist/cjs/helpers/spacing.js +43 -1
- package/dist/cjs/helpers/third-party/addAppBlockId.js +20 -0
- package/dist/cjs/helpers/third-party/appConfig.js +234 -0
- package/dist/cjs/helpers/third-party/appSetting.js +661 -0
- package/dist/cjs/helpers/third-party/composeAppBlockId.js +11 -0
- package/dist/cjs/helpers/third-party/constant.js +43 -0
- package/dist/cjs/helpers/third-party/generateAppBlockConfigs.js +34 -0
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +47 -0
- package/dist/cjs/helpers/third-party/getAppBlockType.js +12 -0
- package/dist/cjs/helpers/third-party/getAppBlocks.js +30 -0
- package/dist/cjs/helpers/third-party/mergeBlock.js +19 -0
- package/dist/cjs/helpers/third-party/mergeBlockOrder.js +47 -0
- package/dist/cjs/helpers/third-party/removeGPAppItems.js +18 -0
- package/dist/cjs/helpers/tracking/fpixel.js +28 -1
- package/dist/cjs/helpers/tracking/gtag.js +93 -1
- package/dist/cjs/helpers/tracking/tiktokpixel.js +17 -1
- package/dist/cjs/helpers/typography.js +160 -17
- package/dist/cjs/helpers/variant.js +11 -1
- package/dist/cjs/hooks/animation/useAnimationActions.js +39 -1
- package/dist/cjs/hooks/animation/useAnimationConfig.js +30 -1
- package/dist/cjs/hooks/animation/useAnimationPreview.js +31 -1
- package/dist/cjs/hooks/animation/useAnimationTarget.js +122 -1
- package/dist/cjs/hooks/animation/useApplyAnimation.js +89 -1
- package/dist/cjs/hooks/articles/useArticlesQuery.js +33 -1
- package/dist/cjs/hooks/cart/use-add-to-cart.js +20 -1
- package/dist/cjs/hooks/cart/use-cart-data.js +28 -1
- package/dist/cjs/hooks/cart/use-cart-discount-codes-update.js +20 -1
- package/dist/cjs/hooks/cart/use-cart-note-update.js +20 -1
- package/dist/cjs/hooks/cart/use-create-cart.js +22 -1
- package/dist/cjs/hooks/cart/use-remove-cart-item.js +20 -1
- package/dist/cjs/hooks/cart/use-update-cart-item.js +20 -1
- package/dist/cjs/hooks/shop/use-collection-query.js +22 -1
- package/dist/cjs/hooks/shop/use-collections-query.js +17 -1
- package/dist/cjs/hooks/shop/use-product-query.js +22 -1
- package/dist/cjs/hooks/shop/use-products-query.js +63 -1
- package/dist/cjs/hooks/shop.js +126 -1
- package/dist/cjs/hooks/use-current-device.js +30 -1
- package/dist/cjs/hooks/use-lazy-video.js +15 -1
- package/dist/cjs/hooks/useAnimations.js +29 -1
- package/dist/cjs/hooks/useCartId.js +44 -1
- package/dist/cjs/hooks/useCartLine.js +11 -1
- package/dist/cjs/hooks/useCartUI.js +48 -1
- package/dist/cjs/hooks/useCollection.js +9 -1
- package/dist/cjs/hooks/useFetchHandle.js +13 -1
- package/dist/cjs/hooks/useFormatMoney.js +75 -1
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +128 -1
- package/dist/cjs/hooks/useInteraction.js +19 -0
- package/dist/cjs/hooks/useIsomorphicLayoutEffect.js +10 -1
- package/dist/cjs/hooks/useLoadScript.js +32 -1
- package/dist/cjs/hooks/useMoney.js +84 -1
- package/dist/cjs/hooks/usePrevious.js +19 -1
- package/dist/cjs/hooks/useProduct.js +245 -1
- package/dist/cjs/hooks/useProductList.js +21 -1
- package/dist/cjs/hooks/useSuspenseFetch.js +27 -1
- package/dist/cjs/hooks/useSwatchesOptions.js +41 -1
- package/dist/cjs/hooks/useToolbarPostPurchase.js +89 -1
- package/dist/cjs/index.js +416 -1
- package/dist/cjs/types/animations.js +49 -1
- package/dist/cjs/types/appAPI.js +2 -1
- package/dist/cjs/types/custom.js +52 -0
- package/dist/cjs/types/global-style.js +15 -1
- package/dist/cjs/types/shop.js +2 -1
- package/dist/cjs/web-components/src/helpers/styles/constant.js +9 -1
- package/dist/esm/components/AddOn.js +14 -1
- package/dist/esm/components/ComponentAnimation.js +13 -0
- package/dist/esm/components/ComponentToolbarPreview.js +748 -1
- package/dist/esm/components/ComponentWrapper.js +57 -1
- package/dist/esm/components/ComponentWrapperPreview.js +209 -1
- package/dist/esm/components/Empty.js +3 -1
- package/dist/esm/components/InteractionSuffix.js +40 -0
- package/dist/esm/components/Render.js +71 -1
- package/dist/esm/components/Render.liquid.js +307 -17
- package/dist/esm/components/RenderBlock.js +50 -1
- package/dist/esm/components/RenderCustomCode.js +55 -3
- package/dist/esm/components/RenderPreview.js +63 -1
- package/dist/esm/components/RenderSection.js +19 -1
- package/dist/esm/components/ai-generator/AIContentGenerator.js +250 -1
- package/dist/esm/components/ai-generator/AIGenContentLoading.js +83 -1
- package/dist/esm/components/ai-generator/components/PickProduct.js +218 -1
- package/dist/esm/components/ai-generator/components/ToneAndVoice.js +75 -1
- package/dist/esm/components/ai-generator/hooks/useCheckingProductInside.js +45 -0
- package/dist/esm/components/ai-generator/hooks/useFlipPopup.js +108 -0
- package/dist/esm/components/ai-generator/hooks/useGettingGenerateRequest.js +35 -1
- package/dist/esm/components/ai-generator/hooks/useListenEventGenerate.js +68 -1
- package/dist/esm/components/ai-generator/icons/AIIcon.js +65 -1
- package/dist/esm/components/ai-generator/icons/CloseIcon.js +17 -1
- package/dist/esm/components/ai-generator/icons/DropdownIcon.js +34 -1
- package/dist/esm/components/ai-generator/icons/SearchIcon.js +19 -1
- package/dist/esm/components/ai-generator/icons/ShowMoreIcon.js +19 -1
- package/dist/esm/components/ai-generator/icons/UpgradeIcon.js +25 -0
- package/dist/esm/components/ai-generator/icons/WarningIcon.js +29 -0
- package/dist/esm/components/constant.js +76 -1
- package/dist/esm/components/resize/Resize.js +12 -1
- package/dist/esm/components/resize/Spacing.js +256 -1
- package/dist/esm/components/src/product/helpers/variant-presets.js +54 -1
- package/dist/esm/components/theme-section/CreateThemeSection.js +121 -1
- package/dist/esm/components/theme-section/ThemeSectionStatus.js +43 -1
- package/dist/esm/components/theme-section/ThemeSectionTooltip.js +124 -1
- package/dist/esm/components/toolbar/Tooltip.js +24 -1
- package/dist/esm/contexts/AddonContext.js +32 -1
- package/dist/esm/contexts/ArticleContext.js +36 -1
- package/dist/esm/contexts/ArticleListContext.js +27 -1
- package/dist/esm/contexts/BuilderComponent.js +31 -1
- package/dist/esm/contexts/BuilderContext.js +36 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +483 -1
- package/dist/esm/contexts/CartLineContext.js +26 -1
- package/dist/esm/contexts/CollectionContext.js +35 -1
- package/dist/esm/contexts/ModalContext.js +44 -1
- package/dist/esm/contexts/PageContext.js +101 -1
- package/dist/esm/contexts/ProductContext.js +174 -1
- package/dist/esm/contexts/ProductListContext.js +28 -1
- package/dist/esm/contexts/SectionContext.js +49 -1
- package/dist/esm/contexts/ShopContext.js +104 -1
- package/dist/esm/graphql/fragments/analytic.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection-detail.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection-product.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection.generated.js +4 -2
- package/dist/esm/graphql/fragments/custom-code.generated.js +4 -2
- package/dist/esm/graphql/fragments/custom-font.generated.js +4 -2
- package/dist/esm/graphql/fragments/data-seo.generated.js +4 -2
- package/dist/esm/graphql/fragments/media.generated.js +4 -2
- package/dist/esm/graphql/fragments/preview-theme-page.generated.js +37 -0
- package/dist/esm/graphql/fragments/product-little.generated.js +5 -2
- package/dist/esm/graphql/fragments/product-option-value.generated.js +4 -2
- package/dist/esm/graphql/fragments/product-option.generated.js +4 -2
- package/dist/esm/graphql/fragments/product.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-custom-section.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-page-section.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +8 -28
- package/dist/esm/graphql/fragments/published-theme-style.generated.js +4 -2
- package/dist/esm/graphql/fragments/selected-option.generated.js +4 -2
- package/dist/esm/graphql/fragments/variant.generated.js +4 -2
- package/dist/esm/graphql/mutations/page-view-up.generated.js +6 -4
- package/dist/esm/graphql/queries/articles.generated.js +59 -0
- package/dist/esm/graphql/queries/blogs.generated.js +67 -0
- package/dist/esm/graphql/queries/collection-detail-filter.generated.js +22 -10
- package/dist/esm/graphql/queries/collection.generated.js +18 -8
- package/dist/esm/graphql/queries/collections.generated.js +8 -3
- package/dist/esm/graphql/queries/preview-page.generated.js +16 -10
- package/dist/esm/graphql/queries/product-little-detail.generated.js +12 -5
- package/dist/esm/graphql/queries/product-medias.generated.js +6 -2
- package/dist/esm/graphql/queries/product-value-label.generated.js +4 -2
- package/dist/esm/graphql/queries/product-variants.generated.js +10 -4
- package/dist/esm/graphql/queries/products.generated.js +20 -9
- package/dist/esm/graphql/queries/published-shop-metas.js +13 -0
- package/dist/esm/graphql/queries/published-theme-pages.generated.js +20 -9
- package/dist/esm/graphql/queries/store-property.generated.js +4 -2
- package/dist/esm/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +4 -2
- package/dist/esm/graphql-app-api/queries/LibraryTemplate.generated.js +4 -2
- package/dist/esm/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +4 -2
- package/dist/esm/graphql-app-api/queries/ShopLibraryPage.generated.js +15 -0
- package/dist/esm/graphql-app-api/queries/ThemePage.generated.js +4 -2
- package/dist/esm/helpers/GlobalEvent.js +15 -1
- package/dist/esm/helpers/align.js +17 -0
- package/dist/esm/helpers/animations.js +220 -1
- package/dist/esm/helpers/background.js +226 -1
- package/dist/esm/helpers/borders.js +189 -4
- package/dist/esm/helpers/carousel.js +51 -1
- package/dist/esm/helpers/clone-deep.js +3 -1
- package/dist/esm/helpers/cls.js +14 -1
- package/dist/esm/helpers/colors.js +169 -1
- package/dist/esm/helpers/compose-advance-style.js +319 -1
- package/dist/esm/helpers/constant.js +19 -1
- package/dist/esm/helpers/convert.js +4 -1
- package/dist/esm/helpers/covert-entities-html.js +17 -1
- package/dist/esm/helpers/css-variable.js +5 -1
- package/dist/esm/helpers/email.js +6 -1
- package/dist/esm/helpers/filter-toolbar-preview.js +9 -1
- package/dist/esm/helpers/flatten-connection.js +7 -1
- package/dist/esm/helpers/get-resonsive-value.js +31 -1
- package/dist/esm/helpers/get-shortname.js +90 -1
- package/dist/esm/helpers/icon-list.js +58 -1
- package/dist/esm/helpers/interaction/index.js +132 -0
- package/dist/esm/helpers/is-browser.js +5 -1
- package/dist/esm/helpers/is-defined.js +5 -1
- package/dist/esm/helpers/is-empty-children.js +10 -1
- package/dist/esm/helpers/is-safari.js +5 -1
- package/dist/esm/helpers/layout.js +54 -1
- package/dist/esm/helpers/load-script.js +29 -1
- package/dist/esm/helpers/loop-component.js +14 -0
- package/dist/esm/helpers/make-style.js +149 -1
- package/dist/esm/helpers/normalize-builder-data.js +21 -1
- package/dist/esm/helpers/pascal-to-kebab-case.js +5 -0
- package/dist/esm/helpers/prefetch-queries.js +76 -1
- package/dist/esm/helpers/product.js +44 -1
- package/dist/esm/helpers/queries/get-collection.js +223 -1
- package/dist/esm/helpers/queries/get-collections.js +19 -1
- package/dist/esm/helpers/queries/get-product-by-slug.js +123 -1
- package/dist/esm/helpers/queries/get-product.js +150 -1
- package/dist/esm/helpers/queries/get-products.js +210 -1
- package/dist/esm/helpers/query.js +25 -1
- package/dist/esm/helpers/radius.js +132 -6
- package/dist/esm/helpers/render.js +70 -1
- package/dist/esm/helpers/shadow.js +63 -1
- package/dist/esm/helpers/size.js +192 -4
- package/dist/esm/helpers/spacing.js +40 -1
- package/dist/esm/helpers/third-party/addAppBlockId.js +18 -0
- package/dist/esm/helpers/third-party/appConfig.js +200 -0
- package/dist/esm/helpers/third-party/appSetting.js +658 -0
- package/dist/esm/helpers/third-party/composeAppBlockId.js +9 -0
- package/dist/esm/helpers/third-party/constant.js +40 -0
- package/dist/esm/helpers/third-party/generateAppBlockConfigs.js +32 -0
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +45 -0
- package/dist/esm/helpers/third-party/getAppBlockType.js +10 -0
- package/dist/esm/helpers/third-party/getAppBlocks.js +28 -0
- package/dist/esm/helpers/third-party/mergeBlock.js +17 -0
- package/dist/esm/helpers/third-party/mergeBlockOrder.js +45 -0
- package/dist/esm/helpers/third-party/removeGPAppItems.js +15 -0
- package/dist/esm/helpers/tracking/fpixel.js +24 -1
- package/dist/esm/helpers/tracking/gtag.js +87 -1
- package/dist/esm/helpers/tracking/tiktokpixel.js +15 -1
- package/dist/esm/helpers/typography.js +149 -17
- package/dist/esm/helpers/variant.js +9 -1
- package/dist/esm/hooks/animation/useAnimationActions.js +37 -1
- package/dist/esm/hooks/animation/useAnimationConfig.js +28 -1
- package/dist/esm/hooks/animation/useAnimationPreview.js +29 -1
- package/dist/esm/hooks/animation/useAnimationTarget.js +120 -1
- package/dist/esm/hooks/animation/useApplyAnimation.js +85 -1
- package/dist/esm/hooks/articles/useArticlesQuery.js +30 -1
- package/dist/esm/hooks/cart/use-add-to-cart.js +18 -1
- package/dist/esm/hooks/cart/use-cart-data.js +26 -1
- package/dist/esm/hooks/cart/use-cart-discount-codes-update.js +18 -1
- package/dist/esm/hooks/cart/use-cart-note-update.js +18 -1
- package/dist/esm/hooks/cart/use-create-cart.js +20 -1
- package/dist/esm/hooks/cart/use-remove-cart-item.js +18 -1
- package/dist/esm/hooks/cart/use-update-cart-item.js +18 -1
- package/dist/esm/hooks/shop/use-collection-query.js +20 -1
- package/dist/esm/hooks/shop/use-collections-query.js +15 -1
- package/dist/esm/hooks/shop/use-product-query.js +20 -1
- package/dist/esm/hooks/shop/use-products-query.js +59 -1
- package/dist/esm/hooks/shop.js +111 -1
- package/dist/esm/hooks/use-current-device.js +28 -1
- package/dist/esm/hooks/use-lazy-video.js +13 -1
- package/dist/esm/hooks/useAnimations.js +27 -1
- package/dist/esm/hooks/useCartId.js +40 -1
- package/dist/esm/hooks/useCartLine.js +7 -1
- package/dist/esm/hooks/useCartUI.js +44 -1
- package/dist/esm/hooks/useCollection.js +7 -1
- package/dist/esm/hooks/useFetchHandle.js +11 -1
- package/dist/esm/hooks/useFormatMoney.js +71 -1
- package/dist/esm/hooks/useInitialSwatchesOptions.js +124 -1
- package/dist/esm/hooks/useInteraction.js +17 -0
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js +6 -1
- package/dist/esm/hooks/useLoadScript.js +28 -1
- package/dist/esm/hooks/useMoney.js +80 -1
- package/dist/esm/hooks/usePrevious.js +17 -1
- package/dist/esm/hooks/useProduct.js +228 -1
- package/dist/esm/hooks/useProductList.js +16 -1
- package/dist/esm/hooks/useSuspenseFetch.js +23 -1
- package/dist/esm/hooks/useSwatchesOptions.js +37 -1
- package/dist/esm/hooks/useToolbarPostPurchase.js +87 -1
- package/dist/esm/index.js +117 -1
- package/dist/esm/types/animations.js +49 -1
- package/dist/esm/types/custom.js +52 -0
- package/dist/esm/types/global-style.js +12 -1
- package/dist/esm/web-components/src/helpers/styles/constant.js +7 -1
- package/dist/types/index.d.ts +23183 -17335
- package/package.json +5 -3
- package/dist/cjs/components/animation/AnimationWrapper.js +0 -1
- package/dist/cjs/hooks/animation/animations.js +0 -1
- package/dist/cjs/hooks/animation/useLivePageAnimation.js +0 -1
- package/dist/esm/components/animation/AnimationWrapper.js +0 -1
- package/dist/esm/hooks/animation/animations.js +0 -1
- package/dist/esm/hooks/animation/useLivePageAnimation.js +0 -1
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const RechargeSubscriptions = {
|
|
4
|
+
RechargeSubscriptions: {
|
|
5
|
+
'subscription-widget': {
|
|
6
|
+
product: '{{ product }}'
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const LoyaltyRewardsReferrals = {
|
|
11
|
+
BonLoyaltyRewardsReferrals: {
|
|
12
|
+
'loyalty-page-block': null,
|
|
13
|
+
'loyalty-page-earning-block': null,
|
|
14
|
+
'loyalty-page-header-block': null,
|
|
15
|
+
'loyalty-page-profile-block': null,
|
|
16
|
+
'loyalty-page-redeem-block': null,
|
|
17
|
+
'loyalty-page-referral-block': null,
|
|
18
|
+
'loyalty-page-tier-block': null,
|
|
19
|
+
'product-point-preview': null
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const SubifySubscriptions = {
|
|
23
|
+
SubifySubscriptionsApp: {
|
|
24
|
+
'app-block': {
|
|
25
|
+
product: '{{product}}',
|
|
26
|
+
use_app_block_wording: false,
|
|
27
|
+
widget_label: 'Purchase options',
|
|
28
|
+
one_time_purchase_text: 'One-Time Purchase',
|
|
29
|
+
subscription_text: 'Subscribe and save',
|
|
30
|
+
delivery_frequency_text: 'Delivery frequency',
|
|
31
|
+
prepaid_subscription_text: 'Subscription with prepaid',
|
|
32
|
+
skin1_priceSuffix: 'each',
|
|
33
|
+
skin1_save: 'Save(skin1)',
|
|
34
|
+
skin1_prepaid_payment_title: 'prepaid',
|
|
35
|
+
skin1_normal_payment_title: 'pay as you go',
|
|
36
|
+
skin2_discountSuffix: 'Save',
|
|
37
|
+
skin3_fullPrice: 'Full price',
|
|
38
|
+
skin3_priceSuffix: 'each',
|
|
39
|
+
skin3_discountSuffix: 'Off',
|
|
40
|
+
skin4_justOnce: 'Just once',
|
|
41
|
+
skin4_discountSuffix: 'Off',
|
|
42
|
+
skin4_priceSuffix: 'each',
|
|
43
|
+
skin4_fullPrice: '(Full price)',
|
|
44
|
+
skin4_sellingPlansTitle: 'Renews every:',
|
|
45
|
+
from: 'from',
|
|
46
|
+
max_discount_badge_title: 'UP To',
|
|
47
|
+
pay: 'Pay',
|
|
48
|
+
price_save_up_to: 'save up to'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const SelleasyWidget = {
|
|
53
|
+
Selleasy: {
|
|
54
|
+
'lb-upsell-fbt-block': null,
|
|
55
|
+
'lb-upsell-addon-block': null
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const LoopSubscriptions = {
|
|
59
|
+
LoopSubscriptions: {
|
|
60
|
+
star_rating: {
|
|
61
|
+
product: '{{product}}'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const SkioSubscriptionsYcS20 = {
|
|
66
|
+
SkioSubscriptionsYcS20: {
|
|
67
|
+
'app-block': null
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const ShopifyForms = {
|
|
71
|
+
ShopifyForms: {
|
|
72
|
+
inline: {
|
|
73
|
+
form_id: null
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
78
|
+
switch(tag){
|
|
79
|
+
case 'ShopifyForms':
|
|
80
|
+
return {
|
|
81
|
+
...currentSetting,
|
|
82
|
+
form_id: appSetting['formId']
|
|
83
|
+
};
|
|
84
|
+
case 'FlyBundlesUpsellsFbt':
|
|
85
|
+
{
|
|
86
|
+
return {
|
|
87
|
+
...currentSetting,
|
|
88
|
+
bundle_id: appSetting?.['customBundleId']
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
case 'PumperBundlesVolumeDiscount':
|
|
92
|
+
{
|
|
93
|
+
return {
|
|
94
|
+
...currentSetting,
|
|
95
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
case 'WhatmoreShoppableVideosreel':
|
|
99
|
+
{
|
|
100
|
+
return {
|
|
101
|
+
...currentSetting,
|
|
102
|
+
'show-views': appSetting?.showViews,
|
|
103
|
+
heading: appSetting?.heading,
|
|
104
|
+
'template-type': appSetting?.templateType,
|
|
105
|
+
'title-font-size': parseFloat(appSetting?.titleFontSize),
|
|
106
|
+
'landscape-padding': parseFloat(appSetting?.landscapePadding),
|
|
107
|
+
'top-bottom-padding': parseFloat(appSetting?.topBottomPadding),
|
|
108
|
+
'scroll-video-tile-size': parseFloat(appSetting?.scrollVideoTitleSize),
|
|
109
|
+
'scroll-video-tile-size-portrait': parseFloat(appSetting?.scrollVideoTitleSizePortrait)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
case 'KachingBundles':
|
|
113
|
+
{
|
|
114
|
+
return {
|
|
115
|
+
...currentSetting,
|
|
116
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
case 'PowerfulContactFormBuilder':
|
|
120
|
+
{
|
|
121
|
+
return {
|
|
122
|
+
...currentSetting,
|
|
123
|
+
shortcode: appSetting?.shortcode
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
case 'YotpoReviews':
|
|
127
|
+
{
|
|
128
|
+
return {
|
|
129
|
+
...currentSetting,
|
|
130
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
default:
|
|
134
|
+
return currentSetting;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const ReviewxpoProductReviewsApp = {
|
|
138
|
+
ReviewxpoProductReviewsApp: {
|
|
139
|
+
'five-star-badge-widget': null,
|
|
140
|
+
'allreviews-widget': null,
|
|
141
|
+
'carousel-widget': null,
|
|
142
|
+
'gallery-widget': null,
|
|
143
|
+
'badge-widget': null,
|
|
144
|
+
'testimonial-widget': null,
|
|
145
|
+
'star-widget': null,
|
|
146
|
+
'revews-widget': null
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const PumperBundlesVolumeDiscount = {
|
|
150
|
+
PumperBundlesVolumeDiscount: {
|
|
151
|
+
'app-block': {
|
|
152
|
+
selected_product: '{{ product }}',
|
|
153
|
+
using_page_builder: false
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const UnlimitedBundlesDiscounts = {
|
|
158
|
+
UnlimitedBundlesDiscounts: {
|
|
159
|
+
'product-page-placeholder': null
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
const KiteFreeGiftDiscount = {
|
|
163
|
+
KiteFreeGiftDiscount: {
|
|
164
|
+
'app-block': null
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const FastBundleBundlesDiscounts = {
|
|
168
|
+
FastBundleBundlesDiscounts: {
|
|
169
|
+
all_bundles: null,
|
|
170
|
+
fbt_position: null,
|
|
171
|
+
product_bundles: null,
|
|
172
|
+
product_bundle_with_ids: null,
|
|
173
|
+
volume_position: null
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const SimpleBundlesKits = {
|
|
177
|
+
SimpleBundlesKits: {
|
|
178
|
+
'infinite-options-selector': null
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
const EasyBundleBuilderSkailama = {
|
|
182
|
+
EasyBundleBuilderSkailama: {
|
|
183
|
+
'app-block-bundlePage': null
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
const PreorderNowPreOrderPq = {
|
|
187
|
+
PreorderNowPreOrderPq: {
|
|
188
|
+
'app-block-notifyapp-block-notify': null,
|
|
189
|
+
'app-block-partial': null,
|
|
190
|
+
'app-block-timer': null,
|
|
191
|
+
'app-block': null
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const FlyBundlesUpsellsFbt = {
|
|
195
|
+
FlyBundlesUpsellsFbt: {
|
|
196
|
+
'app-block-volume': null,
|
|
197
|
+
'app-block-upsell-block': null,
|
|
198
|
+
'app-block-fbt': null,
|
|
199
|
+
'app-block-custom': {
|
|
200
|
+
bundle_id: ''
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const JunipProductReviewsUgc = {
|
|
205
|
+
JunipProductReviewsUgc: {
|
|
206
|
+
'junip-review-carousel': {
|
|
207
|
+
reviewsType: 'product_reviews',
|
|
208
|
+
showSummary: true,
|
|
209
|
+
title: 'Reviews',
|
|
210
|
+
paddingTop: 48,
|
|
211
|
+
paddingBottom: 48,
|
|
212
|
+
containerClass: ''
|
|
213
|
+
},
|
|
214
|
+
'junip-ugc-gallery': {
|
|
215
|
+
layout: 'scroll',
|
|
216
|
+
title: '',
|
|
217
|
+
paddingTop: 48,
|
|
218
|
+
paddingBottom: 48,
|
|
219
|
+
containerClass: ''
|
|
220
|
+
},
|
|
221
|
+
'junip-product-review': {
|
|
222
|
+
product: '{{product}}'
|
|
223
|
+
},
|
|
224
|
+
'junip-product-summary': {
|
|
225
|
+
product: '{{product}}'
|
|
226
|
+
},
|
|
227
|
+
'junip-reviews': {
|
|
228
|
+
layout: 'list',
|
|
229
|
+
reviewsType: 'all',
|
|
230
|
+
showSummary: true,
|
|
231
|
+
reviewsCount: 10,
|
|
232
|
+
containerClass: ''
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
const PreorderNowWodPresale = {
|
|
237
|
+
PreorderNowWodPresale: {
|
|
238
|
+
'app-block': null,
|
|
239
|
+
'popups-block': null
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
const YotpoReviews = {
|
|
243
|
+
YotpoReviews: {
|
|
244
|
+
reviews: {
|
|
245
|
+
product: '{{ product }}'
|
|
246
|
+
},
|
|
247
|
+
'star-rating': {
|
|
248
|
+
product: '{{ product }}'
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
const WhatmoreShoppableVideosreel = {
|
|
253
|
+
WhatmoreShoppableVideosreel: {
|
|
254
|
+
'app-block': {
|
|
255
|
+
heading: 'Watch and Buy',
|
|
256
|
+
'template-type': 'template-f',
|
|
257
|
+
'show-views': 'show',
|
|
258
|
+
'ui-theme': 'round',
|
|
259
|
+
'color-primary': '#343434',
|
|
260
|
+
'color-secondary': '#343434',
|
|
261
|
+
'title-font': 'poppins_n4',
|
|
262
|
+
'primary-font': 'poppins_n4',
|
|
263
|
+
'title-font-size': 40,
|
|
264
|
+
'title-font-size-portrait': 24,
|
|
265
|
+
'landscape-padding': 40,
|
|
266
|
+
'top-bottom-padding': 20,
|
|
267
|
+
'scroll-video-tile-size': 80,
|
|
268
|
+
'scroll-video-tile-size-portrait': 80,
|
|
269
|
+
'min-height': 380
|
|
270
|
+
},
|
|
271
|
+
'app-block-banner': {
|
|
272
|
+
'template-type': 'template-banner-a',
|
|
273
|
+
'ui-theme': 'round',
|
|
274
|
+
'banner-video-tile-size': 80
|
|
275
|
+
},
|
|
276
|
+
'app-block-collections': {
|
|
277
|
+
collectionHeading: 'W',
|
|
278
|
+
'template-type': 'template-collections-b',
|
|
279
|
+
'ui-theme': 'round',
|
|
280
|
+
'color-secondary': '#343434',
|
|
281
|
+
'primary-font': 'poppins_n4',
|
|
282
|
+
'tile-size': 60,
|
|
283
|
+
'tile-size-portrait': 60,
|
|
284
|
+
'min-height': 250
|
|
285
|
+
},
|
|
286
|
+
'app-block-stories': {
|
|
287
|
+
'template-type': 'template-stories-a',
|
|
288
|
+
'ui-theme': 'round',
|
|
289
|
+
'color-primary': '#343434',
|
|
290
|
+
'color-secondary': '#343434',
|
|
291
|
+
'primary-font': 'poppins_n4',
|
|
292
|
+
'stories-top-bottom-padding': 0,
|
|
293
|
+
'story-tile-size': 40,
|
|
294
|
+
'story-tile-size-desktop': 40
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
const ProductOptionsCustomizer = {
|
|
299
|
+
ProductOptionsCustomizer: {
|
|
300
|
+
'product-page-customizer': {
|
|
301
|
+
pc_container_size: 100,
|
|
302
|
+
pc_show_options_total: 'initial',
|
|
303
|
+
pc_customizations_total_text: 'Customizations Total:',
|
|
304
|
+
pc_show_preloader: 'hide',
|
|
305
|
+
pc_preloader_color: '',
|
|
306
|
+
pc_ignore_redirect_command: true,
|
|
307
|
+
pc_basic_label_text_color: '#000000',
|
|
308
|
+
pc_basic_label_font_size: 14,
|
|
309
|
+
pc_basic_label_bolden: 'unset',
|
|
310
|
+
pc_basic_label_space_above: 0,
|
|
311
|
+
pc_basic_option_background_color: '#FFFFFF',
|
|
312
|
+
pc_basic_option_text_color: '#000000',
|
|
313
|
+
pc_basic_option_border_color: '#000000',
|
|
314
|
+
pc_basic_option_border_style: 'solid',
|
|
315
|
+
pc_basic_option_border_width: 1,
|
|
316
|
+
pc_basic_option_curve_the_corners: 'none',
|
|
317
|
+
pc_basic_option_font_size: 14,
|
|
318
|
+
pc_basic_option_bolden: 'none',
|
|
319
|
+
pc_basic_option_width: 100,
|
|
320
|
+
pc_basic_option_space_above: 0,
|
|
321
|
+
pc_basic_option_space_below: 0,
|
|
322
|
+
pc_basic_option_space_inside: 10,
|
|
323
|
+
pc_advanced_custom_css: '',
|
|
324
|
+
pc_advanced_custom_js: '',
|
|
325
|
+
pc_show_image_swatch_preview: false
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const AppointmentBookingCowlendar = {
|
|
330
|
+
AppointmentBookingCowlendar: {
|
|
331
|
+
'app-section': {
|
|
332
|
+
section_title: 'Services list',
|
|
333
|
+
section_type: 'services-list'
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
const BoldSubscriptions = {
|
|
338
|
+
BoldSubscriptions: {
|
|
339
|
+
'bsub-widget-block': {
|
|
340
|
+
default_subscribe: true,
|
|
341
|
+
primary_color: '#3b63ff',
|
|
342
|
+
secondary_color: '#7dba63',
|
|
343
|
+
background_color: '#f8f9f9',
|
|
344
|
+
border_radius: 4,
|
|
345
|
+
header_text: 'Purchase Options',
|
|
346
|
+
one_time_text: 'One-time Purchase',
|
|
347
|
+
recurring_text: 'Subscribe and Save',
|
|
348
|
+
prepaid_recurring_text: 'Prepaid Subscribe and Save',
|
|
349
|
+
discount_summary_text: '(Save {discount})',
|
|
350
|
+
discount_summary_plural_text: '(Save up to {discount})',
|
|
351
|
+
frequency_header: 'Delivery Frequency',
|
|
352
|
+
frequency_text: 'delivery',
|
|
353
|
+
prepaid_checkbox_label_text: 'Prepay for subscription',
|
|
354
|
+
billing_frequency_header: 'Billing Frequency',
|
|
355
|
+
billing_frequency_text: '{count} Orders',
|
|
356
|
+
delivery_frequency_discount_text: '({discount} off)',
|
|
357
|
+
billing_frequency_discount_text: '({discount} off)',
|
|
358
|
+
prepaid_total_text: 'Billed {price} today',
|
|
359
|
+
prepaid_continue_as_prepaid_text: 'Prepaid order will auto-renew after {count} orders',
|
|
360
|
+
prepaid_continue_as_standard_text: 'Becomes a regular subscription after {count} orders',
|
|
361
|
+
convertible_header: 'Converts to',
|
|
362
|
+
eligible_for_subscription_header: 'Eligible for Subscription',
|
|
363
|
+
initial_dynamic_discount_text: 'Save {initial_percent_discount}% ({initial_fixed_discount})',
|
|
364
|
+
subsequent_dynamic_discounts_text: '{subsequent_percent_discount}% ({subsequent_fixed_discount}) after {order_count} order(s)'
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
const SproutPlantTreesGrowSales = {
|
|
369
|
+
SproutPlantTreesGrowSales: {
|
|
370
|
+
badge: null,
|
|
371
|
+
'impact-banner': null
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const InstasellShoppableInstagram = {
|
|
375
|
+
InstasellShoppableInstagram: {
|
|
376
|
+
'app-block': {
|
|
377
|
+
heading: 'InstaSell: Instagram Gallery+',
|
|
378
|
+
description: 'Showcase your Instagram Feed on your Shopify Storefront'
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
const Growave = {
|
|
383
|
+
Growave: {
|
|
384
|
+
'block.product.faveButton': {
|
|
385
|
+
option_button_class: ''
|
|
386
|
+
},
|
|
387
|
+
'block.product.reviewWidget': null,
|
|
388
|
+
'block.product.reviewAvgProfile': null,
|
|
389
|
+
'v2.product.reviewsMiniSlider': null
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
const LoloyalSettingCommon = {
|
|
393
|
+
title_font_size: 30,
|
|
394
|
+
subtitle_font_size: 13,
|
|
395
|
+
name_font_size: 20,
|
|
396
|
+
details_font_size: 14,
|
|
397
|
+
corner_radius: 8,
|
|
398
|
+
btn_radius: 8,
|
|
399
|
+
top_padding: 32,
|
|
400
|
+
bottom_padding: 32,
|
|
401
|
+
icon_color: '',
|
|
402
|
+
title_color: '#000000',
|
|
403
|
+
subtitle_color: '#000000',
|
|
404
|
+
name_color: '#000000',
|
|
405
|
+
details_color: '#000000',
|
|
406
|
+
card_bg_color: '#FFFFFF',
|
|
407
|
+
background_color: '#ffffff',
|
|
408
|
+
border_color: '#ececec',
|
|
409
|
+
primary_button_color: '#000000',
|
|
410
|
+
primary_button_text_color: '#FFFFFF',
|
|
411
|
+
secondary_button_color: '#FFFFFF',
|
|
412
|
+
secondary_button_text_color: '#000000',
|
|
413
|
+
hover_btn: '#000000',
|
|
414
|
+
hover_text_color: '#FFFFFF',
|
|
415
|
+
custom_css: '/* Add your custom styles here */'
|
|
416
|
+
};
|
|
417
|
+
const LoloyalLoyaltyReferrals = {
|
|
418
|
+
LoloyalLoyaltyReferrals: {
|
|
419
|
+
'app-banner': {
|
|
420
|
+
img_opacity: 0,
|
|
421
|
+
bg_color: '#F6F6F6',
|
|
422
|
+
banner_height: '400',
|
|
423
|
+
content_position: 'll-middle-left',
|
|
424
|
+
content_alignment: 'left',
|
|
425
|
+
title_font_size: 40,
|
|
426
|
+
subtitle_font_size: 13,
|
|
427
|
+
title_color: '#000000',
|
|
428
|
+
subtitle_color: '#000000',
|
|
429
|
+
btn_radius: 30,
|
|
430
|
+
primary_button_color: '#000000',
|
|
431
|
+
primary_button_text_color: '#FFFFFF',
|
|
432
|
+
secondary_button_color: '#FFFFFF',
|
|
433
|
+
secondary_button_text_color: '#000000',
|
|
434
|
+
hover_btn: '#000000',
|
|
435
|
+
hover_text_color: '#FFFFFF',
|
|
436
|
+
custom_css: '/* Add your custom styles here */'
|
|
437
|
+
},
|
|
438
|
+
'app-ways-to-earn': LoloyalSettingCommon,
|
|
439
|
+
'app-ways-to-redeem': LoloyalSettingCommon,
|
|
440
|
+
'app-referrals': LoloyalSettingCommon
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
const PowerfulContactFormBuilder = {
|
|
444
|
+
PowerfulContactFormBuilder: {
|
|
445
|
+
'app-block': {
|
|
446
|
+
shortcode: ''
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
const KachingBundles = {
|
|
451
|
+
KachingBundles: {
|
|
452
|
+
'app-block': {
|
|
453
|
+
product: '{{product}}'
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
const WishlistKing = {
|
|
458
|
+
WishlistKing: {
|
|
459
|
+
'wishlist-button-block': null
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
const GloboProductOptionsVariant = {
|
|
463
|
+
GloboProductOptionsVariant: {
|
|
464
|
+
'app-block': null
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
const Trustoo = {
|
|
468
|
+
Trustoo: {
|
|
469
|
+
'barrage-carousel': null,
|
|
470
|
+
'review-widget': null,
|
|
471
|
+
'photo-carousel': null,
|
|
472
|
+
'star-rating-widget': {
|
|
473
|
+
star_size: 20,
|
|
474
|
+
font_size: 16,
|
|
475
|
+
block_aligment: 'flex-start'
|
|
476
|
+
},
|
|
477
|
+
'text-carousel': null,
|
|
478
|
+
'card-carousel': null
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
const LooxReviews = {
|
|
482
|
+
LooxReviews: {
|
|
483
|
+
'loox-card-carousel-section': {
|
|
484
|
+
maxWidth: 1100,
|
|
485
|
+
borderRadius: 8,
|
|
486
|
+
itemsPerView: 4,
|
|
487
|
+
mobileItemsPerView: 1,
|
|
488
|
+
maxNumberOfCharacters: 100,
|
|
489
|
+
imageRatio: '0.72',
|
|
490
|
+
reviewerNameColor: '#000000',
|
|
491
|
+
textColor: '#000000',
|
|
492
|
+
itemBackgroundColor: '#ffffff',
|
|
493
|
+
starsColor: '',
|
|
494
|
+
starsBackgroundColor: '#ffffff',
|
|
495
|
+
arrows_backgroundColor: '#FFFFFF',
|
|
496
|
+
arrows_iconColor: '#9A9A9A',
|
|
497
|
+
shadow: 'offset-dark',
|
|
498
|
+
border_active: false,
|
|
499
|
+
border_width: 2,
|
|
500
|
+
border_color: '#000000',
|
|
501
|
+
productIds: ''
|
|
502
|
+
},
|
|
503
|
+
'loox-gallery-carousel-section': {
|
|
504
|
+
maxWidth: 1100,
|
|
505
|
+
borderRadius: 60,
|
|
506
|
+
itemsPerView: 5,
|
|
507
|
+
mobileItemsPerView: 1,
|
|
508
|
+
imageRatio: '1',
|
|
509
|
+
reviewerNameColor: '#ffffff',
|
|
510
|
+
starsColor: '#ffffff',
|
|
511
|
+
arrows_backgroundColor: '#FFFFFF',
|
|
512
|
+
arrows_iconColor: '#9A9A9A',
|
|
513
|
+
shadow: 'none',
|
|
514
|
+
border_active: false,
|
|
515
|
+
border_width: 2,
|
|
516
|
+
border_color: '#000000',
|
|
517
|
+
productIds: ''
|
|
518
|
+
},
|
|
519
|
+
'loox-referrals-section': {
|
|
520
|
+
max_width: 1100,
|
|
521
|
+
layout: 'with-photo',
|
|
522
|
+
primary_color: '',
|
|
523
|
+
text_color: '#000000',
|
|
524
|
+
text_field_border_color: '#C9CDD4',
|
|
525
|
+
background: ''
|
|
526
|
+
},
|
|
527
|
+
'loox-dynamic-section': {
|
|
528
|
+
only_photos: false,
|
|
529
|
+
aggregated: false,
|
|
530
|
+
limit: 20,
|
|
531
|
+
hide_thumbnails: false,
|
|
532
|
+
maxwidth: 1080,
|
|
533
|
+
is_sample: true
|
|
534
|
+
},
|
|
535
|
+
'loox-snippets-widget': {
|
|
536
|
+
alignment: 'left',
|
|
537
|
+
'max-width': '',
|
|
538
|
+
'color-scheme': 'default',
|
|
539
|
+
shadow: '',
|
|
540
|
+
'show-rating': true,
|
|
541
|
+
'show-image': true,
|
|
542
|
+
'hide-arrows-mobile': false,
|
|
543
|
+
'font-size': 14,
|
|
544
|
+
'show-border': false,
|
|
545
|
+
'border-radius': 16,
|
|
546
|
+
'background-color': '',
|
|
547
|
+
'text-color': '',
|
|
548
|
+
'name-color': '',
|
|
549
|
+
'rating-icon-color': '',
|
|
550
|
+
'border-color': '',
|
|
551
|
+
'shadow-color': '',
|
|
552
|
+
'reviews-limit': 10
|
|
553
|
+
},
|
|
554
|
+
'loox-rating': {
|
|
555
|
+
contentSize: 16,
|
|
556
|
+
pattern: '',
|
|
557
|
+
hideText: false,
|
|
558
|
+
alignment: '',
|
|
559
|
+
layout: '',
|
|
560
|
+
textColor: '',
|
|
561
|
+
starColor: '',
|
|
562
|
+
showAllReviews: false,
|
|
563
|
+
looxOpenFloatingWidget: false,
|
|
564
|
+
emptyRatingWidget: false
|
|
565
|
+
},
|
|
566
|
+
'loox-testimonial-carousel-section': {
|
|
567
|
+
maxWidth: 1100,
|
|
568
|
+
desktopFontSize: 32,
|
|
569
|
+
mobileFontSize: 20,
|
|
570
|
+
maxNumberOfCharacters: 100,
|
|
571
|
+
quoteMarkIcon: 'style-1',
|
|
572
|
+
reviewerNameColor: '#000000',
|
|
573
|
+
textColor: '#000000',
|
|
574
|
+
starsColor: '',
|
|
575
|
+
quotesIconColor: '#EAEAEA',
|
|
576
|
+
arrows_iconColor: '#000000',
|
|
577
|
+
arrows_hideOnMobile: true,
|
|
578
|
+
pagination_active: true,
|
|
579
|
+
pagination_selectedDotColor: '#000000',
|
|
580
|
+
pagination_dotColor: '#000000',
|
|
581
|
+
autoplay_active: false,
|
|
582
|
+
autoplay_duration: 2,
|
|
583
|
+
productIds: ''
|
|
584
|
+
},
|
|
585
|
+
'loox-trust-badge': {
|
|
586
|
+
layout: 'horizontal',
|
|
587
|
+
alignment: 'left',
|
|
588
|
+
'scheme-type': 'default',
|
|
589
|
+
'review-title': 'reviews',
|
|
590
|
+
'rating-icon': true,
|
|
591
|
+
'average-rating': true,
|
|
592
|
+
'loox-branding': true,
|
|
593
|
+
'review-count': true,
|
|
594
|
+
'open-reviews': true,
|
|
595
|
+
'show-border': true,
|
|
596
|
+
'border-radius': 8,
|
|
597
|
+
'font-size': 20,
|
|
598
|
+
'background-color': '',
|
|
599
|
+
'secondary-background-color': '',
|
|
600
|
+
'text-color': '',
|
|
601
|
+
'rating-icon-color': '',
|
|
602
|
+
'border-color': ''
|
|
603
|
+
},
|
|
604
|
+
'loox-video-slider': {
|
|
605
|
+
'show-by-tag': false,
|
|
606
|
+
layout: 'spotlight',
|
|
607
|
+
shadow: '',
|
|
608
|
+
'show-rating': true,
|
|
609
|
+
'show-reviewer-name': true,
|
|
610
|
+
'hide-arrows-mobile': true,
|
|
611
|
+
'auto-play': true,
|
|
612
|
+
'show-border': false,
|
|
613
|
+
'border-width': 1,
|
|
614
|
+
'border-radius': 16,
|
|
615
|
+
'text-color': '',
|
|
616
|
+
'rating-icon-color': '',
|
|
617
|
+
'border-color': '',
|
|
618
|
+
'play-button-color': '',
|
|
619
|
+
'shadow-color': '',
|
|
620
|
+
'product-id': ''
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
const composeSettingsByWidgetType = {
|
|
625
|
+
...GloboProductOptionsVariant,
|
|
626
|
+
...WishlistKing,
|
|
627
|
+
...LoloyalLoyaltyReferrals,
|
|
628
|
+
...PowerfulContactFormBuilder,
|
|
629
|
+
...InstasellShoppableInstagram,
|
|
630
|
+
...SproutPlantTreesGrowSales,
|
|
631
|
+
...AppointmentBookingCowlendar,
|
|
632
|
+
...ProductOptionsCustomizer,
|
|
633
|
+
...WhatmoreShoppableVideosreel,
|
|
634
|
+
...JunipProductReviewsUgc,
|
|
635
|
+
...FlyBundlesUpsellsFbt,
|
|
636
|
+
...PreorderNowWodPresale,
|
|
637
|
+
...PreorderNowPreOrderPq,
|
|
638
|
+
...EasyBundleBuilderSkailama,
|
|
639
|
+
...FastBundleBundlesDiscounts,
|
|
640
|
+
...KiteFreeGiftDiscount,
|
|
641
|
+
...UnlimitedBundlesDiscounts,
|
|
642
|
+
...SimpleBundlesKits,
|
|
643
|
+
...PumperBundlesVolumeDiscount,
|
|
644
|
+
...ReviewxpoProductReviewsApp,
|
|
645
|
+
...ShopifyForms,
|
|
646
|
+
...SkioSubscriptionsYcS20,
|
|
647
|
+
...LoopSubscriptions,
|
|
648
|
+
...RechargeSubscriptions,
|
|
649
|
+
...LoyaltyRewardsReferrals,
|
|
650
|
+
...SubifySubscriptions,
|
|
651
|
+
...SelleasyWidget,
|
|
652
|
+
...YotpoReviews,
|
|
653
|
+
...BoldSubscriptions,
|
|
654
|
+
...Growave,
|
|
655
|
+
...KachingBundles,
|
|
656
|
+
...Trustoo,
|
|
657
|
+
...LooxReviews
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
661
|
+
exports.overrideSettings = overrideSettings;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pascalToKebabCase = require('../pascal-to-kebab-case.js');
|
|
4
|
+
var constant = require('./constant.js');
|
|
5
|
+
|
|
6
|
+
const composeAppBlockId = (tag, uid)=>{
|
|
7
|
+
const key = pascalToKebabCase.pascalToKebab(tag);
|
|
8
|
+
return `${constant.THIRD_PARTY_APP_BLOCK_ID_PREFIX}_${key}_${uid}`;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.composeAppBlockId = composeAppBlockId;
|