@ulu/frontend-vue 0.2.0-beta.4 → 0.2.0-beta.5

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 +1 @@
1
- {"version":3,"file":"useBreakpointManager.d.ts","sourceRoot":"","sources":["../../lib/composables/useBreakpointManager.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;GAiBG;AACH,8CAZG;IAAyB,YAAY;IACV,OAAO;IACT,MAAM;CAC/B,GAAU;IACR,iBAAiB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACvF,gBAAgB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,mBAAmB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CACtD,CA8CH"}
1
+ {"version":3,"file":"useBreakpointManager.d.ts","sourceRoot":"","sources":["../../lib/composables/useBreakpointManager.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;GAiBG;AACH,8CAZG;IAAyB,YAAY;IACV,OAAO;IACT,MAAM;CAC/B,GAAU;IACR,iBAAiB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACvF,gBAAgB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,mBAAmB,EAAE,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CACtD,CA6CH"}
@@ -1,6 +1,6 @@
1
1
  import { ref as t, markRaw as c } from "vue";
2
2
  import { isBrowser as p } from "@ulu/utils/browser/dom.js";
3
- const m = {
3
+ const d = {
4
4
  /**
5
5
  * Set an initial value (value in mounted, SSR)
6
6
  */
@@ -16,14 +16,14 @@ const m = {
16
16
  customProperty: "--breakpoint"
17
17
  }
18
18
  };
19
- function w(l) {
20
- const e = Object.assign({}, m, l), a = t(null), i = t(e.initialValue), o = t(null);
19
+ function k(l) {
20
+ const e = Object.assign({}, d, l), a = t(null), i = t(e.initialValue), o = t(null);
21
21
  return (async () => {
22
22
  if (!p()) return;
23
23
  await new Promise((s) => {
24
24
  document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => s()) : s();
25
25
  });
26
- const u = await import("@ulu/frontend"), { BreakpointManager: d } = u, n = c(new d(e.plugin));
26
+ const { BreakpointManager: u } = await import("@ulu/frontend/js/ui/breakpoints.js"), n = c(new u(e.plugin));
27
27
  a.value = c(n);
28
28
  const r = () => {
29
29
  i.value = n.active, o.value = n.resizeDirection;
@@ -32,5 +32,5 @@ function w(l) {
32
32
  })(), { breakpointManager: a, breakpointActive: i, breakpointDirection: o };
33
33
  }
34
34
  export {
35
- w as useBreakpointManager
35
+ k as useBreakpointManager
36
36
  };
@@ -55,8 +55,7 @@ export function useBreakpointManager(options) {
55
55
  }
56
56
  });
57
57
 
58
- const mod = await import("@ulu/frontend");
59
- const { BreakpointManager } = mod;
58
+ const { BreakpointManager } = await import("@ulu/frontend/js/ui/breakpoints.js");
60
59
  const manager = markRaw(new BreakpointManager(config.plugin));
61
60
 
62
61
  breakpointManager.value = markRaw(manager);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.5",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [