@typespec/playground 0.4.0 → 0.4.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAmC9C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,iBA4T7D;AAED,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,cAAc,oBAAoB,CAAC,EACrD,MAAM,EAAE,gBAAgB,GAAG,OAAO,QAAQ,GACzC,MAAM,CAAC,MAAM,CAkBf"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAmC9C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,iBA+T7D;AAED,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,cAAc,oBAAoB,CAAC,EACrD,MAAM,EAAE,gBAAgB,GAAG,OAAO,QAAQ,GACzC,MAAM,CAAC,MAAM,CAkBf"}
@@ -286,6 +286,9 @@ function getTypeSpecLanguageConfiguration() {
286
286
  };
287
287
  }
288
288
  async function registerMonacoLanguage(host) {
289
+ if (monaco.languages.getLanguages().some((x) => x.id === "typespec")) {
290
+ return;
291
+ }
289
292
  monaco.languages.register({ id: "typespec", extensions: [".tsp"] });
290
293
  monaco.languages.setLanguageConfiguration("typespec", getTypeSpecLanguageConfiguration());
291
294
  const serverHost = {
package/dist/style.css CHANGED
@@ -1,19 +1,19 @@
1
- ._footer_cn8nf_1 {
1
+ ._footer_e6dic_1 {
2
2
  grid-area: footer;
3
3
  display: flex;
4
4
  font-size: 14px;
5
5
 
6
- background-color: #007acc;
6
+ background-color: #0073c1;
7
7
  }
8
8
 
9
- ._footer-item_cn8nf_9 {
9
+ ._footer-item_e6dic_9 {
10
10
  text-decoration: none;
11
11
  color: #fefefe;
12
12
  border-right: 1px solid #d5d5d5;
13
13
  padding: 0 5px;
14
14
  }
15
15
 
16
- ._footer-item_cn8nf_9:hover {
16
+ ._footer-item_e6dic_9:hover {
17
17
  background-color: #063a5c;
18
18
  }
19
19
  ._version-item_1c15n_1 {
@@ -1,3 +1,3 @@
1
- declare const _default: import('vite').UserConfig;
1
+ declare const _default: any;
2
2
  export default _default;
3
3
  //# sourceMappingURL=vite.config.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/playground",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec playground UI components.",
6
6
  "homepage": "https://typespec.io",
@@ -20,26 +20,32 @@
20
20
  "main": "dist/src/index.js",
21
21
  "exports": {
22
22
  ".": {
23
+ "development": "./src/index.ts",
23
24
  "types": "./dist/src/index.d.ts",
24
25
  "default": "./dist/index.js"
25
26
  },
26
27
  "./vite": {
28
+ "development": "./src/vite/index.ts",
27
29
  "types": "./dist/src/vite/index.d.ts",
28
30
  "default": "./dist/vite/index.js"
29
31
  },
30
32
  "./tooling": {
33
+ "development": "./src/tooling/index.ts",
31
34
  "types": "./dist/src/tooling/index.d.ts",
32
35
  "default": "./dist/tooling/index.js"
33
36
  },
34
37
  "./manifest": {
38
+ "development": "./src/manifest.ts",
35
39
  "types": "./dist/src/manifest.d.ts",
36
40
  "default": "./dist/manifest.js"
37
41
  },
38
42
  "./react": {
43
+ "development": "./src/react/index.ts",
39
44
  "types": "./dist/src/react/index.d.ts",
40
45
  "default": "./dist/react/index.js"
41
46
  },
42
47
  "./react/viewers": {
48
+ "development": "./src/react/viewers/index.tsx",
43
49
  "types": "./dist/src/react/viewers/index.d.ts",
44
50
  "default": "./dist/react/viewers/index.js"
45
51
  },
@@ -55,8 +61,8 @@
55
61
  "!dist/test/**"
56
62
  ],
57
63
  "dependencies": {
58
- "@fluentui/react-components": "~9.54.2",
59
- "@fluentui/react-icons": "^2.0.247",
64
+ "@fluentui/react-components": "~9.54.5",
65
+ "@fluentui/react-icons": "^2.0.249",
60
66
  "clsx": "^2.1.1",
61
67
  "debounce": "~2.1.0",
62
68
  "lzutf8": "0.6.3",
@@ -67,40 +73,40 @@
67
73
  "swagger-ui-dist": "^5.17.14",
68
74
  "vscode-languageserver": "~9.0.1",
69
75
  "vscode-languageserver-textdocument": "~1.0.11",
70
- "@typespec/bundler": "~0.1.5",
71
- "@typespec/compiler": "~0.58.0",
72
- "@typespec/http": "~0.58.0",
73
- "@typespec/html-program-viewer": "~0.58.0",
74
- "@typespec/openapi": "~0.58.0",
75
- "@typespec/openapi3": "~0.58.0",
76
- "@typespec/protobuf": "~0.58.0",
77
- "@typespec/rest": "~0.58.0",
78
- "@typespec/versioning": "~0.58.0"
76
+ "@typespec/bundler": "~0.1.7",
77
+ "@typespec/html-program-viewer": "~0.60.0",
78
+ "@typespec/compiler": "~0.60.0",
79
+ "@typespec/http": "~0.60.0",
80
+ "@typespec/openapi": "~0.60.0",
81
+ "@typespec/openapi3": "~0.60.0",
82
+ "@typespec/protobuf": "~0.60.0",
83
+ "@typespec/rest": "~0.60.0",
84
+ "@typespec/versioning": "~0.60.0"
79
85
  },
80
86
  "devDependencies": {
81
- "@babel/core": "^7.24.7",
82
- "@playwright/test": "^1.45.0",
83
- "@storybook/addon-actions": "^8.1.11",
84
- "@storybook/cli": "^8.1.11",
85
- "@storybook/react-vite": "^8.1.11",
86
- "@storybook/react": "^8.1.11",
87
- "@storybook/test": "^8.1.11",
88
- "@storybook/types": "^8.1.11",
87
+ "@babel/core": "^7.24.9",
88
+ "@playwright/test": "^1.45.3",
89
+ "@storybook/addon-actions": "^8.2.5",
90
+ "@storybook/cli": "^8.2.5",
91
+ "@storybook/react": "^8.2.5",
92
+ "@storybook/react-vite": "^8.2.5",
93
+ "@storybook/test": "^8.2.5",
94
+ "@storybook/types": "^8.2.5",
89
95
  "@types/debounce": "~1.2.4",
90
96
  "@types/node": "~18.11.19",
91
- "@types/react-dom": "~18.3.0",
92
97
  "@types/react": "~18.3.3",
98
+ "@types/react-dom": "~18.3.0",
93
99
  "@types/swagger-ui-dist": "~3.30.5",
94
100
  "@vitejs/plugin-react": "~4.3.1",
95
101
  "c8": "^10.1.2",
96
102
  "cross-env": "~7.0.3",
97
103
  "es-module-shims": "~1.10.0",
98
- "rimraf": "~5.0.7",
99
- "typescript": "~5.5.3",
100
- "vite-plugin-checker": "^0.7.0",
101
- "vite-plugin-dts": "^3.9.1",
102
- "vite": "^5.3.2",
103
- "@typespec/bundler": "~0.1.5",
104
+ "rimraf": "~6.0.1",
105
+ "typescript": "~5.5.4",
106
+ "vite": "^5.3.4",
107
+ "vite-plugin-checker": "^0.7.2",
108
+ "vite-plugin-dts": "4.0.0-beta.1",
109
+ "@typespec/bundler": "~0.1.7",
104
110
  "@typespec/react-components": "~0.57.0"
105
111
  },
106
112
  "scripts": {
@@ -1,6 +0,0 @@
1
- const manifest = {
2
- "version": "0.58.0",
3
- "commit": "af65ce92203859a5f90da0587016e6bc4bbcea90"
4
- };
5
-
6
- export { manifest as default };