@oneclick.dev/cms-kit 0.0.43 → 0.0.44
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 +2 -2
- package/dist/cms-kit.js +24 -3
- package/package.json +1 -1
package/dist/cms-kit.js
CHANGED
|
@@ -67904,10 +67904,31 @@ const taskHandlers = {
|
|
|
67904
67904
|
}
|
|
67905
67905
|
},
|
|
67906
67906
|
"integration-action": async (input, { node }) => {
|
|
67907
|
+
console.log("🟣 [integration-action] starting...");
|
|
67908
|
+
console.log("📦 Node data:", node.data);
|
|
67907
67909
|
const { useIntegrationActions: useIntegrationActions2 } = await Promise.resolve().then(() => composables);
|
|
67908
|
-
|
|
67909
|
-
|
|
67910
|
-
|
|
67910
|
+
console.log("🟢 Imported useIntegrationActions:", useIntegrationActions2);
|
|
67911
|
+
try {
|
|
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
|
+
}
|
|
67911
67932
|
},
|
|
67912
67933
|
"show-toast": async (input, { node }) => {
|
|
67913
67934
|
console.log("Show toast", input, node);
|