@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.
Files changed (202) hide show
  1. package/dist/App.d.ts +2 -3
  2. package/dist/abstractions/IBlock.d.ts +1 -1
  3. package/dist/abstractions/PageContext.d.ts +73 -69
  4. package/dist/{builder/constants/api.d.ts → api/constants.d.ts} +2 -0
  5. package/dist/api/index.d.ts +1 -6
  6. package/dist/api/request.d.ts +8 -4
  7. package/dist/assets/storefront-icons/index.d.ts +10 -0
  8. package/dist/builder/api/index.d.ts +4 -0
  9. package/dist/builder/components/BlockColors/index.d.ts +1 -1
  10. package/dist/builder/components/BlockSettings/settings.d.ts +1 -1
  11. package/dist/builder/components/HeaderSaveButton/api/index.d.ts +1 -4
  12. package/dist/builder/components/HeaderSaveButton/utils/index.d.ts +1 -1
  13. package/dist/builder/components/HeaderSettingsPages/api/index.d.ts +1 -4
  14. package/dist/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +1 -1
  15. package/dist/builder/constants/index.d.ts +0 -2
  16. package/dist/builder/constants/notification.d.ts +1 -0
  17. package/dist/builder/constants/theme-settings.d.ts +5 -0
  18. package/dist/builder/store/useGeneralStore.d.ts +3 -3
  19. package/dist/builder/store/useNotificationStore.d.ts +2 -2
  20. package/dist/builder/ui/ChooseImage/api/index.d.ts +2 -8
  21. package/dist/builder/ui/Notification/index.d.ts +11 -0
  22. package/dist/builder/ui/index.d.ts +0 -2
  23. package/dist/builder.cjs.js +133 -49
  24. package/dist/builder.es.js +18282 -2905
  25. package/dist/index-C4QNkEHy.js +15889 -0
  26. package/dist/index-DxsasI6U.cjs +80 -0
  27. package/dist/index.cjs.js +1 -1
  28. package/dist/index.es.js +8 -8
  29. package/dist/lib/createTicket.d.ts +1 -4
  30. package/dist/lib/generateDynamicStyles.d.ts +1 -1
  31. package/dist/lib/setupDynamicFonts.d.ts +1 -1
  32. package/dist/pages/balance/balance-modal.d.ts +7 -0
  33. package/dist/pages/balance/index.d.ts +1 -0
  34. package/dist/pages/balance/model.d.ts +6 -0
  35. package/dist/pages/charge/index.d.ts +1 -0
  36. package/dist/pages/checkout/index.d.ts +1 -0
  37. package/dist/pages/checkout/model.d.ts +1 -0
  38. package/dist/pages/dynamic-page/api/index.d.ts +1 -4
  39. package/dist/pages/error-page/api/index.d.ts +1 -4
  40. package/dist/pages/home/index.d.ts +1 -0
  41. package/dist/pages/home/model.d.ts +26 -0
  42. package/dist/pages/order/index.d.ts +1 -0
  43. package/dist/pages/order/model.d.ts +91 -0
  44. package/dist/pages/orders/index.d.ts +1 -0
  45. package/dist/pages/orders/model.d.ts +4 -0
  46. package/dist/pages/rewards/index.d.ts +1 -0
  47. package/dist/pages/rewards/model.d.ts +71 -0
  48. package/dist/pages/subscription/index.d.ts +1 -0
  49. package/dist/pages/subscription/model.d.ts +1 -0
  50. package/dist/pages/subscriptions/index.d.ts +1 -0
  51. package/dist/pages/subscriptions/model.d.ts +6 -0
  52. package/dist/pages/ticket/index.d.ts +1 -0
  53. package/dist/pages/ticket/model.d.ts +24 -0
  54. package/dist/pages/tickets/index.d.ts +1 -0
  55. package/dist/pages/tickets/model.d.ts +21 -0
  56. package/dist/pages/top-up-balance/index.d.ts +1 -0
  57. package/dist/storefront/api/auth.d.ts +20 -0
  58. package/dist/storefront/api/charge.d.ts +1 -0
  59. package/dist/storefront/api/coupon.d.ts +2 -0
  60. package/dist/storefront/api/customer.d.ts +6 -0
  61. package/dist/storefront/api/discord.d.ts +7 -0
  62. package/dist/storefront/api/fetchGatewaysDetail.d.ts +1 -0
  63. package/dist/storefront/api/fetchThemeAndSettings.d.ts +1 -0
  64. package/dist/storefront/api/fetchWithPages.d.ts +11 -0
  65. package/dist/storefront/api/index.d.ts +18 -0
  66. package/dist/storefront/api/order.d.ts +14 -0
  67. package/dist/storefront/api/postBalanceTopUp.d.ts +2 -0
  68. package/dist/storefront/api/postCashappLink.d.ts +3 -0
  69. package/dist/storefront/api/referral.d.ts +3 -0
  70. package/dist/storefront/api/reviews.d.ts +2 -0
  71. package/dist/storefront/api/signUpReferral.d.ts +2 -0
  72. package/dist/storefront/api/store.d.ts +6 -0
  73. package/dist/storefront/api/subscription.d.ts +22 -0
  74. package/dist/storefront/api/ticket.d.ts +7 -0
  75. package/dist/storefront/api/transactions.d.ts +5 -0
  76. package/dist/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
  77. package/dist/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
  78. package/dist/storefront/components/Auth/index.d.ts +11 -0
  79. package/dist/storefront/components/Auth/otp-input.d.ts +7 -0
  80. package/dist/storefront/components/AuthModal/index.d.ts +6 -0
  81. package/dist/storefront/components/CancelSubscription/index.d.ts +8 -0
  82. package/dist/storefront/components/CashAppVerify/index.d.ts +7 -0
  83. package/dist/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
  84. package/dist/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
  85. package/dist/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
  86. package/dist/storefront/components/ChargeItems/index.d.ts +7 -0
  87. package/dist/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
  88. package/dist/storefront/components/CheckoutFooter/index.d.ts +6 -0
  89. package/dist/storefront/components/CheckoutHeader/index.d.ts +7 -0
  90. package/dist/storefront/components/CheckoutItems/index.d.ts +18 -0
  91. package/dist/storefront/components/CheckoutOperational/index.d.ts +24 -0
  92. package/dist/storefront/components/CheckoutOrderMainData/index.d.ts +9 -0
  93. package/dist/storefront/components/CheckoutPrices/index.d.ts +12 -0
  94. package/dist/storefront/components/CheckoutProduct/index.d.ts +8 -0
  95. package/dist/storefront/components/CheckoutProduct/model.d.ts +1 -0
  96. package/dist/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
  97. package/dist/storefront/components/ConnectDiscord/index.d.ts +6 -0
  98. package/dist/storefront/components/ConnectDiscord/model.d.ts +22 -0
  99. package/dist/storefront/components/Coupon/index.d.ts +12 -0
  100. package/dist/storefront/components/CustomFields/index.d.ts +13 -0
  101. package/dist/storefront/components/CustomerDashboard/index.d.ts +2 -0
  102. package/dist/storefront/components/DeliveryItem/index.d.ts +7 -0
  103. package/dist/storefront/components/InsufficientBalance/index.d.ts +8 -0
  104. package/dist/storefront/components/LeaveAReview/index.d.ts +9 -0
  105. package/dist/storefront/components/NoItemsBlock/index.d.ts +7 -0
  106. package/dist/storefront/components/OpenDelivery/index.d.ts +8 -0
  107. package/dist/storefront/components/OrderStatusBlock/index.d.ts +9 -0
  108. package/dist/storefront/components/OrdersTable/index.d.ts +16 -0
  109. package/dist/storefront/components/PageLoading/index.d.ts +7 -0
  110. package/dist/storefront/components/PageTitle/index.d.ts +6 -0
  111. package/dist/storefront/components/Pagination/index.d.ts +15 -0
  112. package/dist/storefront/components/PayPalF&FNote/index.d.ts +8 -0
  113. package/dist/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +13 -0
  114. package/dist/storefront/components/PaymentMethod/index.d.ts +15 -0
  115. package/dist/storefront/components/PaymentMethod/model.d.ts +16 -0
  116. package/dist/storefront/components/PaymentMethods/index.d.ts +18 -0
  117. package/dist/storefront/components/ProcessingPayment/index.d.ts +1 -0
  118. package/dist/storefront/components/ReferralBlock/index.d.ts +13 -0
  119. package/dist/storefront/components/ReferralBlock/mask.d.ts +1 -0
  120. package/dist/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
  121. package/dist/storefront/components/ReferralBlock/step-item.d.ts +8 -0
  122. package/dist/storefront/components/SecuredBySsl/index.d.ts +1 -0
  123. package/dist/storefront/components/Sidebar/card.d.ts +6 -0
  124. package/dist/storefront/components/Sidebar/index.d.ts +1 -0
  125. package/dist/storefront/components/Sidebar/nav-list.d.ts +2 -0
  126. package/dist/storefront/components/StatItem/index.d.ts +14 -0
  127. package/dist/storefront/components/StatusIndicator/index.d.ts +7 -0
  128. package/dist/storefront/components/SubmitReview/index.d.ts +7 -0
  129. package/dist/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
  130. package/dist/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
  131. package/dist/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
  132. package/dist/storefront/components/SubscriptionProduct/index.d.ts +7 -0
  133. package/dist/storefront/components/SubscriptionProduct/model.d.ts +9 -0
  134. package/dist/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
  135. package/dist/storefront/components/SubscriptionsTable/index.d.ts +11 -0
  136. package/dist/storefront/components/Table/index.d.ts +19 -0
  137. package/dist/storefront/components/TermsOfService/index.d.ts +1 -0
  138. package/dist/storefront/components/TicketRow/index.d.ts +5 -0
  139. package/dist/storefront/components/TrackPayment/index.d.ts +8 -0
  140. package/dist/storefront/components/index.d.ts +53 -0
  141. package/dist/storefront/constants/api.d.ts +3 -0
  142. package/dist/storefront/constants/index.d.ts +3 -0
  143. package/dist/storefront/constants/referralSteps.d.ts +6 -0
  144. package/dist/storefront/constants/routes.d.ts +8 -0
  145. package/dist/storefront/hooks/index.d.ts +2 -0
  146. package/dist/storefront/hooks/useCart.d.ts +186 -0
  147. package/dist/storefront/hooks/useCopy.d.ts +1 -0
  148. package/dist/storefront/index.d.ts +9 -0
  149. package/dist/storefront/models/balance.d.ts +46 -0
  150. package/dist/storefront/models/charge.d.ts +75 -0
  151. package/dist/storefront/models/checkout.d.ts +16 -0
  152. package/dist/storefront/models/coupon.d.ts +5 -0
  153. package/dist/storefront/models/discord.d.ts +22 -0
  154. package/dist/storefront/models/gateway.d.ts +8 -0
  155. package/dist/storefront/models/index.d.ts +15 -0
  156. package/dist/storefront/models/order.d.ts +131 -0
  157. package/dist/storefront/models/payment.d.ts +15 -0
  158. package/dist/storefront/models/post.d.ts +5 -0
  159. package/dist/storefront/models/price.d.ts +5 -0
  160. package/dist/storefront/models/referral.d.ts +12 -0
  161. package/dist/storefront/models/referralCode.d.ts +3 -0
  162. package/dist/{builder/constants/general.d.ts → storefront/models/shop.d.ts} +19 -6
  163. package/dist/storefront/models/subscription.d.ts +129 -0
  164. package/dist/storefront/models/transaction.d.ts +12 -0
  165. package/dist/storefront/store/index.d.ts +6 -0
  166. package/dist/storefront/store/useCartStore.d.ts +25 -0
  167. package/dist/storefront/store/useCustomerDashboardStore.d.ts +32 -0
  168. package/dist/storefront/store/useDiscordStore.d.ts +7 -0
  169. package/dist/storefront/store/usePaginationPagesStore.d.ts +6 -0
  170. package/dist/storefront/store/useStorefrontStore.d.ts +21 -0
  171. package/dist/storefront/store/useSubscriptionStore.d.ts +7 -0
  172. package/dist/storefront/ui/ActiveBadge/index.d.ts +5 -0
  173. package/dist/storefront/ui/InputRange/index.d.ts +9 -0
  174. package/dist/storefront/ui/ProgressBar/index.d.ts +8 -0
  175. package/dist/storefront/ui/Rating/index.d.ts +8 -0
  176. package/dist/storefront/ui/Timer/index.d.ts +6 -0
  177. package/dist/storefront/ui/index.d.ts +5 -0
  178. package/dist/storefront/utils/index.d.ts +16 -0
  179. package/dist/storefront/utils/recapcha.d.ts +12 -0
  180. package/dist/ui/Button/index.d.ts +1 -1
  181. package/dist/ui/CategorySettings/index.d.ts +1 -1
  182. package/dist/ui/GroupCardModal/index.d.ts +13 -0
  183. package/dist/ui/Input/index.d.ts +2 -0
  184. package/dist/ui/ItemsSettings/index.d.ts +1 -1
  185. package/dist/ui/ListingSelector/index.d.ts +1 -1
  186. package/dist/ui/Loader/index.d.ts +4 -0
  187. package/dist/ui/Modal/index.d.ts +9 -0
  188. package/dist/ui/Radio/index.d.ts +14 -0
  189. package/dist/ui/Select/index.d.ts +20 -0
  190. package/dist/ui/Select/utils/index.d.ts +2 -0
  191. package/dist/ui/index.d.ts +5 -0
  192. package/dist/ui.cjs.js +1 -1
  193. package/dist/ui.es.js +1277 -1281
  194. package/package.json +7 -3
  195. package/dist/api/fetchThemeAndSettings.d.ts +0 -4
  196. package/dist/index-BaU8m6yb.cjs +0 -194
  197. package/dist/index-zSoKRTpK.js +0 -34420
  198. /package/dist/{api → builder/api}/fetchAll.d.ts +0 -0
  199. /package/dist/{api → builder/api}/fetchData.d.ts +0 -0
  200. /package/dist/{api → builder/api}/fetchFontsData.d.ts +0 -0
  201. /package/dist/{api → builder/api}/fetchPagesData.d.ts +0 -0
  202. /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 '@billgangcom/frontend-lib';
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 { ColorVariables } from '@constants';
1
+ import { ColorVariables } from '@builder/constants';
2
2
  import type { PageContext } from './PageContext';
