@typespec/playground 0.8.0 → 0.8.2
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/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createBrowserHost, r as registerMonacoLanguage } from './services-
|
|
1
|
+
export { c as createBrowserHost, r as registerMonacoLanguage } from './services-BOARIFqT.js';
|
|
2
2
|
export { createUrlStateStorage } from './state-storage.js';
|
|
3
3
|
|
|
4
4
|
function registerMonacoDefaultWorkersForVite() {
|
package/dist/react/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { mergeClasses, Popover, PopoverTrigger, PopoverSurface, Title3, Table, T
|
|
|
5
5
|
import { Settings24Regular, Save16Regular, Broom16Filled, Bug16Regular, FolderListRegular, DataLineRegular, ErrorCircle16Filled, Warning16Filled, ChevronDown16Regular } from '@fluentui/react-icons';
|
|
6
6
|
import debounce from 'debounce';
|
|
7
7
|
import { CompletionItemTag } from 'vscode-languageserver';
|
|
8
|
-
import { a as resolveVirtualPath, g as getMonacoRange, c as createBrowserHost, r as registerMonacoLanguage } from '../services-
|
|
8
|
+
import { a as resolveVirtualPath, g as getMonacoRange, c as createBrowserHost, r as registerMonacoLanguage } from '../services-BOARIFqT.js';
|
|
9
9
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
10
10
|
import { TypeGraph } from '@typespec/html-program-viewer/react';
|
|
11
11
|
import '@typespec/html-program-viewer/style.css';
|
|
@@ -2535,6 +2535,9 @@ const DiagnosticItem = ({ diagnostic, onItemSelected }) => {
|
|
|
2535
2535
|
] });
|
|
2536
2536
|
};
|
|
2537
2537
|
const DiagnosticTargetLink = memo(({ target }) => {
|
|
2538
|
+
if (target === void 0) {
|
|
2539
|
+
return /* @__PURE__ */ jsx("span", { title: "Diagnostic didn't report a target. This is a bug on the emitter.", children: "No target" });
|
|
2540
|
+
}
|
|
2538
2541
|
if (typeof target === "symbol") {
|
|
2539
2542
|
return /* @__PURE__ */ jsx("span", {});
|
|
2540
2543
|
}
|
|
@@ -555,7 +555,7 @@ async function registerMonacoLanguage(host) {
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
function getMonacoRange(typespecCompiler, target) {
|
|
558
|
-
const loc = typespecCompiler.getSourceLocation(target);
|
|
558
|
+
const loc = typespecCompiler.getSourceLocation(target, { locateId: true });
|
|
559
559
|
if (loc === void 0 || loc.file.path !== "/test/main.tsp") {
|
|
560
560
|
return {
|
|
561
561
|
startLineNumber: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/playground",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec playground UI components.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -59,53 +59,53 @@
|
|
|
59
59
|
"!dist/test/**"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fluentui/react-components": "~9.
|
|
63
|
-
"@fluentui/react-icons": "^2.0.
|
|
62
|
+
"@fluentui/react-components": "~9.63.0",
|
|
63
|
+
"@fluentui/react-icons": "^2.0.292",
|
|
64
64
|
"clsx": "^2.1.1",
|
|
65
65
|
"debounce": "~2.2.0",
|
|
66
66
|
"lzutf8": "0.6.3",
|
|
67
67
|
"monaco-editor": "~0.52.2",
|
|
68
68
|
"react": "~18.3.1",
|
|
69
69
|
"react-dom": "~18.3.1",
|
|
70
|
-
"react-error-boundary": "^
|
|
71
|
-
"swagger-ui-dist": "^5.20.
|
|
70
|
+
"react-error-boundary": "^6.0.0",
|
|
71
|
+
"swagger-ui-dist": "^5.20.1",
|
|
72
72
|
"vscode-languageserver": "~9.0.1",
|
|
73
73
|
"vscode-languageserver-textdocument": "~1.0.12",
|
|
74
|
-
"@typespec/bundler": "^0.
|
|
75
|
-
"@typespec/
|
|
76
|
-
"@typespec/
|
|
77
|
-
"@typespec/http": "^
|
|
78
|
-
"@typespec/
|
|
79
|
-
"@typespec/
|
|
80
|
-
"@typespec/protobuf": "^0.
|
|
81
|
-
"@typespec/rest": "^0.
|
|
82
|
-
"@typespec/versioning": "^0.
|
|
74
|
+
"@typespec/bundler": "^0.4.1",
|
|
75
|
+
"@typespec/html-program-viewer": "^0.71.0",
|
|
76
|
+
"@typespec/compiler": "^1.1.0",
|
|
77
|
+
"@typespec/http": "^1.1.0",
|
|
78
|
+
"@typespec/openapi3": "^1.1.0",
|
|
79
|
+
"@typespec/openapi": "^1.1.0",
|
|
80
|
+
"@typespec/protobuf": "^0.71.0",
|
|
81
|
+
"@typespec/rest": "^0.71.0",
|
|
82
|
+
"@typespec/versioning": "^0.71.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@babel/core": "^7.26.
|
|
86
|
-
"@playwright/test": "^1.
|
|
87
|
-
"@storybook/addon-actions": "^8.6.
|
|
88
|
-
"@storybook/cli": "^8.6.
|
|
89
|
-
"@storybook/react": "^8.6.
|
|
90
|
-
"@storybook/react-vite": "^8.6.
|
|
91
|
-
"@storybook/test": "^8.6.
|
|
92
|
-
"@storybook/types": "^8.6.
|
|
85
|
+
"@babel/core": "^7.26.10",
|
|
86
|
+
"@playwright/test": "^1.51.1",
|
|
87
|
+
"@storybook/addon-actions": "^8.6.7",
|
|
88
|
+
"@storybook/cli": "^8.6.7",
|
|
89
|
+
"@storybook/react": "^8.6.7",
|
|
90
|
+
"@storybook/react-vite": "^8.6.7",
|
|
91
|
+
"@storybook/test": "^8.6.7",
|
|
92
|
+
"@storybook/types": "^8.6.7",
|
|
93
93
|
"@types/debounce": "~1.2.4",
|
|
94
|
-
"@types/node": "~22.13.
|
|
94
|
+
"@types/node": "~22.13.11",
|
|
95
95
|
"@types/react": "~18.3.11",
|
|
96
96
|
"@types/react-dom": "~18.3.0",
|
|
97
97
|
"@types/swagger-ui-dist": "~3.30.5",
|
|
98
|
-
"@vitejs/plugin-react": "~4.
|
|
98
|
+
"@vitejs/plugin-react": "~4.4.1",
|
|
99
99
|
"c8": "^10.1.3",
|
|
100
100
|
"cross-env": "~7.0.3",
|
|
101
|
-
"es-module-shims": "~2.0
|
|
101
|
+
"es-module-shims": "~2.5.0",
|
|
102
102
|
"rimraf": "~6.0.1",
|
|
103
103
|
"typescript": "~5.8.2",
|
|
104
|
-
"vite": "^6.2.
|
|
105
|
-
"vite-plugin-checker": "^0.9.
|
|
104
|
+
"vite": "^6.2.7",
|
|
105
|
+
"vite-plugin-checker": "^0.9.1",
|
|
106
106
|
"vite-plugin-dts": "4.5.3",
|
|
107
|
-
"@typespec/
|
|
108
|
-
"@typespec/
|
|
107
|
+
"@typespec/react-components": "^0.57.0",
|
|
108
|
+
"@typespec/bundler": "^0.4.1"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"clean": "rimraf ./dist ./dist-dev ./temp ./typespecContents.json",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"watch": "vite build --watch",
|
|
114
114
|
"storybook": "sb dev",
|
|
115
115
|
"build: storybook": "sb build",
|
|
116
|
-
"preview": "
|
|
116
|
+
"preview": "pnpm build && vite preview",
|
|
117
117
|
"start": "vite",
|
|
118
118
|
"test": "echo 'no tests'",
|
|
119
119
|
"test:ci": "echo 'no tests'",
|