@billgangcom/theme-lib 1.110.4 → 1.110.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/dist/{builder-4Ke7cjNO.cjs → builder-B7hjBRYI.cjs} +2 -2
- package/dist/{builder-CtBMhTyK.js → builder-D_zv5ue0.js} +5 -5
- package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-BjoFBErH.cjs} +1 -1
- package/dist/{builder-components-Bm7ta9iB.js → builder-components-DN-mNdj8.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +293 -6
- package/dist/{charge-C5z1ecd1.cjs → charge-BAP3iPAM.cjs} +1 -1
- package/dist/{charge-APYiCYYq.js → charge-BQUHzEju.js} +6 -6
- package/dist/{checkout-Bher7FGW.cjs → checkout-CUct7uCm.cjs} +1 -1
- package/dist/{checkout-D3Mpwqsj.js → checkout-uzxtu1pZ.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-DgsmVqD7.cjs → index-BBMTjm8A.cjs} +1 -1
- package/dist/{index-Da1yGZge.js → index-BJMeFohP.js} +1 -1
- package/dist/{index-B1QfR20x.cjs → index-BXhAWCRX.cjs} +1 -1
- package/dist/{index-mEkddX3U.cjs → index-CEMbDy4G.cjs} +1 -1
- package/dist/{index-BAFG_paG.js → index-CMECtXvH.js} +5 -5
- package/dist/{index-C8snA9wm.js → index-CX1FV9wS.js} +5 -5
- package/dist/{index-BMaA9qqZ.cjs → index-Cbqz9kIG.cjs} +1 -1
- package/dist/{index-kt3o_lGR.js → index-CzkkQ8sH.js} +5 -5
- package/dist/{index-Crr7n_oM.cjs → index-R_FZBtaZ.cjs} +1 -1
- package/dist/{index-DjOTY2Jm.js → index-hCDY-ip7.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.es.js +16 -16
- package/dist/{order-BDiqGe6L.cjs → order-BOaO9a-C.cjs} +1 -1
- package/dist/{order-DLMk34KA.js → order-CdPcB1OE.js} +5 -5
- package/dist/src/App.d.ts +18 -0
- package/dist/src/abstractions/IBlock.d.ts +14 -0
- package/dist/src/abstractions/ISettings.d.ts +3 -0
- package/dist/src/abstractions/PageContext.d.ts +121 -0
- package/dist/src/abstractions/Variable.d.ts +28 -0
- package/dist/src/abstractions/color-variables.d.ts +48 -0
- package/dist/src/abstractions/index.d.ts +4 -0
- package/dist/src/api/constants.d.ts +8 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/api/request.d.ts +17 -0
- package/dist/src/assets/icon-registry/IconRegistry.d.ts +22 -0
- package/dist/src/assets/icon-registry/libraryIcons.d.ts +1 -0
- package/dist/src/assets/storefront-icons/index.d.ts +23 -0
- package/dist/src/builder/api/fetchAll.d.ts +1 -0
- package/dist/src/builder/api/fetchData.d.ts +14 -0
- package/dist/src/builder/api/fetchFontsData.d.ts +1 -0
- package/dist/src/builder/api/fetchPagesData.d.ts +1 -0
- package/dist/src/builder/api/index.d.ts +4 -0
- package/dist/src/builder/components/AddSections/index.d.ts +5 -0
- package/dist/src/builder/components/AddSections/utils/index.d.ts +5 -0
- package/dist/src/builder/components/AddSectionsBlock/index.d.ts +7 -0
- package/dist/src/builder/components/BlockColors/index.d.ts +7 -0
- package/dist/src/builder/components/BlockSettings/index.d.ts +2 -0
- package/dist/src/builder/components/BlockSettings/settings.d.ts +7 -0
- package/dist/src/builder/components/BlockSettingsHeader/index.d.ts +8 -0
- package/dist/src/builder/components/ExitButton/index.d.ts +5 -0
- package/dist/src/builder/components/Header/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderButtons/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderDevices/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderPreviewButton/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSaveButton/api/index.d.ts +2 -0
- package/dist/src/builder/components/HeaderSaveButton/index.d.ts +7 -0
- package/dist/src/builder/components/HeaderSaveButton/utils/index.d.ts +6 -0
- package/dist/src/builder/components/HeaderSettings/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsLanguage/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsPages/api/index.d.ts +1 -0
- package/dist/src/builder/components/HeaderSettingsPages/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSettingsZoom/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ModifyPage/index.d.ts +5 -0
- package/dist/src/builder/components/Navbar/index.d.ts +1 -0
- package/dist/src/builder/components/Preview/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewBlockSidebar/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewContent/index.d.ts +6 -0
- package/dist/src/builder/components/PreviewHeader/index.d.ts +2 -0
- package/dist/src/builder/components/Sidebar/index.d.ts +4 -0
- package/dist/src/builder/components/SidebarLayer/index.d.ts +7 -0
- package/dist/src/builder/components/SidebarLayers/index.d.ts +10 -0
- package/dist/src/builder/components/SidebarSettings/index.d.ts +2 -0
- package/dist/src/builder/components/SidebarTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettings/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettingsBorders/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsButtons/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCategories/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +2 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/tip.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentFont/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsFonts/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsHeaderItem/index.d.ts +7 -0
- package/dist/src/builder/components/ThemeSettingsInputs/index.d.ts +5 -0
- package/dist/src/builder/constants/block-icons.d.ts +18 -0
- package/dist/src/builder/index.d.ts +10 -0
- package/dist/src/builder/layout.d.ts +5 -0
- package/dist/src/builder/store/index.d.ts +6 -0
- package/dist/src/builder/store/useColorPickerStore.d.ts +53 -0
- package/dist/src/builder/store/useDeviceStore.d.ts +7 -0
- package/dist/src/builder/store/useFontsStore.d.ts +20 -0
- package/dist/src/builder/store/useLayoutStore.d.ts +7 -0
- package/dist/src/builder/store/useSubmodalStore.d.ts +21 -0
- package/dist/src/builder/store/useTooltipStore.d.ts +6 -0
- package/dist/src/builder/ui/AnimatedPanel/index.d.ts +7 -0
- package/dist/src/builder/ui/ColorPicker/index.d.ts +11 -0
- package/dist/src/builder/ui/ColorPicker/modal.d.ts +2 -0
- package/dist/src/builder/ui/Loader/index.d.ts +1 -0
- package/dist/src/builder/ui/Notification/index.d.ts +13 -0
- package/dist/src/builder/ui/Picker/index.d.ts +9 -0
- package/dist/src/builder/ui/Radio/index.d.ts +13 -0
- package/dist/src/builder/ui/Submodal/index.d.ts +10 -0
- package/dist/src/builder/ui/Tooltip/index.d.ts +6 -0
- package/dist/src/builder/utils/formatLabel.d.ts +1 -0
- package/dist/src/builder/utils/getDisplayName.d.ts +1 -0
- package/dist/src/builder/utils/getModalPosition.d.ts +4 -0
- package/dist/src/builder/utils/index.d.ts +3 -0
- package/dist/src/components/lazy-pages.d.ts +22 -0
- package/dist/src/constants/aspectRatio.d.ts +11 -0
- package/dist/src/constants/blocks.d.ts +79 -0
- package/dist/src/constants/color-variables.d.ts +48 -0
- package/dist/src/constants/device.d.ts +6 -0
- package/dist/src/constants/font.d.ts +3 -0
- package/dist/src/constants/icon.d.ts +2 -0
- package/dist/src/constants/index.d.ts +13 -0
- package/dist/src/constants/local-host.d.ts +1 -0
- package/dist/src/constants/navbar.d.ts +8 -0
- package/dist/src/constants/notification.d.ts +16 -0
- package/dist/src/constants/pages.d.ts +22 -0
- package/dist/src/constants/radius-variables.d.ts +15 -0
- package/dist/src/constants/text-font-keys.d.ts +3 -0
- package/dist/src/constants/theme-settings.d.ts +154 -0
- package/dist/src/exports.d.ts +17 -0
- package/dist/src/hooks/useIconRegistration.d.ts +37 -0
- package/dist/src/lib/createTicket.d.ts +1 -0
- package/dist/src/lib/generateDynamicStyles.d.ts +2 -0
- package/dist/src/lib/getDynamicRoutes.d.ts +1 -0
- package/dist/src/lib/hotReload.d.ts +1 -0
- package/dist/src/lib/index.d.ts +9 -0
- package/dist/src/lib/injectStylesToDOM.d.ts +1 -0
- package/dist/src/lib/loadCustomFonts.d.ts +1 -0
- package/dist/src/lib/setupDynamicFonts.d.ts +2 -0
- package/dist/src/lib/splitTextIntoSpans.d.ts +1 -0
- package/dist/src/lib/useBuilderPages.d.ts +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/pages/active-page/index.d.ts +5 -0
- package/dist/src/pages/balance/balance-modal.d.ts +6 -0
- package/dist/src/pages/balance/index.d.ts +1 -0
- package/dist/src/pages/balance/model.d.ts +6 -0
- package/dist/src/pages/builder/index.d.ts +12 -0
- package/dist/src/pages/builder/utils/index.d.ts +1 -0
- package/dist/src/pages/charge/index.d.ts +1 -0
- package/dist/src/pages/checkout/index.d.ts +2 -0
- package/dist/src/pages/checkout/model.d.ts +1 -0
- package/dist/src/pages/dynamic-error-page/index.d.ts +2 -0
- package/dist/src/pages/dynamic-page/api/index.d.ts +1 -0
- package/dist/src/pages/dynamic-page/index.d.ts +6 -0
- package/dist/src/pages/error-page/api/index.d.ts +7 -0
- package/dist/src/pages/error-page/index.d.ts +1 -0
- package/dist/src/pages/home/index.d.ts +6 -0
- package/dist/src/pages/home/model.d.ts +26 -0
- package/dist/src/pages/maintenance/index.d.ts +2 -0
- package/dist/src/pages/not-found-page/index.d.ts +2 -0
- package/dist/src/pages/order/index.d.ts +1 -0
- package/dist/src/pages/order/model.d.ts +92 -0
- package/dist/src/pages/orders/index.d.ts +1 -0
- package/dist/src/pages/orders/model.d.ts +4 -0
- package/dist/src/pages/rewards/index.d.ts +6 -0
- package/dist/src/pages/router-error-page/index.d.ts +3 -0
- package/dist/src/pages/subscription/index.d.ts +1 -0
- package/dist/src/pages/subscription/model.d.ts +1 -0
- package/dist/src/pages/subscriptions/index.d.ts +1 -0
- package/dist/src/pages/subscriptions/model.d.ts +6 -0
- package/dist/src/pages/ticket/index.d.ts +1 -0
- package/dist/src/pages/ticket/model.d.ts +24 -0
- package/dist/src/pages/tickets/index.d.ts +1 -0
- package/dist/src/pages/tickets/model.d.ts +21 -0
- package/dist/src/pages/top-up-balance/index.d.ts +1 -0
- package/dist/src/pages/validation/index.d.ts +5 -0
- package/dist/src/pages/wrapper-page/index.d.ts +2 -0
- package/dist/src/shared/constants/aspect-ratio.d.ts +11 -0
- package/dist/src/shared/constants/color-variables.d.ts +48 -0
- package/dist/src/shared/constants/icon.d.ts +2 -0
- package/dist/src/shared/constants/index.d.ts +5 -0
- package/dist/src/shared/constants/notification.d.ts +16 -0
- package/dist/src/shared/constants/text-font-keys.d.ts +3 -0
- package/dist/src/storefront/api/auth.d.ts +22 -0
- package/dist/src/storefront/api/charge.d.ts +1 -0
- package/dist/src/storefront/api/coupon.d.ts +2 -0
- package/dist/src/storefront/api/customer.d.ts +6 -0
- package/dist/src/storefront/api/discord.d.ts +8 -0
- package/dist/src/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/src/storefront/api/fetchGeneral.d.ts +1 -0
- package/dist/src/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/src/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/src/storefront/api/index.d.ts +19 -0
- package/dist/src/storefront/api/order.d.ts +14 -0
- package/dist/src/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/src/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/src/storefront/api/referral.d.ts +3 -0
- package/dist/src/storefront/api/reviews.d.ts +2 -0
- package/dist/src/storefront/api/rewards.d.ts +2 -0
- package/dist/src/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/src/storefront/api/store.d.ts +6 -0
- package/dist/src/storefront/api/subscription.d.ts +22 -0
- package/dist/src/storefront/api/ticket.d.ts +7 -0
- package/dist/src/storefront/api/transactions.d.ts +5 -0
- package/dist/src/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/src/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/src/storefront/components/Auth/index.d.ts +11 -0
- package/dist/src/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/src/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/src/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/src/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/src/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/src/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/src/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/src/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/src/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/src/storefront/components/CheckoutOperational/index.d.ts +26 -0
- package/dist/src/storefront/components/CheckoutOrderMainData/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutPrices/index.d.ts +15 -0
- package/dist/src/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/src/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/src/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/src/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/src/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/src/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/src/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/src/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/src/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/src/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/src/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/src/storefront/components/NoItemsBlock/index.d.ts +8 -0
- package/dist/src/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/src/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/src/storefront/components/OrdersTable/index.d.ts +16 -0
- package/dist/src/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/src/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/src/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/src/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/src/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +14 -0
- package/dist/src/storefront/components/PaymentMethod/index.d.ts +16 -0
- package/dist/src/storefront/components/PaymentMethod/model.d.ts +21 -0
- package/dist/src/storefront/components/PaymentMethods/index.d.ts +19 -0
- package/dist/src/storefront/components/PreviewRender/index.d.ts +23 -0
- package/dist/src/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/index.d.ts +18 -0
- package/dist/src/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/src/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/src/storefront/components/SecuredBySsl/index.d.ts +6 -0
- package/dist/src/storefront/components/Sidebar/card.d.ts +7 -0
- package/dist/src/storefront/components/Sidebar/index.d.ts +4 -0
- package/dist/src/storefront/components/Sidebar/nav-list.d.ts +5 -0
- package/dist/src/storefront/components/StatItem/index.d.ts +15 -0
- package/dist/src/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/src/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/src/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/src/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/src/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/src/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/src/storefront/components/Table/index.d.ts +20 -0
- package/dist/src/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/src/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/src/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/src/storefront/components/index.d.ts +53 -0
- package/dist/src/storefront/constants/actions.d.ts +3 -0
- package/dist/src/storefront/constants/api.d.ts +2 -0
- package/dist/src/storefront/constants/index.d.ts +3 -0
- package/dist/src/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/src/storefront/constants/routes.d.ts +15 -0
- package/dist/src/storefront/hooks/index.d.ts +2 -0
- package/dist/src/storefront/hooks/useCart.d.ts +186 -0
- package/dist/src/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/src/storefront/index.d.ts +11 -0
- package/dist/src/storefront/models/balance.d.ts +56 -0
- package/dist/src/storefront/models/charge.d.ts +76 -0
- package/dist/src/storefront/models/checkout.d.ts +21 -0
- package/dist/src/storefront/models/coupon.d.ts +5 -0
- package/dist/src/storefront/models/discord.d.ts +18 -0
- package/dist/src/storefront/models/gateway.d.ts +8 -0
- package/dist/src/storefront/models/index.d.ts +16 -0
- package/dist/src/storefront/models/order.d.ts +139 -0
- package/dist/src/storefront/models/payment.d.ts +16 -0
- package/dist/src/storefront/models/post.d.ts +5 -0
- package/dist/src/storefront/models/price.d.ts +5 -0
- package/dist/src/storefront/models/referral.d.ts +12 -0
- package/dist/src/storefront/models/referralCode.d.ts +3 -0
- package/dist/src/storefront/models/rewards.d.ts +72 -0
- package/dist/src/storefront/models/shop.d.ts +38 -0
- package/dist/src/storefront/models/subscription.d.ts +130 -0
- package/dist/src/storefront/models/transaction.d.ts +12 -0
- package/dist/src/storefront/store/index.d.ts +22 -0
- package/dist/src/storefront/store/useApiStore.d.ts +8 -0
- package/dist/src/storefront/store/useBlocksStore.d.ts +23 -0
- package/dist/src/storefront/store/useCartStore.d.ts +48 -0
- package/dist/src/storefront/store/useChooseImageStore.d.ts +11 -0
- package/dist/src/storefront/store/useConfirmationModalStore.d.ts +10 -0
- package/dist/src/storefront/store/useCustomerDashboardStore.d.ts +37 -0
- package/dist/src/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/src/storefront/store/useErrorStore.d.ts +12 -0
- package/dist/src/storefront/store/useGeneralStore.d.ts +9 -0
- package/dist/src/storefront/store/useHistoryState.d.ts +20 -0
- package/dist/src/storefront/store/useLayersStore.d.ts +42 -0
- package/dist/src/storefront/store/useModalStore.d.ts +6 -0
- package/dist/src/storefront/store/useNavbarStore.d.ts +7 -0
- package/dist/src/storefront/store/useNotificationStore.d.ts +7 -0
- package/dist/src/storefront/store/usePagesStore.d.ts +33 -0
- package/dist/src/storefront/store/usePaginationPagesStore.d.ts +7 -0
- package/dist/src/storefront/store/usePreviewStore.d.ts +26 -0
- package/dist/src/storefront/store/useSettingsStore.d.ts +12 -0
- package/dist/src/storefront/store/useShareLinkStore.d.ts +6 -0
- package/dist/src/storefront/store/useStorefrontStore.d.ts +23 -0
- package/dist/src/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/src/storefront/store/useThemeSettingsStore.d.ts +21 -0
- package/dist/src/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/src/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/src/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/src/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/src/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/src/storefront/ui/index.d.ts +5 -0
- package/dist/src/storefront/utils/MarkdownText.d.ts +5 -0
- package/dist/src/storefront/utils/checkParams.d.ts +5 -0
- package/dist/src/storefront/utils/checkToken.d.ts +1 -0
- package/dist/src/storefront/utils/clearQueryParams.d.ts +1 -0
- package/dist/src/storefront/utils/index.d.ts +16 -0
- package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -0
- package/dist/src/storefront/utils/recapcha.d.ts +13 -0
- package/dist/src/storefront/utils/resizeManager.d.ts +12 -0
- package/dist/src/storefront/utils/showNotification.d.ts +3 -0
- package/dist/src/storefront/utils/stable-text.d.ts +20 -0
- package/dist/src/storefront/utils/useAdaptiveStyles.d.ts +2 -0
- package/dist/src/storefront/utils/useBalance.d.ts +2 -0
- package/dist/src/storefront/utils/useCart.d.ts +1 -0
- package/dist/src/storefront/utils/useGeneralInfo.d.ts +4 -0
- package/dist/src/storefront/utils/useMarkdownIt.d.ts +2 -0
- package/dist/src/storefront/utils/useTrackingAnalytics.d.ts +2 -0
- package/dist/src/ui/Accordion/index.d.ts +8 -0
- package/dist/src/ui/AlignText/index.d.ts +7 -0
- package/dist/src/ui/BuilderModal/index.d.ts +9 -0
- package/dist/src/ui/Button/index.d.ts +16 -0
- package/dist/src/ui/ButtonSettings/index.d.ts +14 -0
- package/dist/src/ui/ButtonTypeSettings/index.d.ts +11 -0
- package/dist/src/ui/ButtonsSettings/index.d.ts +28 -0
- package/dist/src/ui/ButtonsSettings/popup.d.ts +13 -0
- package/dist/src/ui/CategorySettings/index.d.ts +48 -0
- package/dist/src/ui/Checkbox/index.d.ts +7 -0
- package/dist/src/ui/ChooseImage/api/index.d.ts +2 -0
- package/dist/src/ui/ChooseImage/index.d.ts +17 -0
- package/dist/src/ui/ConfirmationModal/index.d.ts +2 -0
- package/dist/src/ui/ErrorableBlock/index.d.ts +5 -0
- package/dist/src/ui/FormSettings/index.d.ts +65 -0
- package/dist/src/ui/FormSettings/popup.d.ts +70 -0
- package/dist/src/ui/GroupCardModal/index.d.ts +14 -0
- package/dist/src/ui/HeaderButtons/index.d.ts +47 -0
- package/dist/src/ui/Icon/index.d.ts +13 -0
- package/dist/src/ui/Input/index.d.ts +25 -0
- package/dist/src/ui/InputSettings/index.d.ts +22 -0
- package/dist/src/ui/ItemsSettings/index.d.ts +70 -0
- package/dist/src/ui/ItemsSettings/popup.d.ts +84 -0
- package/dist/src/ui/LayoutSettings/index.d.ts +13 -0
- package/dist/src/ui/Link/index.d.ts +10 -0
- package/dist/src/ui/ListingSelector/index.d.ts +134 -0
- package/dist/src/ui/ListingSelector/popup.d.ts +20 -0
- package/dist/src/ui/Loader/index.d.ts +4 -0
- package/dist/src/ui/LoaderBuilder/index.d.ts +2 -0
- package/dist/src/ui/MetaInfoPost/index.d.ts +6 -0
- package/dist/src/ui/Modal/index.d.ts +9 -0
- package/dist/src/ui/NotificationAntistock/index.d.ts +11 -0
- package/dist/src/ui/NotificationBuilder/index.d.ts +13 -0
- package/dist/src/ui/OtherSettings/index.d.ts +15 -0
- package/dist/src/ui/PagesSettings/index.d.ts +26 -0
- package/dist/src/ui/ProductCardButtons/index.d.ts +10 -0
- package/dist/src/ui/ProductCardModal/index.d.ts +10 -0
- package/dist/src/ui/ProductOptions/index.d.ts +13 -0
- package/dist/src/ui/Radio/index.d.ts +14 -0
- package/dist/src/ui/RangeSelector/index.d.ts +11 -0
- package/dist/src/ui/Select/index.d.ts +20 -0
- package/dist/src/ui/Select/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectInfiniteList/index.d.ts +20 -0
- package/dist/src/ui/SelectInfiniteList/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectTypeText/index.d.ts +8 -0
- package/dist/src/ui/ShareLink/index.d.ts +5 -0
- package/dist/src/ui/Switch/index.d.ts +11 -0
- package/dist/src/ui/TextSettings/index.d.ts +20 -0
- package/dist/src/ui/Textarea/index.d.ts +13 -0
- package/dist/src/ui/TextareaSettings/index.d.ts +11 -0
- package/dist/src/ui/Tip/index.d.ts +10 -0
- package/dist/src/ui/TypesText/index.d.ts +7 -0
- package/dist/src/ui/Wrapper/index.d.ts +11 -0
- package/dist/src/ui/index.d.ts +44 -0
- package/dist/{subscription-CfSbneE9.js → subscription-DIDUTEI3.js} +5 -5
- package/dist/{subscription-CN0GP1i3.cjs → subscription-iNnLGi0T.cjs} +1 -1
- package/dist/{ticket-CDRAyz3r.js → ticket-B0VGIvyK.js} +5 -5
- package/dist/{ticket-Disch8gb.cjs → ticket-DXz_-29l.cjs} +1 -1
- package/dist/{top-up-r9pRDkRB.cjs → top-up-B7E7FUjn.cjs} +1 -1
- package/dist/{top-up-DEMHwk2Q.js → top-up-BhB8jhP6.js} +5 -5
- package/dist/ui-components-BTotDG_w.js +6447 -0
- package/dist/ui-components-CWLDlDmG.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +6 -6
- package/dist/{validation-HSAYPvwb.cjs → validation-BVAD1q1L.cjs} +1 -1
- package/dist/{validation-BwaClAh8.js → validation-jCwzu5MC.js} +5 -5
- package/package.json +3 -2
- package/dist/App-Clwk7ILO.js +0 -315
- package/dist/App-txB8kbk7.cjs +0 -1
- package/dist/ui-components-CDqqhvCf.js +0 -11007
- package/dist/ui-components-DcRUDS1O.cjs +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ShopInfo } from '@storefront/models';
|
|
2
|
+
import { ListingData } from '../ui';
|
|
3
|
+
type Listing = ListingData<'PRODUCT'> | ListingData<'GROUP'> | ListingData<'POST'>;
|
|
4
|
+
export interface Product {
|
|
5
|
+
id: number;
|
|
6
|
+
uniquePath: string;
|
|
7
|
+
name: string;
|
|
8
|
+
shortDescription?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
images: Image[];
|
|
11
|
+
variants: ProductVariant[];
|
|
12
|
+
stats: ProductStats;
|
|
13
|
+
reviews: Review[];
|
|
14
|
+
}
|
|
15
|
+
export interface Image {
|
|
16
|
+
id: number;
|
|
17
|
+
cfId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Review {
|
|
20
|
+
id: number;
|
|
21
|
+
message: string;
|
|
22
|
+
rating: number;
|
|
23
|
+
createdAtIso: string;
|
|
24
|
+
purchasedIso: string;
|
|
25
|
+
storeReply?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ProductStats {
|
|
28
|
+
averageRating: number;
|
|
29
|
+
totalReviews: number;
|
|
30
|
+
totalSold: number;
|
|
31
|
+
}
|
|
32
|
+
export interface VolumeDiscount {
|
|
33
|
+
amount: number;
|
|
34
|
+
percentage: number;
|
|
35
|
+
}
|
|
36
|
+
export interface ProductVariant {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
shortDescription?: string;
|
|
41
|
+
price: {
|
|
42
|
+
amount: number;
|
|
43
|
+
currency: string;
|
|
44
|
+
};
|
|
45
|
+
compareAtPrice?: {
|
|
46
|
+
amount: number;
|
|
47
|
+
currency: string;
|
|
48
|
+
};
|
|
49
|
+
chargeTypes?: Array<'ONE_TIME' | 'RECURRING'>;
|
|
50
|
+
subscriptionSettings?: {
|
|
51
|
+
price: {
|
|
52
|
+
amount: number;
|
|
53
|
+
currency: string;
|
|
54
|
+
};
|
|
55
|
+
compareAtPrice?: {
|
|
56
|
+
amount: number;
|
|
57
|
+
currency: string;
|
|
58
|
+
};
|
|
59
|
+
recurringIntervalDays?: number;
|
|
60
|
+
entryFee?: {
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
quantity: {
|
|
66
|
+
available?: number;
|
|
67
|
+
restrictions?: {
|
|
68
|
+
min: number;
|
|
69
|
+
max: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
deliveryTime?: number;
|
|
73
|
+
volumeDiscounts?: VolumeDiscount[];
|
|
74
|
+
terms?: string;
|
|
75
|
+
gateways: Array<{
|
|
76
|
+
name: string;
|
|
77
|
+
overrodePrice?: {
|
|
78
|
+
amount: number;
|
|
79
|
+
currency: string;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
customFields: Array<{
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
required: boolean;
|
|
86
|
+
placeholder?: string;
|
|
87
|
+
defaultValue?: string;
|
|
88
|
+
regex?: string;
|
|
89
|
+
type: 'NUMBER' | 'TEXT' | 'SELECT';
|
|
90
|
+
}>;
|
|
91
|
+
warranty?: {
|
|
92
|
+
text: string;
|
|
93
|
+
durationMilliseconds?: number;
|
|
94
|
+
};
|
|
95
|
+
discordSettings: {
|
|
96
|
+
isEnabled: boolean;
|
|
97
|
+
isRequired: boolean;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export interface Faq {
|
|
101
|
+
id: number;
|
|
102
|
+
answer: string;
|
|
103
|
+
question: string;
|
|
104
|
+
}
|
|
105
|
+
export interface Category {
|
|
106
|
+
id: number;
|
|
107
|
+
name: string;
|
|
108
|
+
listingIdList: number[];
|
|
109
|
+
}
|
|
110
|
+
export interface PageContext {
|
|
111
|
+
listings: Listing[] | null;
|
|
112
|
+
products: Product[] | null;
|
|
113
|
+
reviews: any;
|
|
114
|
+
categories: Category[] | null;
|
|
115
|
+
faqs: Faq[] | null;
|
|
116
|
+
general: ShopInfo | null;
|
|
117
|
+
fullPosts: any;
|
|
118
|
+
posts: any;
|
|
119
|
+
preserveContent: boolean;
|
|
120
|
+
}
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ItemBase } from '../ui';
|
|
2
|
+
export interface Listing extends ItemBase {
|
|
3
|
+
listingId: number;
|
|
4
|
+
imagePath: string;
|
|
5
|
+
stats: {
|
|
6
|
+
averageRating: number;
|
|
7
|
+
totalReviews: number;
|
|
8
|
+
totalSold: number;
|
|
9
|
+
oldPrice: number;
|
|
10
|
+
newPrice: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type TypeValues = {
|
|
14
|
+
CategoryId: number[];
|
|
15
|
+
ProductId: number[];
|
|
16
|
+
ListingIds: {
|
|
17
|
+
listingId: number;
|
|
18
|
+
image: string;
|
|
19
|
+
}[];
|
|
20
|
+
AnnouncementId: number[];
|
|
21
|
+
ReviewCount: boolean;
|
|
22
|
+
FaqsIds: number[];
|
|
23
|
+
};
|
|
24
|
+
export type TypeVariable = keyof TypeValues;
|
|
25
|
+
export type Variable<T extends TypeVariable> = {
|
|
26
|
+
type: T;
|
|
27
|
+
value: TypeValues[T];
|
|
28
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare enum ColorVariables {
|
|
2
|
+
ICON_LINK = "--icon-link",
|
|
3
|
+
ICON_ERROR = "--icon-error",
|
|
4
|
+
ICON_ACTION = "--icon-action",
|
|
5
|
+
ICON_PRIMARY = "--icon-primary",
|
|
6
|
+
ICON_SUCCESS = "--icon-success",
|
|
7
|
+
ICON_WARNING = "--icon-warning",
|
|
8
|
+
ICON_DISABLED = "--icon-disabled",
|
|
9
|
+
ICON_INVERTED = "--icon-inverted",
|
|
10
|
+
ICON_TERTIARY = "--icon-tertiary",
|
|
11
|
+
ICON_SECONDARY = "--icon-secondary",
|
|
12
|
+
ICON_ACTION_HOVER = "--icon-actionHover",
|
|
13
|
+
ICON_INFORMATION = "--icon-information",
|
|
14
|
+
TEXT_LINK = "--text-link",
|
|
15
|
+
TEXT_ERROR = "--text-error",
|
|
16
|
+
TEXT_ACTION = "--text-action",
|
|
17
|
+
TEXT_PRIMARY = "--text-primary",
|
|
18
|
+
TEXT_SUCCESS = "--text-success",
|
|
19
|
+
TEXT_WARNING = "--text-warning",
|
|
20
|
+
TEXT_DISABLED = "--text-disabled",
|
|
21
|
+
TEXT_INVERTED = "--text-inverted",
|
|
22
|
+
TEXT_TERTIARY = "--text-tertiary",
|
|
23
|
+
TEXT_SECONDARY = "--text-secondary",
|
|
24
|
+
TEXT_ACTION_HOVER = "--text-actionHover",
|
|
25
|
+
TEXT_INFORMATION = "--text-information",
|
|
26
|
+
BORDER_ERROR = "--border-error",
|
|
27
|
+
BORDER_FOCUS = "--border-focus",
|
|
28
|
+
BORDER_ACTION = "--border-action",
|
|
29
|
+
BORDER_PRIMARY = "--border-primary",
|
|
30
|
+
BORDER_SUCCESS = "--border-success",
|
|
31
|
+
BORDER_WARNING = "--border-warning",
|
|
32
|
+
BORDER_DISABLED = "--border-disabled",
|
|
33
|
+
BORDER_SECONDARY = "--border-secondary",
|
|
34
|
+
BORDER_ACTION_HOVER = "--border-actionHover",
|
|
35
|
+
BORDER_INFORMATION = "--border-information",
|
|
36
|
+
SURFACE_ERROR = "--surface-error",
|
|
37
|
+
SURFACE_MODAL = "--surface-modal",
|
|
38
|
+
SURFACE_ACTION1 = "--surface-action1",
|
|
39
|
+
SURFACE_ACTION2 = "--surface-action2",
|
|
40
|
+
SURFACE_PRIMARY = "--surface-primary",
|
|
41
|
+
SURFACE_SUCCESS = "--surface-success",
|
|
42
|
+
SURFACE_WARNING = "--surface-warning",
|
|
43
|
+
SURFACE_DISABLED = "--surface-disabled",
|
|
44
|
+
SURFACE_SECONDARY = "--surface-secondary",
|
|
45
|
+
SURFACE_INFORMATION = "--surface-information",
|
|
46
|
+
SURFACE_ACTION1_HOVER = "--surface-action1Hover",
|
|
47
|
+
SURFACE_ACTION2_HOVER = "--surface-action2Hover"
|
|
48
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
export type Method = 'get' | 'post' | 'put' | 'delete';
|
|
3
|
+
interface RequestOptions {
|
|
4
|
+
withToken: boolean;
|
|
5
|
+
url: string;
|
|
6
|
+
method: Method;
|
|
7
|
+
body?: Record<string, any>;
|
|
8
|
+
contentType?: string;
|
|
9
|
+
typeToken?: 'seller' | 'customer';
|
|
10
|
+
}
|
|
11
|
+
export interface RequestResponse<T> {
|
|
12
|
+
data: T;
|
|
13
|
+
status?: number;
|
|
14
|
+
headers?: AxiosResponse['headers'];
|
|
15
|
+
}
|
|
16
|
+
export declare const request: <T = any>(options: RequestOptions) => Promise<RequestResponse<T>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Регистрирует иконку в реестре
|
|
4
|
+
* Пользователи должны вызывать эту функцию для каждой иконки, которую они хотят использовать
|
|
5
|
+
*/
|
|
6
|
+
export declare function registerIcon(name: string, IconComponent: React.ComponentType<any>): void;
|
|
7
|
+
/**
|
|
8
|
+
* Получает зарегистрированную иконку
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRegisteredIcon(name: string): React.ComponentType<any> | null;
|
|
11
|
+
/**
|
|
12
|
+
* Проверяет, зарегистрирована ли иконка
|
|
13
|
+
*/
|
|
14
|
+
export declare function isIconRegistered(name: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Получает список всех зарегистрированных иконок
|
|
17
|
+
*/
|
|
18
|
+
export declare function getRegisteredIcons(): string[];
|
|
19
|
+
/**
|
|
20
|
+
* Функция для массовой регистрации иконок
|
|
21
|
+
*/
|
|
22
|
+
export declare function registerIcons(icons: Record<string, React.ComponentType<any>>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerLibraryIcons(): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const FilledStar: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Cryptocurrency: React.FC<{
|
|
3
|
+
isAntistock?: boolean;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const BTC: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const DebitCreditCard: React.FC<{
|
|
7
|
+
isAntistock?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const CashApp: React.FC<{
|
|
10
|
+
isAntistock?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const PayPal: React.FC<{
|
|
13
|
+
isAntistock?: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ApplePayGooglePay: React.FC<{
|
|
16
|
+
isAntistock?: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const BankTransfer: React.FC<{
|
|
19
|
+
isAntistock?: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const Visa: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Cryptocurrencies: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const Hoodpay: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fetchAll(): Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function fetchAllData(): Promise<{
|
|
2
|
+
general: PromiseSettledResult<any>;
|
|
3
|
+
faqs: PromiseSettledResult<any>;
|
|
4
|
+
listings: PromiseSettledResult<any>;
|
|
5
|
+
products: PromiseSettledResult<any>;
|
|
6
|
+
reviews: PromiseSettledResult<any>;
|
|
7
|
+
categories: PromiseSettledResult<any>;
|
|
8
|
+
fullPosts: PromiseSettledResult<{
|
|
9
|
+
data: null;
|
|
10
|
+
}>;
|
|
11
|
+
posts: PromiseSettledResult<{
|
|
12
|
+
data: null;
|
|
13
|
+
}>;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fetchFontsData(): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fetchPagesData(): Promise<any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Page } from '@constants';
|
|
2
|
+
import { PageContext, TypeVariable } from '../../../../abstractions';
|
|
3
|
+
export declare function getValues(name: TypeVariable, blocks: Record<string, any>[]): any[];
|
|
4
|
+
export declare function getCount(name: TypeVariable, blocks: Record<string, any>[], pageContext: PageContext): number;
|
|
5
|
+
export declare function getBoolean(name: TypeVariable, blocks: Record<string, any>[]): boolean;
|
|
6
|
+
export declare function getPage(path: string, pages: Record<string, Page>): Page | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deletePage: (route: string) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Navbar: React.FC;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
}
|
|
4
|
+
export declare const SidebarLayers: React.FC<Props>;
|
|
5
|
+
interface SettingsProps {
|
|
6
|
+
isHeader: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const HeaderAndFooterSettings: React.FC<SettingsProps>;
|
|
9
|
+
export declare const AnnouncementSettings: React.FC;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeSettingsCategories: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getDuplicateColors';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const blockIcons: {
|
|
2
|
+
Header: string;
|
|
3
|
+
Announcement: string;
|
|
4
|
+
PrimaryHero: string;
|
|
5
|
+
ProductHero: string;
|
|
6
|
+
Items: string;
|
|
7
|
+
FeaturedItems: string;
|
|
8
|
+
Content: string;
|
|
9
|
+
Stats: string;
|
|
10
|
+
ImageGallery: string;
|
|
11
|
+
Logos: string;
|
|
12
|
+
CTA: string;
|
|
13
|
+
FAQ: string;
|
|
14
|
+
Reviews: string;
|
|
15
|
+
ContactUs: string;
|
|
16
|
+
Footer: string;
|
|
17
|
+
Video: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BuilderProps {
|
|
3
|
+
blocks: Record<string, any>;
|
|
4
|
+
settings: any;
|
|
5
|
+
header: Record<string, any>;
|
|
6
|
+
footer: Record<string, any>;
|
|
7
|
+
announcement: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const Builder: React.FC<BuilderProps>;
|
|
10
|
+
export {};
|