@vokril/ui-solid 0.2.1 → 0.3.0
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/CHANGELOG.md +11 -0
- package/dist/{CommandPalette-4w3pEbna.cjs → CommandPalette-CF0B1C8k.cjs} +1 -1
- package/dist/{CommandPalette-D5BzLE0U.js → CommandPalette-DiCgZhOV.js} +1 -1
- package/dist/{GuidedTour-YUs4zuez.js → GuidedTour-C6Na3wqL.js} +1208 -1242
- package/dist/{GuidedTour-CYgy48bt.cjs → GuidedTour-DzQoun_d.cjs} +9 -9
- package/dist/{StatusBarNotificationBell-DQ94Snzi.cjs → StatusBarNotificationBell-CGW8eLXe.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-BWZj0Pc2.js → StatusBarNotificationBell-DUiOZ0m5.js} +2 -2
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +27 -0
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +27 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +15 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +15 -0
- package/dist/_internal/app/keybindings/contextKey/builtins.d.cts +48 -2
- package/dist/_internal/app/keybindings/contextKey/builtins.d.ts +48 -2
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +30 -0
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +30 -0
- package/dist/builtins-DM7FDxEt.cjs +1 -0
- package/dist/builtins-XOM9gfIx.js +74 -0
- package/dist/descriptor-7e-M9YCk.cjs +1 -0
- package/dist/descriptor-DxSLz4-c.js +1106 -0
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +3 -0
- package/dist/host/index.d.ts +3 -0
- package/dist/host/index.js +67 -61
- package/dist/index.cjs +1 -1
- package/dist/index.js +411 -404
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +3 -3
- package/dist/server/{CommandPalette-C-Y0biXL.cjs → CommandPalette-CklLeIaO.cjs} +1 -1
- package/dist/server/{CommandPalette-C69NFoDY.js → CommandPalette-Dq-wVRJf.js} +1 -1
- package/dist/server/{GuidedTour-C38isG70.js → GuidedTour-CC3huRhY.js} +1074 -1109
- package/dist/server/{GuidedTour-TAGGtEp2.cjs → GuidedTour-Dik03Ffv.cjs} +11 -11
- package/dist/server/{StatusBarNotificationBell-Bm2ZiM-t.js → StatusBarNotificationBell-Cg9Zomfn.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-DL_OCMv7.cjs → StatusBarNotificationBell-DSuT1si2.cjs} +1 -1
- package/dist/server/builtins-DM7FDxEt.cjs +1 -0
- package/dist/server/builtins-XOM9gfIx.js +74 -0
- package/dist/server/descriptor-BXVyZiT7.cjs +1 -0
- package/dist/server/descriptor-CqLXoy2i.js +992 -0
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +71 -65
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +713 -706
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +3 -3
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +3 -3
- package/dist/server/{settingsSearchContributor-CDqRlqt7.cjs → settingsSearchContributor-BHsOfue1.cjs} +1 -1
- package/dist/server/{settingsSearchContributor-Dn-HFipc.js → settingsSearchContributor-xo70xEuW.js} +1 -1
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +9 -8
- package/dist/server/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/server/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/dist/{settingsSearchContributor-BGImAgsw.js → settingsSearchContributor-Ba4vBBmO.js} +1 -1
- package/dist/{settingsSearchContributor-Ci6vEEQ1.cjs → settingsSearchContributor-CYWXZV0b.cjs} +1 -1
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +32 -0
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +22 -0
- package/dist/solid/_internal/app/keybindings/contextKey/builtins.js +10 -0
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +25 -0
- package/dist/solid/host/index.js +3 -0
- package/dist/solid/tree/TreeSurface.jsx +17 -0
- package/dist/solid/tree/createTreeController.js +7 -6
- package/dist/solid/tree/index.js +1 -0
- package/dist/solid/tree/selectAllInScope.js +47 -0
- package/dist/solid/tree/treeKeymap.js +0 -5
- package/dist/tree/createTreeController.d.cts +5 -0
- package/dist/tree/createTreeController.d.ts +5 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.d.cts +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +9 -8
- package/dist/tree/selectAllInScope.d.cts +5 -0
- package/dist/tree/selectAllInScope.d.ts +5 -0
- package/dist/tree/treeKeymap.d.cts +2 -4
- package/dist/tree/treeKeymap.d.ts +2 -4
- package/dist/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/package.json +1 -1
- package/dist/descriptor-NxSXaBdy.cjs +0 -1
- package/dist/descriptor-zKWZdo3E.js +0 -1059
- package/dist/server/descriptor-B6FQLHie.cjs +0 -1
- package/dist/server/descriptor-DNWBt66Z.js +0 -951
- package/dist/server/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-DOZlLrpo.js +0 -113
- package/dist/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/visibleBrowserRegistry-DOZlLrpo.js +0 -113
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),v=require("solid-js/web"),f=n.createContext();function x(){const e=n.useContext(f);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[q,C]=n.createSignal(void 0);let c=null;function y(e){c=e}function p(e){C(e),c==null||c(e)}const l=n.createContext(null);function V(e){return v.createComponent(l.Provider,{get value(){return e.value},get children(){return e.children}})}function T(){const e=n.useContext(l);if(!e)throw new d.BugIndicatingError("useKeybindings must be used inside <KeybindingsProvider>");return e}function W(){return n.useContext(l)}const w=n.createContext();function h(){return n.useContext(w)}const a=new WeakMap;function b(e){let t=a.get(e);if(!t){const[r,s]=n.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},a.set(e,t)}return t}function K(e,t,r,s,i,g=0){if(!e)return;const o=b(e);if(s&&r.width>0&&r.height>0){const u=o.entries.get(t);if(u&&u.generation>g)return;o.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:g})}else{const u=o.entries.get(t);if(u&&(!i||u.lease===i)){if(u.generation>g)return;o.entries.delete(t)}}o.setActiveBrowsers(Array.from(o.entries.values()))}function S(e,t,r){if(!e)return;const s=a.get(e);if(!s)return;const i=s.entries.get(t);i&&(!r||i.lease===r)&&(s.entries.delete(t),s.setActiveBrowsers(Array.from(s.entries.values())))}function B(e){return e?b(e).activeBrowsers():[]}function k(e){return B(e).length>0}function A(e){if(e){const t=a.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.KeybindingsProvider=V;exports.ToolWindowContext=w;exports.WorkspaceTabsContext=f;exports.clearVisibleBrowsersForTesting=A;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=k;exports.openSettingsModal=p;exports.registerVisibleBrowser=K;exports.setOpenSettingsHandler=y;exports.unregisterVisibleBrowser=S;exports.useKeybindings=T;exports.useKeybindingsOptional=W;exports.useToolWindowLayout=h;exports.useWorkspaceTabs=x;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { createContext as f, useContext as c, createSignal as d } from "solid-js";
|
|
2
|
-
import { B as w } from "./bugIndicatingError-h3J5qkL6.js";
|
|
3
|
-
import { createComponent as B } from "solid-js/web";
|
|
4
|
-
const p = f();
|
|
5
|
-
function K() {
|
|
6
|
-
const e = c(p);
|
|
7
|
-
if (!e)
|
|
8
|
-
throw new w("useWorkspaceTabs: missing provider");
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
const [T, m] = d(void 0);
|
|
12
|
-
let a = null;
|
|
13
|
-
function V(e) {
|
|
14
|
-
a = e;
|
|
15
|
-
}
|
|
16
|
-
function A(e) {
|
|
17
|
-
m(e), a == null || a(e);
|
|
18
|
-
}
|
|
19
|
-
const l = f(null);
|
|
20
|
-
function k(e) {
|
|
21
|
-
return B(l.Provider, {
|
|
22
|
-
get value() {
|
|
23
|
-
return e.value;
|
|
24
|
-
},
|
|
25
|
-
get children() {
|
|
26
|
-
return e.children;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function S() {
|
|
31
|
-
const e = c(l);
|
|
32
|
-
if (!e)
|
|
33
|
-
throw new w("useKeybindings must be used inside <KeybindingsProvider>");
|
|
34
|
-
return e;
|
|
35
|
-
}
|
|
36
|
-
function M() {
|
|
37
|
-
return c(l);
|
|
38
|
-
}
|
|
39
|
-
const y = f();
|
|
40
|
-
function O() {
|
|
41
|
-
return c(y);
|
|
42
|
-
}
|
|
43
|
-
const u = /* @__PURE__ */ new WeakMap();
|
|
44
|
-
function v(e) {
|
|
45
|
-
let t = u.get(e);
|
|
46
|
-
if (!t) {
|
|
47
|
-
const [r, s] = d([]);
|
|
48
|
-
t = {
|
|
49
|
-
entries: /* @__PURE__ */ new Map(),
|
|
50
|
-
activeBrowsers: r,
|
|
51
|
-
setActiveBrowsers: s
|
|
52
|
-
}, u.set(e, t);
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
}
|
|
56
|
-
function P(e, t, r, s, n, g = 0) {
|
|
57
|
-
if (!e) return;
|
|
58
|
-
const i = v(e);
|
|
59
|
-
if (s && r.width > 0 && r.height > 0) {
|
|
60
|
-
const o = i.entries.get(t);
|
|
61
|
-
if (o && o.generation > g)
|
|
62
|
-
return;
|
|
63
|
-
i.entries.set(t, {
|
|
64
|
-
tabId: t,
|
|
65
|
-
bounds: { ...r },
|
|
66
|
-
lease: n,
|
|
67
|
-
generation: g
|
|
68
|
-
});
|
|
69
|
-
} else {
|
|
70
|
-
const o = i.entries.get(t);
|
|
71
|
-
if (o && (!n || o.lease === n)) {
|
|
72
|
-
if (o.generation > g)
|
|
73
|
-
return;
|
|
74
|
-
i.entries.delete(t);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
i.setActiveBrowsers(Array.from(i.entries.values()));
|
|
78
|
-
}
|
|
79
|
-
function q(e, t, r) {
|
|
80
|
-
if (!e) return;
|
|
81
|
-
const s = u.get(e);
|
|
82
|
-
if (!s) return;
|
|
83
|
-
const n = s.entries.get(t);
|
|
84
|
-
n && (!r || n.lease === r) && (s.entries.delete(t), s.setActiveBrowsers(Array.from(s.entries.values())));
|
|
85
|
-
}
|
|
86
|
-
function b(e) {
|
|
87
|
-
return e ? v(e).activeBrowsers() : [];
|
|
88
|
-
}
|
|
89
|
-
function R(e) {
|
|
90
|
-
return b(e).length > 0;
|
|
91
|
-
}
|
|
92
|
-
function E(e) {
|
|
93
|
-
if (e) {
|
|
94
|
-
const t = u.get(e);
|
|
95
|
-
t && (t.entries.clear(), t.setActiveBrowsers([]));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
k as K,
|
|
100
|
-
y as T,
|
|
101
|
-
p as W,
|
|
102
|
-
S as a,
|
|
103
|
-
M as b,
|
|
104
|
-
E as c,
|
|
105
|
-
O as d,
|
|
106
|
-
K as e,
|
|
107
|
-
b as g,
|
|
108
|
-
R as h,
|
|
109
|
-
A as o,
|
|
110
|
-
P as r,
|
|
111
|
-
V as s,
|
|
112
|
-
q as u
|
|
113
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),v=require("solid-js/web"),f=n.createContext();function x(){const e=n.useContext(f);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[q,C]=n.createSignal(void 0);let c=null;function y(e){c=e}function p(e){C(e),c==null||c(e)}const l=n.createContext(null);function V(e){return v.createComponent(l.Provider,{get value(){return e.value},get children(){return e.children}})}function T(){const e=n.useContext(l);if(!e)throw new d.BugIndicatingError("useKeybindings must be used inside <KeybindingsProvider>");return e}function W(){return n.useContext(l)}const w=n.createContext();function h(){return n.useContext(w)}const a=new WeakMap;function b(e){let t=a.get(e);if(!t){const[r,s]=n.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},a.set(e,t)}return t}function K(e,t,r,s,i,g=0){if(!e)return;const o=b(e);if(s&&r.width>0&&r.height>0){const u=o.entries.get(t);if(u&&u.generation>g)return;o.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:g})}else{const u=o.entries.get(t);if(u&&(!i||u.lease===i)){if(u.generation>g)return;o.entries.delete(t)}}o.setActiveBrowsers(Array.from(o.entries.values()))}function S(e,t,r){if(!e)return;const s=a.get(e);if(!s)return;const i=s.entries.get(t);i&&(!r||i.lease===r)&&(s.entries.delete(t),s.setActiveBrowsers(Array.from(s.entries.values())))}function B(e){return e?b(e).activeBrowsers():[]}function k(e){return B(e).length>0}function A(e){if(e){const t=a.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.KeybindingsProvider=V;exports.ToolWindowContext=w;exports.WorkspaceTabsContext=f;exports.clearVisibleBrowsersForTesting=A;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=k;exports.openSettingsModal=p;exports.registerVisibleBrowser=K;exports.setOpenSettingsHandler=y;exports.unregisterVisibleBrowser=S;exports.useKeybindings=T;exports.useKeybindingsOptional=W;exports.useToolWindowLayout=h;exports.useWorkspaceTabs=x;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { createContext as f, useContext as c, createSignal as d } from "solid-js";
|
|
2
|
-
import { B as w } from "./bugIndicatingError-h3J5qkL6.js";
|
|
3
|
-
import { createComponent as B } from "solid-js/web";
|
|
4
|
-
const p = f();
|
|
5
|
-
function K() {
|
|
6
|
-
const e = c(p);
|
|
7
|
-
if (!e)
|
|
8
|
-
throw new w("useWorkspaceTabs: missing provider");
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
const [T, m] = d(void 0);
|
|
12
|
-
let a = null;
|
|
13
|
-
function V(e) {
|
|
14
|
-
a = e;
|
|
15
|
-
}
|
|
16
|
-
function A(e) {
|
|
17
|
-
m(e), a == null || a(e);
|
|
18
|
-
}
|
|
19
|
-
const l = f(null);
|
|
20
|
-
function k(e) {
|
|
21
|
-
return B(l.Provider, {
|
|
22
|
-
get value() {
|
|
23
|
-
return e.value;
|
|
24
|
-
},
|
|
25
|
-
get children() {
|
|
26
|
-
return e.children;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function S() {
|
|
31
|
-
const e = c(l);
|
|
32
|
-
if (!e)
|
|
33
|
-
throw new w("useKeybindings must be used inside <KeybindingsProvider>");
|
|
34
|
-
return e;
|
|
35
|
-
}
|
|
36
|
-
function M() {
|
|
37
|
-
return c(l);
|
|
38
|
-
}
|
|
39
|
-
const y = f();
|
|
40
|
-
function O() {
|
|
41
|
-
return c(y);
|
|
42
|
-
}
|
|
43
|
-
const u = /* @__PURE__ */ new WeakMap();
|
|
44
|
-
function v(e) {
|
|
45
|
-
let t = u.get(e);
|
|
46
|
-
if (!t) {
|
|
47
|
-
const [r, s] = d([]);
|
|
48
|
-
t = {
|
|
49
|
-
entries: /* @__PURE__ */ new Map(),
|
|
50
|
-
activeBrowsers: r,
|
|
51
|
-
setActiveBrowsers: s
|
|
52
|
-
}, u.set(e, t);
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
}
|
|
56
|
-
function P(e, t, r, s, n, g = 0) {
|
|
57
|
-
if (!e) return;
|
|
58
|
-
const i = v(e);
|
|
59
|
-
if (s && r.width > 0 && r.height > 0) {
|
|
60
|
-
const o = i.entries.get(t);
|
|
61
|
-
if (o && o.generation > g)
|
|
62
|
-
return;
|
|
63
|
-
i.entries.set(t, {
|
|
64
|
-
tabId: t,
|
|
65
|
-
bounds: { ...r },
|
|
66
|
-
lease: n,
|
|
67
|
-
generation: g
|
|
68
|
-
});
|
|
69
|
-
} else {
|
|
70
|
-
const o = i.entries.get(t);
|
|
71
|
-
if (o && (!n || o.lease === n)) {
|
|
72
|
-
if (o.generation > g)
|
|
73
|
-
return;
|
|
74
|
-
i.entries.delete(t);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
i.setActiveBrowsers(Array.from(i.entries.values()));
|
|
78
|
-
}
|
|
79
|
-
function q(e, t, r) {
|
|
80
|
-
if (!e) return;
|
|
81
|
-
const s = u.get(e);
|
|
82
|
-
if (!s) return;
|
|
83
|
-
const n = s.entries.get(t);
|
|
84
|
-
n && (!r || n.lease === r) && (s.entries.delete(t), s.setActiveBrowsers(Array.from(s.entries.values())));
|
|
85
|
-
}
|
|
86
|
-
function b(e) {
|
|
87
|
-
return e ? v(e).activeBrowsers() : [];
|
|
88
|
-
}
|
|
89
|
-
function R(e) {
|
|
90
|
-
return b(e).length > 0;
|
|
91
|
-
}
|
|
92
|
-
function E(e) {
|
|
93
|
-
if (e) {
|
|
94
|
-
const t = u.get(e);
|
|
95
|
-
t && (t.entries.clear(), t.setActiveBrowsers([]));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
k as K,
|
|
100
|
-
y as T,
|
|
101
|
-
p as W,
|
|
102
|
-
S as a,
|
|
103
|
-
M as b,
|
|
104
|
-
E as c,
|
|
105
|
-
O as d,
|
|
106
|
-
K as e,
|
|
107
|
-
b as g,
|
|
108
|
-
R as h,
|
|
109
|
-
A as o,
|
|
110
|
-
P as r,
|
|
111
|
-
V as s,
|
|
112
|
-
q as u
|
|
113
|
-
};
|