@oneclick.dev/cms-core-modules 0.0.25 → 0.0.27
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 +9 -9
- package/dist/index.mjs +2049 -2048
- package/package.json +2 -2
- package/dist/src/lib/composables.d.ts +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneclick.dev/cms-core-modules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
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.
|
|
24
|
+
"@oneclick.dev/cms-kit": "0.0.40",
|
|
25
25
|
"@internationalized/date": "^3.8.0",
|
|
26
26
|
"@tanstack/vue-table": "^8.21.3",
|
|
27
27
|
"@vee-validate/zod": "^4.15.0",
|
|
@@ -1,74 +0,0 @@
|
|
|
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 useModuleRoute: () => ReturnType<UseModuleRoute>;
|
|
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 useFlowBuilder: () => ReturnType<UseFlowBuilder>;
|
|
15
|
-
export declare const useConfirmation: () => ReturnType<UseConfirmation>;
|
|
16
|
-
export declare const 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
|
-
type UseModulePermissions = () => {
|
|
24
|
-
isAdmin: () => boolean;
|
|
25
|
-
isSuperAdmin: () => boolean;
|
|
26
|
-
hasPermission: (permission: string) => boolean;
|
|
27
|
-
hasPermissionOR: (...permissions: string[]) => boolean;
|
|
28
|
-
hasPermissionAND: (...permissions: string[]) => boolean;
|
|
29
|
-
};
|
|
30
|
-
type UseModuleRoute = () => {
|
|
31
|
-
navigateTo: (path?: string | number) => void;
|
|
32
|
-
basePath: string;
|
|
33
|
-
params: Record<string, string>;
|
|
34
|
-
pageComponent: any;
|
|
35
|
-
};
|
|
36
|
-
type UseModuleStorage = () => {
|
|
37
|
-
getModuleData: (key: string) => any;
|
|
38
|
-
setModuleData: (key: string, value: any) => void;
|
|
39
|
-
removeModuleData: (key: string) => void;
|
|
40
|
-
clearModuleData: () => void;
|
|
41
|
-
};
|
|
42
|
-
type UseLogs = () => {
|
|
43
|
-
log: (message: string, data?: any) => void;
|
|
44
|
-
logWarning: (message: string, data?: any) => void;
|
|
45
|
-
logError: (message: string, data?: any) => void;
|
|
46
|
-
};
|
|
47
|
-
type UseUtilsService = () => {
|
|
48
|
-
urlToBase64: (url: string) => Promise<{
|
|
49
|
-
base64: string;
|
|
50
|
-
contentType: string;
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
53
|
-
type UseFormBuilder = () => {
|
|
54
|
-
formBuilderStack: any[];
|
|
55
|
-
openFormBuilder: (config?: any) => Promise<any>;
|
|
56
|
-
closeFormBuilder: (id: number, result: any) => void;
|
|
57
|
-
};
|
|
58
|
-
type UseFlowBuilder = () => {
|
|
59
|
-
flowBuilderStack: FlowBuilderState[];
|
|
60
|
-
openFlowBuilder: (workflow: any, config?: any) => Promise<any>;
|
|
61
|
-
closeFlowBuilder: (id: number, result: any) => void;
|
|
62
|
-
runFlow: (workflow: any, context: any) => Promise<any>;
|
|
63
|
-
};
|
|
64
|
-
type UseConfirmation = () => {
|
|
65
|
-
confirm: (message: string, title?: string, confirmText?: string) => Promise<boolean>;
|
|
66
|
-
};
|
|
67
|
-
interface FlowBuilderState {
|
|
68
|
-
id: number;
|
|
69
|
-
show: boolean;
|
|
70
|
-
config: any;
|
|
71
|
-
workflow: any;
|
|
72
|
-
resolve: ((val: any) => void) | null;
|
|
73
|
-
}
|
|
74
|
-
export {};
|