@oneclick.dev/cms-kit 0.0.17 → 0.0.18

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.
@@ -5,29 +5,34 @@ export declare const useMediaLibrary: () => any;
5
5
  export declare const useProjectService: () => any;
6
6
  export declare const useBreadcrumbs: () => any;
7
7
  export declare const useQueryBuilder: () => any;
8
- export declare const useModulePermissions: () => {
8
+ type UseModulePermissions = () => {
9
9
  isAdmin: () => boolean;
10
10
  isSuperAdmin: () => boolean;
11
11
  hasPermission: (permission: string) => boolean;
12
12
  hasPermissionOR: (...permissions: string[]) => boolean;
13
13
  hasPermissionAND: (...permissions: string[]) => boolean;
14
14
  };
15
- export declare const useFirebaseIntegration: () => {
15
+ export declare const useModulePermissions: () => UseModulePermissions;
16
+ type UseFirebaseIntegration = (projectId: string) => {
16
17
  add: (collection: string, data: Record<string, any>) => Promise<any>;
17
18
  find: (collection: string, query?: Record<string, any>) => Promise<any>;
18
19
  get: (collection: string, doc: string) => Promise<any>;
19
20
  update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
20
21
  remove: (collection: string, id: string) => Promise<any>;
21
22
  };
22
- export declare const useNavigateToModuleRoute: () => {
23
+ export declare const useFirebaseIntegration: () => UseFirebaseIntegration;
24
+ type UseNavigateToModuleRoute = () => {
23
25
  navigateTo: (path?: string | number) => void;
24
26
  basePath: string;
25
27
  params: Record<string, string>;
26
28
  pageComponent: any;
27
29
  };
28
- export declare const useModuleStorage: () => {
30
+ export declare const useNavigateToModuleRoute: () => UseNavigateToModuleRoute;
31
+ type UseModuleStorage = () => {
29
32
  getModuleData: (key: string) => any;
30
33
  setModuleData: (key: string, value: any) => void;
31
34
  removeModuleData: (key: string) => void;
32
35
  clearModuleData: () => void;
33
36
  };
37
+ export declare const useModuleStorage: () => UseModuleStorage;
38
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-kit",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",