@typespec/playground 0.9.0-dev.2 → 0.9.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.
- package/dist/.storybook/preview.d.ts +1 -1
- package/dist/.storybook/preview.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +2 -1
- package/dist/{services-CXtSSQdQ.js → services-BOARIFqT.js} +1 -1
- package/dist/src/react/editor.d.ts.map +1 -1
- package/dist/stories/footer/footer-item.stories.d.ts +1 -1
- package/dist/stories/footer/footer-item.stories.d.ts.map +1 -1
- package/dist/stories/footer/footer-version-item.stories.d.ts +1 -1
- package/dist/stories/footer/footer-version-item.stories.d.ts.map +1 -1
- package/dist/stories/footer/footer.stories.d.ts +1 -1
- package/dist/stories/footer/footer.stories.d.ts.map +1 -1
- package/dist/stories/playground.stories.d.ts +1 -1
- package/dist/stories/playground.stories.d.ts.map +1 -1
- package/package.json +23 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,QAAA,MAAM,OAAO,EAAE,OAUd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
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';
|
|
@@ -30,6 +30,7 @@ const Editor = ({ model, options, actions, onMount }) => {
|
|
|
30
30
|
editorRef.current = editor.create(editorContainerRef.current, {
|
|
31
31
|
model,
|
|
32
32
|
automaticLayout: true,
|
|
33
|
+
fixedOverflowWidgets: true,
|
|
33
34
|
...options
|
|
34
35
|
});
|
|
35
36
|
onMount?.({ editor: editorRef.current });
|
|
@@ -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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/react/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAA8B,KAAK,iBAAiB,EAA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AAM,CAAC,MAAM,CAK5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-item.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer-item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"footer-item.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer-item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAU,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAUjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-version-item.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer-version-item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"footer-version-item.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer-version-item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAEL,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAoBzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAUxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC;AAaF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"footer.stories.d.ts","sourceRoot":"","sources":["../../../stories/footer/footer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAiC,MAAM,iCAAiC,CAAC;AAoBxF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAU7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAShC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../stories/playground.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../stories/playground.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAQxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAIjC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAqBF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/playground",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.4",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec playground UI components.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -59,24 +59,24 @@
|
|
|
59
59
|
"!dist/test/**"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fluentui/react-components": "~9.
|
|
62
|
+
"@fluentui/react-components": "~9.66.1",
|
|
63
63
|
"@fluentui/react-icons": "^2.0.292",
|
|
64
|
-
"@typespec/bundler": "^0.
|
|
65
|
-
"@typespec/compiler": "^
|
|
66
|
-
"@typespec/html-program-viewer": "^0.
|
|
67
|
-
"@typespec/http": "^
|
|
68
|
-
"@typespec/openapi": "^
|
|
69
|
-
"@typespec/openapi3": "^
|
|
70
|
-
"@typespec/protobuf": "^0.
|
|
71
|
-
"@typespec/rest": "^0.
|
|
72
|
-
"@typespec/versioning": "^0.
|
|
64
|
+
"@typespec/bundler": "^0.4.1 || >=0.5.0-dev <0.5.0",
|
|
65
|
+
"@typespec/compiler": "^1.1.0",
|
|
66
|
+
"@typespec/html-program-viewer": "^0.71.0 || >=0.72.0-dev <0.72.0",
|
|
67
|
+
"@typespec/http": "^1.1.0",
|
|
68
|
+
"@typespec/openapi": "^1.1.0",
|
|
69
|
+
"@typespec/openapi3": "^1.1.0",
|
|
70
|
+
"@typespec/protobuf": "^0.71.0 || >=0.72.0-dev <0.72.0",
|
|
71
|
+
"@typespec/rest": "^0.71.0 || >=0.72.0-dev <0.72.0",
|
|
72
|
+
"@typespec/versioning": "^0.71.0 || >=0.72.0-dev <0.72.0",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
74
74
|
"debounce": "~2.2.0",
|
|
75
75
|
"lzutf8": "0.6.3",
|
|
76
76
|
"monaco-editor": "~0.52.2",
|
|
77
77
|
"react": "~18.3.1",
|
|
78
78
|
"react-dom": "~18.3.1",
|
|
79
|
-
"react-error-boundary": "^
|
|
79
|
+
"react-error-boundary": "^6.0.0",
|
|
80
80
|
"swagger-ui-dist": "^5.20.1",
|
|
81
81
|
"vscode-languageserver": "~9.0.1",
|
|
82
82
|
"vscode-languageserver-textdocument": "~1.0.12"
|
|
@@ -84,27 +84,24 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@babel/core": "^7.26.10",
|
|
86
86
|
"@playwright/test": "^1.51.1",
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@storybook/
|
|
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",
|
|
87
|
+
"@storybook/cli": "^9.0.12",
|
|
88
|
+
"@storybook/react-vite": "^9.0.12",
|
|
93
89
|
"@types/debounce": "~1.2.4",
|
|
94
|
-
"@types/node": "~
|
|
90
|
+
"@types/node": "~24.0.3",
|
|
95
91
|
"@types/react": "~18.3.11",
|
|
96
92
|
"@types/react-dom": "~18.3.0",
|
|
97
93
|
"@types/swagger-ui-dist": "~3.30.5",
|
|
98
|
-
"@typespec/bundler": "^0.
|
|
99
|
-
"@vitejs/plugin-react": "~4.
|
|
94
|
+
"@typespec/bundler": "^0.4.1 || >=0.5.0-dev <0.5.0",
|
|
95
|
+
"@vitejs/plugin-react": "~4.4.1",
|
|
100
96
|
"c8": "^10.1.3",
|
|
101
97
|
"cross-env": "~7.0.3",
|
|
102
|
-
"es-module-shims": "~2.0
|
|
98
|
+
"es-module-shims": "~2.6.0",
|
|
103
99
|
"rimraf": "~6.0.1",
|
|
100
|
+
"storybook": "^9.0.12",
|
|
104
101
|
"typescript": "~5.8.2",
|
|
105
|
-
"vite": "^6.2.
|
|
102
|
+
"vite": "^6.2.7",
|
|
106
103
|
"vite-plugin-checker": "^0.9.1",
|
|
107
|
-
"vite-plugin-dts": "4.5.
|
|
104
|
+
"vite-plugin-dts": "4.5.4",
|
|
108
105
|
"@typespec/react-components": "^0.57.0"
|
|
109
106
|
},
|
|
110
107
|
"peerDependencies": {},
|
|
@@ -113,8 +110,8 @@
|
|
|
113
110
|
"build": "vite build",
|
|
114
111
|
"watch": "vite build --watch",
|
|
115
112
|
"storybook": "sb dev",
|
|
116
|
-
"build:
|
|
117
|
-
"preview": "
|
|
113
|
+
"build:storybook": "sb build",
|
|
114
|
+
"preview": "pnpm build && vite preview",
|
|
118
115
|
"start": "vite",
|
|
119
116
|
"test": "echo 'no tests'",
|
|
120
117
|
"test:ci": "echo 'no tests'",
|