@typespec/playground 0.5.0-dev.9 → 0.6.0-dev.0
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/react/index.js +4 -4
- package/package.json +11 -11
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 {
|
|
8
|
+
import { b as resolveVirtualPath, g as getMonacoRange, a as createUrlStateStorage, c as createBrowserHost, r as registerMonacoLanguage } from '../state-storage-DqG2VXgn.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';
|
|
@@ -2804,7 +2804,7 @@ const verticalPaneSizesConst = {
|
|
|
2804
2804
|
collapsed: [void 0, 30],
|
|
2805
2805
|
expanded: [void 0, 200]
|
|
2806
2806
|
};
|
|
2807
|
-
const outputDir = "
|
|
2807
|
+
const outputDir = resolveVirtualPath("tsp-output");
|
|
2808
2808
|
async function compile(host, content, selectedEmitter, options) {
|
|
2809
2809
|
await host.writeFile("main.tsp", content);
|
|
2810
2810
|
await emptyOutputDir(host);
|
|
@@ -2816,10 +2816,10 @@ async function compile(host, content, selectedEmitter, options) {
|
|
|
2816
2816
|
...options.options,
|
|
2817
2817
|
[selectedEmitter]: {
|
|
2818
2818
|
...options.options?.[selectedEmitter],
|
|
2819
|
-
"emitter-output-dir":
|
|
2819
|
+
"emitter-output-dir": outputDir
|
|
2820
2820
|
}
|
|
2821
2821
|
},
|
|
2822
|
-
outputDir
|
|
2822
|
+
outputDir,
|
|
2823
2823
|
emit: selectedEmitter ? [selectedEmitter] : []
|
|
2824
2824
|
});
|
|
2825
2825
|
const outputFiles = await findOutputFiles(host);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/playground",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-dev.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec playground UI components.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@fluentui/react-components": "~9.54.16",
|
|
59
59
|
"@fluentui/react-icons": "^2.0.258",
|
|
60
|
-
"@typespec/bundler": "~0.1.
|
|
61
|
-
"@typespec/compiler": "~0.
|
|
62
|
-
"@typespec/html-program-viewer": "~0.
|
|
63
|
-
"@typespec/http": "~0.
|
|
64
|
-
"@typespec/openapi": "~0.
|
|
65
|
-
"@typespec/openapi3": "~0.
|
|
66
|
-
"@typespec/protobuf": "~0.
|
|
67
|
-
"@typespec/rest": "~0.
|
|
68
|
-
"@typespec/versioning": "~0.
|
|
60
|
+
"@typespec/bundler": "~0.1.8 || >=0.2.0-dev <0.2.0",
|
|
61
|
+
"@typespec/compiler": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
62
|
+
"@typespec/html-program-viewer": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
63
|
+
"@typespec/http": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
64
|
+
"@typespec/openapi": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
65
|
+
"@typespec/openapi3": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
66
|
+
"@typespec/protobuf": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
67
|
+
"@typespec/rest": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
68
|
+
"@typespec/versioning": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"debounce": "~2.1.1",
|
|
71
71
|
"lzutf8": "0.6.3",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/react": "~18.3.9",
|
|
92
92
|
"@types/react-dom": "~18.3.0",
|
|
93
93
|
"@types/swagger-ui-dist": "~3.30.5",
|
|
94
|
-
"@typespec/bundler": "~0.1.
|
|
94
|
+
"@typespec/bundler": "~0.1.8 || >=0.2.0-dev <0.2.0",
|
|
95
95
|
"@vitejs/plugin-react": "~4.3.1",
|
|
96
96
|
"c8": "^10.1.2",
|
|
97
97
|
"cross-env": "~7.0.3",
|