@oneclick.dev/cms-kit 0.0.11 → 0.0.13

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/index.es.js CHANGED
@@ -77569,21 +77569,54 @@ const _sfc_main$3h = /* @__PURE__ */ defineComponent({
77569
77569
  };
77570
77570
  }
77571
77571
  });
77572
- const resolvedDependencies = {};
77573
- function setCmsKitDependency(name2, value) {
77574
- resolvedDependencies[name2] = value;
77572
+ function useIntegrationActionBuilder() {
77573
+ console.log("🔍 currentInstance", getCurrentInstance());
77574
+ const injected = inject$1("cms-useIntegrationActionBuilder", null);
77575
+ console.log("🔍 injected", injected);
77576
+ if (!injected) {
77577
+ throw new Error("[cms-kit] Missing injected useIntegrationActionBuilder composable");
77578
+ }
77579
+ return injected();
77575
77580
  }
77576
- function getCmsKitDependency(name2) {
77577
- const dep = resolvedDependencies[name2];
77578
- if (!dep) {
77579
- throw new Error(`[cms-kit] Missing dependency: ${name2}`);
77581
+ function useIntegrations() {
77582
+ const injected = inject$1("cms-useIntegrations");
77583
+ if (!injected) {
77584
+ throw new Error("[cms-kit] Missing injected useIntegrations composable");
77580
77585
  }
77581
- return dep;
77586
+ return injected();
77582
77587
  }
77583
- function useIntegrationActionBuilder() {
77584
- const injected = getCmsKitDependency("useIntegrationActionBuilder");
77588
+ function useIntegrationActions$1() {
77589
+ const injected = inject$1("cms-useIntegrationActions");
77585
77590
  if (!injected) {
77586
- throw new Error("[cms-kit] Missing injected useIntegrationActionBuilder composable");
77591
+ throw new Error("[cms-kit] Missing injected useIntegrationActions composable");
77592
+ }
77593
+ return injected();
77594
+ }
77595
+ function useMediaLibrary$1() {
77596
+ const injected = inject$1("cms-useMediaLibrary");
77597
+ if (!injected) {
77598
+ throw new Error("[cms-kit] Missing injected useMediaLibrary composable");
77599
+ }
77600
+ return injected();
77601
+ }
77602
+ function useProjectService() {
77603
+ const injected = inject$1("cms-useProjectService");
77604
+ if (!injected) {
77605
+ throw new Error("[cms-kit] Missing injected useProjectService composable");
77606
+ }
77607
+ return injected();
77608
+ }
77609
+ function useBreadcrumbs$1() {
77610
+ const injected = inject$1("cms-useBreadcrumbs");
77611
+ if (!injected) {
77612
+ throw new Error("[cms-kit] Missing injected useBreadcrumbs composable");
77613
+ }
77614
+ return injected();
77615
+ }
77616
+ function useQueryBuilder() {
77617
+ const injected = inject$1("cms-useQueryBuilder");
77618
+ if (!injected) {
77619
+ throw new Error("[cms-kit] Missing injected useQueryBuilder composable");
77587
77620
  }
77588
77621
  return injected();
77589
77622
  }
@@ -79202,13 +79235,6 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
79202
79235
  };
79203
79236
  }
79204
79237
  });
79205
- function useProjectService() {
79206
- const injected = getCmsKitDependency("useProjectService");
79207
- if (!injected) {
79208
- throw new Error("[cms-kit] Missing injected useProjectService composable");
79209
- }
79210
- return injected();
79211
- }
79212
79238
  const _hoisted_1$$ = { class: "w-full" };
79213
79239
  const _hoisted_2$x = { class: "grid gap-2 mb-2 py-2" };
79214
79240
  const _hoisted_3$m = { class: "flex flex-col items-start gap-1.5 mb-4" };
@@ -111640,20 +111666,6 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
111640
111666
  };
111641
111667
  }
111642
111668
  });
111643
- function useIntegrations() {
111644
- const injected = getCmsKitDependency("useIntegrations");
111645
- if (!injected) {
111646
- throw new Error("[cms-kit] Missing injected useIntegrations composable");
111647
- }
111648
- return injected();
111649
- }
111650
- function useIntegrationActions$1() {
111651
- const injected = getCmsKitDependency("useIntegrationActions");
111652
- if (!injected) {
111653
- throw new Error("[cms-kit] Missing injected useIntegrationActions composable");
111654
- }
111655
- return injected();
111656
- }
111657
111669
  const _hoisted_1$z = { class: "flex flex-col gap-2" };
111658
111670
  const _hoisted_2$k = { class: "text-sm" };
