@billgangcom/theme-lib 1.110.4 → 1.110.5
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/{App-txB8kbk7.cjs → App-BwVII14K.cjs} +1 -1
- package/dist/{App-Clwk7ILO.js → App-ytDoD626.js} +21 -21
- package/dist/{builder-4Ke7cjNO.cjs → builder-BLDXBzNl.cjs} +2 -2
- package/dist/{builder-CtBMhTyK.js → builder-C64dSizd.js} +5 -5
- package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-DHTh1VoV.cjs} +1 -1
- package/dist/{builder-components-Bm7ta9iB.js → builder-components-FfKRBcLk.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +3 -3
- package/dist/{charge-C5z1ecd1.cjs → charge-BHULUGTw.cjs} +1 -1
- package/dist/{charge-APYiCYYq.js → charge-BcGATQ-j.js} +6 -6
- package/dist/{checkout-Bher7FGW.cjs → checkout-C_l1R6-u.cjs} +1 -1
- package/dist/{checkout-D3Mpwqsj.js → checkout-DzoPtqLk.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Da1yGZge.js → index-BLcplkmB.js} +1 -1
- package/dist/{index-B1QfR20x.cjs → index-BWeBpiO8.cjs} +1 -1
- package/dist/{index-kt3o_lGR.js → index-Bj_McHvo.js} +5 -5
- package/dist/{index-BMaA9qqZ.cjs → index-C23qWl0W.cjs} +1 -1
- package/dist/{index-C8snA9wm.js → index-C2mw0EhF.js} +5 -5
- package/dist/{index-DjOTY2Jm.js → index-Cl9CSdbF.js} +5 -5
- package/dist/{index-mEkddX3U.cjs → index-DugPvosX.cjs} +1 -1
- package/dist/{index-BAFG_paG.js → index-DyfD4eoN.js} +5 -5
- package/dist/{index-DgsmVqD7.cjs → index-T0XXq2pq.cjs} +1 -1
- package/dist/{index-Crr7n_oM.cjs → index-T7iWZCzU.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.es.js +7 -7
- package/dist/{order-BDiqGe6L.cjs → order-_mx45K-F.cjs} +1 -1
- package/dist/{order-DLMk34KA.js → order-rZVNwk6i.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/icon-registry/runtime.d.ts +8 -0
- package/dist/src/assets/icons/index.d.ts +3 -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-CZ9Buxql.js} +5 -5
- package/dist/{subscription-CN0GP1i3.cjs → subscription-D-GVTc5C.cjs} +1 -1
- package/dist/{ticket-CDRAyz3r.js → ticket-D8MxvdiA.js} +5 -5
- package/dist/{ticket-Disch8gb.cjs → ticket-SllRZ1vs.cjs} +1 -1
- package/dist/{top-up-DEMHwk2Q.js → top-up-7XHWZMR7.js} +5 -5
- package/dist/{top-up-r9pRDkRB.cjs → top-up-CyEK2j7V.cjs} +1 -1
- package/dist/ui-components-D2ccINdB.cjs +1 -0
- package/dist/ui-components-DSaAYQJp.js +9475 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-BwaClAh8.js → validation-DOeo0z9F.js} +5 -5
- package/dist/{validation-HSAYPvwb.cjs → validation-_p4G1oC2.cjs} +1 -1
- package/package.json +3 -2
- package/dist/ui-components-CDqqhvCf.js +0 -11007
- package/dist/ui-components-DcRUDS1O.cjs +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type Image = {
|
|
2
|
+
id: number;
|
|
3
|
+
cfId: string;
|
|
4
|
+
};
|
|
5
|
+
export interface ShopInfo {
|
|
6
|
+
statistics: {
|
|
7
|
+
totalProductsSold: number;
|
|
8
|
+
totalCustomers: number;
|
|
9
|
+
totalReviews: number;
|
|
10
|
+
averageProductRating: number;
|
|
11
|
+
launchYear: number;
|
|
12
|
+
};
|
|
13
|
+
permissions: {
|
|
14
|
+
disableBranding: boolean;
|
|
15
|
+
};
|
|
16
|
+
info: {
|
|
17
|
+
logo?: Image;
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
domain: string;
|
|
21
|
+
passwordProtected: boolean;
|
|
22
|
+
onHold: boolean;
|
|
23
|
+
isBanned: boolean;
|
|
24
|
+
};
|
|
25
|
+
isPasswordValid: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ShopRefundPolicy {
|
|
28
|
+
refundPolicy: string;
|
|
29
|
+
showRefundPolicyOnProduct: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ShopPrivacyPolicy {
|
|
32
|
+
privacyPolicy: string;
|
|
33
|
+
showPrivacyPolicyOnProduct: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ShopTerms {
|
|
36
|
+
termsOfService: string;
|
|
37
|
+
showTermsOfServiceOnProduct: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { PartOrder } from './order';
|
|
2
|
+
import { Price } from './price';
|
|
3
|
+
export type PostSubscriptionRequest = {
|
|
4
|
+
customerEmail: string;
|
|
5
|
+
gateway: string;
|
|
6
|
+
partOrder: PartOrder;
|
|
7
|
+
recaptcha: string;
|
|
8
|
+
coupon?: string | null;
|
|
9
|
+
customFields: Record<string, string>;
|
|
10
|
+
discordSocialConnectId?: string | null;
|
|
11
|
+
referralCode?: string | null;
|
|
12
|
+
tsId: string | null;
|
|
13
|
+
};
|
|
14
|
+
export declare enum SubscriptionStatus {
|
|
15
|
+
RIAL = "RIAL",
|
|
16
|
+
AWAITING_PAYMENT = "AWAITING_PAYMENT",
|
|
17
|
+
ACTIVE = "ACTIVE",
|
|
18
|
+
PAST_DUE = "PAST_DUE",
|
|
19
|
+
CANCELLED = "CANCELLED",
|
|
20
|
+
EXPIRED = "EXPIRED",
|
|
21
|
+
CHANGED_GATEWAY = "CHANGED_GATEWAY",
|
|
22
|
+
REPLACED = "REPLACED"
|
|
23
|
+
}
|
|
24
|
+
export interface SubscriptionItem {
|
|
25
|
+
id: string;
|
|
26
|
+
productName: string;
|
|
27
|
+
status: SubscriptionStatus;
|
|
28
|
+
price: Price;
|
|
29
|
+
gatewayName: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
accessToken: string;
|
|
32
|
+
recurringInterval: string;
|
|
33
|
+
currentChargeAttempt: number;
|
|
34
|
+
nextChargeAttemptAt?: string;
|
|
35
|
+
activeTo?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface SubscriptionCoupon {
|
|
38
|
+
isFixed: boolean;
|
|
39
|
+
discount: number;
|
|
40
|
+
name: string;
|
|
41
|
+
initialCouponDurationForSubscriptions?: number;
|
|
42
|
+
currentCouponDurationForSubscriptions?: number;
|
|
43
|
+
}
|
|
44
|
+
interface SubscriptionSettings {
|
|
45
|
+
price: Price;
|
|
46
|
+
recurringIntervalDays: number;
|
|
47
|
+
}
|
|
48
|
+
interface CustomField {
|
|
49
|
+
name: string;
|
|
50
|
+
required: boolean;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
defaultValue: string;
|
|
53
|
+
regex: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}
|
|
56
|
+
interface ProductVariantData {
|
|
57
|
+
id: number;
|
|
58
|
+
name: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
shortDescription?: string;
|
|
61
|
+
price: Price;
|
|
62
|
+
chargeTypes: string[];
|
|
63
|
+
subscriptionSettings: SubscriptionSettings;
|
|
64
|
+
quantity: {
|
|
65
|
+
restrictions: any;
|
|
66
|
+
};
|
|
67
|
+
deliveryTime: number;
|
|
68
|
+
gateways: {
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
customFields: CustomField[];
|
|
72
|
+
warranty?: {
|
|
73
|
+
text: string;
|
|
74
|
+
durationMilliseconds: number;
|
|
75
|
+
};
|
|
76
|
+
discordSettings: {
|
|
77
|
+
isEnabled: boolean;
|
|
78
|
+
isRequired: boolean;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
interface Type {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
productVariants: {
|
|
85
|
+
data: ProductVariantData;
|
|
86
|
+
position: number;
|
|
87
|
+
isHighlighted: boolean;
|
|
88
|
+
}[];
|
|
89
|
+
position: number;
|
|
90
|
+
}
|
|
91
|
+
interface SubscriptionUpgradePlansData {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
types: Type[];
|
|
96
|
+
}
|
|
97
|
+
export interface SubscriptionUpgradePlans {
|
|
98
|
+
data: SubscriptionUpgradePlansData;
|
|
99
|
+
}
|
|
100
|
+
export interface SubscriptionGatewayInfo {
|
|
101
|
+
card?: {
|
|
102
|
+
brand: string;
|
|
103
|
+
last4: string;
|
|
104
|
+
expires: string;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface SubscriptionFullItem {
|
|
108
|
+
id: string;
|
|
109
|
+
productName: string;
|
|
110
|
+
status: SubscriptionStatus;
|
|
111
|
+
price: Price;
|
|
112
|
+
gatewayName: string;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
accessToken: string;
|
|
115
|
+
recurringInterval: string;
|
|
116
|
+
currentChargeAttempt: number;
|
|
117
|
+
nextChargeAttemptAt?: string;
|
|
118
|
+
activeTo?: string;
|
|
119
|
+
productDescription?: string;
|
|
120
|
+
productImage?: {
|
|
121
|
+
id: number;
|
|
122
|
+
cfId: string;
|
|
123
|
+
};
|
|
124
|
+
availableGateways: string[];
|
|
125
|
+
gatewayInfo?: SubscriptionGatewayInfo;
|
|
126
|
+
coupon?: SubscriptionCoupon;
|
|
127
|
+
variantId: number;
|
|
128
|
+
pricingPlanExists: boolean;
|
|
129
|
+
}
|
|
130
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Price } from './price';
|
|
2
|
+
export declare enum TransactionStatus {
|
|
3
|
+
ADDED = "ADDED",
|
|
4
|
+
REMOVED = "REMOVED"
|
|
5
|
+
}
|
|
6
|
+
export interface Transaction {
|
|
7
|
+
id: string;
|
|
8
|
+
price: Price;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
description: string;
|
|
11
|
+
status: TransactionStatus;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './useCustomerDashboardStore';
|
|
2
|
+
export * from './useStorefrontStore';
|
|
3
|
+
export * from './useCartStore';
|
|
4
|
+
export * from './usePaginationPagesStore';
|
|
5
|
+
export * from './useDiscordStore';
|
|
6
|
+
export * from './useSubscriptionStore';
|
|
7
|
+
export * from './useApiStore';
|
|
8
|
+
export * from './useBlocksStore';
|
|
9
|
+
export * from './useGeneralStore';
|
|
10
|
+
export * from './useSettingsStore';
|
|
11
|
+
export * from './useThemeSettingsStore';
|
|
12
|
+
export * from './useNotificationStore';
|
|
13
|
+
export * from './useModalStore';
|
|
14
|
+
export * from './usePagesStore';
|
|
15
|
+
export * from './useShareLinkStore';
|
|
16
|
+
export * from './useLayersStore';
|
|
17
|
+
export * from './useHistoryState';
|
|
18
|
+
export * from './usePreviewStore';
|
|
19
|
+
export * from './useNavbarStore';
|
|
20
|
+
export * from './useChooseImageStore';
|
|
21
|
+
export * from './useErrorStore';
|
|
22
|
+
export * from './useConfirmationModalStore';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type API_URLS_KEYS = 'api' | 'googleFonts' | 'storeApi' | 'slApi' | 'customersApi' | 'cashappApi';
|
|
2
|
+
export type ApiUrls = Record<API_URLS_KEYS, string>;
|
|
3
|
+
interface Options {
|
|
4
|
+
apiUrls: ApiUrls;
|
|
5
|
+
setApiUrls: (apiUrls: ApiUrls) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const useApiStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Block } from '@constants';
|
|
2
|
+
interface Options {
|
|
3
|
+
header: any;
|
|
4
|
+
footer: any;
|
|
5
|
+
announcement: any;
|
|
6
|
+
setHeader: (header: any) => void;
|
|
7
|
+
setFooter: (footer: any) => void;
|
|
8
|
+
setAnnouncement: (announcement: any) => void;
|
|
9
|
+
blocks: Block | null;
|
|
10
|
+
setBlocks: (blocks: Block | null) => void;
|
|
11
|
+
activeBlock: string | null;
|
|
12
|
+
setActiveBlock: (activeBlock: string | null) => void;
|
|
13
|
+
sourceBlocks: Block;
|
|
14
|
+
setSourceBlocks: (sourceBlocks: Block) => void;
|
|
15
|
+
currentInstance: any;
|
|
16
|
+
setCurrentInstance: (currentInstance: any) => void;
|
|
17
|
+
settings: any;
|
|
18
|
+
setSettings: (settings: any) => void;
|
|
19
|
+
settingsInstance: any;
|
|
20
|
+
setSettingsInstance: (settingsInstance: any) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const useBlocksStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { OrderRequest } from '@storefront/models';
|
|
2
|
+
import { Product } from '../../abstractions';
|
|
3
|
+
export type ValidateCouponApiData = {
|
|
4
|
+
restrictToProductIds?: number[];
|
|
5
|
+
isFixed?: boolean;
|
|
6
|
+
discount?: number;
|
|
7
|
+
};
|
|
8
|
+
export type Cart = OrderRequest & {
|
|
9
|
+
paymentMethod: string;
|
|
10
|
+
};
|
|
11
|
+
interface Options {
|
|
12
|
+
cart: Cart;
|
|
13
|
+
products: Product[];
|
|
14
|
+
coupon: ValidateCouponApiData | null;
|
|
15
|
+
pending: boolean;
|
|
16
|
+
applyCouponPending: boolean;
|
|
17
|
+
customerEmail: string | null;
|
|
18
|
+
recaptcha: string;
|
|
19
|
+
priceAdjustment: {
|
|
20
|
+
fixedAmount: number;
|
|
21
|
+
isDiscount: boolean;
|
|
22
|
+
percentage: number;
|
|
23
|
+
} | null;
|
|
24
|
+
serviceFee: {
|
|
25
|
+
fixedAmount: number;
|
|
26
|
+
isDiscount: boolean;
|
|
27
|
+
percentage: number;
|
|
28
|
+
} | null;
|
|
29
|
+
setCart: (updater: Cart | ((prev: Cart) => Cart)) => void;
|
|
30
|
+
setProducts: (updater: Product[] | ((prev: Product[]) => Product[])) => void;
|
|
31
|
+
setCoupon: (coupon: ValidateCouponApiData | null) => void;
|
|
32
|
+
setPending: (pending: boolean) => void;
|
|
33
|
+
setApplyCouponPending: (pending: boolean) => void;
|
|
34
|
+
setRecaptcha: (recaptcha: string) => void;
|
|
35
|
+
setCustomerEmail: (customerEmail: string) => void;
|
|
36
|
+
setPriceAdjustment: (value: {
|
|
37
|
+
fixedAmount: number;
|
|
38
|
+
isDiscount: boolean;
|
|
39
|
+
percentage: number;
|
|
40
|
+
} | null) => void;
|
|
41
|
+
setServiceFee: (value: {
|
|
42
|
+
fixedAmount: number;
|
|
43
|
+
isDiscount: boolean;
|
|
44
|
+
percentage: number;
|
|
45
|
+
} | null) => void;
|
|
46
|
+
}
|
|
47
|
+
export declare const useCartStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type OnChange = (images: string[]) => void;
|
|
2
|
+
interface Options {
|
|
3
|
+
openModal: boolean;
|
|
4
|
+
setOpenModal: (openModal: boolean) => void;
|
|
5
|
+
onChange: OnChange | null;
|
|
6
|
+
setOnChange: (onChange: OnChange) => void;
|
|
7
|
+
tip: string;
|
|
8
|
+
setTip: (tip: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useChooseImageStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
title: string | null;
|
|
3
|
+
description: string | null;
|
|
4
|
+
onConfirm: (() => void) | null;
|
|
5
|
+
setTitle: (title: string | null) => void;
|
|
6
|
+
setDescription: (description: string | null) => void;
|
|
7
|
+
setOnConfirm: (onConfirm: (() => void) | null) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useConfirmationModalStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AntistockRoutes, Routes } from '@storefront/constants';
|
|
2
|
+
import { BalanceTopUpSettings, GatewayDetail } from '@storefront/models';
|
|
3
|
+
import { Actions } from '../constants/actions';
|
|
4
|
+
export interface DashInfo {
|
|
5
|
+
email: string;
|
|
6
|
+
id: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Balance {
|
|
9
|
+
amount: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
}
|
|
12
|
+
interface Options {
|
|
13
|
+
route: Routes | AntistockRoutes;
|
|
14
|
+
setRoute: (route: Routes | AntistockRoutes) => void;
|
|
15
|
+
action: Actions | null;
|
|
16
|
+
setAction: (action: Actions | null) => void;
|
|
17
|
+
otpRequest: {
|
|
18
|
+
requested: boolean;
|
|
19
|
+
email: string;
|
|
20
|
+
};
|
|
21
|
+
setOtpRequest: (otpRequest: {
|
|
22
|
+
requested: boolean;
|
|
23
|
+
email: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
balanceSettings: BalanceTopUpSettings | null;
|
|
26
|
+
setBalanceSettings: (balanceSettings: BalanceTopUpSettings | null) => void;
|
|
27
|
+
gatewaysDetail: GatewayDetail[] | null;
|
|
28
|
+
setGatewaysDetail: (gatewaysDetail: GatewayDetail[] | null) => void;
|
|
29
|
+
dashInfo: DashInfo | null;
|
|
30
|
+
setDashInfo: (dashInfo: DashInfo | null) => void;
|
|
31
|
+
balance: Balance | null;
|
|
32
|
+
setBalance: (balance: Balance | null) => void;
|
|
33
|
+
isBalanceModalOpen: boolean;
|
|
34
|
+
setIsBalanceModalOpen: (isOpen: boolean) => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const useCustomerDashboardStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DiscordUser } from '@storefront/models';
|
|
2
|
+
interface Options {
|
|
3
|
+
discordInfo: DiscordUser | null;
|
|
4
|
+
setDiscordInfo: (discordInfo: DiscordUser | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useDiscordStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Error {
|
|
2
|
+
message: string;
|
|
3
|
+
failedPageIds: number[];
|
|
4
|
+
failedThemeSettings: boolean;
|
|
5
|
+
failedSettings: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Options {
|
|
8
|
+
error: Error | null;
|
|
9
|
+
setError: (error: Error | null) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useErrorStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShopInfo } from '@storefront/models';
|
|
2
|
+
interface Options {
|
|
3
|
+
general: ShopInfo | null;
|
|
4
|
+
setGeneral: (general: ShopInfo | null) => void;
|
|
5
|
+
isAntistock: boolean;
|
|
6
|
+
setIsAntistock: (isAntistock: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useGeneralStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useThemeSettingsStore } from '@storefront/store';
|
|
2
|
+
import { useLayersStore } from '@storefront/store';
|
|
3
|
+
import { useSettingsStore } from '@storefront/store';
|
|
4
|
+
interface UndoRedoSnapshot {
|
|
5
|
+
themeSettings?: ReturnType<typeof useThemeSettingsStore.getState>['themeSettings'];
|
|
6
|
+
layers?: ReturnType<typeof useLayersStore.getState>['blocks'];
|
|
7
|
+
header?: ReturnType<typeof useLayersStore.getState>['header'];
|
|
8
|
+
footer?: ReturnType<typeof useLayersStore.getState>['footer'];
|
|
9
|
+
announcement?: ReturnType<typeof useLayersStore.getState>['announcement'];
|
|
10
|
+
settings?: ReturnType<typeof useSettingsStore.getState>['settings'];
|
|
11
|
+
}
|
|
12
|
+
interface HistoryState {
|
|
13
|
+
past: UndoRedoSnapshot[];
|
|
14
|
+
future: UndoRedoSnapshot[];
|
|
15
|
+
addHistory: (snapshot: UndoRedoSnapshot) => void;
|
|
16
|
+
undo: () => void;
|
|
17
|
+
redo: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const useHistoryStore: import("zustand").UseBoundStore<import("zustand").StoreApi<HistoryState>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
header: Record<string, any> | null;
|
|
3
|
+
footer: Record<string, any> | null;
|
|
4
|
+
announcement: Record<string, any> | null;
|
|
5
|
+
blocks: Record<string, {
|
|
6
|
+
data: Record<string, any>;
|
|
7
|
+
order: string[];
|
|
8
|
+
}>;
|
|
9
|
+
currentBlock: string | null;
|
|
10
|
+
positionBlock: number | null;
|
|
11
|
+
setBlocks: (blocks: Record<string, {
|
|
12
|
+
data: Record<string, any>;
|
|
13
|
+
order: string[];
|
|
14
|
+
}>) => void;
|
|
15
|
+
setHeader: (header: Record<string, any>, addHistory?: boolean) => void;
|
|
16
|
+
setFooter: (footer: Record<string, any>, addHistory?: boolean) => void;
|
|
17
|
+
setAnnouncement: (announcement: Record<string, any> | null, addHistory?: boolean) => void;
|
|
18
|
+
createPage: (name: string) => void;
|
|
19
|
+
deletePage: (name: string) => void;
|
|
20
|
+
updatePage: (oldName: string, newName: string) => void;
|
|
21
|
+
setPositionBlock: (blockId: string | null, insertBelow: boolean) => void;
|
|
22
|
+
addBlock: (path: string, any: any) => string;
|
|
23
|
+
editBlock: (path: string, id: string, any: any) => void;
|
|
24
|
+
removeBlock: (path: string, blockName: string) => void;
|
|
25
|
+
setCurrentBlock: (blockName: string | null) => void;
|
|
26
|
+
moveBlock: (path: string, fromIndex: number, toIndex: number) => void;
|
|
27
|
+
duplicateBlock: (path: string, id: string) => void;
|
|
28
|
+
isLoadingLayers: boolean;
|
|
29
|
+
setIsLoadingLayers: (isLoadingLayers: boolean) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const useLayersStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<Options>, "persist"> & {
|
|
32
|
+
persist: {
|
|
33
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<Options, Options>>) => void;
|
|
34
|
+
clearStorage: () => void;
|
|
35
|
+
rehydrate: () => Promise<void> | void;
|
|
36
|
+
hasHydrated: () => boolean;
|
|
37
|
+
onHydrate: (fn: (state: Options) => void) => () => void;
|
|
38
|
+
onFinishHydration: (fn: (state: Options) => void) => () => void;
|
|
39
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<Options, Options>>;
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavbarBlock } from '@constants';
|
|
2
|
+
interface Options {
|
|
3
|
+
activeBlock: NavbarBlock;
|
|
4
|
+
setActiveBlock: (activeBlock: NavbarBlock) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useNavbarStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Notification } from '@constants';
|
|
2
|
+
interface Options {
|
|
3
|
+
notifications: Notification[];
|
|
4
|
+
setNotifications: (notifications: Notification[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useNotificationStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Page } from '@constants';
|
|
2
|
+
import { PageContext } from '../../abstractions';
|
|
3
|
+
interface Options {
|
|
4
|
+
pages: Record<string, Page> | null;
|
|
5
|
+
setPages: (pages: Record<string, Page> | null) => void;
|
|
6
|
+
pageContext: PageContext;
|
|
7
|
+
currentPage: string;
|
|
8
|
+
isOpenModal: boolean;
|
|
9
|
+
isOpenSelectModal: boolean;
|
|
10
|
+
isEdit: boolean;
|
|
11
|
+
editedPage: string | null;
|
|
12
|
+
setEditedPage: (editedPage: string | null) => void;
|
|
13
|
+
setCurrentPage: (currentPage: string) => void;
|
|
14
|
+
setPageContext: (pageContext: PageContext) => void;
|
|
15
|
+
setIsOpenModal: (isOpenModal: boolean) => void;
|
|
16
|
+
setIsOpenSelectModal: (isOpenSelectModal: boolean) => void;
|
|
17
|
+
setIsEdit: (isEdit: boolean) => void;
|
|
18
|
+
createPage: (page: Page) => void;
|
|
19
|
+
updatePage: (id: string, page: Page) => void;
|
|
20
|
+
deletePage: (id: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const usePagesStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<Options>, "persist"> & {
|
|
23
|
+
persist: {
|
|
24
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<Options, Options>>) => void;
|
|
25
|
+
clearStorage: () => void;
|
|
26
|
+
rehydrate: () => Promise<void> | void;
|
|
27
|
+
hasHydrated: () => boolean;
|
|
28
|
+
onHydrate: (fn: (state: Options) => void) => () => void;
|
|
29
|
+
onFinishHydration: (fn: (state: Options) => void) => () => void;
|
|
30
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<Options, Options>>;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
onPreview: boolean;
|
|
3
|
+
setOnPreview: (onPreview: boolean) => void;
|
|
4
|
+
activeBlock: {
|
|
5
|
+
id: string | null;
|
|
6
|
+
neededScroll: boolean;
|
|
7
|
+
};
|
|
8
|
+
setActiveBlock: (activeBlock: {
|
|
9
|
+
id: string | null;
|
|
10
|
+
neededScroll: boolean;
|
|
11
|
+
}) => void;
|
|
12
|
+
zoomLevel: number;
|
|
13
|
+
setZoomLevel: (zoomLevel: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const usePreviewStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<Options>, "persist"> & {
|
|
16
|
+
persist: {
|
|
17
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<Options, Options>>) => void;
|
|
18
|
+
clearStorage: () => void;
|
|
19
|
+
rehydrate: () => Promise<void> | void;
|
|
20
|
+
hasHydrated: () => boolean;
|
|
21
|
+
onHydrate: (fn: (state: Options) => void) => () => void;
|
|
22
|
+
onFinishHydration: (fn: (state: Options) => void) => () => void;
|
|
23
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<Options, Options>>;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISettings } from '../../abstractions/index.js';
|
|
2
|
+
type Settings = ISettings & {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
interface Options {
|
|
6
|
+
settings: Settings | null;
|
|
7
|
+
setSettings: (settings: Settings | null) => void;
|
|
8
|
+
isLoadingSettings: boolean;
|
|
9
|
+
setIsLoadingSettings: (isLoadingSettings: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ShopInfo, ShopPrivacyPolicy, ShopRefundPolicy, ShopTerms } from '@storefront/models';
|
|
2
|
+
interface StorefrontOptions {
|
|
3
|
+
token: string | null;
|
|
4
|
+
setToken: (token: string | null) => void;
|
|
5
|
+
shopDomain: string;
|
|
6
|
+
setShopDomain: (domain: string) => void;
|
|
7
|
+
shopId: string;
|
|
8
|
+
setShopId: (id: string) => void;
|
|
9
|
+
shopPassword: string;
|
|
10
|
+
setShopPassword: (password: string) => void;
|
|
11
|
+
shopGeneral: ShopInfo | null;
|
|
12
|
+
setShopGeneral: (general: ShopInfo | null) => void;
|
|
13
|
+
shopTerms: ShopTerms | null;
|
|
14
|
+
setShopTerms: (terms: ShopTerms | null) => void;
|
|
15
|
+
shopPrivacyPolicy: ShopPrivacyPolicy | null;
|
|
16
|
+
setShopPrivacyPolicy: (policy: ShopPrivacyPolicy | null) => void;
|
|
17
|
+
shopRefundPolicy: ShopRefundPolicy | null;
|
|
18
|
+
setShopRefundPolicy: (policy: ShopRefundPolicy | null) => void;
|
|
19
|
+
shopLogo: React.ReactElement | null;
|
|
20
|
+
setShopLogo: (logo: React.ReactElement | null) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const useStorefrontStore: import("zustand").UseBoundStore<import("zustand").StoreApi<StorefrontOptions>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SubscriptionFullItem } from '@storefront/models';
|
|
2
|
+
interface Options {
|
|
3
|
+
subscription: SubscriptionFullItem | null;
|
|
4
|
+
setSubscription: (subscription: SubscriptionFullItem | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useSubscriptionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BorderFields, ButtonFields, FontFields, FontType, FontTypeHeading, FontTypeBody, ThemeSettings, ThemeSettingsBlock } from '@constants';
|
|
2
|
+
interface Options {
|
|
3
|
+
activeBlock: ThemeSettingsBlock | null;
|
|
4
|
+
setActiveBlock: (activeBlock: ThemeSettingsBlock | null) => void;
|
|
5
|
+
themeSettings: ThemeSettings;
|
|
6
|
+
setThemeSettings: (themeSettings: ThemeSettings) => void;
|
|
7
|
+
updateColor: (category: keyof ThemeSettings['colors'], colorType: string, newColor: string) => void;
|
|
8
|
+
updateFont: (deviceType: 'mobile' | 'tablet' | 'desktop', fontType: FontType, id: FontTypeHeading | FontTypeBody, field: keyof FontFields, newValue: string | number) => void;
|
|
9
|
+
updateBorder: (field: keyof BorderFields, newValue: string | number) => void;
|
|
10
|
+
updateButton: (category: keyof ThemeSettings['buttons'], field: keyof ButtonFields, newValue: string | number | boolean | object) => void;
|
|
11
|
+
activeColorCategory: keyof ThemeSettings['colors'] | null;
|
|
12
|
+
setActiveColorCategory: (activeColorCategory: keyof ThemeSettings['colors'] | null) => void;
|
|
13
|
+
activeFont: FontTypeHeading | FontTypeBody | null;
|
|
14
|
+
setActiveFont: (activeFont: FontTypeHeading | FontTypeBody | null) => void;
|
|
15
|
+
updateInput: (category: keyof ThemeSettings['inputs'], value: string | number | boolean, field: keyof ThemeSettings['inputs']['general'] | keyof ThemeSettings['inputs']['border'] | keyof ThemeSettings['inputs']['label'] | keyof ThemeSettings['inputs']['field']) => void;
|
|
16
|
+
updateFontSizePercentage: (fontType: 'mobile' | 'tablet', newValue: number) => void;
|
|
17
|
+
isLoadingThemeSettings: boolean;
|
|
18
|
+
setIsLoadingThemeSettings: (isLoadingThemeSettings: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const useThemeSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
21
|
+
export {};
|