@typespec/html-program-viewer 0.84.0-dev.2 → 0.84.0-dev.4

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.
@@ -785,10 +785,13 @@ var TreeNavigation = (_) => {
785
785
  };
786
786
  var NodeIcon = ({ node }) => {
787
787
  switch (node.kind) {
788
- case "type": return /* @__PURE__ */ jsx("span", {
789
- className: tree_navigation_module_default["type-kind-icon"],
790
- children: node.type.kind[0]
791
- });
788
+ case "type": {
789
+ const kindPrefix = node.type?.kind?.[0] ?? "?";
790
+ return /* @__PURE__ */ jsx("span", {
791
+ className: tree_navigation_module_default["type-kind-icon"],
792
+ children: kindPrefix
793
+ });
794
+ }
792
795
  case "list": return /* @__PURE__ */ jsx(AppsListRegular, {});
793
796
  }
794
797
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tree-navigation.d.ts","sourceRoot":"","sources":["../../src/react/tree-navigation.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEhF,MAAM,WAAW,mBAAmB;CAAG;AAEvC,eAAO,MAAM,cAAc,GAAI,GAAG,mBAAmB,gCAYpD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,gCAOzD,CAAC"}
1
+ {"version":3,"file":"tree-navigation.d.ts","sourceRoot":"","sources":["../../src/react/tree-navigation.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEhF,MAAM,WAAW,mBAAmB;CAAG;AAEvC,eAAO,MAAM,cAAc,GAAI,GAAG,mBAAmB,gCAYpD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,gCASzD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/html-program-viewer",
3
- "version": "0.84.0-dev.2",
3
+ "version": "0.84.0-dev.4",
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,7 +36,7 @@
36
36
  "!dist/test/**"
37
37
  ],
38
38
  "peerDependencies": {
39
- "@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.7"
39
+ "@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.11"
40
40
  },
41
41
  "dependencies": {
42
42
  "@fluentui/react-components": "^9.73.7",
@@ -54,7 +54,7 @@
54
54
  "@types/node": "^26.0.0",
55
55
  "@types/react": "^19.2.16",
56
56
  "@types/react-dom": "^19.2.3",
57
- "@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.7",
57
+ "@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.11",
58
58
  "@vitejs/plugin-react": "^6.0.1",
59
59
  "@vitest/coverage-v8": "^4.1.3",
60
60
  "@vitest/ui": "^4.1.3",
@@ -75,7 +75,7 @@
75
75
  "test": "vitest run",
76
76
  "test:ui": "vitest --ui",
77
77
  "test:ci": "vitest run --coverage --reporter=junit --reporter=default",
78
- "lint": "eslint . --max-warnings=0",
79
- "lint:fix": "eslint . --fix"
78
+ "lint": "oxlint . --deny-warnings",
79
+ "lint:fix": "oxlint . --fix"
80
80
  }
81
81
  }