@typespec/playground 0.15.1-dev.0 → 0.15.1-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.
@@ -2051,7 +2051,7 @@ var FileViewerComponent = ({ program, outputFiles, fileViewers }) => {
2051
2051
  const [filename, setFilename] = useState("");
2052
2052
  const [content, setContent] = useState("");
2053
2053
  const { changedFiles, changedLines } = useFileChanges(program, outputFiles);
2054
- const showFileTree = useMemo(() => outputFiles.some((f) => f.includes("/")) || outputFiles.length >= 3, [outputFiles]);
2054
+ const showFileTree = useMemo(() => outputFiles.length > 1 && (outputFiles.some((f) => f.includes("/")) || outputFiles.length >= 3), [outputFiles]);
2055
2055
  const loadOutputFile = useCallback(async (path) => {
2056
2056
  setContent((await program.host.readFile("./tsp-output/" + path)).text);
2057
2057
  }, [program.host]);
@@ -1 +1 @@
1
- {"version":3,"file":"file-viewer.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/file-viewer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAqB,aAAa,EAAE,MAAM,aAAa,CAAC;AAoGtF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,aAAa,CAU/E"}
1
+ {"version":3,"file":"file-viewer.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/file-viewer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAqB,aAAa,EAAE,MAAM,aAAa,CAAC;AAsGtF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,aAAa,CAU/E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/playground",
3
- "version": "0.15.1-dev.0",
3
+ "version": "0.15.1-dev.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec playground UI components.",
6
6
  "homepage": "https://typespec.io",
@@ -62,11 +62,11 @@
62
62
  "@fluentui/react-components": "^9.73.7",
63
63
  "@fluentui/react-icons": "^2.0.323",
64
64
  "@typespec/bundler": "^0.6.0 || >= 0.6.1-dev.0",
65
- "@typespec/compiler": "^1.12.0 || >= 1.13.0-dev.0",
66
- "@typespec/html-program-viewer": "^0.82.0 || >= 0.83.0-dev.0",
65
+ "@typespec/compiler": "^1.12.0 || >= 1.13.0-dev.4",
66
+ "@typespec/html-program-viewer": "^0.82.0 || >= 0.83.0-dev.1",
67
67
  "@typespec/http": "^1.12.0 || >= 1.13.0-dev.0",
68
68
  "@typespec/openapi": "^1.12.0 || >= 1.13.0-dev.0",
69
- "@typespec/openapi3": "^1.12.0 || >= 1.13.0-dev.0",
69
+ "@typespec/openapi3": "^1.12.0 || >= 1.13.0-dev.2",
70
70
  "@typespec/protobuf": "^0.82.0 || >= 0.83.0-dev.0",
71
71
  "@typespec/rest": "^0.82.0 || >= 0.83.0-dev.0",
72
72
  "@typespec/versioning": "^0.82.0 || >= 0.83.0-dev.0",