@typespec/html-program-viewer 0.80.0 → 0.81.0-dev.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.
@@ -1,6 +1,6 @@
1
1
  const manifest = {
2
2
  "version": "1.10.0",
3
- "commit": "707a748ef5680402298e44215c57455d2dd37b9d"
3
+ "commit": "2e4cc62227751b881e8635429c92c476b02532e5"
4
4
  };
5
5
 
6
6
  export { manifest as default };
@@ -1341,7 +1341,12 @@ function Tree({
1341
1341
  const activateRow = useCallback(
1342
1342
  (row) => {
1343
1343
  setFocusedIndex(row.index);
1344
- if (selectionMode === "none" || selectedKey === row.id) {
1344
+ if (row.hasChildren) {
1345
+ toggleExpand(row.id);
1346
+ if (selectionMode === "single") {
1347
+ setSelectedKey(row.id);
1348
+ }
1349
+ } else if (selectionMode === "none" || selectedKey === row.id) {
1345
1350
  toggleExpand(row.id);
1346
1351
  } else {
1347
1352
  expand(row.id);
@@ -51538,7 +51543,7 @@ let manifest;
51538
51543
  try {
51539
51544
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
51540
51545
  // @ts-ignore
51541
- manifest = (await import('../manifest-1UTI30qk.js')).default;
51546
+ manifest = (await import('../manifest-BpPXBqss.js')).default;
51542
51547
  }
51543
51548
  catch {
51544
51549
  const name = "../dist/manifest.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/html-program-viewer",
3
- "version": "0.80.0",
3
+ "version": "0.81.0-dev.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library for emitting an html view of the program.",
6
6
  "homepage": "https://typespec.io",
@@ -36,36 +36,35 @@
36
36
  "!dist/test/**"
37
37
  ],
38
38
  "peerDependencies": {
39
- "@typespec/compiler": "^1.10.0"
39
+ "@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.4"
40
40
  },
41
41
  "dependencies": {
42
- "@fluentui/react-components": "~9.73.1",
43
- "@fluentui/react-icons": "^2.0.292",
44
- "@fluentui/react-list": "^9.1.2",
45
- "react": "~19.2.3",
46
- "react-dom": "~19.2.3",
47
- "react-hotkeys-hook": "^5.1.0"
42
+ "@fluentui/react-components": "~9.73.3",
43
+ "@fluentui/react-icons": "^2.0.321",
44
+ "@fluentui/react-list": "^9.6.11",
45
+ "react": "~19.2.4",
46
+ "react-dom": "~19.2.4",
47
+ "react-hotkeys-hook": "^5.2.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@babel/core": "^7.26.10",
51
- "@testing-library/dom": "^10.4.0",
52
- "@testing-library/jest-dom": "^6.6.3",
53
- "@testing-library/react": "^16.2.0",
54
- "@types/node": "~25.3.0",
55
- "@types/react": "~19.2.7",
56
- "@types/react-dom": "~19.2.2",
50
+ "@babel/core": "^7.29.0",
51
+ "@testing-library/dom": "^10.4.1",
52
+ "@testing-library/jest-dom": "^6.9.1",
53
+ "@testing-library/react": "^16.3.2",
54
+ "@types/node": "~25.5.0",
55
+ "@types/react": "~19.2.14",
56
+ "@types/react-dom": "~19.2.3",
57
+ "@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.4",
57
58
  "@vitejs/plugin-react": "~5.1.2",
58
- "@vitest/coverage-v8": "^4.0.18",
59
- "@vitest/ui": "^4.0.18",
59
+ "@vitest/coverage-v8": "^4.1.0",
60
+ "@vitest/ui": "^4.1.0",
60
61
  "c8": "^11.0.0",
61
62
  "rimraf": "~6.1.3",
62
63
  "typescript": "~5.9.3",
63
64
  "vite": "^7.2.7",
64
65
  "vite-plugin-checker": "^0.12.0",
65
66
  "vite-plugin-dts": "4.5.4",
66
- "vite-plugin-node-polyfills": "^0.25.0",
67
- "vitest": "^4.0.18",
68
- "@typespec/compiler": "^1.10.0",
67
+ "vitest": "^4.1.0",
69
68
  "@typespec/react-components": "^0.57.0"
70
69
  },
71
70
  "scripts": {