cozy-bar 19.0.0 → 19.2.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
|
@@ -98,9 +98,9 @@ You also need to disable the internal store onto the `BarComponent` with the pro
|
|
|
98
98
|
<BarComponent disableInternalStore />
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
##
|
|
101
|
+
## Search and AI assistant
|
|
102
102
|
|
|
103
|
-
Search and AI assistant is now proposed by the cozy-bar.
|
|
103
|
+
Search and AI assistant is now proposed by the cozy-bar. They are enabled by default so you need to:
|
|
104
104
|
|
|
105
105
|
1. Setup the search
|
|
106
106
|
|
|
@@ -109,13 +109,7 @@ In the app using the cozy-bar :
|
|
|
109
109
|
- DataProxyProvider must be added before BarProvider
|
|
110
110
|
- If you want to use the AI assistant, you need to add [the following permissions](https://github.com/cozy/cozy-libs/tree/master/packages/cozy-search#prerequisite-for-ai-components)
|
|
111
111
|
|
|
112
|
-
2.
|
|
113
|
-
|
|
114
|
-
```jsx
|
|
115
|
-
`<BarComponent searchOptions={{ enabled: true }} />`
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
3. Add the routes
|
|
112
|
+
2. Add the routes
|
|
119
113
|
|
|
120
114
|
These routes allow to display the search and AI assistant dialogs.
|
|
121
115
|
|
|
@@ -130,6 +124,12 @@ import { BarRoutes } from 'cozy-bar'
|
|
|
130
124
|
</Routes>
|
|
131
125
|
```
|
|
132
126
|
|
|
127
|
+
3. You can still disabled the search
|
|
128
|
+
|
|
129
|
+
```jsx
|
|
130
|
+
`<BarComponent searchOptions={{ enabled: false }} />`
|
|
131
|
+
```
|
|
132
|
+
|
|
133
133
|
## Change theme bar
|
|
134
134
|
|
|
135
135
|
It's possible to update theme on the cozy-bar with `setTheme` function using the bar context
|
|
@@ -86,7 +86,7 @@ var BarComponent = exports.BarComponent = function BarComponent(_ref2) {
|
|
|
86
86
|
disableInternalStore = _ref2$disableInternal === void 0 ? false : _ref2$disableInternal,
|
|
87
87
|
_ref2$searchOptions = _ref2.searchOptions,
|
|
88
88
|
searchOptions = _ref2$searchOptions === void 0 ? {
|
|
89
|
-
enabled:
|
|
89
|
+
enabled: true
|
|
90
90
|
} : _ref2$searchOptions,
|
|
91
91
|
_ref2$componentsProps = _ref2.componentsProps,
|
|
92
92
|
componentsProps = _ref2$componentsProps === void 0 ? {} : _ref2$componentsProps;
|
|
@@ -51,7 +51,7 @@ var UserMenuContent = exports.UserMenuContent = function UserMenuContent(_ref) {
|
|
|
51
51
|
humanDiskUsage = _makeDiskInfos.humanDiskUsage;
|
|
52
52
|
var profileLink = (0, _helpers.getSettingsLink)({
|
|
53
53
|
client: client,
|
|
54
|
-
hash: '
|
|
54
|
+
hash: 'menu'
|
|
55
55
|
});
|
|
56
56
|
var storageLink = (0, _helpers.getSettingsLink)({
|
|
57
57
|
client: client,
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-bar",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
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/)",
|