@alloy-js/json 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.
Files changed (85) hide show
  1. package/LICENSE +7 -0
  2. package/api-extractor.json +4 -0
  3. package/babel.config.cjs +4 -0
  4. package/dist/src/components/JsonArray.d.ts +52 -0
  5. package/dist/src/components/JsonArray.d.ts.map +1 -0
  6. package/dist/src/components/JsonArray.js +107 -0
  7. package/dist/src/components/JsonArray.js.map +1 -0
  8. package/dist/src/components/JsonObject.d.ts +63 -0
  9. package/dist/src/components/JsonObject.d.ts.map +1 -0
  10. package/dist/src/components/JsonObject.js +119 -0
  11. package/dist/src/components/JsonObject.js.map +1 -0
  12. package/dist/src/components/JsonValue.d.ts +21 -0
  13. package/dist/src/components/JsonValue.d.ts.map +1 -0
  14. package/dist/src/components/JsonValue.js +49 -0
  15. package/dist/src/components/JsonValue.js.map +1 -0
  16. package/dist/src/components/Reference.d.ts +18 -0
  17. package/dist/src/components/Reference.d.ts.map +1 -0
  18. package/dist/src/components/Reference.js +15 -0
  19. package/dist/src/components/Reference.js.map +1 -0
  20. package/dist/src/components/SourceFile.d.ts +17 -0
  21. package/dist/src/components/SourceFile.d.ts.map +1 -0
  22. package/dist/src/components/SourceFile.js +47 -0
  23. package/dist/src/components/SourceFile.js.map +1 -0
  24. package/dist/src/components/index.d.ts +6 -0
  25. package/dist/src/components/index.d.ts.map +1 -0
  26. package/dist/src/components/index.js +6 -0
  27. package/dist/src/components/index.js.map +1 -0
  28. package/dist/src/components/stc/index.d.ts +30 -0
  29. package/dist/src/components/stc/index.d.ts.map +1 -0
  30. package/dist/src/components/stc/index.js +10 -0
  31. package/dist/src/components/stc/index.js.map +1 -0
  32. package/dist/src/context/JsonFileContext.d.ts +17 -0
  33. package/dist/src/context/JsonFileContext.d.ts.map +1 -0
  34. package/dist/src/context/JsonFileContext.js +10 -0
  35. package/dist/src/context/JsonFileContext.js.map +1 -0
  36. package/dist/src/context/index.d.ts +2 -0
  37. package/dist/src/context/index.d.ts.map +1 -0
  38. package/dist/src/context/index.js +1 -0
  39. package/dist/src/context/index.js.map +1 -0
  40. package/dist/src/index.d.ts +4 -0
  41. package/dist/src/index.d.ts.map +1 -0
  42. package/dist/src/index.js +4 -0
  43. package/dist/src/index.js.map +1 -0
  44. package/dist/src/symbols/index.d.ts +4 -0
  45. package/dist/src/symbols/index.d.ts.map +1 -0
  46. package/dist/src/symbols/index.js +34 -0
  47. package/dist/src/symbols/index.js.map +1 -0
  48. package/dist/src/symbols/json-symbol.d.ts +22 -0
  49. package/dist/src/symbols/json-symbol.d.ts.map +1 -0
  50. package/dist/src/symbols/json-symbol.js +45 -0
  51. package/dist/src/symbols/json-symbol.js.map +1 -0
  52. package/dist/test/array.test.d.ts +2 -0
  53. package/dist/test/array.test.d.ts.map +1 -0
  54. package/dist/test/object.test.d.ts +2 -0
  55. package/dist/test/object.test.d.ts.map +1 -0
  56. package/dist/test/primitives.test.d.ts +2 -0
  57. package/dist/test/primitives.test.d.ts.map +1 -0
  58. package/dist/test/reference.test.d.ts +2 -0
  59. package/dist/test/reference.test.d.ts.map +1 -0
  60. package/dist/test/utils.d.ts +2 -0
  61. package/dist/test/utils.d.ts.map +1 -0
  62. package/dist/tsconfig.tsbuildinfo +1 -0
  63. package/package.json +45 -0
  64. package/src/components/JsonArray.tsx +138 -0
  65. package/src/components/JsonObject.tsx +150 -0
  66. package/src/components/JsonValue.tsx +59 -0
  67. package/src/components/Reference.tsx +23 -0
  68. package/src/components/SourceFile.tsx +48 -0
  69. package/src/components/index.ts +5 -0
  70. package/src/components/stc/index.ts +10 -0
  71. package/src/context/JsonFileContext.ts +28 -0
  72. package/src/context/index.ts +1 -0
  73. package/src/index.ts +3 -0
  74. package/src/symbols/index.ts +43 -0
  75. package/src/symbols/json-symbol.ts +68 -0
  76. package/temp/api.json +1896 -0
  77. package/test/array.test.tsx +31 -0
  78. package/test/object.test.tsx +60 -0
  79. package/test/primitives.test.tsx +16 -0
  80. package/test/reference.test.tsx +173 -0
  81. package/test/utils.tsx +11 -0
  82. package/test/vitest.d.ts +10 -0
  83. package/tsconfig.json +11 -0
  84. package/tsdoc-metadata.json +11 -0
  85. package/vitest.config.ts +18 -0
