@teambit/react-router 1.0.516 → 1.0.517

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