cozy-bar 8.8.0 → 8.9.2
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 +13 -8
- package/dist/cozy-bar.min.js +8 -8
- package/dist/cozy-bar.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SearchBar.jsx +10 -7
- package/src/components/__snapshots__/Bar.spec.jsx.snap +1 -1
- package/transpiled/components/SearchBar.js +61 -21
- package/transpiled/components/__snapshots__/Bar.spec.jsx.snap +1 -1
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
[Cozy] is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
## What's cozy-bar
|
|
15
|
+
## What's cozy-bar?
|
|
16
16
|
|
|
17
|
-
`cozy-bar
|
|
17
|
+
`cozy-bar` is a javascript library made by Cozy. It enables the _CozyBar_ component in your application. This component is a banner on the top of your application, responsible of cross-apps navigation, user facilities, intents, etc.
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
## Use
|
|
@@ -148,18 +148,23 @@ In order to add new features to the cozy-bar v7 while working on another cozy-ap
|
|
|
148
148
|
|
|
149
149
|
`$ yarn start` // in the cozy-app
|
|
150
150
|
|
|
151
|
+
### How does it work?
|
|
152
|
+
|
|
153
|
+
When Drive is building, the cozy-bar assets are defined dynamically if __STACK_ASSETS__ = true
|
|
154
|
+
[inside the browser file](https://github.com/cozy/cozy-drive/blob/master/src/drive/targets/browser/index.ejs#L27-L32)
|
|
155
|
+
|
|
156
|
+
In [dev mode on webpack, __STACK_ASSETS__ = false](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L27)
|
|
157
|
+
|
|
158
|
+
[In that case, the cozy-bar is injected](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L35-L57)
|
|
159
|
+
|
|
151
160
|
Contribute
|
|
152
161
|
----------
|
|
153
162
|
|
|
154
|
-
If you want to work on cozy-
|
|
163
|
+
If you want to work on cozy-bar itself and submit code modifications, feel free to open pull-requests! See the [contributing guide][contribute] for more information about this repository structure, testing, linting and how to properly open pull-requests.
|
|
155
164
|
|
|
156
165
|
|
|
157
166
|
## Community
|
|
158
167
|
|
|
159
|
-
### Maintainer
|
|
160
|
-
|
|
161
|
-
The lead maintainer for cozy-bar.js is [@CPatchane](https://github.com/CPatchane), send him/her a :beers: to say hello!
|
|
162
|
-
|
|
163
168
|
|
|
164
169
|
### Get in touch
|
|
165
170
|
|
|
@@ -173,7 +178,7 @@ You can reach the Cozy Community by:
|
|
|
173
178
|
|
|
174
179
|
## Licence
|
|
175
180
|
|
|
176
|
-
cozy-bar
|
|
181
|
+
cozy-bar is developed by Cozy Cloud and distributed under the [MIT].
|
|
177
182
|
|
|
178
183
|
|
|
179
184
|
|