@teambit/react-router 1.0.257 → 1.0.259

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.ui-foundation/react-router@1.0.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.ui-foundation/react-router@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.ui-foundation/react-router-preview"]=t():e["teambit.ui-foundation/react-router-preview"]=t()}(self,(()=>(()=>{"use strict";var e={21110:(e,t,o)=>{var r={id:"teambit.ui-foundation/react-router@1.0.257",homepage:"https://bit.cloud/teambit/ui-foundation/react-router",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/react-router.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(21110);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},c.apply(this,arguments)}var u={},p="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(p,c({},u,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}s.isMDXComponent=!0;const d=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.ui-foundation/react-router-preview"]=t():e["teambit.ui-foundation/react-router-preview"]=t()}(self,(()=>(()=>{"use strict";var e={64560:(e,t,o)=>{var r={id:"teambit.ui-foundation/react-router@1.0.259",homepage:"https://bit.cloud/teambit/ui-foundation/react-router",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/react-router.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(64560);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},c.apply(this,arguments)}var p={},u="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(u,c({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}s.isMDXComponent=!0;const d=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -14,562 +14,580 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "EnumSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "routing-method.tsx",
20
- "line": 1,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 10
22
22
  },
23
- "signature": "enum Routing",
24
23
  "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"
24
+ "exportNode": {
25
+ "__schema": "EnumSchema",
26
+ "location": {
27
+ "filePath": "routing-method.tsx",
28
+ "line": 1,
29
+ "character": 1
35
30
  },
36
- {
37
- "__schema": "EnumMemberSchema",
38
- "location": {
39
- "filePath": "routing-method.tsx",
40
- "line": 3,
41
- "character": 3
31
+ "signature": "enum Routing",
32
+ "name": "Routing",
33
+ "members": [
34
+ {
35
+ "__schema": "EnumMemberSchema",
36
+ "location": {
37
+ "filePath": "routing-method.tsx",
38
+ "line": 2,
39
+ "character": 3
40
+ },
41
+ "signature": "(enum member) Routing.url = 0",
42
+ "name": "url"
42
43
  },
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
44
+ {
45
+ "__schema": "EnumMemberSchema",
46
+ "location": {
47
+ "filePath": "routing-method.tsx",
48
+ "line": 3,
49
+ "character": 3
50
+ },
51
+ "signature": "(enum member) Routing.hash = 1",
52
+ "name": "hash"
52
53
  },
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
54
+ {
55
+ "__schema": "EnumMemberSchema",
56
+ "location": {
57
+ "filePath": "routing-method.tsx",
58
+ "line": 4,
59
+ "character": 3
60
+ },
61
+ "signature": "(enum member) Routing.inMemory = 2",
62
+ "name": "inMemory"
62
63
  },
63
- "signature": "(enum member) Routing.static = 3",
64
- "name": "static"
65
- }
66
- ]
64
+ {
65
+ "__schema": "EnumMemberSchema",
66
+ "location": {
67
+ "filePath": "routing-method.tsx",
68
+ "line": 5,
69
+ "character": 3
70
+ },
71
+ "signature": "(enum member) Routing.static = 3",
72
+ "name": "static"
73
+ }
74
+ ]
75
+ }
67
76
  },
