@oneclick.dev/cms-core-modules 0.0.18 → 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.
@@ -5,6 +5,13 @@ 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: () => 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;
8
15
  type UseModulePermissions = () => {
9
16
  isAdmin: () => boolean;
10
17
  isSuperAdmin: () => boolean;
@@ -12,7 +19,6 @@ type UseModulePermissions = () => {
12
19
  hasPermissionOR: (...permissions: string[]) => boolean;
13
20
  hasPermissionAND: (...permissions: string[]) => boolean;
14
21
  };
15
- export declare const useModulePermissions: () => UseModulePermissions;
16
22
  type UseFirebaseIntegration = (projectId: string) => {
17
23
  add: (collection: string, data: Record<string, any>) => Promise<any>;
18
24
  find: (collection: string, query?: Record<string, any>) => Promise<any>;
@@ -20,38 +26,32 @@ type UseFirebaseIntegration = (projectId: string) => {
20
26
  update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
21
27
  remove: (collection: string, id: string) => Promise<any>;
22
28
  };
23
- export declare const useFirebaseIntegration: () => UseFirebaseIntegration;
24
29
  type UseNavigateToModuleRoute = () => {
25
30
  navigateTo: (path?: string | number) => void;
26
31
  basePath: string;
27
32
  params: Record<string, string>;
28
33
  pageComponent: any;
29
34
  };
30
- export declare const useNavigateToModuleRoute: () => UseNavigateToModuleRoute;
31
35
  type UseModuleStorage = () => {
32
36
  getModuleData: (key: string) => any;
33
37
  setModuleData: (key: string, value: any) => void;
34
38
  removeModuleData: (key: string) => void;
35
39
  clearModuleData: () => void;
36
40
  };
37
- export declare const useModuleStorage: () => UseModuleStorage;
38
41
  type UseLogs = () => {
39
42
  log: (message: string, data?: any) => void;
40
43
  logWarning: (message: string, data?: any) => void;
41
44
  logError: (message: string, data?: any) => void;
42
45
  };
43
- export declare const useLogs: () => UseLogs;
44
46
  type UseUtilsService = () => {
45
47
  urlToBase64: (url: string) => Promise<{
46
48
  base64: string;
47
49
  contentType: string;
48
50
  }>;
49
51
  };
50
- export declare const useUtilsService: () => UseUtilsService;
51
52
  type UseFormBuilder = () => {
52
53
  formBuilderStack: any[];
53
54
  openFormBuilder: (config?: any) => Promise<any>;
54
55
  closeFormBuilder: (id: number, result: any) => void;
55
56
  };
56
- export declare const useFormBuilder: () => UseFormBuilder;
57
57
  export {};
@@ -1,5 +1,23 @@
1
1
  export declare const products: {
2
- component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ config: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
7
+ routes: {
8
+ type: import('vue').PropType<ModuleRoute[]>;
9
+ required: true;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ config: {
13
+ type: ObjectConstructor;
14
+ required: true;
15
+ };
16
+ routes: {
17
+ type: import('vue').PropType<ModuleRoute[]>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
3
21
  metadata: ModuleMetadata;
4
22
  config: {
5
23
  readonly project: {
@@ -1,2 +1,22 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ import { PropType } from 'vue';
2
+ import { ModuleRoute } from '~/types';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: ObjectConstructor;
6
+ required: true;
7
+ };
8
+ routes: {
9
+ type: PropType<ModuleRoute[]>;
10
+ required: true;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ config: {
14
+ type: ObjectConstructor;
15
+ required: true;
16
+ };
17
+ routes: {
18
+ type: PropType<ModuleRoute[]>;
19
+ required: true;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
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.18",
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",