@billgangcom/theme-lib 1.51.0 → 1.52.0
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/abstractions/PageContext.d.ts +2 -0
- package/dist/api/fetchData.d.ts +6 -0
- package/dist/api/fetchGeneral.d.ts +1 -0
- package/dist/api/fetchThemeAndSettings.d.ts +4 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/builder/constants/general.d.ts +25 -0
- package/dist/builder/constants/index.d.ts +2 -0
- package/dist/builder/constants/local-host.d.ts +1 -0
- package/dist/builder/store/index.d.ts +1 -0
- package/dist/builder/store/useGeneralStore.d.ts +7 -0
- package/dist/builder.cjs.js +46 -46
- package/dist/builder.es.js +1878 -1750
- package/dist/{index-DzPheMm2.cjs → index-BhPRECBt.cjs} +35 -35
- package/dist/{index-Cm_7HBSO.js → index-CSt-42JF.js} +8621 -8467
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/pages/dynamic-page/api/index.d.ts +0 -4
- package/dist/pages/validation/index.d.ts +5 -0
- package/dist/ui/Input/index.d.ts +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +975 -1122
- package/package.json +2 -2
package/dist/api/fetchData.d.ts
CHANGED
|
@@ -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>;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IS_LOCAL_HOST: boolean;
|
|
@@ -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 {};
|