@typespec/playground 0.14.0-dev.5 → 0.14.0-dev.7

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.
@@ -1895,7 +1895,7 @@ var output_view_module_default = {
1895
1895
  var FileViewerComponent = ({ program, outputFiles, fileViewers }) => {
1896
1896
  const [filename, setFilename] = useState("");
1897
1897
  const [content, setContent] = useState("");
1898
- const showFileTree = useMemo(() => outputFiles.some((f) => f.includes("/")) || outputFiles.length >= 3, [outputFiles]);
1898
+ const showFileTree = useMemo(() => outputFiles.length > 1 && (outputFiles.some((f) => f.includes("/")) || outputFiles.length >= 3), [outputFiles]);
1899
1899
  const loadOutputFile = useCallback(async (path) => {
1900
1900
  setContent((await program.host.readFile("./tsp-output/" + path)).text);
1901
1901
  }, [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;AAqFtF,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;AAuFtF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,aAAa,CAU/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA0B,UAAU,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAwCnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA0B,UAAU,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAqCnF"}
@@ -11,7 +11,6 @@ function definePlaygroundViteConfig(config) {
11
11
  if (id.includes("/node_modules/monaco-editor/esm/vs/editor")) return "monaco";
12
12
  } } }
13
13
  },
14
- esbuild: { logOverride: { "this-is-undefined-in-esm": "silent" } },
15
14
  assetsInclude: [/\.tsp$/],
16
15
  optimizeDeps: { exclude: ["swagger-ui"] },
17
16
  plugins: [
@@ -1 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAwBA,wBA0CG"}
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAwBA,wBAuCG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/playground",
3
- "version": "0.14.0-dev.5",
3
+ "version": "0.14.0-dev.7",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec playground UI components.",
6
6
  "homepage": "https://typespec.io",
@@ -60,9 +60,9 @@
60
60
  ],
61
61
  "dependencies": {
62
62
  "@fluentui/react-components": "~9.73.3",
63
- "@fluentui/react-icons": "^2.0.321",
64
- "@typespec/bundler": "^0.5.1 || >= 0.5.2-dev.4",
65
- "@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.6",
63
+ "@fluentui/react-icons": "^2.0.323",
64
+ "@typespec/bundler": "^0.5.1 || >= 0.5.2-dev.5",
65
+ "@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.8",
66
66
  "@typespec/html-program-viewer": "^0.80.0 || >= 0.81.0-dev.3",
67
67
  "@typespec/http": "^1.10.0 || >= 1.11.0-dev.3",
68
68
  "@typespec/openapi": "^1.10.0 || >= 1.11.0-dev.2",
@@ -85,8 +85,8 @@
85
85
  "devDependencies": {
86
86
  "@babel/core": "^7.29.0",
87
87
  "@playwright/test": "^1.58.2",
88
- "@storybook/cli": "^10.1.8",
89
- "@storybook/react-vite": "^10.1.8",
88
+ "@storybook/cli": "^10.3.3",
89
+ "@storybook/react-vite": "^10.3.3",
90
90
  "@testing-library/dom": "^10.4.1",
91
91
  "@testing-library/jest-dom": "^6.9.1",
92
92
  "@testing-library/react": "^16.3.2",
@@ -95,13 +95,13 @@
95
95
  "@types/react": "~19.2.14",
96
96
  "@types/react-dom": "~19.2.3",
97
97
  "@types/swagger-ui-dist": "~3.30.6",
98
- "@typespec/bundler": "^0.5.1 || >= 0.5.2-dev.4",
98
+ "@typespec/bundler": "^0.5.1 || >= 0.5.2-dev.5",
99
99
  "@vitejs/plugin-react": "~6.0.1",
100
100
  "c8": "^11.0.0",
101
101
  "cross-env": "~10.1.0",
102
102
  "es-module-shims": "~2.8.0",
103
103
  "rimraf": "~6.1.3",
104
- "storybook": "^10.2.19",
104
+ "storybook": "^10.3.3",
105
105
  "typescript": "~5.9.3",
106
106
  "vite": "^8.0.1",
107
107
  "vite-plugin-checker": "^0.12.0",