package/temp/api.json ADDED
@@ -0,0 +1,1896 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.47.7",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ }
129
+ ],
130
+ "supportForTags": {
131
+ "@alpha": true,
132
+ "@beta": true,
133
+ "@defaultValue": true,
134
+ "@decorator": true,
135
+ "@deprecated": true,
136
+ "@eventProperty": true,
137
+ "@example": true,
138
+ "@experimental": true,
139
+ "@inheritDoc": true,
140
+ "@internal": true,
141
+ "@label": true,
142
+ "@link": true,
143
+ "@override": true,
144
+ "@packageDocumentation": true,
145
+ "@param": true,
146
+ "@privateRemarks": true,
147
+ "@public": true,
148
+ "@readonly": true,
149
+ "@remarks": true,
150
+ "@returns": true,
151
+ "@sealed": true,
152
+ "@see": true,
153
+ "@throws": true,
154
+ "@typeParam": true,
155
+ "@virtual": true,
156
+ "@betaDocumentation": true,
157
+ "@internalRemarks": true,
158
+ "@preapproved": true
159
+ },
160
+ "reportUnsupportedHtmlElements": false
161
+ }
162
+ },
163
+ "kind": "Package",
164
+ "canonicalReference": "@alloy-js/json!",
165
+ "docComment": "",
166
+ "name": "@alloy-js/json",
167
+ "preserveMemberOrder": false,
168
+ "members": [
169
+ {
170
+ "kind": "EntryPoint",
171
+ "canonicalReference": "@alloy-js/json!",
172
+ "name": "",
173
+ "preserveMemberOrder": false,
174
+ "members": [
175
+ {
176
+ "kind": "Function",
177
+ "canonicalReference": "@alloy-js/json!createJsonOutputSymbol:function(1)",
178
+ "docComment": "",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "export declare function createJsonOutputSymbol(options: "
183
+ },
184
+ {
185
+ "kind": "Reference",
186
+ "text": "createJsonSymbolOptions",
187
+ "canonicalReference": "@alloy-js/json!createJsonSymbolOptions:interface"
188
+ },
189
+ {
190
+ "kind": "Content",
191
+ "text": "): "
192
+ },
193
+ {
194
+ "kind": "Reference",
195
+ "text": "JsonOutputSymbol",
196
+ "canonicalReference": "@alloy-js/json!JsonOutputSymbol:interface"
197
+ },
198
+ {
199
+ "kind": "Content",
200
+ "text": ";"
201
+ }
202
+ ],
203
+ "fileUrlPath": "src/symbols/json-symbol.ts",
204
+ "returnTypeTokenRange": {
205
+ "startIndex": 3,
206
+ "endIndex": 4
207
+ },
208
+ "releaseTag": "Public",
209
+ "overloadIndex": 1,
210
+ "parameters": [
211
+ {
212
+ "parameterName": "options",
213
+ "parameterTypeTokenRange": {
214
+ "startIndex": 1,
215
+ "endIndex": 2
216
+ },
217
+ "isOptional": false
218
+ }
219
+ ],
220
+ "name": "createJsonOutputSymbol"
221
+ },
222
+ {
223
+ "kind": "Interface",
224
+ "canonicalReference": "@alloy-js/json!createJsonSymbolOptions:interface",
225
+ "docComment": "",
226
+ "excerptTokens": [
227
+ {
228
+ "kind": "Content",
229
+ "text": "export interface createJsonSymbolOptions extends "
230
+ },
231
+ {
232
+ "kind": "Reference",
233
+ "text": "CreateSymbolOptions",
234
+ "canonicalReference": "@alloy-js/core!CreateSymbolOptions:type"
235
+ },
236
+ {
237
+ "kind": "Content",
238
+ "text": " "
239
+ }
240
+ ],
241
+ "fileUrlPath": "src/symbols/json-symbol.ts",
242
+ "releaseTag": "Public",
243
+ "name": "createJsonSymbolOptions",
244
+ "preserveMemberOrder": false,
245
+ "members": [
246
+ {
247
+ "kind": "PropertySignature",
248
+ "canonicalReference": "@alloy-js/json!createJsonSymbolOptions#jsonFlags:member",
249
+ "docComment": "",
250
+ "excerptTokens": [
251
+ {
252
+ "kind": "Content",
253
+ "text": "jsonFlags?: "
254
+ },
255
+ {
256
+ "kind": "Reference",
257
+ "text": "JsonSymbolFlags",
258
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags:enum"
259
+ },
260
+ {
261
+ "kind": "Content",
262
+ "text": ";"
263
+ }
264
+ ],
265
+ "isReadonly": false,
266
+ "isOptional": true,
267
+ "releaseTag": "Public",
268
+ "name": "jsonFlags",
269
+ "propertyTypeTokenRange": {
270
+ "startIndex": 1,
271
+ "endIndex": 2
272
+ }
273
+ }
274
+ ],
275
+ "extendsTokenRanges": [
276
+ {
277
+ "startIndex": 1,
278
+ "endIndex": 2
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "kind": "Function",
284
+ "canonicalReference": "@alloy-js/json!JsonArray:function(1)",
285
+ "docComment": "/**\n * Create a JSON Array. You can provide children, or else pass a JS value that will be serialized to JSON.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberScopeContext:variable)}\n */\n",
286
+ "excerptTokens": [
287
+ {
288
+ "kind": "Content",
289
+ "text": "export declare function JsonArray(props: "
290
+ },
291
+ {
292
+ "kind": "Reference",
293
+ "text": "JsonArrayProps",
294
+ "canonicalReference": "@alloy-js/json!JsonArrayProps:type"
295
+ },
296
+ {
297
+ "kind": "Content",
298
+ "text": "): "
299
+ },
300
+ {
301
+ "kind": "Reference",
302
+ "text": "Children",
303
+ "canonicalReference": "@alloy-js/core!Children:type"
304
+ },
305
+ {
306
+ "kind": "Content",
307
+ "text": ";"
308
+ }
309
+ ],
310
+ "fileUrlPath": "src/components/JsonArray.tsx",
311
+ "returnTypeTokenRange": {
312
+ "startIndex": 3,
313
+ "endIndex": 4
314
+ },
315
+ "releaseTag": "Public",
316
+ "overloadIndex": 1,
317
+ "parameters": [
318
+ {
319
+ "parameterName": "props",
320
+ "parameterTypeTokenRange": {
321
+ "startIndex": 1,
322
+ "endIndex": 2
323
+ },
324
+ "isOptional": false
325
+ }
326
+ ],
327
+ "name": "JsonArray"
328
+ },
329
+ {
330
+ "kind": "Function",
331
+ "canonicalReference": "@alloy-js/json!JsonArrayElement:function(1)",
332
+ "docComment": "/**\n * Create a JSON Array element. This component should be used inside of a {@link JsonArray} component.\n *\n * @remarks\n *\n * It does not add any syntax, but is required in order to establish the correct scope for the array element, allowing references to array elements to work properly.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
333
+ "excerptTokens": [
334
+ {
335
+ "kind": "Content",
336
+ "text": "export declare function JsonArrayElement(props: "
337
+ },
338
+ {
339
+ "kind": "Reference",
340
+ "text": "JsonArrayElementProps",
341
+ "canonicalReference": "@alloy-js/json!JsonArrayElementProps:interface"
342
+ },
343
+ {
344
+ "kind": "Content",
345
+ "text": "): "
346
+ },
347
+ {
348
+ "kind": "Reference",
349
+ "text": "Children",
350
+ "canonicalReference": "@alloy-js/core!Children:type"
351
+ },
352
+ {
353
+ "kind": "Content",
354
+ "text": ";"
355
+ }
356
+ ],
357
+ "fileUrlPath": "src/components/JsonArray.tsx",
358
+ "returnTypeTokenRange": {
359
+ "startIndex": 3,
360
+ "endIndex": 4
361
+ },
362
+ "releaseTag": "Public",
363
+ "overloadIndex": 1,
364
+ "parameters": [
365
+ {
366
+ "parameterName": "props",
367
+ "parameterTypeTokenRange": {
368
+ "startIndex": 1,
369
+ "endIndex": 2
370
+ },
371
+ "isOptional": false
372
+ }
373
+ ],
374
+ "name": "JsonArrayElement"
375
+ },
376
+ {
377
+ "kind": "Interface",
378
+ "canonicalReference": "@alloy-js/json!JsonArrayElementProps:interface",
379
+ "docComment": "",
380
+ "excerptTokens": [
381
+ {
382
+ "kind": "Content",
383
+ "text": "export interface JsonArrayElementProps "
384
+ }
385
+ ],
386
+ "fileUrlPath": "src/components/JsonArray.tsx",
387
+ "releaseTag": "Public",
388
+ "name": "JsonArrayElementProps",
389
+ "preserveMemberOrder": false,
390
+ "members": [
391
+ {
392
+ "kind": "PropertySignature",
393
+ "canonicalReference": "@alloy-js/json!JsonArrayElementProps#children:member",
394
+ "docComment": "",
395
+ "excerptTokens": [
396
+ {
397
+ "kind": "Content",
398
+ "text": "children: "
399
+ },
400
+ {
401
+ "kind": "Reference",
402
+ "text": "Children",
403
+ "canonicalReference": "@alloy-js/core!Children:type"
404
+ },
405
+ {
406
+ "kind": "Content",
407
+ "text": ";"
408
+ }
409
+ ],
410
+ "isReadonly": false,
411
+ "isOptional": false,
412
+ "releaseTag": "Public",
413
+ "name": "children",
414
+ "propertyTypeTokenRange": {
415
+ "startIndex": 1,
416
+ "endIndex": 2
417
+ }
418
+ }
419
+ ],
420
+ "extendsTokenRanges": []
421
+ },
422
+ {
423
+ "kind": "TypeAlias",
424
+ "canonicalReference": "@alloy-js/json!JsonArrayProps:type",
425
+ "docComment": "",
426
+ "excerptTokens": [
427
+ {
428
+ "kind": "Content",
429
+ "text": "export type JsonArrayProps = "
430
+ },
431
+ {
432
+ "kind": "Reference",
433
+ "text": "JsonArrayPropsWithJsValue",
434
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithJsValue:interface"
435
+ },
436
+ {
437
+ "kind": "Content",
438
+ "text": " | "
439
+ },
440
+ {
441
+ "kind": "Reference",
442
+ "text": "JsonArrayPropsWithChildren",
443
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithChildren:interface"
444
+ },
445
+ {
446
+ "kind": "Content",
447
+ "text": ";"
448
+ }
449
+ ],
450
+ "fileUrlPath": "src/components/JsonArray.tsx",
451
+ "releaseTag": "Public",
452
+ "name": "JsonArrayProps",
453
+ "typeTokenRange": {
454
+ "startIndex": 1,
455
+ "endIndex": 4
456
+ }
457
+ },
458
+ {
459
+ "kind": "Interface",
460
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsBase:interface",
461
+ "docComment": "",
462
+ "excerptTokens": [
463
+ {
464
+ "kind": "Content",
465
+ "text": "export interface JsonArrayPropsBase "
466
+ }
467
+ ],
468
+ "fileUrlPath": "src/components/JsonArray.tsx",
469
+ "releaseTag": "Public",
470
+ "name": "JsonArrayPropsBase",
471
+ "preserveMemberOrder": false,
472
+ "members": [
473
+ {
474
+ "kind": "PropertySignature",
475
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsBase#refkey:member",
476
+ "docComment": "/**\n * The refkey for the JSON array. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
477
+ "excerptTokens": [
478
+ {
479
+ "kind": "Content",
480
+ "text": "refkey?: "
481
+ },
482
+ {
483
+ "kind": "Reference",
484
+ "text": "Refkey",
485
+ "canonicalReference": "@alloy-js/core!Refkey:type"
486
+ },
487
+ {
488
+ "kind": "Content",
489
+ "text": ";"
490
+ }
491
+ ],
492
+ "isReadonly": false,
493
+ "isOptional": true,
494
+ "releaseTag": "Public",
495
+ "name": "refkey",
496
+ "propertyTypeTokenRange": {
497
+ "startIndex": 1,
498
+ "endIndex": 2
499
+ }
500
+ }
501
+ ],
502
+ "extendsTokenRanges": []
503
+ },
504
+ {
505
+ "kind": "Interface",
506
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithChildren:interface",
507
+ "docComment": "/**\n * Create a JSON Array by providing the children. To create an array element, see {@link JsonArrayElement}.\n */\n",
508
+ "excerptTokens": [
509
+ {
510
+ "kind": "Content",
511
+ "text": "export interface JsonArrayPropsWithChildren extends "
512
+ },
513
+ {
514
+ "kind": "Reference",
515
+ "text": "JsonArrayPropsBase",
516
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsBase:interface"
517
+ },
518
+ {
519
+ "kind": "Content",
520
+ "text": " "
521
+ }
522
+ ],
523
+ "fileUrlPath": "src/components/JsonArray.tsx",
524
+ "releaseTag": "Public",
525
+ "name": "JsonArrayPropsWithChildren",
526
+ "preserveMemberOrder": false,
527
+ "members": [
528
+ {
529
+ "kind": "PropertySignature",
530
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithChildren#children:member",
531
+ "docComment": "/**\n * The contents of the JSON Array. Likely to contain {@link JsonArrayElement} components.\n */\n",
532
+ "excerptTokens": [
533
+ {
534
+ "kind": "Content",
535
+ "text": "children?: "
536
+ },
537
+ {
538
+ "kind": "Reference",
539
+ "text": "Children",
540
+ "canonicalReference": "@alloy-js/core!Children:type"
541
+ },
542
+ {
543
+ "kind": "Content",
544
+ "text": ";"
545
+ }
546
+ ],
547
+ "isReadonly": false,
548
+ "isOptional": true,
549
+ "releaseTag": "Public",
550
+ "name": "children",
551
+ "propertyTypeTokenRange": {
552
+ "startIndex": 1,
553
+ "endIndex": 2
554
+ }
555
+ }
556
+ ],
557
+ "extendsTokenRanges": [
558
+ {
559
+ "startIndex": 1,
560
+ "endIndex": 2
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "kind": "Interface",
566
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithJsValue:interface",
567
+ "docComment": "/**\n * Create a JSON Array by serializing the given JavaScript array to JSON.\n */\n",
568
+ "excerptTokens": [
569
+ {
570
+ "kind": "Content",
571
+ "text": "export interface JsonArrayPropsWithJsValue extends "
572
+ },
573
+ {
574
+ "kind": "Reference",
575
+ "text": "JsonArrayPropsBase",
576
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsBase:interface"
577
+ },
578
+ {
579
+ "kind": "Content",
580
+ "text": " "
581
+ }
582
+ ],
583
+ "fileUrlPath": "src/components/JsonArray.tsx",
584
+ "releaseTag": "Public",
585
+ "name": "JsonArrayPropsWithJsValue",
586
+ "preserveMemberOrder": false,
587
+ "members": [
588
+ {
589
+ "kind": "PropertySignature",
590
+ "canonicalReference": "@alloy-js/json!JsonArrayPropsWithJsValue#jsValue:member",
591
+ "docComment": "/**\n * The value to serialize to a JSON array.\n */\n",
592
+ "excerptTokens": [
593
+ {
594
+ "kind": "Content",
595
+ "text": "jsValue: "
596
+ },
597
+ {
598
+ "kind": "Content",
599
+ "text": "unknown[]"
600
+ },
601
+ {
602
+ "kind": "Content",
603
+ "text": ";"
604
+ }
605
+ ],
606
+ "isReadonly": false,
607
+ "isOptional": false,
608
+ "releaseTag": "Public",
609
+ "name": "jsValue",
610
+ "propertyTypeTokenRange": {
611
+ "startIndex": 1,
612
+ "endIndex": 2
613
+ }
614
+ }
615
+ ],
616
+ "extendsTokenRanges": [
617
+ {
618
+ "startIndex": 1,
619
+ "endIndex": 2
620
+ }
621
+ ]
622
+ },
623
+ {
624
+ "kind": "Interface",
625
+ "canonicalReference": "@alloy-js/json!JsonFileContext:interface",
626
+ "docComment": "",
627
+ "excerptTokens": [
628
+ {
629
+ "kind": "Content",
630
+ "text": "export interface JsonFileContext "
631
+ }
632
+ ],
633
+ "fileUrlPath": "src/context/JsonFileContext.ts",
634
+ "releaseTag": "Public",
635
+ "name": "JsonFileContext",
636
+ "preserveMemberOrder": false,
637
+ "members": [
638
+ {
639
+ "kind": "PropertySignature",
640
+ "canonicalReference": "@alloy-js/json!JsonFileContext#path:member",
641
+ "docComment": "/**\n * The path of the current JSON file. May be different from the path on disk.\n */\n",
642
+ "excerptTokens": [
643
+ {
644
+ "kind": "Content",
645
+ "text": "path?: "
646
+ },
647
+ {
648
+ "kind": "Content",
649
+ "text": "string"
650
+ },
651
+ {
652
+ "kind": "Content",
653
+ "text": ";"
654
+ }
655
+ ],
656
+ "isReadonly": false,
657
+ "isOptional": true,
658
+ "releaseTag": "Public",
659
+ "name": "path",
660
+ "propertyTypeTokenRange": {
661
+ "startIndex": 1,
662
+ "endIndex": 2
663
+ }
664
+ },
665
+ {
666
+ "kind": "PropertySignature",
667
+ "canonicalReference": "@alloy-js/json!JsonFileContext#symbol:member",
668
+ "docComment": "/**\n * The symbol for the value in this JSON file\n */\n",
669
+ "excerptTokens": [
670
+ {
671
+ "kind": "Content",
672
+ "text": "symbol: "
673
+ },
674
+ {
675
+ "kind": "Reference",
676
+ "text": "JsonOutputSymbol",
677
+ "canonicalReference": "@alloy-js/json!JsonOutputSymbol:interface"
678
+ },
679
+ {
680
+ "kind": "Content",
681
+ "text": ";"
682
+ }
683
+ ],
684
+ "isReadonly": false,
685
+ "isOptional": false,
686
+ "releaseTag": "Public",
687
+ "name": "symbol",
688
+ "propertyTypeTokenRange": {
689
+ "startIndex": 1,
690
+ "endIndex": 2
691
+ }
692
+ },
693
+ {
694
+ "kind": "PropertySignature",
695
+ "canonicalReference": "@alloy-js/json!JsonFileContext#url:member",
696
+ "docComment": "/**\n * The URL of the current JSON file\n */\n",
697
+ "excerptTokens": [
698
+ {
699
+ "kind": "Content",
700
+ "text": "url?: "
701
+ },
702
+ {
703
+ "kind": "Content",
704
+ "text": "string"
705
+ },
706
+ {
707
+ "kind": "Content",
708
+ "text": ";"
709
+ }
710
+ ],
711
+ "isReadonly": false,
712
+ "isOptional": true,
713
+ "releaseTag": "Public",
714
+ "name": "url",
715
+ "propertyTypeTokenRange": {
716
+ "startIndex": 1,
717
+ "endIndex": 2
718
+ }
719
+ }
720
+ ],
721
+ "extendsTokenRanges": []
722
+ },
723
+ {
724
+ "kind": "Variable",
725
+ "canonicalReference": "@alloy-js/json!JsonFileContext:var",
726
+ "docComment": "/**\n * Provides information about the current JSON source file. This context is used to allow references between JSON files.\n */\n",
727
+ "excerptTokens": [
728
+ {
729
+ "kind": "Content",
730
+ "text": "JsonFileContext: "
731
+ },
732
+ {
733
+ "kind": "Reference",
734
+ "text": "ComponentContext",
735
+ "canonicalReference": "@alloy-js/core!ComponentContext:interface"
736
+ },
737
+ {
738
+ "kind": "Content",
739
+ "text": "<"
740
+ },
741
+ {
742
+ "kind": "Reference",
743
+ "text": "JsonFileContext",
744
+ "canonicalReference": "@alloy-js/json!JsonFileContext:interface"
745
+ },
746
+ {
747
+ "kind": "Content",
748
+ "text": ">"
749
+ }
750
+ ],
751
+ "fileUrlPath": "src/context/JsonFileContext.ts",
752
+ "isReadonly": true,
753
+ "releaseTag": "Public",
754
+ "name": "JsonFileContext",
755
+ "variableTypeTokenRange": {
756
+ "startIndex": 1,
757
+ "endIndex": 5
758
+ }
759
+ },
760
+ {
761
+ "kind": "Function",
762
+ "canonicalReference": "@alloy-js/json!JsonObject:function(1)",
763
+ "docComment": "/**\n * Create a JSON Object. An object can be created by providing a JS object value which will be serialized to JSON. Else, you can provide children that comprise the object's JSON representation.\n *\n * @see\n *\n * {@link @alloy-js/core#MemberScopeContext}\n */\n",
764
+ "excerptTokens": [
765
+ {
766
+ "kind": "Content",
767
+ "text": "export declare function JsonObject(props: "
768
+ },
769
+ {
770
+ "kind": "Reference",
771
+ "text": "JsonObjectProps",
772
+ "canonicalReference": "@alloy-js/json!JsonObjectProps:type"
773
+ },
774
+ {
775
+ "kind": "Content",
776
+ "text": "): "
777
+ },
778
+ {
779
+ "kind": "Reference",
780
+ "text": "Children",
781
+ "canonicalReference": "@alloy-js/core!Children:type"
782
+ },
783
+ {
784
+ "kind": "Content",
785
+ "text": ";"
786
+ }
787
+ ],
788
+ "fileUrlPath": "src/components/JsonObject.tsx",
789
+ "returnTypeTokenRange": {
790
+ "startIndex": 3,
791
+ "endIndex": 4
792
+ },
793
+ "releaseTag": "Public",
794
+ "overloadIndex": 1,
795
+ "parameters": [
796
+ {
797
+ "parameterName": "props",
798
+ "parameterTypeTokenRange": {
799
+ "startIndex": 1,
800
+ "endIndex": 2
801
+ },
802
+ "isOptional": false
803
+ }
804
+ ],
805
+ "name": "JsonObject"
806
+ },
807
+ {
808
+ "kind": "Function",
809
+ "canonicalReference": "@alloy-js/json!JsonObjectProperty:function(1)",
810
+ "docComment": "/**\n * Create a JSON object property. A property can be created by providing a JS property value or children that defines the value.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
811
+ "excerptTokens": [
812
+ {
813
+ "kind": "Content",
814
+ "text": "export declare function JsonObjectProperty(props: "
815
+ },
816
+ {
817
+ "kind": "Reference",
818
+ "text": "ObjectPropertyProps",
819
+ "canonicalReference": "@alloy-js/json!ObjectPropertyProps:type"
820
+ },
821
+ {
822
+ "kind": "Content",
823
+ "text": "): "
824
+ },
825
+ {
826
+ "kind": "Reference",
827
+ "text": "Children",
828
+ "canonicalReference": "@alloy-js/core!Children:type"
829
+ },
830
+ {
831
+ "kind": "Content",
832
+ "text": ";"
833
+ }
834
+ ],
835
+ "fileUrlPath": "src/components/JsonObject.tsx",
836
+ "returnTypeTokenRange": {
837
+ "startIndex": 3,
838
+ "endIndex": 4
839
+ },
840
+ "releaseTag": "Public",
841
+ "overloadIndex": 1,
842
+ "parameters": [
843
+ {
844
+ "parameterName": "props",
845
+ "parameterTypeTokenRange": {
846
+ "startIndex": 1,
847
+ "endIndex": 2
848
+ },
849
+ "isOptional": false
850
+ }
851
+ ],
852
+ "name": "JsonObjectProperty"
853
+ },
854
+ {
855
+ "kind": "TypeAlias",
856
+ "canonicalReference": "@alloy-js/json!JsonObjectProps:type",
857
+ "docComment": "",
858
+ "excerptTokens": [
859
+ {
860
+ "kind": "Content",
861
+ "text": "export type JsonObjectProps = "
862
+ },
863
+ {
864
+ "kind": "Reference",
865
+ "text": "JsonObjectPropsWithChildren",
866
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithChildren:interface"
867
+ },
868
+ {
869
+ "kind": "Content",
870
+ "text": " | "
871
+ },
872
+ {
873
+ "kind": "Reference",
874
+ "text": "JsonObjectPropsWithJsValue",
875
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithJsValue:interface"
876
+ },
877
+ {
878
+ "kind": "Content",
879
+ "text": ";"
880
+ }
881
+ ],
882
+ "fileUrlPath": "src/components/JsonObject.tsx",
883
+ "releaseTag": "Public",
884
+ "name": "JsonObjectProps",
885
+ "typeTokenRange": {
886
+ "startIndex": 1,
887
+ "endIndex": 4
888
+ }
889
+ },
890
+ {
891
+ "kind": "Interface",
892
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsBase:interface",
893
+ "docComment": "",
894
+ "excerptTokens": [
895
+ {
896
+ "kind": "Content",
897
+ "text": "export interface JsonObjectPropsBase "
898
+ }
899
+ ],
900
+ "fileUrlPath": "src/components/JsonObject.tsx",
901
+ "releaseTag": "Public",
902
+ "name": "JsonObjectPropsBase",
903
+ "preserveMemberOrder": false,
904
+ "members": [
905
+ {
906
+ "kind": "PropertySignature",
907
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsBase#refkey:member",
908
+ "docComment": "/**\n * The refkey for the JSON array. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
909
+ "excerptTokens": [
910
+ {
911
+ "kind": "Content",
912
+ "text": "refkey?: "
913
+ },
914
+ {
915
+ "kind": "Reference",
916
+ "text": "Refkey",
917
+ "canonicalReference": "@alloy-js/core!Refkey:type"
918
+ },
919
+ {
920
+ "kind": "Content",
921
+ "text": ";"
922
+ }
923
+ ],
924
+ "isReadonly": false,
925
+ "isOptional": true,
926
+ "releaseTag": "Public",
927
+ "name": "refkey",
928
+ "propertyTypeTokenRange": {
929
+ "startIndex": 1,
930
+ "endIndex": 2
931
+ }
932
+ }
933
+ ],
934
+ "extendsTokenRanges": []
935
+ },
936
+ {
937
+ "kind": "Interface",
938
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithChildren:interface",
939
+ "docComment": "/**\n * Create a JSON object by providing children that define the object's contents. The children should use the {@link JsonObjectProperty} component to define individual object properties.\n */\n",
940
+ "excerptTokens": [
941
+ {
942
+ "kind": "Content",
943
+ "text": "export interface JsonObjectPropsWithChildren extends "
944
+ },
945
+ {
946
+ "kind": "Reference",
947
+ "text": "JsonObjectPropsBase",
948
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsBase:interface"
949
+ },
950
+ {
951
+ "kind": "Content",
952
+ "text": " "
953
+ }
954
+ ],
955
+ "fileUrlPath": "src/components/JsonObject.tsx",
956
+ "releaseTag": "Public",
957
+ "name": "JsonObjectPropsWithChildren",
958
+ "preserveMemberOrder": false,
959
+ "members": [
960
+ {
961
+ "kind": "PropertySignature",
962
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithChildren#children:member",
963
+ "docComment": "/**\n * The contents of the JSON object. Likely to contain {@link JsonObjectProperty} components.\n */\n",
964
+ "excerptTokens": [
965
+ {
966
+ "kind": "Content",
967
+ "text": "children: "
968
+ },
969
+ {
970
+ "kind": "Reference",
971
+ "text": "Children",
972
+ "canonicalReference": "@alloy-js/core!Children:type"
973
+ },
974
+ {
975
+ "kind": "Content",
976
+ "text": ";"
977
+ }
978
+ ],
979
+ "isReadonly": false,
980
+ "isOptional": false,
981
+ "releaseTag": "Public",
982
+ "name": "children",
983
+ "propertyTypeTokenRange": {
984
+ "startIndex": 1,
985
+ "endIndex": 2
986
+ }
987
+ }
988
+ ],
989
+ "extendsTokenRanges": [
990
+ {
991
+ "startIndex": 1,
992
+ "endIndex": 2
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "kind": "Interface",
998
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithJsValue:interface",
999
+ "docComment": "/**\n * Create a JSON object by providing a JS value that will be serialized to JSON.\n */\n",
1000
+ "excerptTokens": [
1001
+ {
1002
+ "kind": "Content",
1003
+ "text": "export interface JsonObjectPropsWithJsValue extends "
1004
+ },
1005
+ {
1006
+ "kind": "Reference",
1007
+ "text": "JsonObjectPropsBase",
1008
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsBase:interface"
1009
+ },
1010
+ {
1011
+ "kind": "Content",
1012
+ "text": " "
1013
+ }
1014
+ ],
1015
+ "fileUrlPath": "src/components/JsonObject.tsx",
1016
+ "releaseTag": "Public",
1017
+ "name": "JsonObjectPropsWithJsValue",
1018
+ "preserveMemberOrder": false,
1019
+ "members": [
1020
+ {
1021
+ "kind": "PropertySignature",
1022
+ "canonicalReference": "@alloy-js/json!JsonObjectPropsWithJsValue#jsValue:member",
1023
+ "docComment": "/**\n * The JS value to serialize to JSON. This can be an array of key-value pairs, a map, or a vanilla JS object.\n */\n",
1024
+ "excerptTokens": [
1025
+ {
1026
+ "kind": "Content",
1027
+ "text": "jsValue: "
1028
+ },
1029
+ {
1030
+ "kind": "Content",
1031
+ "text": "[string, unknown][] | "
1032
+ },
1033
+ {
1034
+ "kind": "Reference",
1035
+ "text": "Map",
1036
+ "canonicalReference": "!Map:interface"
1037
+ },
1038
+ {
1039
+ "kind": "Content",
1040
+ "text": "<string, unknown> | "
1041
+ },
1042
+ {
1043
+ "kind": "Reference",
1044
+ "text": "Record",
1045
+ "canonicalReference": "!Record:type"
1046
+ },
1047
+ {
1048
+ "kind": "Content",
1049
+ "text": "<string, unknown>"
1050
+ },
1051
+ {
1052
+ "kind": "Content",
1053
+ "text": ";"
1054
+ }
1055
+ ],
1056
+ "isReadonly": false,
1057
+ "isOptional": false,
1058
+ "releaseTag": "Public",
1059
+ "name": "jsValue",
1060
+ "propertyTypeTokenRange": {
1061
+ "startIndex": 1,
1062
+ "endIndex": 6
1063
+ }
1064
+ }
1065
+ ],
1066
+ "extendsTokenRanges": [
1067
+ {
1068
+ "startIndex": 1,
1069
+ "endIndex": 2
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ "kind": "Interface",
1075
+ "canonicalReference": "@alloy-js/json!JsonOutputSymbol:interface",
1076
+ "docComment": "/**\n * JsonOutputSymbol is created for JSON Values with a refkey. For JSON objects and arrays, the symbol will have the `StaticMemberContainer` flag. For JSON values that are members of an object or an array, the symbol will have the `StaticMember` flag.\n */\n",
1077
+ "excerptTokens": [
1078
+ {
1079
+ "kind": "Content",
1080
+ "text": "export interface JsonOutputSymbol extends "
1081
+ },
1082
+ {
1083
+ "kind": "Reference",
1084
+ "text": "OutputSymbol",
1085
+ "canonicalReference": "@alloy-js/core!OutputSymbol:interface"
1086
+ },
1087
+ {
1088
+ "kind": "Content",
1089
+ "text": " "
1090
+ }
1091
+ ],
1092
+ "fileUrlPath": "src/symbols/json-symbol.ts",
1093
+ "releaseTag": "Public",
1094
+ "name": "JsonOutputSymbol",
1095
+ "preserveMemberOrder": false,
1096
+ "members": [
1097
+ {
1098
+ "kind": "PropertySignature",
1099
+ "canonicalReference": "@alloy-js/json!JsonOutputSymbol#jsonFlags:member",
1100
+ "docComment": "",
1101
+ "excerptTokens": [
1102
+ {
1103
+ "kind": "Content",
1104
+ "text": "jsonFlags: "
1105
+ },
1106
+ {
1107
+ "kind": "Reference",
1108
+ "text": "JsonSymbolFlags",
1109
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags:enum"
1110
+ },
1111
+ {
1112
+ "kind": "Content",
1113
+ "text": ";"
1114
+ }
1115
+ ],
1116
+ "isReadonly": false,
1117
+ "isOptional": false,
1118
+ "releaseTag": "Public",
1119
+ "name": "jsonFlags",
1120
+ "propertyTypeTokenRange": {
1121
+ "startIndex": 1,
1122
+ "endIndex": 2
1123
+ }
1124
+ },
1125
+ {
1126
+ "kind": "PropertySignature",
1127
+ "canonicalReference": "@alloy-js/json!JsonOutputSymbol#scope:member",
1128
+ "docComment": "",
1129
+ "excerptTokens": [
1130
+ {
1131
+ "kind": "Content",
1132
+ "text": "scope: "
1133
+ },
1134
+ {
1135
+ "kind": "Reference",
1136
+ "text": "OutputScope",
1137
+ "canonicalReference": "@alloy-js/core!OutputScope:interface"
1138
+ },
1139
+ {
1140
+ "kind": "Content",
1141
+ "text": ";"
1142
+ }
1143
+ ],
1144
+ "isReadonly": false,
1145
+ "isOptional": false,
1146
+ "releaseTag": "Public",
1147
+ "name": "scope",
1148
+ "propertyTypeTokenRange": {
1149
+ "startIndex": 1,
1150
+ "endIndex": 2
1151
+ }
1152
+ }
1153
+ ],
1154
+ "extendsTokenRanges": [
1155
+ {
1156
+ "startIndex": 1,
1157
+ "endIndex": 2
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "kind": "Enum",
1163
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags:enum",
1164
+ "docComment": "",
1165
+ "excerptTokens": [
1166
+ {
1167
+ "kind": "Content",
1168
+ "text": "export declare enum JsonSymbolFlags "
1169
+ }
1170
+ ],
1171
+ "fileUrlPath": "src/symbols/json-symbol.ts",
1172
+ "releaseTag": "Public",
1173
+ "name": "JsonSymbolFlags",
1174
+ "preserveMemberOrder": false,
1175
+ "members": [
1176
+ {
1177
+ "kind": "EnumMember",
1178
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags.Array:member",
1179
+ "docComment": "",
1180
+ "excerptTokens": [
1181
+ {
1182
+ "kind": "Content",
1183
+ "text": "Array = "
1184
+ },
1185
+ {
1186
+ "kind": "Content",
1187
+ "text": "2"
1188
+ }
1189
+ ],
1190
+ "initializerTokenRange": {
1191
+ "startIndex": 1,
1192
+ "endIndex": 2
1193
+ },
1194
+ "releaseTag": "Public",
1195
+ "name": "Array"
1196
+ },
1197
+ {
1198
+ "kind": "EnumMember",
1199
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags.None:member",
1200
+ "docComment": "",
1201
+ "excerptTokens": [
1202
+ {
1203
+ "kind": "Content",
1204
+ "text": "None = "
1205
+ },
1206
+ {
1207
+ "kind": "Content",
1208
+ "text": "0"
1209
+ }
1210
+ ],
1211
+ "initializerTokenRange": {
1212
+ "startIndex": 1,
1213
+ "endIndex": 2
1214
+ },
1215
+ "releaseTag": "Public",
1216
+ "name": "None"
1217
+ },
1218
+ {
1219
+ "kind": "EnumMember",
1220
+ "canonicalReference": "@alloy-js/json!JsonSymbolFlags.Object:member",
1221
+ "docComment": "",
1222
+ "excerptTokens": [
1223
+ {
1224
+ "kind": "Content",
1225
+ "text": "Object = "
1226
+ },
1227
+ {
1228
+ "kind": "Content",
1229
+ "text": "1"
1230
+ }
1231
+ ],
1232
+ "initializerTokenRange": {
1233
+ "startIndex": 1,
1234
+ "endIndex": 2
1235
+ },
1236
+ "releaseTag": "Public",
1237
+ "name": "Object"
1238
+ }
1239
+ ]
1240
+ },
1241
+ {
1242
+ "kind": "Function",
1243
+ "canonicalReference": "@alloy-js/json!JsonValue:function(1)",
1244
+ "docComment": "/**\n * Create a JSON value from a JS value. When the provided JS value is an object, the {@link JsonObject} component will be used. When the provided JS value is an array, the {@link JsonArray} component will be used. Otherwise, the JS value will be serialized to a string, number, boolean, or null as appropriate.\n */\n",
1245
+ "excerptTokens": [
1246
+ {
1247
+ "kind": "Content",
1248
+ "text": "export declare function JsonValue(props: "
1249
+ },
1250
+ {
1251
+ "kind": "Reference",
1252
+ "text": "JsonValueProps",
1253
+ "canonicalReference": "@alloy-js/json!JsonValueProps:interface"
1254
+ },
1255
+ {
1256
+ "kind": "Content",
1257
+ "text": "): "
1258
+ },
1259
+ {
1260
+ "kind": "Content",
1261
+ "text": "import(\"@alloy-js/core\")."
1262
+ },
1263
+ {
1264
+ "kind": "Reference",
1265
+ "text": "Children",
1266
+ "canonicalReference": "@alloy-js/core!Children:type"
1267
+ },
1268
+ {
1269
+ "kind": "Content",
1270
+ "text": ";"
1271
+ }
1272
+ ],
1273
+ "fileUrlPath": "src/components/JsonValue.tsx",
1274
+ "returnTypeTokenRange": {
1275
+ "startIndex": 3,
1276
+ "endIndex": 5
1277
+ },
1278
+ "releaseTag": "Public",
1279
+ "overloadIndex": 1,
1280
+ "parameters": [
1281
+ {
1282
+ "parameterName": "props",
1283
+ "parameterTypeTokenRange": {
1284
+ "startIndex": 1,
1285
+ "endIndex": 2
1286
+ },
1287
+ "isOptional": false
1288
+ }
1289
+ ],
1290
+ "name": "JsonValue"
1291
+ },
1292
+ {
1293
+ "kind": "Interface",
1294
+ "canonicalReference": "@alloy-js/json!JsonValueProps:interface",
1295
+ "docComment": "",
1296
+ "excerptTokens": [
1297
+ {
1298
+ "kind": "Content",
1299
+ "text": "export interface JsonValueProps "
1300
+ }
1301
+ ],
1302
+ "fileUrlPath": "src/components/JsonValue.tsx",
1303
+ "releaseTag": "Public",
1304
+ "name": "JsonValueProps",
1305
+ "preserveMemberOrder": false,
1306
+ "members": [
1307
+ {
1308
+ "kind": "PropertySignature",
1309
+ "canonicalReference": "@alloy-js/json!JsonValueProps#jsValue:member",
1310
+ "docComment": "/**\n * The JS value to serialize to JSON. When provided, thi\n */\n",
1311
+ "excerptTokens": [
1312
+ {
1313
+ "kind": "Content",
1314
+ "text": "jsValue: "
1315
+ },
1316
+ {
1317
+ "kind": "Content",
1318
+ "text": "unknown"
1319
+ },
1320
+ {
1321
+ "kind": "Content",
1322
+ "text": ";"
1323
+ }
1324
+ ],
1325
+ "isReadonly": false,
1326
+ "isOptional": false,
1327
+ "releaseTag": "Public",
1328
+ "name": "jsValue",
1329
+ "propertyTypeTokenRange": {
1330
+ "startIndex": 1,
1331
+ "endIndex": 2
1332
+ }
1333
+ },
1334
+ {
1335
+ "kind": "PropertySignature",
1336
+ "canonicalReference": "@alloy-js/json!JsonValueProps#refkey:member",
1337
+ "docComment": "/**\n * The refkey for the JSON value. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
1338
+ "excerptTokens": [
1339
+ {
1340
+ "kind": "Content",
1341
+ "text": "refkey?: "
1342
+ },
1343
+ {
1344
+ "kind": "Reference",
1345
+ "text": "Refkey",
1346
+ "canonicalReference": "@alloy-js/core!Refkey:type"
1347
+ },
1348
+ {
1349
+ "kind": "Content",
1350
+ "text": ";"
1351
+ }
1352
+ ],
1353
+ "isReadonly": false,
1354
+ "isOptional": true,
1355
+ "releaseTag": "Public",
1356
+ "name": "refkey",
1357
+ "propertyTypeTokenRange": {
1358
+ "startIndex": 1,
1359
+ "endIndex": 2
1360
+ }
1361
+ }
1362
+ ],
1363
+ "extendsTokenRanges": []
1364
+ },
1365
+ {
1366
+ "kind": "TypeAlias",
1367
+ "canonicalReference": "@alloy-js/json!ObjectPropertyProps:type",
1368
+ "docComment": "",
1369
+ "excerptTokens": [
1370
+ {
1371
+ "kind": "Content",
1372
+ "text": "export type ObjectPropertyProps = "
1373
+ },
1374
+ {
1375
+ "kind": "Reference",
1376
+ "text": "ObjectPropertyPropsWithChildren",
1377
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithChildren:interface"
1378
+ },
1379
+ {
1380
+ "kind": "Content",
1381
+ "text": " | "
1382
+ },
1383
+ {
1384
+ "kind": "Reference",
1385
+ "text": "ObjectPropertyPropsWithJsValue",
1386
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithJsValue:interface"
1387
+ },
1388
+ {
1389
+ "kind": "Content",
1390
+ "text": ";"
1391
+ }
1392
+ ],
1393
+ "fileUrlPath": "src/components/JsonObject.tsx",
1394
+ "releaseTag": "Public",
1395
+ "name": "ObjectPropertyProps",
1396
+ "typeTokenRange": {
1397
+ "startIndex": 1,
1398
+ "endIndex": 4
1399
+ }
1400
+ },
1401
+ {
1402
+ "kind": "Interface",
1403
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithChildren:interface",
1404
+ "docComment": "/**\n * Create a JSON object property with a name and children. The children become the value of the property.\n */\n",
1405
+ "excerptTokens": [
1406
+ {
1407
+ "kind": "Content",
1408
+ "text": "export interface ObjectPropertyPropsWithChildren "
1409
+ }
1410
+ ],
1411
+ "fileUrlPath": "src/components/JsonObject.tsx",
1412
+ "releaseTag": "Public",
1413
+ "name": "ObjectPropertyPropsWithChildren",
1414
+ "preserveMemberOrder": false,
1415
+ "members": [
1416
+ {
1417
+ "kind": "PropertySignature",
1418
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithChildren#children:member",
1419
+ "docComment": "",
1420
+ "excerptTokens": [
1421
+ {
1422
+ "kind": "Content",
1423
+ "text": "children: "
1424
+ },
1425
+ {
1426
+ "kind": "Reference",
1427
+ "text": "Children",
1428
+ "canonicalReference": "@alloy-js/core!Children:type"
1429
+ },
1430
+ {
1431
+ "kind": "Content",
1432
+ "text": ";"
1433
+ }
1434
+ ],
1435
+ "isReadonly": false,
1436
+ "isOptional": false,
1437
+ "releaseTag": "Public",
1438
+ "name": "children",
1439
+ "propertyTypeTokenRange": {
1440
+ "startIndex": 1,
1441
+ "endIndex": 2
1442
+ }
1443
+ },
1444
+ {
1445
+ "kind": "PropertySignature",
1446
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithChildren#name:member",
1447
+ "docComment": "",
1448
+ "excerptTokens": [
1449
+ {
1450
+ "kind": "Content",
1451
+ "text": "name: "
1452
+ },
1453
+ {
1454
+ "kind": "Content",
1455
+ "text": "string"
1456
+ },
1457
+ {
1458
+ "kind": "Content",
1459
+ "text": ";"
1460
+ }
1461
+ ],
1462
+ "isReadonly": false,
1463
+ "isOptional": false,
1464
+ "releaseTag": "Public",
1465
+ "name": "name",
1466
+ "propertyTypeTokenRange": {
1467
+ "startIndex": 1,
1468
+ "endIndex": 2
1469
+ }
1470
+ }
1471
+ ],
1472
+ "extendsTokenRanges": []
1473
+ },
1474
+ {
1475
+ "kind": "Interface",
1476
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithJsValue:interface",
1477
+ "docComment": "/**\n * Create a JSON object property with a name and a JS value. The JS value is serialized to JSON for the property\n */\n",
1478
+ "excerptTokens": [
1479
+ {
1480
+ "kind": "Content",
1481
+ "text": "export interface ObjectPropertyPropsWithJsValue "
1482
+ }
1483
+ ],
1484
+ "fileUrlPath": "src/components/JsonObject.tsx",
1485
+ "releaseTag": "Public",
1486
+ "name": "ObjectPropertyPropsWithJsValue",
1487
+ "preserveMemberOrder": false,
1488
+ "members": [
1489
+ {
1490
+ "kind": "PropertySignature",
1491
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithJsValue#jsValue:member",
1492
+ "docComment": "",
1493
+ "excerptTokens": [
1494
+ {
1495
+ "kind": "Content",
1496
+ "text": "jsValue: "
1497
+ },
1498
+ {
1499
+ "kind": "Content",
1500
+ "text": "unknown"
1501
+ },
1502
+ {
1503
+ "kind": "Content",
1504
+ "text": ";"
1505
+ }
1506
+ ],
1507
+ "isReadonly": false,
1508
+ "isOptional": false,
1509
+ "releaseTag": "Public",
1510
+ "name": "jsValue",
1511
+ "propertyTypeTokenRange": {
1512
+ "startIndex": 1,
1513
+ "endIndex": 2
1514
+ }
1515
+ },
1516
+ {
1517
+ "kind": "PropertySignature",
1518
+ "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithJsValue#name:member",
1519
+ "docComment": "",
1520
+ "excerptTokens": [
1521
+ {
1522
+ "kind": "Content",
1523
+ "text": "name: "
1524
+ },
1525
+ {
1526
+ "kind": "Content",
1527
+ "text": "string"
1528
+ },
1529
+ {
1530
+ "kind": "Content",
1531
+ "text": ";"
1532
+ }
1533
+ ],
1534
+ "isReadonly": false,
1535
+ "isOptional": false,
1536
+ "releaseTag": "Public",
1537
+ "name": "name",
1538
+ "propertyTypeTokenRange": {
1539
+ "startIndex": 1,
1540
+ "endIndex": 2
1541
+ }
1542
+ }
1543
+ ],
1544
+ "extendsTokenRanges": []
1545
+ },
1546
+ {
1547
+ "kind": "Function",
1548
+ "canonicalReference": "@alloy-js/json!ref:function(1)",
1549
+ "docComment": "",
1550
+ "excerptTokens": [
1551
+ {
1552
+ "kind": "Content",
1553
+ "text": "export declare function ref(refkey: "
1554
+ },
1555
+ {
1556
+ "kind": "Reference",
1557
+ "text": "Refkey",
1558
+ "canonicalReference": "@alloy-js/core!Refkey:type"
1559
+ },
1560
+ {
1561
+ "kind": "Content",
1562
+ "text": "): "
1563
+ },
1564
+ {
1565
+ "kind": "Content",
1566
+ "text": "\"<Unresolved Symbol>\" | (() => string)"
1567
+ },
1568
+ {
1569
+ "kind": "Content",
1570
+ "text": ";"
1571
+ }
1572
+ ],
1573
+ "fileUrlPath": "src/symbols/index.ts",
1574
+ "returnTypeTokenRange": {
1575
+ "startIndex": 3,
1576
+ "endIndex": 4
1577
+ },
1578
+ "releaseTag": "Public",
1579
+ "overloadIndex": 1,
1580
+ "parameters": [
1581
+ {
1582
+ "parameterName": "refkey",
1583
+ "parameterTypeTokenRange": {
1584
+ "startIndex": 1,
1585
+ "endIndex": 2
1586
+ },
1587
+ "isOptional": false
1588
+ }
1589
+ ],
1590
+ "name": "ref"
1591
+ },
1592
+ {
1593
+ "kind": "Function",
1594
+ "canonicalReference": "@alloy-js/json!Reference:function(1)",
1595
+ "docComment": "/**\n * Emit a reference to a JSON value by its refkey.\n *\n * @remarks\n *\n * Note that when you place a refkey in a template, the refkey will be converted into a reference automatically. Using this component directly is generally not required or recommended.\n */\n",
1596
+ "excerptTokens": [
1597
+ {
1598
+ "kind": "Content",
1599
+ "text": "export declare function Reference(props: "
1600
+ },
1601
+ {
1602
+ "kind": "Reference",
1603
+ "text": "ReferenceProps",
1604
+ "canonicalReference": "@alloy-js/json!ReferenceProps:interface"
1605
+ },
1606
+ {
1607
+ "kind": "Content",
1608
+ "text": "): "
1609
+ },
1610
+ {
1611
+ "kind": "Content",
1612
+ "text": "import(\"@alloy-js/core\")."
1613
+ },
1614
+ {
1615
+ "kind": "Reference",
1616
+ "text": "Children",
1617
+ "canonicalReference": "@alloy-js/core!Children:type"
1618
+ },
1619
+ {
1620
+ "kind": "Content",
1621
+ "text": ";"
1622
+ }
1623
+ ],
1624
+ "fileUrlPath": "src/components/Reference.tsx",
1625
+ "returnTypeTokenRange": {
1626
+ "startIndex": 3,
1627
+ "endIndex": 5
1628
+ },
1629
+ "releaseTag": "Public",
1630
+ "overloadIndex": 1,
1631
+ "parameters": [
1632
+ {
1633
+ "parameterName": "props",
1634
+ "parameterTypeTokenRange": {
1635
+ "startIndex": 1,
1636
+ "endIndex": 2
1637
+ },
1638
+ "isOptional": false
1639
+ }
1640
+ ],
1641
+ "name": "Reference"
1642
+ },
1643
+ {
1644
+ "kind": "Interface",
1645
+ "canonicalReference": "@alloy-js/json!ReferenceProps:interface",
1646
+ "docComment": "",
1647
+ "excerptTokens": [
1648
+ {
1649
+ "kind": "Content",
1650
+ "text": "export interface ReferenceProps "
1651
+ }
1652
+ ],
1653
+ "fileUrlPath": "src/components/Reference.tsx",
1654
+ "releaseTag": "Public",
1655
+ "name": "ReferenceProps",
1656
+ "preserveMemberOrder": false,
1657
+ "members": [
1658
+ {
1659
+ "kind": "PropertySignature",
1660
+ "canonicalReference": "@alloy-js/json!ReferenceProps#refkey:member",
1661
+ "docComment": "/**\n * The refkey for the symbol to reference.\n */\n",
1662
+ "excerptTokens": [
1663
+ {
1664
+ "kind": "Content",
1665
+ "text": "refkey: "
1666
+ },
1667
+ {
1668
+ "kind": "Reference",
1669
+ "text": "Refkey",
1670
+ "canonicalReference": "@alloy-js/core!Refkey:type"
1671
+ },
1672
+ {
1673
+ "kind": "Content",
1674
+ "text": ";"
1675
+ }
1676
+ ],
1677
+ "isReadonly": false,
1678
+ "isOptional": false,
1679
+ "releaseTag": "Public",
1680
+ "name": "refkey",
1681
+ "propertyTypeTokenRange": {
1682
+ "startIndex": 1,
1683
+ "endIndex": 2
1684
+ }
1685
+ }
1686
+ ],
1687
+ "extendsTokenRanges": []
1688
+ },
1689
+ {
1690
+ "kind": "Function",
1691
+ "canonicalReference": "@alloy-js/json!SourceFile:function(1)",
1692
+ "docComment": "/**\n * Creates a JSON source file which defines a JSON value.\n *\n * @see\n *\n * {@link (JsonFileContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(SourceFileContext:variable)}\n */\n",
1693
+ "excerptTokens": [
1694
+ {
1695
+ "kind": "Content",
1696
+ "text": "export declare function SourceFile(props: "
1697
+ },
1698
+ {
1699
+ "kind": "Reference",
1700
+ "text": "SourceFileProps",
1701
+ "canonicalReference": "@alloy-js/json!SourceFileProps:interface"
1702
+ },
1703
+ {
1704
+ "kind": "Content",
1705
+ "text": "): "
1706
+ },
1707
+ {
1708
+ "kind": "Reference",
1709
+ "text": "Children",
1710
+ "canonicalReference": "@alloy-js/core!Children:type"
1711
+ },
1712
+ {
1713
+ "kind": "Content",
1714
+ "text": ";"
1715
+ }
1716
+ ],
1717
+ "fileUrlPath": "src/components/SourceFile.tsx",
1718
+ "returnTypeTokenRange": {
1719
+ "startIndex": 3,
1720
+ "endIndex": 4
1721
+ },
1722
+ "releaseTag": "Public",
1723
+ "overloadIndex": 1,
1724
+ "parameters": [
1725
+ {
1726
+ "parameterName": "props",
1727
+ "parameterTypeTokenRange": {
1728
+ "startIndex": 1,
1729
+ "endIndex": 2
1730
+ },
1731
+ "isOptional": false
1732
+ }
1733
+ ],
1734
+ "name": "SourceFile"
1735
+ },
1736
+ {
1737
+ "kind": "Interface",
1738
+ "canonicalReference": "@alloy-js/json!SourceFileProps:interface",
1739
+ "docComment": "",
1740
+ "excerptTokens": [
1741
+ {
1742
+ "kind": "Content",
1743
+ "text": "export interface SourceFileProps "
1744
+ }
1745
+ ],
1746
+ "fileUrlPath": "src/components/SourceFile.tsx",
1747
+ "releaseTag": "Public",
1748
+ "name": "SourceFileProps",
1749
+ "preserveMemberOrder": false,
1750
+ "members": [
1751
+ {
1752
+ "kind": "PropertySignature",
1753
+ "canonicalReference": "@alloy-js/json!SourceFileProps#children:member",
1754
+ "docComment": "/**\n * The contents of the source file\n */\n",
1755
+ "excerptTokens": [
1756
+ {
1757
+ "kind": "Content",
1758
+ "text": "children?: "
1759
+ },
1760
+ {
1761
+ "kind": "Reference",
1762
+ "text": "Children",
1763
+ "canonicalReference": "@alloy-js/core!Children:type"
1764
+ },
1765
+ {
1766
+ "kind": "Content",
1767
+ "text": ";"
1768
+ }
1769
+ ],
1770
+ "isReadonly": false,
1771
+ "isOptional": true,
1772
+ "releaseTag": "Public",
1773
+ "name": "children",
1774
+ "propertyTypeTokenRange": {
1775
+ "startIndex": 1,
1776
+ "endIndex": 2
1777
+ }
1778
+ },
1779
+ {
1780
+ "kind": "PropertySignature",
1781
+ "canonicalReference": "@alloy-js/json!SourceFileProps#path:member",
1782
+ "docComment": "/**\n * The path for this source file relative to the parent directory\n */\n",
1783
+ "excerptTokens": [
1784
+ {
1785
+ "kind": "Content",
1786
+ "text": "path: "
1787
+ },
1788
+ {
1789
+ "kind": "Content",
1790
+ "text": "string"
1791
+ },
1792
+ {
1793
+ "kind": "Content",
1794
+ "text": ";"
1795
+ }
1796
+ ],
1797
+ "isReadonly": false,
1798
+ "isOptional": false,
1799
+ "releaseTag": "Public",
1800
+ "name": "path",
1801
+ "propertyTypeTokenRange": {
1802
+ "startIndex": 1,
1803
+ "endIndex": 2
1804
+ }
1805
+ }
1806
+ ],
1807
+ "extendsTokenRanges": []
1808
+ },
1809
+ {
1810
+ "kind": "Function",
1811
+ "canonicalReference": "@alloy-js/json!useDefaultScope:function(1)",
1812
+ "docComment": "",
1813
+ "excerptTokens": [
1814
+ {
1815
+ "kind": "Content",
1816
+ "text": "export declare function useDefaultScope(flags?: "
1817
+ },
1818
+ {
1819
+ "kind": "Reference",
1820
+ "text": "OutputSymbolFlags",
1821
+ "canonicalReference": "@alloy-js/core!OutputSymbolFlags:enum"
1822
+ },
1823
+ {
1824
+ "kind": "Content",
1825
+ "text": "): "
1826
+ },
1827
+ {
1828
+ "kind": "Reference",
1829
+ "text": "OutputScope",
1830
+ "canonicalReference": "@alloy-js/core!OutputScope:interface"
1831
+ },
1832
+ {
1833
+ "kind": "Content",
1834
+ "text": " | undefined"
1835
+ },
1836
+ {
1837
+ "kind": "Content",
1838
+ "text": ";"
1839
+ }
1840
+ ],
1841
+ "fileUrlPath": "src/symbols/json-symbol.ts",
1842
+ "returnTypeTokenRange": {
1843
+ "startIndex": 3,
1844
+ "endIndex": 5
1845
+ },
1846
+ "releaseTag": "Public",
1847
+ "overloadIndex": 1,
1848
+ "parameters": [
1849
+ {
1850
+ "parameterName": "flags",
1851
+ "parameterTypeTokenRange": {
1852
+ "startIndex": 1,
1853
+ "endIndex": 2
1854
+ },
1855
+ "isOptional": true
1856
+ }
1857
+ ],
1858
+ "name": "useDefaultScope"
1859
+ },
1860
+ {
1861
+ "kind": "Function",
1862
+ "canonicalReference": "@alloy-js/json!useJsonFileContext:function(1)",
1863
+ "docComment": "",
1864
+ "excerptTokens": [
1865
+ {
1866
+ "kind": "Content",
1867
+ "text": "export declare function useJsonFileContext(): "
1868
+ },
1869
+ {
1870
+ "kind": "Reference",
1871
+ "text": "JsonFileContext",
1872
+ "canonicalReference": "@alloy-js/json!JsonFileContext:interface"
1873
+ },
1874
+ {
1875
+ "kind": "Content",
1876
+ "text": " | undefined"
1877
+ },
1878
+ {
1879
+ "kind": "Content",
1880
+ "text": ";"
1881
+ }
1882
+ ],
1883
+ "fileUrlPath": "src/context/JsonFileContext.ts",
1884
+ "returnTypeTokenRange": {
1885
+ "startIndex": 1,
1886
+ "endIndex": 3
1887
+ },
1888
+ "releaseTag": "Public",
1889
+ "overloadIndex": 1,
1890
+ "parameters": [],
1891
+ "name": "useJsonFileContext"
1892
+ }
1893
+ ]
1894
+ }
1895
+ ]
1896
+ }