piral-core 0.15.0-alpha.4036 → 0.15.0-alpha.4041

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 (245) hide show
  1. package/esm/Piral.d.ts +2 -2
  2. package/esm/Piral.js +14 -12
  3. package/esm/Piral.js.map +1 -1
  4. package/esm/PiralContext.d.ts +21 -0
  5. package/esm/PiralContext.js +34 -0
  6. package/esm/PiralContext.js.map +1 -0
  7. package/esm/actions/app.d.ts +1 -2
  8. package/esm/actions/app.js +0 -3
  9. package/esm/actions/app.js.map +1 -1
  10. package/esm/actions/state.js +5 -1
  11. package/esm/actions/state.js.map +1 -1
  12. package/esm/components/ErrorBoundary.js +3 -3
  13. package/esm/components/ErrorBoundary.js.map +1 -1
  14. package/esm/components/PiralGlobals.d.ts +6 -0
  15. package/esm/components/PiralGlobals.js +13 -0
  16. package/esm/components/PiralGlobals.js.map +1 -0
  17. package/esm/components/PiralSuspense.d.ts +2 -0
  18. package/esm/components/PiralSuspense.js +8 -0
  19. package/esm/components/PiralSuspense.js.map +1 -0
  20. package/esm/components/PiralView.d.ts +6 -1
  21. package/esm/components/PiralView.js +12 -24
  22. package/esm/components/PiralView.js.map +1 -1
  23. package/esm/components/ResponsiveLayout.d.ts +2 -1
  24. package/esm/components/ResponsiveLayout.js +5 -12
  25. package/esm/components/ResponsiveLayout.js.map +1 -1
  26. package/esm/components/components.d.ts +13 -6
  27. package/esm/components/components.js +13 -6
  28. package/esm/components/components.js.map +1 -1
  29. package/esm/components/index.d.ts +2 -12
  30. package/esm/components/index.js +2 -12
  31. package/esm/components/index.js.map +1 -1
  32. package/esm/{components → defaults}/DefaultErrorInfo.d.ts +0 -0
  33. package/esm/{components → defaults}/DefaultErrorInfo.js +1 -2
  34. package/esm/defaults/DefaultErrorInfo.js.map +1 -0
  35. package/esm/{components → defaults}/DefaultLayout.d.ts +0 -0
  36. package/esm/{components → defaults}/DefaultLayout.js +0 -0
  37. package/esm/defaults/DefaultLayout.js.map +1 -0
  38. package/esm/{components/DefaultLoader.d.ts → defaults/DefaultLoadingIndicator.d.ts} +0 -0
  39. package/esm/{components/DefaultLoader.js → defaults/DefaultLoadingIndicator.js} +1 -1
  40. package/esm/defaults/DefaultLoadingIndicator.js.map +1 -0
  41. package/esm/{components → defaults}/DefaultRouteSwitch.d.ts +0 -0
  42. package/esm/{components → defaults}/DefaultRouteSwitch.js +0 -0
  43. package/esm/defaults/DefaultRouteSwitch.js.map +1 -0
  44. package/esm/{components → defaults}/DefaultRouter.d.ts +0 -0
  45. package/esm/{components → defaults}/DefaultRouter.js +0 -0
  46. package/esm/defaults/DefaultRouter.js.map +1 -0
  47. package/esm/defaults/index.d.ts +5 -0
  48. package/esm/defaults/index.js +6 -0
  49. package/esm/defaults/index.js.map +1 -0
  50. package/esm/index.d.ts +1 -0
  51. package/esm/index.js +1 -0
  52. package/esm/index.js.map +1 -1
  53. package/esm/{components → setters}/SetComponent.d.ts +0 -0
  54. package/esm/{components → setters}/SetComponent.js +0 -0
  55. package/esm/setters/SetComponent.js.map +1 -0
  56. package/esm/{components → setters}/SetError.d.ts +0 -0
  57. package/esm/{components → setters}/SetError.js +0 -0
  58. package/esm/setters/SetError.js.map +1 -0
  59. package/esm/{components → setters}/SetErrors.d.ts +0 -0
  60. package/esm/{components → setters}/SetErrors.js +0 -0
  61. package/esm/setters/SetErrors.js.map +1 -0
  62. package/esm/{components → setters}/SetLayout.d.ts +0 -0
  63. package/esm/{components → setters}/SetLayout.js +0 -0
  64. package/esm/setters/SetLayout.js.map +1 -0
  65. package/esm/{components → setters}/SetProvider.d.ts +0 -0
  66. package/esm/{components → setters}/SetProvider.js +0 -0
  67. package/esm/setters/SetProvider.js.map +1 -0
  68. package/esm/{components → setters}/SetRedirect.d.ts +0 -0
  69. package/esm/{components → setters}/SetRedirect.js +0 -0
  70. package/esm/setters/SetRedirect.js.map +1 -0
  71. package/esm/{components → setters}/SetRoute.d.ts +0 -0
  72. package/esm/{components → setters}/SetRoute.js +0 -0
  73. package/esm/setters/SetRoute.js.map +1 -0
  74. package/esm/setters/index.d.ts +7 -0
  75. package/esm/setters/index.js +8 -0
  76. package/esm/setters/index.js.map +1 -0
  77. package/esm/state/createGlobalState.js +1 -2
  78. package/esm/state/createGlobalState.js.map +1 -1
  79. package/esm/types/instance.d.ts +7 -2
  80. package/esm/types/state.d.ts +0 -10
  81. package/esm/utils/compare.d.ts +1 -1
  82. package/esm/utils/compare.js +20 -3
  83. package/esm/utils/compare.js.map +1 -1
  84. package/esm/utils/media.js +1 -1
  85. package/esm/utils/media.js.map +1 -1
  86. package/lib/Piral.d.ts +2 -2
  87. package/lib/Piral.js +13 -11
  88. package/lib/Piral.js.map +1 -1
  89. package/lib/PiralContext.d.ts +21 -0
  90. package/lib/PiralContext.js +38 -0
  91. package/lib/PiralContext.js.map +1 -0
  92. package/lib/actions/app.d.ts +1 -2
  93. package/lib/actions/app.js +1 -5
  94. package/lib/actions/app.js.map +1 -1
  95. package/lib/actions/state.js +5 -1
  96. package/lib/actions/state.js.map +1 -1
  97. package/lib/components/ErrorBoundary.js +2 -2
  98. package/lib/components/ErrorBoundary.js.map +1 -1
  99. package/lib/components/PiralGlobals.d.ts +6 -0
  100. package/lib/components/PiralGlobals.js +17 -0
  101. package/lib/components/PiralGlobals.js.map +1 -0
  102. package/lib/components/PiralSuspense.d.ts +2 -0
  103. package/lib/components/PiralSuspense.js +12 -0
  104. package/lib/components/PiralSuspense.js.map +1 -0
  105. package/lib/components/PiralView.d.ts +6 -1
  106. package/lib/components/PiralView.js +11 -23
  107. package/lib/components/PiralView.js.map +1 -1
  108. package/lib/components/ResponsiveLayout.d.ts +2 -1
  109. package/lib/components/ResponsiveLayout.js +3 -10
  110. package/lib/components/ResponsiveLayout.js.map +1 -1
  111. package/lib/components/components.d.ts +13 -6
  112. package/lib/components/components.js +14 -7
  113. package/lib/components/components.js.map +1 -1
  114. package/lib/components/index.d.ts +2 -12
  115. package/lib/components/index.js +2 -12
  116. package/lib/components/index.js.map +1 -1
  117. package/lib/{components → defaults}/DefaultErrorInfo.d.ts +0 -0
  118. package/lib/{components → defaults}/DefaultErrorInfo.js +2 -3
  119. package/lib/defaults/DefaultErrorInfo.js.map +1 -0
  120. package/lib/{components → defaults}/DefaultLayout.d.ts +0 -0
  121. package/lib/{components → defaults}/DefaultLayout.js +0 -0
  122. package/lib/defaults/DefaultLayout.js.map +1 -0
  123. package/lib/{components/DefaultLoader.d.ts → defaults/DefaultLoadingIndicator.d.ts} +0 -0
  124. package/lib/{components/DefaultLoader.js → defaults/DefaultLoadingIndicator.js} +1 -1
  125. package/lib/defaults/DefaultLoadingIndicator.js.map +1 -0
  126. package/lib/{components → defaults}/DefaultRouteSwitch.d.ts +0 -0
  127. package/lib/{components → defaults}/DefaultRouteSwitch.js +0 -0
  128. package/lib/defaults/DefaultRouteSwitch.js.map +1 -0
  129. package/lib/{components → defaults}/DefaultRouter.d.ts +0 -0
  130. package/lib/{components → defaults}/DefaultRouter.js +0 -0
  131. package/lib/defaults/DefaultRouter.js.map +1 -0
  132. package/lib/defaults/index.d.ts +5 -0
  133. package/lib/defaults/index.js +9 -0
  134. package/lib/defaults/index.js.map +1 -0
  135. package/lib/index.d.ts +1 -0
  136. package/lib/index.js +1 -0
  137. package/lib/index.js.map +1 -1
  138. package/lib/{components → setters}/SetComponent.d.ts +0 -0
  139. package/lib/{components → setters}/SetComponent.js +0 -0
  140. package/lib/setters/SetComponent.js.map +1 -0
  141. package/lib/{components → setters}/SetError.d.ts +0 -0
  142. package/lib/{components → setters}/SetError.js +0 -0
  143. package/lib/setters/SetError.js.map +1 -0
  144. package/lib/{components → setters}/SetErrors.d.ts +0 -0
  145. package/lib/{components → setters}/SetErrors.js +0 -0
  146. package/lib/setters/SetErrors.js.map +1 -0
  147. package/lib/{components → setters}/SetLayout.d.ts +0 -0
  148. package/lib/{components → setters}/SetLayout.js +0 -0
  149. package/lib/setters/SetLayout.js.map +1 -0
  150. package/lib/{components → setters}/SetProvider.d.ts +0 -0
  151. package/lib/{components → setters}/SetProvider.js +0 -0
  152. package/lib/setters/SetProvider.js.map +1 -0
  153. package/lib/{components → setters}/SetRedirect.d.ts +0 -0
  154. package/lib/{components → setters}/SetRedirect.js +0 -0
  155. package/lib/setters/SetRedirect.js.map +1 -0
  156. package/lib/{components → setters}/SetRoute.d.ts +0 -0
  157. package/lib/{components → setters}/SetRoute.js +0 -0
  158. package/lib/setters/SetRoute.js.map +1 -0
  159. package/lib/setters/index.d.ts +7 -0
  160. package/lib/setters/index.js +11 -0
  161. package/lib/setters/index.js.map +1 -0
  162. package/lib/state/createGlobalState.js +6 -7
  163. package/lib/state/createGlobalState.js.map +1 -1
  164. package/lib/types/instance.d.ts +7 -2
  165. package/lib/types/state.d.ts +0 -10
  166. package/lib/utils/compare.d.ts +1 -1
  167. package/lib/utils/compare.js +22 -5
  168. package/lib/utils/compare.js.map +1 -1
  169. package/lib/utils/media.js +1 -1
  170. package/lib/utils/media.js.map +1 -1
  171. package/package.json +16 -4
  172. package/src/Piral.test.tsx +3 -3
  173. package/src/Piral.tsx +18 -14
  174. package/src/PiralContext.tsx +39 -0
  175. package/src/actions/app.test.ts +0 -18
  176. package/src/actions/app.ts +0 -8
  177. package/src/actions/state.ts +6 -1
  178. package/src/components/ErrorBoundary.tsx +3 -3
  179. package/src/components/PiralGlobals.tsx +16 -0
  180. package/src/components/PiralRoutes.test.tsx +1 -1
  181. package/src/components/PiralSuspense.tsx +15 -0
  182. package/src/components/PiralView-server.test.tsx +1 -0
  183. package/src/components/PiralView.test.tsx +1 -0
  184. package/src/components/PiralView.tsx +24 -47
  185. package/src/components/ResponsiveLayout.test.tsx +14 -43
  186. package/src/components/ResponsiveLayout.tsx +11 -15
  187. package/src/components/components.tsx +13 -6
  188. package/src/components/index.ts +2 -12
  189. package/src/{components → defaults}/DefaultErrorInfo.test.tsx +0 -0
  190. package/src/{components → defaults}/DefaultErrorInfo.tsx +1 -2
  191. package/src/{components → defaults}/DefaultLayout.test.tsx +0 -0
  192. package/src/{components → defaults}/DefaultLayout.tsx +1 -1
  193. package/src/{components/DefaultLoader.test.tsx → defaults/DefaultLoadingIndicator.test.tsx} +2 -2
  194. package/src/{components/DefaultLoader.tsx → defaults/DefaultLoadingIndicator.tsx} +0 -0
  195. package/src/{components → defaults}/DefaultRouteSwitch.tsx +0 -0
  196. package/src/{components → defaults}/DefaultRouter.tsx +0 -0
  197. package/src/defaults/index.ts +5 -0
  198. package/src/index.tsx +1 -0
  199. package/src/{components → setters}/SetComponent.test.tsx +0 -0
  200. package/src/{components → setters}/SetComponent.tsx +0 -0
  201. package/src/{components → setters}/SetError.test.tsx +0 -0
  202. package/src/{components → setters}/SetError.tsx +0 -0
  203. package/src/{components → setters}/SetErrors.test.tsx +0 -0
  204. package/src/{components → setters}/SetErrors.tsx +0 -0
  205. package/src/{components → setters}/SetLayout.test.tsx +0 -0
  206. package/src/{components → setters}/SetLayout.tsx +0 -0
  207. package/src/{components → setters}/SetProvider.test.tsx +0 -0
  208. package/src/{components → setters}/SetProvider.tsx +0 -0
  209. package/src/{components → setters}/SetRedirect.test.tsx +0 -0
  210. package/src/{components → setters}/SetRedirect.tsx +0 -0
  211. package/src/{components → setters}/SetRoute.test.tsx +0 -0
  212. package/src/{components → setters}/SetRoute.tsx +0 -0
  213. package/src/setters/index.ts +7 -0
  214. package/src/state/createGlobalState.test.ts +1 -10
  215. package/src/state/createGlobalState.ts +2 -3
  216. package/src/types/instance.ts +8 -2
  217. package/src/types/state.ts +0 -10
  218. package/src/utils/compare.test.ts +15 -15
  219. package/src/utils/compare.ts +23 -3
  220. package/src/utils/foreign.test.ts +1 -1
  221. package/src/utils/media.ts +1 -1
  222. package/esm/components/DefaultErrorInfo.js.map +0 -1
  223. package/esm/components/DefaultLayout.js.map +0 -1
  224. package/esm/components/DefaultLoader.js.map +0 -1
  225. package/esm/components/DefaultRouteSwitch.js.map +0 -1
  226. package/esm/components/DefaultRouter.js.map +0 -1
  227. package/esm/components/SetComponent.js.map +0 -1
  228. package/esm/components/SetError.js.map +0 -1
  229. package/esm/components/SetErrors.js.map +0 -1
  230. package/esm/components/SetLayout.js.map +0 -1
  231. package/esm/components/SetProvider.js.map +0 -1
  232. package/esm/components/SetRedirect.js.map +0 -1
  233. package/esm/components/SetRoute.js.map +0 -1
  234. package/lib/components/DefaultErrorInfo.js.map +0 -1
  235. package/lib/components/DefaultLayout.js.map +0 -1
  236. package/lib/components/DefaultLoader.js.map +0 -1
  237. package/lib/components/DefaultRouteSwitch.js.map +0 -1
  238. package/lib/components/DefaultRouter.js.map +0 -1
  239. package/lib/components/SetComponent.js.map +0 -1
  240. package/lib/components/SetError.js.map +0 -1
  241. package/lib/components/SetErrors.js.map +0 -1
  242. package/lib/components/SetLayout.js.map +0 -1
  243. package/lib/components/SetProvider.js.map +0 -1
  244. package/lib/components/SetRedirect.js.map +0 -1
  245. package/lib/components/SetRoute.js.map +0 -1