3
3
  export interface BlockSettings {
4
4
  displayName: string;
@@ -1,4 +1,4 @@
1
- import { ShopGeneralInfo } from '@constants';
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: Array<{
11
- id: number;
12
- cfId: string;
13
- }>;
14
- variants: Array<{
15
- id: number;
16
- name: string;
17
- description?: string;
18
- shortDescription?: 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 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
- chargeTypes?: Array<'ONE_TIME' | 'RECURRING'>;
28
- subscriptionSettings?: {
29
- price: {
30
- amount: number;
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
- deliveryTime?: number;
51
- terms?: string;
52
- gateways: Array<{
53
- name: string;
54
- overrodePrice?: {
55
- amount: number;
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
- discordSettings: {
73
- isEnabled: boolean;
74
- isRequired: boolean;
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
- stats: {
78
- averageRating: number;
79
- totalReviews: number;
80
- totalSold: number;
81
- };
82
- reviews: Array<{
83
- id: number;
84
- message: string;
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: ShopGeneralInfo | null;
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";
@@ -1,7 +1,2 @@
1
1
  export * from './request';
2
- export * from './fetchData';
3
- export * from './fetchFontsData';
4
- export * from './fetchPagesData';
5
- export * from './fetchAll';
6
- export * from './fetchGeneral';
7
- export * from './fetchThemeAndSettings';
2
+ export * from './constants';
@@ -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 declare const request: (options: RequestOptions) => Promise<{
10
- data: any;
11
- status: number;
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;
@@ -0,0 +1,4 @@
1
+ export * from './fetchData';
2
+ export * from './fetchFontsData';
3
+ export * from './fetchPagesData';
4
+ export * from './fetchAll';
@@ -1,4 +1,4 @@
1
- import { ColorVariables } from '@constants';
1
+ import { ColorVariables } from '@builder/constants';
2
2
  import React from 'react';
3
3
  interface Props {
4
4
  colors: ColorVariables[];
@@ -1,4 +1,4 @@
1
- import { Block } from '@constants';
1
+ import { Block } from '@builder/constants';
2
2
  import React from 'react';
3
3
  interface Props {
4
4
  block: Block;
@@ -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,4 +1 @@
1
- export declare const deletePage: (route: string) => Promise<{
2
- data: any;
3
- status: number;
4
- }>;
1
+ export declare const deletePage: (route: string) => Promise<import("@api").RequestResponse<any>>;
@@ -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';
@@ -1,4 +1,5 @@
1
1
  export type Notification = {
2
+ id: string;
2
3
  message: string;
3
4
  status: 'success' | 'error' | 'warning';
4
5
  };
@@ -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 { ShopGeneralInfo } from '@constants';
1
+ import { ShopInfo } from '@storefront/models';
2
2
  interface Options {
3
- general: ShopGeneralInfo | null;
4
- setGeneral: (general: ShopGeneralInfo | null) => void;
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
- notification: Notification | null;
4
- setNotification: (notification: Notification | null) => void;
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
- data: any;
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 {};
@@ -1,7 +1,5 @@
1
1
  export * from './Icon';
2
- export * from './Modal';
3
2
  export * from './Switch';
4
- export * from './Loader';
5
3
  export * from './Select';
6
4
  export * from './SelectInfiniteList';
7
5
  export * from './ChooseImage';