@typespec/playground 0.5.0-dev.4 → 0.5.0-dev.6
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/main.d.ts +0 -1
- package/dist/.storybook/preview.d.ts +0 -1
- package/dist/manifest-onl5D1yL-onl5D1yL.js +6 -0
- package/dist/react/index.js +356 -333
- package/dist/src/browser-host.d.ts +0 -1
- package/dist/src/editor-command-bar/editor-command-bar.d.ts +0 -1
- package/dist/src/manifest.d.ts +0 -1
- package/dist/src/react/context/playground-context.d.ts +0 -1
- package/dist/src/react/default-footer.d.ts +0 -1
- package/dist/src/react/diagnostic-list/diagnostic-list.d.ts +0 -1
- package/dist/src/react/editor.d.ts +0 -1
- package/dist/src/react/emitter-dropdown.d.ts +0 -1
- package/dist/src/react/file-output/file-output.d.ts +0 -1
- package/dist/src/react/footer/footer-item.d.ts +0 -1
- package/dist/src/react/footer/footer.d.ts +0 -1
- package/dist/src/react/output-tabs/output-tabs.d.ts +0 -1
- package/dist/src/react/output-view/file-viewer.d.ts +0 -1
- package/dist/src/react/output-view/output-view.d.ts +0 -1
- package/dist/src/react/output-view/type-graph-viewer.d.ts +0 -1
- package/dist/src/react/playground.d.ts +0 -1
- package/dist/src/react/problem-pane/header.d.ts +0 -1
- package/dist/src/react/problem-pane/problem-pane.d.ts +0 -1
- package/dist/src/react/samples-dropdown.d.ts +0 -1
- package/dist/src/react/settings/compiler-settings-dialog-button.d.ts +0 -1
- package/dist/src/react/settings/compiler-settings.d.ts +0 -1
- package/dist/src/react/settings/emitter-options-form.d.ts +0 -1
- package/dist/src/react/settings/linter-form.d.ts +0 -1
- package/dist/src/react/standalone.d.ts +0 -1
- package/dist/src/react/types.d.ts +0 -1
- package/dist/src/react/typespec-editor.d.ts +0 -1
- package/dist/src/react/viewers/index.d.ts +0 -1
- package/dist/src/react/viewers/swagger-ui.d.ts +0 -1
- package/dist/src/services.d.ts +0 -1
- package/dist/src/tooling/index.d.ts +0 -1
- package/dist/src/tooling/types.d.ts +0 -1
- package/dist/src/types.d.ts +0 -1
- package/dist/src/vite/index.d.ts +0 -1
- package/dist/src/vite/types.d.ts +0 -1
- package/dist/stories/footer/footer-item.stories.d.ts +0 -1
- package/dist/stories/footer/footer-version-item.stories.d.ts +0 -1
- package/dist/stories/footer/footer.stories.d.ts +0 -1
- package/dist/stories/playground.stories.d.ts +0 -1
- package/dist/vite.config.d.ts +1 -1
- package/package.json +29 -35
- package/dist/manifest-Cewnx59A-Cewnx59A.js +0 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CompilerOptions } from '@typespec/compiler';
|
|
2
2
|
import { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { BrowserHost, PlaygroundSample } from '../types.js';
|
|
4
|
-
|
|
5
4
|
export interface EditorCommandBarProps {
|
|
6
5
|
documentationUrl?: string;
|
|
7
6
|
saveCode: () => Promise<void> | void;
|
package/dist/src/manifest.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { PlaygroundEditorsOptions } from '../playground.js';
|
|
3
3
|
import { CompilationState, FileOutputViewer, ProgramViewer } from '../types.js';
|
|
4
|
-
|
|
5
4
|
export interface OutputViewProps {
|
|
6
5
|
compilationState: CompilationState | undefined;
|
|
7
6
|
editorOptions?: PlaygroundEditorsOptions;
|
|
@@ -2,7 +2,6 @@ import { CompilerOptions } from '@typespec/compiler';
|
|
|
2
2
|
import { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { BrowserHost, PlaygroundSample } from '../types.js';
|
|
4
4
|
import { FileOutputViewer, ProgramViewer } from './types.js';
|
|
5
|
-
|
|
6
5
|
export interface PlaygroundProps {
|
|
7
6
|
host: BrowserHost;
|
|
8
7
|
/** Default emitter if leaving this unmanaged. */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Diagnostic } from '@typespec/compiler';
|
|
2
2
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
3
3
|
import { CompilationState } from '../types.js';
|
|
4
|
-
|
|
5
4
|
export interface ProblemPaneProps {
|
|
6
5
|
readonly collapsed: boolean;
|
|
7
6
|
readonly compilationState: CompilationState | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { PlaygroundTspLibrary } from '../../types.js';
|
|
3
3
|
import { EmitterOptions } from '../types.js';
|
|
4
|
-
|
|
5
4
|
export interface EmitterOptionsFormProps {
|
|
6
5
|
readonly library: PlaygroundTspLibrary;
|
|
7
6
|
readonly options: EmitterOptions;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LinterRuleSet } from '@typespec/compiler';
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
3
|
import { PlaygroundTspLibrary } from '../../types.js';
|
|
4
|
-
|
|
5
4
|
export interface LinterFormProps {
|
|
6
5
|
libraries: Record<string, PlaygroundTspLibrary>;
|
|
7
6
|
linterRuleSet: LinterRuleSet;
|
|
@@ -2,7 +2,6 @@ import { FunctionComponent, ReactNode } from 'react';
|
|
|
2
2
|
import { LibraryImportOptions } from '../core.js';
|
|
3
3
|
import { UrlStateStorage } from '../state-storage.js';
|
|
4
4
|
import { PlaygroundProps, PlaygroundSaveData } from './playground.js';
|
|
5
|
-
|
|
6
5
|
export interface ReactPlaygroundConfig extends Partial<PlaygroundProps> {
|
|
7
6
|
readonly libraries: readonly string[];
|
|
8
7
|
readonly importConfig?: LibraryImportOptions;
|
|
@@ -2,7 +2,6 @@ import { editor } from 'monaco-editor';
|
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
3
|
import { EditorProps } from './editor.js';
|
|
4
4
|
import { PlaygroundEditorsOptions } from './playground.js';
|
|
5
|
-
|
|
6
5
|
export interface TypeSpecEditorProps extends Omit<EditorProps, "options"> {
|
|
7
6
|
options?: editor.IStandaloneEditorConstructionOptions;
|
|
8
7
|
}
|
package/dist/src/services.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DiagnosticTarget, NoTarget } from '@typespec/compiler';
|
|
2
2
|
import { BrowserHost } from './types.js';
|
|
3
|
-
|
|
4
3
|
import * as monaco from "monaco-editor";
|
|
5
4
|
export declare function registerMonacoLanguage(host: BrowserHost): Promise<void>;
|
|
6
5
|
export declare function getMonacoRange(typespecCompiler: typeof import("@typespec/compiler"), target: DiagnosticTarget | typeof NoTarget): monaco.IRange;
|
package/dist/src/types.d.ts
CHANGED
package/dist/src/vite/index.d.ts
CHANGED
package/dist/src/vite/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PlaygroundLinks } from '../react/playground.js';
|
|
2
2
|
import { PlaygroundSampleConfig } from '../tooling/types.js';
|
|
3
3
|
import { PlaygroundSample } from '../types.js';
|
|
4
|
-
|
|
5
4
|
export interface PlaygroundUserConfig extends Omit<PlaygroundConfig, "samples"> {
|
|
6
5
|
/**
|
|
7
6
|
* If the bundle library plugin should be loaded.
|
package/dist/vite.config.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/playground",
|
|
3
|
-
"version": "0.5.0-dev.
|
|
3
|
+
"version": "0.5.0-dev.6",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec playground UI components.",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -20,32 +20,26 @@
|
|
|
20
20
|
"main": "dist/src/index.js",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"development": "./src/index.ts",
|
|
24
23
|
"types": "./dist/src/index.d.ts",
|
|
25
24
|
"default": "./dist/index.js"
|
|
26
25
|
},
|
|
27
26
|
"./vite": {
|
|
28
|
-
"development": "./src/vite/index.ts",
|
|
29
27
|
"types": "./dist/src/vite/index.d.ts",
|
|
30
28
|
"default": "./dist/vite/index.js"
|
|
31
29
|
},
|
|
32
30
|
"./tooling": {
|
|
33
|
-
"development": "./src/tooling/index.ts",
|
|
34
31
|
"types": "./dist/src/tooling/index.d.ts",
|
|
35
32
|
"default": "./dist/tooling/index.js"
|
|
36
33
|
},
|
|
37
34
|
"./manifest": {
|
|
38
|
-
"development": "./src/manifest.ts",
|
|
39
35
|
"types": "./dist/src/manifest.d.ts",
|
|
40
36
|
"default": "./dist/manifest.js"
|
|
41
37
|
},
|
|
42
38
|
"./react": {
|
|
43
|
-
"development": "./src/react/index.ts",
|
|
44
39
|
"types": "./dist/src/react/index.d.ts",
|
|
45
40
|
"default": "./dist/react/index.js"
|
|
46
41
|
},
|
|
47
42
|
"./react/viewers": {
|
|
48
|
-
"development": "./src/react/viewers/index.tsx",
|
|
49
43
|
"types": "./dist/src/react/viewers/index.d.ts",
|
|
50
44
|
"default": "./dist/react/viewers/index.js"
|
|
51
45
|
},
|
|
@@ -61,19 +55,19 @@
|
|
|
61
55
|
"!dist/test/**"
|
|
62
56
|
],
|
|
63
57
|
"dependencies": {
|
|
64
|
-
"@fluentui/react-components": "~9.54.
|
|
65
|
-
"@fluentui/react-icons": "^2.0.
|
|
66
|
-
"@typespec/bundler": "~0.1.
|
|
67
|
-
"@typespec/compiler": "~0.
|
|
68
|
-
"@typespec/html-program-viewer": "~0.
|
|
69
|
-
"@typespec/http": "~0.
|
|
70
|
-
"@typespec/openapi": "~0.
|
|
71
|
-
"@typespec/openapi3": "~0.
|
|
72
|
-
"@typespec/protobuf": "~0.
|
|
73
|
-
"@typespec/rest": "~0.
|
|
74
|
-
"@typespec/versioning": "~0.
|
|
58
|
+
"@fluentui/react-components": "~9.54.16",
|
|
59
|
+
"@fluentui/react-icons": "^2.0.258",
|
|
60
|
+
"@typespec/bundler": "~0.1.7 || >=0.2.0-dev <0.2.0",
|
|
61
|
+
"@typespec/compiler": "~0.60.1 || >=0.61.0-dev <0.61.0",
|
|
62
|
+
"@typespec/html-program-viewer": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
63
|
+
"@typespec/http": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
64
|
+
"@typespec/openapi": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
65
|
+
"@typespec/openapi3": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
66
|
+
"@typespec/protobuf": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
67
|
+
"@typespec/rest": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
68
|
+
"@typespec/versioning": "~0.60.0 || >=0.61.0-dev <0.61.0",
|
|
75
69
|
"clsx": "^2.1.1",
|
|
76
|
-
"debounce": "~2.1.
|
|
70
|
+
"debounce": "~2.1.1",
|
|
77
71
|
"lzutf8": "0.6.3",
|
|
78
72
|
"monaco-editor": "~0.46.0",
|
|
79
73
|
"react": "~18.3.1",
|
|
@@ -81,32 +75,32 @@
|
|
|
81
75
|
"react-error-boundary": "^4.0.13",
|
|
82
76
|
"swagger-ui-dist": "^5.17.14",
|
|
83
77
|
"vscode-languageserver": "~9.0.1",
|
|
84
|
-
"vscode-languageserver-textdocument": "~1.0.
|
|
78
|
+
"vscode-languageserver-textdocument": "~1.0.12"
|
|
85
79
|
},
|
|
86
80
|
"devDependencies": {
|
|
87
|
-
"@babel/core": "^7.
|
|
88
|
-
"@playwright/test": "^1.
|
|
89
|
-
"@storybook/addon-actions": "^8.
|
|
90
|
-
"@storybook/cli": "^8.
|
|
91
|
-
"@storybook/react": "^8.
|
|
92
|
-
"@storybook/react-vite": "^8.
|
|
93
|
-
"@storybook/test": "^8.
|
|
94
|
-
"@storybook/types": "^8.
|
|
81
|
+
"@babel/core": "^7.25.2",
|
|
82
|
+
"@playwright/test": "^1.47.2",
|
|
83
|
+
"@storybook/addon-actions": "^8.3.3",
|
|
84
|
+
"@storybook/cli": "^8.3.3",
|
|
85
|
+
"@storybook/react": "^8.3.3",
|
|
86
|
+
"@storybook/react-vite": "^8.3.3",
|
|
87
|
+
"@storybook/test": "^8.3.3",
|
|
88
|
+
"@storybook/types": "^8.3.3",
|
|
95
89
|
"@types/debounce": "~1.2.4",
|
|
96
|
-
"@types/node": "~
|
|
97
|
-
"@types/react": "~18.3.
|
|
90
|
+
"@types/node": "~22.7.1",
|
|
91
|
+
"@types/react": "~18.3.9",
|
|
98
92
|
"@types/react-dom": "~18.3.0",
|
|
99
93
|
"@types/swagger-ui-dist": "~3.30.5",
|
|
100
|
-
"@typespec/bundler": "~0.1.
|
|
94
|
+
"@typespec/bundler": "~0.1.7 || >=0.2.0-dev <0.2.0",
|
|
101
95
|
"@vitejs/plugin-react": "~4.3.1",
|
|
102
96
|
"c8": "^10.1.2",
|
|
103
97
|
"cross-env": "~7.0.3",
|
|
104
98
|
"es-module-shims": "~1.10.0",
|
|
105
99
|
"rimraf": "~6.0.1",
|
|
106
|
-
"typescript": "~5.
|
|
107
|
-
"vite": "^5.
|
|
108
|
-
"vite-plugin-checker": "^0.
|
|
109
|
-
"vite-plugin-dts": "4.
|
|
100
|
+
"typescript": "~5.6.2",
|
|
101
|
+
"vite": "^5.4.8",
|
|
102
|
+
"vite-plugin-checker": "^0.8.0",
|
|
103
|
+
"vite-plugin-dts": "4.2.2",
|
|
110
104
|
"@typespec/react-components": "~0.57.0"
|
|
111
105
|
},
|
|
112
106
|
"peerDependencies": {},
|