@oneclick.dev/cms-kit 0.0.42 → 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.js CHANGED
@@ -54340,6 +54340,29 @@ 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" }));
54343
54366
  function tryOnScopeDispose(fn2) {
54344
54367
  if (getCurrentScope()) {
54345
54368
  onScopeDispose(fn2);
@@ -67881,9 +67904,31 @@ const taskHandlers = {
67881
67904
  }
67882
67905
  },
67883
67906
  "integration-action": async (input, { node }) => {
67884
- const { fireAction } = useIntegrationActions(node.data.action.integration);
67885
- let res = await fireAction(node.data.action, input);
67886
- return { result: res };
67907
+ console.log("🟣 [integration-action] starting...");
67908
+ console.log("📦 Node data:", node.data);
67909
+ const { useIntegrationActions: useIntegrationActions2 } = await Promise.resolve().then(() => composables);
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
+ }
67887
67932
  },
67888
67933
  "show-toast": async (input, { node }) => {
67889
67934
  console.log("Show toast", input, node);
@@ -67908,7 +67953,8 @@ const taskHandlers = {
67908
67953
  return { confetti: true };
67909
67954
  },
67910
67955
  "confirm": async (input, { node }) => {
67911
- const { confirm } = useConfirmation();
67956
+ const { useConfirmation: useConfirmation2 } = await Promise.resolve().then(() => composables);
67957
+ const { confirm } = useConfirmation2();
67912
67958
  if (confirm) {
67913
67959
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67914
67960
  let title = interpolateTemplateFromVariableContext(node.data.title, variables);
@@ -67945,15 +67991,17 @@ const taskHandlers = {
67945
67991
  return { visited: true };
67946
67992
  },
67947
67993
  "show-dialog": async (input, { node }) => {
67948
- const { openCustomDialog } = useCustomDialog$1();
67994
+ const { useCustomDialog: useCustomDialog2 } = await Promise.resolve().then(() => composables);
67995
+ const { openCustomDialog } = useCustomDialog2();
67949
67996
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67950
67997
  const result = await openCustomDialog(node.data.layout, variables);
67951
67998
  console.log("Dialog result", result);
67952
67999
  return result;
67953
68000
  },
67954
68001
  "show-module": async (input, { node }) => {
68002
+ const { useModuleOverlay: useModuleOverlay2 } = await Promise.resolve().then(() => composables);
67955
68003
  console.log("Show module", input, node);
67956
- const { openInOverlay } = useModuleOverlay();
68004
+ const { openInOverlay } = useModuleOverlay2();
67957
68005
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67958
68006
  const params = {};
67959
68007
  node.data.moduleData?.forEach((d) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-kit",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "main": "./dist/cms-kit.cjs",
6
6
  "module": "./dist/cms-kit.js",