@oneclick.dev/cms-core-modules 0.0.17 → 0.0.19

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.
@@ -0,0 +1,57 @@
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
+ export declare const useModulePermissions: () => ReturnType<UseModulePermissions>;
9
+ export declare const useNavigateToModuleRoute: () => ReturnType<UseNavigateToModuleRoute>;
10
+ export declare const useModuleStorage: () => ReturnType<UseModuleStorage>;
11
+ export declare const useLogs: () => ReturnType<UseLogs>;
12
+ export declare const useUtilsService: () => ReturnType<UseUtilsService>;
13
+ export declare const useFormBuilder: () => ReturnType<UseFormBuilder>;
14
+ export declare const useFirebaseIntegration: UseFirebaseIntegration;
15
+ type UseModulePermissions = () => {
16
+ isAdmin: () => boolean;
17
+ isSuperAdmin: () => boolean;
18
+ hasPermission: (permission: string) => boolean;
19
+ hasPermissionOR: (...permissions: string[]) => boolean;
20
+ hasPermissionAND: (...permissions: string[]) => boolean;
21
+ };
22
+ type UseFirebaseIntegration = (projectId: string) => {
23
+ add: (collection: string, data: Record<string, any>) => Promise<any>;
24
+ find: (collection: string, query?: Record<string, any>) => Promise<any>;
25
+ get: (collection: string, doc: string) => Promise<any>;
26
+ update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
27
+ remove: (collection: string, id: string) => Promise<any>;
28
+ };
29
+ type UseNavigateToModuleRoute = () => {
30
+ navigateTo: (path?: string | number) => void;
31
+ basePath: string;
32
+ params: Record<string, string>;
33
+ pageComponent: any;
34
+ };
35
+ type UseModuleStorage = () => {
36
+ getModuleData: (key: string) => any;
37
+ setModuleData: (key: string, value: any) => void;
38
+ removeModuleData: (key: string) => void;
39
+ clearModuleData: () => void;
40
+ };
41
+ type UseLogs = () => {
42
+ log: (message: string, data?: any) => void;
43
+ logWarning: (message: string, data?: any) => void;
44
+ logError: (message: string, data?: any) => void;
45
+ };
46
+ type UseUtilsService = () => {
47
+ urlToBase64: (url: string) => Promise<{
48
+ base64: string;
49
+ contentType: string;
50
+ }>;
51
+ };
52
+ type UseFormBuilder = () => {
53
+ formBuilderStack: any[];
54
+ openFormBuilder: (config?: any) => Promise<any>;
55
+ closeFormBuilder: (id: number, result: any) => void;
56
+ };
57
+ export {};
@@ -17,7 +17,7 @@ export declare const products: {
17
17
  type: import('vue').PropType<ModuleRoute[]>;
18
18
  required: true;
19
19
  };
20
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
21
21
  metadata: ModuleMetadata;
22
22
  config: {
23
23
  readonly project: {
@@ -18,5 +18,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  type: PropType<ModuleRoute[]>;
19
19
  required: true;
20
20
  };
21
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
22
22
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-core-modules",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@formkit/drag-and-drop": "^0.5.3",
24
- "@oneclick.dev/cms-kit": "0.0.22",
24
+ "@oneclick.dev/cms-kit": "0.0.24",
25
25
  "@internationalized/date": "^3.8.0",
26
26
  "@tanstack/vue-table": "^8.21.3",
27
27
  "@vee-validate/zod": "^4.15.0",
@@ -1,13 +0,0 @@
1
- // import type { UseFirebaseIntegration } from '@oneclick.dev/cms-kit'
2
- // import type { UseModulePermissions } from '../composables/module-helpers/useModulePermissions'
3
- // import type { UseNavigateToModuleRoute } from '../composables/module-helpers/useNavigateToModuleRoute'
4
- // import type { UseModuleStorage } from '../composables/module-helpers/useModuleStorage'
5
-
6
- // declare global {
7
- // const useFirebaseIntegration: UseFirebaseIntegration
8
- // const useModulePermissions: UseModulePermissions
9
- // const useNavigateToModuleRoute: UseNavigateToModuleRoute
10
- // const useModuleStorage: UseModuleStorage
11
- // }
12
-
13
- // export {}