68
77
  {
69
- "__schema": "ClassSchema",
78
+ "__schema": "ExportSchema",
70
79
  "location": {
71
- "filePath": "react-router.ui.runtime.tsx",
72
- "line": 18,
73
- "character": 1
80
+ "filePath": "index.ts",
81
+ "line": 4,
82
+ "character": 15
74
83
  },
75
- "signature": "class ReactRouterUI",
76
84
  "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",
85
+ "exportNode": {
86
+ "__schema": "ClassSchema",
87
+ "location": {
88
+ "filePath": "react-router.ui.runtime.tsx",
89
+ "line": 18,
90
+ "character": 1
91
+ },
92
+ "signature": "class ReactRouterUI",
93
+ "name": "ReactRouterUI",
94
+ "members": [
95
+ {
96
+ "__schema": "ConstructorSchema",
97
+ "location": {
98
+ "filePath": "react-router.ui.runtime.tsx",
99
+ "line": 21,
100
+ "character": 3
101
+ },
102
+ "signature": "constructor ReactRouterUI(routeSlot: RouteSlot, routeChangeListener: RouteChangeSlot): ReactRouterUI",
103
+ "name": "constructor",
104
+ "params": [
105
+ {
106
+ "__schema": "ParameterSchema",
98
107
  "location": {
99
108
  "filePath": "react-router.ui.runtime.tsx",
100
109
  "line": 25,
101
- "character": 24
110
+ "character": 5
102
111
  },
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
112
+ "name": "routeSlot",
113
+ "type": {
114
+ "__schema": "TypeRefSchema",
115
+ "location": {
116
+ "filePath": "react-router.ui.runtime.tsx",
117
+ "line": 25,
118
+ "character": 24
119
+ },
120
+ "name": "RouteSlot",
121
+ "componentId": {
122
+ "scope": "teambit.ui-foundation",
123
+ "name": "ui/react-router/slot-router",
124
+ "version": "0.0.508"
125
+ }
126
+ },
127
+ "isOptional": false,
128
+ "isSpread": false
119
129
  },
120
- "name": "routeChangeListener",
121
- "type": {
122
- "__schema": "TypeRefSchema",
130
+ {
131
+ "__schema": "ParameterSchema",
123
132
  "location": {
124
133
  "filePath": "react-router.ui.runtime.tsx",
125
134
  "line": 29,
126
- "character": 34
135
+ "character": 5
127
136
  },
128
- "name": "RouteChangeSlot",
129
- "internalFilePath": "react-router.ui.runtime.tsx"
137
+ "name": "routeChangeListener",
138
+ "type": {
139
+ "__schema": "TypeRefSchema",
140
+ "location": {
141
+ "filePath": "react-router.ui.runtime.tsx",
142
+ "line": 29,
143
+ "character": 34
144
+ },
145
+ "name": "RouteChangeSlot",
146
+ "internalFilePath": "react-router.ui.runtime.tsx"
147
+ },
148
+ "isOptional": false,
149
+ "isSpread": false
150
+ }
151
+ ],
152
+ "returnType": {
153
+ "__schema": "ThisTypeSchema",
154
+ "location": {
155
+ "filePath": "react-router.ui.runtime.tsx",
156
+ "line": 18,
157
+ "character": 1
130
158
  },
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
159
+ "name": "ReactRouterUI"
141
160
  },
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
161
+ "modifiers": []
152
162
  },
153
- "doc": {
154
- "__schema": "DocSchema",
163
+ {
164
+ "__schema": "ReactSchema",
155
165
  "location": {
156
166
  "filePath": "react-router.ui.runtime.tsx",
157
- "line": 32,
167
+ "line": 35,
158
168
  "character": 3
159
169
  },
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
170
+ "doc": {
171
+ "__schema": "DocSchema",
172
+ "location": {
173
+ "filePath": "react-router.ui.runtime.tsx",
174
+ "line": 32,
175
+ "character": 3
176
+ },
177
+ "raw": "/**\n * render all slot routes.\n */",
178
+ "comment": "render all slot routes."
171
179
  },
172
- "name": "routes",
173
- "type": {
174
- "__schema": "TypeArraySchema",
180
+ "signature": "(method) ReactRouterUI.renderRoutes(routes: RouteProps[]): React.JSX.Element",
181
+ "name": "renderRoutes",
182
+ "props": {
183
+ "__schema": "ParameterSchema",
175
184
  "location": {
176
185
  "filePath": "react-router.ui.runtime.tsx",
177
186
  "line": 35,
178
- "character": 24
187
+ "character": 16
179
188
  },
189
+ "name": "routes",
180
190
  "type": {
181
- "__schema": "TypeRefSchema",
191
+ "__schema": "TypeArraySchema",
182
192
  "location": {
183
193
  "filePath": "react-router.ui.runtime.tsx",
184
194
  "line": 35,
185
195
  "character": 24
186
196
  },
187
- "name": "RouteProps",
188
- "packageName": "react-router-dom"
189
- }
197
+ "type": {
198
+ "__schema": "TypeRefSchema",
199
+ "location": {
200
+ "filePath": "react-router.ui.runtime.tsx",
201
+ "line": 35,
202
+ "character": 24
203
+ },
204
+ "name": "RouteProps",
205
+ "packageName": "react-router-dom"
206
+ }
207
+ },
208
+ "isOptional": false,
209
+ "isSpread": false
190
210
  },
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
211
+ "returnType": {
212
+ "__schema": "TypeRefSchema",
213
+ "location": {
214
+ "filePath": "react-router.ui.runtime.tsx",
215
+ "line": 35,
216
+ "character": 3
217
+ },
218
+ "name": "React.JSX.Element",
219
+ "packageName": "react"
200
220
  },
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
221
+ "modifiers": []
212
222
  },
213
- "doc": {
214
- "__schema": "DocSchema",
223
+ {
224
+ "__schema": "FunctionLikeSchema",
215
225
  "location": {
216
226
  "filePath": "react-router.ui.runtime.tsx",
217
- "line": 39,
227
+ "line": 44,
218
228
  "character": 3
219
229
  },
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",
230
+ "doc": {
231
+ "__schema": "DocSchema",
228
232
  "location": {
229
233
  "filePath": "react-router.ui.runtime.tsx",
230
- "line": 44,
231
- "character": 18
234
+ "line": 39,
235
+ "character": 3
232
236
  },
233
- "name": "routing",
234
- "type": {
235
- "__schema": "TypeRefSchema",
237
+ "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 */",
238
+ "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."
239
+ },
240
+ "signature": "(method) ReactRouterUI.setRoutingMode(routing: Routing): void",
241
+ "name": "setRoutingMode",
242
+ "params": [
243
+ {
244
+ "__schema": "ParameterSchema",
236
245
  "location": {
237
246
  "filePath": "react-router.ui.runtime.tsx",
238
247
  "line": 44,
239
- "character": 27
248
+ "character": 18
249
+ },
250
+ "name": "routing",
251
+ "type": {
252
+ "__schema": "TypeRefSchema",
253
+ "location": {
254
+ "filePath": "react-router.ui.runtime.tsx",
255
+ "line": 44,
256
+ "character": 27
257
+ },
258
+ "name": "Routing"
240
259
  },
241
- "name": "Routing"
260
+ "isOptional": false,
261
+ "isSpread": false
262
+ }
263
+ ],
264
+ "returnType": {
265
+ "__schema": "InferenceTypeSchema",
266
+ "location": {
267
+ "filePath": "react-router.ui.runtime.tsx",
268
+ "line": 44,
269
+ "character": 3
242
270
  },
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
271
+ "type": "void"
253
272
  },
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
273
+ "modifiers": []
264
274
  },
265
- "doc": {
266
- "__schema": "DocSchema",
275
+ {
276
+ "__schema": "FunctionLikeSchema",
267
277
  "location": {
268
278
  "filePath": "react-router.ui.runtime.tsx",
269
- "line": 48,
279
+ "line": 51,
270
280
  "character": 3
271
281
  },
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",
282
+ "doc": {
283
+ "__schema": "DocSchema",
280
284
  "location": {
281
285
  "filePath": "react-router.ui.runtime.tsx",
282
- "line": 51,
283
- "character": 12
286
+ "line": 48,
287
+ "character": 3
284
288
  },
285
- "name": "route",
286
- "type": {
287
- "__schema": "TypeRefSchema",
289
+ "raw": "/**\n * register a new route.\n */",
290
+ "comment": "register a new route."
291
+ },
292
+ "signature": "(method) ReactRouterUI.register(route: RouteProps): this",
293
+ "name": "register",
294
+ "params": [
295
+ {
296
+ "__schema": "ParameterSchema",
288
297
  "location": {
289
298
  "filePath": "react-router.ui.runtime.tsx",
290
299
  "line": 51,
291
- "character": 19
300
+ "character": 12
292
301
  },
293
- "name": "RouteProps",
294
- "packageName": "react-router-dom"
302
+ "name": "route",
303
+ "type": {
304
+ "__schema": "TypeRefSchema",
305
+ "location": {
306
+ "filePath": "react-router.ui.runtime.tsx",
307
+ "line": 51,
308
+ "character": 19
309
+ },
310
+ "name": "RouteProps",
311
+ "packageName": "react-router-dom"
312
+ },
313
+ "isOptional": false,
314
+ "isSpread": false
315
+ }
316
+ ],
317
+ "returnType": {
318
+ "__schema": "TypeRefSchema",
319
+ "location": {
320
+ "filePath": "react-router.ui.runtime.tsx",
321
+ "line": 51,
322
+ "character": 3
295
323
  },
296
- "isOptional": false,
297
- "isSpread": false
298
- }
299
- ],
300
- "returnType": {
301
- "__schema": "TypeRefSchema",
324
+ "name": "ReactRouterUI"
325
+ },
326
+ "modifiers": []
327
+ },
328
+ {
329
+ "__schema": "FunctionLikeSchema",
302
330
  "location": {
303
331
  "filePath": "react-router.ui.runtime.tsx",
304
- "line": 51,
332
+ "line": 56,
305
333
  "character": 3
306
334
  },
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",
335
+ "signature": "(method) ReactRouterUI.registerListener(listener: LocationListener): void",
336
+ "name": "registerListener",
337
+ "params": [
338
+ {
339
+ "__schema": "ParameterSchema",
331
340
  "location": {
332
341
  "filePath": "react-router.ui.runtime.tsx",
333
342
  "line": 56,
334
- "character": 30
343
+ "character": 20
335
344
  },
336
- "name": "LocationListener",
337
- "internalFilePath": "react-router.ui.runtime.tsx"
345
+ "name": "listener",
346
+ "type": {
347
+ "__schema": "TypeRefSchema",
348
+ "location": {
349
+ "filePath": "react-router.ui.runtime.tsx",
350
+ "line": 56,
351
+ "character": 30
352
+ },
353
+ "name": "LocationListener",
354
+ "internalFilePath": "react-router.ui.runtime.tsx"
355
+ },
356
+ "isOptional": false,
357
+ "isSpread": false
358
+ }
359
+ ],
360
+ "returnType": {
361
+ "__schema": "InferenceTypeSchema",
362
+ "location": {
363
+ "filePath": "react-router.ui.runtime.tsx",
364
+ "line": 56,
365
+ "character": 3
338
366
  },
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
367
+ "type": "void"
349
368
  },
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
369
+ "modifiers": []
360
370
  },
361
- "doc": {
362
- "__schema": "DocSchema",
371
+ {
372
+ "__schema": "VariableLikeSchema",
363
373
  "location": {
364
374
  "filePath": "react-router.ui.runtime.tsx",
365
- "line": 60,
375
+ "line": 63,
366
376
  "character": 3
367
377
  },
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
378
+ "doc": {
379
+ "__schema": "DocSchema",
380
+ "location": {
381
+ "filePath": "react-router.ui.runtime.tsx",
382
+ "line": 60,
383
+ "character": 3
384
+ },
385
+ "raw": "/**\n * change browser location\n */",
386
+ "comment": "change browser location"
387
+ },
388
+ "signature": "(property) ReactRouterUI.navigateTo: (path: Location | string, action?: NavigationType) => void",
389
+ "name": "navigateTo",
390
+ "type": {
391
+ "__schema": "InferenceTypeSchema",
392
+ "location": {
393
+ "filePath": "react-router.ui.runtime.tsx",
394
+ "line": 63,
395
+ "character": 3
396
+ },
397
+ "type": "(path: Location | string, action?: NavigationType) => void"
379
398
  },
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
399
+ "isOptional": true,
400
+ "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 }"
391
401
  },
392
- "signature": "(property) ReactRouterUI.renderPlugin: SSR.RenderPlugin<RenderContext, unknown>",
393
- "name": "renderPlugin",
394
- "type": {
395
- "__schema": "TypeRefSchema",
402
+ {
403
+ "__schema": "VariableLikeSchema",
396
404
  "location": {
397
405
  "filePath": "react-router.ui.runtime.tsx",
398
406
  "line": 114,
399
- "character": 24
407
+ "character": 3
400
408
  },
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
409
+ "signature": "(property) ReactRouterUI.renderPlugin: SSR.RenderPlugin<RenderContext, unknown>",
410
+ "name": "renderPlugin",
411
+ "type": {
412
+ "__schema": "TypeRefSchema",
413
+ "location": {
414
+ "filePath": "react-router.ui.runtime.tsx",
415
+ "line": 114,
416
+ "character": 24
417
+ },
418
+ "name": "SSR.RenderPlugin",
419
+ "typeArgs": [
420
+ {
421
+ "__schema": "TypeRefSchema",
422
+ "location": {
423
+ "filePath": "react-router.ui.runtime.tsx",
424
+ "line": 114,
425
+ "character": 41
426
+ },
427
+ "name": "RenderContext",
428
+ "internalFilePath": "react-router.ui.runtime.tsx"
429
+ }
430
+ ]
431
+ },
432
+ "isOptional": true,
433
+ "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 }"
424
434
  },
425
- "signature": "(property) ReactRouterUI.slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]",
426
- "name": "slots",
427
- "type": {
428
- "__schema": "InferenceTypeSchema",
435
+ {
436
+ "__schema": "VariableLikeSchema",
429
437
  "location": {
430
438
  "filePath": "react-router.ui.runtime.tsx",
431
439
  "line": 127,
432
440
  "character": 3
433
441
  },
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
442
+ "signature": "(property) ReactRouterUI.slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]",
443
+ "name": "slots",
444
+ "type": {
445
+ "__schema": "InferenceTypeSchema",
446
+ "location": {
447
+ "filePath": "react-router.ui.runtime.tsx",
448
+ "line": 127,
449
+ "character": 3
450
+ },
451
+ "type": "(((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LocationListener>))[]"
452
+ },
453
+ "isOptional": true,
454
+ "defaultValue": "[Slot.withType<RouteProps>(), Slot.withType<LocationListener>()]"
445
455
  },
446
- "signature": "(property) ReactRouterUI.runtime: RuntimeDefinition",
447
- "name": "runtime",
448
- "type": {
449
- "__schema": "InferenceTypeSchema",
456
+ {
457
+ "__schema": "VariableLikeSchema",
450
458
  "location": {
451
459
  "filePath": "react-router.ui.runtime.tsx",
452
460
  "line": 128,
453
461
  "character": 3
454
462
  },
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",
463
+ "signature": "(property) ReactRouterUI.runtime: RuntimeDefinition",
464
+ "name": "runtime",
465
+ "type": {
466
+ "__schema": "InferenceTypeSchema",
472
467
  "location": {
473
468
  "filePath": "react-router.ui.runtime.tsx",
474
- "line": 130,
475
- "character": 25
469
+ "line": 128,
470
+ "character": 3
476
471
  },
477
- "name": "deps",
478
- "type": {
479
- "__schema": "InferenceTypeSchema",
472
+ "type": "RuntimeDefinition"
473
+ },
474
+ "isOptional": true,
475
+ "defaultValue": "UIRuntime"
476
+ },
477
+ {
478
+ "__schema": "FunctionLikeSchema",
479
+ "location": {
480
+ "filePath": "react-router.ui.runtime.tsx",
481
+ "line": 130,
482
+ "character": 3
483
+ },
484
+ "signature": "(method) ReactRouterUI.provider(deps: any, config: any, [routeSlot, routeChangeSlot]: [RouteSlot, RouteChangeSlot]): Promise<ReactRouterUI>",
485
+ "name": "provider",
486
+ "params": [
487
+ {
488
+ "__schema": "ParameterSchema",
480
489
  "location": {
481
490
  "filePath": "react-router.ui.runtime.tsx",
482
491
  "line": 130,
483
492
  "character": 25
484
493
  },
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
494
+ "name": "deps",
495
+ "type": {
496
+ "__schema": "InferenceTypeSchema",
497
+ "location": {
498
+ "filePath": "react-router.ui.runtime.tsx",
499
+ "line": 130,
500
+ "character": 25
501
+ },
502
+ "type": "any"
503
+ },
504
+ "isOptional": false,
505
+ "isSpread": false
496
506
  },
497
- "name": "config",
498
- "type": {
499
- "__schema": "InferenceTypeSchema",
507
+ {
508
+ "__schema": "ParameterSchema",
500
509
  "location": {
501
510
  "filePath": "react-router.ui.runtime.tsx",
502
511
  "line": 130,
503
512
  "character": 31
504
513
  },
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
514
+ "name": "config",
515
+ "type": {
516
+ "__schema": "InferenceTypeSchema",
517
+ "location": {
518
+ "filePath": "react-router.ui.runtime.tsx",
519
+ "line": 130,
520
+ "character": 31
521
+ },
522
+ "type": "any"
523
+ },
524
+ "isOptional": false,
525
+ "isSpread": false
516
526
  },
517
- "name": "[ routeSlot, routeChangeSlot ]",
518
- "type": {
519
- "__schema": "TupleTypeSchema",
527
+ {
528
+ "__schema": "ParameterSchema",
520
529
  "location": {
521
530
  "filePath": "react-router.ui.runtime.tsx",
522
531
  "line": 130,
523
- "character": 69
532
+ "character": 39
524
533
  },
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
- }
534
+ "name": "[ routeSlot, routeChangeSlot ]",
535
+ "type": {
536
+ "__schema": "TupleTypeSchema",
537
+ "location": {
538
+ "filePath": "react-router.ui.runtime.tsx",
539
+ "line": 130,
540
+ "character": 69
539
541
  },
540
- {
541
- "__schema": "TypeRefSchema",
542
- "location": {
543
- "filePath": "react-router.ui.runtime.tsx",
544
- "line": 130,
545
- "character": 81
542
+ "elements": [
543
+ {
544
+ "__schema": "TypeRefSchema",
545
+ "location": {
546
+ "filePath": "react-router.ui.runtime.tsx",
547
+ "line": 130,
548
+ "character": 70
549
+ },
550
+ "name": "RouteSlot",
551
+ "componentId": {
552
+ "scope": "teambit.ui-foundation",
553
+ "name": "ui/react-router/slot-router",
554
+ "version": "0.0.508"
555
+ }
546
556
  },
547
- "name": "RouteChangeSlot",
548
- "internalFilePath": "react-router.ui.runtime.tsx"
549
- }
550
- ]
557
+ {
558
+ "__schema": "TypeRefSchema",
559
+ "location": {
560
+ "filePath": "react-router.ui.runtime.tsx",
561
+ "line": 130,
562
+ "character": 81
563
+ },
564
+ "name": "RouteChangeSlot",
565
+ "internalFilePath": "react-router.ui.runtime.tsx"
566
+ }
567
+ ]
568
+ },
569
+ "isOptional": false,
570
+ "isSpread": false
571
+ }
572
+ ],
573
+ "returnType": {
574
+ "__schema": "InferenceTypeSchema",
575
+ "location": {
576
+ "filePath": "react-router.ui.runtime.tsx",
577
+ "line": 130,
578
+ "character": 3
551
579
  },
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
580
+ "type": "Promise<ReactRouterUI>"
562
581
  },
563
- "type": "Promise<ReactRouterUI>"
564
- },
565
- "modifiers": [
566
- "static",
567
- "async"
568
- ]
569
- }
570
- ],
571
- "extendsNodes": [],
572
- "implementNodes": []
582
+ "modifiers": [
583
+ "static",
584
+ "async"
585
+ ]
586
+ }
587
+ ],
588
+ "extendsNodes": [],
589
+ "implementNodes": []
590
+ }
573
591
  },
574
592
  {
575
593
  "__schema": "TypeRefSchema",
@@ -596,30 +614,39 @@
596
614
  "packageName": "react-router-dom"
597
615
  },
598
616
  {
599
- "__schema": "VariableLikeSchema",
617
+ "__schema": "ExportSchema",
600
618
  "location": {
601
- "filePath": "react-router.aspect.ts",
602
- "line": 3,
603
- "character": 14
619
+ "filePath": "index.ts",
620
+ "line": 9,
621
+ "character": 10
604
622
  },
605
- "signature": "const ReactRouterAspect: Aspect",
606
623
  "name": "ReactRouterAspect",
607
- "type": {
608
- "__schema": "TypeRefSchema",
624
+ "exportNode": {
625
+ "__schema": "VariableLikeSchema",
609
626
  "location": {
610
627
  "filePath": "react-router.aspect.ts",
611
628
  "line": 3,
612
629
  "character": 14
613
630
  },
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})"
631
+ "signature": "const ReactRouterAspect: Aspect",
632
+ "name": "ReactRouterAspect",
633
+ "type": {
634
+ "__schema": "TypeRefSchema",
635
+ "location": {
636
+ "filePath": "react-router.aspect.ts",
637
+ "line": 3,
638
+ "character": 14
639
+ },
640
+ "name": "Aspect",
641
+ "componentId": {
642
+ "scope": "teambit.harmony",
643
+ "name": "harmony",
644
+ "version": "0.4.6"
645
+ }
646
+ },
647
+ "isOptional": false,
648
+ "defaultValue": "Aspect.create({\n id: 'teambit.ui-foundation/react-router',\n})"
649
+ }
623
650
  },
624
651
  {
625
652
  "__schema": "UnImplementedSchema",
@@ -1364,7 +1391,7 @@
1364
1391
  "componentId": {
1365
1392
  "scope": "teambit.ui-foundation",
1366
1393
  "name": "react-router",
1367
- "version": "1.0.257"
1394
+ "version": "1.0.259"
1368
1395
  },
1369
1396
  "taggedModuleExports": []
1370
1397
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_react-router@1.0.257/dist/react-router.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_react-router@1.0.257/dist/react-router.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_react-router@1.0.259/dist/react-router.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.ui-foundation_react-router@1.0.259/dist/react-router.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@teambit/react-router",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "homepage": "https://bit.cloud/teambit/ui-foundation/react-router",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "react-router",
9
- "version": "1.0.257"
9
+ "version": "1.0.259"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
13
13
  "@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.1",
14
14
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.508",
15
- "@teambit/ui": "1.0.257"
15
+ "@teambit/ui": "1.0.259"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/mocha": "9.1.0",