@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
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { a as i, c as l, F as a } from "./builtins-XOM9gfIx.js";
|
|
2
|
+
import { onCleanup as o } from "solid-js";
|
|
3
|
+
const u = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function f(e) {
|
|
5
|
+
const n = i();
|
|
6
|
+
if (!n) return;
|
|
7
|
+
const { registry: c } = e, t = {
|
|
8
|
+
...e.verbs,
|
|
9
|
+
isActive: () => u.get(c) === t
|
|
10
|
+
}, s = c.set(t);
|
|
11
|
+
return o(() => {
|
|
12
|
+
s(), u.get(c) === t && u.delete(c);
|
|
13
|
+
}), l({
|
|
14
|
+
contextKeys: n.contextKeys,
|
|
15
|
+
key: e.key,
|
|
16
|
+
containerRef: e.container,
|
|
17
|
+
...e.countsAsFocus ? { countsAsFocus: e.countsAsFocus } : {},
|
|
18
|
+
onFocusIn: () => {
|
|
19
|
+
var r;
|
|
20
|
+
u.set(c, t), (r = e.onFocusIn) == null || r.call(e);
|
|
21
|
+
}
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
function y() {
|
|
25
|
+
const e = [];
|
|
26
|
+
return {
|
|
27
|
+
set: (t) => (e.push(t), () => {
|
|
28
|
+
const s = e.lastIndexOf(t);
|
|
29
|
+
s !== -1 && e.splice(s, 1);
|
|
30
|
+
}),
|
|
31
|
+
current: () => e.length > 0 ? e[e.length - 1] ?? null : null,
|
|
32
|
+
find: (t) => {
|
|
33
|
+
for (let s = e.length - 1; s >= 0; s -= 1) {
|
|
34
|
+
const r = e[s];
|
|
35
|
+
if (r !== void 0 && t(r)) return r;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const d = y();
|
|
42
|
+
function m(e) {
|
|
43
|
+
const n = i();
|
|
44
|
+
n && (f({
|
|
45
|
+
key: a.listFocus,
|
|
46
|
+
registry: d,
|
|
47
|
+
container: e.container,
|
|
48
|
+
verbs: e.verbs
|
|
49
|
+
}), l({
|
|
50
|
+
contextKeys: n.contextKeys,
|
|
51
|
+
key: a.listSupportsMultiselect,
|
|
52
|
+
containerRef: e.container,
|
|
53
|
+
countsAsFocus: () => e.supportsMultiselect()
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
m as a,
|
|
58
|
+
y as c,
|
|
59
|
+
d as l,
|
|
60
|
+
f as u
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./builtins-DM7FDxEt.cjs"),d=require("solid-js"),i=new WeakMap;function l(e){const n=u.useKeybindingsOptional();if(!n)return;const{registry:c}=e,s={...e.verbs,isActive:()=>i.get(c)===s},t=c.set(s);return d.onCleanup(()=>{t(),i.get(c)===s&&i.delete(c)}),u.createFocusContextKey({contextKeys:n.contextKeys,key:e.key,containerRef:e.container,...e.countsAsFocus?{countsAsFocus:e.countsAsFocus}:{},onFocusIn:()=>{var r;i.set(c,s),(r=e.onFocusIn)==null||r.call(e)}}),s}function o(){const e=[];return{set:s=>(e.push(s),()=>{const t=e.lastIndexOf(s);t!==-1&&e.splice(t,1)}),current:()=>e.length>0?e[e.length-1]??null:null,find:s=>{for(let t=e.length-1;t>=0;t-=1){const r=e[t];if(r!==void 0&&s(r))return r}return null}}}const a=o();function y(e){const n=u.useKeybindingsOptional();n&&(l({key:u.FOCUS_CONTEXT_KEYS.listFocus,registry:a,container:e.container,verbs:e.verbs}),u.createFocusContextKey({contextKeys:n.contextKeys,key:u.FOCUS_CONTEXT_KEYS.listSupportsMultiselect,containerRef:e.container,countsAsFocus:()=>e.supportsMultiselect()}))}exports.createPanelCommandRegistry=o;exports.listHandlers=a;exports.useFocusClaim=l;exports.useListCommands=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),g=c.createContext();function p(){const e=c.useContext(g);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[k,x]=c.createSignal(void 0);let a=null;function V(e){a=e}function C(e){x(e),a==null||a(e)}const f=c.createContext();function T(){return c.useContext(f)}const u=new WeakMap;function w(e){let t=u.get(e);if(!t){const[r,s]=c.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},u.set(e,t)}return t}function W(e,t,r,s,i,l=0){if(!e)return;const n=w(e);if(s&&r.width>0&&r.height>0){const o=n.entries.get(t);if(o&&o.generation>l)return;n.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:l})}else{const o=n.entries.get(t);if(o&&(!i||o.lease===i)){if(o.generation>l)return;n.entries.delete(t)}}n.setActiveBrowsers(Array.from(n.entries.values()))}function b(e,t,r){if(!e)return;const s=u.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?w(e).activeBrowsers():[]}function v(e){return B(e).length>0}function S(e){if(e){const t=u.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.ToolWindowContext=f;exports.WorkspaceTabsContext=g;exports.clearVisibleBrowsersForTesting=S;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=v;exports.openSettingsModal=C;exports.registerVisibleBrowser=W;exports.setOpenSettingsHandler=V;exports.unregisterVisibleBrowser=b;exports.useToolWindowLayout=T;exports.useWorkspaceTabs=p;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createContext as f, useContext as g, createSignal as l } from "solid-js";
|
|
2
|
+
import { B } from "./bugIndicatingError-h3J5qkL6.js";
|
|
3
|
+
const p = f();
|
|
4
|
+
function T() {
|
|
5
|
+
const e = g(p);
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new B("useWorkspaceTabs: missing provider");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
const [V, v] = l(void 0);
|
|
11
|
+
let a = null;
|
|
12
|
+
function h(e) {
|
|
13
|
+
a = e;
|
|
14
|
+
}
|
|
15
|
+
function A(e) {
|
|
16
|
+
v(e), a == null || a(e);
|
|
17
|
+
}
|
|
18
|
+
const d = f();
|
|
19
|
+
function y() {
|
|
20
|
+
return g(d);
|
|
21
|
+
}
|
|
22
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
23
|
+
function w(e) {
|
|
24
|
+
let t = c.get(e);
|
|
25
|
+
if (!t) {
|
|
26
|
+
const [r, s] = l([]);
|
|
27
|
+
t = {
|
|
28
|
+
entries: /* @__PURE__ */ new Map(),
|
|
29
|
+
activeBrowsers: r,
|
|
30
|
+
setActiveBrowsers: s
|
|
31
|
+
}, c.set(e, t);
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
function k(e, t, r, s, i, u = 0) {
|
|
36
|
+
if (!e) return;
|
|
37
|
+
const n = w(e);
|
|
38
|
+
if (s && r.width > 0 && r.height > 0) {
|
|
39
|
+
const o = n.entries.get(t);
|
|
40
|
+
if (o && o.generation > u)
|
|
41
|
+
return;
|
|
42
|
+
n.entries.set(t, {
|
|
43
|
+
tabId: t,
|
|
44
|
+
bounds: { ...r },
|
|
45
|
+
lease: i,
|
|
46
|
+
generation: u
|
|
47
|
+
});
|
|
48
|
+
} else {
|
|
49
|
+
const o = n.entries.get(t);
|
|
50
|
+
if (o && (!i || o.lease === i)) {
|
|
51
|
+
if (o.generation > u)
|
|
52
|
+
return;
|
|
53
|
+
n.entries.delete(t);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
n.setActiveBrowsers(Array.from(n.entries.values()));
|
|
57
|
+
}
|
|
58
|
+
function S(e, t, r) {
|
|
59
|
+
if (!e) return;
|
|
60
|
+
const s = c.get(e);
|
|
61
|
+
if (!s) return;
|
|
62
|
+
const i = s.entries.get(t);
|
|
63
|
+
i && (!r || i.lease === r) && (s.entries.delete(t), s.setActiveBrowsers(Array.from(s.entries.values())));
|
|
64
|
+
}
|
|
65
|
+
function x(e) {
|
|
66
|
+
return e ? w(e).activeBrowsers() : [];
|
|
67
|
+
}
|
|
68
|
+
function b(e) {
|
|
69
|
+
return x(e).length > 0;
|
|
70
|
+
}
|
|
71
|
+
function M(e) {
|
|
72
|
+
if (e) {
|
|
73
|
+
const t = c.get(e);
|
|
74
|
+
t && (t.entries.clear(), t.setActiveBrowsers([]));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
d as T,
|
|
79
|
+
p as W,
|
|
80
|
+
y as a,
|
|
81
|
+
T as b,
|
|
82
|
+
M as c,
|
|
83
|
+
x as g,
|
|
84
|
+
b as h,
|
|
85
|
+
A as o,
|
|
86
|
+
k as r,
|
|
87
|
+
h as s,
|
|
88
|
+
S as u
|
|
89
|
+
};
|