@corva/dc-platform-shared 0.67.0 → 0.68.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 (50) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/components/App/components/AppBar/AppBar.js +1 -1
  3. package/CLI/hocs/effects/useProvideAuth/useProvideAuth.js +1 -1
  4. package/CLI/hocs/utils.js +1 -1
  5. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  6. package/CLI/hocs/withCLIAppSettingsHOC.js +1 -1
  7. package/CLI/hocs/withCorvaMagicHOC.js +1 -1
  8. package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
  9. package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
  10. package/CLI/hocs/withPDFLayoutHOC.js +1 -1
  11. package/CLI/hocs/withReactRouterHOC.js +1 -1
  12. package/CLI/screens/LoginScreen/LoginScreen.js +1 -1
  13. package/CLI/screens/LoginScreen/components/Auth.js +1 -1
  14. package/CLI/screens/LoginScreen/components/AuthStep.js +1 -1
  15. package/CLI/screens/LoginScreen/components/EmailStep.js +1 -1
  16. package/CLI/screens/LoginScreen/components/SSOButton.js +1 -1
  17. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  18. package/cjs/devcenter/webpack/DevServerEntryPoint.js +1 -1
  19. package/cjs/devcenter/webpack/DevServerIsolatedAppEntryPoint.js +1 -1
  20. package/cjs/devcenter/webpack/constants.js +1 -1
  21. package/cjs/devcenter/webpack/plugins/checkCorvaUIVersion.js +11 -1
  22. package/cjs/devcenter/webpack/utils/middlewares.js +1 -1
  23. package/cjs/devcenter/webpack/utils/serializeDotEnv.js +1 -1
  24. package/cjs/devcenter/webpack/validators/dependencies.js +1 -1
  25. package/cjs/devcenter/webpack/validators/index.js +1 -1
  26. package/cjs/devcenter/webpack/webpack.config.common.js +1 -1
  27. package/cjs/devcenter/webpack/webpack.config.dev.js +1 -1
  28. package/cjs/devcenter/webpack/webpack.config.prod.js +1 -1
  29. package/clients/auth0/index.js +1 -1
  30. package/components/GridLockButton/index.js +1 -1
  31. package/components/Login/components/Chip.js +1 -1
  32. package/components/Login/components/EmailField.js +1 -1
  33. package/components/Login/components/HiddenEmailField.js +1 -1
  34. package/components/Login/components/Login.js +1 -1
  35. package/components/Login/components/PasswordField.js +1 -1
  36. package/components/Login/components/StepFooter.js +1 -1
  37. package/components/Login/components/VerificationStep.js +1 -1
  38. package/package.json +23 -13
  39. package/utils/devcenter.js +1 -1
  40. package/utils/recaptcha.js +1 -1
  41. package/vite/corva-vite-config.mjs +858 -0
  42. package/_virtual/_commonjsHelpers.js +0 -1
  43. package/_virtual/toPrimitive.js +0 -1
  44. package/_virtual/toPropertyKey.js +0 -1
  45. package/_virtual/typeof.js +0 -1
  46. package/ext-cjs/@babel/runtime/helpers/defineProperty.js +0 -1
  47. package/ext-cjs/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -1
  48. package/ext-cjs/@babel/runtime/helpers/toPrimitive.js +0 -1
  49. package/ext-cjs/@babel/runtime/helpers/toPropertyKey.js +0 -1
  50. package/ext-cjs/@babel/runtime/helpers/typeof.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/dc-platform-shared",
3
- "version": "0.67.0",
3
+ "version": "0.68.1",
4
4
  "description": "A library to share internal DC platform specific code",
5
5
  "main": "./dist",
6
6
  "module": "./src/index.js",
@@ -59,7 +59,7 @@
59
59
  "^.+\\.svg$": "<rootDir>/jest/svgTransform.js"
60
60
  },
61
61
  "transformIgnorePatterns": [
62
- "node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"
62
+ "/node_modules/(?!@corva/ui|@icon-park/react)"
63
63
  ],
64
64
  "moduleFileExtensions": [
65
65
  "js",
@@ -67,7 +67,8 @@
67
67
  "json",
68
68
  "mjs",
69
69
  "node"
70
- ]
70
+ ],
71
+ "testEnvironment": "jsdom"
71
72
  },
