@pstdio/workbench 0.40.0 → 0.42.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/dist/extensions.d.ts +354 -28
- package/dist/extensions.js +710 -577
- package/dist/extensions.js.map +1 -1
- package/dist/file-renderer-view-DA77lgiT.js +670 -0
- package/dist/file-renderer-view-DA77lgiT.js.map +1 -0
- package/dist/{index-DLh_fcGT.d.ts → index-BUtrxfUl.d.ts} +315 -223
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2457 -2184
- package/dist/index.js.map +1 -1
- package/dist/{kanban-presentation-Ds4FpmbS.d.ts → kanban-presentation-Wc433DQF.d.ts} +1 -1
- package/dist/navigation-tree-registry-DbTv4Kv7.js +120 -0
- package/dist/navigation-tree-registry-DbTv4Kv7.js.map +1 -0
- package/dist/react-Buqbh5XD.js +10568 -0
- package/dist/react-Buqbh5XD.js.map +1 -0
- package/dist/react.d.ts +90 -14
- package/dist/react.js +2 -2
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +28 -24
- package/dist/storage.js.map +1 -1
- package/dist/webview-runtime.js +1 -1
- package/dist/{workbench-renderers-DNXWpDWd.js → workbench-renderers-BGXfLY9a.js} +184 -127
- package/dist/workbench-renderers-BGXfLY9a.js.map +1 -0
- package/package.json +5 -7
- package/dist/file-renderer-view-C95GHv9m.js +0 -637
- package/dist/file-renderer-view-C95GHv9m.js.map +0 -1
- package/dist/navigation-tree-registry-DazyPivr.js +0 -106
- package/dist/navigation-tree-registry-DazyPivr.js.map +0 -1
- package/dist/react-NAZBfSZz.js +0 -8912
- package/dist/react-NAZBfSZz.js.map +0 -1
- package/dist/workbench-renderers-DNXWpDWd.js.map +0 -1
package/dist/extensions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-
|
|
3
|
-
import { Localizable, NavigationTarget, ResourceRef, WebviewHostCapability } from "@pstdio/sdk/extensions";
|
|
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";
|
|
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";
|
|
6
6
|
//#region ../pstdio-extensions/src/bridge/contract/capabilities.d.ts
|
|
@@ -106,6 +106,7 @@ export declare const createWorkbenchWebviewHostCapabilities: (input: CreateWorkb
|
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/extensions/host/workbench-extension-command.d.ts
|
|
108
108
|
interface WorkbenchExtensionCommandContext {
|
|
109
|
+
metadata?: Pick<WorkbenchExtensionMetadata$1, "commands">;
|
|
109
110
|
executeCommand(commandId: string, body: CommandExecuteRequest, signal?: AbortSignal): Promise<unknown> | unknown;
|
|
110
111
|
prepareCommandArgs?(commandId: string, args: unknown, context?: WorkbenchCommandExecutionContext, onArgsChange?: (args: unknown) => void): Promise<unknown> | unknown;
|
|
111
112
|
projectId: string;
|
|
@@ -135,6 +136,15 @@ type JsonObject = {
|
|
|
135
136
|
[key: string]: JsonValue;
|
|
136
137
|
};
|
|
137
138
|
//#endregion
|
|
139
|
+
//#region ../pstdio-api-contracts/src/extension-kernel/types/pages.d.ts
|
|
140
|
+
/** One-based source coordinates. Owners clamp them to the loaded document. */
|
|
141
|
+
interface FileSourcePosition {
|
|
142
|
+
readonly line: number;
|
|
143
|
+
readonly column?: number;
|
|
144
|
+
readonly endLine?: number;
|
|
145
|
+
readonly endColumn?: number;
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
138
148
|
//#region ../pstdio-api-contracts/src/extensions/resource-ref.d.ts
|
|
139
149
|
declare const extensionResourceRefSchema: z.ZodObject<{
|
|
140
150
|
shorthand: z.ZodOptional<z.ZodString>;
|
|
@@ -168,6 +178,7 @@ interface MetadataPageTarget {
|
|
|
168
178
|
resource?: z.infer<typeof extensionResourceRefSchema>;
|
|
169
179
|
open?: "preview" | "pin";
|
|
170
180
|
section?: z.infer<typeof sectionSchema>;
|
|
181
|
+
position?: FileSourcePosition;
|
|
171
182
|
parent?: MetadataPageTarget;
|
|
172
183
|
}
|
|
173
184
|
//#endregion
|
|
@@ -201,12 +212,12 @@ declare const extensionMenuContributionSchema: z.ZodObject<{
|
|
|
201
212
|
when: z.ZodOptional<z.ZodObject<{
|
|
202
213
|
mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
203
214
|
source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
204
|
-
schedule: "schedule";
|
|
205
215
|
automation: "automation";
|
|
206
|
-
api: "api";
|
|
207
|
-
event: "event";
|
|
208
216
|
cli: "cli";
|
|
209
217
|
dashboard: "dashboard";
|
|
218
|
+
api: "api";
|
|
219
|
+
schedule: "schedule";
|
|
220
|
+
event: "event";
|
|
210
221
|
"command-panel": "command-panel";
|
|
211
222
|
}>>>;
|
|
212
223
|
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -291,6 +302,14 @@ declare const extensionDataTableRendererRecordSchema: z.ZodObject<{
|
|
|
291
302
|
$l10n: z.ZodString;
|
|
292
303
|
default: z.ZodOptional<z.ZodString>;
|
|
293
304
|
}, z.core.$strip>]>>;
|
|
305
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
string: "string";
|
|
307
|
+
number: "number";
|
|
308
|
+
boolean: "boolean";
|
|
309
|
+
date: "date";
|
|
310
|
+
}>>;
|
|
311
|
+
groupable: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
294
313
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
295
314
|
$l10n: z.ZodString;
|
|
296
315
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -364,6 +383,168 @@ declare const extensionDataTableRendererRecordSchema: z.ZodObject<{
|
|
|
364
383
|
rowActivationHandlerId: z.ZodOptional<z.ZodString>;
|
|
365
384
|
initialPageSize: z.ZodOptional<z.ZodNumber>;
|
|
366
385
|
pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
386
|
+
defaultSettings: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
grouping: z.ZodOptional<z.ZodString>;
|
|
388
|
+
rowNumbers: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
+
wrapRows: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
showStats: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
+
columnOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
defaultFilter: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
conjunction: z.ZodEnum<{
|
|
396
|
+
and: "and";
|
|
397
|
+
or: "or";
|
|
398
|
+
}>;
|
|
399
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
400
|
+
attributeId: z.ZodString;
|
|
401
|
+
condition: z.ZodEnum<{
|
|
402
|
+
contains: "contains";
|
|
403
|
+
"does-not-contain": "does-not-contain";
|
|
404
|
+
is: "is";
|
|
405
|
+
"is-not": "is-not";
|
|
406
|
+
gt: "gt";
|
|
407
|
+
gte: "gte";
|
|
408
|
+
lt: "lt";
|
|
409
|
+
lte: "lte";
|
|
410
|
+
"is-before": "is-before";
|
|
411
|
+
"is-after": "is-after";
|
|
412
|
+
"is-on-or-before": "is-on-or-before";
|
|
413
|
+
"is-on-or-after": "is-on-or-after";
|
|
414
|
+
"is-any-of": "is-any-of";
|
|
415
|
+
"is-none-of": "is-none-of";
|
|
416
|
+
"has-any-of": "has-any-of";
|
|
417
|
+
"has-all-of": "has-all-of";
|
|
418
|
+
"has-none-of": "has-none-of";
|
|
419
|
+
"is-empty": "is-empty";
|
|
420
|
+
"is-not-empty": "is-not-empty";
|
|
421
|
+
}>;
|
|
422
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
423
|
+
}, z.core.$strip>>;
|
|
424
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
conjunction: z.ZodEnum<{
|
|
426
|
+
and: "and";
|
|
427
|
+
or: "or";
|
|
428
|
+
}>;
|
|
429
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
430
|
+
attributeId: z.ZodString;
|
|
431
|
+
condition: z.ZodEnum<{
|
|
432
|
+
contains: "contains";
|
|
433
|
+
"does-not-contain": "does-not-contain";
|
|
434
|
+
is: "is";
|
|
435
|
+
"is-not": "is-not";
|
|
436
|
+
gt: "gt";
|
|
437
|
+
gte: "gte";
|
|
438
|
+
lt: "lt";
|
|
439
|
+
lte: "lte";
|
|
440
|
+
"is-before": "is-before";
|
|
441
|
+
"is-after": "is-after";
|
|
442
|
+
"is-on-or-before": "is-on-or-before";
|
|
443
|
+
"is-on-or-after": "is-on-or-after";
|
|
444
|
+
"is-any-of": "is-any-of";
|
|
445
|
+
"is-none-of": "is-none-of";
|
|
446
|
+
"has-any-of": "has-any-of";
|
|
447
|
+
"has-all-of": "has-all-of";
|
|
448
|
+
"has-none-of": "has-none-of";
|
|
449
|
+
"is-empty": "is-empty";
|
|
450
|
+
"is-not-empty": "is-not-empty";
|
|
451
|
+
}>;
|
|
452
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
453
|
+
}, z.core.$strip>>;
|
|
454
|
+
}, z.core.$strict>>>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
defaultSorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
457
|
+
attributeId: z.ZodString;
|
|
458
|
+
direction: z.ZodEnum<{
|
|
459
|
+
asc: "asc";
|
|
460
|
+
desc: "desc";
|
|
461
|
+
}>;
|
|
462
|
+
}, z.core.$strip>>>;
|
|
463
|
+
defaultViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodString;
|
|
465
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
466
|
+
$l10n: z.ZodString;
|
|
467
|
+
default: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>]>;
|
|
469
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
grouping: z.ZodOptional<z.ZodString>;
|
|
471
|
+
rowNumbers: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
wrapRows: z.ZodOptional<z.ZodBoolean>;
|
|
473
|
+
showStats: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
475
|
+
columnOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
478
|
+
conjunction: z.ZodEnum<{
|
|
479
|
+
and: "and";
|
|
480
|
+
or: "or";
|
|
481
|
+
}>;
|
|
482
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
483
|
+
attributeId: z.ZodString;
|
|
484
|
+
condition: z.ZodEnum<{
|
|
485
|
+
contains: "contains";
|
|
486
|
+
"does-not-contain": "does-not-contain";
|
|
487
|
+
is: "is";
|
|
488
|
+
"is-not": "is-not";
|
|
489
|
+
gt: "gt";
|
|
490
|
+
gte: "gte";
|
|
491
|
+
lt: "lt";
|
|
492
|
+
lte: "lte";
|
|
493
|
+
"is-before": "is-before";
|
|
494
|
+
"is-after": "is-after";
|
|
495
|
+
"is-on-or-before": "is-on-or-before";
|
|
496
|
+
"is-on-or-after": "is-on-or-after";
|
|
497
|
+
"is-any-of": "is-any-of";
|
|
498
|
+
"is-none-of": "is-none-of";
|
|
499
|
+
"has-any-of": "has-any-of";
|
|
500
|
+
"has-all-of": "has-all-of";
|
|
501
|
+
"has-none-of": "has-none-of";
|
|
502
|
+
"is-empty": "is-empty";
|
|
503
|
+
"is-not-empty": "is-not-empty";
|
|
504
|
+
}>;
|
|
505
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
508
|
+
conjunction: z.ZodEnum<{
|
|
509
|
+
and: "and";
|
|
510
|
+
or: "or";
|
|
511
|
+
}>;
|
|
512
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
513
|
+
attributeId: z.ZodString;
|
|
514
|
+
condition: z.ZodEnum<{
|
|
515
|
+
contains: "contains";
|
|
516
|
+
"does-not-contain": "does-not-contain";
|
|
517
|
+
is: "is";
|
|
518
|
+
"is-not": "is-not";
|
|
519
|
+
gt: "gt";
|
|
520
|
+
gte: "gte";
|
|
521
|
+
lt: "lt";
|
|
522
|
+
lte: "lte";
|
|
523
|
+
"is-before": "is-before";
|
|
524
|
+
"is-after": "is-after";
|
|
525
|
+
"is-on-or-before": "is-on-or-before";
|
|
526
|
+
"is-on-or-after": "is-on-or-after";
|
|
527
|
+
"is-any-of": "is-any-of";
|
|
528
|
+
"is-none-of": "is-none-of";
|
|
529
|
+
"has-any-of": "has-any-of";
|
|
530
|
+
"has-all-of": "has-all-of";
|
|
531
|
+
"has-none-of": "has-none-of";
|
|
532
|
+
"is-empty": "is-empty";
|
|
533
|
+
"is-not-empty": "is-not-empty";
|
|
534
|
+
}>;
|
|
535
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}, z.core.$strict>>>;
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
540
|
+
attributeId: z.ZodString;
|
|
541
|
+
direction: z.ZodEnum<{
|
|
542
|
+
asc: "asc";
|
|
543
|
+
desc: "desc";
|
|
544
|
+
}>;
|
|
545
|
+
}, z.core.$strip>>>;
|
|
546
|
+
}, z.core.$strip>>>;
|
|
547
|
+
defaultActiveViewId: z.ZodOptional<z.ZodString>;
|
|
367
548
|
}, z.core.$strip>;
|
|
368
549
|
type ExtensionDataTableRendererRecord = z.infer<typeof extensionDataTableRendererRecordSchema>;
|
|
369
550
|
type WorkbenchExtensionDataTableRendererRecord = ExtensionDataTableRendererRecord;
|
|
@@ -443,6 +624,9 @@ declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
|
|
|
443
624
|
kind: z.ZodLiteral<"status">;
|
|
444
625
|
id: z.ZodString;
|
|
445
626
|
}, z.core.$strip>;
|
|
627
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
628
|
+
kind: z.ZodLiteral<"boolean">;
|
|
629
|
+
legacyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
446
630
|
}, z.core.$strip>, z.ZodObject<{
|
|
447
631
|
kind: z.ZodLiteral<"string">;
|
|
448
632
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -525,16 +709,77 @@ declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
|
|
|
525
709
|
}>>;
|
|
526
710
|
columnGrouping: z.ZodOptional<z.ZodString>;
|
|
527
711
|
rowGrouping: z.ZodOptional<z.ZodString>;
|
|
528
|
-
|
|
712
|
+
displayProperties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
713
|
+
}, z.core.$strip>>;
|
|
714
|
+
defaultFilter: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
conjunction: z.ZodEnum<{
|
|
716
|
+
and: "and";
|
|
717
|
+
or: "or";
|
|
718
|
+
}>;
|
|
719
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
529
720
|
attributeId: z.ZodString;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
721
|
+
condition: z.ZodEnum<{
|
|
722
|
+
contains: "contains";
|
|
723
|
+
"does-not-contain": "does-not-contain";
|
|
724
|
+
is: "is";
|
|
725
|
+
"is-not": "is-not";
|
|
726
|
+
gt: "gt";
|
|
727
|
+
gte: "gte";
|
|
728
|
+
lt: "lt";
|
|
729
|
+
lte: "lte";
|
|
730
|
+
"is-before": "is-before";
|
|
731
|
+
"is-after": "is-after";
|
|
732
|
+
"is-on-or-before": "is-on-or-before";
|
|
733
|
+
"is-on-or-after": "is-on-or-after";
|
|
734
|
+
"is-any-of": "is-any-of";
|
|
735
|
+
"is-none-of": "is-none-of";
|
|
736
|
+
"has-any-of": "has-any-of";
|
|
737
|
+
"has-all-of": "has-all-of";
|
|
738
|
+
"has-none-of": "has-none-of";
|
|
739
|
+
"is-empty": "is-empty";
|
|
740
|
+
"is-not-empty": "is-not-empty";
|
|
533
741
|
}>;
|
|
742
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
534
743
|
}, z.core.$strip>>;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
744
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
745
|
+
conjunction: z.ZodEnum<{
|
|
746
|
+
and: "and";
|
|
747
|
+
or: "or";
|
|
748
|
+
}>;
|
|
749
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
750
|
+
attributeId: z.ZodString;
|
|
751
|
+
condition: z.ZodEnum<{
|
|
752
|
+
contains: "contains";
|
|
753
|
+
"does-not-contain": "does-not-contain";
|
|
754
|
+
is: "is";
|
|
755
|
+
"is-not": "is-not";
|
|
756
|
+
gt: "gt";
|
|
757
|
+
gte: "gte";
|
|
758
|
+
lt: "lt";
|
|
759
|
+
lte: "lte";
|
|
760
|
+
"is-before": "is-before";
|
|
761
|
+
"is-after": "is-after";
|
|
762
|
+
"is-on-or-before": "is-on-or-before";
|
|
763
|
+
"is-on-or-after": "is-on-or-after";
|
|
764
|
+
"is-any-of": "is-any-of";
|
|
765
|
+
"is-none-of": "is-none-of";
|
|
766
|
+
"has-any-of": "has-any-of";
|
|
767
|
+
"has-all-of": "has-all-of";
|
|
768
|
+
"has-none-of": "has-none-of";
|
|
769
|
+
"is-empty": "is-empty";
|
|
770
|
+
"is-not-empty": "is-not-empty";
|
|
771
|
+
}>;
|
|
772
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
}, z.core.$strict>>>;
|
|
775
|
+
}, z.core.$strict>>;
|
|
776
|
+
defaultSorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
777
|
+
attributeId: z.ZodString;
|
|
778
|
+
direction: z.ZodEnum<{
|
|
779
|
+
asc: "asc";
|
|
780
|
+
desc: "desc";
|
|
781
|
+
}>;
|
|
782
|
+
}, z.core.$strip>>>;
|
|
538
783
|
defaultViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
784
|
id: z.ZodString;
|
|
540
785
|
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -548,16 +793,77 @@ declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
|
|
|
548
793
|
}>;
|
|
549
794
|
columnGrouping: z.ZodString;
|
|
550
795
|
rowGrouping: z.ZodString;
|
|
551
|
-
ordering: z.ZodObject<{
|
|
552
|
-
attributeId: z.ZodString;
|
|
553
|
-
direction: z.ZodEnum<{
|
|
554
|
-
asc: "asc";
|
|
555
|
-
desc: "desc";
|
|
556
|
-
}>;
|
|
557
|
-
}, z.core.$strip>;
|
|
558
796
|
displayProperties: z.ZodArray<z.ZodString>;
|
|
559
797
|
}, z.core.$strip>;
|
|
560
|
-
|
|
798
|
+
filter: z.ZodObject<{
|
|
799
|
+
conjunction: z.ZodEnum<{
|
|
800
|
+
and: "and";
|
|
801
|
+
or: "or";
|
|
802
|
+
}>;
|
|
803
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
804
|
+
attributeId: z.ZodString;
|
|
805
|
+
condition: z.ZodEnum<{
|
|
806
|
+
contains: "contains";
|
|
807
|
+
"does-not-contain": "does-not-contain";
|
|
808
|
+
is: "is";
|
|
809
|
+
"is-not": "is-not";
|
|
810
|
+
gt: "gt";
|
|
811
|
+
gte: "gte";
|
|
812
|
+
lt: "lt";
|
|
813
|
+
lte: "lte";
|
|
814
|
+
"is-before": "is-before";
|
|
815
|
+
"is-after": "is-after";
|
|
816
|
+
"is-on-or-before": "is-on-or-before";
|
|
817
|
+
"is-on-or-after": "is-on-or-after";
|
|
818
|
+
"is-any-of": "is-any-of";
|
|
819
|
+
"is-none-of": "is-none-of";
|
|
820
|
+
"has-any-of": "has-any-of";
|
|
821
|
+
"has-all-of": "has-all-of";
|
|
822
|
+
"has-none-of": "has-none-of";
|
|
823
|
+
"is-empty": "is-empty";
|
|
824
|
+
"is-not-empty": "is-not-empty";
|
|
825
|
+
}>;
|
|
826
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
827
|
+
}, z.core.$strip>>;
|
|
828
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
829
|
+
conjunction: z.ZodEnum<{
|
|
830
|
+
and: "and";
|
|
831
|
+
or: "or";
|
|
832
|
+
}>;
|
|
833
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
834
|
+
attributeId: z.ZodString;
|
|
835
|
+
condition: z.ZodEnum<{
|
|
836
|
+
contains: "contains";
|
|
837
|
+
"does-not-contain": "does-not-contain";
|
|
838
|
+
is: "is";
|
|
839
|
+
"is-not": "is-not";
|
|
840
|
+
gt: "gt";
|
|
841
|
+
gte: "gte";
|
|
842
|
+
lt: "lt";
|
|
843
|
+
lte: "lte";
|
|
844
|
+
"is-before": "is-before";
|
|
845
|
+
"is-after": "is-after";
|
|
846
|
+
"is-on-or-before": "is-on-or-before";
|
|
847
|
+
"is-on-or-after": "is-on-or-after";
|
|
848
|
+
"is-any-of": "is-any-of";
|
|
849
|
+
"is-none-of": "is-none-of";
|
|
850
|
+
"has-any-of": "has-any-of";
|
|
851
|
+
"has-all-of": "has-all-of";
|
|
852
|
+
"has-none-of": "has-none-of";
|
|
853
|
+
"is-empty": "is-empty";
|
|
854
|
+
"is-not-empty": "is-not-empty";
|
|
855
|
+
}>;
|
|
856
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
|
|
857
|
+
}, z.core.$strip>>;
|
|
858
|
+
}, z.core.$strict>>>;
|
|
859
|
+
}, z.core.$strict>;
|
|
860
|
+
sorts: z.ZodArray<z.ZodObject<{
|
|
861
|
+
attributeId: z.ZodString;
|
|
862
|
+
direction: z.ZodEnum<{
|
|
863
|
+
asc: "asc";
|
|
864
|
+
desc: "desc";
|
|
865
|
+
}>;
|
|
866
|
+
}, z.core.$strip>>;
|
|
561
867
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
562
868
|
}, z.core.$strip>>>;
|
|
563
869
|
defaultActiveViewId: z.ZodOptional<z.ZodString>;
|
|
@@ -674,12 +980,12 @@ declare const extensionKeybindingRecordSchema: z.ZodObject<{
|
|
|
674
980
|
when: z.ZodOptional<z.ZodObject<{
|
|
675
981
|
mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
676
982
|
source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
677
|
-
schedule: "schedule";
|
|
678
983
|
automation: "automation";
|
|
679
|
-
api: "api";
|
|
680
|
-
event: "event";
|
|
681
984
|
cli: "cli";
|
|
682
985
|
dashboard: "dashboard";
|
|
986
|
+
api: "api";
|
|
987
|
+
schedule: "schedule";
|
|
988
|
+
event: "event";
|
|
683
989
|
"command-panel": "command-panel";
|
|
684
990
|
}>>>;
|
|
685
991
|
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -716,6 +1022,7 @@ declare const extensionTreeRendererRecordSchema: z.ZodObject<{
|
|
|
716
1022
|
headerHandlerId: z.ZodOptional<z.ZodString>;
|
|
717
1023
|
bodyHandlerId: z.ZodString;
|
|
718
1024
|
childrenHandlerId: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
moveHandlerId: z.ZodOptional<z.ZodString>;
|
|
719
1026
|
footerHandlerId: z.ZodOptional<z.ZodString>;
|
|
720
1027
|
defaultExpandedSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
721
1028
|
defaultExpandedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -761,6 +1068,12 @@ declare const extensionSettingDefinitionRecordSchema: z.ZodObject<{
|
|
|
761
1068
|
}>;
|
|
762
1069
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
763
1070
|
enum: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
1071
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
commandId: z.ZodString;
|
|
1073
|
+
valueField: z.ZodString;
|
|
1074
|
+
labelField: z.ZodString;
|
|
1075
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1076
|
+
}, z.core.$strip>>;
|
|
764
1077
|
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
765
1078
|
$l10n: z.ZodString;
|
|
766
1079
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -794,7 +1107,16 @@ interface WorkbenchExtensionControlsAdapter {
|
|
|
794
1107
|
export declare const registerWorkbenchExtensionControlsRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionControlsRendererRecord[], adapter?: WorkbenchExtensionControlsAdapter) => Disposable;
|
|
795
1108
|
//#endregion
|
|
796
1109
|
//#region src/extensions/contributions/data-table-renderer-contributions.d.ts
|
|
797
|
-
|
|
1110
|
+
interface WorkbenchExtensionDataTableRendererAdapter {
|
|
1111
|
+
resolveRowResource?: (record: WorkbenchExtensionDataTableRendererRecord, row: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
values: Record<string, unknown>;
|
|
1114
|
+
resource?: ResourceRef$1;
|
|
1115
|
+
}) => ResourceRef$1 | undefined;
|
|
1116
|
+
/** Shared saved views for the table, such as the dashboard's project views. */
|
|
1117
|
+
createViewsProvider?: (record: WorkbenchExtensionDataTableRendererRecord) => CollectionViewsProvider<DataTableRendererSettings>;
|
|
1118
|
+
}
|
|
1119
|
+
export declare const registerWorkbenchExtensionDataTableRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionDataTableRendererRecord[], adapter?: WorkbenchExtensionDataTableRendererAdapter) => Disposable;
|
|
798
1120
|
//#endregion
|
|
799
1121
|
//#region src/extensions/contributions/extension-contributions.d.ts
|
|
800
1122
|
interface WorkbenchExtensionMenuSlotConfig {
|
|
@@ -995,7 +1317,8 @@ type KanbanRendererRow = Awaited<ReturnType<ReactKanbanRendererContribution["exe
|
|
|
995
1317
|
type RowAction = NonNullable<WorkbenchExtensionKanbanRendererRecord["rowActions"]>[number];
|
|
996
1318
|
type Localizer = (value: unknown, fallback?: string) => string;
|
|
997
1319
|
//#endregion
|
|
998
|
-
//#region src/extensions/contributions/kanban-renderer-
|
|
1320
|
+
//#region src/extensions/contributions/kanban-renderer-adapter.d.ts
|
|
1321
|
+
/** How a host changes the way extension boards load views, resolve resources, and react to changes. */
|
|
999
1322
|
interface WorkbenchExtensionKanbanRendererAdapter {
|
|
1000
1323
|
createViewsProvider?: (record: WorkbenchExtensionKanbanRendererRecord) => KanbanRendererViewsProvider;
|
|
1001
1324
|
/** Override label resolution. Defaults to workbench's `text(value, fallback)`. */
|
|
@@ -1048,6 +1371,8 @@ interface WorkbenchExtensionKanbanRendererAdapter {
|
|
|
1048
1371
|
*/
|
|
1049
1372
|
onAfterMutation?: (record: WorkbenchExtensionKanbanRendererRecord) => void;
|
|
1050
1373
|
}
|
|
1374
|
+
//#endregion
|
|
1375
|
+
//#region src/extensions/contributions/kanban-renderer-contributions.d.ts
|
|
1051
1376
|
export declare const registerWorkbenchExtensionKanbanRenderers: (context: WorkbenchExtensionCommandContext, records: readonly WorkbenchExtensionKanbanRendererRecord[], adapter?: WorkbenchExtensionKanbanRendererAdapter) => {
|
|
1052
1377
|
dispose(): void;
|
|
1053
1378
|
};
|
|
@@ -1137,6 +1462,7 @@ interface RegisterWorkbenchExtensionContributionsInput {
|
|
|
1137
1462
|
createWebviewTheme?: CreateBridgeWebviewTheme;
|
|
1138
1463
|
executeCommand(commandId: string, body: CommandExecuteRequest, signal?: AbortSignal): Promise<unknown> | unknown;
|
|
1139
1464
|
kanbanAdapter?: WorkbenchExtensionKanbanRendererAdapter;
|
|
1465
|
+
dataTableAdapter?: WorkbenchExtensionDataTableRendererAdapter;
|
|
1140
1466
|
menuSlotsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1141
1467
|
menuTargetsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1142
1468
|
menuRegistrations?: readonly WorkbenchExtensionHostMenuRegistration[];
|
|
@@ -1162,11 +1488,11 @@ export declare const registerWorkbenchExtensionContributions: (sourceInput: Regi
|
|
|
1162
1488
|
//#region src/extensions/host/workbench-extension-metadata-ref.d.ts
|
|
1163
1489
|
export declare const toWorkbenchWhenExpression: (when: WorkbenchExtensionMetadata$1["navigationItems"][number]["when"] | WorkbenchExtensionMetadata$1["statusBarItems"][number]["when"]) => {
|
|
1164
1490
|
mode: string | string[] | undefined;
|
|
1165
|
-
source: ("
|
|
1491
|
+
source: ("automation" | "cli" | "dashboard" | "api" | "schedule" | "event" | "command-panel")[] | undefined;
|
|
1166
1492
|
viewId: string | string[] | undefined;
|
|
1167
1493
|
resourceType: string[] | undefined;
|
|
1168
1494
|
metadata: Record<string, unknown> | undefined;
|
|
1169
1495
|
} | undefined;
|
|
1170
1496
|
//#endregion
|
|
1171
|
-
export type { BridgeWebviewConfig, BridgeWebviewRenderContext, CreateBridgeWebviewHostCapabilities, CreateBridgeWebviewProps, CreateBridgeWebviewTheme, ExtensionWebviewArtifactCapabilities, ExtensionWebviewFileCapabilities, RegisterWorkbenchExtensionContributionsInput, RegisterWorkbenchExtensionFileRenderersInput, RegisterWorkbenchExtensionRendererRefreshEventsInput, RegisterWorkbenchExtensionTreeRenderersInput, ToWorkbenchNavigationTargetInput, WorkbenchExtensionCommandContext, WorkbenchExtensionCommandPaletteRegistration, WorkbenchExtensionControlsAdapter, WorkbenchExtensionHostMenuRegistration, WorkbenchExtensionKanbanRendererAdapter, WorkbenchExtensionMenuRegistration, WorkbenchExtensionMenuSlotConfig, WorkbenchExtensionMenuWhenBuilder, WorkbenchExtensionMetadata, WorkbenchExtensionRendererKind };
|
|
1497
|
+
export type { BridgeWebviewConfig, BridgeWebviewRenderContext, CreateBridgeWebviewHostCapabilities, CreateBridgeWebviewProps, CreateBridgeWebviewTheme, ExtensionWebviewArtifactCapabilities, ExtensionWebviewFileCapabilities, RegisterWorkbenchExtensionContributionsInput, RegisterWorkbenchExtensionFileRenderersInput, RegisterWorkbenchExtensionRendererRefreshEventsInput, RegisterWorkbenchExtensionTreeRenderersInput, ToWorkbenchNavigationTargetInput, WorkbenchExtensionCommandContext, WorkbenchExtensionCommandPaletteRegistration, WorkbenchExtensionControlsAdapter, WorkbenchExtensionDataTableRendererAdapter, WorkbenchExtensionHostMenuRegistration, WorkbenchExtensionKanbanRendererAdapter, WorkbenchExtensionMenuRegistration, WorkbenchExtensionMenuSlotConfig, WorkbenchExtensionMenuWhenBuilder, WorkbenchExtensionMetadata, WorkbenchExtensionRendererKind };
|
|
1172
1498
|
export {};
|