@vokril/ui-solid 0.2.1 → 0.4.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 +29 -0
- package/dist/{AttributeGrid-iOgTCpF7.js → AttributeGrid-BUyv-hUX.js} +3 -3
- package/dist/{AttributeGrid-DgORu6BF.cjs → AttributeGrid-Tk8KJx8e.cjs} +1 -1
- package/dist/{Button-CCm03bSE.js → Button-BZWXPn8y.js} +1 -1
- package/dist/{Button-DntBQ4fM.cjs → Button-X8QR6llv.cjs} +1 -1
- package/dist/{CommandPalette-D5BzLE0U.js → CommandPalette-BTjINvuw.js} +5 -5
- package/dist/{CommandPalette-4w3pEbna.cjs → CommandPalette-CSaQCEyY.cjs} +1 -1
- package/dist/{CopyButton-BxwyIJxL.cjs → CopyButton-3cX5MHAf.cjs} +1 -1
- package/dist/{CopyButton-ClqxiGPb.js → CopyButton-D3dIRRnn.js} +1 -1
- package/dist/{DateRangePicker-dLlHJR71.cjs → DateRangePicker-CHrwr34H.cjs} +1 -1
- package/dist/{DateRangePicker-Qho0OzUE.js → DateRangePicker-jnZfDhQA.js} +3 -3
- package/dist/{GuidedTour-YUs4zuez.js → GuidedTour-Be7OITLu.js} +2991 -2974
- package/dist/GuidedTour-CTHXtWoK.cjs +21 -0
- package/dist/{IconPicker-CO5TWhFx.js → IconPicker-BxofGXCS.js} +3 -3
- package/dist/{IconPicker-BreG8jKY.cjs → IconPicker-C_gAGvo0.cjs} +1 -1
- package/dist/{Modal-BqajyLjD.cjs → Modal-BSSY6C3D.cjs} +1 -1
- package/dist/{Modal-DdbgnOMR.js → Modal-BmtEt5Yo.js} +2 -2
- package/dist/{PageSkeleton-DfLEHkrh.js → PageSkeleton-CyTXvZYm.js} +4 -4
- package/dist/{PageSkeleton-VbWHl878.cjs → PageSkeleton-DzKYTuNy.cjs} +1 -1
- package/dist/{SearchableSelect-D6yjIQO1.cjs → SearchableSelect-9pgcO5JS.cjs} +1 -1
- package/dist/{SearchableSelect-CBpLrNvW.js → SearchableSelect-ByCRBEZI.js} +2 -2
- package/dist/{StatusBarNotificationBell-DQ94Snzi.cjs → StatusBarNotificationBell-jmfcQw6Y.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-BWZj0Pc2.js → StatusBarNotificationBell-k_Ol9XDW.js} +7 -7
- package/dist/Stepper-C3dnwwiV.cjs +1 -0
- package/dist/{Stepper-CrXi8mfh.js → Stepper-CrTxBpDL.js} +137 -137
- package/dist/{TimeSeriesChart-BzzqarqB.cjs → TimeSeriesChart-CS4jQflv.cjs} +1 -1
- package/dist/{TimeSeriesChart-D18yHUrf.js → TimeSeriesChart-DBrDzBGE.js} +1 -1
- package/dist/{ToggleButton-l1cEdv9w.cjs → ToggleButton-CFvMUndy.cjs} +1 -1
- package/dist/{ToggleButton-BiEKoA4q.js → ToggleButton-DBWFnm_R.js} +4 -4
- 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/index.d.cts +4 -0
- package/dist/_internal/app/keybindings/index.d.ts +4 -0
- 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/{catalogNotify-B6x3enJ5.cjs → catalogNotify-C9RzbC6x.cjs} +1 -1
- package/dist/{catalogNotify-CcaMBipB.js → catalogNotify-CIhFuJ1b.js} +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createResizableSidebar-_yb33Qli.cjs → createResizableSidebar-DVATOkMf.cjs} +1 -1
- package/dist/{createResizableSidebar-onQNGhy_.js → createResizableSidebar-uf_OJsjO.js} +3 -3
- package/dist/{de-Cim4IGZg.js → de-CEltsqV5.js} +1 -0
- package/dist/{server/de-B5MOZZDV.cjs → de-DRobPEJV.cjs} +1 -1
- package/dist/descriptor-B1MaujhY.js +1106 -0
- package/dist/descriptor-lw1fA9mi.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +28 -28
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/{format-C46MmwwW.js → format-Dd946oS-.js} +1 -1
- package/dist/{format-Cy7RJpYG.cjs → format-aHRZi12I.cjs} +1 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +7 -7
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- 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/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-DZZyw7Iu.cjs → i18n-B9ccWgcR.cjs} +1 -1
- package/dist/{server/i18n-B_XRSWWN.js → i18n-CYq-dVvv.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +492 -481
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +57 -53
- package/dist/notifications/notificationCommands.d.cts +14 -5
- package/dist/notifications/notificationCommands.d.ts +14 -5
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +5 -5
- package/dist/server/{AttributeGrid-Cz49ZLQJ.cjs → AttributeGrid-CSidAjfz.cjs} +1 -1
- package/dist/server/{AttributeGrid-Bq6AC927.js → AttributeGrid-D6b2qQS9.js} +3 -3
- package/dist/server/{Button-CHjpZWyZ.js → Button-BhqhjFpY.js} +1 -1
- package/dist/server/{Button-C9c6mzTA.cjs → Button-CFOM8pOv.cjs} +1 -1
- package/dist/server/{CommandPalette-C69NFoDY.js → CommandPalette-D8O7Ct6B.js} +4 -4
- package/dist/server/{CommandPalette-C-Y0biXL.cjs → CommandPalette-DnTx84xR.cjs} +1 -1
- package/dist/server/{CopyButton-C3AnCUW9.cjs → CopyButton-C2jzn9tR.cjs} +1 -1
- package/dist/server/{CopyButton-DOeXnVFC.js → CopyButton-CChDa2p3.js} +1 -1
- package/dist/server/{DateRangePicker-tEwswamx.js → DateRangePicker-BK2Ul2uy.js} +2 -2
- package/dist/server/{DateRangePicker-BZIjmD5b.cjs → DateRangePicker-s-I_rNUK.cjs} +1 -1
- package/dist/server/GuidedTour-BW95cjPT.cjs +20 -0
- package/dist/server/{GuidedTour-C38isG70.js → GuidedTour-DW5y5xkJ.js} +2304 -2288
- package/dist/server/{IconPicker-tGQ6T_7R.js → IconPicker-BCUZcq-i.js} +3 -3
- package/dist/server/{IconPicker-DpsgVG2H.cjs → IconPicker-Bw8tZjCl.cjs} +1 -1
- package/dist/server/{Modal-C4E01jt8.js → Modal-CM54uXRu.js} +2 -2
- package/dist/server/{Modal-w2CtUJ-g.cjs → Modal-R86Fb2mX.cjs} +1 -1
- package/dist/server/{PageSkeleton-BIoewFZz.js → PageSkeleton-Bpgep9QW.js} +4 -4
- package/dist/server/{PageSkeleton-t1PiXgcp.cjs → PageSkeleton-KwYRrZua.cjs} +1 -1
- package/dist/server/{SearchableSelect-CTDUjMFB.js → SearchableSelect-Cog_rb31.js} +2 -2
- package/dist/server/{SearchableSelect-T6iS1AYR.cjs → SearchableSelect-fofn1Bjg.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-DL_OCMv7.cjs → StatusBarNotificationBell-BolKvDik.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-Bm2ZiM-t.js → StatusBarNotificationBell-BqPU9Shw.js} +6 -6
- package/dist/server/{Stepper-Il_NS3YQ.js → Stepper-BdOBuNco.js} +1 -1
- package/dist/server/{Stepper-CZ695tkt.cjs → Stepper-DqwKOszc.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-CWxwWo-G.js → TimeSeriesChart-C1LbL_xp.js} +1 -1
- package/dist/server/{TimeSeriesChart-Cjpjciv2.cjs → TimeSeriesChart-DtldQrxS.cjs} +1 -1
- package/dist/server/{ToggleButton-D7Qu7T2P.js → ToggleButton-B0YuAGY4.js} +3 -3
- package/dist/server/{ToggleButton-CXwvg-Hr.cjs → ToggleButton-CbX1kbpI.cjs} +1 -1
- package/dist/server/builtins-DM7FDxEt.cjs +1 -0
- package/dist/server/builtins-XOM9gfIx.js +74 -0
- package/dist/server/{catalogNotify-CTZ3DSTN.cjs → catalogNotify-BPPTINme.cjs} +1 -1
- package/dist/server/{catalogNotify-Dnyfrb-0.js → catalogNotify-mUcKuUmZ.js} +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createResizableSidebar-CBSfZVJk.js → createResizableSidebar-BfTFOM7v.js} +3 -3
- package/dist/server/{createResizableSidebar-rfcmiXuS.cjs → createResizableSidebar-D28fY_SX.cjs} +1 -1
- package/dist/server/{de-Cim4IGZg.js → de-CEltsqV5.js} +1 -0
- package/dist/{de-B5MOZZDV.cjs → server/de-DRobPEJV.cjs} +1 -1
- package/dist/server/descriptor-DWkJAggS.js +992 -0
- package/dist/server/descriptor-IJq9wdXK.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +6 -6
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +71 -65
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-DZZyw7Iu.cjs → i18n-B9ccWgcR.cjs} +1 -1
- package/dist/{i18n-B_XRSWWN.js → server/i18n-CYq-dVvv.js} +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +822 -811
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +57 -53
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +4 -4
- package/dist/server/{settingsSearchContributor-CDqRlqt7.cjs → settingsSearchContributor-DZj7Wc8l.cjs} +1 -1
- package/dist/server/{settingsSearchContributor-Dn-HFipc.js → settingsSearchContributor-DeMn-njw.js} +2 -2
- package/dist/{tr-MCRQ-3Mn.cjs → server/tr-BDbiY5YD.cjs} +1 -1
- package/dist/{tr-DlpnmKv6.js → server/tr-CxuAFkCi.js} +1 -0
- 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-C-UJc7Xc.js} +2 -2
- package/dist/{settingsSearchContributor-Ci6vEEQ1.cjs → settingsSearchContributor-Du0SDpJt.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/desktop/menu/MenuBar.jsx +2 -1
- package/dist/solid/host/index.js +3 -0
- package/dist/solid/i18n/locales/de.json +1 -0
- package/dist/solid/i18n/locales/tr.json +1 -0
- package/dist/solid/navigation/Tabs.jsx +5 -0
- package/dist/solid/notifications/NotificationHost.jsx +36 -10
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/notificationCommands.js +55 -17
- 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/style.css +1 -1
- package/dist/{server/tr-MCRQ-3Mn.cjs → tr-BDbiY5YD.cjs} +1 -1
- package/dist/{server/tr-DlpnmKv6.js → tr-CxuAFkCi.js} +1 -0
- 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/ui.css +1 -1
- 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/GuidedTour-CYgy48bt.cjs +0 -21
- package/dist/Stepper-B_nRDFxN.cjs +0 -1
- package/dist/descriptor-NxSXaBdy.cjs +0 -1
- package/dist/descriptor-zKWZdo3E.js +0 -1059
- package/dist/server/GuidedTour-TAGGtEp2.cjs +0 -20
- 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
|
-
};
|