72
73
  "dependencies": {
73
74
  "@babel/core": "^7.12.10",
@@ -83,26 +84,31 @@
83
84
  "@material-ui/lab": "4.0.0-alpha.57",
84
85
  "@material-ui/pickers": "3.2.10",
85
86
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
87
+ "@vitejs/plugin-react": "6.1.1",
88
+ "@vitest/coverage-v8": "4.1.11",
86
89
  "babel-eslint": "10.0.3",
87
- "babel-jest": "^26.3.0",
88
- "babel-loader": "8.1.0",
90
+ "babel-jest": "^30.2.0",
91
+ "babel-loader": "^10.0.0",
89
92
  "babel-plugin-file-loader": "^2.0.0",
90
93
  "babel-plugin-root-import": "^6.5.0",
91
94
  "chalk": "4.1.1",
92
95
  "classnames": "2.2.6",
93
96
  "clean-webpack-plugin": "3.0.0",
94
- "copy-webpack-plugin": "6.1.1",
97
+ "copy-webpack-plugin": "^13.0.1",
95
98
  "css-loader": "^7.1.0",
96
- "dotenv": "^10.0.0",
99
+ "dotenv": "16.4.7",
100
+ "dotenv-expand": "11.0.7",
97
101
  "eslint-config-airbnb": "17.1.0",
98
102
  "eslint-plugin-jest-dom": "3.9.4",
99
103
  "eslint-plugin-prettier": "3.1.1",
100
104
  "eslint-plugin-testing-library": "^3.9.2",
101
105
  "express": "4.21.2",
102
106
  "fs": "0.0.1-security",
103
- "html-webpack-plugin": "4.5.2",
107
+ "html-webpack-plugin": "^5.6.4",
104
108
  "identity-obj-proxy": "^3.0.0",
105
- "jest": "^26.4.1",
109
+ "jest": "^30.2.0",
110
+ "jest-environment-jsdom": "^30.2.0",
111
+ "jsdom": "22.1.0",
106
112
  "jsona": "1.5.1",
107
113
  "lodash": "4.18.1",
108
114
  "moment": "2.29.4",
@@ -121,23 +127,27 @@
121
127
  "react-router-dom": "^5.3.4",
122
128
  "react-sizeme": "2.5.2",
123
129
  "rollup-plugin-copy": "^3.4.0",
130
+ "rollup-plugin-license": "3.6.0",
124
131
  "sass": "npm:sass-embedded@^1.99.0",
125
132
  "sass-loader": "^16.0.5",
126
133
  "semver": "7.5.2",
127
134
  "style-loader": "^4.0.0",
128
- "svg-url-loader": "6.0.0",
129
- "terser-webpack-plugin": "4.2.3",
135
+ "svg-url-loader": "^8.1.0",
136
+ "terser-webpack-plugin": "^5.3.14",
130
137
  "uuid": "3.4.0",
138
+ "vite": "8.3.0",
139
+ "vite-plugin-static-copy": "4.1.0",
140
+ "vitest": "4.1.11",
131
141
  "webpack": "5.94.0",
132
142
  "webpack-cli": "5.1.4",
133
- "webpack-dev-server": "4.15.2",
143
+ "webpack-dev-server": "^5.2.2",
134
144
  "webpack-merge": "5.9.0"
135
145
  },
136
146
  "peerDependencies": {
137
147
  "@corva/ui": "*"
138
148
  },
139
149
  "devDependencies": {
140
- "@corva/ui": "^3.71.0-12",
150
+ "@corva/ui": "3.78.0-2",
141
151
  "@rollup/plugin-babel": "^5.2.1",
142
152
  "@rollup/plugin-commonjs": "^15.0.0",
143
153
  "@rollup/plugin-image": "^2.0.6",
@@ -1 +1 @@
1
- import{DEV_CENTER_CLI_APP_ID as n}from"@corva/ui/constants";const o=function(o){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return t===+(null==o?void 0:o.maximizeDC)};function t(n){var o,t;return{push:o=>{"string"==typeof o?n.push(o):n.push({pathname:o.pathname,query:o.query})},location:{pathname:null==n||null===(o=n.location)||void 0===o?void 0:o.pathname,query:null==n||null===(t=n.location)||void 0===t?void 0:t.query}}}export{t as createDevCenterRouter,o as isAppMaximized};
1
+ import{DEV_CENTER_CLI_APP_ID as t}from"@corva/ui/constants";const a=(a,n=t)=>n===+a?.maximizeDC;function n(t){return{push:a=>{"string"==typeof a?t.push(a):t.push({pathname:a.pathname,query:a.query})},location:{pathname:t?.location?.pathname,query:t?.location?.query}}}export{n as createDevCenterRouter,a as isAppMaximized};
@@ -1 +1 @@
1
- const c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){const e=document.createElement("script");e.async=!0,e.src="https://www.google.com/recaptcha/enterprise.js?render=".concat(c),document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};
1
+ const c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){const e=document.createElement("script");e.async=!0,e.src=`https://www.google.com/recaptcha/enterprise.js?render=${c}`,document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};