@typespec/playground 0.3.0-dev.9 → 0.4.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.
Files changed (122) hide show
  1. package/dist/.storybook/main.d.ts +5 -0
  2. package/dist/.storybook/main.d.ts.map +1 -0
  3. package/dist/.storybook/preview.d.ts +5 -0
  4. package/dist/.storybook/preview.d.ts.map +1 -0
  5. package/dist/index.js +31 -34
  6. package/dist/react/index.js +1430 -783
  7. package/dist/react/viewers/index.js +8 -7
  8. package/dist/react-wrapper-CT3xxCSW.js +20 -0
  9. package/dist/src/browser-host.d.ts +3 -2
  10. package/dist/src/browser-host.d.ts.map +1 -1
  11. package/dist/src/core.d.ts +1 -1
  12. package/dist/src/core.d.ts.map +1 -1
  13. package/dist/src/editor-command-bar/editor-command-bar.d.ts +4 -3
  14. package/dist/src/editor-command-bar/editor-command-bar.d.ts.map +1 -1
  15. package/dist/src/index.d.ts +5 -5
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/lsp/monaco-to-lsp.d.ts +1 -1
  18. package/dist/src/manifest.d.ts +2 -4
  19. package/dist/src/manifest.d.ts.map +1 -1
  20. package/dist/src/react/context/index.d.ts +1 -1
  21. package/dist/src/react/context/index.d.ts.map +1 -1
  22. package/dist/src/react/context/playground-context.d.ts +4 -4
  23. package/dist/src/react/context/playground-context.d.ts.map +1 -1
  24. package/dist/src/react/default-footer.d.ts +2 -1
  25. package/dist/src/react/default-footer.d.ts.map +1 -1
  26. package/dist/src/react/diagnostic-list/diagnostic-list.d.ts +3 -2
  27. package/dist/src/react/diagnostic-list/diagnostic-list.d.ts.map +1 -1
  28. package/dist/src/react/editor.d.ts +3 -2
  29. package/dist/src/react/editor.d.ts.map +1 -1
  30. package/dist/src/react/emitter-dropdown.d.ts +2 -1
  31. package/dist/src/react/emitter-dropdown.d.ts.map +1 -1
  32. package/dist/src/react/file-output/file-output.d.ts +6 -5
  33. package/dist/src/react/file-output/file-output.d.ts.map +1 -1
  34. package/dist/src/react/footer/footer-item.d.ts +2 -1
  35. package/dist/src/react/footer/footer-item.d.ts.map +1 -1
  36. package/dist/src/react/footer/footer-version-item.d.ts +1 -1
  37. package/dist/src/react/footer/footer.d.ts +2 -1
  38. package/dist/src/react/footer/footer.d.ts.map +1 -1
  39. package/dist/src/react/footer/index.d.ts +3 -3
  40. package/dist/src/react/footer/index.d.ts.map +1 -1
  41. package/dist/src/react/index.d.ts +6 -6
  42. package/dist/src/react/index.d.ts.map +1 -1
  43. package/dist/src/react/output-tabs/output-tabs.d.ts +3 -7
  44. package/dist/src/react/output-tabs/output-tabs.d.ts.map +1 -1
  45. package/dist/src/react/output-view/file-viewer.d.ts +4 -0
  46. package/dist/src/react/output-view/file-viewer.d.ts.map +1 -0
  47. package/dist/src/react/output-view/output-view.d.ts +9 -4
  48. package/dist/src/react/output-view/output-view.d.ts.map +1 -1
  49. package/dist/src/react/output-view/type-graph-viewer.d.ts +4 -0
  50. package/dist/src/react/output-view/type-graph-viewer.d.ts.map +1 -0
  51. package/dist/src/react/playground.d.ts +8 -5
  52. package/dist/src/react/playground.d.ts.map +1 -1
  53. package/dist/src/react/problem-pane/header.d.ts +4 -3
  54. package/dist/src/react/problem-pane/header.d.ts.map +1 -1
  55. package/dist/src/react/problem-pane/index.d.ts +1 -1
  56. package/dist/src/react/problem-pane/problem-pane.d.ts +4 -3
  57. package/dist/src/react/problem-pane/problem-pane.d.ts.map +1 -1
  58. package/dist/src/react/samples-dropdown.d.ts +3 -2
  59. package/dist/src/react/samples-dropdown.d.ts.map +1 -1
  60. package/dist/src/react/settings/compiler-settings-dialog-button.d.ts +2 -1
  61. package/dist/src/react/settings/compiler-settings.d.ts +4 -3
  62. package/dist/src/react/settings/compiler-settings.d.ts.map +1 -1
  63. package/dist/src/react/settings/emitter-options-form.d.ts +4 -3
  64. package/dist/src/react/settings/emitter-options-form.d.ts.map +1 -1
  65. package/dist/src/react/settings/linter-form.d.ts +4 -3
  66. package/dist/src/react/settings/linter-form.d.ts.map +1 -1
  67. package/dist/src/react/split-pane/index.d.ts +1 -1
  68. package/dist/src/react/split-pane/index.d.ts.map +1 -1
  69. package/dist/src/react/split-pane/pane.d.ts +2 -1
  70. package/dist/src/react/split-pane/pane.d.ts.map +1 -1
  71. package/dist/src/react/split-pane/sash-content.d.ts +2 -1
  72. package/dist/src/react/split-pane/sash-content.d.ts.map +1 -1
  73. package/dist/src/react/split-pane/sash.d.ts +2 -1
  74. package/dist/src/react/split-pane/sash.d.ts.map +1 -1
  75. package/dist/src/react/split-pane/split-pane.d.ts +2 -1
  76. package/dist/src/react/split-pane/split-pane.d.ts.map +1 -1
  77. package/dist/src/react/standalone.d.ts +5 -4
  78. package/dist/src/react/standalone.d.ts.map +1 -1
  79. package/dist/src/react/types.d.ts +20 -8
  80. package/dist/src/react/types.d.ts.map +1 -1
  81. package/dist/src/react/typespec-editor.d.ts +5 -4
  82. package/dist/src/react/typespec-editor.d.ts.map +1 -1
  83. package/dist/src/react/viewers/index.d.ts +2 -1
  84. package/dist/src/react/viewers/index.d.ts.map +1 -1
  85. package/dist/src/react/viewers/swagger-ui.d.ts +2 -2
  86. package/dist/src/react/viewers/swagger-ui.d.ts.map +1 -1
  87. package/dist/src/services.d.ts +3 -2
  88. package/dist/src/services.d.ts.map +1 -1
  89. package/dist/src/tooling/index.d.ts +2 -1
  90. package/dist/src/tooling/index.d.ts.map +1 -1
  91. package/dist/src/tooling/types.d.ts +2 -1
  92. package/dist/src/tooling/types.d.ts.map +1 -1
  93. package/dist/src/types.d.ts +2 -1
  94. package/dist/src/types.d.ts.map +1 -1
  95. package/dist/src/vite/index.d.ts +3 -2
  96. package/dist/src/vite/index.d.ts.map +1 -1
  97. package/dist/src/vite/types.d.ts +4 -3
  98. package/dist/src/vite/types.d.ts.map +1 -1
  99. package/dist/state-storage-BjOULkS3.js +654 -0
  100. package/dist/stories/footer/footer-item.stories.d.ts +9 -0
  101. package/dist/stories/footer/footer-item.stories.d.ts.map +1 -0
  102. package/dist/stories/footer/footer-version-item.stories.d.ts +9 -0
  103. package/dist/stories/footer/footer-version-item.stories.d.ts.map +1 -0
  104. package/dist/stories/footer/footer.stories.d.ts +9 -0
  105. package/dist/stories/footer/footer.stories.d.ts.map +1 -0
  106. package/dist/stories/playground.stories.d.ts +9 -0
  107. package/dist/stories/playground.stories.d.ts.map +1 -0
  108. package/dist/{index.css → style.css} +168 -161
  109. package/dist/tooling/index.js +18 -23
  110. package/dist/vite/index.js +74 -76
  111. package/dist/vite.config.d.ts +3 -0
  112. package/dist/vite.config.d.ts.map +1 -0
  113. package/package.json +38 -36
  114. package/dist/index.js.map +0 -1
  115. package/dist/react/index.js.map +0 -1
  116. package/dist/react/viewers/index.js.map +0 -1
  117. package/dist/react-wrapper-uSmRU7Jg.js +0 -21
  118. package/dist/react-wrapper-uSmRU7Jg.js.map +0 -1
  119. package/dist/state-storage-CObxFEXn.js +0 -657
  120. package/dist/state-storage-CObxFEXn.js.map +0 -1
  121. package/dist/tooling/index.js.map +0 -1
  122. 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
