@oneclick.dev/cms-kit 0.0.42 → 0.0.43

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,7 +67904,8 @@ const taskHandlers = {
67881
67904
  }
67882
67905
  },
67883
67906
  "integration-action": async (input, { node }) => {
67884
- const { fireAction } = useIntegrationActions(node.data.action.integration);
67907
+ const { useIntegrationActions: useIntegrationActions2 } = await Promise.resolve().then(() => composables);
67908
+ const { fireAction } = useIntegrationActions2(node.data.action.integration);
67885
67909
  let res = await fireAction(node.data.action, input);
67886
67910
  return { result: res };
67887
67911
  },
@@ -67908,7 +67932,8 @@ const taskHandlers = {
67908
67932
  return { confetti: true };
67909
67933
  },
67910
67934
  "confirm": async (input, { node }) => {
67911
- const { confirm } = useConfirmation();
67935
+ const { useConfirmation: useConfirmation2 } = await Promise.resolve().then(() => composables);
67936
+ const { confirm } = useConfirmation2();
67912
67937
  if (confirm) {
67913
67938
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67914
67939
  let title = interpolateTemplateFromVariableContext(node.data.title, variables);
@@ -67945,15 +67970,17 @@ const taskHandlers = {
67945
67970
  return { visited: true };
67946
67971
  },
67947
67972
  "show-dialog": async (input, { node }) => {
67948
- const { openCustomDialog } = useCustomDialog$1();
67973
+ const { useCustomDialog: useCustomDialog2 } = await Promise.resolve().then(() => composables);
67974
+ const { openCustomDialog } = useCustomDialog2();
67949
67975
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67950
67976
  const result = await openCustomDialog(node.data.layout, variables);
67951
67977
  console.log("Dialog result", result);
67952
67978
  return result;
67953
67979
  },
67954
67980
  "show-module": async (input, { node }) => {
67981
+ const { useModuleOverlay: useModuleOverlay2 } = await Promise.resolve().then(() => composables);
67955
67982
  console.log("Show module", input, node);
67956
- const { openInOverlay } = useModuleOverlay();
67983
+ const { openInOverlay } = useModuleOverlay2();
67957
67984
  let variables = Object.keys(input).map((key) => ({ name: key, value: input[key] }));
67958
67985
  const params = {};
67959
67986
  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.43",
4
4
  "type": "module",
5
5
  "main": "./dist/cms-kit.cjs",
6
6
  "module": "./dist/cms-kit.js",