@sasindi/procedure-room-app 1.0.1

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 (52) hide show
  1. package/LICENSE +401 -0
  2. package/README.md +37 -0
  3. package/dist/183.js +2 -0
  4. package/dist/183.js.LICENSE.txt +14 -0
  5. package/dist/183.js.map +1 -0
  6. package/dist/184.js +2 -0
  7. package/dist/184.js.LICENSE.txt +14 -0
  8. package/dist/184.js.map +1 -0
  9. package/dist/197.js +1 -0
  10. package/dist/255.js +1 -0
  11. package/dist/255.js.map +1 -0
  12. package/dist/282.js +2 -0
  13. package/dist/282.js.LICENSE.txt +32 -0
  14. package/dist/282.js.map +1 -0
  15. package/dist/300.js +1 -0
  16. package/dist/335.js +1 -0
  17. package/dist/353.js +1 -0
  18. package/dist/353.js.map +1 -0
  19. package/dist/389.js +1 -0
  20. package/dist/389.js.map +1 -0
  21. package/dist/465.js +1 -0
  22. package/dist/465.js.map +1 -0
  23. package/dist/488.js +1 -0
  24. package/dist/488.js.map +1 -0
  25. package/dist/540.js +2 -0
  26. package/dist/540.js.LICENSE.txt +9 -0
  27. package/dist/540.js.map +1 -0
  28. package/dist/55.js +1 -0
  29. package/dist/652.js +1 -0
  30. package/dist/70.js +1 -0
  31. package/dist/70.js.map +1 -0
  32. package/dist/731.js +2 -0
  33. package/dist/731.js.LICENSE.txt +39 -0
  34. package/dist/731.js.map +1 -0
  35. package/dist/799.js +1 -0
  36. package/dist/799.js.map +1 -0
  37. package/dist/91.js +1 -0
  38. package/dist/91.js.map +1 -0
  39. package/dist/961.js +2 -0
  40. package/dist/961.js.LICENSE.txt +19 -0
  41. package/dist/961.js.map +1 -0
  42. package/dist/970.js +1 -0
  43. package/dist/970.js.map +1 -0
  44. package/dist/99.js +1 -0
  45. package/dist/main.js +1 -0
  46. package/dist/main.js.map +1 -0
  47. package/dist/procedure-room-app.js +1 -0
  48. package/dist/procedure-room-app.js.buildmanifest.json +655 -0
  49. package/dist/procedure-room-app.js.map +1 -0
  50. package/dist/routes.json +1 -0
  51. package/package.json +113 -0
  52. package/src/index.ts +51 -0
