@oneclick.dev/cms-kit 0.0.11 → 0.0.12

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,52 @@ 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
+ const injected = inject$1("cms-useIntegrationActionBuilder");
77574
+ if (!injected) {
77575
+ throw new Error("[cms-kit] Missing injected useIntegrationActionBuilder composable");
77576
+ }
77577
+ return injected();
77575
77578
  }
77576
- function getCmsKitDependency(name2) {
77577
- const dep = resolvedDependencies[name2];
77578
- if (!dep) {
77579
- throw new Error(`[cms-kit] Missing dependency: ${name2}`);
77579
+ function useIntegrations() {
77580
+ const injected = inject$1("cms-useIntegrations");
77581
+ if (!injected) {
77582
+ throw new Error("[cms-kit] Missing injected useIntegrations composable");
77580
77583
  }
77581
- return dep;
77584
+ return injected();
77582
77585
  }
77583
- function useIntegrationActionBuilder() {
77584
- const injected = getCmsKitDependency("useIntegrationActionBuilder");
77586
+ function useIntegrationActions$1() {
77587
+ const injected = inject$1("cms-useIntegrationActions");
77585
77588
  if (!injected) {
77586
- throw new Error("[cms-kit] Missing injected useIntegrationActionBuilder composable");
77589
+ throw new Error("[cms-kit] Missing injected useIntegrationActions composable");
77590
+ }
77591
+ return injected();
77592
+ }
77593
+ function useMediaLibrary$1() {
77594
+ const injected = inject$1("cms-useMediaLibrary");
77595
+ if (!injected) {
77596
+ throw new Error("[cms-kit] Missing injected useMediaLibrary composable");
77597
+ }
77598
+ return injected();
77599
+ }
77600
+ function useProjectService() {
77601
+ const injected = inject$1("cms-useProjectService");
77602
+ if (!injected) {
77603
+ throw new Error("[cms-kit] Missing injected useProjectService composable");
77604
+ }
77605
+ return injected();
77606
+ }
77607
+ function useBreadcrumbs$1() {
77608
+ const injected = inject$1("cms-useBreadcrumbs");
77609
+ if (!injected) {
77610
+ throw new Error("[cms-kit] Missing injected useBreadcrumbs composable");
77611
+ }
77612
+ return injected();
77613
+ }
77614
+ function useQueryBuilder() {
77615
+ const injected = inject$1("cms-useQueryBuilder");
77616
+ if (!injected) {
77617
+ throw new Error("[cms-kit] Missing injected useQueryBuilder composable");
77587
77618
  }
77588
77619
  return injected();
77589
77620
  }
@@ -79202,13 +79233,6 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
79202
79233
  };
79203
79234
  }
79204
79235
  });
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
79236
  const _hoisted_1$$ = { class: "w-full" };
79213
79237
  const _hoisted_2$x = { class: "grid gap-2 mb-2 py-2" };
79214
79238
  const _hoisted_3$m = { class: "flex flex-col items-start gap-1.5 mb-4" };
@@ -111640,20 +111664,6 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
111640
111664
  };
111641
111665
  }
111642
111666
  });
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
111667
  const _hoisted_1$z = { class: "flex flex-col gap-2" };
111658
111668
  const _hoisted_2$k = { class: "text-sm" };
111659
111669
  const _sfc_main$2p = /* @__PURE__ */ defineComponent({
@@ -121647,7 +121657,6 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
121647
121657
  async setup(__props) {
121648
121658
  let __temp, __restore;
121649
121659
  const { builderState, onConfirm, onCancel } = ([__temp, __restore] = withAsyncContext(() => useIntegrationActionBuilder()), __temp = await __temp, __restore(), __temp);
121650
- console.log("TESTJEEEE", builderState, builderState.value, onConfirm, onCancel);
121651
121660
  const route = useRoute();
121652
121661
  const { getProjectIntegrations } = useIntegrations();
121653
121662
  const integrations = ref$1([]);
@@ -122496,13 +122505,6 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122496
122505
  };
122497
122506
  }
122498
122507
  });
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
122508
  const _hoisted_1$g = { class: "flex items-center gap-2" };
122507
122509
  const _hoisted_2$6 = {
122508
122510
  key: 0,
@@ -130188,13 +130190,6 @@ const __vite_glob_0_50 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
130188
130190
  PopoverContent: _sfc_main$1w,
130189
130191
  PopoverTrigger: _sfc_main$1v
130190
130192
  }, 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
130193
  const _hoisted_1$c = { key: 0 };
130199
130194
  const _hoisted_2$4 = { key: 1 };
130200
130195
  const _hoisted_3$3 = { class: "space-y-6 py-4" };
@@ -142324,13 +142319,6 @@ function useCms() {
142324
142319
  }
142325
142320
  return { breadcrumbs, project };
142326
142321
  }
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
142322
  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
142323
  const components = {};
142336
142324
  for (const mod of Object.values(modules)) {
@@ -142338,8 +142326,6 @@ for (const mod of Object.values(modules)) {
142338
142326
  }
142339
142327
  export {
142340
142328
  components,
142341
- getCmsKitDependency,
142342
- setCmsKitDependency,
142343
142329
  useBreadcrumbs$1 as useBreadcrumbs,
142344
142330
  useCms,
142345
142331
  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.12",
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;