@teambit/react-router 1.0.511 → 1.0.513

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.
@@ -0,0 +1,1368 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 10
22
+ },
23
+ "signature": "enum Routing",
24
+ "name": "Routing",
25
+ "exportNode": {
26
+ "__schema": "EnumSchema",
27
+ "location": {
28
+ "filePath": "routing-method.tsx",
29
+ "line": 1,
30
+ "character": 1
31
+ },
32
+ "signature": "enum Routing",
33
+ "name": "Routing",
34
+ "members": [
35
+ {
36
+ "__schema": "EnumMemberSchema",
37
+ "location": {
38
+ "filePath": "routing-method.tsx",
39
+ "line": 2,
40
+ "character": 3
41
+ },
42
+ "signature": "(enum member) Routing.url = 0",
43
+ "name": "url"
44
+ },
45
+ {
46
+ "__schema": "EnumMemberSchema",
47
+ "location": {
48
+ "filePath": "routing-method.tsx",
49
+ "line": 3,
50
+ "character": 3
51
+ },
52
+ "signature": "(enum member) Routing.hash = 1",
53
+ "name": "hash"
54
+ },
55
+ {
56
+ "__schema": "EnumMemberSchema",
57
+ "location": {
58
+ "filePath": "routing-method.tsx",
59
+ "line": 4,
60
+ "character": 3
61
+ },
62
+ "signature": "(enum member) Routing.inMemory = 2",
63
+ "name": "inMemory"
64
+ },
65
+ {
66
+ "__schema": "EnumMemberSchema",
67
+ "location": {
68
+ "filePath": "routing-method.tsx",
69
+ "line": 5,
70
+ "character": 3
71
+ },
72
+ "signature": "(enum member) Routing.static = 3",
73
+ "name": "static"
74
+ }
75
+ ]
76
+ }
77
+ },
78
+ {
79
+ "__schema": "ExportSchema",
80
+ "location": {
81
+ "filePath": "index.ts",
82
+ "line": 4,
83
+ "character": 15
84
+ },
85
+ "signature": "class ReactRouterUI",
86
+ "name": "ReactRouterUI",
87
+ "exportNode": {
88
+ "__schema": "ClassSchema",
89
+ "location": {
90
+ "filePath": "react-router.ui.runtime.tsx",
91
+ "line": 18,
92
+ "character": 1
93
+ },
94
+ "signature": "class ReactRouterUI",
95
+ "name": "ReactRouterUI",
96
+ "members": [
97
+ {
98
+ "__schema": "ConstructorSchema",
99
+ "location": {
100
+ "filePath": "react-router.ui.runtime.tsx",
101
+ "line": 21,
102
+ "character": 3
103
+ },
104
+ "signature": "constructor ReactRouterUI(routeSlot: RouteSlot, routeChangeListener: RouteChangeSlot): ReactRouterUI",
105
+ "name": "constructor",
106
+ "params": [
107
+ {
108
+ "__schema": "ParameterSchema",
109
+ "location": {
110
+ "filePath": "react-router.ui.runtime.tsx",
111
+ "line": 25,
112
+ "character": 5
113
+ },
114
+ "name": "routeSlot",
115
+ "type": {
116
+ "__schema": "TypeRefSchema",
117
+ "location": {
118
+ "filePath": "react-router.ui.runtime.tsx",
119
+ "line": 25,
120
+ "character": 24
121
+ },
122
+ "name": "RouteSlot"
123
+ },
124
+ "isOptional": false,
125
+ "isSpread": false
126
+ },
127
+ {
128
+ "__schema": "ParameterSchema",
129
+ "location": {
130
+ "filePath": "react-router.ui.runtime.tsx",
131
+ "line": 29,
132
+ "character": 5
133
+ },
134
+ "name": "routeChangeListener",
135
+ "type": {
136
+ "__schema": "TypeRefSchema",
137
+ "location": {
138
+ "filePath": "react-router.ui.runtime.tsx",
139
+ "line": 29,
140
+ "character": 34
141
+ },
142
+ "name": "RouteChangeSlot"
143
+ },
144
+ "isOptional": false,
145
+ "isSpread": false
146
+ }
147
+ ],
148
+ "returnType": {
149
+ "__schema": "ThisTypeSchema",
150
+ "location": {
151
+ "filePath": "react-router.ui.runtime.tsx",
152
+ "line": 18,
153
+ "character": 1
154
+ },
155
+ "name": "ReactRouterUI"
156
+ },
157
+ "modifiers": []
158
+ },
159
+ {
160
+ "__schema": "ReactSchema",
161
+ "location": {
162
+ "filePath": "react-router.ui.runtime.tsx",
163
+ "line": 35,
164
+ "character": 3
165
+ },
166
+ "doc": {
167
+ "__schema": "DocSchema",
168
+ "location": {
169
+ "filePath": "react-router.ui.runtime.tsx",
170
+ "line": 32,
171
+ "character": 3
172
+ },
173
+ "raw": "/**\n * render all slot routes.\n */",
174
+ "comment": "render all slot routes.",
175
+ "tags": []
176
+ },
177
+ "signature": "(method) ReactRouterUI.renderRoutes(routes: RouteProps[]): React.JSX.Element",
178
+ "name": "renderRoutes",
179
+ "props": {
180
+ "__schema": "ParameterSchema",
181
+ "location": {
182
+ "filePath": "react-router.ui.runtime.tsx",
183
+ "line": 35,
184
+ "character": 16
185
+ },
186
+ "name": "routes",
187
+ "type": {
188
+ "__schema": "TypeArraySchema",
189
+ "location": {
190
+ "filePath": "react-router.ui.runtime.tsx",
191
+ "line": 35,
192
+ "character": 24
193
+ },
194
+ "type": {
195
+ "__schema": "TypeRefSchema",
196
+ "location": {
197
+ "filePath": "react-router.ui.runtime.tsx",
198
+ "line": 35,
199
+ "character": 24
200
+ },
201
+ "name": "RouteProps"
202
+ }
203
+ },
204
+ "isOptional": false,
205
+ "isSpread": false
206
+ },
207
+ "returnType": {
208
+ "__schema": "TypeRefSchema",
209
+ "location": {
210
+ "filePath": "react-router.ui.runtime.tsx",
211
+ "line": 35,
212
+ "character": 3
213
+ },
214
+ "name": "React.JSX.Element",
215
+ "packageName": "react"
216
+ },
217
+ "modifiers": []
218
+ },
219
+ {
220
+ "__schema": "FunctionLikeSchema",
221
+ "location": {
222
+ "filePath": "react-router.ui.runtime.tsx",
223
+ "line": 44,
224
+ "character": 3
225
+ },
226
+ "doc": {
227
+ "__schema": "DocSchema",
228
+ "location": {
229
+ "filePath": "react-router.ui.runtime.tsx",
230
+ "line": 39,
231
+ "character": 3
232
+ },
233
+ "raw": "/** decides how navigation is stored and applied.\n * Url - updates the `window.location.pathname`.\n * Hash - updates `window.location.hash`.\n * InMemory - store state internally and don't update the browser.\n */",
234
+ "comment": "decides how navigation is stored and applied.\nUrl - updates the `window.location.pathname`.\nHash - updates `window.location.hash`.\nInMemory - store state internally and don't update the browser.",
235
+ "tags": []
236
+ },
237
+ "signature": "(method) ReactRouterUI.setRoutingMode(routing: Routing): void",
238
+ "name": "setRoutingMode",
239
+ "params": [
240
+ {
241
+ "__schema": "ParameterSchema",
242
+ "location": {
243
+ "filePath": "react-router.ui.runtime.tsx",
244
+ "line": 44,
245
+ "character": 18
246
+ },
247
+ "name": "routing",
248
+ "type": {
249
+ "__schema": "TypeRefSchema",
250
+ "location": {
251
+ "filePath": "react-router.ui.runtime.tsx",
252
+ "line": 44,
253
+ "character": 27
254
+ },
255
+ "name": "Routing"
256
+ },
257
+ "isOptional": false,
258
+ "isSpread": false
259
+ }
260
+ ],
261
+ "returnType": {
262
+ "__schema": "InferenceTypeSchema",
263
+ "location": {
264
+ "filePath": "react-router.ui.runtime.tsx",
265
+ "line": 44,
266
+ "character": 3
267
+ },
268
+ "type": "void"
269
+ },
270
+ "modifiers": []
271
+ },
272
+ {
273
+ "__schema": "FunctionLikeSchema",
274
+ "location": {
275
+ "filePath": "react-router.ui.runtime.tsx",
276
+ "line": 51,
277
+ "character": 3
278
+ },
279
+ "doc": {
280
+ "__schema": "DocSchema",
281
+ "location": {
282
+ "filePath": "react-router.ui.runtime.tsx",
283
+ "line": 48,
284
+ "character": 3
285
+ },
286
+ "raw": "/**\n * register a new route.\n */",
287
+ "comment": "register a new route.",
288
+ "tags": []
289
+ },
290
+ "signature": "(method) ReactRouterUI.register(route: RouteProps): this",
291
+ "name": "register",
292
+ "params": [
293
+ {
294
+ "__schema": "ParameterSchema",
295
+ "location": {
296
+ "filePath": "react-router.ui.runtime.tsx",
297
+ "line": 51,
298
+ "character": 12
299
+ },
300
+ "name": "route",
301
+ "type": {
302
+ "__schema": "TypeRefSchema",
303
+ "location": {
304
+ "filePath": "react-router.ui.runtime.tsx",
305
+ "line": 51,
306
+ "character": 19
307
+ },
308
+ "name": "RouteProps"
309
+ },
310
+ "isOptional": false,
311
+ "isSpread": false
312
+ }
313
+ ],
314
+ "returnType": {
315
+ "__schema": "TypeRefSchema",
316
+ "location": {
317
+ "filePath": "react-router.ui.runtime.tsx",
318
+ "line": 51,
319
+ "character": 3
320
+ },
321
+ "name": "ReactRouterUI"
322
+ },
323
+ "modifiers": []
324
+ },
325
+ {
326
+ "__schema": "FunctionLikeSchema",
327
+ "location": {
328
+ "filePath": "react-router.ui.runtime.tsx",
329
+ "line": 56,
330
+ "character": 3
331
+ },
332
+ "signature": "(method) ReactRouterUI.registerListener(listener: LocationListener): void",
333
+ "name": "registerListener",
334
+ "params": [
335
+ {
336
+ "__schema": "ParameterSchema",
337
+ "location": {
338
+ "filePath": "react-router.ui.runtime.tsx",
339
+ "line": 56,
340
+ "character": 20
341
+ },
342
+ "name": "listener",
343
+ "type": {
344
+ "__schema": "TypeRefSchema",
345
+ "location": {
346
+ "filePath": "react-router.ui.runtime.tsx",
347
+ "line": 56,
348
+ "character": 30
349
+ },
350
+ "name": "LocationListener"
351
+ },
352
+ "isOptional": false,
353
+ "isSpread": false
354
+ }
355
+ ],
356
+ "returnType": {
357
+ "__schema": "InferenceTypeSchema",
358
+ "location": {
359
+ "filePath": "react-router.ui.runtime.tsx",
360
+ "line": 56,
361
+ "character": 3
362
+ },
363
+ "type": "void"
364
+ },
365
+ "modifiers": []
366
+ },
367
+ {
368
+ "__schema": "VariableLikeSchema",
369
+ "location": {
370
+ "filePath": "react-router.ui.runtime.tsx",
371
+ "line": 63,
372
+ "character": 3
373
+ },
374
+ "doc": {
375
+ "__schema": "DocSchema",
376
+ "location": {
377
+ "filePath": "react-router.ui.runtime.tsx",
378
+ "line": 60,
379
+ "character": 3
380
+ },
381
+ "raw": "/**\n * change browser location\n */",
382
+ "comment": "change browser location",
383
+ "tags": []
384
+ },
385
+ "signature": "(property) ReactRouterUI.navigateTo: (path: Location | string, action?: NavigationType) => void",
386
+ "name": "navigateTo",
387
+ "type": {
388
+ "__schema": "InferenceTypeSchema",
389
+ "location": {
390
+ "filePath": "react-router.ui.runtime.tsx",
391
+ "line": 63,
392
+ "character": 3
393
+ },
394
+ "type": "(path: Location | string, action?: NavigationType) => void"
395
+ },
396
+ "isOptional": true,
397
+ "defaultValue": "(\n /** destination */\n path: Location | string,\n /** history action to execute (pop / push / replace) */\n action?: NavigationType\n ) => {\n const state = typeof path !== 'string' ? path.state : undefined;\n\n switch (action) {\n case 'POP':\n return; // TBD;\n case 'REPLACE':\n this.navigate?.(path, { replace: true, state });\n return;\n case 'PUSH':\n default:\n this.navigate?.(path, { state });\n }\n }"
398
+ },
399
+ {
400
+ "__schema": "VariableLikeSchema",
401
+ "location": {
402
+ "filePath": "react-router.ui.runtime.tsx",
403
+ "line": 114,
404
+ "character": 3
405
+ },
406
+ "signature": "(property) ReactRouterUI.renderPlugin: SSR.RenderPlugin<RenderContext, unknown>",
407
+ "name": "renderPlugin",
408
+ "type": {
409
+ "__schema": "TypeRefSchema",
410
+ "location": {
411
+ "filePath": "react-router.ui.runtime.tsx",
412
+ "line": 114,
413
+ "character": 24
414
+ },
415
+ "name": "SSR.RenderPlugin",
416
+ "typeArgs": [
417
+ {
418
+ "__schema": "TypeRefSchema",
419
+ "location": {
420
+ "filePath": "react-router.ui.runtime.tsx",
421
+ "line": 114,
422
+ "character": 41
423
+ },
424
+ "name": "RenderContext"
425
+ }
426
+ ]
427
+ },
428
+ "isOptional": true,
429
+ "defaultValue": "{\n browserInit: () => {\n const initialLocation = `${window.location.pathname}${window.location.search}${window.location.hash}`;\n return { initialLocation };\n },\n serverInit: ({ browser }) => {\n const initialLocation = browser?.location.url;\n return { initialLocation };\n },\n reactClientContext: this.RoutingContext,\n reactServerContext: this.ServerRouting,\n }"
430
+ },
431
+ {
432
+ "__schema": "VariableLikeSchema",
433
+ "location": {
434
+ "filePath": "react-router.ui.runtime.tsx",
435
+ "line": 127,
436
+ "character": 3
437
+ },
438
+ "signature": "(property) ReactRouterUI.slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]",
439
+ "name": "slots",
440
+ "type": {
441
+ "__schema": "InferenceTypeSchema",
442
+ "location": {
443
+ "filePath": "react-router.ui.runtime.tsx",
444
+ "line": 127,
445
+ "character": 3
446
+ },
447
+ "type": "(((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]"
448
+ },
449
+ "isOptional": true,
450
+ "defaultValue": "[Slot.withType<RouteProps>(), Slot.withType<LocationListener>()]"
451
+ },
452
+ {
453
+ "__schema": "VariableLikeSchema",
454
+ "location": {
455
+ "filePath": "react-router.ui.runtime.tsx",
456
+ "line": 128,
457
+ "character": 3
458
+ },
459
+ "signature": "(property) ReactRouterUI.runtime: RuntimeDefinition",
460
+ "name": "runtime",
461
+ "type": {
462
+ "__schema": "InferenceTypeSchema",
463
+ "location": {
464
+ "filePath": "react-router.ui.runtime.tsx",
465
+ "line": 128,
466
+ "character": 3
467
+ },
468
+ "type": "RuntimeDefinition"
469
+ },
470
+ "isOptional": true,
471
+ "defaultValue": "UIRuntime"
472
+ },
473
+ {
474
+ "__schema": "FunctionLikeSchema",
475
+ "location": {
476
+ "filePath": "react-router.ui.runtime.tsx",
477
+ "line": 130,
478
+ "character": 3
479
+ },
480
+ "signature": "(method) ReactRouterUI.provider(deps: any, config: any, [routeSlot, routeChangeSlot]: [RouteSlot, RouteChangeSlot]): Promise<ReactRouterUI>",
481
+ "name": "provider",
482
+ "params": [
483
+ {
484
+ "__schema": "ParameterSchema",
485
+ "location": {
486
+ "filePath": "react-router.ui.runtime.tsx",
487
+ "line": 130,
488
+ "character": 25
489
+ },
490
+ "name": "deps",
491
+ "type": {
492
+ "__schema": "InferenceTypeSchema",
493
+ "location": {
494
+ "filePath": "react-router.ui.runtime.tsx",
495
+ "line": 130,
496
+ "character": 25
497
+ },
498
+ "type": "any"
499
+ },
500
+ "isOptional": false,
501
+ "isSpread": false
502
+ },
503
+ {
504
+ "__schema": "ParameterSchema",
505
+ "location": {
506
+ "filePath": "react-router.ui.runtime.tsx",
507
+ "line": 130,
508
+ "character": 31
509
+ },
510
+ "name": "config",
511
+ "type": {
512
+ "__schema": "InferenceTypeSchema",
513
+ "location": {
514
+ "filePath": "react-router.ui.runtime.tsx",
515
+ "line": 130,
516
+ "character": 31
517
+ },
518
+ "type": "any"
519
+ },
520
+ "isOptional": false,
521
+ "isSpread": false
522
+ },
523
+ {
524
+ "__schema": "ParameterSchema",
525
+ "location": {
526
+ "filePath": "react-router.ui.runtime.tsx",
527
+ "line": 130,
528
+ "character": 39
529
+ },
530
+ "name": "[ routeSlot, routeChangeSlot ]",
531
+ "type": {
532
+ "__schema": "TupleTypeSchema",
533
+ "location": {
534
+ "filePath": "react-router.ui.runtime.tsx",
535
+ "line": 130,
536
+ "character": 69
537
+ },
538
+ "elements": [
539
+ {
540
+ "__schema": "TypeRefSchema",
541
+ "location": {
542
+ "filePath": "react-router.ui.runtime.tsx",
543
+ "line": 130,
544
+ "character": 70
545
+ },
546
+ "name": "RouteSlot"
547
+ },
548
+ {
549
+ "__schema": "TypeRefSchema",
550
+ "location": {
551
+ "filePath": "react-router.ui.runtime.tsx",
552
+ "line": 130,
553
+ "character": 81
554
+ },
555
+ "name": "RouteChangeSlot"
556
+ }
557
+ ]
558
+ },
559
+ "isOptional": false,
560
+ "isSpread": false
561
+ }
562
+ ],
563
+ "returnType": {
564
+ "__schema": "InferenceTypeSchema",
565
+ "location": {
566
+ "filePath": "react-router.ui.runtime.tsx",
567
+ "line": 130,
568
+ "character": 3
569
+ },
570
+ "type": "Promise<ReactRouterUI>"
571
+ },
572
+ "modifiers": [
573
+ "static",
574
+ "async"
575
+ ]
576
+ }
577
+ ],
578
+ "extendsNodes": [],
579
+ "implementNodes": []
580
+ }
581
+ },
582
+ {
583
+ "__schema": "TypeRefSchema",
584
+ "location": {
585
+ "filePath": "index.ts",
586
+ "line": 6,
587
+ "character": 1
588
+ },
589
+ "name": "navigation",
590
+ "componentId": {
591
+ "scope": "teambit.base-react",
592
+ "name": "navigation/link",
593
+ "version": "2.0.31"
594
+ }
595
+ },
596
+ {
597
+ "__schema": "TypeRefSchema",
598
+ "location": {
599
+ "filePath": "index.ts",
600
+ "line": 7,
601
+ "character": 1
602
+ },
603
+ "name": "ReactRouter",
604
+ "packageName": "react-router-dom"
605
+ },
606
+ {
607
+ "__schema": "ExportSchema",
608
+ "location": {
609
+ "filePath": "index.ts",
610
+ "line": 9,
611
+ "character": 10
612
+ },
613
+ "signature": "const ReactRouterAspect: Aspect",
614
+ "name": "ReactRouterAspect",
615
+ "exportNode": {
616
+ "__schema": "VariableLikeSchema",
617
+ "location": {
618
+ "filePath": "react-router.aspect.ts",
619
+ "line": 3,
620
+ "character": 14
621
+ },
622
+ "signature": "const ReactRouterAspect: Aspect",
623
+ "name": "ReactRouterAspect",
624
+ "type": {
625
+ "__schema": "TypeRefSchema",
626
+ "location": {
627
+ "filePath": "react-router.aspect.ts",
628
+ "line": 3,
629
+ "character": 14
630
+ },
631
+ "name": "Aspect",
632
+ "componentId": {
633
+ "scope": "teambit.harmony",
634
+ "name": "harmony",
635
+ "version": "0.4.6"
636
+ }
637
+ },
638
+ "isOptional": false,
639
+ "defaultValue": "Aspect.create({\n id: 'teambit.ui-foundation/react-router',\n})"
640
+ }
641
+ },
642
+ {
643
+ "__schema": "UnImplementedSchema",
644
+ "location": {
645
+ "filePath": "index.ts",
646
+ "line": 10,
647
+ "character": 16
648
+ },
649
+ "name": "ReactRouterAspect",
650
+ "type": "Identifier"
651
+ }
652
+ ],
653
+ "internals": []
654
+ },
655
+ "internals": [
656
+ {
657
+ "__schema": "ModuleSchema",
658
+ "location": {
659
+ "filePath": "react-router.ui.runtime.tsx",
660
+ "line": 1,
661
+ "character": 1
662
+ },
663
+ "exports": [
664
+ {
665
+ "__schema": "TypeSchema",
666
+ "location": {
667
+ "filePath": "react-router.ui.runtime.tsx",
668
+ "line": 14,
669
+ "character": 1
670
+ },
671
+ "signature": "type LocationListener = (location: Location, action: NavigationType) => void",
672
+ "name": "LocationListener",
673
+ "type": {
674
+ "__schema": "FunctionLikeSchema",
675
+ "location": {
676
+ "filePath": "react-router.ui.runtime.tsx",
677
+ "line": 14,
678
+ "character": 32
679
+ },
680
+ "signature": "(location: Location, action: NavigationType): void",
681
+ "name": "",
682
+ "params": [
683
+ {
684
+ "__schema": "ParameterSchema",
685
+ "location": {
686
+ "filePath": "react-router.ui.runtime.tsx",
687
+ "line": 14,
688
+ "character": 33
689
+ },
690
+ "name": "location",
691
+ "type": {
692
+ "__schema": "TypeRefSchema",
693
+ "location": {
694
+ "filePath": "react-router.ui.runtime.tsx",
695
+ "line": 14,
696
+ "character": 43
697
+ },
698
+ "name": "Location"
699
+ },
700
+ "isOptional": false,
701
+ "isSpread": false
702
+ },
703
+ {
704
+ "__schema": "ParameterSchema",
705
+ "location": {
706
+ "filePath": "react-router.ui.runtime.tsx",
707
+ "line": 14,
708
+ "character": 53
709
+ },
710
+ "name": "action",
711
+ "type": {
712
+ "__schema": "TypeRefSchema",
713
+ "location": {
714
+ "filePath": "react-router.ui.runtime.tsx",
715
+ "line": 14,
716
+ "character": 61
717
+ },
718
+ "name": "NavigationType"
719
+ },
720
+ "isOptional": false,
721
+ "isSpread": false
722
+ }
723
+ ],
724
+ "returnType": {
725
+ "__schema": "KeywordTypeSchema",
726
+ "location": {
727
+ "filePath": "react-router.ui.runtime.tsx",
728
+ "line": 14,
729
+ "character": 80
730
+ },
731
+ "name": "void"
732
+ },
733
+ "modifiers": []
734
+ }
735
+ },
736
+ {
737
+ "__schema": "ClassSchema",
738
+ "location": {
739
+ "filePath": "react-router.ui.runtime.tsx",
740
+ "line": 18,
741
+ "character": 1
742
+ },
743
+ "signature": "class ReactRouterUI",
744
+ "name": "ReactRouterUI",
745
+ "members": [
746
+ {
747
+ "__schema": "ConstructorSchema",
748
+ "location": {
749
+ "filePath": "react-router.ui.runtime.tsx",
750
+ "line": 21,
751
+ "character": 3
752
+ },
753
+ "signature": "constructor ReactRouterUI(routeSlot: RouteSlot, routeChangeListener: RouteChangeSlot): ReactRouterUI",
754
+ "name": "constructor",
755
+ "params": [
756
+ {
757
+ "__schema": "ParameterSchema",
758
+ "location": {
759
+ "filePath": "react-router.ui.runtime.tsx",
760
+ "line": 25,
761
+ "character": 5
762
+ },
763
+ "name": "routeSlot",
764
+ "type": {
765
+ "__schema": "TypeRefSchema",
766
+ "location": {
767
+ "filePath": "react-router.ui.runtime.tsx",
768
+ "line": 25,
769
+ "character": 24
770
+ },
771
+ "name": "RouteSlot"
772
+ },
773
+ "isOptional": false,
774
+ "isSpread": false
775
+ },
776
+ {
777
+ "__schema": "ParameterSchema",
778
+ "location": {
779
+ "filePath": "react-router.ui.runtime.tsx",
780
+ "line": 29,
781
+ "character": 5
782
+ },
783
+ "name": "routeChangeListener",
784
+ "type": {
785
+ "__schema": "TypeRefSchema",
786
+ "location": {
787
+ "filePath": "react-router.ui.runtime.tsx",
788
+ "line": 29,
789
+ "character": 34
790
+ },
791
+ "name": "RouteChangeSlot"
792
+ },
793
+ "isOptional": false,
794
+ "isSpread": false
795
+ }
796
+ ],
797
+ "returnType": {
798
+ "__schema": "ThisTypeSchema",
799
+ "location": {
800
+ "filePath": "react-router.ui.runtime.tsx",
801
+ "line": 18,
802
+ "character": 1
803
+ },
804
+ "name": "ReactRouterUI"
805
+ },
806
+ "modifiers": []
807
+ },
808
+ {
809
+ "__schema": "ReactSchema",
810
+ "location": {
811
+ "filePath": "react-router.ui.runtime.tsx",
812
+ "line": 35,
813
+ "character": 3
814
+ },
815
+ "doc": {
816
+ "__schema": "DocSchema",
817
+ "location": {
818
+ "filePath": "react-router.ui.runtime.tsx",
819
+ "line": 32,
820
+ "character": 3
821
+ },
822
+ "raw": "/**\n * render all slot routes.\n */",
823
+ "comment": "render all slot routes.",
824
+ "tags": []
825
+ },
826
+ "signature": "(method) ReactRouterUI.renderRoutes(routes: RouteProps[]): React.JSX.Element",
827
+ "name": "renderRoutes",
828
+ "props": {
829
+ "__schema": "ParameterSchema",
830
+ "location": {
831
+ "filePath": "react-router.ui.runtime.tsx",
832
+ "line": 35,
833
+ "character": 16
834
+ },
835
+ "name": "routes",
836
+ "type": {
837
+ "__schema": "TypeArraySchema",
838
+ "location": {
839
+ "filePath": "react-router.ui.runtime.tsx",
840
+ "line": 35,
841
+ "character": 24
842
+ },
843
+ "type": {
844
+ "__schema": "TypeRefSchema",
845
+ "location": {
846
+ "filePath": "react-router.ui.runtime.tsx",
847
+ "line": 35,
848
+ "character": 24
849
+ },
850
+ "name": "RouteProps"
851
+ }
852
+ },
853
+ "isOptional": false,
854
+ "isSpread": false
855
+ },
856
+ "returnType": {
857
+ "__schema": "TypeRefSchema",
858
+ "location": {
859
+ "filePath": "react-router.ui.runtime.tsx",
860
+ "line": 35,
861
+ "character": 3
862
+ },
863
+ "name": "React.JSX.Element",
864
+ "packageName": "react"
865
+ },
866
+ "modifiers": []
867
+ },
868
+ {
869
+ "__schema": "FunctionLikeSchema",
870
+ "location": {
871
+ "filePath": "react-router.ui.runtime.tsx",
872
+ "line": 44,
873
+ "character": 3
874
+ },
875
+ "doc": {
876
+ "__schema": "DocSchema",
877
+ "location": {
878
+ "filePath": "react-router.ui.runtime.tsx",
879
+ "line": 39,
880
+ "character": 3
881
+ },
882
+ "raw": "/** decides how navigation is stored and applied.\n * Url - updates the `window.location.pathname`.\n * Hash - updates `window.location.hash`.\n * InMemory - store state internally and don't update the browser.\n */",
883
+ "comment": "decides how navigation is stored and applied.\nUrl - updates the `window.location.pathname`.\nHash - updates `window.location.hash`.\nInMemory - store state internally and don't update the browser.",
884
+ "tags": []
885
+ },
886
+ "signature": "(method) ReactRouterUI.setRoutingMode(routing: Routing): void",
887
+ "name": "setRoutingMode",
888
+ "params": [
889
+ {
890
+ "__schema": "ParameterSchema",
891
+ "location": {
892
+ "filePath": "react-router.ui.runtime.tsx",
893
+ "line": 44,
894
+ "character": 18
895
+ },
896
+ "name": "routing",
897
+ "type": {
898
+ "__schema": "TypeRefSchema",
899
+ "location": {
900
+ "filePath": "react-router.ui.runtime.tsx",
901
+ "line": 44,
902
+ "character": 27
903
+ },
904
+ "name": "Routing"
905
+ },
906
+ "isOptional": false,
907
+ "isSpread": false
908
+ }
909
+ ],
910
+ "returnType": {
911
+ "__schema": "InferenceTypeSchema",
912
+ "location": {
913
+ "filePath": "react-router.ui.runtime.tsx",
914
+ "line": 44,
915
+ "character": 3
916
+ },
917
+ "type": "void"
918
+ },
919
+ "modifiers": []
920
+ },
921
+ {
922
+ "__schema": "FunctionLikeSchema",
923
+ "location": {
924
+ "filePath": "react-router.ui.runtime.tsx",
925
+ "line": 51,
926
+ "character": 3
927
+ },
928
+ "doc": {
929
+ "__schema": "DocSchema",
930
+ "location": {
931
+ "filePath": "react-router.ui.runtime.tsx",
932
+ "line": 48,
933
+ "character": 3
934
+ },
935
+ "raw": "/**\n * register a new route.\n */",
936
+ "comment": "register a new route.",
937
+ "tags": []
938
+ },
939
+ "signature": "(method) ReactRouterUI.register(route: RouteProps): this",
940
+ "name": "register",
941
+ "params": [
942
+ {
943
+ "__schema": "ParameterSchema",
944
+ "location": {
945
+ "filePath": "react-router.ui.runtime.tsx",
946
+ "line": 51,
947
+ "character": 12
948
+ },
949
+ "name": "route",
950
+ "type": {
951
+ "__schema": "TypeRefSchema",
952
+ "location": {
953
+ "filePath": "react-router.ui.runtime.tsx",
954
+ "line": 51,
955
+ "character": 19
956
+ },
957
+ "name": "RouteProps"
958
+ },
959
+ "isOptional": false,
960
+ "isSpread": false
961
+ }
962
+ ],
963
+ "returnType": {
964
+ "__schema": "TypeRefSchema",
965
+ "location": {
966
+ "filePath": "react-router.ui.runtime.tsx",
967
+ "line": 51,
968
+ "character": 3
969
+ },
970
+ "name": "ReactRouterUI"
971
+ },
972
+ "modifiers": []
973
+ },
974
+ {
975
+ "__schema": "FunctionLikeSchema",
976
+ "location": {
977
+ "filePath": "react-router.ui.runtime.tsx",
978
+ "line": 56,
979
+ "character": 3
980
+ },
981
+ "signature": "(method) ReactRouterUI.registerListener(listener: LocationListener): void",
982
+ "name": "registerListener",
983
+ "params": [
984
+ {
985
+ "__schema": "ParameterSchema",
986
+ "location": {
987
+ "filePath": "react-router.ui.runtime.tsx",
988
+ "line": 56,
989
+ "character": 20
990
+ },
991
+ "name": "listener",
992
+ "type": {
993
+ "__schema": "TypeRefSchema",
994
+ "location": {
995
+ "filePath": "react-router.ui.runtime.tsx",
996
+ "line": 56,
997
+ "character": 30
998
+ },
999
+ "name": "LocationListener"
1000
+ },
1001
+ "isOptional": false,
1002
+ "isSpread": false
1003
+ }
1004
+ ],
1005
+ "returnType": {
1006
+ "__schema": "InferenceTypeSchema",
1007
+ "location": {
1008
+ "filePath": "react-router.ui.runtime.tsx",
1009
+ "line": 56,
1010
+ "character": 3
1011
+ },
1012
+ "type": "void"
1013
+ },
1014
+ "modifiers": []
1015
+ },
1016
+ {
1017
+ "__schema": "VariableLikeSchema",
1018
+ "location": {
1019
+ "filePath": "react-router.ui.runtime.tsx",
1020
+ "line": 63,
1021
+ "character": 3
1022
+ },
1023
+ "doc": {
1024
+ "__schema": "DocSchema",
1025
+ "location": {
1026
+ "filePath": "react-router.ui.runtime.tsx",
1027
+ "line": 60,
1028
+ "character": 3
1029
+ },
1030
+ "raw": "/**\n * change browser location\n */",
1031
+ "comment": "change browser location",
1032
+ "tags": []
1033
+ },
1034
+ "signature": "(property) ReactRouterUI.navigateTo: (path: Location | string, action?: NavigationType) => void",
1035
+ "name": "navigateTo",
1036
+ "type": {
1037
+ "__schema": "InferenceTypeSchema",
1038
+ "location": {
1039
+ "filePath": "react-router.ui.runtime.tsx",
1040
+ "line": 63,
1041
+ "character": 3
1042
+ },
1043
+ "type": "(path: Location | string, action?: NavigationType) => void"
1044
+ },
1045
+ "isOptional": true,
1046
+ "defaultValue": "(\n /** destination */\n path: Location | string,\n /** history action to execute (pop / push / replace) */\n action?: NavigationType\n ) => {\n const state = typeof path !== 'string' ? path.state : undefined;\n\n switch (action) {\n case 'POP':\n return; // TBD;\n case 'REPLACE':\n this.navigate?.(path, { replace: true, state });\n return;\n case 'PUSH':\n default:\n this.navigate?.(path, { state });\n }\n }"
1047
+ },
1048
+ {
1049
+ "__schema": "VariableLikeSchema",
1050
+ "location": {
1051
+ "filePath": "react-router.ui.runtime.tsx",
1052
+ "line": 114,
1053
+ "character": 3
1054
+ },
1055
+ "signature": "(property) ReactRouterUI.renderPlugin: SSR.RenderPlugin<RenderContext, unknown>",
1056
+ "name": "renderPlugin",
1057
+ "type": {
1058
+ "__schema": "TypeRefSchema",
1059
+ "location": {
1060
+ "filePath": "react-router.ui.runtime.tsx",
1061
+ "line": 114,
1062
+ "character": 24
1063
+ },
1064
+ "name": "SSR.RenderPlugin",
1065
+ "typeArgs": [
1066
+ {
1067
+ "__schema": "TypeRefSchema",
1068
+ "location": {
1069
+ "filePath": "react-router.ui.runtime.tsx",
1070
+ "line": 114,
1071
+ "character": 41
1072
+ },
1073
+ "name": "RenderContext"
1074
+ }
1075
+ ]
1076
+ },
1077
+ "isOptional": true,
1078
+ "defaultValue": "{\n browserInit: () => {\n const initialLocation = `${window.location.pathname}${window.location.search}${window.location.hash}`;\n return { initialLocation };\n },\n serverInit: ({ browser }) => {\n const initialLocation = browser?.location.url;\n return { initialLocation };\n },\n reactClientContext: this.RoutingContext,\n reactServerContext: this.ServerRouting,\n }"
1079
+ },
1080
+ {
1081
+ "__schema": "VariableLikeSchema",
1082
+ "location": {
1083
+ "filePath": "react-router.ui.runtime.tsx",
1084
+ "line": 127,
1085
+ "character": 3
1086
+ },
1087
+ "signature": "(property) ReactRouterUI.slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]",
1088
+ "name": "slots",
1089
+ "type": {
1090
+ "__schema": "InferenceTypeSchema",
1091
+ "location": {
1092
+ "filePath": "react-router.ui.runtime.tsx",
1093
+ "line": 127,
1094
+ "character": 3
1095
+ },
1096
+ "type": "(((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]"
1097
+ },
1098
+ "isOptional": true,
1099
+ "defaultValue": "[Slot.withType<RouteProps>(), Slot.withType<LocationListener>()]"
1100
+ },
1101
+ {
1102
+ "__schema": "VariableLikeSchema",
1103
+ "location": {
1104
+ "filePath": "react-router.ui.runtime.tsx",
1105
+ "line": 128,
1106
+ "character": 3
1107
+ },
1108
+ "signature": "(property) ReactRouterUI.runtime: RuntimeDefinition",
1109
+ "name": "runtime",
1110
+ "type": {
1111
+ "__schema": "InferenceTypeSchema",
1112
+ "location": {
1113
+ "filePath": "react-router.ui.runtime.tsx",
1114
+ "line": 128,
1115
+ "character": 3
1116
+ },
1117
+ "type": "RuntimeDefinition"
1118
+ },
1119
+ "isOptional": true,
1120
+ "defaultValue": "UIRuntime"
1121
+ },
1122
+ {
1123
+ "__schema": "FunctionLikeSchema",
1124
+ "location": {
1125
+ "filePath": "react-router.ui.runtime.tsx",
1126
+ "line": 130,
1127
+ "character": 3
1128
+ },
1129
+ "signature": "(method) ReactRouterUI.provider(deps: any, config: any, [routeSlot, routeChangeSlot]: [RouteSlot, RouteChangeSlot]): Promise<ReactRouterUI>",
1130
+ "name": "provider",
1131
+ "params": [
1132
+ {
1133
+ "__schema": "ParameterSchema",
1134
+ "location": {
1135
+ "filePath": "react-router.ui.runtime.tsx",
1136
+ "line": 130,
1137
+ "character": 25
1138
+ },
1139
+ "name": "deps",
1140
+ "type": {
1141
+ "__schema": "InferenceTypeSchema",
1142
+ "location": {
1143
+ "filePath": "react-router.ui.runtime.tsx",
1144
+ "line": 130,
1145
+ "character": 25
1146
+ },
1147
+ "type": "any"
1148
+ },
1149
+ "isOptional": false,
1150
+ "isSpread": false
1151
+ },
1152
+ {
1153
+ "__schema": "ParameterSchema",
1154
+ "location": {
1155
+ "filePath": "react-router.ui.runtime.tsx",
1156
+ "line": 130,
1157
+ "character": 31
1158
+ },
1159
+ "name": "config",
1160
+ "type": {
1161
+ "__schema": "InferenceTypeSchema",
1162
+ "location": {
1163
+ "filePath": "react-router.ui.runtime.tsx",
1164
+ "line": 130,
1165
+ "character": 31
1166
+ },
1167
+ "type": "any"
1168
+ },
1169
+ "isOptional": false,
1170
+ "isSpread": false
1171
+ },
1172
+ {
1173
+ "__schema": "ParameterSchema",
1174
+ "location": {
1175
+ "filePath": "react-router.ui.runtime.tsx",
1176
+ "line": 130,
1177
+ "character": 39
1178
+ },
1179
+ "name": "[ routeSlot, routeChangeSlot ]",
1180
+ "type": {
1181
+ "__schema": "TupleTypeSchema",
1182
+ "location": {
1183
+ "filePath": "react-router.ui.runtime.tsx",
1184
+ "line": 130,
1185
+ "character": 69
1186
+ },
1187
+ "elements": [
1188
+ {
1189
+ "__schema": "TypeRefSchema",
1190
+ "location": {
1191
+ "filePath": "react-router.ui.runtime.tsx",
1192
+ "line": 130,
1193
+ "character": 70
1194
+ },
1195
+ "name": "RouteSlot"
1196
+ },
1197
+ {
1198
+ "__schema": "TypeRefSchema",
1199
+ "location": {
1200
+ "filePath": "react-router.ui.runtime.tsx",
1201
+ "line": 130,
1202
+ "character": 81
1203
+ },
1204
+ "name": "RouteChangeSlot"
1205
+ }
1206
+ ]
1207
+ },
1208
+ "isOptional": false,
1209
+ "isSpread": false
1210
+ }
1211
+ ],
1212
+ "returnType": {
1213
+ "__schema": "InferenceTypeSchema",
1214
+ "location": {
1215
+ "filePath": "react-router.ui.runtime.tsx",
1216
+ "line": 130,
1217
+ "character": 3
1218
+ },
1219
+ "type": "Promise<ReactRouterUI>"
1220
+ },
1221
+ "modifiers": [
1222
+ "static",
1223
+ "async"
1224
+ ]
1225
+ }
1226
+ ],
1227
+ "extendsNodes": [],
1228
+ "implementNodes": []
1229
+ }
1230
+ ],
1231
+ "internals": [
1232
+ {
1233
+ "__schema": "TypeSchema",
1234
+ "location": {
1235
+ "filePath": "react-router.ui.runtime.tsx",
1236
+ "line": 15,
1237
+ "character": 1
1238
+ },
1239
+ "signature": "type RouteChangeSlot = SlotRegistry<LocationListener>",
1240
+ "name": "RouteChangeSlot",
1241
+ "type": {
1242
+ "__schema": "TypeRefSchema",
1243
+ "location": {
1244
+ "filePath": "react-router.ui.runtime.tsx",
1245
+ "line": 15,
1246
+ "character": 24
1247
+ },
1248
+ "name": "SlotRegistry",
1249
+ "typeArgs": [
1250
+ {
1251
+ "__schema": "TypeRefSchema",
1252
+ "location": {
1253
+ "filePath": "react-router.ui.runtime.tsx",
1254
+ "line": 15,
1255
+ "character": 37
1256
+ },
1257
+ "name": "LocationListener"
1258
+ }
1259
+ ]
1260
+ }
1261
+ },
1262
+ {
1263
+ "__schema": "TypeSchema",
1264
+ "location": {
1265
+ "filePath": "react-router.ui.runtime.tsx",
1266
+ "line": 16,
1267
+ "character": 1
1268
+ },
1269
+ "signature": "type RenderContext = {\n initialLocation?: string;\n}",
1270
+ "name": "RenderContext",
1271
+ "type": {
1272
+ "__schema": "TypeLiteralSchema",
1273
+ "location": {
1274
+ "filePath": "react-router.ui.runtime.tsx",
1275
+ "line": 16,
1276
+ "character": 22
1277
+ },
1278
+ "members": [
1279
+ {
1280
+ "__schema": "VariableLikeSchema",
1281
+ "location": {
1282
+ "filePath": "react-router.ui.runtime.tsx",
1283
+ "line": 16,
1284
+ "character": 24
1285
+ },
1286
+ "signature": "(property) initialLocation?: string | undefined",
1287
+ "name": "initialLocation",
1288
+ "type": {
1289
+ "__schema": "KeywordTypeSchema",
1290
+ "location": {
1291
+ "filePath": "react-router.ui.runtime.tsx",
1292
+ "line": 16,
1293
+ "character": 42
1294
+ },
1295
+ "name": "string"
1296
+ },
1297
+ "isOptional": true
1298
+ }
1299
+ ]
1300
+ }
1301
+ },
1302
+ {
1303
+ "__schema": "UnImplementedSchema",
1304
+ "location": {
1305
+ "filePath": "react-router.ui.runtime.tsx",
1306
+ "line": 135,
1307
+ "character": 1
1308
+ },
1309
+ "name": "ReactRouterAspect.addRuntime(ReactRouterUI);",
1310
+ "type": "ExpressionStatement"
1311
+ }
1312
+ ]
1313
+ },
1314
+ {
1315
+ "__schema": "ModuleSchema",
1316
+ "location": {
1317
+ "filePath": "react-router.aspect.ts",
1318
+ "line": 1,
1319
+ "character": 1
1320
+ },
1321
+ "exports": [
1322
+ {
1323
+ "__schema": "VariableLikeSchema",
1324
+ "location": {
1325
+ "filePath": "react-router.aspect.ts",
1326
+ "line": 3,
1327
+ "character": 14
1328
+ },
1329
+ "signature": "const ReactRouterAspect: Aspect",
1330
+ "name": "ReactRouterAspect",
1331
+ "type": {
1332
+ "__schema": "TypeRefSchema",
1333
+ "location": {
1334
+ "filePath": "react-router.aspect.ts",
1335
+ "line": 3,
1336
+ "character": 14
1337
+ },
1338
+ "name": "Aspect",
1339
+ "componentId": {
1340
+ "scope": "teambit.harmony",
1341
+ "name": "harmony",
1342
+ "version": "0.4.6"
1343
+ }
1344
+ },
1345
+ "isOptional": false,
1346
+ "defaultValue": "Aspect.create({\n id: 'teambit.ui-foundation/react-router',\n})"
1347
+ },
1348
+ {
1349
+ "__schema": "UnImplementedSchema",
1350
+ "location": {
1351
+ "filePath": "react-router.aspect.ts",
1352
+ "line": 7,
1353
+ "character": 16
1354
+ },
1355
+ "name": "ReactRouterAspect",
1356
+ "type": "Identifier"
1357
+ }
1358
+ ],
1359
+ "internals": []
1360
+ }
1361
+ ],
1362
+ "componentId": {
1363
+ "scope": "teambit.ui-foundation",
1364
+ "name": "react-router",
1365
+ "version": "1.0.513"
1366
+ },
1367
+ "taggedModuleExports": []
1368
+ }