111659
111671
  const _sfc_main$2p = /* @__PURE__ */ defineComponent({
@@ -121647,7 +121659,6 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
121647
121659
  async setup(__props) {
121648
121660
  let __temp, __restore;
121649
121661
  const { builderState, onConfirm, onCancel } = ([__temp, __restore] = withAsyncContext(() => useIntegrationActionBuilder()), __temp = await __temp, __restore(), __temp);
121650
- console.log("TESTJEEEE", builderState, builderState.value, onConfirm, onCancel);
121651
121662
  const route = useRoute();
121652
121663
  const { getProjectIntegrations } = useIntegrations();
121653
121664
  const integrations = ref$1([]);
@@ -122496,13 +122507,6 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122496
122507
  };
122497
122508
  }
122498
122509
  });
122499
- function useMediaLibrary$1() {
122500
- const injected = getCmsKitDependency("useMediaLibrary");
122501
- if (!injected) {
122502
- throw new Error("[cms-kit] Missing injected useMediaLibrary composable");
122503
- }
122504
- return injected();
122505
- }
122506
122510
  const _hoisted_1$g = { class: "flex items-center gap-2" };
122507
122511
  const _hoisted_2$6 = {
122508
122512
  key: 0,
@@ -130188,13 +130192,6 @@ const __vite_glob_0_50 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
130188
130192
  PopoverContent: _sfc_main$1w,
130189
130193
  PopoverTrigger: _sfc_main$1v
130190
130194
  }, Symbol.toStringTag, { value: "Module" }));
130191
- function useQueryBuilder() {
130192
- const injected = getCmsKitDependency("useQueryBuilder");
130193
- if (!injected) {
130194
- throw new Error("[cms-kit] Missing injected useQueryBuilder composable");
130195
- }
130196
- return injected();
130197
- }
130198
130195
  const _hoisted_1$c = { key: 0 };
130199
130196
  const _hoisted_2$4 = { key: 1 };
130200
130197
  const _hoisted_3$3 = { class: "space-y-6 py-4" };
@@ -142324,13 +142321,6 @@ function useCms() {
142324
142321
  }
142325
142322
  return { breadcrumbs, project };
142326
142323
  }
