@ulu/frontend-vue 0.6.13 → 0.6.14

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.
@@ -1,6 +1,6 @@
1
1
  export { default as corePlugin } from './core/index.js';
2
- export { default as toastPlugin } from './toast/index.js';
3
2
  export { default as breakpointsPlugin } from './breakpoints/index.js';
4
3
  export { default as popoversPlugin, useTooltip, useTooltipFollow } from './popovers/index.js';
5
4
  export { default as modalsPlugin, useModals } from './modals/index.js';
5
+ export { default as toastPlugin, useToast } from './toast/index.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,7 @@
1
+ import { useToast } from './useToast.js';
1
2
  /**
2
3
  * Install plugin
3
4
  */
4
5
  export default function install(app: any, userOptions?: {}): void;
6
+ export { useToast };
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/index.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,kEASC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/index.js"],"names":[],"mappings":"AAQA;;GAEG;AACH,kEASC;;yBAdwB,eAAe"}
@@ -0,0 +1,10 @@
1
+ import { inject as o } from "vue";
2
+ const n = () => {
3
+ const t = o("uluToast");
4
+ if (!t)
5
+ throw new Error("Toast plugin not installed");
6
+ return t;
7
+ };
8
+ export {
9
+ n as useToast
10
+ };
@@ -8,5 +8,5 @@
8
8
  export { default as corePlugin } from './core/index.js';
9
9
  export { default as popoversPlugin, useTooltip, useTooltipFollow } from './popovers/index.js';
10
10
  export { default as modalsPlugin, useModals } from './modals/index.js';
11
- export { default as toastPlugin } from './toast/index.js';
11
+ export { default as toastPlugin, useToast } from "./toast/index.js";
12
12
  export { default as breakpointsPlugin } from './breakpoints/index.js';
@@ -4,6 +4,7 @@
4
4
  import { store, api } from "./store.js";
5
5
  import UluToast from "./UluToast.vue";
6
6
  import UluToastDisplay from "./UluToastDisplay.vue";
7
+ import { useToast } from "./useToast.js";
7
8
 
8
9
  /**
9
10
  * Install plugin
@@ -16,5 +17,7 @@ export default function install(app, userOptions = {}) {
16
17
  app.component("UluToastDisplay", UluToastDisplay);
17
18
 
18
19
  app.config.globalProperties.$uluToast = api;
19
- app.provide('uluToast', api);
20
- }
20
+ app.provide("uluToast", api);
21
+ }
22
+
23
+ export { useToast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
4
4
  "description": "A modular, tree-shakeable Vue 3 component library for the Ulu Frontend theming system, plus general utilities for Vue development",
5
5
  "type": "module",
6
6
  "files": [