package/src/index.tsx CHANGED
@@ -3,6 +3,7 @@ export * from './Piral';
3
3
  export * from './helpers';
4
4
  export * from './components';
5
5
  export * from './hooks';
6
+ export * from './setters';
6
7
  export * from './state';
7
8
  export * from './utils';
8
9
  export * from './types';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ export * from './SetComponent';
2
+ export * from './SetError';
3
+ export * from './SetErrors';
4
+ export * from './SetLayout';
5
+ export * from './SetProvider';
6
+ export * from './SetRedirect';
7
+ export * from './SetRoute';
@@ -6,7 +6,7 @@ import {
6
6
  DefaultLayout,
7
7
  DefaultRouter,
8
8
  DefaultRouteSwitch,
9
- } from '../components';
9
+ } from '../defaults';
10
10
 
11
11
  process.env.PIRAL_PUBLIC_PATH = '/';
12
12
 
@@ -17,7 +17,6 @@ describe('Create Global State Module', () => {
17
17
  const globalState = createGlobalState({});
18
18
  expect(deref(globalState)).toEqual({
19
19
  app: {
20
- layout: 'desktop',
21
20
  loading: true,
22
21
  error: undefined,
23
22
  publicPath: '/',
@@ -46,7 +45,6 @@ describe('Create Global State Module', () => {
46
45
  const globalState = createGlobalState({});
47
46
  expect(deref(globalState)).toEqual({
48
47
  app: {
49
- layout: 'desktop',
50
48
  loading: true,
51
49
  error: undefined,
52
50
  publicPath: '/',
@@ -80,7 +78,6 @@ describe('Create Global State Module', () => {
80
78
  expect(deref(globalState)).toEqual({
81
79
  app: {
82
80
  error: undefined,
83
- layout: 'desktop',
84
81
  loading: true,
85
82
  publicPath: '/',
86
83
  },
@@ -108,7 +105,6 @@ describe('Create Global State Module', () => {
108
105
  const globalState = createGlobalState();
109
106
  expect(deref(globalState)).toEqual({
110
107
  app: {
111
- layout: 'desktop',
112
108
  loading: true,
113
109
  error: undefined,
114
110
  publicPath: '/',
@@ -139,7 +135,6 @@ describe('Create Global State Module', () => {
139
135
  });
140
136
  expect(deref(globalState)).toEqual({
141
137
  app: {
142
- layout: 'desktop',
143
138
  loading: true,
144
139
  error: undefined,
145
140
  publicPath: '/',
@@ -170,7 +165,6 @@ describe('Create Global State Module', () => {
170
165
  });
171
166
  expect(deref(globalState)).toEqual({
172
167
  app: {
173
- layout: 'desktop',
174
168
  loading: true,
175
169
  error: undefined,
176
170
  publicPath: '/',
@@ -198,7 +192,6 @@ describe('Create Global State Module', () => {
198
192
  it('global state with non-default breakpoints and more routes', () => {
199
193
  const globalState = createGlobalState({
200
194
  app: {
201
- layout: 'desktop',
202
195
  },
203
196
  routes: {
204
197
  '/': '...' as any,
@@ -207,7 +200,6 @@ describe('Create Global State Module', () => {
207
200
  });
208
201
  expect(deref(globalState)).toEqual({
209
202
  app: {
210
- layout: 'desktop',
211
203
  loading: true,
212
204
  error: undefined,
213
205
  publicPath: '/',
@@ -243,7 +235,6 @@ describe('Create Global State Module', () => {
243
235
  });
244
236
  expect(deref(globalState)).toEqual({
245
237
  app: {
246
- layout: 'desktop',
247
238
  loading: false,
248
239
  error: undefined,
249
240
  publicPath: '/',
@@ -1,12 +1,12 @@
1
1
  import { Atom } from '@dbeining/react-atom';
2
+ import { GlobalState, NestedPartial } from '../types';
2
3
  import {
3
4
  DefaultErrorInfo,
4
5
  DefaultLoadingIndicator,
5
6
  DefaultLayout,
6
7
  DefaultRouter,
7
8
  DefaultRouteSwitch,
8
- } from '../components';
9
- import { GlobalState, NestedPartial } from '../types';
9
+ } from '../defaults';
10
10
 
11
11
  function extend<T>(defaultState: T, customState: NestedPartial<T>) {
12
12
  for (const key of Object.keys(customState)) {
@@ -28,7 +28,6 @@ export function createGlobalState(customState: NestedPartial<GlobalState> = {})
28
28
  app: {
29
29
  error: undefined,
30
30
  loading: typeof window !== 'undefined',
31
- layout: 'desktop',
32
31
  publicPath: process.env.PIRAL_PUBLIC_PATH || '/',
33
32
  },
34
33
  components: {
@@ -4,13 +4,19 @@ import type { LayoutBreakpoints } from './layout';
4
4
  import { PiralConfiguration } from './config';
5
5
 
6
6
  /**
7
- * The props of the Piral component.
7
+ * The props of the Piral context.
8
8
  */
9
- export interface PiralProps {
9
+ export interface PiralContextProps {
10
10
  /**
11
11
  * The specific Piral instance to be used.
12
12
  */
13
13
  instance?: PiralInstance;
14
+ }
15
+
16
+ /**
17
+ * The props of the Piral component.
18
+ */
19
+ export interface PiralProps extends PiralContextProps {
14
20
  /**
15
21
  * The custom breakpoints for the different layout modi.
16
22
  */
@@ -3,7 +3,6 @@ import type { RouteComponentProps } from 'react-router';
3
3
  import type { Atom } from '@dbeining/react-atom';
4
4
  import type { LoadPiletsOptions } from 'piral-base';
5
5
  import type { Dict, Without } from './common';
6
- import type { LayoutType } from './layout';
7
6
  import type { SharedDataItem, DataStoreTarget } from './data';
8
7
  import type {
9
8
  PiralCustomActions,
@@ -102,10 +101,6 @@ export interface ComponentsState extends PiralCustomComponentsState {
102
101
  * The Piral global app sub-state container for app information.
103
102
  */
104
103
  export interface AppState {
105
- /**
106
- * Information for the layout computation.
107
- */
108
- layout: LayoutType;
109
104
  /**
110
105
  * Gets if the application is currently performing a background loading
111
106
  * activity, e.g., for loading modules asynchronously or fetching
@@ -254,11 +249,6 @@ export interface PiralActions extends PiralCustomActions {
254
249
  * @param expiration The time for when to dispose the shared item.
255
250
  */
256
251
  tryWriteDataItem(name: string, value: any, owner: string, target: DataStoreTarget, expiration: number): boolean;
257
- /**
258
- * Performs a layout change.
259
- * @param current The layout to take.
260
- */
261
- changeLayout(current: LayoutType): void;
262
252
  /**
263
253
  * Registers a new route to be resolved.
264
254
  * @param route The route to register.
@@ -1,73 +1,73 @@
1
- import { compare } from './compare';
1
+ import { isSame } from './compare';
2
2
 
3
3
  describe('Compare Module', () => {
4
4
  it('compare works with numbers that are not equal', () => {
5
- const result = compare(5, 2);
5
+ const result = isSame(5, 2);
6
6
  expect(result).toEqual(false);
7
7
  });
8
8
 
9
9
  it('compare works with numbers that are equal', () => {
10
- const result = compare(7, 7);
10
+ const result = isSame(7, 7);
11
11
  expect(result).toEqual(true);
12
12
  });
13
13
 
14
14
  it('compare works with booleans that are not equal', () => {
15
- const result = compare(true, false);
15
+ const result = isSame(true, false);
16
16
  expect(result).toEqual(false);
17
17
  });
18
18
 
19
19
  it('compare works with booleans that are equal', () => {
20
- const result = compare(false, false);
20
+ const result = isSame(false, false);
21
21
  expect(result).toEqual(true);
22
22
  });
23
23
 
24
24
  it('compare works with strings that are not equal', () => {
25
- const result = compare('foo', 'bar');
25
+ const result = isSame('foo', 'bar');
26
26
  expect(result).toEqual(false);
27
27
  });
28
28
 
29
29
  it('compare works with strings that are equal', () => {
30
- const result = compare('gtest', 'gtest');
30
+ const result = isSame('gtest', 'gtest');
31
31
  expect(result).toEqual(true);
32
32
  });
33
33
 
34
34
  it('compare works with types that are not equal', () => {
35
- const result = compare('5', 5 as any);
35
+ const result = isSame('5', 5 as any);
36
36
  expect(result).toEqual(false);
37
37
  });
38
38
 
39
39
  it('compare works with arrays of simple types that are not equal', () => {
40
- const result = compare([1, 2, 3], [1, 2, 4]);
40
+ const result = isSame([1, 2, 3], [1, 2, 4]);
41
41
  expect(result).toEqual(false);
42
42
  });
43
43
 
44
44
  it('compare works with arrays of simple types that have different lengths', () => {
45
- const result = compare([1, 2, 3], [1, 2]);
45
+ const result = isSame([1, 2, 3], [1, 2]);
46
46
  expect(result).toEqual(false);
47
47
  });
48
48
 
49
49
  it('compare works with arrays of simple types that are equal', () => {
50
- const result = compare([1, 2, 3], [1, 2, 3]);
50
+ const result = isSame([1, 2, 3], [1, 2, 3]);
51
51
  expect(result).toEqual(true);
52
52
  });
53
53
 
54
54
  it('compare works with objects of simple types that are not equal', () => {
55
- const result = compare({ a: 2, b: true, c: 'hi' }, { a: 2, b: false, c: 'hi' });
55
+ const result = isSame({ a: 2, b: true, c: 'hi' }, { a: 2, b: false, c: 'hi' });
56
56
  expect(result).toEqual(false);
57
57
  });
58
58
 
59
59
  it('compare works with objects of simple types that have different keys', () => {
60
- const result = compare({ a: 2, b: true, c: 'hi' }, { a: 2, b: true, d: 'hi' });
60
+ const result = isSame({ a: 2, b: true, c: 'hi' }, { a: 2, b: true, d: 'hi' });
61
61
  expect(result).toEqual(false);
62
62
  });
63
63
 
64
64
  it('compare works with objects of simple types that have less keys', () => {
65
- const result = compare({ a: 2, b: true, c: 'hi' }, { a: 2, b: true });
65
+ const result = isSame({ a: 2, b: true, c: 'hi' }, { a: 2, b: true });
66
66
  expect(result).toEqual(false);
67
67
  });
68
68
 
69
69
  it('compare works with objects of simple types that are equal', () => {
70
- const result = compare({ a: 2, b: true, c: 'hi' }, { a: 2, b: true, c: 'hi' });
70
+ const result = isSame({ a: 2, b: true, c: 'hi' }, { a: 2, b: true, c: 'hi' });
71
71
  expect(result).toEqual(true);
72
72
  });
73
73
  });
@@ -6,7 +6,7 @@ function compareObjects(a: any, b: any) {
6
6
  }
7
7
 
8
8
  for (const i in b) {
9
- if (!compare(a[i], b[i])) {
9
+ if (!isSame(a[i], b[i])) {
10
10
  return false;
11
11
  }
12
12
  }
@@ -14,13 +14,33 @@ function compareObjects(a: any, b: any) {
14
14
  return true;
15
15
  }
16
16
 
17
- export function compare<T>(a: T, b: T) {
17
+ function compareArrays(a: Array<any>, b: Array<any>) {
18
+ const l = a.length;
19
+
20
+ if (l === b.length) {
21
+ for (let i = 0; i < l; i++) {
22
+ if (!isSame(a[i], b[i])) {
23
+ return false;
24
+ }
25
+ }
26
+
27
+ return true;
28
+ }
29
+
30
+ return false;
31
+ }
32
+
33
+ export function isSame<T>(a: T, b: T) {
18
34
  if (a !== b) {
19
35
  const ta = typeof a;
20
36
  const tb = typeof b;
21
37
 
22
38
  if (ta === tb && ta === 'object' && a && b) {
23
- return compareObjects(a, b);
39
+ if (Array.isArray(a) && Array.isArray(b)) {
40
+ return compareArrays(a, b);
41
+ } else {
42
+ return compareObjects(a, b);
43
+ }
24
44
  }
25
45
 
26
46
  return false;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { changeDomPortal, convertComponent, renderInDom } from './foreign';
3
+ import { DefaultLoadingIndicator } from '../defaults';
3
4
  import { ForeignComponent } from '../types';
4
- import { DefaultLoadingIndicator } from '../components/DefaultLoader';
5
5
 
6
6
  // const StubComponent: React.FC = (props) => <div />;
7
7
  // StubComponent.displayName = 'StubComponent';
@@ -10,7 +10,7 @@ const mm =
10
10
  ? () => ({ matches: undefined })
11
11
  : (q: string) => window.matchMedia(q);
12
12
 
13
- export function getCurrentLayout<T>(breakpoints: Array<string>, layouts: Array<T>, defaultLayout: T) {
13
+ export function getCurrentLayout<T>(breakpoints: Array<string> = defaultBreakpoints, layouts: Array<T>, defaultLayout: T) {
14
14
  const query = breakpoints.findIndex((q) => mm(q).matches);
15
15
  const layout = layouts[query];
16
16
  return layout !== undefined ? layout : defaultLayout;
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultErrorInfo.js","sourceRoot":"","sources":["../../src/components/DefaultErrorInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,CACnE,oBAAC,aAAa,IAAC,IAAI,EAAC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,oBAAC,eAAe,kBAAC,GAAG,EAAC,eAAe,IAAK,KAAK,EAAI,GAAI,CAC/G,CAAC;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLayout.js","sourceRoot":"","sources":["../../src/components/DefaultLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC9F,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLoader.js","sourceRoot":"","sources":["../../src/components/DefaultLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAoC,GAAG,EAAE,CAAC,2CAAkB,CAAC;AACjG,uBAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultRouteSwitch.js","sourceRoot":"","sources":["../../src/components/DefaultRouteSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,CAAC,MAAM,kBAAkB,GAA+B,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA3B,qBAA6B,CAAF;IACxF,OAAO,CACL,oBAAC,MAAM,oBAAK,KAAK;QACd,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAClC,oBAAC,KAAK,IAAC,KAAK,QAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAI,CAC7D,CAAC;QACF,oBAAC,KAAK,IAAC,SAAS,EAAE,QAAQ,GAAI,CACvB,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultRouter.js","sourceRoot":"","sources":["../../src/components/DefaultRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,CAAC,MAAM,aAAa,GAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtD,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC3D,OAAO,oBAAC,aAAa,IAAC,QAAQ,EAAE,UAAU,IAAG,QAAQ,CAAiB,CAAC;AACzE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetComponent.js","sourceRoot":"","sources":["../../src/components/SetComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAiB5D;;GAEG;AACH,MAAM,UAAU,YAAY,CAAqC,EAC/D,IAAI,EACJ,SAAS,GACe;IACxB,MAAM,EAAE,YAAY,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACjD,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAC5D,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetError.js","sourceRoot":"","sources":["../../src/components/SetError.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAiB5D;;GAEG;AACH,MAAM,UAAU,QAAQ,CAA0C,EAChE,IAAI,EACJ,SAAS,GACW;IACpB,MAAM,EAAE,iBAAiB,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACtD,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACjE,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetErrors.js","sourceRoot":"","sources":["../../src/components/SetErrors.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAatC;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,GAAG,EAAE,EAAkB;IACvD,OAAO,CACL,0CACG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CACrC,oBAAC,QAAQ,IAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAI,CAC1D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetLayout.js","sourceRoot":"","sources":["../../src/components/SetLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAa9C;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,GAAG,EAAE,EAAkB;IACvD,OAAO,CACL,0CACG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CACrC,oBAAC,YAAY,IAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAI,CAC9D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetProvider.js","sourceRoot":"","sources":["../../src/components/SetProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAY5D;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAoB;IACxD,MAAM,EAAC,eAAe,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAClD,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetRedirect.js","sourceRoot":"","sources":["../../src/components/SetRedirect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgB5D;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,EAAoB;IACxD,MAAM,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAC7C,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC;IAC5D,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetRoute.js","sourceRoot":"","sources":["../../src/components/SetRoute.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgB5D;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAS,EAAE,IAAI,EAAE,SAAS,EAAoB;IACpE,MAAM,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAC7C,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACxD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultErrorInfo.js","sourceRoot":"","sources":["../../src/components/DefaultErrorInfo.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,mDAAgD;AAChD,uDAAoD;AAGpD;;;;GAIG;AACI,MAAM,gBAAgB,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,CACnE,oBAAC,6BAAa,IAAC,IAAI,EAAC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,oBAAC,iCAAe,kBAAC,GAAG,EAAC,eAAe,IAAK,KAAK,EAAI,GAAI,CAC/G,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AACF,wBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLayout.js","sourceRoot":"","sources":["../../src/components/DefaultLayout.tsx"],"names":[],"mappings":";;;AAEA,oCAAyC;AAEzC;;GAEG;AACI,MAAM,aAAa,GAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,QAAQ,CAAC,CAAC;AAAjF,QAAA,aAAa,iBAAoE;AAC9F,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLoader.js","sourceRoot":"","sources":["../../src/components/DefaultLoader.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B;;GAEG;AACI,MAAM,uBAAuB,GAAoC,GAAG,EAAE,CAAC,2CAAkB,CAAC;AAApF,QAAA,uBAAuB,2BAA6D;AACjG,+BAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultRouteSwitch.js","sourceRoot":"","sources":["../../src/components/DefaultRouteSwitch.tsx"],"names":[],"mappings":";;;;AAAA,+BAA+B;AAC/B,+CAA6C;AAGtC,MAAM,kBAAkB,GAA+B,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,2BAA3B,qBAA6B,CAAF;IACxF,OAAO,CACL,oBAAC,qBAAM,oBAAK,KAAK;QACd,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAClC,oBAAC,oBAAK,IAAC,KAAK,QAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAI,CAC7D,CAAC;QACF,oBAAC,oBAAK,IAAC,SAAS,EAAE,QAAQ,GAAI,CACvB,CACV,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,kBAAkB,sBAS7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultRouter.js","sourceRoot":"","sources":["../../src/components/DefaultRouter.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,uDAAiD;AACjD,oCAA0C;AAEnC,MAAM,aAAa,GAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtD,MAAM,UAAU,GAAG,IAAA,sBAAc,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC3D,OAAO,oBAAC,gCAAa,IAAC,QAAQ,EAAE,UAAU,IAAG,QAAQ,CAAiB,CAAC;AACzE,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetComponent.js","sourceRoot":"","sources":["../../src/components/SetComponent.tsx"],"names":[],"mappings":";;;AACA,oCAA4D;AAiB5D;;GAEG;AACH,SAAgB,YAAY,CAAqC,EAC/D,IAAI,EACJ,SAAS,GACe;IACxB,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,6BAAqB,GAAE,CAAC;IACjD,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,SAAS,IAAI,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAC5D,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC;AARD,oCAQC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetError.js","sourceRoot":"","sources":["../../src/components/SetError.tsx"],"names":[],"mappings":";;;AACA,oCAA4D;AAiB5D;;GAEG;AACH,SAAgB,QAAQ,CAA0C,EAChE,IAAI,EACJ,SAAS,GACW;IACpB,MAAM,EAAE,iBAAiB,EAAE,GAAG,IAAA,6BAAqB,GAAE,CAAC;IACtD,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACjE,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC;AARD,4BAQC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetErrors.js","sourceRoot":"","sources":["../../src/components/SetErrors.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,yCAAsC;AAatC;;GAEG;AACH,SAAgB,SAAS,CAAC,EAAE,MAAM,GAAG,EAAE,EAAkB;IACvD,OAAO,CACL,0CACG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CACrC,oBAAC,mBAAQ,IAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAI,CAC1D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC;AARD,8BAQC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetLayout.js","sourceRoot":"","sources":["../../src/components/SetLayout.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iDAA8C;AAa9C;;GAEG;AACH,SAAgB,SAAS,CAAC,EAAE,MAAM,GAAG,EAAE,EAAkB;IACvD,OAAO,CACL,0CACG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,CACrC,oBAAC,2BAAY,IAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAI,CAC9D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC;AARD,8BAQC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetProvider.js","sourceRoot":"","sources":["../../src/components/SetProvider.tsx"],"names":[],"mappings":";;;AACA,oCAA4D;AAY5D;;GAEG;AACH,SAAgB,WAAW,CAAC,EAAE,QAAQ,EAAoB;IACxD,MAAM,EAAC,eAAe,EAAC,GAAG,IAAA,6BAAqB,GAAE,CAAC;IAClD,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC;AALD,kCAKC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetRedirect.js","sourceRoot":"","sources":["../../src/components/SetRedirect.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,+CAAwC;AACxC,oCAA4D;AAgB5D;;GAEG;AACH,SAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,EAAoB;IACxD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6BAAqB,GAAE,CAAC;IAC7C,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAC,uBAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC;IAC5D,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC;AALD,kCAKC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetRoute.js","sourceRoot":"","sources":["../../src/components/SetRoute.tsx"],"names":[],"mappings":";;;AAEA,oCAA4D;AAgB5D;;GAEG;AACH,SAAgB,QAAQ,CAAS,EAAE,IAAI,EAAE,SAAS,EAAoB;IACpE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6BAAqB,GAAE,CAAC;IAC7C,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACxD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC;AALD,4BAKC"}