@common-stack/client-react 0.6.1-alpha.4 → 3.0.1-alpha.0

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.
Files changed (120) hide show
  1. package/lib/__tests__/fill-register-test.js +14 -14
  2. package/lib/__tests__/fill-register-test.js.map +1 -1
  3. package/lib/__tests__/integrated-routes.test.js +15 -17
  4. package/lib/__tests__/integrated-routes.test.js.map +1 -1
  5. package/lib/__tests__/router-render.test.js +8 -12
  6. package/lib/__tests__/router-render.test.js.map +1 -1
  7. package/lib/connector/base-connector.d.ts +53 -0
  8. package/lib/connector/{base-react-client-feature.js → base-connector.js} +79 -30
  9. package/lib/connector/base-connector.js.map +1 -0
  10. package/lib/connector/connector.d.ts +10 -0
  11. package/lib/connector/connector.js +18 -0
  12. package/lib/connector/connector.js.map +1 -0
  13. package/lib/connector/connector.native.d.ts +9 -0
  14. package/lib/connector/connector.native.js +22 -0
  15. package/lib/connector/connector.native.js.map +1 -0
  16. package/lib/{application/config.js → connector/connector.test.js} +11 -13
  17. package/lib/connector/connector.test.js.map +1 -0
  18. package/lib/connector/index.d.ts +1 -0
  19. package/lib/connector/index.js +18 -0
  20. package/lib/connector/index.js.map +1 -0
  21. package/lib/index.d.ts +1 -2
  22. package/lib/index.js +1 -2
  23. package/lib/index.js.map +1 -1
  24. package/lib/index.native.d.ts +1 -1
  25. package/lib/index.native.js +1 -1
  26. package/lib/index.native.js.map +1 -1
  27. package/lib/interfaces/extended-feature.d.ts +50 -0
  28. package/lib/interfaces/extended-feature.js +2 -56
  29. package/lib/interfaces/extended-feature.js.map +1 -1
  30. package/lib/interfaces/index.d.ts +1 -0
  31. package/lib/interfaces/index.js +1 -1
  32. package/lib/interfaces/index.js.map +1 -1
  33. package/lib/interfaces/new-router.d.ts +6 -3
  34. package/lib/inversify/InversifyContext.d.ts +3 -3
  35. package/lib/inversify/InversifyContext.js.map +1 -1
  36. package/lib/plugin-area/__tests__/higher-order-component-util.test.js +1 -1
  37. package/lib/plugin-area/__tests__/higher-order-component-util.test.js.map +1 -1
  38. package/lib/plugin-area/base-plugin-area.js +7 -1
  39. package/lib/plugin-area/base-plugin-area.js.map +1 -1
  40. package/lib/route/__tests__/getFlatMenus.test.js +1 -1
  41. package/lib/route/__tests__/getFlatMenus.test.js.map +1 -1
  42. package/lib/route/get-routes.js +2 -2
  43. package/lib/route/get-routes.js.map +1 -1
  44. package/lib/route/get-routes.test.js +2 -2
  45. package/lib/route/get-routes.test.js.map +1 -1
  46. package/lib/route/index.native.d.ts +1 -1
  47. package/lib/route/index.native.js +1 -1
  48. package/lib/route/old/__tests__/config-sidebar-menu.test.d.ts +1 -0
  49. package/lib/route/old/__tests__/config-sidebar-menu.test.js +197 -198
  50. package/lib/route/old/__tests__/config-sidebar-menu.test.js.map +1 -1
  51. package/lib/route/old/get-routes-notused.js +1 -1
  52. package/lib/route/old/get-routes-notused.js.map +1 -1
  53. package/lib/route/old/render.d.ts +1 -1
  54. package/lib/route/old/render.js +5 -2
  55. package/lib/route/old/render.js.map +1 -1
  56. package/lib/route/react-navigation/get-navigation-utils.d.ts +8 -0
  57. package/lib/route/react-navigation/get-navigation-utils.js.map +1 -1
  58. package/lib/route/react-navigation/get-navigation-utils.test.js +8 -8
  59. package/lib/route/react-navigation/get-navigation-utils.test.js.map +1 -1
  60. package/lib/route/render-routes-native.d.ts +3 -0
  61. package/lib/route/{render-routes.native.js → render-routes-native.js} +14 -17
  62. package/lib/route/render-routes-native.js.map +1 -0
  63. package/lib/route/render-routes.d.ts +1 -2
  64. package/lib/route/render-routes.js +104 -14
  65. package/lib/route/render-routes.js.map +1 -1
  66. package/lib/route/render-routes.test.js +181 -20
  67. package/lib/route/render-routes.test.js.map +1 -1
  68. package/lib/route/test-routes.d.ts +411 -0
  69. package/lib/route/test-routes.js +580 -0
  70. package/lib/route/test-routes.js.map +1 -0
  71. package/lib/route-based-plugin-area/__tests__/higher-order-component-util.test.js +1 -1
  72. package/lib/route-based-plugin-area/__tests__/higher-order-component-util.test.js.map +1 -1
  73. package/lib/router-factory/index.d.ts +1 -1
  74. package/lib/router-factory/index.js +5 -5
  75. package/lib/router-factory/index.js.map +1 -1
  76. package/lib/router-factory/index.native.d.ts +1 -1
  77. package/lib/router-factory/index.native.js +4 -4
  78. package/lib/router-factory/index.native.js.map +1 -1
  79. package/lib/utils/sort-keys.d.ts +1 -0
  80. package/lib/utils/sort-keys.js +13 -1
  81. package/lib/utils/sort-keys.js.map +1 -1
  82. package/lib/utils/sort-keys.test.js +32 -4
  83. package/lib/utils/sort-keys.test.js.map +1 -1
  84. package/package.json +7 -6
  85. package/lib/application/__tests__/react-client.test.d.ts +0 -1
  86. package/lib/application/__tests__/react-client.test.js +0 -23
  87. package/lib/application/__tests__/react-client.test.js.map +0 -1
  88. package/lib/application/base-apollo-client.d.ts +0 -21
  89. package/lib/application/base-apollo-client.js +0 -161
  90. package/lib/application/base-apollo-client.js.map +0 -1
  91. package/lib/application/base-redux-config.d.ts +0 -22
  92. package/lib/application/base-redux-config.js +0 -58
  93. package/lib/application/base-redux-config.js.map +0 -1
  94. package/lib/application/config.d.ts +0 -4
  95. package/lib/application/config.js.map +0 -1
  96. package/lib/application/react-client.d.ts +0 -7
  97. package/lib/application/react-client.js +0 -152
  98. package/lib/application/react-client.js.map +0 -1
  99. package/lib/connector/base-react-client-feature.d.ts +0 -31
  100. package/lib/connector/base-react-client-feature.js.map +0 -1
  101. package/lib/connector/monaco-connector.d.ts +0 -19
  102. package/lib/connector/monaco-connector.js +0 -76
  103. package/lib/connector/monaco-connector.js.map +0 -1
  104. package/lib/connector/react-client-feature.d.ts +0 -7
  105. package/lib/connector/react-client-feature.js +0 -15
  106. package/lib/connector/react-client-feature.js.map +0 -1
  107. package/lib/connector/react-client-feature.native.d.ts +0 -7
  108. package/lib/connector/react-client-feature.native.js +0 -18
  109. package/lib/connector/react-client-feature.native.js.map +0 -1
  110. package/lib/connector/react-client-feature.test.js +0 -10
  111. package/lib/connector/react-client-feature.test.js.map +0 -1
  112. package/lib/interfaces/monaco-feature.d.ts +0 -46
  113. package/lib/interfaces/monaco-feature.js +0 -3
  114. package/lib/interfaces/monaco-feature.js.map +0 -1
  115. package/lib/interfaces/react-client-feature.d.ts +0 -77
  116. package/lib/interfaces/react-client-feature.js +0 -3
  117. package/lib/interfaces/react-client-feature.js.map +0 -1
  118. package/lib/route/render-routes.native.d.ts +0 -4
  119. package/lib/route/render-routes.native.js.map +0 -1
  120. /package/lib/connector/{react-client-feature.test.d.ts → connector.test.d.ts} +0 -0
