@ugandaemr/esm-login-app 5.1.1-pre.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/.eslintignore +2 -0
  2. package/.eslintrc +37 -0
  3. package/.husky/pre-commit +4 -0
  4. package/.husky/pre-push +6 -0
  5. package/.prettierignore +14 -0
  6. package/.turbo/turbo-build.log +34 -0
  7. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
  9. package/.yarn/versions/456935dc.yml +0 -0
  10. package/6c05c1440f41d9cd/6c05c1440f41d9cd.gz +0 -0
  11. package/LICENSE +395 -0
  12. package/README.md +3 -0
  13. package/__mocks__/config.mock.ts +19 -0
  14. package/__mocks__/locations.mock.ts +399 -0
  15. package/__mocks__/react-i18next.js +56 -0
  16. package/dist/0f28ae6ed1f0f683.png +0 -0
  17. package/dist/131.js +2 -0
  18. package/dist/131.js.LICENSE.txt +5 -0
  19. package/dist/131.js.map +1 -0
  20. package/dist/282.js +2 -0
  21. package/dist/282.js.LICENSE.txt +32 -0
  22. package/dist/282.js.map +1 -0
  23. package/dist/29.js +2 -0
  24. package/dist/29.js.LICENSE.txt +3 -0
  25. package/dist/29.js.map +1 -0
  26. package/dist/300.js +1 -0
  27. package/dist/422.js +1 -0
  28. package/dist/422.js.map +1 -0
  29. package/dist/490.js +2 -0
  30. package/dist/490.js.LICENSE.txt +9 -0
  31. package/dist/490.js.map +1 -0
  32. package/dist/540.js +2 -0
  33. package/dist/540.js.LICENSE.txt +9 -0
  34. package/dist/540.js.map +1 -0
  35. package/dist/864.js +1 -0
  36. package/dist/864.js.map +1 -0
  37. package/dist/91.js +1 -0
  38. package/dist/91.js.map +1 -0
  39. package/dist/952.js +1 -0
  40. package/dist/952.js.map +1 -0
  41. package/dist/961.js +2 -0
  42. package/dist/961.js.LICENSE.txt +19 -0
  43. package/dist/961.js.map +1 -0
  44. package/dist/esm-ugandaemr-login.js +1 -0
  45. package/dist/esm-ugandaemr-login.js.buildmanifest.json +405 -0
  46. package/dist/esm-ugandaemr-login.js.map +1 -0
  47. package/dist/main.js +1 -0
  48. package/dist/main.js.map +1 -0
  49. package/dist/routes.json +1 -0
  50. package/i18next-parser.config.js +89 -0
  51. package/jest.config.js +40 -0
  52. package/package.json +106 -0
  53. package/src/assets/background.png +0 -0
  54. package/src/config-schema.ts +52 -0
  55. package/src/confirm-location/confirm.location.component.tsx +35 -0
  56. package/src/declarations.d.ts +8 -0
  57. package/src/index.ts +30 -0
  58. package/src/login/login.component.tsx +270 -0
  59. package/src/login/login.resource.ts +58 -0
  60. package/src/login/login.scss +180 -0
  61. package/src/login/login.test.tsx +140 -0
  62. package/src/login/logo.component.tsx +50 -0
  63. package/src/logout/logout.component.tsx +30 -0
  64. package/src/logout/logout.resource.ts +18 -0
  65. package/src/logout/logout.scss +8 -0
  66. package/src/redirect-logout/redirect-logout.component.tsx +32 -0
  67. package/src/root.component.tsx +20 -0
  68. package/src/root.scss +31 -0
  69. package/src/routes.json +29 -0
  70. package/src/setup-tests.ts +15 -0
  71. package/src/test-helpers/render-with-router.tsx +24 -0
  72. package/src/types.ts +226 -0
  73. package/translations/en.json +18 -0
  74. package/tsconfig.json +24 -0
  75. package/turbo.json +18 -0
  76. package/webpack.config.js +1 -0
package/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ src/**/*.test.tsx
2
+ **/*.d.tsx
package/.eslintrc ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "parser": "@typescript-eslint/parser",
3
+ "plugins": ["@typescript-eslint"],
4
+ "root": true,
5
+ "extends": [
6
+ "eslint:recommended",
7
+ "plugin:prettier/recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "ts-react-important-stuff"
10
+ ],
11
+ "rules": {
12
+ "no-restricted-imports": [
13
+ "error",
14
+ {
15
+ "paths": [
16
+ {
17
+ "name": "lodash",
18
+ "message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`"
19
+ },
20
+ {
21
+ "name": "lodash-es",
22
+ "importNames": ["default"],
23
+ "message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`"
24
+ },
25
+ {
26
+ "name": "carbon-components-react",
27
+ "message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
28
+ },
29
+ {
30
+ "name": "@carbon/icons-react",
31
+ "message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ yarn pretty-quick --staged
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ set -e # die on error
5
+
6
+ yarn verify
@@ -0,0 +1,14 @@
1
+ # directories
2
+ .husky/
3
+ dist/
4
+ node_modules/
5
+
6
+ # dotfiles and generated
7
+ .*
8
+ yarn.lock
9
+
10
+ # by file type
11
+ **/*.css
12
+ **/*.scss
13
+ **/*.md
14
+ **/*.json
@@ -0,0 +1,34 @@
1
+ assets by path *.js 910 KiB
2
+ assets by chunk 851 KiB (id hint: vendors)
3
+ asset 29.js 539 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
4
+ asset 961.js 130 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
5
+ asset 131.js 78 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
6
+ + 3 assets
7
+ + 7 assets
8
+ assets by path *.json 8.44 KiB
9
+ asset esm-ugandaemr-login.js.buildmanifest.json 8.04 KiB [emitted]
10
+ asset routes.json 409 bytes [emitted] [from: src/routes.json] [copied]
11
+ asset 0f28ae6ed1f0f683.png 725 KiB [emitted] [immutable] [from: src/assets/background.png] [big]
12
+ orphan modules 4.13 MiB [orphan] 399 modules
13
+ runtime modules 39.3 KiB 28 modules
14
+ built modules 3.16 MiB (javascript) 725 KiB (asset) 210 bytes (share-init) 210 bytes (consume-shared) [built]
15
+ modules by path ./node_modules/ 3.1 MiB 44 modules
16
+ modules by path ./src/ 64.8 KiB (javascript) 725 KiB (asset) 6 modules
17
+ provide-module modules 210 bytes
18
+ provide shared module (default) @openmrs/esm-framework@5.5.0 = ./node_modules/@o...(truncated) 42 bytes [built] [code generated]
19
+ + 4 modules
20
+ consume-shared-module modules 210 bytes
21
+ consume shared module (default) @openmrs/esm-framework@^5 (singleton) (fallback:...(truncated) 42 bytes [built] [code generated]
22
+ + 4 modules
23
+ modules by path ./translations/ 646 bytes
24
+ ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
25
+ ./translations/en.json 486 bytes [optional] [built] [code generated]
26
+ container entry 42 bytes [built] [code generated]
27
+
28
+ WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
29
+ This can impact web performance.
30
+ Assets:
31
+ 0f28ae6ed1f0f683.png (725 KiB)
32
+ 29.js (539 KiB)
33
+
34
+ webpack 5.90.3 compiled with 1 warning in 21032 ms