@openmrs/esm-styleguide 4.5.1-pre.804 → 5.0.0
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/.turbo/turbo-build.log +22 -27
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/dist/openmrs-esm-styleguide.js +2 -1
- package/dist/openmrs-esm-styleguide.js.LICENSE.txt +41 -0
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/package.json +7 -8
- package/src/error-state/error-state.component.tsx +1 -1
- package/src/left-nav/index.tsx +5 -2
- package/src/modals/index.tsx +2 -3
- package/webpack.config.js +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-styleguide.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"start:storybook": "start-storybook --port 7000",
|
|
12
12
|
"build:storybook": "build-storybook",
|
|
13
13
|
"build": "webpack --mode=production",
|
|
14
|
+
"build:development": "webpack --mode development",
|
|
14
15
|
"analyze": "webpack --mode=production --env analyze=true",
|
|
15
16
|
"lint": "eslint src"
|
|
16
17
|
},
|
|
@@ -44,17 +45,15 @@
|
|
|
44
45
|
"lodash-es": "^4.17.21"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"@openmrs/esm-
|
|
48
|
-
"@openmrs/esm-react-utils": "4.x",
|
|
49
|
-
"@openmrs/esm-state": "4.x",
|
|
48
|
+
"@openmrs/esm-framework": "4.x",
|
|
50
49
|
"react": "18.x",
|
|
51
50
|
"react-dom": "18.x",
|
|
52
51
|
"rxjs": "6.x"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@openmrs/esm-extensions": "^
|
|
56
|
-
"@openmrs/esm-react-utils": "^
|
|
57
|
-
"@openmrs/esm-state": "^
|
|
54
|
+
"@openmrs/esm-extensions": "^5.0.0",
|
|
55
|
+
"@openmrs/esm-react-utils": "^5.0.0",
|
|
56
|
+
"@openmrs/esm-state": "^5.0.0",
|
|
58
57
|
"autoprefixer": "^9.8.8",
|
|
59
58
|
"css-minimizer-webpack-plugin": "^1.2.0",
|
|
60
59
|
"i18next": "^19.6.0",
|
|
@@ -65,5 +64,5 @@
|
|
|
65
64
|
"react-dom": "^18.1.0",
|
|
66
65
|
"rxjs": "^6.5.3"
|
|
67
66
|
},
|
|
68
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2de5bf392a036e12c6d48425ff61881be7e32344"
|
|
69
68
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Tile } from "@carbon/react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import { useLayoutType } from "@openmrs/esm-
|
|
4
|
+
import { useLayoutType } from "@openmrs/esm-framework";
|
|
5
5
|
import styles from "./error-state.module.scss";
|
|
6
6
|
|
|
7
7
|
export interface ErrorStateProps {
|
package/src/left-nav/index.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/** @module @category UI */
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
ExtensionSlot,
|
|
5
|
+
useStore,
|
|
6
|
+
createGlobalStore,
|
|
7
|
+
} from "@openmrs/esm-framework";
|
|
5
8
|
import { SideNav, SideNavProps } from "@carbon/react";
|
|
6
9
|
import styles from "./left-nav.module.scss";
|
|
7
10
|
|
package/src/modals/index.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @module @category UI */
|
|
2
|
-
import { renderExtension } from "@openmrs/esm-
|
|
3
|
-
import {
|
|
4
|
-
import { Parcel } from "single-spa";
|
|
2
|
+
import { createGlobalStore, renderExtension } from "@openmrs/esm-framework";
|
|
3
|
+
import type { Parcel } from "single-spa";
|
|
5
4
|
|
|
6
5
|
type ModalInstanceState = "NEW" | "MOUNTED" | "TO_BE_DELETED";
|
|
7
6
|
|
package/webpack.config.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
2
2
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
|
3
|
-
const SystemJSPublicPathWebpackPlugin = require("systemjs-webpack-interop/SystemJSPublicPathWebpackPlugin");
|
|
4
3
|
const { resolve } = require("path");
|
|
5
4
|
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
|
6
5
|
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
@@ -13,7 +12,7 @@ module.exports = (env) => ({
|
|
|
13
12
|
resolve(__dirname, "src/_all.scss"),
|
|
14
13
|
],
|
|
15
14
|
output: {
|
|
16
|
-
|
|
15
|
+
library: { type: "var", name: "_openmrs_esm_styleguide" },
|
|
17
16
|
filename: "openmrs-esm-styleguide.js",
|
|
18
17
|
chunkFilename: "[name].js",
|
|
19
18
|
path: resolve(__dirname, "dist"),
|
|
@@ -33,7 +32,7 @@ module.exports = (env) => ({
|
|
|
33
32
|
},
|
|
34
33
|
{
|
|
35
34
|
test: /\.(js|jsx|ts|tsx)$/,
|
|
36
|
-
use:
|
|
35
|
+
use: "@swc-node/loader",
|
|
37
36
|
},
|
|
38
37
|
{
|
|
39
38
|
test: /\.(woff|woff2|png)?$/,
|
|
@@ -51,7 +50,6 @@ module.exports = (env) => ({
|
|
|
51
50
|
"Access-Control-Allow-Origin": "*",
|
|
52
51
|
},
|
|
53
52
|
},
|
|
54
|
-
externals: Object.keys(peerDependencies || {}),
|
|
55
53
|
resolve: {
|
|
56
54
|
modules: ["node_modules"],
|
|
57
55
|
extensions: [".js", ".jsx", ".json", ".ts", ".tsx"],
|
|
@@ -61,7 +59,6 @@ module.exports = (env) => ({
|
|
|
61
59
|
minimizer: [new CssMinimizerPlugin(), "..."],
|
|
62
60
|
},
|
|
63
61
|
plugins: [
|
|
64
|
-
new SystemJSPublicPathWebpackPlugin(),
|
|
65
62
|
new CleanWebpackPlugin(),
|
|
66
63
|
new MiniCssExtractPlugin({
|
|
67
64
|
filename: "openmrs-esm-styleguide.css",
|