@admin-layout/client 1.4.0-alpha.7 → 2.0.1-alpha.6
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/lib/colors/Color.d.ts +11 -0
- package/lib/colors/Color.js +2 -0
- package/lib/colors/Color.js.map +1 -0
- package/lib/colors/index.d.ts +2 -0
- package/lib/colors/index.js +3 -0
- package/lib/colors/index.js.map +1 -0
- package/lib/colors/presets/black.d.ts +2 -0
- package/lib/colors/presets/black.js +12 -0
- package/lib/colors/presets/black.js.map +1 -0
- package/lib/colors/presets/blue.d.ts +2 -0
- package/lib/colors/presets/blue.js +12 -0
- package/lib/colors/presets/blue.js.map +1 -0
- package/lib/colors/presets/brinkPink.d.ts +2 -0
- package/lib/colors/presets/brinkPink.js +12 -0
- package/lib/colors/presets/brinkPink.js.map +1 -0
- package/lib/colors/presets/cyan.d.ts +2 -0
- package/lib/colors/presets/cyan.js +12 -0
- package/lib/colors/presets/cyan.js.map +1 -0
- package/lib/colors/presets/green.d.ts +2 -0
- package/lib/colors/presets/green.js +12 -0
- package/lib/colors/presets/green.js.map +1 -0
- package/lib/colors/presets/index.d.ts +14 -0
- package/lib/colors/presets/index.js +15 -0
- package/lib/colors/presets/index.js.map +1 -0
- package/lib/colors/presets/lime.d.ts +2 -0
- package/lib/colors/presets/lime.js +12 -0
- package/lib/colors/presets/lime.js.map +1 -0
- package/lib/colors/presets/orange.d.ts +2 -0
- package/lib/colors/presets/orange.js +12 -0
- package/lib/colors/presets/orange.js.map +1 -0
- package/lib/colors/presets/pink.d.ts +2 -0
- package/lib/colors/presets/pink.js +12 -0
- package/lib/colors/presets/pink.js.map +1 -0
- package/lib/colors/presets/purple.d.ts +2 -0
- package/lib/colors/presets/purple.js +12 -0
- package/lib/colors/presets/purple.js.map +1 -0
- package/lib/colors/presets/red.d.ts +2 -0
- package/lib/colors/presets/red.js +12 -0
- package/lib/colors/presets/red.js.map +1 -0
- package/lib/colors/presets/skyBlue.d.ts +2 -0
- package/lib/colors/presets/skyBlue.js +12 -0
- package/lib/colors/presets/skyBlue.js.map +1 -0
- package/lib/colors/presets/turquoise.d.ts +2 -0
- package/lib/colors/presets/turquoise.js +12 -0
- package/lib/colors/presets/turquoise.js.map +1 -0
- package/lib/colors/presets/white.d.ts +2 -0
- package/lib/colors/presets/white.js +12 -0
- package/lib/colors/presets/white.js.map +1 -0
- package/lib/colors/presets/yellow.d.ts +2 -0
- package/lib/colors/presets/yellow.js +12 -0
- package/lib/colors/presets/yellow.js.map +1 -0
- package/lib/components/ApplicationErrorFillWrapper.js +7 -0
- package/lib/components/ApplicationErrorFillWrapper.js.map +1 -0
- package/lib/components/ApplicationErrorHandlerCommon.js +30 -0
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -0
- package/lib/components/ErrorBoundaryCommon.js +22 -0
- package/lib/components/ErrorBoundaryCommon.js.map +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js +83 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js.map +1 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -0
- package/lib/config/config.js +22 -0
- package/lib/config/config.js.map +1 -0
- package/lib/config/index.js +2 -0
- package/lib/config/index.js.map +1 -0
- package/lib/constants/constants.js +4 -0
- package/lib/constants/constants.js.map +1 -0
- package/lib/constants/error.js +6 -0
- package/lib/constants/error.js.map +1 -0
- package/lib/constants/index.js +3 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/graphql/index.js +2 -0
- package/lib/graphql/index.js.map +1 -0
- package/lib/graphql/link/error-link.js +49 -0
- package/lib/graphql/link/error-link.js.map +1 -0
- package/lib/graphql/link/index.js +2 -0
- package/lib/graphql/link/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -1256
- package/lib/index.js.map +1 -1
- package/lib/index.native.d.ts +7 -0
- package/lib/index.native.js +8 -0
- package/lib/index.native.js.map +1 -0
- package/lib/interfaces/default-settings.js +2 -0
- package/lib/interfaces/default-settings.js.map +1 -0
- package/lib/interfaces/error-state.js +2 -0
- package/lib/interfaces/error-state.js.map +1 -0
- package/lib/interfaces/generated/generated-models.d.ts +13 -0
- package/lib/interfaces/generated/generated-models.js +51 -0
- package/lib/interfaces/generated/generated-models.js.map +1 -0
- package/lib/interfaces/generated/index.js +2 -0
- package/lib/interfaces/generated/index.js.map +1 -0
- package/lib/interfaces/index.js +6 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/pure-settings.d.ts +1 -0
- package/lib/interfaces/pure-settings.js +2 -0
- package/lib/interfaces/pure-settings.js.map +1 -0
- package/lib/interfaces/typings.js +2 -0
- package/lib/interfaces/typings.js.map +1 -0
- package/lib/redux/actions/error-actions.js +22 -0
- package/lib/redux/actions/error-actions.js.map +1 -0
- package/lib/redux/actions/index.js +3 -0
- package/lib/redux/actions/index.js.map +1 -0
- package/lib/redux/actions/settings-action.d.ts +0 -0
- package/lib/redux/actions/settings-action.js +2 -0
- package/lib/redux/actions/settings-action.js.map +1 -0
- package/lib/redux/index.js +4 -0
- package/lib/redux/index.js.map +1 -0
- package/lib/redux/reducers/error.d.ts +2 -2
- package/lib/redux/reducers/error.js +32 -0
- package/lib/redux/reducers/error.js.map +1 -0
- package/lib/redux/reducers/index.js +2 -0
- package/lib/redux/reducers/index.js.map +1 -0
- package/lib/redux/selectors/index.d.ts +1 -1
- package/lib/redux/selectors/index.js +4 -0
- package/lib/redux/selectors/index.js.map +1 -0
- package/lib/redux/settings.d.ts +22 -21
- package/lib/redux/settings.js +38 -0
- package/lib/redux/settings.js.map +1 -0
- package/lib/themes/LayoutTheme.d.ts +140 -0
- package/lib/themes/LayoutTheme.js +2 -0
- package/lib/themes/LayoutTheme.js.map +1 -0
- package/lib/themes/TextStyle.d.ts +6 -0
- package/lib/themes/TextStyle.js +2 -0
- package/lib/themes/TextStyle.js.map +1 -0
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.js +5 -0
- package/lib/themes/index.js.map +1 -0
- package/lib/themes/systemFont/index.d.ts +1 -0
- package/lib/themes/systemFont/index.js +2 -0
- package/lib/themes/systemFont/index.js.map +1 -0
- package/lib/themes/systemFont/index.native.d.ts +1 -0
- package/lib/themes/systemFont/index.native.js +2 -0
- package/lib/themes/systemFont/index.native.js.map +1 -0
- package/lib/themes/templates/createLayoutTheme.d.ts +3 -0
- package/lib/themes/templates/createLayoutTheme.js +10 -0
- package/lib/themes/templates/createLayoutTheme.js.map +1 -0
- package/lib/themes/templates/darkLayoutTheme.d.ts +22 -0
- package/lib/themes/templates/darkLayoutTheme.js +34 -0
- package/lib/themes/templates/darkLayoutTheme.js.map +1 -0
- package/lib/themes/templates/index.d.ts +3 -0
- package/lib/themes/templates/index.js +4 -0
- package/lib/themes/templates/index.js.map +1 -0
- package/lib/themes/templates/lightLayoutTheme.d.ts +10 -0
- package/lib/themes/templates/lightLayoutTheme.js +217 -0
- package/lib/themes/templates/lightLayoutTheme.js.map +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/seperatedMenus.js +15 -0
- package/lib/utils/seperatedMenus.js.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.js","sourceRoot":"","sources":["../../src/colors/Color.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"black.js","sourceRoot":"","sources":["../../../src/colors/presets/black.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAU;IACxB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;CAClB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const blue = {
|
|
2
|
+
base100: '#CEEDFD',
|
|
3
|
+
base200: '#9ED7FC',
|
|
4
|
+
base300: '#6DBAF7',
|
|
5
|
+
base400: '#489EF0',
|
|
6
|
+
base: '#1074E6',
|
|
7
|
+
base600: '#0B59C5',
|
|
8
|
+
base700: '#0842A5',
|
|
9
|
+
base800: '#052E85',
|
|
10
|
+
base900: '#03216E'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=blue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blue.js","sourceRoot":"","sources":["../../../src/colors/presets/blue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const brinkPink = {
|
|
2
|
+
base100: '#FEDCD7',
|
|
3
|
+
base200: '#FDB3B0',
|
|
4
|
+
base300: '#FB888F',
|
|
5
|
+
base400: '#F86A80',
|
|
6
|
+
base: '#E63763',
|
|
7
|
+
base600: '#D12A64',
|
|
8
|
+
base700: '#AF1D5E',
|
|
9
|
+
base800: '#8D1255',
|
|
10
|
+
base900: '#750B4E'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=brinkPink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brinkPink.js","sourceRoot":"","sources":["../../../src/colors/presets/brinkPink.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAU;IAC5B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const cyan = {
|
|
2
|
+
base100: '#CEFDF9',
|
|
3
|
+
base200: '#9EFBFB',
|
|
4
|
+
base300: '#6CECF5',
|
|
5
|
+
base400: '#47D4EC',
|
|
6
|
+
base: '#10B3E0',
|
|
7
|
+
base600: '#0B8CC0',
|
|
8
|
+
base700: '#0869A1',
|
|
9
|
+
base800: '#054B81',
|
|
10
|
+
base900: '#03366B'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=cyan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cyan.js","sourceRoot":"","sources":["../../../src/colors/presets/cyan.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const green = {
|
|
2
|
+
base100: '#DAFCD0',
|
|
3
|
+
base200: '#ADF9A3',
|
|
4
|
+
base300: '#76EE73',
|
|
5
|
+
base400: '#4EDD58',
|
|
6
|
+
base: '#1CC738',
|
|
7
|
+
base600: '#14AB3B',
|
|
8
|
+
base700: '#0E8F3B',
|
|
9
|
+
base800: '#087338',
|
|
10
|
+
base900: '#055F35'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=green.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"green.js","sourceRoot":"","sources":["../../../src/colors/presets/green.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAU;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './blue';
|
|
2
|
+
export * from './brinkPink';
|
|
3
|
+
export * from './cyan';
|
|
4
|
+
export * from './green';
|
|
5
|
+
export * from './lime';
|
|
6
|
+
export * from './orange';
|
|
7
|
+
export * from './pink';
|
|
8
|
+
export * from './purple';
|
|
9
|
+
export * from './red';
|
|
10
|
+
export * from './skyBlue';
|
|
11
|
+
export * from './turquoise';
|
|
12
|
+
export * from './yellow';
|
|
13
|
+
export * from './white';
|
|
14
|
+
export * from './black';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './blue';
|
|
2
|
+
export * from './brinkPink';
|
|
3
|
+
export * from './cyan';
|
|
4
|
+
export * from './green';
|
|
5
|
+
export * from './lime';
|
|
6
|
+
export * from './orange';
|
|
7
|
+
export * from './pink';
|
|
8
|
+
export * from './purple';
|
|
9
|
+
export * from './red';
|
|
10
|
+
export * from './skyBlue';
|
|
11
|
+
export * from './turquoise';
|
|
12
|
+
export * from './yellow';
|
|
13
|
+
export * from './white';
|
|
14
|
+
export * from './black';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/colors/presets/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const lime = {
|
|
2
|
+
base100: '#F5FCD4',
|
|
3
|
+
base200: '#E9FAA9',
|
|
4
|
+
base300: '#D4F07C',
|
|
5
|
+
base400: '#BDE25A',
|
|
6
|
+
base: '#9DCF29',
|
|
7
|
+
base600: '#80B21D',
|
|
8
|
+
base700: '#669514',
|
|
9
|
+
base800: '#4D780D',
|
|
10
|
+
base900: '#3C6307'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=lime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lime.js","sourceRoot":"","sources":["../../../src/colors/presets/lime.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const orange = {
|
|
2
|
+
base100: '#FEEED4',
|
|
3
|
+
base200: '#FDD8AA',
|
|
4
|
+
base300: '#FABB7F',
|
|
5
|
+
base400: '#F69F5E',
|
|
6
|
+
base: '#F0732B',
|
|
7
|
+
base600: '#CE541F',
|
|
8
|
+
base700: '#AC3A15',
|
|
9
|
+
base800: '#8B240D',
|
|
10
|
+
base900: '#731408'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=orange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orange.js","sourceRoot":"","sources":["../../../src/colors/presets/orange.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAU;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const pink = {
|
|
2
|
+
base100: '#FEDADD',
|
|
3
|
+
base200: '#FEBAC7',
|
|
4
|
+
base300: '#FD98B5',
|
|
5
|
+
base400: '#FB7EAE',
|
|
6
|
+
base: '#EB4696',
|
|
7
|
+
base600: '#D63D96',
|
|
8
|
+
base700: '#B32A88',
|
|
9
|
+
base800: '#901A77',
|
|
10
|
+
base900: '#77106B'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=pink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pink.js","sourceRoot":"","sources":["../../../src/colors/presets/pink.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAU;IACvB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const purple = {
|
|
2
|
+
base100: '#FBCAFC',
|
|
3
|
+
base200: '#F096FA',
|
|
4
|
+
base300: '#D960F1',
|
|
5
|
+
base400: '#BC39E4',
|
|
6
|
+
base: '#9400D3',
|
|
7
|
+
base600: '#7300B5',
|
|
8
|
+
base700: '#560097',
|
|
9
|
+
base800: '#3D007A',
|
|
10
|
+
base900: '#2B0065'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=purple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purple.js","sourceRoot":"","sources":["../../../src/colors/presets/purple.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAU;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"red.js","sourceRoot":"","sources":["../../../src/colors/presets/red.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAU;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const skyBlue = {
|
|
2
|
+
base100: '#CEFDF9',
|
|
3
|
+
base200: '#9EFBFB',
|
|
4
|
+
base300: '#6CECF5',
|
|
5
|
+
base400: '#47D4EC',
|
|
6
|
+
base: '#10B3E0',
|
|
7
|
+
base600: '#0B8CC0',
|
|
8
|
+
base700: '#0869A1',
|
|
9
|
+
base800: '#054B81',
|
|
10
|
+
base900: '#03366B'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=skyBlue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyBlue.js","sourceRoot":"","sources":["../../../src/colors/presets/skyBlue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAU;IAC1B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const turquoise = {
|
|
2
|
+
base100: '#CFFCE4',
|
|
3
|
+
base200: '#A0FAD2',
|
|
4
|
+
base300: '#6FF1C3',
|
|
5
|
+
base400: '#49E3BB',
|
|
6
|
+
base: '#15D1B2',
|
|
7
|
+
base600: '#0FB3A8',
|
|
8
|
+
base700: '#0A9396',
|
|
9
|
+
base800: '#066B79',
|
|
10
|
+
base900: '#045064'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=turquoise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turquoise.js","sourceRoot":"","sources":["../../../src/colors/presets/turquoise.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAU;IAC5B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"white.js","sourceRoot":"","sources":["../../../src/colors/presets/white.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAU;IACxB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;CAClB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const yellow = {
|
|
2
|
+
base100: '#FEF7CD',
|
|
3
|
+
base200: '#FEED9B',
|
|
4
|
+
base300: '#FDE069',
|
|
5
|
+
base400: '#FBD244',
|
|
6
|
+
base: '#FABD07',
|
|
7
|
+
base600: '#D79C05',
|
|
8
|
+
base700: '#B37E03',
|
|
9
|
+
base800: '#906202',
|
|
10
|
+
base900: '#774D01'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=yellow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yellow.js","sourceRoot":"","sources":["../../../src/colors/presets/yellow.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAU;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACrB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Fill } from '@common-stack/components-pro';
|
|
2
|
+
import { APPLICATION_ERROR_SLOT_FILL } from '../constants';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export const ApplicationErrorFillWrapper = (props) => {
|
|
5
|
+
return React.createElement(Fill, Object.assign({}, props, { name: APPLICATION_ERROR_SLOT_FILL }));
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ApplicationErrorFillWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorFillWrapper.js","sourceRoot":"","sources":["../../src/components/ApplicationErrorFillWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAK,EAAE,EAAE;IACnD,OAAO,oBAAC,IAAI,oBAAK,KAAK,IAAE,IAAI,EAAE,2BAA2B,IAAI,CAAA;AAC/D,CAAC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import "reflect-metadata";
|
|
4
|
+
import { Slot } from '@common-stack/components-pro';
|
|
5
|
+
import { APPLICATION_ERROR_SLOT_FILL } from '../constants';
|
|
6
|
+
import { backendErrorSelector } from '../redux/selectors';
|
|
7
|
+
/**
|
|
8
|
+
* ApplicationErrorSlot is needed for mobile. Since for mobile
|
|
9
|
+
* we import Slot from @common-stack/react-mobile. The default
|
|
10
|
+
* Slot under RenderApplicationErrorSlot works for browser
|
|
11
|
+
* both ant and chakra
|
|
12
|
+
*
|
|
13
|
+
* @param FallbackComponent ReactNode
|
|
14
|
+
* @param [ApplicationErrorSlot] ReactNode
|
|
15
|
+
* @returns ReactNode
|
|
16
|
+
*/
|
|
17
|
+
export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot = undefined) => ({ plugins, children }) => {
|
|
18
|
+
const applicationErrors = useSelector((state) => state === null || state === void 0 ? void 0 : state.applicationErrors);
|
|
19
|
+
const errors = applicationErrors.filter((error) => !!plugins.find((plugin) => plugin.name === (error === null || error === void 0 ? void 0 : error.pluginName)));
|
|
20
|
+
const backendError = useSelector(backendErrorSelector);
|
|
21
|
+
const RenderApplicationErrorSlot = (props) => {
|
|
22
|
+
return !!ApplicationErrorSlot ? React.createElement(ApplicationErrorSlot, Object.assign({}, props)) : React.createElement(Slot, Object.assign({}, props));
|
|
23
|
+
};
|
|
24
|
+
return (React.createElement(React.Fragment, null,
|
|
25
|
+
!!backendError ? React.createElement(FallbackComponent, { error: backendError }) : null,
|
|
26
|
+
!!(errors === null || errors === void 0 ? void 0 : errors.length)
|
|
27
|
+
? React.createElement(RenderApplicationErrorSlot, { name: APPLICATION_ERROR_SLOT_FILL, fillProps: { active: true, applicationErrors: errors } })
|
|
28
|
+
: children));
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ApplicationErrorHandlerCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.js","sourceRoot":"","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAU1D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,iBAAiB,EAAE,uBAA4B,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAsC,EAAgB,EAAE;IACrL,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,KAEtC,EAAE,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,MAAK,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAA,CAAC,CAAC,CAAA;IACjH,MAAM,YAAY,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;IACvD,MAAM,0BAA0B,GAAG,CAAC,KAAK,EAAE,EAAE;QAC3C,OAAO,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oBAAC,oBAAoB,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,oBAAC,IAAI,oBAAK,KAAK,EAAI,CAAA;IAC3F,CAAC,CAAA;IACD,OAAO,CACL;QACG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAC,iBAAiB,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC,CAAC,CAAC,IAAI;QAClE,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA;YACf,CAAC,CAAC,oBAAC,0BAA0B,IAAC,IAAI,EAAE,2BAA2B,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAI;YAC3H,CAAC,CAAC,QAAQ,CAEX,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { logger } from '@cdm-logger/client';
|
|
3
|
+
export class ErrorBoundaryCommon extends React.Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
this.state = { hasError: false, error: null };
|
|
7
|
+
}
|
|
8
|
+
static getDerivedStateFromError(error) {
|
|
9
|
+
return { hasError: true, error };
|
|
10
|
+
}
|
|
11
|
+
componentDidCatch(error) {
|
|
12
|
+
logger.debug(error);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
if (this.state.hasError) {
|
|
16
|
+
const FallbackComponent = this.props.fallbackComponent;
|
|
17
|
+
return React.createElement(FallbackComponent, { error: this.state.error });
|
|
18
|
+
}
|
|
19
|
+
return this.props.children;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ErrorBoundaryCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBoundaryCommon.js","sourceRoot":"","sources":["../../src/components/ErrorBoundaryCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAQ5C,MAAM,OAAO,mBAAoB,SAAQ,KAAK,CAAC,SAAiD;IAC9F,YAAY,KAAyB;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;IAED,iBAAiB,CAAC,KAAY;QAC5B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvB,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAA;YACtD,OAAO,oBAAC,iBAAiB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAc,GAAI,CAAC;SAChE;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { configure, mount } from 'enzyme';
|
|
2
|
+
import { ApplicationErrorHandlerCommon } from '../ApplicationErrorHandlerCommon';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
|
5
|
+
import configureStore from 'redux-mock-store';
|
|
6
|
+
import { Provider } from 'react-redux';
|
|
7
|
+
const mockStore = configureStore();
|
|
8
|
+
configure({ adapter: new Adapter() });
|
|
9
|
+
const Fallback = () => {
|
|
10
|
+
return React.createElement("div", null, "Fallback");
|
|
11
|
+
};
|
|
12
|
+
const ApplicationHandlerTest = (props) => {
|
|
13
|
+
const { store, plugins } = props;
|
|
14
|
+
const ApplicationErrorHandler = ApplicationErrorHandlerCommon(Fallback);
|
|
15
|
+
return (React.createElement(Provider, { store: store },
|
|
16
|
+
React.createElement(ApplicationErrorHandler, { plugins: plugins },
|
|
17
|
+
React.createElement("div", null, "Children"))));
|
|
18
|
+
};
|
|
19
|
+
describe('Error Handler tests', () => {
|
|
20
|
+
it('should render slot when there is applicationError and fill is registered against error', () => {
|
|
21
|
+
const store = mockStore({
|
|
22
|
+
applicationErrors: [
|
|
23
|
+
{
|
|
24
|
+
type: "TOKEN_VALIDATION_ERROR",
|
|
25
|
+
payload: {
|
|
26
|
+
message: 'Token expired',
|
|
27
|
+
extensions: {
|
|
28
|
+
pluginName: "token-validation-error-fill"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
const component = mount(React.createElement(ApplicationHandlerTest, { store: store, plugins: [{ name: "token-validation-error-fill" }] }));
|
|
35
|
+
console.log(component.debug());
|
|
36
|
+
expect(component.find('Slot')).toHaveLength(1);
|
|
37
|
+
});
|
|
38
|
+
it('should render children when there is applicationError and fill is not registered against error', () => {
|
|
39
|
+
const store = mockStore({
|
|
40
|
+
applicationErrors: [
|
|
41
|
+
{
|
|
42
|
+
type: "TOKEN_VALIDATION_ERROR",
|
|
43
|
+
payload: {
|
|
44
|
+
message: 'Token expired',
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
const component = mount(React.createElement(ApplicationHandlerTest, { store: store, plugins: [{ name: "token-validation-error-fill" }] }));
|
|
50
|
+
console.log(component.debug());
|
|
51
|
+
const childComponent = component.find('div');
|
|
52
|
+
expect(childComponent).toHaveLength(1);
|
|
53
|
+
expect(childComponent.text()).toEqual('Children');
|
|
54
|
+
});
|
|
55
|
+
it('should render Fallback component', () => {
|
|
56
|
+
const store = mockStore({
|
|
57
|
+
applicationErrors: [
|
|
58
|
+
{
|
|
59
|
+
type: "@platform/BACKEND_ERROR",
|
|
60
|
+
payload: {
|
|
61
|
+
message: 'Team id not found',
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
const component = mount(React.createElement(ApplicationHandlerTest, { store: store, plugins: [{ name: "token-validation-error-fill" }] }));
|
|
67
|
+
console.log(component.debug());
|
|
68
|
+
const childComponent = component.find('Fallback');
|
|
69
|
+
expect(childComponent).toHaveLength(1);
|
|
70
|
+
expect(childComponent.text()).toEqual('Fallback');
|
|
71
|
+
});
|
|
72
|
+
it('should render children if there is no applicationError', () => {
|
|
73
|
+
const store = mockStore({
|
|
74
|
+
applicationErrors: []
|
|
75
|
+
});
|
|
76
|
+
const component = mount(React.createElement(ApplicationHandlerTest, { store: store, plugins: [] }));
|
|
77
|
+
console.log(component.debug());
|
|
78
|
+
const childComponent = component.find('div');
|
|
79
|
+
expect(childComponent).toHaveLength(1);
|
|
80
|
+
expect(childComponent.text()).toEqual('Children');
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=ApplicationErrorHandlerCommon.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.test.js","sourceRoot":"","sources":["../../../src/components/__tests__/ApplicationErrorHandlerCommon.test.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as envalid from 'envalid';
|
|
2
|
+
const { json } = envalid;
|
|
3
|
+
const env = process.APP_ENV || process.env;
|
|
4
|
+
export const config = envalid.cleanEnv(env, {
|
|
5
|
+
LAYOUT_SETTINGS: json({
|
|
6
|
+
default: JSON.stringify({
|
|
7
|
+
logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
|
|
8
|
+
navTheme: 'light',
|
|
9
|
+
primaryColor: '#3FA541C',
|
|
10
|
+
layout: 'side',
|
|
11
|
+
contentWidth: 'Fluid',
|
|
12
|
+
fixedHeader: false,
|
|
13
|
+
fixSiderbar: true,
|
|
14
|
+
searchBarRender: false,
|
|
15
|
+
colorWeak: false,
|
|
16
|
+
title: 'CDMBase LLC',
|
|
17
|
+
iconfontUrl: '',
|
|
18
|
+
language: 'en-US',
|
|
19
|
+
}),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;AACzB,MAAM,GAAG,GAAI,OAAe,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;IACxC,eAAe,EAAE,IAAI,CAAkB;QACnC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;YACpB,IAAI,EAAE,mEAAmE;YACzE,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE,UAAU;YACxB,MAAM,EAAE,MAAM;YACd,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,OAAO;SACpB,CAAQ;KACZ,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,eAAe,GAAG,yBAAyB,CAAC;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const BACKEND_ERROR = '@platform/BACKEND_ERROR';
|
|
2
|
+
export const DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
|
|
3
|
+
export const CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
|
|
4
|
+
export const RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
|
|
5
|
+
export const LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
|
|
6
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/constants/error.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAAkB,yBAAyB,CAAC;AAGtE,MAAM,CAAC,MAAM,yBAAyB,GAA8B,qCAAqC,CAAC;AAG1G,MAAM,CAAC,MAAM,wBAAwB,GAA6B,oCAAoC,CAAC;AAGvG,MAAM,CAAC,MAAM,0BAA0B,GAA+B,sCAAsC,CAAC;AAG7G,MAAM,CAAC,MAAM,qBAAqB,GAA0B,iCAAiC,CAAC"}
|