cozy-ui 106.2.0 → 106.4.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +1 -0
- package/react/hooks/useSetFlagshipUi/helpers.js +10 -9
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +1 -0
- package/transpiled/react/hooks/useSetFlagshipUi/helpers.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [106.4.0](https://github.com/cozy/cozy-ui/compare/v106.3.0...v106.4.0) (2024-05-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Flagship:** Mock getFlagshipMetadata if node_env = test ([5411534](https://github.com/cozy/cozy-ui/commit/5411534))
|
|
7
|
+
|
|
8
|
+
# [106.3.0](https://github.com/cozy/cozy-ui/compare/v106.2.0...v106.3.0) (2024-05-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **TextField:** Force left text alignment for input ([d3ff3c2](https://github.com/cozy/cozy-ui/commit/d3ff3c2))
|
|
14
|
+
|
|
1
15
|
# [106.2.0](https://github.com/cozy/cozy-ui/compare/v106.1.1...v106.2.0) (2024-05-14)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -89,15 +89,16 @@ export const isRsg = !!document.getElementById('rsg-root')
|
|
|
89
89
|
* Overrides flagship metadata
|
|
90
90
|
* See https://github.com/cozy/cozy-libs/blob/master/packages/cozy-device-helper/src/flagship.ts#L13
|
|
91
91
|
*/
|
|
92
|
-
export const getFlagshipMetadata =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
export const getFlagshipMetadata =
|
|
93
|
+
isRsg || process.env.NODE_ENV === 'test'
|
|
94
|
+
? () => ({
|
|
95
|
+
immersive:
|
|
96
|
+
JSON.parse(localStorage.getItem('flagship-app'))?.contained ===
|
|
97
|
+
'off' || false,
|
|
98
|
+
statusBarHeight: 40,
|
|
99
|
+
navbarHeight: 40
|
|
100
|
+
})
|
|
101
|
+
: getFlagshipMetadataFromDeviceHelper
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* Set the css values for Status and Nav bar inside cozy-ui documentation
|
|
@@ -89,7 +89,7 @@ export var isRsg = !!document.getElementById('rsg-root');
|
|
|
89
89
|
* See https://github.com/cozy/cozy-libs/blob/master/packages/cozy-device-helper/src/flagship.ts#L13
|
|
90
90
|
*/
|
|
91
91
|
|
|
92
|
-
export var getFlagshipMetadata = isRsg ? function () {
|
|
92
|
+
export var getFlagshipMetadata = isRsg || process.env.NODE_ENV === 'test' ? function () {
|
|
93
93
|
var _JSON$parse;
|
|
94
94
|
|
|
95
95
|
return {
|