@teambit/react-router 1.0.188 → 1.0.190

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