@typespec/playground 0.5.0-dev.7 → 0.5.0-dev.8

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,iBA+T7D;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,iBAiU7D;AAED,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,cAAc,oBAAoB,CAAC,EACrD,MAAM,EAAE,gBAAgB,GAAG,OAAO,QAAQ,GACzC,MAAM,CAAC,MAAM,CAkBf"}
@@ -286,11 +286,12 @@ 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
- }
292
289
  monaco.languages.register({ id: "typespec", extensions: [".tsp"] });
293
290
  monaco.languages.setLanguageConfiguration("typespec", getTypeSpecLanguageConfiguration());
291
+ if (window.registeredServices) {
292
+ return;
293
+ }
294
+ window.registeredServices = true;
294
295
  const serverHost = {
295
296
  compilerHost: host,
296
297
  getOpenDocumentByURL(url) {
package/dist/style.css CHANGED
@@ -232,250 +232,6 @@
232
232
  ._viewer-error_omce4_30 {
233
233
  padding: 20px;
234
234
  }
235
- ._type-kind-icon_1l8cz_1 {
236
- color: var(--colorPaletteBerryForeground2);
237
- font-weight: bold;
238
- padding: 1px 1px;
239
- border-radius: 2px;
240
- line-height: 16px;
241
- }
242
- ._current-path_x1yb7_1 {
243
- overflow-y: auto;
244
- border: 1px solid var(--colorNeutralStroke1);
245
- }
246
-
247
- ._current-path_x1yb7_1._focus_x1yb7_6 {
248
- border-bottom: 1px solid var(--colorBrandForeground1);
249
- }
250
- ._breadcrumb-search_x1yb7_9 {
251
- width: 100%;
252
- border-radius: 0 !important;
253
- border: none !important;
254
- }
255
-
256
- ._breadcrumb-search_x1yb7_9::after {
257
- border: none !important;
258
- }
259
-
260
- ._option_x1yb7_19 {
261
- padding: 2px 4px !important;
262
- }
263
-
264
- ._option_x1yb7_19 ._doc_x1yb7_23 {
265
- color: var(--colorNeutralForeground4);
266
- text-overflow: ellipsis;
267
- text-wrap: nowrap;
268
- min-width: 0;
269
- flex: 0 1 auto;
270
- overflow: hidden;
271
- }
272
-
273
- ._flex-gap_x1yb7_32 {
274
- flex: 1;
275
- }
276
-
277
- ._search-placeholder_x1yb7_36 {
278
- color: var(--colorNeutralForeground4);
279
- font-size: 12px;
280
- margin: 5px;
281
- text-wrap: nowrap;
282
- }
283
- ._item_1lyf1_1 {
284
- border-top: 1px solid var(--colorNeutralStroke1);
285
- padding: 5px 0 !important;
286
- }
287
-
288
- ._item_1lyf1_1:hover {
289
- background-color: var(--colorNeutralBackground1Hover);
290
- }
291
- ._type-graph_yi03c_1 * {
292
- box-sizing: border-box;
293
- }
294
-
295
- ._tree-navigation-pane_yi03c_5 {
296
- height: 100%;
297
- overflow-y: auto;
298
- }
299
-
300
- ._view-pane_yi03c_10 {
301
- padding: 10px;
302
- overflow-y: auto;
303
- }
304
-
305
- ._current-path_yi03c_15 {
306
- margin-bottom: 10px;
307
- }
308
- ._mono_ouyit_1 {
309
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
310
- }
311
-
312
- ._literal_ouyit_5 {
313
- color: var(--colorPaletteLightGreenForeground2);
314
- }
315
-
316
- ._type-kind_ouyit_9 {
317
- color: var(--colorPaletteBerryForeground2);
318
- }
319
- ._type-kind-tag_ouyit_12 {
320
- color: white;
321
- background-color: var(--colorPaletteBerryForeground2);
322
- border-radius: 2px;
323
- }
324
- ._type-kind-tag-small_ouyit_17 {
325
- height: 16px;
326
- line-height: 16px;
327
- font-size: 10px;
328
- padding: 0 3px;
329
- }
330
-
331
- ._type-kind-tag-auto_ouyit_24 {
332
- padding: 1px 5px;
333
- }
334
- ._string_yr0s7_1 {
335
- color: var(--colorPaletteLightGreenForeground2);
336
- }
337
-
338
- ._boolean_yr0s7_5 {
339
- color: var(--colorPaletteDarkOrangeForeground1);
340
- }
341
-
342
- ._number_yr0s7_9 {
343
- color: var(--colorPaletteDarkOrangeForeground1);
344
- }
345
-
346
- ._intrinsic_yr0s7_13 {
347
- color: var(--colorPaletteDarkOrangeForeground1);
348
- }
349
- ._inspect-type_pmg7n_1 {
350
- font-size: 12px;
351
- }
352
- ._inspect-type_pmg7n_1 ul {
353
- padding: 0 0 0 16px;
354
- margin: 0;
355
- }
356
-
357
- ._inspect-type_pmg7n_1 > ul {
358
- padding: 0;
359
- }
360
-
361
- ._inspect-type_pmg7n_1 li {
362
- margin: 0;
363
- list-style: none;
364
- position: relative;
365
- }
366
-
367
- ._type-ui_pmg7n_19 {
368
- display: inline;
369
- }
370
- ._type-ui-header_pmg7n_22 {
371
- cursor: pointer;
372
- display: inline;
373
- }
374
-
375
- ._type-ui-header_pmg7n_22:hover {
376
- text-decoration: underline;
377
- }
378
-
379
- ._type-name_pmg7n_31 {
380
- color: var(--colorNeutralForeground2);
381
- }
382
-
383
- ._property_pmg7n_35 {
384
- color: var(--colorPaletteMarigoldForeground2);
385
- }
386
-
387
- ._named-type-ref_pmg7n_39 {
388
- color: var(--colorBrandForeground1);
389
- text-decoration: none;
390
- cursor: pointer;
391
- }
392
-
393
- ._named-type-ref_pmg7n_39:hover {
394
- text-decoration: underline;
395
- }
396
-
397
- ._js-value_pmg7n_49 {
398
- color: var(--colorPaletteDarkOrangeForeground1);
399
- }
400
- ._object-description_1mqr2_1 {
401
- font-style: italic;
402
- }
403
-
404
- ._preview_1mqr2_5 {
405
- font-style: italic;
406
- }
407
-
408
- ._object-name_1mqr2_9 {
409
- color: var(--colorPaletteMarigoldForeground2);
410
- }
411
-
412
- ._dimmed_1mqr2_13 {
413
- opacity: 0.6;
414
- }
415
- ._table_1qvgd_1 {
416
- table-layout: auto;
417
- border-collapse: collapse;
418
- }
419
-
420
- ._table_1qvgd_1 th {
421
- font-weight: bold;
422
- }
423
-
424
- ._table_1qvgd_1 thead tr,
425
- ._table_1qvgd_1 tbody tr:not(:last-child) {
426
- border-bottom: 1px solid var(--colorNeutralStroke1);
427
- }
428
-
429
- ._key_1qvgd_15 {
430
- vertical-align: top;
431
- color: var(--colorNeutralForeground2);
432
- }
433
-
434
- ._data_1qvgd_20 {
435
- }
436
-
437
- ._tsp-type-ref_1qvgd_23 {
438
- display: inline-flex;
439
- align-items: center;
440
- gap: 3px;
441
- }
442
-
443
- ._tsp-type-logo_1qvgd_29 {
444
- display: inline-block;
445
- font-size: 7px;
446
- width: 12px;
447
- height: 12px;
448
- line-height: 12px;
449
- background-color: var(--colorPaletteBerryForeground2);
450
- color: white;
451
- }
452
- ._type-view_d4sc6_1 {
453
- display: flex;
454
- flex-direction: column;
455
- gap: 20px;
456
- }
457
-
458
- ._main_d4sc6_7 {
459
- padding: var(--fui-Card--size) 0 !important;
460
- }
461
-
462
- ._header-section_d4sc6_11 {
463
- padding: 0 var(--fui-Card--size);
464
- }
465
-
466
- ._inspect-section_d4sc6_15 {
467
- padding: 0 var(--fui-Card--size);
468
- }
469
-
470
- ._header_d4sc6_11 {
471
- display: flex;
472
- align-items: center;
473
- gap: 10px;
474
- }
475
-
476
- ._doc_d4sc6_25 {
477
- color: var(--colorNeutralForeground3);
478
- }
479
235
  ._layout_l03ni_1 {
480
236
  display: flex;
481
237
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/playground",
3
- "version": "0.5.0-dev.7",
3
+ "version": "0.5.0-dev.8",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec playground UI components.",
6
6
  "homepage": "https://typespec.io",
@@ -1,6 +0,0 @@
1
- const manifest = {
2
- "version": "0.60.1",
3
- "commit": "bcee728da09cca02f0065b39da9e3665971dc7ed"
4
- };
5
-
6
- export { manifest as default };