@oneclick.dev/cms-kit 0.0.44 → 0.0.46
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 +6 -6
- package/dist/cms-kit.js +8 -55
- package/package.json +1 -1
package/dist/cms-kit.js
CHANGED
|
@@ -54340,29 +54340,6 @@ const useProjectSettings = () => getCmsComposable("cms-useProjectSettings")();
|
|
|
54340
54340
|
const useCustomDialog$1 = () => getCmsComposable("cms-useCustomDialog")();
|
|
54341
54341
|
const useModuleOverlay = () => getCmsComposable("cms-useModuleOverlay")();
|
|
54342
54342
|
const useOverlayStack = () => getCmsComposable("cms-useOverlayStack")();
|
|
54343
|
-
const composables = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54344
|
-
__proto__: null,
|
|
54345
|
-
useBreadcrumbs,
|
|
54346
|
-
useConfirmation,
|
|
54347
|
-
useCustomDialog: useCustomDialog$1,
|
|
54348
|
-
useFirebaseIntegration,
|
|
54349
|
-
useFlowBuilder,
|
|
54350
|
-
useFormBuilder,
|
|
54351
|
-
useIntegrationActionBuilder,
|
|
54352
|
-
useIntegrationActions,
|
|
54353
|
-
useIntegrations,
|
|
54354
|
-
useLogs,
|
|
54355
|
-
useMediaLibrary,
|
|
54356
|
-
useModuleOverlay,
|
|
54357
|
-
useModulePermissions,
|
|
54358
|
-
useModuleRoute,
|
|
54359
|
-
useModuleStorage,
|
|
54360
|
-
useOverlayStack,
|
|
54361
|
-
useProjectService,
|
|
54362
|
-
useProjectSettings,
|
|
54363
|
-
useQueryBuilder,
|
|
54364
|
-
useUtilsService
|
|
54365
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
54366
54343
|
function tryOnScopeDispose(fn2) {
|
|
54367
54344
|
if (getCurrentScope()) {
|
|
54368
54345
|
onScopeDispose(fn2);
|
|
@@ -67904,34 +67881,13 @@ const taskHandlers = {
|
|
|
67904
67881
|
}
|
|
67905
67882
|
},
|
|
67906
67883
|
"integration-action": async (input, { node }) => {
|
|
67907
|
-
|
|
67908
|
-
console.log(
|
|
67909
|
-
const {
|
|
67910
|
-
|
|
67911
|
-
|
|
67912
|
-
const { getCurrentInstance: getCurrentInstance2, useNuxtApp: useNuxtApp2, inject: inject2 } = await import("vue");
|
|
67913
|
-
console.log("🟡 Vue getCurrentInstance():", getCurrentInstance2());
|
|
67914
|
-
console.log("🟡 useNuxtApp():", useNuxtApp2());
|
|
67915
|
-
console.log("🟡 inject cms-useIntegrationActions:", inject2?.("cms-useIntegrationActions", null));
|
|
67916
|
-
} catch (err) {
|
|
67917
|
-
console.error("🔴 Error importing Vue helpers:", err);
|
|
67918
|
-
}
|
|
67919
|
-
try {
|
|
67920
|
-
console.log("🟢 Calling useIntegrationActions with:", node.data.action.integration);
|
|
67921
|
-
const integrationActions = useIntegrationActions2(node.data.action.integration);
|
|
67922
|
-
console.log("🟢 Got integrationActions:", integrationActions);
|
|
67923
|
-
const { fireAction } = integrationActions;
|
|
67924
|
-
console.log("🟢 Got fireAction:", fireAction);
|
|
67925
|
-
let res = await fireAction(node.data.action, input);
|
|
67926
|
-
console.log("✅ fireAction result:", res);
|
|
67927
|
-
return { result: res };
|
|
67928
|
-
} catch (err) {
|
|
67929
|
-
console.error("❌ Error in integration-action handler:", err);
|
|
67930
|
-
throw err;
|
|
67931
|
-
}
|
|
67884
|
+
const app = useNuxtApp();
|
|
67885
|
+
console.log(app);
|
|
67886
|
+
const { fireAction } = useIntegrationActions(node.data.action.integration);
|
|
67887
|
+
let res = await fireAction(node.data.action, input);
|
|
67888
|
+
return { result: res };
|
|
67932
67889
|
},
|
|
67933
67890
|
"show-toast": async (input, { node }) => {
|
|
67934
|
-
console.log("Show toast", input, node);
|
|
67935
67891
|
let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
|
|
67936
67892
|
let title = interpolateTemplateFromVariableContext(node.data.title, variables);
|
|
67937
67893
|
let description = interpolateTemplateFromVariableContext(node.data.message, variables);
|
|
@@ -67953,8 +67909,7 @@ const taskHandlers = {
|
|
|
67953
67909
|
return { confetti: true };
|
|
67954
67910
|
},
|
|
67955
67911
|
"confirm": async (input, { node }) => {
|
|
67956
|
-
const {
|
|
67957
|
-
const { confirm } = useConfirmation2();
|
|
67912
|
+
const { confirm } = useConfirmation();
|
|
67958
67913
|
if (confirm) {
|
|
67959
67914
|
let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
|
|
67960
67915
|
let title = interpolateTemplateFromVariableContext(node.data.title, variables);
|
|
@@ -67991,17 +67946,15 @@ const taskHandlers = {
|
|
|
67991
67946
|
return { visited: true };
|
|
67992
67947
|
},
|
|
67993
67948
|
"show-dialog": async (input, { node }) => {
|
|
67994
|
-
const {
|
|
67995
|
-
const { openCustomDialog } = useCustomDialog2();
|
|
67949
|
+
const { openCustomDialog } = useCustomDialog$1();
|
|
67996
67950
|
let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
|
|
67997
67951
|
const result = await openCustomDialog(node.data.layout, variables);
|
|
67998
67952
|
console.log("Dialog result", result);
|
|
67999
67953
|
return result;
|
|
68000
67954
|
},
|
|
68001
67955
|
"show-module": async (input, { node }) => {
|
|
68002
|
-
const { useModuleOverlay: useModuleOverlay2 } = await Promise.resolve().then(() => composables);
|
|
68003
67956
|
console.log("Show module", input, node);
|
|
68004
|
-
const { openInOverlay } =
|
|
67957
|
+
const { openInOverlay } = useModuleOverlay();
|
|
68005
67958
|
let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
|
|
68006
67959
|
const params = {};
|
|
68007
67960
|
node.data.moduleData?.forEach((d) => {
|