- var style = {"swagger-ui-container":"swagger-ui-module_swagger-ui-container__6pJ6L"};
5
+ const style = {
6
+ "swagger-ui-container": "_swagger-ui-container_1c81n_1"
7
+ };
6
8
 
7
- const LazySwaggerUI = lazy(() => import('../../react-wrapper-uSmRU7Jg.js'));
9
+ const LazySwaggerUI = lazy(() => import('../../react-wrapper-CT3xxCSW.js'));
8
10
  const SwaggerUI = (props) => {
9
- return (jsx(Suspense, { fallback: jsx("div", {}), children: jsx("div", { className: style["swagger-ui-container"], children: jsx(LazySwaggerUI, { spec: props.spec }) }) }));
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
- key: "swaggerUI",
14
- label: "Swagger UI",
15
- render: ({ content }) => jsx(SwaggerUI, { spec: content }),
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 "./core.js";
2
- import { BrowserHost } from "./types.js";
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,EAAE,oBAAoB,EAAyC,MAAM,WAAW,CAAC;AACxF,OAAO,EAAE,WAAW,EAAwB,MAAM,YAAY,CAAC;AAE/D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,UAElE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,aAAa,GAAE,oBAAyB,GACvC,OAAO,CAAC,WAAW,CAAC,CAiKtB"}
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"}
@@ -8,7 +8,7 @@ export interface LibraryImportOptions {
8
8
  */
9
9
  useShim?: boolean;
10
10
  }
11
- export declare function importTypeSpecCompiler(config: any): Promise<typeof import("@typespec/compiler")>;
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.
@@ -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,GAAG,GACV,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
+ {"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 "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- import { BrowserHost, PlaygroundSample } from "../types.js";
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;AACrD,OAAO,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG5D,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"}
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"}
@@ -1,6 +1,6 @@
1
- export { createBrowserHost } from "./browser-host.js";
2
- export { registerMonacoDefaultWorkersForVite } from "./monaco-worker.js";
3
- export { registerMonacoLanguage } from "./services.js";
4
- export { StateStorage, UrlStateStorage, createUrlStateStorage } from "./state-storage.js";
5
- export type { BrowserHost, PlaygroundSample } from "./types.js";
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
@@ -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,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC1F,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
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;
@@ -1,7 +1,5 @@
1
- /**
2
- * THIS FILE IS MEANT TO BE STUBBED using the manifest plugin.
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;AAExD,QAAA,MAAM,MAAM,EAAE,gBAA4B,CAAC;AAC3C,eAAe,MAAM,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 { PlaygroundContext, PlaygroundContextProvider, usePlaygroundContext, } from "./playground-context.js";
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,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC"}
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
- /// <reference types="react" resolution-mode="require"/>
2
- import { BrowserHost } from "../../types.js";
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("react").Provider<PlaygroundContext | undefined>;
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;AAE7C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;CACnB;AAID,eAAO,MAAM,yBAAyB,yDAA6B,CAAC;AAEpE,wBAAgB,oBAAoB,IAAI,iBAAiB,CAMxD"}
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,3 +1,4 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent } from 'react';
2
+
2
3
  export declare const DefaultFooter: FunctionComponent;
3
4
  //# sourceMappingURL=default-footer.d.ts.map
@@ -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;AAI1C,eAAO,MAAM,aAAa,EAAE,iBAM3B,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 { type Diagnostic } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
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,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAG7D,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
+ {"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 "monaco-editor";
2
- import { FunctionComponent } from "react";
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,EAAE,MAAM,EAAoB,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAEtE,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
+ {"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,4 +1,5 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent } from 'react';
2
+
2
3
  export type EmitterDropdownProps = {
3
4
  emitters: string[];
4
5
  selectedEmitter: string;
@@ -1 +1 @@
1
- {"version":3,"file":"emitter-dropdown.d.ts","sourceRoot":"","sources":["../../../src/react/emitter-dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAEvD,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
+ {"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 "react";
2
- import { FileOutputViewer } from "../types.js";
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,EAAE,iBAAiB,EAAkC,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAkCzD,CAAC"}
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,4 +1,5 @@
1
- import { FunctionComponent, ReactNode } from "react";
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+
2
3
  export interface FooterItemProps {
3
4
  className?: string;
4
5
  link?: string;
@@ -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;AAGrD,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"}
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("react").MemoExoticComponent<({ versionSelector }: FooterVersionItemProps) => import("react/jsx-runtime").JSX.Element>;
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,4 +1,5 @@
1
- import { FunctionComponent, ReactNode } from "react";
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+
2
3
  export interface FooterProps {
3
4
  className?: string;
4
5
  children: ReactNode;
@@ -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;AAGrD,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
+ {"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 "./footer-item.js";
2
- export { FooterVersionItem, FooterVersionItemProps, VersionSelectorProps, VersionSelectorVersion, } from "./footer-version-item.js";
3
- export { Footer, FooterProps } from "./footer.js";
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;AAC/D,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,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 "./context/index.js";
2
- export { Footer, FooterItem, FooterItemProps, FooterProps, FooterVersionItem, FooterVersionItemProps, VersionSelectorProps, 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";
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,EACf,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,GACvB,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
+ {"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, ReactElement } from "react";
2
- export interface OutputTab {
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
- tabs: OutputTab[];
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":"AASA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;AAGrE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAqCzD,CAAC"}
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,4 @@
1
+ import { FileOutputViewer, ProgramViewer } from '../types.js';
2
+
3
+ export declare function createFileViewer(fileViewers: FileOutputViewer[]): ProgramViewer;
4
+ //# sourceMappingURL=file-viewer.d.ts.map
@@ -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 "react";
2
- import { PlaygroundEditorsOptions } from "../playground.js";
3
- import { CompilationState, FileOutputViewer } from "../types.js";
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
- viewers?: FileOutputViewer[];
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":"AAGA,OAAO,EAAE,iBAAiB,EAA6C,MAAM,OAAO,CAAC;AAGrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAiB,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAI7F,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAkBzD,CAAC"}
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,4 @@
1
+ import { ProgramViewer } from '../types.js';
2
+
3
+ export declare const TypeGraphViewer: ProgramViewer;
4
+ //# sourceMappingURL=type-graph-viewer.d.ts.map
@@ -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 "@typespec/compiler";
2
- import { FunctionComponent, ReactNode } from "react";
3
- import { BrowserHost, PlaygroundSample } from "../types.js";
4
- import { FileOutputViewer } from "./types.js";
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 that enabled for certain emitters. Key of the map is emitter name */
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;AAGjE,OAAO,EACL,iBAAiB,EACjB,SAAS,EAMV,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAU5D,OAAO,EAAoB,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGhE,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,uFAAuF;IACvF,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,CA0MzD,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 "react";
2
- import { CompilationState } from "../types.js";
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("react").MemoExoticComponent<({ compilationState, ...props }: ProblemPaneHeaderProps) => import("react/jsx-runtime").JSX.Element>;
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,EAAE,iBAAiB,EAAmB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,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
+ {"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 "./problem-pane.js";
1
+ export { ProblemPane } from './problem-pane.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,7 @@
1
- import { Diagnostic } from "@typespec/compiler";
2
- import { FunctionComponent, MouseEventHandler } from "react";
3
- import { CompilationState } from "../types.js";
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;AAChD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/C,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
+ {"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 "react";
2
- import { PlaygroundSample } from "../types.js";
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,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,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
+ {"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,4 +1,5 @@
1
- import type { CompilerOptions } from "@typespec/compiler";
1
+ import { CompilerOptions } from '@typespec/compiler';
2
+
2
3
  export interface CompilerSettingsDialogButtonProps {
3
4
  selectedEmitter: string;
4
5
  compilerOptions: CompilerOptions;
@@ -1,6 +1,7 @@
1
- import { CompilerOptions } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- import { BrowserHost } from "../../types.js";
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;AACpE,OAAO,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,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
+ {"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 "react";
2
- import { PlaygroundTspLibrary } from "../../types.js";
3
- import { EmitterOptions } from "../types.js";
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,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,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
+ {"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 "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- import { PlaygroundTspLibrary } from "../../types.js";
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;AAC5D,OAAO,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,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
+ {"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 "./split-pane.js";
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"}