@oneclick.dev/cms-kit 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.cjs.js +1 -1
- package/dist/index.es.js +6 -0
- package/dist/types/lib/composables.d.ts +31 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -77595,7 +77595,10 @@ const useMediaLibrary$1 = () => getCmsComposable("cms-useMediaLibrary");
|
|
|
77595
77595
|
const useProjectService = () => getCmsComposable("cms-useProjectService");
|
|
77596
77596
|
const useBreadcrumbs$1 = () => getCmsComposable("cms-useBreadcrumbs");
|
|
77597
77597
|
const useQueryBuilder = () => getCmsComposable("cms-useQueryBuilder");
|
|
77598
|
+
const useModulePermissions = () => getCmsComposable("cms-useModulePermissions");
|
|
77598
77599
|
const useFirebaseIntegration = () => getCmsComposable("cms-useFirebaseIntegration");
|
|
77600
|
+
const useNavigateToModuleRoute = () => getCmsComposable("cms-useNavigateToModuleRoute");
|
|
77601
|
+
const useModuleStorage = () => getCmsComposable("cms-useModuleStorage");
|
|
77599
77602
|
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
77600
77603
|
__name: "InterpolationField",
|
|
77601
77604
|
props: {
|
|
@@ -142312,6 +142315,9 @@ export {
|
|
|
142312
142315
|
useIntegrations,
|
|
142313
142316
|
useLayout,
|
|
142314
142317
|
useMediaLibrary$1 as useMediaLibrary,
|
|
142318
|
+
useModulePermissions,
|
|
142319
|
+
useModuleStorage,
|
|
142320
|
+
useNavigateToModuleRoute,
|
|
142315
142321
|
useProjectService,
|
|
142316
142322
|
useQueryBuilder,
|
|
142317
142323
|
useRunProcess
|
|
@@ -5,4 +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
|
-
|
|
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
|
+
export {};
|