package/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "@sasindi/procedure-room-app",
3
+ "version": "1.0.1",
4
+ "license": "MPL-2.0",
5
+ "description": "An OpenMRS seed application for building microfrontends",
6
+ "browser": "dist/procedure-room-app.js",
7
+ "main": "src/index.ts",
8
+ "source": true,
9
+ "scripts": {
10
+ "start": "openmrs develop",
11
+ "serve": "webpack serve --mode=development",
12
+ "build": "webpack --mode production",
13
+ "analyze": "webpack --mode=production --env analyze=true",
14
+ "lint": "eslint src --ext js,jsx,ts,tsx --max-warnings 0",
15
+ "prettier": "prettier --write \"src/**/*.{ts,tsx}\" --list-different",
16
+ "typescript": "tsc",
17
+ "test": "jest --config jest.config.js --passWithNoTests",
18
+ "verify": "turbo lint typescript coverage",
19
+ "coverage": "yarn test --coverage",
20
+ "prepare": "husky install",
21
+ "extract-translations": "i18next 'src/**/*.component.tsx' --config ./tools/i18next-parser.config.js",
22
+ "test-e2e": "playwright test"
23
+ },
24
+ "browserslist": [
25
+ "extends browserslist-config-openmrs"
26
+ ],
27
+ "keywords": [
28
+ "openmrs",
29
+ "microfrontends"
30
+ ],
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/openmrs/openmrs-esm-template-app.git"
34
+ },
35
+ "homepage": "https://github.com/openmrs/openmrs-esm-template-app#readme",
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/openmrs/openmrs-esm-template-app/issues"
41
+ },
42
+ "dependencies": {
43
+ "@carbon/react": "^1.83.0",
44
+ "lodash-es": "^4.17.21",
45
+ "sweetalert2": "^11.26.17"
46
+ },
47
+ "peerDependencies": {
48
+ "@openmrs/esm-framework": "^8.0.0",
49
+ "dayjs": "1.x",
50
+ "react": "18.x",
51
+ "react-i18next": "16.x",
52
+ "react-router-dom": "6.x",
53
+ "rxjs": "6.x"
54
+ },
55
+ "devDependencies": {
56
+ "@openmrs/esm-framework": "^8.0.0",
57
+ "@openmrs/esm-styleguide": "next",
58
+ "@playwright/test": "^1.52.0",
59
+ "@swc/cli": "^0.3.12",
60
+ "@swc/core": "^1.3.68",
61
+ "@swc/jest": "^0.2.36",
62
+ "@testing-library/dom": "^10.1.0",
63
+ "@testing-library/jest-dom": "^6.4.5",
64
+ "@testing-library/react": "^15.0.6",
65
+ "@testing-library/user-event": "^14.5.2",
66
+ "@types/jest": "^29.5.12",
67
+ "@types/react": "^18.3.21",
68
+ "@types/react-dom": "^18.3.0",
69
+ "@types/react-router": "^5.1.20",
70
+ "@types/react-router-dom": "^5.3.3",
71
+ "@types/webpack-env": "^1.18.1",
72
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
73
+ "@typescript-eslint/parser": "^7.8.0",
74
+ "css-loader": "^6.8.1",
75
+ "dayjs": "^1.11.13",
76
+ "dotenv": "^16.0.3",
77
+ "eslint": "^8.50.0",
78
+ "eslint-config-prettier": "^8.8.0",
79
+ "eslint-plugin-jest-dom": "^5.4.0",
80
+ "eslint-plugin-prettier": "^5.1.3",
81
+ "eslint-plugin-react-hooks": "^4.6.2",
82
+ "husky": "^8.0.3",
83
+ "i18next": "^25.0.0",
84
+ "i18next-parser": "^9.3.0",
85
+ "identity-obj-proxy": "^3.0.0",
86
+ "jest": "^29.7.0",
87
+ "jest-cli": "^29.7.0",
88
+ "jest-environment-jsdom": "^29.7.0",
89
+ "lint-staged": "^15.2.2",
90
+ "openmrs": "^8.0.1-pre.3605",
91
+ "prettier": "^3.3.3",
92
+ "react": "^18.3.1",
93
+ "react-dom": "^18.3.1",
94
+ "react-i18next": "^16.0.0",
95
+ "react-router-dom": "^6.14.1",
96
+ "rxjs": "^6.6.7",
97
+ "swc-loader": "^0.2.3",
98
+ "turbo": "^2.5.2",
99
+ "typescript": "^5.0.0",
100
+ "webpack": "^5.99.9",
101
+ "webpack-cli": "^6.0.1"
102
+ },
103
+ "lint-staged": {
104
+ "packages/**/src/**/*.{ts,tsx}": "eslint --cache --fix --max-warnings 0",
105
+ "*.{css,scss,ts,tsx}": "prettier --write --list-different"
106
+ },
107
+ "packageManager": "yarn@4.10.3",
108
+ "files": [
109
+ "dist",
110
+ "package.json",
111
+ "README.md"
112
+ ]
113
+ }
package/src/index.ts ADDED
@@ -0,0 +1,51 @@
1
+ /**
2
+ * This is the entrypoint file of the application. It communicates the
3
+ * important features of this microfrontend to the app shell. It
4
+ * connects the app shell to the React application(s) that make up this
5
+ * microfrontend.
6
+ */
7
+ import { getAsyncLifecycle, defineConfigSchema } from '@openmrs/esm-framework';
8
+ import { configSchema } from './config-schema';
9
+
10
+ const moduleName = '@sasindi/procedure-room';
11
+
12
+ const options = {
13
+ featureName: 'root-world',
14
+ moduleName,
15
+ };
16
+
17
+ /**
18
+ * This tells the app shell how to obtain translation files: that they
19
+ * are JSON files in the directory `../translations` (which you should
20
+ * see in the directory structure).
21
+ */
22
+ export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
23
+
24
+ /**
25
+ * This function performs any setup that should happen at microfrontend
26
+ * load-time (such as defining the config schema) and then returns an
27
+ * object which describes how the React application(s) should be
28
+ * rendered.
29
+ */
30
+ export function startupApp() {
31
+ defineConfigSchema(moduleName, configSchema);
32
+ }
33
+
34
+ /**
35
+ * This named export tells the app shell that the default export of `root.component.tsx`
36
+ * should be rendered when the route matches `root`. The full route
37
+ * will be `openmrsSpaBase() + 'root'`, which is usually
38
+ * `/openmrs/spa/root`.
39
+ */
40
+ export const root = getAsyncLifecycle(() => import('./root.component'), options);
41
+
42
+ /**
43
+ * The following are named exports for the extensions defined in this frontend modules. See the `routes.json` file to see how these are used.
44
+ */
45
+ export const redBox = getAsyncLifecycle(() => import('./boxes/extensions/red-box.component'), options);
46
+
47
+ export const blueBox = getAsyncLifecycle(() => import('./boxes/extensions/blue-box.component'), options);
48
+
49
+ export const brandBox = getAsyncLifecycle(() => import('./boxes/extensions/brand-box.component'), options);
50
+
51
+ export const procedureRoom = getAsyncLifecycle(() => import('./ProcedureRoom'), options);