@teambit/react-router 1.0.158 → 1.0.159

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