@oneclick.dev/cms-core-modules 0.0.16 → 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.
package/dist/index.mjs CHANGED
@@ -5990,22 +5990,9 @@ const Yc = ["disabled"], Xc = { class: "flex flex-col items-start gap-4 py-4" },
5990
5990
  permissions: zf
5991
5991
  }, Nf = /* @__PURE__ */ ce({
5992
5992
  __name: "index",
5993
- props: {
5994
- config: {
5995
- type: Object,
5996
- required: !0
5997
- },
5998
- routes: {
5999
- type: Array,
6000
- required: !0
6001
- }
6002
- },
6003
5993
  setup(e) {
6004
- return (t, n) => (w(), T(le, null, [
6005
- C(" HEY! " + X(e.routes) + " ", 1),
6006
- n[0] || (n[0] = S("hr", null, null, -1)),
6007
- C(" " + X(e.config), 1)
6008
- ], 64));
5994
+ const t = se("cms-test");
5995
+ return (n, o) => (w(), T("div", null, X(v(t)) + " HEY! ", 1));
6009
5996
  }
6010
5997
  }), Lf = {
6011
5998
  name: "Products2",
@@ -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
+ 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 {};
@@ -1,23 +1,5 @@
1
1
  export declare const products: {
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, {}, any>;
2
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
21
3
  metadata: ModuleMetadata;
22
4
  config: {
23
5
  readonly project: {
@@ -1,22 +1,2 @@
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, {}, any>;
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>;
22
2
  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.16",
3
+ "version": "0.0.18",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -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 {}