@typespec/playground 0.3.0-dev.8 → 0.3.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/.storybook/main.d.ts +5 -0
- package/dist/.storybook/main.d.ts.map +1 -0
- package/dist/.storybook/preview.d.ts +5 -0
- package/dist/.storybook/preview.d.ts.map +1 -0
- package/dist/index.js +31 -34
- package/dist/react/index.js +1430 -783
- package/dist/react/viewers/index.js +8 -7
- package/dist/react-wrapper-CT3xxCSW.js +20 -0
- package/dist/src/browser-host.d.ts +3 -2
- package/dist/src/browser-host.d.ts.map +1 -1
- package/dist/src/core.d.ts +1 -1
- package/dist/src/core.d.ts.map +1 -1
- package/dist/src/editor-command-bar/editor-command-bar.d.ts +4 -3
- package/dist/src/editor-command-bar/editor-command-bar.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lsp/monaco-to-lsp.d.ts +1 -1
- package/dist/src/manifest.d.ts +2 -4
- package/dist/src/manifest.d.ts.map +1 -1
- package/dist/src/react/context/index.d.ts +1 -1
- package/dist/src/react/context/index.d.ts.map +1 -1
- package/dist/src/react/context/playground-context.d.ts +4 -4
- package/dist/src/react/context/playground-context.d.ts.map +1 -1
- package/dist/src/react/default-footer.d.ts +2 -1
- package/dist/src/react/default-footer.d.ts.map +1 -1
- package/dist/src/react/diagnostic-list/diagnostic-list.d.ts +3 -2
- package/dist/src/react/diagnostic-list/diagnostic-list.d.ts.map +1 -1
- package/dist/src/react/editor.d.ts +3 -2
- package/dist/src/react/editor.d.ts.map +1 -1
- package/dist/src/react/emitter-dropdown.d.ts +2 -1
- package/dist/src/react/emitter-dropdown.d.ts.map +1 -1
- package/dist/src/react/file-output/file-output.d.ts +6 -5
- package/dist/src/react/file-output/file-output.d.ts.map +1 -1
- package/dist/src/react/footer/footer-item.d.ts +2 -1
- package/dist/src/react/footer/footer-item.d.ts.map +1 -1
- package/dist/src/react/footer/footer-version-item.d.ts +1 -1
- package/dist/src/react/footer/footer.d.ts +2 -1
- package/dist/src/react/footer/footer.d.ts.map +1 -1
- package/dist/src/react/footer/index.d.ts +3 -3
- package/dist/src/react/footer/index.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +6 -6
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/output-tabs/output-tabs.d.ts +3 -7
- package/dist/src/react/output-tabs/output-tabs.d.ts.map +1 -1
- package/dist/src/react/output-view/file-viewer.d.ts +4 -0
- package/dist/src/react/output-view/file-viewer.d.ts.map +1 -0
- package/dist/src/react/output-view/output-view.d.ts +9 -4
- package/dist/src/react/output-view/output-view.d.ts.map +1 -1
- package/dist/src/react/output-view/type-graph-viewer.d.ts +4 -0
- package/dist/src/react/output-view/type-graph-viewer.d.ts.map +1 -0
- package/dist/src/react/playground.d.ts +8 -5
- package/dist/src/react/playground.d.ts.map +1 -1
- package/dist/src/react/problem-pane/header.d.ts +4 -3
- package/dist/src/react/problem-pane/header.d.ts.map +1 -1
- package/dist/src/react/problem-pane/index.d.ts +1 -1
- package/dist/src/react/problem-pane/problem-pane.d.ts +4 -3
- package/dist/src/react/problem-pane/problem-pane.d.ts.map +1 -1
- package/dist/src/react/samples-dropdown.d.ts +3 -2
- package/dist/src/react/samples-dropdown.d.ts.map +1 -1
- package/dist/src/react/settings/compiler-settings-dialog-button.d.ts +2 -1
- package/dist/src/react/settings/compiler-settings.d.ts +4 -3
- package/dist/src/react/settings/compiler-settings.d.ts.map +1 -1
- package/dist/src/react/settings/emitter-options-form.d.ts +4 -3
- package/dist/src/react/settings/emitter-options-form.d.ts.map +1 -1
- package/dist/src/react/settings/linter-form.d.ts +4 -3
- package/dist/src/react/settings/linter-form.d.ts.map +1 -1
- package/dist/src/react/split-pane/index.d.ts +1 -1
- package/dist/src/react/split-pane/index.d.ts.map +1 -1
- package/dist/src/react/split-pane/pane.d.ts +2 -1
- package/dist/src/react/split-pane/pane.d.ts.map +1 -1
- package/dist/src/react/split-pane/sash-content.d.ts +2 -1
- package/dist/src/react/split-pane/sash-content.d.ts.map +1 -1
- package/dist/src/react/split-pane/sash.d.ts +2 -1
- package/dist/src/react/split-pane/sash.d.ts.map +1 -1
- package/dist/src/react/split-pane/split-pane.d.ts +2 -1
- package/dist/src/react/split-pane/split-pane.d.ts.map +1 -1
- package/dist/src/react/standalone.d.ts +5 -4
- package/dist/src/react/standalone.d.ts.map +1 -1
- package/dist/src/react/types.d.ts +20 -8
- package/dist/src/react/types.d.ts.map +1 -1
- package/dist/src/react/typespec-editor.d.ts +5 -4
- package/dist/src/react/typespec-editor.d.ts.map +1 -1
- package/dist/src/react/viewers/index.d.ts +2 -1
- package/dist/src/react/viewers/index.d.ts.map +1 -1
- package/dist/src/react/viewers/swagger-ui.d.ts +2 -2
- package/dist/src/react/viewers/swagger-ui.d.ts.map +1 -1
- package/dist/src/services.d.ts +3 -2
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/tooling/index.d.ts +2 -1
- package/dist/src/tooling/index.d.ts.map +1 -1
- package/dist/src/tooling/types.d.ts +2 -1
- package/dist/src/tooling/types.d.ts.map +1 -1
- package/dist/src/types.d.ts +2 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/vite/index.d.ts +3 -2
- package/dist/src/vite/index.d.ts.map +1 -1
- package/dist/src/vite/types.d.ts +4 -3
- package/dist/src/vite/types.d.ts.map +1 -1
- package/dist/state-storage-BjOULkS3.js +654 -0
- package/dist/stories/footer/footer-item.stories.d.ts +9 -0
- package/dist/stories/footer/footer-item.stories.d.ts.map +1 -0
- package/dist/stories/footer/footer-version-item.stories.d.ts +9 -0
- package/dist/stories/footer/footer-version-item.stories.d.ts.map +1 -0
- package/dist/stories/footer/footer.stories.d.ts +9 -0
- package/dist/stories/footer/footer.stories.d.ts.map +1 -0
- package/dist/stories/playground.stories.d.ts +9 -0
- package/dist/stories/playground.stories.d.ts.map +1 -0
- package/dist/{index.css → style.css} +170 -163
- package/dist/tooling/index.js +18 -23
- package/dist/vite/index.js +74 -76
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/package.json +40 -39
- package/dist/index.js.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/viewers/index.js.map +0 -1
- package/dist/react-wrapper-DhFQQ2Do.js +0 -21
- package/dist/react-wrapper-DhFQQ2Do.js.map +0 -1
- package/dist/state-storage-BYkGBmXj.js +0 -657
- package/dist/state-storage-BYkGBmXj.js.map +0 -1
- package/dist/tooling/index.js.map +0 -1
- package/dist/vite/index.js.map +0 -1
|
@@ -2,18 +2,19 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { lazy, Suspense } from 'react';
|
|
3
3
|
import 'swagger-ui-dist/swagger-ui.css';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const style = {
|
|
6
|
+
"swagger-ui-container": "_swagger-ui-container_1c81n_1"
|
|
7
|
+
};
|
|
6
8
|
|
|
7
|
-
const LazySwaggerUI = lazy(() => import('../../react-wrapper-
|
|
9
|
+
const LazySwaggerUI = lazy(() => import('../../react-wrapper-CT3xxCSW.js'));
|
|
8
10
|
const SwaggerUI = (props) => {
|
|
9
|
-
|
|
11
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", {}), children: /* @__PURE__ */ jsx("div", { className: style["swagger-ui-container"], children: /* @__PURE__ */ jsx(LazySwaggerUI, { spec: props.spec }) }) });
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
const SwaggerUIViewer = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
key: "swaggerUI",
|
|
16
|
+
label: "Swagger UI",
|
|
17
|
+
render: ({ content }) => /* @__PURE__ */ jsx(SwaggerUI, { spec: content })
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
export { SwaggerUIViewer };
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useEffect } from 'react';
|
|
3
|
+
import SwaggerUIBundle from 'swagger-ui-dist/swagger-ui-es-bundle.js';
|
|
4
|
+
|
|
5
|
+
const reactWrapper = (props) => {
|
|
6
|
+
const uiRef = useRef(null);
|
|
7
|
+
const uiInstance = useRef(null);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (uiInstance.current === null) {
|
|
10
|
+
uiInstance.current = SwaggerUIBundle({
|
|
11
|
+
domNode: uiRef.current,
|
|
12
|
+
spec: {}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
uiInstance.current.specActions.updateSpec(props.spec);
|
|
16
|
+
}, [uiRef.current, props.spec]);
|
|
17
|
+
return /* @__PURE__ */ jsx("div", { ref: uiRef });
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { reactWrapper as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { LibraryImportOptions } from
|
|
2
|
-
import { BrowserHost } from
|
|
1
|
+
import { LibraryImportOptions } from './core.js';
|
|
2
|
+
import { BrowserHost } from './types.js';
|
|
3
|
+
|
|
3
4
|
export declare function resolveVirtualPath(path: string, ...paths: string[]): string;
|
|
4
5
|
/**
|
|
5
6
|
* Create the browser host from the list of libraries.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-host.d.ts","sourceRoot":"","sources":["../../src/browser-host.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"browser-host.d.ts","sourceRoot":"","sources":["../../src/browser-host.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAwB,MAAM,YAAY,CAAC;AAEpE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,UAElE;AAsKD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,aAAa,GAAE,oBAAyB,GACvC,OAAO,CAAC,WAAW,CAAC,CAoBtB"}
|
package/dist/src/core.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface LibraryImportOptions {
|
|
|
8
8
|
*/
|
|
9
9
|
useShim?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function importTypeSpecCompiler(config:
|
|
11
|
+
export declare function importTypeSpecCompiler(config: LibraryImportOptions): Promise<typeof import("@typespec/compiler")>;
|
|
12
12
|
/**
|
|
13
13
|
* @param name Import name.
|
|
14
14
|
* @returns Promise with the loaded module.
|
package/dist/src/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,cAAc,oBAAoB,CAAC,CAAC,CAE9C;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAIhG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CompilerOptions } from
|
|
2
|
-
import { FunctionComponent } from
|
|
3
|
-
import { BrowserHost, PlaygroundSample } from
|
|
1
|
+
import { CompilerOptions } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { BrowserHost, PlaygroundSample } from '../types.js';
|
|
4
|
+
|
|
4
5
|
export interface EditorCommandBarProps {
|
|
5
6
|
documentationUrl?: string;
|
|
6
7
|
saveCode: () => Promise<void> | void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-command-bar.d.ts","sourceRoot":"","sources":["../../../src/editor-command-bar/editor-command-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-command-bar.d.ts","sourceRoot":"","sources":["../../../src/editor-command-bar/editor-command-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAW,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGjE,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrC,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAE5D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC3C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D;AACD,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,CAAC,qBAAqB,CAyErE,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createBrowserHost } from
|
|
2
|
-
export { registerMonacoDefaultWorkersForVite } from
|
|
3
|
-
export { registerMonacoLanguage } from
|
|
4
|
-
export { StateStorage, UrlStateStorage
|
|
5
|
-
export type { BrowserHost, PlaygroundSample } from
|
|
1
|
+
export { createBrowserHost } from './browser-host.js';
|
|
2
|
+
export { registerMonacoDefaultWorkersForVite } from './monaco-worker.js';
|
|
3
|
+
export { registerMonacoLanguage } from './services.js';
|
|
4
|
+
export { createUrlStateStorage, type StateStorage, type UrlStateStorage } from './state-storage.js';
|
|
5
|
+
export type { BrowserHost, PlaygroundSample } from './types.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpG,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
1
2
|
import * as monaco from "monaco-editor";
|
|
2
3
|
import type * as lsp from "vscode-languageserver";
|
|
3
|
-
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
4
4
|
declare function textDocumentForModel(model: monaco.editor.IModel): TextDocument;
|
|
5
5
|
declare function position(pos: monaco.Position): lsp.Position;
|
|
6
6
|
declare function range(range: monaco.IRange): lsp.Range;
|
package/dist/src/manifest.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { PlaygroundConfig } from "../src/vite/types.js";
|
|
1
|
+
import { PlaygroundConfig } from '../src/vite/types.js';
|
|
2
|
+
|
|
5
3
|
declare const config: PlaygroundConfig;
|
|
6
4
|
export default config;
|
|
7
5
|
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,QAAA,MAAM,MAAM,EAAE,gBAA4B,CAAC;AAC3C,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PlaygroundContextProvider, usePlaygroundContext, type PlaygroundContext, } from './playground-context.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,iBAAiB,GACvB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BrowserHost } from '../../types.js';
|
|
2
|
+
|
|
3
3
|
export interface PlaygroundContext {
|
|
4
|
-
host: BrowserHost;
|
|
4
|
+
readonly host: BrowserHost;
|
|
5
5
|
}
|
|
6
|
-
export declare const PlaygroundContextProvider: import(
|
|
6
|
+
export declare const PlaygroundContextProvider: import('react').Provider<PlaygroundContext | undefined>;
|
|
7
7
|
export declare function usePlaygroundContext(): PlaygroundContext;
|
|
8
8
|
//# sourceMappingURL=playground-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground-context.d.ts","sourceRoot":"","sources":["../../../../src/react/context/playground-context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"playground-context.d.ts","sourceRoot":"","sources":["../../../../src/react/context/playground-context.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B;AAID,eAAO,MAAM,yBAAyB,yDAA6B,CAAC;AAEpE,wBAAgB,oBAAoB,IAAI,iBAAiB,CAMxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-footer.d.ts","sourceRoot":"","sources":["../../../src/react/default-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"default-footer.d.ts","sourceRoot":"","sources":["../../../src/react/default-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,eAAO,MAAM,aAAa,EAAE,iBAM3B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FunctionComponent } from
|
|
1
|
+
import { Diagnostic } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
3
4
|
export interface DiagnosticListProps {
|
|
4
5
|
readonly diagnostics: readonly Diagnostic[];
|
|
5
6
|
readonly onDiagnosticSelected?: (diagnostic: Diagnostic) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic-list.d.ts","sourceRoot":"","sources":["../../../../src/react/diagnostic-list/diagnostic-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"diagnostic-list.d.ts","sourceRoot":"","sources":["../../../../src/react/diagnostic-list/diagnostic-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGlE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAClE;AAED,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,CAqBjE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { editor } from
|
|
2
|
-
import { FunctionComponent } from
|
|
1
|
+
import { editor } from 'monaco-editor';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
3
4
|
export interface EditorProps {
|
|
4
5
|
model: editor.IModel;
|
|
5
6
|
actions?: editor.IActionDescriptor[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/react/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,EAAE,MAAM,OAAO,CAAC;AAE3E,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,iBAAiB,EAAE,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,oCAAoC,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC,qBAAqB,CAAC;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAyCjD,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAK5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter-dropdown.d.ts","sourceRoot":"","sources":["../../../src/react/emitter-dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"emitter-dropdown.d.ts","sourceRoot":"","sources":["../../../src/react/emitter-dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CA4BnE,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FunctionComponent } from
|
|
2
|
-
import { FileOutputViewer } from
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { FileOutputViewer } from '../types.js';
|
|
3
|
+
|
|
3
4
|
export interface FileOutputProps {
|
|
4
|
-
filename: string;
|
|
5
|
-
content: string;
|
|
6
|
-
viewers: FileOutputViewer
|
|
5
|
+
readonly filename: string;
|
|
6
|
+
readonly content: string;
|
|
7
|
+
readonly viewers: Record<string, FileOutputViewer>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Display a file output using different viewers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-output.d.ts","sourceRoot":"","sources":["../../../../src/react/file-output/file-output.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"file-output.d.ts","sourceRoot":"","sources":["../../../../src/react/file-output/file-output.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CA2CzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-item.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/footer-item.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"footer-item.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/footer-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CASzD,CAAC"}
|
|
@@ -16,5 +16,5 @@ export interface FooterVersionItemProps {
|
|
|
16
16
|
/** Provide a way to change the version of packages in the playground */
|
|
17
17
|
versionSelector?: VersionSelectorProps;
|
|
18
18
|
}
|
|
19
|
-
export declare const FooterVersionItem: import(
|
|
19
|
+
export declare const FooterVersionItem: import('react').MemoExoticComponent<({ versionSelector }: FooterVersionItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
20
20
|
//# sourceMappingURL=footer-version-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/footer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/footer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAEjD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FooterItem, FooterItemProps } from
|
|
2
|
-
export { FooterVersionItem, FooterVersionItemProps, VersionSelectorProps, VersionSelectorVersion, } from
|
|
3
|
-
export { Footer, FooterProps } from
|
|
1
|
+
export { FooterItem, type FooterItemProps } from './footer-item.js';
|
|
2
|
+
export { FooterVersionItem, type FooterVersionItemProps, type VersionSelectorProps, type VersionSelectorVersion, } from './footer-version-item.js';
|
|
3
|
+
export { Footer, type FooterProps } from './footer.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { usePlaygroundContext } from
|
|
2
|
-
export { Footer, FooterItem, FooterItemProps, FooterProps,
|
|
3
|
-
export { Playground } from
|
|
4
|
-
export type { PlaygroundProps, PlaygroundSaveData } from
|
|
5
|
-
export { StandalonePlayground, createReactPlayground, createStandalonePlaygroundStateStorage, renderReactPlayground, } from
|
|
6
|
-
export type * from
|
|
1
|
+
export { usePlaygroundContext } from './context/index.js';
|
|
2
|
+
export { Footer, FooterItem, FooterVersionItem, type FooterItemProps, type FooterProps, type FooterVersionItemProps, type VersionSelectorProps, type VersionSelectorVersion, } from './footer/index.js';
|
|
3
|
+
export { Playground } from './playground.js';
|
|
4
|
+
export type { PlaygroundProps, PlaygroundSaveData } from './playground.js';
|
|
5
|
+
export { StandalonePlayground, createReactPlayground, createStandalonePlaygroundStateStorage, renderReactPlayground, } from './standalone.js';
|
|
6
|
+
export type * from './types.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,MAAM,EACN,UAAU,EACV,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,sCAAsC,EACtC,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,mBAAmB,YAAY,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { FunctionComponent
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
name: string | ReactElement<any, any>;
|
|
5
|
-
align: "left" | "right";
|
|
6
|
-
}
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
|
|
7
3
|
export interface OutputTabsProps {
|
|
8
|
-
|
|
4
|
+
filenames: string[];
|
|
9
5
|
selected: string;
|
|
10
6
|
onSelect: (file: string) => void;
|
|
11
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-tabs.d.ts","sourceRoot":"","sources":["../../../../src/react/output-tabs/output-tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"output-tabs.d.ts","sourceRoot":"","sources":["../../../../src/react/output-tabs/output-tabs.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG5D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CA2BzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-viewer.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/file-viewer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAqB,aAAa,EAAE,MAAM,aAAa,CAAC;AAkDtF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,aAAa,CAU/E"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { FunctionComponent } from
|
|
2
|
-
import { PlaygroundEditorsOptions } from
|
|
3
|
-
import { CompilationState, FileOutputViewer } from
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { PlaygroundEditorsOptions } from '../playground.js';
|
|
3
|
+
import { CompilationState, FileOutputViewer, ProgramViewer } from '../types.js';
|
|
4
|
+
|
|
4
5
|
export interface OutputViewProps {
|
|
5
6
|
compilationState: CompilationState | undefined;
|
|
6
7
|
editorOptions?: PlaygroundEditorsOptions;
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* List of custom viewers to display the output. It can be file viewers or program viewers.
|
|
10
|
+
*/
|
|
11
|
+
viewers?: ProgramViewer[];
|
|
12
|
+
fileViewers?: FileOutputViewer[];
|
|
8
13
|
}
|
|
9
14
|
export declare const OutputView: FunctionComponent<OutputViewProps>;
|
|
10
15
|
//# sourceMappingURL=output-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-view.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/output-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"output-view.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/output-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAiB,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMpG,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAoBzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-graph-viewer.d.ts","sourceRoot":"","sources":["../../../../src/react/output-view/type-graph-viewer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,aAAa,CAAC;AAwBpE,eAAO,MAAM,eAAe,EAAE,aAK7B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CompilerOptions } from
|
|
2
|
-
import { FunctionComponent, ReactNode } from
|
|
3
|
-
import { BrowserHost, PlaygroundSample } from
|
|
4
|
-
import { FileOutputViewer } from
|
|
1
|
+
import { CompilerOptions } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
3
|
+
import { BrowserHost, PlaygroundSample } from '../types.js';
|
|
4
|
+
import { FileOutputViewer, ProgramViewer } from './types.js';
|
|
5
|
+
|
|
5
6
|
export interface PlaygroundProps {
|
|
6
7
|
host: BrowserHost;
|
|
7
8
|
/** Default emitter if leaving this unmanaged. */
|
|
@@ -31,7 +32,9 @@ export interface PlaygroundProps {
|
|
|
31
32
|
onFileBug?: () => void;
|
|
32
33
|
/** Playground links */
|
|
33
34
|
links?: PlaygroundLinks;
|
|
34
|
-
/** Custom viewers
|
|
35
|
+
/** Custom viewers to view the typespec program */
|
|
36
|
+
viewers?: ProgramViewer[];
|
|
37
|
+
/** Custom file viewers that enabled for certain emitters. Key of the map is emitter name */
|
|
35
38
|
emitterViewers?: Record<string, FileOutputViewer[]>;
|
|
36
39
|
onSave?: (value: PlaygroundSaveData) => void;
|
|
37
40
|
editorOptions?: PlaygroundEditorsOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../src/react/playground.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../src/react/playground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAUjE,OAAO,KAAK,EAAoB,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGpF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC;IAElB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,kCAAkC;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAEtC,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE5C,sBAAsB;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yDAAyD;IACzD,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAE7D,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE3C,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAElD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,uBAAuB;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC;IAExB,kDAAkD;IAClD,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAE1B,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAEpD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAE7C,aAAa,CAAC,EAAE,wBAAwB,CAAC;IAEzC;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAEhB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAEhB,uBAAuB;IACvB,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CA2MzD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { MouseEventHandler } from
|
|
2
|
-
import { CompilationState } from
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { CompilationState } from '../types.js';
|
|
3
|
+
|
|
3
4
|
export interface ProblemPaneHeaderProps {
|
|
4
5
|
compilationState: CompilationState | undefined;
|
|
5
6
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
6
7
|
collaped: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const ProblemPaneHeader: import(
|
|
9
|
+
export declare const ProblemPaneHeader: import('react').MemoExoticComponent<({ compilationState, ...props }: ProblemPaneHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
10
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/react/problem-pane/header.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/react/problem-pane/header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,iBAAiB,EAAkB,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC5C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,uEAAyC,sBAAsB,6CAoC3F,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ProblemPane } from
|
|
1
|
+
export { ProblemPane } from './problem-pane.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Diagnostic } from
|
|
2
|
-
import { FunctionComponent, MouseEventHandler } from
|
|
3
|
-
import { CompilationState } from
|
|
1
|
+
import { Diagnostic } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
3
|
+
import { CompilationState } from '../types.js';
|
|
4
|
+
|
|
4
5
|
export interface ProblemPaneProps {
|
|
5
6
|
readonly collapsed: boolean;
|
|
6
7
|
readonly compilationState: CompilationState | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problem-pane.d.ts","sourceRoot":"","sources":["../../../../src/react/problem-pane/problem-pane.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"problem-pane.d.ts","sourceRoot":"","sources":["../../../../src/react/problem-pane/problem-pane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC3D,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAClE;AACD,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAqB3D,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from
|
|
2
|
-
import { PlaygroundSample } from
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { PlaygroundSample } from '../types.js';
|
|
3
|
+
|
|
3
4
|
export interface SamplesDropdownProps {
|
|
4
5
|
samples: Record<string, PlaygroundSample>;
|
|
5
6
|
selectedSampleName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samples-dropdown.d.ts","sourceRoot":"","sources":["../../../src/react/samples-dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"samples-dropdown.d.ts","sourceRoot":"","sources":["../../../src/react/samples-dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CA8BnE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CompilerOptions } from
|
|
2
|
-
import { FunctionComponent } from
|
|
3
|
-
import { BrowserHost } from
|
|
1
|
+
import { CompilerOptions } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { BrowserHost } from '../../types.js';
|
|
4
|
+
|
|
4
5
|
export interface CompilerSettingsProps {
|
|
5
6
|
readonly host: BrowserHost;
|
|
6
7
|
readonly selectedEmitter: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-settings.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/compiler-settings.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"compiler-settings.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/compiler-settings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,CAAC,qBAAqB,CA+CrE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FunctionComponent } from
|
|
2
|
-
import { PlaygroundTspLibrary } from
|
|
3
|
-
import { EmitterOptions } from
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { PlaygroundTspLibrary } from '../../types.js';
|
|
3
|
+
import { EmitterOptions } from '../types.js';
|
|
4
|
+
|
|
4
5
|
export interface EmitterOptionsFormProps {
|
|
5
6
|
readonly library: PlaygroundTspLibrary;
|
|
6
7
|
readonly options: EmitterOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter-options-form.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/emitter-options-form.tsx"],"names":[],"mappings":"AAWA,OAAO,
|
|
1
|
+
{"version":3,"file":"emitter-options-form.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/emitter-options-form.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAAC,uBAAuB,CAuCzE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { LinterRuleSet } from
|
|
2
|
-
import { FunctionComponent } from
|
|
3
|
-
import { PlaygroundTspLibrary } from
|
|
1
|
+
import { LinterRuleSet } from '@typespec/compiler';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { PlaygroundTspLibrary } from '../../types.js';
|
|
4
|
+
|
|
4
5
|
export interface LinterFormProps {
|
|
5
6
|
libraries: Record<string, PlaygroundTspLibrary>;
|
|
6
7
|
linterRuleSet: LinterRuleSet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter-form.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/linter-form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAW,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"linter-form.d.ts","sourceRoot":"","sources":["../../../../src/react/settings/linter-form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAW,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAChD,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAuCzD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SplitPane, SplitPaneProps } from
|
|
1
|
+
export { SplitPane, type SplitPaneProps } from './split-pane.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/split-pane/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/split-pane/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|