@billgangcom/theme-lib 1.51.0 → 1.52.1

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.
@@ -103,5 +103,7 @@ export interface PageContext {
103
103
  categories: Category[] | null;
104
104
  faqs: Faq[] | null;
105
105
  general: any;
106
+ fullPosts: any;
107
+ posts: any;
106
108
  }
107
109
  export {};
@@ -5,4 +5,10 @@ export declare function fetchAllData(): Promise<{
5
5
  products: PromiseSettledResult<any>;
6
6
  reviews: PromiseSettledResult<any>;
7
7
  categories: PromiseSettledResult<any>;
8
+ fullPosts: PromiseSettledResult<{
9
+ data: null;
10
+ }>;
11
+ posts: PromiseSettledResult<{
12
+ data: null;
13
+ }>;
8
14
  }>;
@@ -0,0 +1 @@
1
+ export declare function fetchGeneral(password?: string): Promise<any>;
@@ -0,0 +1,4 @@
1
+ export declare const fetchThemeAndSettings: () => Promise<{
2
+ data: any;
3
+ status: number;
4
+ }>;
@@ -3,3 +3,5 @@ export * from './fetchData';
3
3
  export * from './fetchFontsData';
4
4
  export * from './fetchPagesData';
5
5
  export * from './fetchAll';
6
+ export * from './fetchGeneral';
7
+ export * from './fetchThemeAndSettings';
@@ -0,0 +1,25 @@
1
+ export interface ShopGeneralInfo {
2
+ statistics: {
3
+ totalProductsSold: number;
4
+ totalCustomers: number;
5
+ totalReviews: number;
6
+ averageProductRating: number;
7
+ launchYear: number;
8
+ };
9
+ permissions: {
10
+ disableBranding: boolean;
11
+ };
12
+ isPasswordValid: boolean;
13
+ info: {
14
+ logo?: {
15
+ id: number;
16
+ cdId: string;
17
+ };
18
+ id: string;
19
+ name: string;
20
+ domain: string;
21
+ passwordProtected: boolean;
22
+ onHold: boolean;
23
+ isBanned: boolean;
24
+ };
25
+ }
@@ -9,3 +9,5 @@ export * from './icon';
9
9
  export * from './notification';
10
10
  export * from './color-variables';
11
11
  export * from './block-icons';
12
+ export * from './local-host';
13
+ export * from './general';
@@ -0,0 +1 @@
1
+ export declare const IS_LOCAL_HOST: boolean;
@@ -18,3 +18,4 @@ export * from './useErrorStore';
18
18
  export * from './useConfirmationModalStore';
19
19
  export * from './useTooltipStore';
20
20
  export * from './useModalStore';
21
+ export * from './useGeneralStore';
@@ -0,0 +1,7 @@
1
+ import { ShopGeneralInfo } from '@constants';
2
+ interface Options {
3
+ general: ShopGeneralInfo | null;
4
+ setGeneral: (general: ShopGeneralInfo | null) => void;
5
+ }
6
+ export declare const useGeneralStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Options>>;
7
+ export {};
@@ -3,6 +3,7 @@ interface Props {
3
3
  children: React.ReactNode;
4
4
  variable?: 'hoverBlockId' | 'keyBlock';
5
5
  positionTop?: number | null;
6
+ positionLeft?: number;
6
7
  }
7
8
  export declare const Submodal: React.FC<Props>;
8
9
  export declare const AddSectionSubmodal: React.FC<Props>;