@admin-layout/client 3.0.0-alpha.98 → 3.1.1-alpha.10
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 +1 -0
- package/lib/colors/Color.d.ts.map +1 -0
- package/lib/colors/Color.js +0 -1
- package/lib/colors/index.d.ts +1 -0
- package/lib/colors/index.d.ts.map +1 -0
- package/lib/colors/index.js +0 -1
- package/lib/colors/presets/black.d.ts +1 -0
- package/lib/colors/presets/black.d.ts.map +1 -0
- package/lib/colors/presets/black.js +0 -1
- package/lib/colors/presets/blue.d.ts +1 -0
- package/lib/colors/presets/blue.d.ts.map +1 -0
- package/lib/colors/presets/blue.js +0 -1
- package/lib/colors/presets/brinkPink.d.ts +1 -0
- package/lib/colors/presets/brinkPink.d.ts.map +1 -0
- package/lib/colors/presets/brinkPink.js +0 -1
- package/lib/colors/presets/cyan.d.ts +1 -0
- package/lib/colors/presets/cyan.d.ts.map +1 -0
- package/lib/colors/presets/cyan.js +0 -1
- package/lib/colors/presets/green.d.ts +1 -0
- package/lib/colors/presets/green.d.ts.map +1 -0
- package/lib/colors/presets/green.js +0 -1
- package/lib/colors/presets/index.d.ts +1 -0
- package/lib/colors/presets/index.d.ts.map +1 -0
- package/lib/colors/presets/index.js +0 -1
- package/lib/colors/presets/lime.d.ts +1 -0
- package/lib/colors/presets/lime.d.ts.map +1 -0
- package/lib/colors/presets/lime.js +0 -1
- package/lib/colors/presets/orange.d.ts +1 -0
- package/lib/colors/presets/orange.d.ts.map +1 -0
- package/lib/colors/presets/orange.js +0 -1
- package/lib/colors/presets/pink.d.ts +1 -0
- package/lib/colors/presets/pink.d.ts.map +1 -0
- package/lib/colors/presets/pink.js +0 -1
- package/lib/colors/presets/purple.d.ts +1 -0
- package/lib/colors/presets/purple.d.ts.map +1 -0
- package/lib/colors/presets/purple.js +0 -1
- package/lib/colors/presets/red.d.ts +1 -0
- package/lib/colors/presets/red.d.ts.map +1 -0
- package/lib/colors/presets/red.js +0 -1
- package/lib/colors/presets/skyBlue.d.ts +1 -0
- package/lib/colors/presets/skyBlue.d.ts.map +1 -0
- package/lib/colors/presets/skyBlue.js +0 -1
- package/lib/colors/presets/turquoise.d.ts +1 -0
- package/lib/colors/presets/turquoise.d.ts.map +1 -0
- package/lib/colors/presets/turquoise.js +0 -1
- package/lib/colors/presets/white.d.ts +1 -0
- package/lib/colors/presets/white.d.ts.map +1 -0
- package/lib/colors/presets/white.js +0 -1
- package/lib/colors/presets/yellow.d.ts +1 -0
- package/lib/colors/presets/yellow.d.ts.map +1 -0
- package/lib/colors/presets/yellow.js +0 -1
- package/lib/components/ApplicationErrorFillWrapper.d.ts +3 -2
- package/lib/components/ApplicationErrorFillWrapper.d.ts.map +1 -0
- package/lib/components/ApplicationErrorFillWrapper.js +1 -2
- package/lib/components/ApplicationErrorHandlerCommon.d.ts +3 -2
- package/lib/components/ApplicationErrorHandlerCommon.d.ts.map +1 -0
- package/lib/components/ApplicationErrorHandlerCommon.js +4 -5
- package/lib/components/ErrorBoundaryCommon.d.ts +4 -3
- package/lib/components/ErrorBoundaryCommon.d.ts.map +1 -0
- package/lib/components/ErrorBoundaryCommon.js +0 -1
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts.map +1 -0
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js +0 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +0 -1
- package/lib/config/defaultSettings.d.ts +1 -0
- package/lib/config/defaultSettings.d.ts.map +1 -0
- package/lib/config/defaultSettings.js +0 -1
- package/lib/config/env-config.d.ts +1 -0
- package/lib/config/env-config.d.ts.map +1 -0
- package/lib/config/env-config.js +1 -2
- package/lib/config/index.d.ts +1 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/config/index.js +0 -1
- package/lib/constants/constants.d.ts +1 -0
- package/lib/constants/constants.d.ts.map +1 -0
- package/lib/constants/constants.js +0 -1
- package/lib/constants/error.d.ts +6 -5
- package/lib/constants/error.d.ts.map +1 -0
- package/lib/constants/error.js +0 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.d.ts.map +1 -0
- package/lib/constants/index.js +0 -1
- package/lib/graphql/index.d.ts +1 -0
- package/lib/graphql/index.d.ts.map +1 -0
- package/lib/graphql/index.js +0 -1
- package/lib/graphql/link/error-link.d.ts +2 -1
- package/lib/graphql/link/error-link.d.ts.map +1 -0
- package/lib/graphql/link/error-link.js +6 -9
- package/lib/graphql/link/index.d.ts +1 -0
- package/lib/graphql/link/index.d.ts.map +1 -0
- package/lib/graphql/link/index.js +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +0 -1
- package/lib/index.native.d.ts +1 -0
- package/lib/index.native.d.ts.map +1 -0
- package/lib/index.native.js +0 -1
- package/lib/interfaces/default-settings.d.ts +2 -1
- package/lib/interfaces/default-settings.d.ts.map +1 -0
- package/lib/interfaces/default-settings.js +0 -1
- package/lib/interfaces/error-state.d.ts +1 -0
- package/lib/interfaces/error-state.d.ts.map +1 -0
- package/lib/interfaces/error-state.js +0 -1
- package/lib/interfaces/index.d.ts +1 -1
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/index.js +1 -2
- package/lib/interfaces/layout/base-menu.d.ts +2 -1
- package/lib/interfaces/layout/base-menu.d.ts.map +1 -0
- package/lib/interfaces/layout/base-menu.js +0 -1
- package/lib/interfaces/layout/basic-layout.d.ts +8 -3
- package/lib/interfaces/layout/basic-layout.d.ts.map +1 -0
- package/lib/interfaces/layout/basic-layout.js +0 -1
- package/lib/interfaces/layout/breadcrum.d.ts +1 -0
- package/lib/interfaces/layout/breadcrum.d.ts.map +1 -0
- package/lib/interfaces/layout/breadcrum.js +0 -1
- package/lib/interfaces/layout/global-footer.d.ts +1 -0
- package/lib/interfaces/layout/global-footer.d.ts.map +1 -0
- package/lib/interfaces/layout/global-footer.js +0 -1
- package/lib/interfaces/layout/global-header.d.ts +2 -1
- package/lib/interfaces/layout/global-header.d.ts.map +1 -0
- package/lib/interfaces/layout/global-header.js +0 -1
- package/lib/interfaces/layout/index.d.ts +1 -0
- package/lib/interfaces/layout/index.d.ts.map +1 -0
- package/lib/interfaces/layout/index.js +0 -1
- package/lib/interfaces/layout/menu.d.ts +1 -0
- package/lib/interfaces/layout/menu.d.ts.map +1 -0
- package/lib/interfaces/layout/menu.js +0 -1
- package/lib/interfaces/layout/page.d.ts +1 -0
- package/lib/interfaces/layout/page.d.ts.map +1 -0
- package/lib/interfaces/layout/page.js +0 -1
- package/lib/interfaces/layout/sider-menu.d.ts +4 -3
- package/lib/interfaces/layout/sider-menu.d.ts.map +1 -0
- package/lib/interfaces/layout/sider-menu.js +0 -1
- package/lib/interfaces/pure-settings.d.ts +4 -3
- package/lib/interfaces/pure-settings.d.ts.map +1 -0
- package/lib/interfaces/pure-settings.js +0 -1
- package/lib/interfaces/typings.d.ts +2 -1
- package/lib/interfaces/typings.d.ts.map +1 -0
- package/lib/interfaces/typings.js +0 -1
- package/lib/redux/actions/error-actions.d.ts +2 -1
- package/lib/redux/actions/error-actions.d.ts.map +1 -0
- package/lib/redux/actions/error-actions.js +0 -1
- package/lib/redux/actions/index.d.ts +1 -0
- package/lib/redux/actions/index.d.ts.map +1 -0
- package/lib/redux/actions/index.js +0 -1
- package/lib/redux/actions/settings-action.d.ts +1 -0
- package/lib/redux/actions/settings-action.d.ts.map +1 -0
- package/lib/redux/actions/settings-action.js +0 -1
- package/lib/redux/index.d.ts +1 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/index.js +0 -1
- package/lib/redux/reducers/error.d.ts +1 -0
- package/lib/redux/reducers/error.d.ts.map +1 -0
- package/lib/redux/reducers/error.js +3 -4
- package/lib/redux/reducers/index.d.ts +1 -0
- package/lib/redux/reducers/index.d.ts.map +1 -0
- package/lib/redux/reducers/index.js +0 -1
- package/lib/redux/selectors/index.d.ts +2 -1
- package/lib/redux/selectors/index.d.ts.map +1 -0
- package/lib/redux/selectors/index.js +1 -2
- package/lib/redux/settings.d.ts +20 -19
- package/lib/redux/settings.d.ts.map +1 -0
- package/lib/redux/settings.js +8 -3
- package/lib/themes/LayoutTheme.d.ts +1 -0
- package/lib/themes/LayoutTheme.d.ts.map +1 -0
- package/lib/themes/LayoutTheme.js +0 -1
- package/lib/themes/TextStyle.d.ts +1 -0
- package/lib/themes/TextStyle.d.ts.map +1 -0
- package/lib/themes/TextStyle.js +0 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.d.ts.map +1 -0
- package/lib/themes/index.js +0 -1
- package/lib/themes/systemFont/index.d.ts +1 -0
- package/lib/themes/systemFont/index.d.ts.map +1 -0
- package/lib/themes/systemFont/index.js +0 -1
- package/lib/themes/systemFont/index.native.d.ts +2 -1
- package/lib/themes/systemFont/index.native.d.ts.map +1 -0
- package/lib/themes/systemFont/index.native.js +0 -1
- package/lib/themes/templates/createLayoutTheme.d.ts +1 -0
- package/lib/themes/templates/createLayoutTheme.d.ts.map +1 -0
- package/lib/themes/templates/createLayoutTheme.js +0 -1
- package/lib/themes/templates/darkLayoutTheme.d.ts +1 -0
- package/lib/themes/templates/darkLayoutTheme.d.ts.map +1 -0
- package/lib/themes/templates/darkLayoutTheme.js +13 -5
- package/lib/themes/templates/index.d.ts +1 -0
- package/lib/themes/templates/index.d.ts.map +1 -0
- package/lib/themes/templates/index.js +0 -1
- package/lib/themes/templates/lightLayoutTheme.d.ts +1 -0
- package/lib/themes/templates/lightLayoutTheme.d.ts.map +1 -0
- package/lib/themes/templates/lightLayoutTheme.js +0 -1
- package/lib/utils/componentSize.d.ts +8 -0
- package/lib/utils/componentSize.d.ts.map +1 -0
- package/lib/utils/componentSize.js +47 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/seperatedMenus.d.ts +2 -1
- package/lib/utils/seperatedMenus.d.ts.map +1 -0
- package/lib/utils/seperatedMenus.js +0 -1
- package/package.json +2 -2
- package/lib/colors/Color.js.map +0 -1
- package/lib/colors/index.js.map +0 -1
- package/lib/colors/presets/black.js.map +0 -1
- package/lib/colors/presets/blue.js.map +0 -1
- package/lib/colors/presets/brinkPink.js.map +0 -1
- package/lib/colors/presets/cyan.js.map +0 -1
- package/lib/colors/presets/green.js.map +0 -1
- package/lib/colors/presets/index.js.map +0 -1
- package/lib/colors/presets/lime.js.map +0 -1
- package/lib/colors/presets/orange.js.map +0 -1
- package/lib/colors/presets/pink.js.map +0 -1
- package/lib/colors/presets/purple.js.map +0 -1
- package/lib/colors/presets/red.js.map +0 -1
- package/lib/colors/presets/skyBlue.js.map +0 -1
- package/lib/colors/presets/turquoise.js.map +0 -1
- package/lib/colors/presets/white.js.map +0 -1
- package/lib/colors/presets/yellow.js.map +0 -1
- package/lib/components/ApplicationErrorFillWrapper.js.map +0 -1
- package/lib/components/ApplicationErrorHandlerCommon.js.map +0 -1
- package/lib/components/ErrorBoundaryCommon.js.map +0 -1
- package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js.map +0 -1
- package/lib/components/index.js.map +0 -1
- package/lib/config/defaultSettings.js.map +0 -1
- package/lib/config/env-config.js.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/constants/constants.js.map +0 -1
- package/lib/constants/error.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/graphql/index.js.map +0 -1
- package/lib/graphql/link/error-link.js.map +0 -1
- package/lib/graphql/link/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/index.native.js.map +0 -1
- package/lib/interfaces/default-settings.js.map +0 -1
- package/lib/interfaces/error-state.js.map +0 -1
- package/lib/interfaces/generated/generated-models.d.ts +0 -2222
- package/lib/interfaces/generated/generated-models.js +0 -52
- package/lib/interfaces/generated/generated-models.js.map +0 -1
- package/lib/interfaces/generated/index.d.ts +0 -1
- package/lib/interfaces/generated/index.js +0 -2
- package/lib/interfaces/generated/index.js.map +0 -1
- package/lib/interfaces/index.js.map +0 -1
- package/lib/interfaces/layout/base-menu.js.map +0 -1
- package/lib/interfaces/layout/basic-layout.js.map +0 -1
- package/lib/interfaces/layout/breadcrum.js.map +0 -1
- package/lib/interfaces/layout/global-footer.js.map +0 -1
- package/lib/interfaces/layout/global-header.js.map +0 -1
- package/lib/interfaces/layout/index.js.map +0 -1
- package/lib/interfaces/layout/menu.js.map +0 -1
- package/lib/interfaces/layout/page.js.map +0 -1
- package/lib/interfaces/layout/sider-menu.js.map +0 -1
- package/lib/interfaces/pure-settings.js.map +0 -1
- package/lib/interfaces/typings.js.map +0 -1
- package/lib/redux/actions/error-actions.js.map +0 -1
- package/lib/redux/actions/index.js.map +0 -1
- package/lib/redux/actions/settings-action.js.map +0 -1
- package/lib/redux/index.js.map +0 -1
- package/lib/redux/reducers/error.js.map +0 -1
- package/lib/redux/reducers/index.js.map +0 -1
- package/lib/redux/selectors/index.js.map +0 -1
- package/lib/redux/settings.js.map +0 -1
- package/lib/themes/LayoutTheme.js.map +0 -1
- package/lib/themes/TextStyle.js.map +0 -1
- package/lib/themes/index.js.map +0 -1
- package/lib/themes/systemFont/index.js.map +0 -1
- package/lib/themes/systemFont/index.native.js.map +0 -1
- package/lib/themes/templates/createLayoutTheme.js.map +0 -1
- package/lib/themes/templates/darkLayoutTheme.js.map +0 -1
- package/lib/themes/templates/index.js.map +0 -1
- package/lib/themes/templates/lightLayoutTheme.js.map +0 -1
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/seperatedMenus.js.map +0 -1
package/lib/colors/Color.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../src/colors/Color.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
package/lib/colors/Color.js
CHANGED
package/lib/colors/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/lib/colors/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"black.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/black.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blue.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/blue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brinkPink.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/brinkPink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cyan.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/cyan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"green.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/green.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","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 @@
|
|
|
1
|
+
{"version":3,"file":"lime.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/lime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orange.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/orange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pink.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/pink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purple.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/purple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"red.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/red.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,GAAG,EAAE,KAUjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyBlue.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/skyBlue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turquoise.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/turquoise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"white.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/white.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yellow.d.ts","sourceRoot":"","sources":["../../../src/colors/presets/yellow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ApplicationErrorFillWrapper: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ApplicationErrorFillWrapper: (props: any) => React.JSX.Element;
|
|
3
|
+
//# sourceMappingURL=ApplicationErrorFillWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorFillWrapper.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationErrorFillWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,2BAA2B,mCAEvC,CAAA"}
|
|
@@ -2,6 +2,5 @@ import { Fill } from '@common-stack/components-pro';
|
|
|
2
2
|
import { APPLICATION_ERROR_SLOT_FILL } from '../constants';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export const ApplicationErrorFillWrapper = (props) => {
|
|
5
|
-
return React.createElement(Fill,
|
|
5
|
+
return React.createElement(Fill, { ...props, name: APPLICATION_ERROR_SLOT_FILL });
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=ApplicationErrorFillWrapper.js.map
|
|
@@ -9,11 +9,11 @@ interface ApplicationErrorHandlerCommonProps {
|
|
|
9
9
|
plugins: Record<string, any>;
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type IRendererComponentType = (props: {
|
|
13
13
|
applicationErrors: ApplicationErrorState[];
|
|
14
14
|
backendError: ApplicationErrorState;
|
|
15
15
|
}) => ReactElement;
|
|
16
|
-
|
|
16
|
+
type IApplicationErrorSlotType = (props: {
|
|
17
17
|
name: string;
|
|
18
18
|
fillProps: {
|
|
19
19
|
active: boolean;
|
|
@@ -33,3 +33,4 @@ declare type IApplicationErrorSlotType = (props: {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any, ApplicationErrorSlot?: IApplicationErrorSlotType, RendererComponent?: IRendererComponentType) => ({ plugins, children }: ApplicationErrorHandlerCommonProps) => ReactElement;
|
|
35
35
|
export {};
|
|
36
|
+
//# sourceMappingURL=ApplicationErrorHandlerCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD;;;GAGG;AACH,UAAU,kCAAkC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,KAAK,sBAAsB,GAAG,CAAC,KAAK,EAAE;IACpC,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;IAC3C,YAAY,EAAE,qBAAqB,CAAA;CACpC,KAAK,YAAY,CAAC;AAEnB,KAAK,yBAAyB,GAAG,CAC/B,KAAK,EAAE;IACL,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE;QACT,MAAM,EAAE,OAAO,CAAC;QAChB,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;KAC3C,CAAA;CACF,KACE,YAAY,CAAC;AAClB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B,kDAEjB,yBAAyB,sBAC5B,sBAAsB,6BACf,kCAAkC,KAAG,YA2BjE,CAAA"}
|
|
@@ -16,19 +16,18 @@ import { backendErrorSelector } from '../redux/selectors';
|
|
|
16
16
|
* @returns ReactNode
|
|
17
17
|
*/
|
|
18
18
|
export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot, RendererComponent) => ({ plugins, children }) => {
|
|
19
|
-
const applicationErrors = useSelector((state) => state
|
|
20
|
-
const errors = applicationErrors
|
|
19
|
+
const applicationErrors = useSelector((state) => state?.applicationErrors);
|
|
20
|
+
const errors = applicationErrors?.filter((error) => !!plugins.find((plugin) => plugin.name === error?.pluginName));
|
|
21
21
|
const backendError = useSelector(backendErrorSelector);
|
|
22
22
|
const RenderApplicationErrorSlot = (props) => {
|
|
23
|
-
return !!ApplicationErrorSlot ? React.createElement(ApplicationErrorSlot,
|
|
23
|
+
return !!ApplicationErrorSlot ? React.createElement(ApplicationErrorSlot, { ...props }) : React.createElement(Slot, { ...props });
|
|
24
24
|
};
|
|
25
25
|
if (!!RendererComponent) {
|
|
26
26
|
return React.createElement(RendererComponent, { applicationErrors: errors, backendError: backendError });
|
|
27
27
|
}
|
|
28
28
|
return (React.createElement(React.Fragment, null,
|
|
29
29
|
!!backendError ? React.createElement(FallbackComponent, { error: backendError }) : null,
|
|
30
|
-
!!
|
|
30
|
+
!!errors?.length
|
|
31
31
|
? React.createElement(RenderApplicationErrorSlot, { name: APPLICATION_ERROR_SLOT_FILL, fillProps: { active: true, applicationErrors: errors } })
|
|
32
32
|
: children));
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=ApplicationErrorHandlerCommon.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
|
|
2
|
+
type IErrorBoundryState = {
|
|
3
3
|
hasError: boolean;
|
|
4
4
|
error: Error | null;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type IErrorBoundryProps = {
|
|
7
7
|
children: ReactElement;
|
|
8
8
|
fallbackComponent: (props: {
|
|
9
9
|
error: Error;
|
|
@@ -16,6 +16,7 @@ export declare class ErrorBoundaryCommon extends React.Component<IErrorBoundryPr
|
|
|
16
16
|
error: Error;
|
|
17
17
|
};
|
|
18
18
|
componentDidCatch(error: Error): void;
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
22
|
+
//# sourceMappingURL=ErrorBoundaryCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBoundaryCommon.d.ts","sourceRoot":"","sources":["../../src/components/ErrorBoundaryCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,KAAK,kBAAkB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CAAE,CAAC;AACrE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,iBAAiB,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,YAAY,CAAA;CAC7D,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;gBAClF,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK;;;;IAI5C,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAI9B,MAAM;CAOP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationErrorHandlerCommon.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/ApplicationErrorHandlerCommon.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultSettings.d.ts","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,eAAe,EAAE,WAAW,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CA+B1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAahD,QAAA,IAAI,MAAM;;gCAAyB,CAAC;AAQpC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -10,10 +10,9 @@ const preConfig = envalid.cleanEnv(env, {
|
|
|
10
10
|
let config = {};
|
|
11
11
|
// overwrite the layout settings with environment
|
|
12
12
|
if (env.LAYOUT_SETTINGS) {
|
|
13
|
-
config =
|
|
13
|
+
config = { ...preConfig, LAYOUT_SETTINGS: { ...defaultSettings, ...preConfig.LAYOUT_SETTINGS } };
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
config = preConfig;
|
|
17
17
|
}
|
|
18
18
|
export { config };
|
|
19
|
-
//# sourceMappingURL=env-config.js.map
|
package/lib/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/lib/config/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,eAAe,4BAA4B,CAAC;AACzD,eAAO,MAAM,2BAA2B,gCAAgC,CAAC"}
|
package/lib/constants/error.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BACKEND_ERROR = '@platform/BACKEND_ERROR';
|
|
2
2
|
export declare const BACKEND_ERROR: BACKEND_ERROR;
|
|
3
|
-
export
|
|
3
|
+
export type DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
|
|
4
4
|
export declare const DISMISS_APPLICATION_ERROR: DISMISS_APPLICATION_ERROR;
|
|
5
|
-
export
|
|
5
|
+
export type CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
|
|
6
6
|
export declare const CLEAR_APPLICATION_ERRORS: CLEAR_APPLICATION_ERRORS;
|
|
7
|
-
export
|
|
7
|
+
export type RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
|
|
8
8
|
export declare const RESTORE_APPLICATION_ERRORS: RESTORE_APPLICATION_ERRORS;
|
|
9
|
-
export
|
|
9
|
+
export type LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
|
|
10
10
|
export declare const LOG_APPLICATION_ERROR: LOG_APPLICATION_ERROR;
|
|
11
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/constants/error.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC;AACtD,eAAO,MAAM,aAAa,EAAE,aAAyC,CAAC;AAEtE,MAAM,MAAM,yBAAyB,GAAG,qCAAqC,CAAC;AAC9E,eAAO,MAAM,yBAAyB,EAAE,yBAAiE,CAAC;AAE1G,MAAM,MAAM,wBAAwB,GAAG,oCAAoC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,EAAE,wBAA+D,CAAC;AAEvG,MAAM,MAAM,0BAA0B,GAAG,sCAAsC,CAAC;AAChF,eAAO,MAAM,0BAA0B,EAAE,0BAAmE,CAAC;AAE7G,MAAM,MAAM,qBAAqB,GAAG,iCAAiC,CAAC;AACtE,eAAO,MAAM,qBAAqB,EAAE,qBAAyD,CAAC"}
|
package/lib/constants/error.js
CHANGED
|
@@ -3,4 +3,3 @@ export const DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
|
|
|
3
3
|
export const CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
|
|
4
4
|
export const RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
|
|
5
5
|
export const LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
|
|
6
|
-
//# sourceMappingURL=error.js.map
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/lib/constants/index.js
CHANGED
package/lib/graphql/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/lib/graphql/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloLink } from '@apollo/client';
|
|
2
2
|
import { interfaces } from 'inversify';
|
|
3
|
-
|
|
3
|
+
type IGetErrorLink = (container: interfaces.Container) => ApolloLink;
|
|
4
4
|
interface IErrorLink {
|
|
5
5
|
getErrorLink: IGetErrorLink;
|
|
6
6
|
}
|
|
@@ -11,3 +11,4 @@ export declare class ErrorLink implements IErrorLink {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const errorReduxLink: (container: interfaces.Container) => ApolloLink;
|
|
13
13
|
export {};
|
|
14
|
+
//# sourceMappingURL=error-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-link.d.ts","sourceRoot":"","sources":["../../../src/graphql/link/error-link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKvC,KAAK,aAAa,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,UAAU,CAAA;AACpE,UAAU,UAAU;IAClB,YAAY,EAAE,aAAa,CAAA;CAC5B;AAED,qBAAa,SAAU,YAAW,UAAU;IAC1C,OAAO,EAAE,MAAM,CAAA;IAEf,mBAAmB,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,KAAK,KAAA;IAkB1D,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS;CAoB7C;AAGD,eAAO,MAAM,cAAc,cAAe,WAAW,SAAS,eAE7D,CAAA"}
|
|
@@ -3,13 +3,12 @@ import { LOG_APPLICATION_ERROR, BACKEND_ERROR } from '../../constants';
|
|
|
3
3
|
import { serializeError } from 'serialize-error';
|
|
4
4
|
export class ErrorLink {
|
|
5
5
|
dispatchErrorAction(container, error) {
|
|
6
|
-
var _a, _b;
|
|
7
6
|
const reduxStore = container.get('ReduxStore');
|
|
8
7
|
let action = {
|
|
9
|
-
type:
|
|
10
|
-
payload:
|
|
8
|
+
type: error?.extensions?.actionName,
|
|
9
|
+
payload: error?.extensions?.payload
|
|
11
10
|
};
|
|
12
|
-
if (!
|
|
11
|
+
if (!action?.type) {
|
|
13
12
|
action = {
|
|
14
13
|
type: LOG_APPLICATION_ERROR,
|
|
15
14
|
payload: {
|
|
@@ -22,16 +21,15 @@ export class ErrorLink {
|
|
|
22
21
|
}
|
|
23
22
|
getErrorLink(container) {
|
|
24
23
|
return onError(err => {
|
|
25
|
-
var _a;
|
|
26
24
|
const { networkError, graphQLErrors } = err;
|
|
27
|
-
if (graphQLErrors
|
|
25
|
+
if (graphQLErrors?.length) {
|
|
28
26
|
graphQLErrors.forEach((error) => {
|
|
29
27
|
this.dispatchErrorAction(container, error);
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
if (networkError) {
|
|
33
|
-
const serverErrors =
|
|
34
|
-
if (serverErrors
|
|
31
|
+
const serverErrors = networkError?.result?.errors;
|
|
32
|
+
if (serverErrors?.length) {
|
|
35
33
|
serverErrors.map((error) => {
|
|
36
34
|
this.dispatchErrorAction(container, error);
|
|
37
35
|
});
|
|
@@ -46,4 +44,3 @@ export class ErrorLink {
|
|
|
46
44
|
export const errorReduxLink = (container) => {
|
|
47
45
|
return new ErrorLink().getErrorLink(container);
|
|
48
46
|
};
|
|
49
|
-
//# sourceMappingURL=error-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/link/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|