@oneclick.dev/cms-kit 0.0.24 → 0.0.25
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 +5 -5
- package/dist/index.es.js +2 -1
- package/dist/types/lib/composables.d.ts +21 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -77602,7 +77602,8 @@ const useModuleStorage = () => getCmsComposable("cms-useModuleStorage")();
|
|
|
77602
77602
|
const useLogs = () => getCmsComposable("cms-useLogs")();
|
|
77603
77603
|
const useUtilsService = () => getCmsComposable("cms-useUtilsService")();
|
|
77604
77604
|
const useFormBuilder = () => getCmsComposable("cms-useFormBuilder")();
|
|
77605
|
-
const
|
|
77605
|
+
const useFlowBuilder = () => getCmsComposable("cms-useFlowBuilder")();
|
|
77606
|
+
const useFirebaseIntegration = (projectId) => getCmsComposable("cms-useFirebaseIntegration")(projectId);
|
|
77606
77607
|
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
77607
77608
|
__name: "InterpolationField",
|
|
77608
77609
|
props: {
|
|
@@ -11,7 +11,14 @@ export declare const useModuleStorage: () => ReturnType<UseModuleStorage>;
|
|
|
11
11
|
export declare const useLogs: () => ReturnType<UseLogs>;
|
|
12
12
|
export declare const useUtilsService: () => ReturnType<UseUtilsService>;
|
|
13
13
|
export declare const useFormBuilder: () => ReturnType<UseFormBuilder>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const useFlowBuilder: () => ReturnType<UseFlowBuilder>;
|
|
15
|
+
export declare const useFirebaseIntegration: (projectId: string) => {
|
|
16
|
+
add: (collection: string, data: Record<string, any>) => Promise<any>;
|
|
17
|
+
find: (collection: string, query?: Record<string, any>) => Promise<any>;
|
|
18
|
+
get: (collection: string, doc: string) => Promise<any>;
|
|
19
|
+
update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
|
|
20
|
+
remove: (collection: string, id: string) => Promise<any>;
|
|
21
|
+
};
|
|
15
22
|
type UseModulePermissions = () => {
|
|
16
23
|
isAdmin: () => boolean;
|
|
17
24
|
isSuperAdmin: () => boolean;
|
|
@@ -19,13 +26,6 @@ type UseModulePermissions = () => {
|
|
|
19
26
|
hasPermissionOR: (...permissions: string[]) => boolean;
|
|
20
27
|
hasPermissionAND: (...permissions: string[]) => boolean;
|
|
21
28
|
};
|
|
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
29
|
type UseNavigateToModuleRoute = () => {
|
|
30
30
|
navigateTo: (path?: string | number) => void;
|
|
31
31
|
basePath: string;
|
|
@@ -54,4 +54,17 @@ type UseFormBuilder = () => {
|
|
|
54
54
|
openFormBuilder: (config?: any) => Promise<any>;
|
|
55
55
|
closeFormBuilder: (id: number, result: any) => void;
|
|
56
56
|
};
|
|
57
|
+
type UseFlowBuilder = () => {
|
|
58
|
+
flowBuilderStack: FlowBuilderState[];
|
|
59
|
+
openFlowBuilder: (workflow: any, config?: any) => Promise<any>;
|
|
60
|
+
closeFlowBuilder: (id: number, result: any) => void;
|
|
61
|
+
runFlow: (workflow: any, context: any) => Promise<any>;
|
|
62
|
+
};
|
|
63
|
+
interface FlowBuilderState {
|
|
64
|
+
id: number;
|
|
65
|
+
show: boolean;
|
|
66
|
+
config: any;
|
|
67
|
+
workflow: any;
|
|
68
|
+
resolve: ((val: any) => void) | null;
|
|
69
|
+
}
|
|
57
70
|
export {};
|