@pstdio/workbench 0.43.1-nightly.20261013030813 → 0.43.1
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 +4 -2
- package/dist/extensions.js +23 -12
- package/dist/extensions.js.map +1 -1
- package/dist/{file-renderer-view-CPCSE94i.js → file-renderer-view-BRBYhjKd.js} +2 -2
- package/dist/{file-renderer-view-CPCSE94i.js.map → file-renderer-view-BRBYhjKd.js.map} +1 -1
- package/dist/{index-dbYXNnIr.d.ts → index-onoay_1m.d.ts} +5 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{kanban-presentation-DnZgAsZo.d.ts → kanban-presentation-DO5U25GX.d.ts} +1 -1
- package/dist/{react-Blq0pNJq.js → react-BsyyXmgz.js} +2024 -1954
- package/dist/react-BsyyXmgz.js.map +1 -0
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/storage.d.ts +1 -1
- package/dist/webview-runtime.js +1 -1
- package/package.json +3 -3
- package/dist/react-Blq0pNJq.js.map +0 -1
package/dist/extensions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bn as FileRendererRefreshEnvelope, Di as NavigationTargetCommand, Dt as PreferenceValue, Ei as NavigationTarget$1, F as WorkbenchModuleContext, Ft as RegisteredWorkbenchNotification, Ht as WorkbenchOwnedPlacementItem, Ir as TreeContext, Jr as MenuPath, Kr as WorkbenchPanelRenderInput, M as WorkbenchCore, Ni as Command, Qt as WorkbenchTerminalController, _r as KanbanRendererCreateSubmission, bn as WorkbenchPageContribution, br as KanbanRendererViewsProvider, ha as Disposable, ii as WorkbenchPanelInstance, lr as CollectionViewsProvider, qi as ResourceRef$1, qr as MenuItem, xn as WorkbenchPlacementPresentation, zi as WorkbenchCommandExecutionContext, zr as TreeNode } from "./index-
|
|
2
|
-
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-
|
|
1
|
+
import { Bn as FileRendererRefreshEnvelope, Di as NavigationTargetCommand, Dt as PreferenceValue, Ei as NavigationTarget$1, F as WorkbenchModuleContext, Ft as RegisteredWorkbenchNotification, Ht as WorkbenchOwnedPlacementItem, Ir as TreeContext, Jr as MenuPath, Kr as WorkbenchPanelRenderInput, M as WorkbenchCore, Ni as Command, Qt as WorkbenchTerminalController, _r as KanbanRendererCreateSubmission, bn as WorkbenchPageContribution, br as KanbanRendererViewsProvider, ha as Disposable, ii as WorkbenchPanelInstance, lr as CollectionViewsProvider, qi as ResourceRef$1, qr as MenuItem, xn as WorkbenchPlacementPresentation, zi as WorkbenchCommandExecutionContext, zr as TreeNode } from "./index-onoay_1m.js";
|
|
2
|
+
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-DO5U25GX.js";
|
|
3
3
|
import { DataTableRendererSettings, Localizable, NavigationTarget, ResourceRef, WebviewHostCapability } from "@pstdio/sdk/extensions";
|
|
4
4
|
import { CommandExecuteRequest, CommandExecuteResponse, ExtensionCommandPaletteContribution, ExtensionMenuContribution, WorkbenchExtensionCommandPaletteResourceRecord, WorkbenchExtensionMetadata, WorkbenchExtensionMetadata as WorkbenchExtensionMetadata$1 } from "@pstdio/sdk/api";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -655,6 +655,8 @@ declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
|
|
|
655
655
|
queryHandlerId: z.ZodString;
|
|
656
656
|
attributeChangeHandlerId: z.ZodOptional<z.ZodString>;
|
|
657
657
|
reorderHandlerId: z.ZodOptional<z.ZodString>;
|
|
658
|
+
moveHandlerId: z.ZodOptional<z.ZodString>;
|
|
659
|
+
schemaRefreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
658
660
|
columnActionHandlerId: z.ZodOptional<z.ZodString>;
|
|
659
661
|
createRow: z.ZodOptional<z.ZodObject<{
|
|
660
662
|
commandId: z.ZodString;
|
package/dist/extensions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e } from "./workbench-renderers-Bj4sazP5.js";
|
|
2
2
|
import { n as t } from "./navigation-tree-registry-CIwRvLFJ.js";
|
|
3
|
-
import { S as n, c as r, dt as i, l as a, u as o } from "./react-
|
|
3
|
+
import { S as n, c as r, dt as i, l as a, u as o } from "./react-BsyyXmgz.js";
|
|
4
4
|
import { ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES as s, WEBVIEW_DECLARABLE_CAPABILITIES as c, WEBVIEW_HOST_CAPABILITIES as l, WEBVIEW_HOST_CAPABILITY_VERSION as u, WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES as d, commandRefId as f, contributionRefId as p, isLocalizedString as m, isNavigationTarget as h, matchesResourceWhen as g, qualifyNavigationTarget as _, resourceKey as v } from "@pstdio/sdk/extensions";
|
|
5
5
|
import { c as y } from "react/compiler-runtime";
|
|
6
6
|
import { Box as b, Center as x, Stack as S, Text as C } from "@chakra-ui/react";
|
|
@@ -1020,15 +1020,18 @@ var Le = (e) => {
|
|
|
1020
1020
|
display: s
|
|
1021
1021
|
});
|
|
1022
1022
|
}), Ct = (e, t, n, r, i = () => [], a) => {
|
|
1023
|
-
let o = St(e, t, n, r, i, a), s = /* @__PURE__ */ new Set();
|
|
1023
|
+
let o = St(e, t, n, r, i, a), s = /* @__PURE__ */ new Set(), c = JSON.stringify(t);
|
|
1024
1024
|
return {
|
|
1025
1025
|
source: {
|
|
1026
1026
|
getSnapshot: () => o,
|
|
1027
1027
|
subscribe: (e) => (s.add(e), () => s.delete(e))
|
|
1028
1028
|
},
|
|
1029
1029
|
set(t) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
let l = JSON.stringify(t);
|
|
1031
|
+
if (l !== c) {
|
|
1032
|
+
c = l, o = St(e, t, n, r, i, a);
|
|
1033
|
+
for (let e of s) e();
|
|
1034
|
+
}
|
|
1032
1035
|
}
|
|
1033
1036
|
};
|
|
1034
1037
|
}, wt = (e) => !!(e && typeof e == "object" && typeof e.type == "string" && typeof e.id == "string"), Tt = (e, t) => {
|
|
@@ -1192,7 +1195,7 @@ var Le = (e) => {
|
|
|
1192
1195
|
level: "error",
|
|
1193
1196
|
title: "Extension display is not available",
|
|
1194
1197
|
message: `Attribute "${t}" in renderer "${l.id}" uses unknown display kind "${n}".`
|
|
1195
|
-
})), f = l.attributes, p = a(l), m = p.settings.columnGrouping, h = /* @__PURE__ */ new WeakMap(), g, _ = 0, v = (e) => s(l, e),
|
|
1198
|
+
})), f = l.attributes, p = a(l), m = p.settings.columnGrouping, h = /* @__PURE__ */ new WeakMap(), g, _ = 0, v = /* @__PURE__ */ new Map(), y = (e) => s(l, e), b = Bt(e, l, n, s, (e) => h.get(e) ?? e);
|
|
1196
1199
|
r.push(...It(e, l, i)), r.push(e.workbench.views.registerView({
|
|
1197
1200
|
id: l.id,
|
|
1198
1201
|
title: i(l.title, l.id),
|
|
@@ -1221,7 +1224,7 @@ var Le = (e) => {
|
|
|
1221
1224
|
hideToolbar: l.hideToolbar,
|
|
1222
1225
|
createRow: zt(l, i),
|
|
1223
1226
|
getBoardColumnConfig: (t) => _t(g?.[t] ?? bt(e, l, f, m, t), i),
|
|
1224
|
-
onRowActivate:
|
|
1227
|
+
onRowActivate: b,
|
|
1225
1228
|
executeQuery: async (t, n) => {
|
|
1226
1229
|
_ += 1;
|
|
1227
1230
|
let r = _, i = await H(e, l, l.queryHandlerId, {
|
|
@@ -1232,10 +1235,16 @@ var Le = (e) => {
|
|
|
1232
1235
|
filter: t.filter,
|
|
1233
1236
|
sorts: t.sorts,
|
|
1234
1237
|
filters: ie(t.filter)
|
|
1235
|
-
}, void 0, n), a = (e) =>
|
|
1236
|
-
let t =
|
|
1237
|
-
|
|
1238
|
-
|
|
1238
|
+
}, void 0, n), a = (e) => {
|
|
1239
|
+
let t = /* @__PURE__ */ new Map(), n = e.map((e) => {
|
|
1240
|
+
let n = e, r = JSON.stringify(e), i = v.get(n.id), a = i?.signature === r ? i.row : Dt(e, y);
|
|
1241
|
+
return h.set(a, n), t.set(a.id, {
|
|
1242
|
+
signature: r,
|
|
1243
|
+
row: a
|
|
1244
|
+
}), a;
|
|
1245
|
+
});
|
|
1246
|
+
return r === _ && (v = t), n;
|
|
1247
|
+
};
|
|
1239
1248
|
if (r !== _) return Array.isArray(i) ? a(i) : xt(i) ? a(i.rows ?? []) : [];
|
|
1240
1249
|
if (m = t.settings.columnGrouping, Array.isArray(i)) return a(i);
|
|
1241
1250
|
if (!xt(i)) return [];
|
|
@@ -1247,11 +1256,12 @@ var Le = (e) => {
|
|
|
1247
1256
|
attributeId: t,
|
|
1248
1257
|
value: n
|
|
1249
1258
|
}).then(() => void 0) : void 0,
|
|
1259
|
+
onMove: l.moveHandlerId ? (e) => u(l, l.moveHandlerId, { ...e }).then(() => void 0) : void 0,
|
|
1250
1260
|
onReorder: l.reorderHandlerId ? (e, t) => u(l, l.reorderHandlerId, {
|
|
1251
1261
|
rowId: e,
|
|
1252
1262
|
beforeRowId: t
|
|
1253
1263
|
}).then(() => void 0) : void 0,
|
|
1254
|
-
onCreateRow: Vt(l, n, u, l.rowActivationHandlerId ?
|
|
1264
|
+
onCreateRow: Vt(l, n, u, l.rowActivationHandlerId ? b : void 0),
|
|
1255
1265
|
onColumnAction: l.columnActionHandlerId ? async (e, t) => {
|
|
1256
1266
|
await u(l, l.columnActionHandlerId, {
|
|
1257
1267
|
columnId: e,
|
|
@@ -1393,6 +1403,7 @@ var Le = (e) => {
|
|
|
1393
1403
|
icon: e.icon,
|
|
1394
1404
|
iconColor: e.iconColor,
|
|
1395
1405
|
iconTooltip: e.iconTooltip,
|
|
1406
|
+
tooltip: e.tooltip,
|
|
1396
1407
|
resource: e.resource ? i(e.resource) : void 0,
|
|
1397
1408
|
target: o(e.target, e, t),
|
|
1398
1409
|
rowVariant: e.rowVariant,
|
|
@@ -1998,7 +2009,7 @@ var Le = (e) => {
|
|
|
1998
2009
|
}]));
|
|
1999
2010
|
Object.keys(i).length > 0 && t.push(e.workbench.preferences.registerSchema({ properties: i }));
|
|
2000
2011
|
let a = [...e.metadata.settingsPanels].sort((e, t) => e.extensionId.localeCompare(t.extensionId) || e.id.localeCompare(t.id));
|
|
2001
|
-
for (let [r, i] of a.entries()) t.push(e.workbench.settings.registerPanel({
|
|
2012
|
+
for (let [r, i] of a.entries()) i.slotId !== "extension.settings" && t.push(e.workbench.settings.registerPanel({
|
|
2002
2013
|
id: i.id,
|
|
2003
2014
|
title: P(i.title, i.id),
|
|
2004
2015
|
icon: i.icon,
|