@workbench-kit/react 0.0.2-prototype.0.2.27 → 0.0.2-prototype.0.2.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbench-kit/react",
3
- "version": "0.0.2-prototype.0.2.27",
3
+ "version": "0.0.2-prototype.0.2.29",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -73,15 +73,15 @@
73
73
  "@vscode/codicons": "^0.0.45",
74
74
  "remark-gfm": "^4.0.1",
75
75
  "rehype-sanitize": "^6.0.0",
76
- "@workbench-kit/contracts": "0.0.2-prototype.0.2.27",
77
- "@workbench-kit/jdw": "0.0.2-prototype.0.2.27",
78
- "@workbench-kit/adapters": "0.0.2-prototype.0.2.27",
79
- "@workbench-kit/monaco": "0.0.2-prototype.0.2.27",
80
- "@workbench-kit/runtime": "0.0.2-prototype.0.2.27",
81
- "@workbench-kit/services": "0.0.2-prototype.0.2.27",
82
- "@workbench-kit/platform": "0.0.2-prototype.0.2.27",
83
- "@workbench-kit/tokens": "0.0.2-prototype.0.2.27",
84
- "@workbench-kit/workspace": "0.0.2-prototype.0.2.27"
76
+ "@workbench-kit/contracts": "0.0.2-prototype.0.2.29",
77
+ "@workbench-kit/monaco": "0.0.2-prototype.0.2.29",
78
+ "@workbench-kit/adapters": "0.0.2-prototype.0.2.29",
79
+ "@workbench-kit/runtime": "0.0.2-prototype.0.2.29",
80
+ "@workbench-kit/jdw": "0.0.2-prototype.0.2.29",
81
+ "@workbench-kit/services": "0.0.2-prototype.0.2.29",
82
+ "@workbench-kit/tokens": "0.0.2-prototype.0.2.29",
83
+ "@workbench-kit/platform": "0.0.2-prototype.0.2.29",
84
+ "@workbench-kit/workspace": "0.0.2-prototype.0.2.29"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "react": "^19.0.0",
package/src/index.ts CHANGED
@@ -241,7 +241,6 @@ export {
241
241
  FilterBar,
242
242
  FilterBarActiveChips,
243
243
  FilterBarRow,
244
- FilterChip,
245
244
  HelpText,
246
245
  Panel,
247
246
  PanelBody,
@@ -266,7 +265,6 @@ export type {
266
265
  FilterBarActiveChipsProps,
267
266
  FilterBarRowProps,
268
267
  FilterBarProps,
269
- FilterChipProps,
270
268
  HelpTextProps,
271
269
  PanelBodyProps,
272
270
  PanelFooterProps,
@@ -2,7 +2,6 @@ export {
2
2
  FilterBar,
3
3
  FilterBarActiveChips,
4
4
  FilterBarRow,
5
- FilterChip,
6
5
  HelpText,
7
6
  Panel,
8
7
  PanelBody,
@@ -19,7 +18,6 @@ export type {
19
18
  FilterBarActiveChipsProps,
20
19
  FilterBarProps,
21
20
  FilterBarRowProps,
22
- FilterChipProps,
23
21
  HelpTextProps,
24
22
  PanelBodyProps,
25
23
  PanelFooterProps,
@@ -71,9 +71,6 @@ export function FilterBarRow({ className, ...props }: FilterBarRowProps) {
71
71
  return <div className={cx('ui-filter-bar__row', className)} {...props} />;
72
72
  }
73
73
 
74
- /** @deprecated Use `Chip` / `ChipProps` from `@workbench-kit/react` primitives. */
75
- export { FilterChip, type FilterChipProps } from '../../primitives/chip';
76
-
77
74
  export interface FilterBarActiveChipsProps extends ComponentPropsWithRef<'div'> {
78
75
  clearAllLabel?: string | undefined;
79
76
  onClearAll?: (() => void) | undefined;
@@ -2,7 +2,6 @@ export {
2
2
  FilterBar,
3
3
  FilterBarActiveChips,
4
4
  FilterBarRow,
5
- FilterChip,
6
5
  HelpText,
7
6
  Panel,
8
7
  PanelBody,
@@ -19,7 +18,6 @@ export type {
19
18
  FilterBarActiveChipsProps,
20
19
  FilterBarProps,
21
20
  FilterBarRowProps,
22
- FilterChipProps,
23
21
  HelpTextProps,
24
22
  PanelBodyProps,
25
23
  PanelFooterProps,
@@ -51,7 +51,7 @@ export interface PointerPassthroughController {
51
51
  /**
52
52
  * Pure controller for overlay click-through: when the pointer is outside
53
53
  * host-provided selectors, ask the port to enable passthrough.
54
- * Pair with platform `applyWindowResidency(..., 'click-through')` on the main side.
54
+ * Pair with platform `applyWindowResidencyPolicy` on the main side.
55
55
  */
56
56
  export function createPointerPassthroughController(
57
57
  options: PointerPassthroughControllerOptions,
@@ -9,10 +9,7 @@ export interface ChipProps extends Omit<ComponentPropsWithRef<'button'>, 'childr
9
9
  onDismiss?: () => void;
10
10
  }
11
11
 
12
- /**
13
- * Compact labeled control, optionally dismissible (close affordance).
14
- * Preferred over layout-scoped `FilterChip`.
15
- */
12
+ /** Compact labeled control, optionally dismissible (close affordance). */
16
13
  export function Chip({ className, count, label, onDismiss, type = 'button', ...props }: ChipProps) {
17
14
  return (
18
15
  <Button className={cx('ui-chip', 'ui-filter-chip', className)} type={type} {...props}>
@@ -35,9 +32,3 @@ export function Chip({ className, count, label, onDismiss, type = 'button', ...p
35
32
  </Button>
36
33
  );
37
34
  }
38
-
39
- /** @deprecated Use {@link Chip} / {@link ChipProps}. */
40
- export const FilterChip = Chip;
41
-
42
- /** @deprecated Use {@link ChipProps}. */
43
- export type FilterChipProps = ChipProps;
@@ -1,2 +1,2 @@
1
- export { Chip, FilterChip } from './Chip';
2
- export type { ChipProps, FilterChipProps } from './Chip';
1
+ export { Chip } from './Chip';
2
+ export type { ChipProps } from './Chip';
@@ -152,7 +152,6 @@ export {
152
152
  FilterBar,
153
153
  FilterBarActiveChips,
154
154
  FilterBarRow,
155
- FilterChip,
156
155
  HelpText,
157
156
  Panel,
158
157
  PanelBody,
@@ -171,7 +170,6 @@ export type {
171
170
  FilterBarActiveChipsProps,
172
171
  FilterBarProps,
173
172
  FilterBarRowProps,
174
- FilterChipProps,
175
173
  HelpTextProps,
176
174
  PanelBodyProps,
177
175
  PanelFooterProps,
@@ -1,10 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
2
 
3
- /** @deprecated Side panel no longer switches tabs; all panes stay visible. */
4
- export type WidgetTreeSidePanelTab = 'outline' | 'assets' | 'properties';
5
- /** @deprecated Side panel no longer switches detail tabs. */
6
- export type WidgetTreeSidePanelDetailTab = Exclude<WidgetTreeSidePanelTab, 'outline'>;
7
-
8
3
  export interface WidgetTreeSidePanelProps {
9
4
  readonly outline: ReactNode;
10
5
  readonly properties: ReactNode;
@@ -18,11 +18,7 @@ export type {
18
18
  export { WidgetInspectorPanel } from './WidgetInspectorPanel.js';
19
19
  export type { WidgetInspectorPanelProps } from './WidgetInspectorPanel.js';
20
20
  export { WidgetTreeSidePanel } from './WidgetTreeSidePanel.js';
21
- export type {
22
- WidgetTreeSidePanelProps,
23
- WidgetTreeSidePanelDetailTab,
24
- WidgetTreeSidePanelTab,
25
- } from './WidgetTreeSidePanel.js';
21
+ export type { WidgetTreeSidePanelProps } from './WidgetTreeSidePanel.js';
26
22
  export { WidgetAssetPalette } from './WidgetAssetPalette.js';
27
23
  export type { WidgetAssetPaletteProps } from './WidgetAssetPalette.js';
28
24
  export {
@@ -213,6 +213,22 @@ export function matchesWorkbenchShortcut({
213
213
  );
214
214
  }
215
215
 
216
+ export function matchesWorkbenchCommandPaletteShortcut(event: WorkbenchShortcutEventLike) {
217
+ return matchesWorkbenchShortcut({ event, shortcut: 'Ctrl/Cmd+Shift+P' });
218
+ }
219
+
220
+ export function matchesWorkbenchQuickAccessShortcut(event: WorkbenchShortcutEventLike) {
221
+ return matchesWorkbenchShortcut({ event, shortcut: 'Ctrl/Cmd+P' });
222
+ }
223
+
224
+ export function getWorkbenchCommandPaletteShortcutLabel() {
225
+ return 'Ctrl+Shift+P';
226
+ }
227
+
228
+ export function getWorkbenchQuickAccessShortcutLabel() {
229
+ return 'Ctrl+P';
230
+ }
231
+
216
232
  export function getWorkbenchShortcutCommandBindings<TContext>({
217
233
  commandIds,
218
234
  context,
@@ -8,7 +8,6 @@ import {
8
8
  useWorkbenchSidebarViewPlacementDropZone,
9
9
  } from './useWorkbenchSidebarViewPlacementDropZone';
10
10
  import { useWorkbenchSidebarActionBarDnd } from './useWorkbenchSidebarActionBarDnd';
11
- import { WORKBENCH_SIDEBAR_VIEW_PLACEMENT_DRAG_DATA_TYPE } from './sidebarViewPlacementDnd';
12
11
 
13
12
  export interface ActivityBarItem {
14
13
  active?: boolean;
@@ -34,9 +33,6 @@ export interface ActivityBarProps extends Omit<ComponentPropsWithoutRef<'nav'>,
34
33
  placementDraggable?: boolean;
35
34
  }
36
35
 
37
- /** @deprecated Use WORKBENCH_SIDEBAR_VIEW_PLACEMENT_DRAG_DATA_TYPE */
38
- export const ACTIVITY_BAR_DRAG_DATA_TYPE = WORKBENCH_SIDEBAR_VIEW_PLACEMENT_DRAG_DATA_TYPE;
39
-
40
36
  export function ActivityBar({
41
37
  'aria-label': ariaLabel = 'Activity bar',
42
38
  acceptSidebarViewPlacementDrop,
@@ -1,4 +1,4 @@
1
- export { ActivityBar, ACTIVITY_BAR_DRAG_DATA_TYPE } from './ActivityBar';
1
+ export { ActivityBar } from './ActivityBar';
2
2
  export {
3
3
  hasWorkbenchSidebarViewPlacementDrag,
4
4
  readWorkbenchSidebarViewPlacementDrag,