@glimstone/vue 4.2.8 → 4.3.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.
package/dist/info.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { Component } from "vue";
2
- import type { OpenUrl, UpdateCheck, VersionRow } from "@glimstone/core";
2
+ import type { UpdateCheck, VersionRow } from "@glimstone/core";
3
+ type OpenUrl = (url: string) => void;
3
4
  export interface InfoVersionCardProps {
4
5
  text: {
5
6
  title: string;
@@ -69,3 +70,4 @@ export interface InfoAboutCardProps {
69
70
  cryptoGlyph?: Component;
70
71
  hueIndex?: number;
71
72
  }
73
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/vue",
3
- "version": "4.2.8",
3
+ "version": "4.3.5",
4
4
  "description": "GlimStone's components for Vue",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "build": "vite build && vue-tsc -p tsconfig.build.json"
37
37
  },
38
38
  "dependencies": {
39
- "@glimstone/core": "4.2.8"
39
+ "@glimstone/core": "4.3.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@zag-js/combobox": "^1.46.0",
@@ -1,51 +0,0 @@
1
- import { Teleport as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, h as o, onScopeDispose as s, openBlock as c, ref as l, shallowRef as u, toDisplayString as d, useId as f, watch as p } from "vue";
2
- import { dismissBubbleOn as m, placeBubble as h, pointerWasLast as g, trackInputModality as _ } from "@glimstone/core";
3
- // src/tipBubble.ts
4
- function v(e, n = () => !1) {
5
- let r = l(!1), i = u(null), a = u(null), o = f(), c = t(e), d = t(() => !!c.value && r.value);
6
- p(n, () => r.value = !1), _();
7
- let v = () => {
8
- c.value && (r.value = !0);
9
- }, y = () => {
10
- r.value = !1;
11
- }, b;
12
- return p(d, (e) => {
13
- b?.(), b = void 0, e && (i.value && a.value && h(i.value, a.value), b = m(y));
14
- }, { flush: "post" }), s(() => b?.()), {
15
- trigger: i,
16
- bubble: a,
17
- id: o,
18
- text: c,
19
- shown: d,
20
- describedBy: t(() => d.value ? o : void 0),
21
- show: v,
22
- hide: y,
23
- showOnFocus: () => {
24
- g() || v();
25
- }
26
- };
27
- }
28
- // src/TipBubble.vue?vue&type=script&setup=true&lang.ts
29
- var y = ["id"], b = /* @__PURE__ */ a({
30
- __name: "TipBubble",
31
- props: { state: {} },
32
- setup(t) {
33
- return (a, o) => (c(), n(e, { to: "body" }, [t.state.shown.value ? (c(), i("div", {
34
- key: 0,
35
- ref: (e) => t.state.bubble.value = e,
36
- id: t.state.id,
37
- role: "tooltip",
38
- class: "glim-bubble glim-fade"
39
- }, d(t.state.text.value), 9, y)) : r("", !0)]));
40
- }
41
- }), x = (e, { slots: t }) => e.on ? o("span", {
42
- class: "glim-tip-wrap",
43
- onMouseenter: e.show,
44
- onMouseleave: e.hide
45
- }, t.default?.()) : t.default?.();
46
- x.props = [
47
- "on",
48
- "show",
49
- "hide"
50
- ];
51
- export { b as n, v as r, x as t };