142327
- function useBreadcrumbs$1() {
142328
- const injected = getCmsKitDependency("useBreadcrumbs");
142329
- if (!injected) {
142330
- throw new Error("[cms-kit] Missing injected useBreadcrumbs composable");
142331
- }
142332
- return injected();
142333
- }
142334
142324
  const modules = /* @__PURE__ */ Object.assign({ "./components/ui/apple-emoji/index.ts": __vite_glob_0_0, "./components/ui/avatar/index.ts": __vite_glob_0_1, "./components/ui/badge/index.ts": __vite_glob_0_2, "./components/ui/breadcrumb/index.ts": __vite_glob_0_3, "./components/ui/button/index.ts": __vite_glob_0_4, "./components/ui/calendar/index.ts": __vite_glob_0_5, "./components/ui/card/index.ts": __vite_glob_0_6, "./components/ui/checkbox/index.ts": __vite_glob_0_7, "./components/ui/code-editor/index.ts": __vite_glob_0_8, "./components/ui/collapsible/index.ts": __vite_glob_0_9, "./components/ui/combobox/index.ts": __vite_glob_0_10, "./components/ui/command/index.ts": __vite_glob_0_11, "./components/ui/context-menu/index.ts": __vite_glob_0_12, "./components/ui/custom-dialog/index.ts": __vite_glob_0_13, "./components/ui/dialog/index.ts": __vite_glob_0_14, "./components/ui/drawer/index.ts": __vite_glob_0_15, "./components/ui/dropdown-menu/index.ts": __vite_glob_0_16, "./components/ui/emoji-picker/index.ts": __vite_glob_0_17, "./components/ui/flow-builder/index.ts": __vite_glob_0_18, "./components/ui/form-builder/components/admin/element-setting-views/index.ts": __vite_glob_0_19, "./components/ui/form-builder/components/elements/button/index.ts": __vite_glob_0_20, "./components/ui/form-builder/components/elements/checkbox/index.ts": __vite_glob_0_21, "./components/ui/form-builder/components/elements/file/index.ts": __vite_glob_0_22, "./components/ui/form-builder/components/elements/images/index.ts": __vite_glob_0_23, "./components/ui/form-builder/components/elements/index.ts": __vite_glob_0_24, "./components/ui/form-builder/components/elements/items/index.ts": __vite_glob_0_25, "./components/ui/form-builder/components/elements/label/index.ts": __vite_glob_0_26, "./components/ui/form-builder/components/elements/location/index.ts": __vite_glob_0_27, "./components/ui/form-builder/components/elements/radios/index.ts": __vite_glob_0_28, "./components/ui/form-builder/components/elements/richtext/index.ts": __vite_glob_0_29, "./components/ui/form-builder/components/elements/scanner/index.ts": __vite_glob_0_30, "./components/ui/form-builder/components/elements/select/index.ts": __vite_glob_0_31, "./components/ui/form-builder/components/elements/text/index.ts": __vite_glob_0_32, "./components/ui/form-builder/components/elements/textarea/index.ts": __vite_glob_0_33, "./components/ui/form-builder/components/elements/textfield/index.ts": __vite_glob_0_34, "./components/ui/form-builder/index.ts": __vite_glob_0_35, "./components/ui/form/index.ts": __vite_glob_0_36, "./components/ui/input/index.ts": __vite_glob_0_37, "./components/ui/integration-action-builder/index.ts": __vite_glob_0_38, "./components/ui/integration-action-builder/integrations/firebase/index.ts": __vite_glob_0_39, "./components/ui/integration-action-builder/integrations/index.ts": __vite_glob_0_40, "./components/ui/integration-action-builder/integrations/openai/index.ts": __vite_glob_0_41, "./components/ui/integration-action-builder/integrations/twilio/index.ts": __vite_glob_0_42, "./components/ui/integration-icon/index.ts": __vite_glob_0_43, "./components/ui/label/index.ts": __vite_glob_0_44, "./components/ui/lucide-icon-selector/index.ts": __vite_glob_0_45, "./components/ui/media-picker/index.ts": __vite_glob_0_46, "./components/ui/menubar/index.ts": __vite_glob_0_47, "./components/ui/number-field/index.ts": __vite_glob_0_48, "./components/ui/pagination/index.ts": __vite_glob_0_49, "./components/ui/popover/index.ts": __vite_glob_0_50, "./components/ui/query-builder-dialog/index.ts": __vite_glob_0_51, "./components/ui/radio-group/index.ts": __vite_glob_0_52, "./components/ui/range-calendar/index.ts": __vite_glob_0_53, "./components/ui/resizable/index.ts": __vite_glob_0_54, "./components/ui/ripple-button/index.ts": __vite_glob_0_55, "./components/ui/sandbox/index.ts": __vite_glob_0_56, "./components/ui/scroll-area/index.ts": __vite_glob_0_57, "./components/ui/segmented-control/index.ts": __vite_glob_0_58, "./components/ui/select/index.ts": __vite_glob_0_59, "./components/ui/separator/index.ts": __vite_glob_0_60, "./components/ui/sheet/index.ts": __vite_glob_0_61, "./components/ui/sidebar/index.ts": __vite_glob_0_62, "./components/ui/skeleton/index.ts": __vite_glob_0_63, "./components/ui/sonner/index.ts": __vite_glob_0_64, "./components/ui/spring-calendar/index.ts": __vite_glob_0_65, "./components/ui/switch/index.ts": __vite_glob_0_66, "./components/ui/table/index.ts": __vite_glob_0_67, "./components/ui/tabs/index.ts": __vite_glob_0_68, "./components/ui/tailwind-color-picker/index.ts": __vite_glob_0_69, "./components/ui/textarea/index.ts": __vite_glob_0_70, "./components/ui/toggle/index.ts": __vite_glob_0_71, "./components/ui/tooltip/index.ts": __vite_glob_0_72 });
142335
142325
  const components = {};
142336
142326
  for (const mod of Object.values(modules)) {
@@ -142338,8 +142328,6 @@ for (const mod of Object.values(modules)) {
142338
142328
  }
142339
142329
  export {
142340
142330
  components,
142341
- getCmsKitDependency,
142342
- setCmsKitDependency,
142343
142331
  useBreadcrumbs$1 as useBreadcrumbs,
142344
142332
  useCms,
142345
142333
  useIntegrationActionBuilder,
@@ -0,0 +1,7 @@
1
+ export declare function useIntegrationActionBuilder(): any;
2
+ export declare function useIntegrations(): any;
3
+ export declare function useIntegrationActions(): any;
4
+ export declare function useMediaLibrary(): any;
5
+ export declare function useProjectService(): any;
6
+ export declare function useBreadcrumbs(): any;
7
+ export declare function useQueryBuilder(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneclick.dev/cms-kit",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -1 +0,0 @@
1
- export declare function useBreadcrumbs(): any;
@@ -1 +0,0 @@
1
- export declare function useIntegrationActionBuilder(): any;
@@ -1 +0,0 @@
1
- export declare function useIntegrationActions(): any;
@@ -1 +0,0 @@
1
- export declare function useIntegrations(): any;
@@ -1 +0,0 @@
1
- export declare function useMediaLibrary(): any;
@@ -1 +0,0 @@
1
- export declare function useProjectService(): any;
@@ -1 +0,0 @@
1
- export declare function useQueryBuilder(): any;
@@ -1,2 +0,0 @@
1
- export declare function setCmsKitDependency(name: string, value: any): void;
2
- export declare function getCmsKitDependency<T = any>(name: string): T;