cozy-bar 35.5.0 → 36.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.
package/README.md CHANGED
@@ -74,6 +74,12 @@ Available slots:
74
74
  - `<BarSearch>` — Replaces the default search / AI assistant area
75
75
  - `<BarRight>` — Replaces the default help link, apps menu and user menu
76
76
 
77
+ To hide the home button and its divider on desktop (e.g. in the home app itself), use `noCozyHome`. On mobile, it shows the app title instead of the home button. In both cases, the app title links to the home app:
78
+
79
+ ```jsx
80
+ <BarComponent componentsProps={{ BarLeft: { noCozyHome: true } }} />
81
+ ```
82
+
77
83
  ## Search and AI assistant
78
84
 
79
85
  Search and AI assistant is now proposed by the cozy-bar. They are enabled by default so you need to:
@@ -90,7 +90,6 @@ var Bar = function Bar(_ref) {
90
90
  }, barLeft || /*#__PURE__*/_react.default.createElement(_BarLeft.default, (0, _extends2.default)({}, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.BarLeft, {
91
91
  isPublic: isPublic,
92
92
  homeApp: homeApp,
93
- appSlug: appSlug,
94
93
  appIcon: appIcon,
95
94
  appTextIcon: appTextIcon
96
95
  })), barCenter, /*#__PURE__*/_react.default.createElement("div", {
@@ -119,6 +118,9 @@ Bar.propTypes = {
119
118
  Wrapper: _propTypes.default.shape({
120
119
  className: _propTypes.default.string
121
120
  }),
121
+ BarLeft: _propTypes.default.shape({
122
+ noCozyHome: _propTypes.default.bool
123
+ }),
122
124
  BarSearch: _propTypes.default.shape({
123
125
  disabledAssistantButton: _propTypes.default.bool
124
126
  }),
@@ -26,7 +26,6 @@ var _Breakpoints = require("cozy-ui/transpiled/react/providers/Breakpoints");
26
26
  var BarLeft = function BarLeft(_ref) {
27
27
  var isPublic = _ref.isPublic,
28
28
  homeApp = _ref.homeApp,
29
- appSlug = _ref.appSlug,
30
29
  appIcon = _ref.appIcon,
31
30
  appTextIcon = _ref.appTextIcon,
32
31
  noCozyHome = _ref.noCozyHome;
@@ -63,12 +62,11 @@ var BarLeft = function BarLeft(_ref) {
63
62
  });
64
63
  }
65
64
 
66
- var isHome = appSlug === 'home';
67
65
  return /*#__PURE__*/_react.default.createElement(_Grid.default, {
68
66
  container: true,
69
67
  alignItems: "center",
70
68
  className: "u-w-auto"
71
- }, !isHome && !noCozyHome && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ButtonCozyHome.default, {
69
+ }, !noCozyHome && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ButtonCozyHome.default, {
72
70
  homeHref: homeHref
73
71
  }), /*#__PURE__*/_react.default.createElement(_Divider.default, {
74
72
  orientation: "vertical",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-bar",
3
- "version": "35.5.0",
3
+ "version": "36.0.1",
4
4
  "description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
@@ -44,7 +44,7 @@
44
44
  "cozy-realtime": "^4.0.5",
45
45
  "cozy-search": "^0.24.0",
46
46
  "cozy-ui": "^138.1.0",
47
- "cozy-ui-plus": "^13.0.10",
47
+ "cozy-ui-plus": "^13.0.11",
48
48
  "identity-obj-proxy": "3.0.0",
49
49
  "jest": "30.3.0",
50
50
  "react": "18.0.0",
@@ -75,5 +75,5 @@
75
75
  "react-router-dom": ">=6.14.2",
76
76
  "twake-i18n": ">=0.3.0"
77
77
  },
78
- "gitHead": "c9329d8ecac473e8ea651a8564987414121698a6"
78
+ "gitHead": "2f142f7449464a087dd5666e7e0510d15fd52908"
79
79
  }