@oneclick.dev/cms-kit 0.0.21 → 0.0.22

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.
@@ -1 +1,57 @@
1
- export {}
1
+ export declare const useIntegrationActionBuilder: () => any;
2
+ export declare const useIntegrations: () => any;
3
+ export declare const useIntegrationActions: () => any;
4
+ export declare const useMediaLibrary: () => any;
5
+ export declare const useProjectService: () => any;
6
+ export declare const useBreadcrumbs: () => any;
7
+ export declare const useQueryBuilder: () => any;
8
+ type UseModulePermissions = () => {
9
+ isAdmin: () => boolean;
10
+ isSuperAdmin: () => boolean;
11
+ hasPermission: (permission: string) => boolean;
12
+ hasPermissionOR: (...permissions: string[]) => boolean;
13
+ hasPermissionAND: (...permissions: string[]) => boolean;
14
+ };
15
+ export declare const useModulePermissions: () => UseModulePermissions;
16
+ type UseFirebaseIntegration = (projectId: string) => {
17
+ add: (collection: string, data: Record<string, any>) => Promise<any>;
18
+ find: (collection: string, query?: Record<string, any>) => Promise<any>;
19
+ get: (collection: string, doc: string) => Promise<any>;
20
+ update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
21
+ remove: (collection: string, id: string) => Promise<any>;
22
+ };
23
+ export declare const useFirebaseIntegration: () => UseFirebaseIntegration;
24
+ type UseNavigateToModuleRoute = () => {
25
+ navigateTo: (path?: string | number) => void;
26
+ basePath: string;
27
+ params: Record<string, string>;
28
+ pageComponent: any;
29
+ };
30
+ export declare const useNavigateToModuleRoute: () => UseNavigateToModuleRoute;
31
+ type UseModuleStorage = () => {
32
+ getModuleData: (key: string) => any;
33
+ setModuleData: (key: string, value: any) => void;
34
+ removeModuleData: (key: string) => void;
35
+ clearModuleData: () => void;
36
+ };
37
+ export declare const useModuleStorage: () => UseModuleStorage;
38
+ type UseLogs = () => {
39
+ log: (message: string, data?: any) => void;
40
+ logWarning: (message: string, data?: any) => void;
41
+ logError: (message: string, data?: any) => void;
42
+ };
43
+ export declare const useLogs: () => UseLogs;
44
+ type UseUtilsService = () => {
45
+ urlToBase64: (url: string) => Promise<{
46
+ base64: string;
47
+ contentType: string;
48
+ }>;
49
+ };
50
+ export declare const useUtilsService: () => UseUtilsService;
51
+ type UseFormBuilder = () => {
52
+ formBuilderStack: any[];
53
+ openFormBuilder: (config?: any) => Promise<any>;
54
+ closeFormBuilder: (id: number, result: any) => void;
55
+ };
56
+ export declare const useFormBuilder: () => UseFormBuilder;
57
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-kit",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",