@oneclick.dev/cms-kit 0.0.33 → 0.0.35
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/cms-kit.cjs +7 -7
- package/dist/cms-kit.js +4 -2
- package/dist/index.d.ts +22 -9
- package/package.json +1 -1
package/dist/cms-kit.js
CHANGED
|
@@ -54330,7 +54330,7 @@ const useProjectService = () => getCmsComposable("cms-useProjectService")();
|
|
|
54330
54330
|
const useBreadcrumbs$1 = () => getCmsComposable("cms-useBreadcrumbs")();
|
|
54331
54331
|
const useQueryBuilder = () => getCmsComposable("cms-useQueryBuilder")();
|
|
54332
54332
|
const useModulePermissions = () => getCmsComposable("cms-useModulePermissions")();
|
|
54333
|
-
const
|
|
54333
|
+
const useModuleRoute = () => getCmsComposable("cms-useModuleRoute")();
|
|
54334
54334
|
const useModuleStorage = () => getCmsComposable("cms-useModuleStorage")();
|
|
54335
54335
|
const useLogs = () => getCmsComposable("cms-useLogs")();
|
|
54336
54336
|
const useUtilsService = () => getCmsComposable("cms-useUtilsService")();
|
|
@@ -54338,6 +54338,7 @@ const useFormBuilder = () => getCmsComposable("cms-useFormBuilder")();
|
|
|
54338
54338
|
const useFlowBuilder = () => getCmsComposable("cms-useFlowBuilder")();
|
|
54339
54339
|
const useConfirmation$1 = () => getCmsComposable("cms-useConfirmation")();
|
|
54340
54340
|
const useFirebaseIntegration = (projectId) => getCmsComposable("cms-useFirebaseIntegration")(projectId);
|
|
54341
|
+
const useProjectSettings = () => getCmsComposable("cms-useProjectSettings")();
|
|
54341
54342
|
const useOverlayStack = () => getCmsComposable("cms-useOverlayStack")();
|
|
54342
54343
|
function tryOnScopeDispose(fn2) {
|
|
54343
54344
|
if (getCurrentScope()) {
|
|
@@ -142420,10 +142421,11 @@ export {
|
|
|
142420
142421
|
useLogs,
|
|
142421
142422
|
useMediaLibrary,
|
|
142422
142423
|
useModulePermissions,
|
|
142424
|
+
useModuleRoute,
|
|
142423
142425
|
useModuleStorage,
|
|
142424
|
-
useNavigateToModuleRoute,
|
|
142425
142426
|
useOverlayStack,
|
|
142426
142427
|
useProjectService,
|
|
142428
|
+
useProjectSettings,
|
|
142427
142429
|
useQueryBuilder,
|
|
142428
142430
|
useRunProcess,
|
|
142429
142431
|
useUtilsService
|
package/dist/index.d.ts
CHANGED
|
@@ -125,6 +125,17 @@ declare type UseModulePermissions = () => {
|
|
|
125
125
|
|
|
126
126
|
export declare const useModulePermissions: () => ReturnType<UseModulePermissions>;
|
|
127
127
|
|
|
128
|
+
declare type UseModuleRoute = () => {
|
|
129
|
+
navigateTo: (path?: string | number) => void;
|
|
130
|
+
projectId: string;
|
|
131
|
+
moduleId: string;
|
|
132
|
+
basePath: string;
|
|
133
|
+
params: Record<string, string>;
|
|
134
|
+
pageComponent: any;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export declare const useModuleRoute: () => ReturnType<UseModuleRoute>;
|
|
138
|
+
|
|
128
139
|
declare type UseModuleStorage = () => {
|
|
129
140
|
getModuleData: (key: string) => any;
|
|
130
141
|
setModuleData: (key: string, value: any) => void;
|
|
@@ -134,15 +145,6 @@ declare type UseModuleStorage = () => {
|
|
|
134
145
|
|
|
135
146
|
export declare const useModuleStorage: () => ReturnType<UseModuleStorage>;
|
|
136
147
|
|
|
137
|
-
declare type UseNavigateToModuleRoute = () => {
|
|
138
|
-
navigateTo: (path?: string | number) => void;
|
|
139
|
-
basePath: string;
|
|
140
|
-
params: Record<string, string>;
|
|
141
|
-
pageComponent: any;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export declare const useNavigateToModuleRoute: () => ReturnType<UseNavigateToModuleRoute>;
|
|
145
|
-
|
|
146
148
|
export declare const useOverlayStack: () => {
|
|
147
149
|
stack: string[];
|
|
148
150
|
push(id: string): void;
|
|
@@ -152,6 +154,17 @@ export declare const useOverlayStack: () => {
|
|
|
152
154
|
|
|
153
155
|
export declare const useProjectService: () => {};
|
|
154
156
|
|
|
157
|
+
export declare const useProjectSettings: () => {
|
|
158
|
+
project: any;
|
|
159
|
+
refreshProject: () => Promise<void>;
|
|
160
|
+
getTimezone: () => string;
|
|
161
|
+
getOffset: () => number;
|
|
162
|
+
getOffsetInMinutes: () => number;
|
|
163
|
+
formatDate: (date: string | Date) => string;
|
|
164
|
+
getCurrency: () => string;
|
|
165
|
+
formatCurrency: (amount: number, currency?: string) => string;
|
|
166
|
+
};
|
|
167
|
+
|
|
155
168
|
export declare const useQueryBuilder: () => {};
|
|
156
169
|
|
|
157
170
|
export { useRunProcess }
|