@oneclick.dev/cms-kit 0.0.22 → 0.0.23
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 +3 -3
- package/dist/types/index.d.ts +1 -57
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -77601,7 +77601,7 @@ const useNavigateToModuleRoute = () => getCmsComposable("cms-useNavigateToModule
|
|
|
77601
77601
|
const useModuleStorage = () => getCmsComposable("cms-useModuleStorage");
|
|
77602
77602
|
const useLogs = () => getCmsComposable("cms-useLogs");
|
|
77603
77603
|
const useUtilsService = () => getCmsComposable("cms-useUtilsService");
|
|
77604
|
-
const useFormBuilder
|
|
77604
|
+
const useFormBuilder = () => getCmsComposable("cms-useFormBuilder");
|
|
77605
77605
|
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
77606
77606
|
__name: "InterpolationField",
|
|
77607
77607
|
props: {
|
|
@@ -118031,7 +118031,7 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
|
118031
118031
|
},
|
|
118032
118032
|
setup(__props) {
|
|
118033
118033
|
const props = __props;
|
|
118034
|
-
const { closeFormBuilder } = useFormBuilder
|
|
118034
|
+
const { closeFormBuilder } = useFormBuilder();
|
|
118035
118035
|
const formBuilder = ref$1();
|
|
118036
118036
|
watch$1(
|
|
118037
118037
|
() => props.config,
|
|
@@ -142314,7 +142314,7 @@ export {
|
|
|
142314
142314
|
useBreadcrumbs$1 as useBreadcrumbs,
|
|
142315
142315
|
useCms,
|
|
142316
142316
|
useFirebaseIntegration,
|
|
142317
|
-
useFormBuilder
|
|
142317
|
+
useFormBuilder,
|
|
142318
142318
|
useIntegrationActionBuilder,
|
|
142319
142319
|
useIntegrationActions$1 as useIntegrationActions,
|
|
142320
142320
|
useIntegrations,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
export
|
|
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
|
+
export {}
|