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.
- package/esm/Piral.d.ts +2 -2
- package/esm/Piral.js +14 -12
- package/esm/Piral.js.map +1 -1
- package/esm/PiralContext.d.ts +21 -0
- package/esm/PiralContext.js +34 -0
- package/esm/PiralContext.js.map +1 -0
- package/esm/actions/app.d.ts +1 -2
- package/esm/actions/app.js +0 -3
- package/esm/actions/app.js.map +1 -1
- package/esm/actions/state.js +5 -1
- package/esm/actions/state.js.map +1 -1
- package/esm/components/ErrorBoundary.js +3 -3
- package/esm/components/ErrorBoundary.js.map +1 -1
- package/esm/components/PiralGlobals.d.ts +6 -0
- package/esm/components/PiralGlobals.js +13 -0
- package/esm/components/PiralGlobals.js.map +1 -0
- package/esm/components/PiralSuspense.d.ts +2 -0
- package/esm/components/PiralSuspense.js +8 -0
- package/esm/components/PiralSuspense.js.map +1 -0
- package/esm/components/PiralView.d.ts +6 -1
- package/esm/components/PiralView.js +12 -24
- package/esm/components/PiralView.js.map +1 -1
- package/esm/components/ResponsiveLayout.d.ts +2 -1
- package/esm/components/ResponsiveLayout.js +5 -12
- package/esm/components/ResponsiveLayout.js.map +1 -1
- package/esm/components/components.d.ts +13 -6
- package/esm/components/components.js +13 -6
- package/esm/components/components.js.map +1 -1
- package/esm/components/index.d.ts +2 -12
- package/esm/components/index.js +2 -12
- package/esm/components/index.js.map +1 -1
- package/esm/{components → defaults}/DefaultErrorInfo.d.ts +0 -0
- package/esm/{components → defaults}/DefaultErrorInfo.js +1 -2
- package/esm/defaults/DefaultErrorInfo.js.map +1 -0
- package/esm/{components → defaults}/DefaultLayout.d.ts +0 -0
- package/esm/{components → defaults}/DefaultLayout.js +0 -0
- package/esm/defaults/DefaultLayout.js.map +1 -0
- package/esm/{components/DefaultLoader.d.ts → defaults/DefaultLoadingIndicator.d.ts} +0 -0
- package/esm/{components/DefaultLoader.js → defaults/DefaultLoadingIndicator.js} +1 -1
- package/esm/defaults/DefaultLoadingIndicator.js.map +1 -0
- package/esm/{components → defaults}/DefaultRouteSwitch.d.ts +0 -0
- package/esm/{components → defaults}/DefaultRouteSwitch.js +0 -0
- package/esm/defaults/DefaultRouteSwitch.js.map +1 -0
- package/esm/{components → defaults}/DefaultRouter.d.ts +0 -0
- package/esm/{components → defaults}/DefaultRouter.js +0 -0
- package/esm/defaults/DefaultRouter.js.map +1 -0
- package/esm/defaults/index.d.ts +5 -0
- package/esm/defaults/index.js +6 -0
- package/esm/defaults/index.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/{components → setters}/SetComponent.d.ts +0 -0
- package/esm/{components → setters}/SetComponent.js +0 -0
- package/esm/setters/SetComponent.js.map +1 -0
- package/esm/{components → setters}/SetError.d.ts +0 -0
- package/esm/{components → setters}/SetError.js +0 -0
- package/esm/setters/SetError.js.map +1 -0
- package/esm/{components → setters}/SetErrors.d.ts +0 -0
- package/esm/{components → setters}/SetErrors.js +0 -0
- package/esm/setters/SetErrors.js.map +1 -0
- package/esm/{components → setters}/SetLayout.d.ts +0 -0
- package/esm/{components → setters}/SetLayout.js +0 -0
- package/esm/setters/SetLayout.js.map +1 -0
- package/esm/{components → setters}/SetProvider.d.ts +0 -0
- package/esm/{components → setters}/SetProvider.js +0 -0
- package/esm/setters/SetProvider.js.map +1 -0
- package/esm/{components → setters}/SetRedirect.d.ts +0 -0
- package/esm/{components → setters}/SetRedirect.js +0 -0
- package/esm/setters/SetRedirect.js.map +1 -0
- package/esm/{components → setters}/SetRoute.d.ts +0 -0
- package/esm/{components → setters}/SetRoute.js +0 -0
- package/esm/setters/SetRoute.js.map +1 -0
- package/esm/setters/index.d.ts +7 -0
- package/esm/setters/index.js +8 -0
- package/esm/setters/index.js.map +1 -0
- package/esm/state/createGlobalState.js +1 -2
- package/esm/state/createGlobalState.js.map +1 -1
- package/esm/types/instance.d.ts +7 -2
- package/esm/types/state.d.ts +0 -10
- package/esm/utils/compare.d.ts +1 -1
- package/esm/utils/compare.js +20 -3
- package/esm/utils/compare.js.map +1 -1
- package/esm/utils/media.js +1 -1
- package/esm/utils/media.js.map +1 -1
- package/lib/Piral.d.ts +2 -2
- package/lib/Piral.js +13 -11
- package/lib/Piral.js.map +1 -1
- package/lib/PiralContext.d.ts +21 -0
- package/lib/PiralContext.js +38 -0
- package/lib/PiralContext.js.map +1 -0
- package/lib/actions/app.d.ts +1 -2
- package/lib/actions/app.js +1 -5
- package/lib/actions/app.js.map +1 -1
- package/lib/actions/state.js +5 -1
- package/lib/actions/state.js.map +1 -1
- package/lib/components/ErrorBoundary.js +2 -2
- package/lib/components/ErrorBoundary.js.map +1 -1
- package/lib/components/PiralGlobals.d.ts +6 -0
- package/lib/components/PiralGlobals.js +17 -0
- package/lib/components/PiralGlobals.js.map +1 -0
- package/lib/components/PiralSuspense.d.ts +2 -0
- package/lib/components/PiralSuspense.js +12 -0
- package/lib/components/PiralSuspense.js.map +1 -0
- package/lib/components/PiralView.d.ts +6 -1
- package/lib/components/PiralView.js +11 -23
- package/lib/components/PiralView.js.map +1 -1
- package/lib/components/ResponsiveLayout.d.ts +2 -1
- package/lib/components/ResponsiveLayout.js +3 -10
- package/lib/components/ResponsiveLayout.js.map +1 -1
- package/lib/components/components.d.ts +13 -6
- package/lib/components/components.js +14 -7
- package/lib/components/components.js.map +1 -1
- package/lib/components/index.d.ts +2 -12
- package/lib/components/index.js +2 -12
- package/lib/components/index.js.map +1 -1
- package/lib/{components → defaults}/DefaultErrorInfo.d.ts +0 -0
- package/lib/{components → defaults}/DefaultErrorInfo.js +2 -3
- package/lib/defaults/DefaultErrorInfo.js.map +1 -0
- package/lib/{components → defaults}/DefaultLayout.d.ts +0 -0
- package/lib/{components → defaults}/DefaultLayout.js +0 -0
- package/lib/defaults/DefaultLayout.js.map +1 -0
- package/lib/{components/DefaultLoader.d.ts → defaults/DefaultLoadingIndicator.d.ts} +0 -0
- package/lib/{components/DefaultLoader.js → defaults/DefaultLoadingIndicator.js} +1 -1
- package/lib/defaults/DefaultLoadingIndicator.js.map +1 -0
- package/lib/{components → defaults}/DefaultRouteSwitch.d.ts +0 -0
- package/lib/{components → defaults}/DefaultRouteSwitch.js +0 -0
- package/lib/defaults/DefaultRouteSwitch.js.map +1 -0
- package/lib/{components → defaults}/DefaultRouter.d.ts +0 -0
- package/lib/{components → defaults}/DefaultRouter.js +0 -0
- package/lib/defaults/DefaultRouter.js.map +1 -0
- package/lib/defaults/index.d.ts +5 -0
- package/lib/defaults/index.js +9 -0
- package/lib/defaults/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/{components → setters}/SetComponent.d.ts +0 -0
- package/lib/{components → setters}/SetComponent.js +0 -0
- package/lib/setters/SetComponent.js.map +1 -0
- package/lib/{components → setters}/SetError.d.ts +0 -0
- package/lib/{components → setters}/SetError.js +0 -0
- package/lib/setters/SetError.js.map +1 -0
- package/lib/{components → setters}/SetErrors.d.ts +0 -0
- package/lib/{components → setters}/SetErrors.js +0 -0
- package/lib/setters/SetErrors.js.map +1 -0
- package/lib/{components → setters}/SetLayout.d.ts +0 -0
- package/lib/{components → setters}/SetLayout.js +0 -0
- package/lib/setters/SetLayout.js.map +1 -0
- package/lib/{components → setters}/SetProvider.d.ts +0 -0
- package/lib/{components → setters}/SetProvider.js +0 -0
- package/lib/setters/SetProvider.js.map +1 -0
- package/lib/{components → setters}/SetRedirect.d.ts +0 -0
- package/lib/{components → setters}/SetRedirect.js +0 -0
- package/lib/setters/SetRedirect.js.map +1 -0
- package/lib/{components → setters}/SetRoute.d.ts +0 -0
- package/lib/{components → setters}/SetRoute.js +0 -0
- package/lib/setters/SetRoute.js.map +1 -0
- package/lib/setters/index.d.ts +7 -0
- package/lib/setters/index.js +11 -0
- package/lib/setters/index.js.map +1 -0
- package/lib/state/createGlobalState.js +6 -7
- package/lib/state/createGlobalState.js.map +1 -1
- package/lib/types/instance.d.ts +7 -2
- package/lib/types/state.d.ts +0 -10
- package/lib/utils/compare.d.ts +1 -1
- package/lib/utils/compare.js +22 -5
- package/lib/utils/compare.js.map +1 -1
- package/lib/utils/media.js +1 -1
- package/lib/utils/media.js.map +1 -1
- package/package.json +16 -4
- package/src/Piral.test.tsx +3 -3
- package/src/Piral.tsx +18 -14
- package/src/PiralContext.tsx +39 -0
- package/src/actions/app.test.ts +0 -18
- package/src/actions/app.ts +0 -8
- package/src/actions/state.ts +6 -1
- package/src/components/ErrorBoundary.tsx +3 -3
- package/src/components/PiralGlobals.tsx +16 -0
- package/src/components/PiralRoutes.test.tsx +1 -1
- package/src/components/PiralSuspense.tsx +15 -0
- package/src/components/PiralView-server.test.tsx +1 -0
- package/src/components/PiralView.test.tsx +1 -0
- package/src/components/PiralView.tsx +24 -47
- package/src/components/ResponsiveLayout.test.tsx +14 -43
- package/src/components/ResponsiveLayout.tsx +11 -15
- package/src/components/components.tsx +13 -6
- package/src/components/index.ts +2 -12
- package/src/{components → defaults}/DefaultErrorInfo.test.tsx +0 -0
- package/src/{components → defaults}/DefaultErrorInfo.tsx +1 -2
- package/src/{components → defaults}/DefaultLayout.test.tsx +0 -0
- package/src/{components → defaults}/DefaultLayout.tsx +1 -1
- package/src/{components/DefaultLoader.test.tsx → defaults/DefaultLoadingIndicator.test.tsx} +2 -2
- package/src/{components/DefaultLoader.tsx → defaults/DefaultLoadingIndicator.tsx} +0 -0
- package/src/{components → defaults}/DefaultRouteSwitch.tsx +0 -0
- package/src/{components → defaults}/DefaultRouter.tsx +0 -0
- package/src/defaults/index.ts +5 -0
- package/src/index.tsx +1 -0
- package/src/{components → setters}/SetComponent.test.tsx +0 -0
- package/src/{components → setters}/SetComponent.tsx +0 -0
- package/src/{components → setters}/SetError.test.tsx +0 -0
- package/src/{components → setters}/SetError.tsx +0 -0
- package/src/{components → setters}/SetErrors.test.tsx +0 -0
- package/src/{components → setters}/SetErrors.tsx +0 -0
- package/src/{components → setters}/SetLayout.test.tsx +0 -0
- package/src/{components → setters}/SetLayout.tsx +0 -0
- package/src/{components → setters}/SetProvider.test.tsx +0 -0
- package/src/{components → setters}/SetProvider.tsx +0 -0
- package/src/{components → setters}/SetRedirect.test.tsx +0 -0
- package/src/{components → setters}/SetRedirect.tsx +0 -0
- package/src/{components → setters}/SetRoute.test.tsx +0 -0
- package/src/{components → setters}/SetRoute.tsx +0 -0
- package/src/setters/index.ts +7 -0
- package/src/state/createGlobalState.test.ts +1 -10
- package/src/state/createGlobalState.ts +2 -3
- package/src/types/instance.ts +8 -2
- package/src/types/state.ts +0 -10
- package/src/utils/compare.test.ts +15 -15
- package/src/utils/compare.ts +23 -3
- package/src/utils/foreign.test.ts +1 -1
- package/src/utils/media.ts +1 -1
- package/esm/components/DefaultErrorInfo.js.map +0 -1
- package/esm/components/DefaultLayout.js.map +0 -1
- package/esm/components/DefaultLoader.js.map +0 -1
- package/esm/components/DefaultRouteSwitch.js.map +0 -1
- package/esm/components/DefaultRouter.js.map +0 -1
- package/esm/components/SetComponent.js.map +0 -1
- package/esm/components/SetError.js.map +0 -1
- package/esm/components/SetErrors.js.map +0 -1
- package/esm/components/SetLayout.js.map +0 -1
- package/esm/components/SetProvider.js.map +0 -1
- package/esm/components/SetRedirect.js.map +0 -1
- package/esm/components/SetRoute.js.map +0 -1
- package/lib/components/DefaultErrorInfo.js.map +0 -1
- package/lib/components/DefaultLayout.js.map +0 -1
- package/lib/components/DefaultLoader.js.map +0 -1
- package/lib/components/DefaultRouteSwitch.js.map +0 -1
- package/lib/components/DefaultRouter.js.map +0 -1
- package/lib/components/SetComponent.js.map +0 -1
- package/lib/components/SetError.js.map +0 -1
- package/lib/components/SetErrors.js.map +0 -1
- package/lib/components/SetLayout.js.map +0 -1
- package/lib/components/SetProvider.js.map +0 -1
- package/lib/components/SetRedirect.js.map +0 -1
- package/lib/components/SetRoute.js.map +0 -1
package/src/index.tsx
CHANGED
|
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
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
DefaultLayout,
|
|
7
7
|
DefaultRouter,
|
|
8
8
|
DefaultRouteSwitch,
|
|
9
|
-
} from '../
|
|
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 '../
|
|
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: {
|
package/src/types/instance.ts
CHANGED
|
@@ -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
|
|
7
|
+
* The props of the Piral context.
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
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
|
*/
|
package/src/types/state.ts
CHANGED
|
@@ -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 {
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
});
|
package/src/utils/compare.ts
CHANGED
|
@@ -6,7 +6,7 @@ function compareObjects(a: any, b: any) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
for (const i in b) {
|
|
9
|
-
if (!
|
|
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
|
-
|
|
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
|
-
|
|
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';
|
package/src/utils/media.ts
CHANGED
|
@@ -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
|
|
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"}
|