@@ -0,0 +1,411 @@
1
+ declare const _default: ({
2
+ position: string;
3
+ key: string;
4
+ path: string;
5
+ exact: boolean;
6
+ component: {
7
+ compare: any;
8
+ };
9
+ _pathPrefix: string;
10
+ name?: undefined;
11
+ authority?: undefined;
12
+ hideInMenu?: undefined;
13
+ routes?: undefined;
14
+ } | {
15
+ position: string;
16
+ key: string;
17
+ path: string;
18
+ exact: boolean;
19
+ _pathPrefix: string;
20
+ component?: undefined;
21
+ name?: undefined;
22
+ authority?: undefined;
23
+ hideInMenu?: undefined;
24
+ routes?: undefined;
25
+ } | {
26
+ position: string;
27
+ key: string;
28
+ name: string;
29
+ path: string;
30
+ authority: string[];
31
+ exact: boolean;
32
+ _pathPrefix: string;
33
+ component?: undefined;
34
+ hideInMenu?: undefined;
35
+ routes?: undefined;
36
+ } | {
37
+ position: string;
38
+ key: string;
39
+ path: string;
40
+ exact: boolean;
41
+ hideInMenu: boolean;
42
+ _pathPrefix: string;
43
+ component?: undefined;
44
+ name?: undefined;
45
+ authority?: undefined;
46
+ routes?: undefined;
47
+ } | {
48
+ position: string;
49
+ key: string;
50
+ path: string;
51
+ exact: boolean;
52
+ authority: string[];
53
+ component: {
54
+ compare: any;
55
+ };
56
+ _pathPrefix: string;
57
+ name?: undefined;
58
+ hideInMenu?: undefined;
59
+ routes?: undefined;
60
+ } | {
61
+ position: string;
62
+ exact: boolean;
63
+ path: string;
64
+ _pathPrefix: string;
65
+ routes: ({
66
+ position: string;
67
+ name: string;
68
+ path: string;
69
+ key: string;
70
+ priority: number;
71
+ icon: {
72
+ type: {};
73
+ key: any;
74
+ ref: any;
75
+ props: {};
76
+ _owner: any;
77
+ _store: {};
78
+ };
79
+ authority: string[];
80
+ _pathPrefix: string;
81
+ exact: boolean;
82
+ hideInMenu?: undefined;
83
+ tab?: undefined;
84
+ routes?: undefined;
85
+ } | {
86
+ position: string;
87
+ key: string;
88
+ path: string;
89
+ name: string;
90
+ hideInMenu: boolean;
91
+ exact: boolean;
92
+ _pathPrefix: string;
93
+ priority?: undefined;
94
+ icon?: undefined;
95
+ authority?: undefined;
96
+ tab?: undefined;
97
+ routes?: undefined;
98
+ } | {
99
+ position: string;
100
+ name: string;
101
+ key: string;
102
+ path: string;
103
+ priority: number;
104
+ exact: boolean;
105
+ icon: {
106
+ type: {};
107
+ key: any;
108
+ ref: any;
109
+ props: {};
110
+ _owner: any;
111
+ _store: {};
112
+ };
113
+ _pathPrefix: string;
114
+ authority?: undefined;
115
+ hideInMenu?: undefined;
116
+ tab?: undefined;
117
+ routes?: undefined;
118
+ } | {
119
+ position: string;
120
+ name: string;
121
+ key: string;
122
+ path: string;
123
+ exact: boolean;
124
+ icon: {
125
+ type: {};
126
+ key: any;
127
+ ref: any;
128
+ props: {};
129
+ _owner: any;
130
+ _store: {};
131
+ };
132
+ _pathPrefix: string;
133
+ priority?: undefined;
134
+ authority?: undefined;
135
+ hideInMenu?: undefined;
136
+ tab?: undefined;
137
+ routes?: undefined;
138
+ } | {
139
+ position: string;
140
+ name: string;
141
+ path: string;
142
+ key: string;
143
+ tab: string;
144
+ priority: number;
145
+ icon: {
146
+ type: {};
147
+ key: any;
148
+ ref: any;
149
+ props: {};
150
+ _owner: any;
151
+ _store: {};
152
+ };
153
+ authority: string[];
154
+ exact: boolean;
155
+ _pathPrefix: string;
156
+ routes: {
157
+ position: string;
158
+ name: string;
159
+ path: string;
160
+ key: string;
161
+ tab: string;
162
+ authority: string[];
163
+ _pathPrefix: string;
164
+ exact: boolean;
165
+ }[];
166
+ hideInMenu?: undefined;
167
+ } | {
168
+ position: string;
169
+ name: string;
170
+ path: string;
171
+ key: string;
172
+ tab: string;
173
+ icon: {
174
+ type: {};
175
+ key: any;
176
+ ref: any;
177
+ props: {};
178
+ _owner: any;
179
+ _store: {};
180
+ };
181
+ authority: string[];
182
+ exact: boolean;
183
+ _pathPrefix: string;
184
+ routes: ({
185
+ position: string;
186
+ name: string;
187
+ path: string;
188
+ key: string;
189
+ tab: string;
190
+ authority: any[];
191
+ exact: boolean;
192
+ _pathPrefix: string;
193
+ hideInMenu?: undefined;
194
+ } | {
195
+ position: string;
196
+ path: string;
197
+ key: string;
198
+ hideInMenu: boolean;
199
+ authority: any[];
200
+ exact: boolean;
201
+ _pathPrefix: string;
202
+ name?: undefined;
203
+ tab?: undefined;
204
+ })[];
205
+ priority?: undefined;
206
+ hideInMenu?: undefined;
207
+ } | {
208
+ position: string;
209
+ name: string;
210
+ key: string;
211
+ tab: string;
212
+ icon: {
213
+ type: {};
214
+ key: any;
215
+ ref: any;
216
+ props: {};
217
+ _owner: any;
218
+ _store: {};
219
+ };
220
+ path: string;
221
+ authority: string[];
222
+ exact: boolean;
223
+ _pathPrefix: string;
224
+ routes: ({
225
+ position: string;
226
+ name: string;
227
+ key: string;
228
+ tab: string;
229
+ path: string;
230
+ authority: string[];
231
+ _pathPrefix: string;
232
+ exact: boolean;
233
+ hideInMenu?: undefined;
234
+ hideChildrenInMenu?: undefined;
235
+ } | {
236
+ position: string;
237
+ key: string;
238
+ tab: string;
239
+ path: string;
240
+ hideInMenu: boolean;
241
+ hideChildrenInMenu: boolean;
242
+ authority: string[];
243
+ _pathPrefix: string;
244
+ exact: boolean;
245
+ name?: undefined;
246
+ })[];
247
+ priority?: undefined;
248
+ hideInMenu?: undefined;
249
+ } | {
250
+ position: string;
251
+ name: string;
252
+ path: string;
253
+ key: string;
254
+ tab: string;
255
+ hideInMenu: boolean;
256
+ exact: boolean;
257
+ _pathPrefix: string;
258
+ routes: {
259
+ position: string;
260
+ path: string;
261
+ key: string;
262
+ name: string;
263
+ hideInMenu: boolean;
264
+ tab: string;
265
+ authority: string[];
266
+ _pathPrefix: string;
267
+ exact: boolean;
268
+ }[];
269
+ priority?: undefined;
270
+ icon?: undefined;
271
+ authority?: undefined;
272
+ } | {
273
+ position: string;
274
+ key: string;
275
+ name: string;
276
+ path: string;
277
+ icon: {
278
+ type: {};
279
+ key: any;
280
+ ref: any;
281
+ props: {};
282
+ _owner: any;
283
+ _store: {};
284
+ };
285
+ exact: boolean;
286
+ _pathPrefix: string;
287
+ routes: ({
288
+ position: string;
289
+ name: string;
290
+ key: string;
291
+ path: string;
292
+ authority: string[];
293
+ _pathPrefix: string;
294
+ exact: boolean;
295
+ } | {
296
+ position: string;
297
+ key: string;
298
+ name: string;
299
+ path: string;
300
+ _pathPrefix: string;
301
+ exact: boolean;
302
+ authority?: undefined;
303
+ })[];
304
+ priority?: undefined;
305
+ authority?: undefined;
306
+ hideInMenu?: undefined;
307
+ tab?: undefined;
308
+ } | {
309
+ position: string;
310
+ key: string;
311
+ name: string;
312
+ tab: string;
313
+ path: string;
314
+ exact: boolean;
315
+ _pathPrefix: string;
316
+ routes: ({
317
+ position: string;
318
+ key: string;
319
+ tab: string;
320
+ name: string;
321
+ path: string;
322
+ exact: boolean;
323
+ _pathPrefix: string;
324
+ routes?: undefined;
325
+ authority?: undefined;
326
+ tabTitle?: undefined;
327
+ } | {
328
+ position: string;
329
+ key: string;
330
+ name: string;
331
+ tab: string;
332
+ path: string;
333
+ exact: boolean;
334
+ _pathPrefix: string;
335
+ routes: {
336
+ position: string;
337
+ key: string;
338
+ name: string;
339
+ tab: string;
340
+ path: string;
341
+ _pathPrefix: string;
342
+ exact: boolean;
343
+ }[];
344
+ authority?: undefined;
345
+ tabTitle?: undefined;
346
+ } | {
347
+ position: string;
348
+ key: string;
349
+ name: string;
350
+ tab: string;
351
+ path: string;
352
+ exact: boolean;
353
+ authority: string[];
354
+ _pathPrefix: string;
355
+ routes: {
356
+ position: string;
357
+ name: string;
358
+ key: string;
359
+ tab: string;
360
+ path: string;
361
+ authority: string[];
362
+ _pathPrefix: string;
363
+ exact: boolean;
364
+ }[];
365
+ tabTitle?: undefined;
366
+ } | {
367
+ position: string;
368
+ key: string;
369
+ name: string;
370
+ tab: string;
371
+ tabTitle: string;
372
+ path: string;
373
+ exact: boolean;
374
+ _pathPrefix: string;
375
+ routes?: undefined;
376
+ authority?: undefined;
377
+ } | {
378
+ position: string;
379
+ key: string;
380
+ name: string;
381
+ path: string;
382
+ authority: string[];
383
+ _pathPrefix: string;
384
+ exact: boolean;
385
+ tab?: undefined;
386
+ routes?: undefined;
387
+ tabTitle?: undefined;
388
+ })[];
389
+ priority?: undefined;
390
+ icon?: undefined;
391
+ authority?: undefined;
392
+ hideInMenu?: undefined;
393
+ })[];
394
+ key?: undefined;
395
+ component?: undefined;
396
+ name?: undefined;
397
+ authority?: undefined;
398
+ hideInMenu?: undefined;
399
+ } | {
400
+ position: string;
401
+ key: string;
402
+ path: string;
403
+ authority: string[];
404
+ exact: boolean;
405
+ _pathPrefix: string;
406
+ component?: undefined;
407
+ name?: undefined;
408
+ hideInMenu?: undefined;
409
+ routes?: undefined;
410
+ })[];
411
+ export default _default;