@pstdio/workbench 0.42.0 → 0.43.0-nightly.20261011212112

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.
@@ -1,5 +1,5 @@
1
- import { Ei as NavigationTargetCommand, Et as PreferenceValue, Fr as TreeContext, Gr as WorkbenchPanelRenderInput, Ki as ResourceRef$1, Kr as MenuItem, Mi as Command, P as WorkbenchModuleContext, Pt as RegisteredWorkbenchNotification, Ri as WorkbenchCommandExecutionContext, Rr as TreeNode, Ti as NavigationTarget$1, Vt as WorkbenchOwnedPlacementItem, Zt as WorkbenchTerminalController, bn as WorkbenchPlacementPresentation, cr as CollectionViewsProvider, gr as KanbanRendererCreateSubmission, j as WorkbenchCore, ma as Disposable, qr as MenuPath, ri as WorkbenchPanelInstance, yn as WorkbenchPageContribution, yr as KanbanRendererViewsProvider, zn as FileRendererRefreshEnvelope } from "./index-BUtrxfUl.js";
2
- import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-Wc433DQF.js";
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-dbYXNnIr.js";
2
+ import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-DnZgAsZo.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";
@@ -253,6 +253,10 @@ declare const extensionControlsRendererRecordSchema: z.ZodObject<{
253
253
  defaultValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodString>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
254
254
  x: z.ZodNumber;
255
255
  y: z.ZodNumber;
256
+ }, z.core.$strict>, z.ZodObject<{
257
+ harnessId: z.ZodString;
258
+ model: z.ZodOptional<z.ZodString>;
259
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
256
260
  }, z.core.$strict>]>>>;
257
261
  }, z.core.$strip>;
258
262
  type WorkbenchExtensionControlsRendererRecord = z.infer<typeof extensionControlsRendererRecordSchema>;
@@ -1,6 +1,6 @@
1
- import { k as e } from "./workbench-renderers-BGXfLY9a.js";
2
- import { n as t } from "./navigation-tree-registry-DbTv4Kv7.js";
3
- import { S as n, c as r, dt as i, l as a, u as o } from "./react-Buqbh5XD.js";
1
+ import { A as e } from "./workbench-renderers-Bj4sazP5.js";
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-vsxj0hQ2.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";
@@ -847,7 +847,7 @@ var Le = (e) => {
847
847
  category: e.group,
848
848
  description: f ? o(f.description, f.extensionId) : void 0,
849
849
  icon: e.icon,
850
- params: f?.params
850
+ params: B(f?.params, (t) => o(t, f?.extensionId ?? e.extensionId), f?.extensionId)
851
851
  },
852
852
  contribution: e,
853
853
  menuItem: ot({
@@ -876,7 +876,7 @@ var Le = (e) => {
876
876
  category: e.group,
877
877
  description: s ? r(s.description, s.extensionId) : void 0,
878
878
  icon: e.icon,
879
- params: s?.params
879
+ params: B(s?.params, (t) => r(t, s?.extensionId ?? e.extensionId), s?.extensionId)
880
880
  },
881
881
  contribution: e,
882
882
  menuItem: st({
@@ -1129,7 +1129,8 @@ var Le = (e) => {
1129
1129
  cancel: t(e.createRow.labels?.cancel, "Cancel"),
1130
1130
  properties: t(e.createRow.labels?.properties, "Properties"),
1131
1131
  submitError: t(e.createRow.labels?.submitError, "Could not create resource."),
1132
- removeFile: t(e.createRow.labels?.removeFile, "Remove file")
1132
+ removeFile: t(e.createRow.labels?.removeFile, "Remove file"),
1133
+ submitWithoutOpening: t(void 0, "Create without opening")
1133
1134
  }
1134
1135
  };
1135
1136
  }, Bt = (e, t, n, r, i) => {
@@ -1150,7 +1151,7 @@ var Le = (e) => {
1150
1151
  record: e,
1151
1152
  created: s,
1152
1153
  submission: a
1153
- }), !r || typeof s != "object" || !s) return;
1154
+ }), a.openCreatedRow === !1 || !r || typeof s != "object" || !s) return;
1154
1155
  let c = s;
1155
1156
  typeof c.id == "string" && typeof c.title == "string" && await r({
1156
1157
  ...c,