@billgangcom/theme-lib 1.68.0 → 1.69.2
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.d.ts +2 -3
- package/dist/abstractions/IBlock.d.ts +1 -1
- package/dist/abstractions/PageContext.d.ts +73 -69
- package/dist/{builder/constants/api.d.ts → api/constants.d.ts} +2 -0
- package/dist/api/index.d.ts +1 -6
- package/dist/api/request.d.ts +8 -4
- package/dist/assets/storefront-icons/index.d.ts +10 -0
- package/dist/builder/api/index.d.ts +4 -0
- package/dist/builder/components/BlockColors/index.d.ts +1 -1
- package/dist/builder/components/BlockSettings/settings.d.ts +1 -1
- package/dist/builder/components/HeaderSaveButton/api/index.d.ts +1 -4
- package/dist/builder/components/HeaderSaveButton/utils/index.d.ts +1 -1
- package/dist/builder/components/HeaderSettingsPages/api/index.d.ts +1 -4
- package/dist/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +1 -1
- package/dist/builder/constants/index.d.ts +0 -2
- package/dist/builder/constants/notification.d.ts +1 -0
- package/dist/builder/constants/theme-settings.d.ts +5 -0
- package/dist/builder/store/useGeneralStore.d.ts +3 -3
- package/dist/builder/store/useNotificationStore.d.ts +2 -2
- package/dist/builder/ui/ChooseImage/api/index.d.ts +2 -8
- package/dist/builder/ui/Notification/index.d.ts +11 -0
- package/dist/builder/ui/index.d.ts +0 -2
- package/dist/builder.cjs.js +133 -49
- package/dist/builder.es.js +18282 -2905
- package/dist/index-C4QNkEHy.js +15889 -0
- package/dist/index-DxsasI6U.cjs +80 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +8 -8
- package/dist/lib/createTicket.d.ts +1 -4
- package/dist/lib/generateDynamicStyles.d.ts +1 -1
- package/dist/lib/setupDynamicFonts.d.ts +1 -1
- package/dist/pages/balance/balance-modal.d.ts +7 -0
- package/dist/pages/balance/index.d.ts +1 -0
- package/dist/pages/balance/model.d.ts +6 -0
- package/dist/pages/charge/index.d.ts +1 -0
- package/dist/pages/checkout/index.d.ts +1 -0
- package/dist/pages/checkout/model.d.ts +1 -0
- package/dist/pages/dynamic-page/api/index.d.ts +1 -4
- package/dist/pages/error-page/api/index.d.ts +1 -4
- package/dist/pages/home/index.d.ts +1 -0
- package/dist/pages/home/model.d.ts +26 -0
- package/dist/pages/order/index.d.ts +1 -0
- package/dist/pages/order/model.d.ts +91 -0
- package/dist/pages/orders/index.d.ts +1 -0
- package/dist/pages/orders/model.d.ts +4 -0
- package/dist/pages/rewards/index.d.ts +1 -0
- package/dist/pages/rewards/model.d.ts +71 -0
- package/dist/pages/subscription/index.d.ts +1 -0
- package/dist/pages/subscription/model.d.ts +1 -0
- package/dist/pages/subscriptions/index.d.ts +1 -0
- package/dist/pages/subscriptions/model.d.ts +6 -0
- package/dist/pages/ticket/index.d.ts +1 -0
- package/dist/pages/ticket/model.d.ts +24 -0
- package/dist/pages/tickets/index.d.ts +1 -0
- package/dist/pages/tickets/model.d.ts +21 -0
- package/dist/pages/top-up-balance/index.d.ts +1 -0
- package/dist/storefront/api/auth.d.ts +20 -0
- package/dist/storefront/api/charge.d.ts +1 -0
- package/dist/storefront/api/coupon.d.ts +2 -0
- package/dist/storefront/api/customer.d.ts +6 -0
- package/dist/storefront/api/discord.d.ts +7 -0
- package/dist/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/storefront/api/index.d.ts +18 -0
- package/dist/storefront/api/order.d.ts +14 -0
- package/dist/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/storefront/api/referral.d.ts +3 -0
- package/dist/storefront/api/reviews.d.ts +2 -0
- package/dist/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/storefront/api/store.d.ts +6 -0
- package/dist/storefront/api/subscription.d.ts +22 -0
- package/dist/storefront/api/ticket.d.ts +7 -0
- package/dist/storefront/api/transactions.d.ts +5 -0
- package/dist/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/storefront/components/Auth/index.d.ts +11 -0
- package/dist/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/storefront/components/CheckoutOperational/index.d.ts +24 -0
- package/dist/storefront/components/CheckoutOrderMainData/index.d.ts +9 -0
- package/dist/storefront/components/CheckoutPrices/index.d.ts +12 -0
- package/dist/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/storefront/components/NoItemsBlock/index.d.ts +7 -0
- package/dist/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/storefront/components/OrdersTable/index.d.ts +16 -0
- package/dist/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +13 -0
- package/dist/storefront/components/PaymentMethod/index.d.ts +15 -0
- package/dist/storefront/components/PaymentMethod/model.d.ts +16 -0
- package/dist/storefront/components/PaymentMethods/index.d.ts +18 -0
- package/dist/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/index.d.ts +13 -0
- package/dist/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/storefront/components/SecuredBySsl/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/card.d.ts +6 -0
- package/dist/storefront/components/Sidebar/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/nav-list.d.ts +2 -0
- package/dist/storefront/components/StatItem/index.d.ts +14 -0
- package/dist/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/storefront/components/Table/index.d.ts +19 -0
- package/dist/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/storefront/components/index.d.ts +53 -0
- package/dist/storefront/constants/api.d.ts +3 -0
- package/dist/storefront/constants/index.d.ts +3 -0
- package/dist/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/storefront/constants/routes.d.ts +8 -0
- package/dist/storefront/hooks/index.d.ts +2 -0
- package/dist/storefront/hooks/useCart.d.ts +186 -0
- package/dist/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/storefront/index.d.ts +9 -0
- package/dist/storefront/models/balance.d.ts +46 -0
- package/dist/storefront/models/charge.d.ts +75 -0
- package/dist/storefront/models/checkout.d.ts +16 -0
- package/dist/storefront/models/coupon.d.ts +5 -0
- package/dist/storefront/models/discord.d.ts +22 -0
- package/dist/storefront/models/gateway.d.ts +8 -0
- package/dist/storefront/models/index.d.ts +15 -0
- package/dist/storefront/models/order.d.ts +131 -0
- package/dist/storefront/models/payment.d.ts +15 -0
- package/dist/storefront/models/post.d.ts +5 -0
- package/dist/storefront/models/price.d.ts +5 -0
- package/dist/storefront/models/referral.d.ts +12 -0
- package/dist/storefront/models/referralCode.d.ts +3 -0
- package/dist/{builder/constants/general.d.ts → storefront/models/shop.d.ts} +19 -6
- package/dist/storefront/models/subscription.d.ts +129 -0
- package/dist/storefront/models/transaction.d.ts +12 -0
- package/dist/storefront/store/index.d.ts +6 -0
- package/dist/storefront/store/useCartStore.d.ts +25 -0
- package/dist/storefront/store/useCustomerDashboardStore.d.ts +32 -0
- package/dist/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/storefront/store/usePaginationPagesStore.d.ts +6 -0
- package/dist/storefront/store/useStorefrontStore.d.ts +21 -0
- package/dist/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/storefront/ui/index.d.ts +5 -0
- package/dist/storefront/utils/index.d.ts +16 -0
- package/dist/storefront/utils/recapcha.d.ts +12 -0
- package/dist/ui/Button/index.d.ts +1 -1
- package/dist/ui/CategorySettings/index.d.ts +1 -1
- package/dist/ui/GroupCardModal/index.d.ts +13 -0
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/ItemsSettings/index.d.ts +1 -1
- package/dist/ui/ListingSelector/index.d.ts +1 -1
- package/dist/ui/Loader/index.d.ts +4 -0
- package/dist/ui/Modal/index.d.ts +9 -0
- package/dist/ui/Radio/index.d.ts +14 -0
- package/dist/ui/Select/index.d.ts +20 -0
- package/dist/ui/Select/utils/index.d.ts +2 -0
- package/dist/ui/index.d.ts +5 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1277 -1281
- package/package.json +7 -3
- package/dist/api/fetchThemeAndSettings.d.ts +0 -4
- package/dist/index-BaU8m6yb.cjs +0 -194
- package/dist/index-zSoKRTpK.js +0 -34420
- /package/dist/{api → builder/api}/fetchAll.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchFontsData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchPagesData.d.ts +0 -0
- /package/dist/{api → storefront/api}/fetchGeneral.d.ts +0 -0
package/dist/App.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import '@billgangcom/frontend-lib/styles.css';
|
|
3
2
|
import 'non.geist';
|
|
4
3
|
import './styles/main.scss';
|
|
5
4
|
interface AppProps {
|
|
@@ -12,5 +11,5 @@ interface AppProps {
|
|
|
12
11
|
export declare const App: React.FC<AppProps>;
|
|
13
12
|
export * from './abstractions';
|
|
14
13
|
export { hotReload, splitTextIntoSpans, createTicket } from './lib';
|
|
15
|
-
export { iconNames, type IconNames, ColorVariables, type AspectRatio, aspectRatioOptions, } from '@constants';
|
|
16
|
-
export { ReCaptchaProvider, useReCaptcha } from '
|
|
14
|
+
export { iconNames, type IconNames, ColorVariables, type AspectRatio, aspectRatioOptions, } from '@builder/constants';
|
|
15
|
+
export { ReCaptchaProvider, useReCaptcha } from './storefront/utils/recapcha';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShopInfo } from '@storefront/models';
|
|
2
2
|
import { ListingData } from '../ui';
|
|
3
3
|
type Listing = ListingData<'PRODUCT'> | ListingData<'GROUP'> | ListingData<'POST'>;
|
|
4
4
|
export interface Product {
|
|
@@ -7,15 +7,43 @@ export interface Product {
|
|
|
7
7
|
name: string;
|
|
8
8
|
shortDescription?: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
images:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 ProductVariant {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
shortDescription?: string;
|
|
37
|
+
price: {
|
|
38
|
+
amount: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
};
|
|
41
|
+
compareAtPrice?: {
|
|
42
|
+
amount: number;
|
|
43
|
+
currency: string;
|
|
44
|
+
};
|
|
45
|
+
chargeTypes?: Array<'ONE_TIME' | 'RECURRING'>;
|
|
46
|
+
subscriptionSettings?: {
|
|
19
47
|
price: {
|
|
20
48
|
amount: number;
|
|
21
49
|
currency: string;
|
|
@@ -24,69 +52,45 @@ export interface Product {
|
|
|
24
52
|
amount: number;
|
|
25
53
|
currency: string;
|
|
26
54
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
currency: string;
|
|
32
|
-
};
|
|
33
|
-
compareAtPrice?: {
|
|
34
|
-
amount: number;
|
|
35
|
-
currency: string;
|
|
36
|
-
};
|
|
37
|
-
recurringIntervalDays?: number;
|
|
38
|
-
entryFee?: {
|
|
39
|
-
amount: number;
|
|
40
|
-
currency: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
quantity: {
|
|
44
|
-
available?: number;
|
|
45
|
-
restrictions?: {
|
|
46
|
-
min: number;
|
|
47
|
-
max: number;
|
|
48
|
-
};
|
|
55
|
+
recurringIntervalDays?: number;
|
|
56
|
+
entryFee?: {
|
|
57
|
+
amount: number;
|
|
58
|
+
currency: string;
|
|
49
59
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
currency: string;
|
|
57
|
-
};
|
|
58
|
-
}>;
|
|
59
|
-
customFields: Array<{
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
required: boolean;
|
|
63
|
-
placeholder?: string;
|
|
64
|
-
defaultValue?: string;
|
|
65
|
-
regex?: string;
|
|
66
|
-
type: 'NUMBER' | 'TEXT' | 'SELECT';
|
|
67
|
-
}>;
|
|
68
|
-
warranty?: {
|
|
69
|
-
text: string;
|
|
70
|
-
durationMilliseconds?: number;
|
|
60
|
+
};
|
|
61
|
+
quantity: {
|
|
62
|
+
available?: number;
|
|
63
|
+
restrictions?: {
|
|
64
|
+
min: number;
|
|
65
|
+
max: number;
|
|
71
66
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
};
|
|
68
|
+
deliveryTime?: number;
|
|
69
|
+
terms?: string;
|
|
70
|
+
gateways: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
overrodePrice?: {
|
|
73
|
+
amount: number;
|
|
74
|
+
currency: string;
|
|
75
75
|
};
|
|
76
76
|
}>;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
rating: number;
|
|
86
|
-
createdAtIso: string;
|
|
87
|
-
purchasedIso: string;
|
|
88
|
-
storeReply?: string;
|
|
77
|
+
customFields: Array<{
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
placeholder?: string;
|
|
82
|
+
defaultValue?: string;
|
|
83
|
+
regex?: string;
|
|
84
|
+
type: 'NUMBER' | 'TEXT' | 'SELECT';
|
|
89
85
|
}>;
|
|
86
|
+
warranty?: {
|
|
87
|
+
text: string;
|
|
88
|
+
durationMilliseconds?: number;
|
|
89
|
+
};
|
|
90
|
+
discordSettings: {
|
|
91
|
+
isEnabled: boolean;
|
|
92
|
+
isRequired: boolean;
|
|
93
|
+
};
|
|
90
94
|
}
|
|
91
95
|
export interface Faq {
|
|
92
96
|
id: number;
|
|
@@ -104,7 +108,7 @@ export interface PageContext {
|
|
|
104
108
|
reviews: any;
|
|
105
109
|
categories: Category[] | null;
|
|
106
110
|
faqs: Faq[] | null;
|
|
107
|
-
general:
|
|
111
|
+
general: ShopInfo | null;
|
|
108
112
|
fullPosts: any;
|
|
109
113
|
posts: any;
|
|
110
114
|
}
|
|
@@ -2,3 +2,5 @@ export declare const API_URL = "https://g-api.billgang.com";
|
|
|
2
2
|
export declare const GOOGLE_FONTS_API = "https://www.googleapis.com/webfonts/v1/webfonts";
|
|
3
3
|
export declare const STORE_API_URL = "https://stores-api.billgang.com";
|
|
4
4
|
export declare const SL_API_URL = "https://sl-api.billgang.com";
|
|
5
|
+
export declare const CUSTOMERS_API_URL = "https://customers-api.billgang.com";
|
|
6
|
+
export declare const CASHAPP_API_URL = "https://cashapp-api.billgang.com";
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
export * from './request';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './fetchFontsData';
|
|
4
|
-
export * from './fetchPagesData';
|
|
5
|
-
export * from './fetchAll';
|
|
6
|
-
export * from './fetchGeneral';
|
|
7
|
-
export * from './fetchThemeAndSettings';
|
|
2
|
+
export * from './constants';
|
package/dist/api/request.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
1
2
|
export type Method = 'get' | 'post' | 'put' | 'delete';
|
|
2
3
|
interface RequestOptions {
|
|
3
4
|
withToken: boolean;
|
|
@@ -5,9 +6,12 @@ interface RequestOptions {
|
|
|
5
6
|
method: Method;
|
|
6
7
|
body?: Record<string, any>;
|
|
7
8
|
contentType?: string;
|
|
9
|
+
typeToken?: 'seller' | 'customer';
|
|
8
10
|
}
|
|
9
|
-
export
|
|
10
|
-
data:
|
|
11
|
-
status
|
|
12
|
-
|
|
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>>;
|
|
13
17
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const FilledStar: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Cryptocurrency: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DebitCreditCard: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const CashApp: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const PayPal: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ApplePayGooglePay: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const BankTransfer: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Visa: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Cryptocurrencies: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Hoodpay: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { Method } from '@api';
|
|
2
|
-
export declare const updateSettings: (method: Method, endpoint: string, data?: Record<string, any>) => Promise<
|
|
3
|
-
data: any;
|
|
4
|
-
status: number;
|
|
5
|
-
}>;
|
|
2
|
+
export declare const updateSettings: (method: Method, endpoint: string, data?: Record<string, any>) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page } from '@constants';
|
|
1
|
+
import { Page } from '@builder/constants';
|
|
2
2
|
import { PageContext, TypeVariable } from '../../../../abstractions';
|
|
3
3
|
export declare function getValues(name: TypeVariable, blocks: Record<string, any>[]): any[];
|
|
4
4
|
export declare function getCount(name: TypeVariable, blocks: Record<string, any>[], pageContext: PageContext): number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeSettings } from '@constants';
|
|
1
|
+
import { ThemeSettings } from '@builder/constants';
|
|
2
2
|
export declare function getDuplicateColors(themeSettingsColors: ThemeSettings['colors']): string[];
|
|
@@ -2,7 +2,6 @@ export * from './navbar';
|
|
|
2
2
|
export * from './device';
|
|
3
3
|
export * from './blocks';
|
|
4
4
|
export * from './theme-settings';
|
|
5
|
-
export * from './api';
|
|
6
5
|
export * from './font';
|
|
7
6
|
export * from './pages';
|
|
8
7
|
export * from './icon.ts';
|
|
@@ -10,6 +9,5 @@ export * from './notification';
|
|
|
10
9
|
export * from './color-variables';
|
|
11
10
|
export * from './block-icons';
|
|
12
11
|
export * from './local-host';
|
|
13
|
-
export * from './general';
|
|
14
12
|
export * from './radius-variables';
|
|
15
13
|
export * from './aspectRatio';
|
|
@@ -8,6 +8,7 @@ export declare const themeSettingsBlocks: ThemeSettingsBlock[];
|
|
|
8
8
|
export type FontTypeHeading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
|
|
9
9
|
export type FontTypeBody = 'lg' | 'md' | 'sm';
|
|
10
10
|
export type FontType = 'heading' | 'body';
|
|
11
|
+
export type FontCase = 'normal' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
11
12
|
export type BorderType = 'radius' | 'thickness';
|
|
12
13
|
export type ButtonType = 'primary' | 'secondary' | 'link';
|
|
13
14
|
export type Weight = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
@@ -16,6 +17,7 @@ export interface FontFields {
|
|
|
16
17
|
size: number;
|
|
17
18
|
weight: Weight;
|
|
18
19
|
boldWeight: Weight;
|
|
20
|
+
case: FontCase;
|
|
19
21
|
}
|
|
20
22
|
export interface ButtonFields {
|
|
21
23
|
size: number;
|
|
@@ -25,6 +27,9 @@ export interface ButtonFields {
|
|
|
25
27
|
background: string;
|
|
26
28
|
hover: boolean;
|
|
27
29
|
font: string;
|
|
30
|
+
color: string;
|
|
31
|
+
colorHover: string;
|
|
32
|
+
backgroundHover: string;
|
|
28
33
|
boxShadow: {
|
|
29
34
|
left: number;
|
|
30
35
|
top: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShopInfo } from '@storefront/models';
|
|
2
2
|
interface Options {
|
|
3
|
-
general:
|
|
4
|
-
setGeneral: (general:
|
|
3
|
+
general: ShopInfo | null;
|
|
4
|
+
setGeneral: (general: ShopInfo | null) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const useGeneralStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Notification } from '../constants';
|
|
2
2
|
interface Options {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
notifications: Notification[];
|
|
4
|
+
setNotifications: (notifications: Notification[]) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const useNotificationStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export declare const getImages: () => Promise<
|
|
2
|
-
|
|
3
|
-
status: number;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const updateImages: (formData: FormData) => Promise<{
|
|
6
|
-
data: any;
|
|
7
|
-
status: number;
|
|
8
|
-
}>;
|
|
1
|
+
export declare const getImages: () => Promise<import("@api").RequestResponse<any>>;
|
|
2
|
+
export declare const updateImages: (formData: FormData) => Promise<import("@api").RequestResponse<any>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
type: 'warning' | 'error' | 'success';
|
|
4
|
+
message: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
padding?: number;
|
|
7
|
+
timer: number;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Notification: React.FC<Props>;
|
|
11
|
+
export {};
|