@bagelink/vue 0.0.35 → 0.0.39

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.35",
4
+ "version": "0.0.39",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -21,6 +21,10 @@
21
21
  "exports": {
22
22
  "./package.json": "./package.json",
23
23
  "./src": "./src/index.ts",
24
+ "./src/components": "./src/components/index.ts",
25
+ "./src/plugins": "./src/plugins/index.ts",
26
+ "./src/utils": "./src/utils/index.ts",
27
+ "./src/types": "./src/types/index.ts",
24
28
  ".": {
25
29
  "types": "./dist/index.d.ts",
26
30
  "require": "./dist/index.cjs",
@@ -58,7 +62,7 @@
58
62
  "prosemirror-state": "^1.4.3",
59
63
  "prosemirror-view": "^1.32.4",
60
64
  "@vue-macros/reactivity-transform": "^0.4.0",
61
- "@bagelink/sdk": "0.0.35"
65
+ "@bagelink/sdk": "0.0.39"
62
66
  },
63
67
  "peerDependencies": {
64
68
  "@bagelink/sdk": "*"
package/src/index.ts CHANGED
@@ -1 +1,8 @@
1
- export { BagelVue } from './plugins/bagel';
1
+ export {
2
+ BagelVue, type BagelOptions, bagelInjectionKey, useBagel,
3
+ } from './plugins/bagel';
4
+ export { ModalPlugin, useModal } from './plugins/modal';
5
+ export * from './utils';
6
+ export * from './components';
7
+ export * from './components/formkit';
8
+ export * from './components/form/inputs';
@@ -97,5 +97,3 @@ export const ModalPlugin: Plugin = {
97
97
  app.component('ModalContainer', ModalComponent);
98
98
  },
99
99
  };
100
-
101
- export default ModalPlugin;
@@ -1,9 +1,9 @@
1
1
  import { inject } from 'vue';
2
- import { useModal } from './modal';
2
+
3
3
  import type { BagelField } from '@/types/BagelField';
4
4
 
5
5
  let timeout: any;
6
- const debounce = (fn: () => void, delay = 500) => {
6
+ export const debounce = (fn: () => void, delay = 500) => {
7
7
  clearTimeout(timeout);
8
8
  timeout = setTimeout(fn, delay);
9
9
  };
@@ -34,7 +34,7 @@ export function computeFields(modelValue: Record<string, any>): BagelField[] {
34
34
  return fields;
35
35
  }
36
36
 
37
- const copyText = async (
37
+ export const copyText = async (
38
38
  text: string,
39
39
  // eslint-disable-next-line no-unused-vars
40
40
  cb?: (msg: string) => void,
@@ -56,7 +56,3 @@ export const parseLocale = (str: string, $t = (_str: string) => _str) => {
56
56
  if (!w) return str;
57
57
  return $t(w);
58
58
  };
59
-
60
- export {
61
- debounce, copyText, useModal,
62
- };