@pstdio/workbench 0.11.1 → 0.11.3
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/extensions.d.ts +3 -0
- package/dist/extensions.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.js +1745 -1743
- package/dist/react.js.map +1 -1
- package/dist/webview-runtime.js +1 -1
- package/dist/webview-runtime.js.map +1 -1
- package/dist/{workspaces-DJwFj8uq.js → workspaces-B9HZHIbz.js} +4 -1
- package/dist/workspaces-B9HZHIbz.js.map +1 -0
- package/package.json +3 -3
- package/dist/workspaces-DJwFj8uq.js.map +0 -1
package/dist/extensions.d.ts
CHANGED
|
@@ -854,6 +854,7 @@ declare const extensionKeybindingRecordSchema: z.ZodObject<{
|
|
|
854
854
|
id: z.ZodString;
|
|
855
855
|
}, z.core.$strip>]>;
|
|
856
856
|
resource: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
857
858
|
type: z.ZodString;
|
|
858
859
|
id: z.ZodString;
|
|
859
860
|
projectId: z.ZodOptional<z.ZodString>;
|
|
@@ -897,6 +898,7 @@ declare const extensionKeybindingRecordSchema: z.ZodObject<{
|
|
|
897
898
|
id: z.ZodString;
|
|
898
899
|
}, z.core.$strip>]>;
|
|
899
900
|
resource: z.ZodOptional<z.ZodObject<{
|
|
901
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
900
902
|
type: z.ZodString;
|
|
901
903
|
id: z.ZodString;
|
|
902
904
|
projectId: z.ZodOptional<z.ZodString>;
|
|
@@ -989,6 +991,7 @@ declare const extensionMenuContributionSchema: z.ZodObject<{
|
|
|
989
991
|
}, z.core.$strip>;
|
|
990
992
|
|
|
991
993
|
declare const extensionResourceRefSchema: z.ZodObject<{
|
|
994
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
992
995
|
type: z.ZodString;
|
|
993
996
|
id: z.ZodString;
|
|
994
997
|
projectId: z.ZodOptional<z.ZodString>;
|
package/dist/extensions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as ge, jsx as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as v, useState as we, useEffect as K, createElement as D } from "react";
|
|
3
3
|
import { host as et } from "rimless";
|
|
4
4
|
import { ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES as tt, WEBVIEW_HOST_CAPABILITY_VERSION as ce, WEBVIEW_HOST_CAPABILITIES as nt, WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES as ot, resourceKey as V, isLocalizedString as st, matchesResourceWhen as rt } from "@pstdio/sdk/extensions";
|
|
5
|
-
import { b as it, W as _, a as at } from "./workspaces-
|
|
5
|
+
import { b as it, W as _, a as at } from "./workspaces-B9HZHIbz.js";
|
|
6
6
|
import { renderBadgeListDisplay as dt } from "@pstdio/ui/kanban-renderer";
|
|
7
7
|
import { w as ct } from "./workbench-menu-paths-B_QJzcNU.js";
|
|
8
8
|
const lt = (e) => typeof e == "object" && e !== null && "$l10n" in e && typeof e.$l10n == "string", mt = new Set(nt), ut = new Set(ot), Te = (e) => mt.has(e), Pe = (e) => ut.has(e), pt = (e) => {
|
package/dist/index.js
CHANGED
|
@@ -1656,7 +1656,7 @@ const vr = () => {
|
|
|
1656
1656
|
c("history", b);
|
|
1657
1657
|
}
|
|
1658
1658
|
}, v = e.browser.onPopState(f), S = e.registry.store.subscribe((h, I) => {
|
|
1659
|
-
if (!(!Object.keys(I.pages).some((P) => !h.pages[P]) || !h.projectId)) {
|
|
1659
|
+
if (!(!Object.keys(I.pages).some((P) => !h.pages[P]) || !h.projectId || h.projectId !== I.projectId || !I.location)) {
|
|
1660
1660
|
try {
|
|
1661
1661
|
if (h.location) {
|
|
1662
1662
|
d(h.location);
|