@zengenti/contensis-react-base 3.2.3-beta.9 → 3.3.1-beta.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/README.md
CHANGED
|
@@ -6,6 +6,18 @@ Handles web app routing with Contensis Site View and component rendering based o
|
|
|
6
6
|
|
|
7
7
|
## Upgrade notes (older projects)
|
|
8
8
|
|
|
9
|
+
### Styled Components 6 (v3.3+)
|
|
10
|
+
|
|
11
|
+
Some projects may see console warnings in the web app like the example below after upgrading to v3.3+ which updates Styled Components from version 5 to 6
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
styled-components: it looks like an unknown prop "maxWidth" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)
|
|
15
|
+
|
|
16
|
+
React does not recognize the `maxWidth` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `maxwidth` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
To fix these warnings we can opt-in to certain behaviours from Styled Components v5 by wrapping the top-level components in `App` in a `StyleSheetManager` component and handlers for suppressing the necessary warnings. [Further reading](https://styled-components.com/docs/faqs#shouldforwardprop-is-no-longer-provided-by-default)
|
|
20
|
+
|
|
9
21
|
### React 17 (v3.0+)
|
|
10
22
|
|
|
11
23
|
This version introduces React v17. React is very sensitive to having multiple versions installed at the same time.
|
|
@@ -66,7 +78,7 @@ All TypeScript models are exported from here and should be imported in your app
|
|
|
66
78
|
|
|
67
79
|
Default export `ClientApp` which is a class when instantiated with `new ClientApp` accepts two constructor arguments similar to `ZengentiAppServer.start()` except for use when loading the application via the client-side entrypoint
|
|
68
80
|
|
|
69
|
-
### /forms
|
|
81
|
+
### /forms (deprecated)
|
|
70
82
|
|
|
71
83
|
For use when using the newer Content Types and Entries based forms module
|
|
72
84
|
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const VersionInfoStyledTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default LoginStyled;
|
|
2
|
-
declare const LoginStyled:
|
|
2
|
+
declare const LoginStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default LoginFormStyled;
|
|
2
|
-
declare const LoginFormStyled:
|
|
2
|
+
declare const LoginFormStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1-beta.0",
|
|
4
4
|
"repository": "https://github.com/zengenti/contensis-react-base",
|
|
5
5
|
"license": "None",
|
|
6
6
|
"description": "Turbocharge your React web apps with Contensis. This package handles all dependencies for creating full featured web apps in React with Contensis and Site View. Routing is driven by Site View, Redux is used for global state management and server-side rendering (SSR) is handled for you. Also taking care of intricate hosting issues such as cache invalidation and supporting authenticated content where required.",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/preset-env": "^7.26.0",
|
|
32
32
|
"@babel/preset-react": "^7.25.9",
|
|
33
33
|
"@babel/preset-typescript": "^7.26.0",
|
|
34
|
-
"@eslint/js": "^9.
|
|
34
|
+
"@eslint/js": "^9.15.0",
|
|
35
35
|
"@loadable/babel-plugin": "^5.16.1",
|
|
36
36
|
"@rollup/plugin-alias": "^5.1.1",
|
|
37
37
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
46
46
|
"@types/loadable__component": "^5.13.9",
|
|
47
47
|
"@types/loadable__server": "^5.12.11",
|
|
48
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^20.17.8",
|
|
49
49
|
"@types/query-string": "^5.1.0",
|
|
50
50
|
"@types/react": "^17.0.83",
|
|
51
51
|
"@types/react-dom": "^17.0.25",
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"babel-plugin-styled-components": "^2.1.4",
|
|
58
58
|
"copyfiles": "^2.4.1",
|
|
59
59
|
"cross-env": "^7.0.3",
|
|
60
|
-
"eslint": "^9.
|
|
60
|
+
"eslint": "^9.15.0",
|
|
61
61
|
"eslint-config-prettier": "^9.1.0",
|
|
62
62
|
"eslint-plugin-import": "^2.31.0",
|
|
63
63
|
"eslint-plugin-prettier": "^5.2.1",
|
|
64
64
|
"eslint-plugin-react": "^7.37.2",
|
|
65
65
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
66
66
|
"fs-extra": "^11.2.0",
|
|
67
|
-
"globals": "^15.
|
|
68
|
-
"prettier": "^3.
|
|
67
|
+
"globals": "^15.12.0",
|
|
68
|
+
"prettier": "^3.4.1",
|
|
69
69
|
"rimraf": "^6.0.1",
|
|
70
|
-
"rollup": "^4.
|
|
70
|
+
"rollup": "^4.27.4",
|
|
71
71
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
72
72
|
"ts-patch": "^3.2.1",
|
|
73
73
|
"typescript": "5.4",
|
|
74
|
-
"typescript-eslint": "^8.
|
|
75
|
-
"typescript-transform-paths": "^3.5.
|
|
74
|
+
"typescript-eslint": "^8.16.0",
|
|
75
|
+
"typescript-transform-paths": "^3.5.2",
|
|
76
76
|
"zengenti-forms-package": "git+https://gitlab+deploy-token-11:DRbTWzdaRzkjDWc_VixQ@gitlab.zengenti.com/zengenti-packages/forms.git#next",
|
|
77
77
|
"zengenti-search-package": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer"
|
|
78
78
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"immer": "^9.0.21",
|
|
94
94
|
"immutable": "4.0.0-rc.12",
|
|
95
95
|
"isomorphic-fetch": "^3.0.0",
|
|
96
|
-
"jsonpath-mapper": "^2.0.
|
|
96
|
+
"jsonpath-mapper": "^2.0.3",
|
|
97
97
|
"lodash": "^4.17.21",
|
|
98
98
|
"lodash-clean": "^2.2.3",
|
|
99
99
|
"loglevel": "^1.9.2",
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
"react-router-hash-link": "^2.4.3",
|
|
114
114
|
"redux": "^4.2.1",
|
|
115
115
|
"redux-immutable": "^4.0.0",
|
|
116
|
-
"redux-injectors": "^2.
|
|
116
|
+
"redux-injectors": "^2.1.0",
|
|
117
117
|
"redux-saga": "^1.3.0",
|
|
118
118
|
"redux-thunk": "^2.4.2",
|
|
119
119
|
"reselect": "^4.1.8",
|
|
120
120
|
"serialize-javascript": "^6.0.2",
|
|
121
|
-
"styled-components": "^
|
|
121
|
+
"styled-components": "^6.1.13",
|
|
122
122
|
"universal-cookie-express": "^7.2.2",
|
|
123
123
|
"xxhashjs": "^0.2.2"
|
|
124
124
|
}
|