cozy-bar 11.0.0-alpha.3 → 12.0.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 +493 -0
- package/README.md +34 -10
- package/dist/components/Apps/AppItem.js +1 -1
- package/dist/components/Apps/AppNavButtons.js +3 -3
- package/dist/components/Apps/ButtonCozyHome.js +1 -1
- package/dist/components/Bar.js +1 -17
- package/dist/components/Bar.spec.jsx +12 -28
- package/dist/components/BarComponent.js +28 -20
- package/dist/components/BarProvider.js +17 -25
- package/dist/components/BarTheme.js +26 -0
- package/dist/components/Drawer.spec.jsx +4 -0
- package/dist/components/Settings/SettingsContent.js +2 -2
- package/dist/components/Settings/helper.js +3 -11
- package/dist/components/Settings/index.js +13 -30
- package/dist/dom.js +26 -12
- package/dist/index.js +17 -5
- package/dist/index.spec.jsx +12 -21
- package/dist/lib/realtime.js +6 -5
- package/dist/lib/reducers/apps.spec.js +3 -0
- package/dist/lib/reducers/context.js +1 -1
- package/dist/lib/reducers/index.js +7 -12
- package/dist/lib/reducers/settings.js +2 -2
- package/dist/lib/stack-client.js +1 -26
- package/dist/queries/index.js +5 -20
- package/dist/styles/apps.css +19 -24
- package/dist/styles/banner.css +4 -4
- package/dist/styles/bar.css +1 -1
- package/dist/styles/drawer.css +3 -3
- package/dist/styles/indicators.css +7 -7
- package/dist/styles/nav.css +4 -4
- package/dist/styles/navigation_item.css +1 -1
- package/dist/styles/settings.css +3 -5
- package/dist/styles/storage.css +1 -1
- package/dist/styles/theme.styl +4 -19
- package/dist/stylesheet.css +47 -70
- package/package.json +15 -31
- package/dist/components/__snapshots__/Bar.spec.jsx.snap +0 -49
- package/dist/lib/reducers/theme.js +0 -85
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
## v5.0.8 (2018-06-27)
|
|
2
|
+
* Fixed Drawer z-index so it goes over Nav
|
|
3
|
+
|
|
4
|
+
## v5.0.7 (2018-06-25)
|
|
5
|
+
* Fixed FOUC issues
|
|
6
|
+
|
|
7
|
+
## v5.0.6 (2018-06-12)
|
|
8
|
+
* Much better swipe UX
|
|
9
|
+
|
|
10
|
+
## v5.0.5 (2018-06-12)
|
|
11
|
+
* Added RTL swipe support for closing the drawer on mobile
|
|
12
|
+
|
|
13
|
+
## v5.0.4 (2018-05-28)
|
|
14
|
+
* Fix typo in GDPR message
|
|
15
|
+
|
|
16
|
+
## v5.0.3 (2018-05-24)
|
|
17
|
+
|
|
18
|
+
#### :bug: Bug Fix
|
|
19
|
+
* [#207](https://github.com/cozy/cozy-bar/pull/207) Temporary get back editor as name prefix. ([@CPatchane](https://github.com/CPatchane))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [v5.0.2] (2018-05-23)
|
|
23
|
+
|
|
24
|
+
#### :rocket: Enhancement
|
|
25
|
+
* [#205](https://github.com/cozy/cozy-bar/pull/205) Improve CGU banner. ([@CPatchane](https://github.com/CPatchane))
|
|
26
|
+
|
|
27
|
+
#### :bug: Bug Fix
|
|
28
|
+
* [#206](https://github.com/cozy/cozy-bar/pull/206) Handle missing app icon in apps list. ([@CPatchane](https://github.com/CPatchane))
|
|
29
|
+
|
|
30
|
+
## [v5.0.1] - 2018-05-21
|
|
31
|
+
|
|
32
|
+
#### :rocket: Enhancement
|
|
33
|
+
* [#204](https://github.com/cozy/cozy-bar/pull/204) fix z-index of menu on ios. ([@ptbrowne](https://github.com/ptbrowne))
|
|
34
|
+
|
|
35
|
+
## [v5.0.0] - 2018-05-11
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- __Breaking:__ now the bar uses the `name_prefix` from the manifest to display the prefix with the app name instead of using the `editor` property
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Use a spinner in the mobile drawer when fetching apps
|
|
44
|
+
|
|
45
|
+
## [v4.10.4] - 2018-05-09
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- Add a new banner display for CGU update
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- bug about fetching apps in mobile drawer
|
|
54
|
+
|
|
55
|
+
## [v4.10.3] - 2018-05-07
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- Add spinner on apps menu opening
|
|
60
|
+
|
|
61
|
+
## [v4.10.2] - 2018-04-17
|
|
62
|
+
|
|
63
|
+
No changes, fixes the previous broken release.
|
|
64
|
+
|
|
65
|
+
## [v4.10.1] - 2018-04-17
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Fade search bar on blur
|
|
70
|
+
|
|
71
|
+
## [v4.10.0] - 2018-04-06
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- Better handling categories list from manifest (legacy support) ✨
|
|
76
|
+
|
|
77
|
+
### Removed
|
|
78
|
+
|
|
79
|
+
- Remove Claudy & Support on mobile 🌬
|
|
80
|
+
- Remove coming soon app on mobile 👋
|
|
81
|
+
|
|
82
|
+
## [v4.9.4] - 2018-03-27
|
|
83
|
+
|
|
84
|
+
### Fixed
|
|
85
|
+
|
|
86
|
+
- Hide the search bar on public pages
|
|
87
|
+
|
|
88
|
+
## [v4.9.3] - 2018-03-14
|
|
89
|
+
|
|
90
|
+
### Fixed
|
|
91
|
+
|
|
92
|
+
- Fixed a bug when clearing the search request and starting another one
|
|
93
|
+
|
|
94
|
+
## [v4.9.2] - 2018-03-13
|
|
95
|
+
|
|
96
|
+
### Fixed
|
|
97
|
+
|
|
98
|
+
- Another tweak to search request debouncing
|
|
99
|
+
|
|
100
|
+
## [v4.9.1] - 2018-03-12
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
- Enable the search bar by default *but only on Cozy Drive*
|
|
105
|
+
- Changed the search bar's styling and slight behavior tweak (debounced requests)
|
|
106
|
+
|
|
107
|
+
## [v4.9.0] - 2018-03-08
|
|
108
|
+
|
|
109
|
+
### Changed
|
|
110
|
+
|
|
111
|
+
- Enable search bar by default
|
|
112
|
+
|
|
113
|
+
### Fixed
|
|
114
|
+
|
|
115
|
+
- Race conditions in search results
|
|
116
|
+
|
|
117
|
+
## [v4.8.9] - 2018-02-27
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
- Added `Object.assign` polyfill for IE 11
|
|
121
|
+
- Allow scrolling in the pop menu on firefox
|
|
122
|
+
|
|
123
|
+
## [v4.8.8] - 2018-02-16
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
- Hide scrolling bars for the pop menus
|
|
127
|
+
|
|
128
|
+
## [v4.8.7] - 2018-01-31
|
|
129
|
+
|
|
130
|
+
### Fixed
|
|
131
|
+
- ESC should hide the suggestion list in the search bar
|
|
132
|
+
|
|
133
|
+
## [v4.8.6] - 2018-01-30
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
- Small UI & behavior changes to the search bar
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## [v4.8.5] - 2018-01-22
|
|
140
|
+
|
|
141
|
+
### Fixed
|
|
142
|
+
- Filter correctly coming soon apps if apps already installed
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [v4.8.4] - 2018-01-22
|
|
146
|
+
|
|
147
|
+
### Fixed
|
|
148
|
+
- Get editor name to display it on title
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [v4.8.3] - 2018-01-22
|
|
152
|
+
|
|
153
|
+
### Added
|
|
154
|
+
- Add storage link to storage settings view
|
|
155
|
+
- Add coming soon modal description for cozy-store
|
|
156
|
+
|
|
157
|
+
### Fixed
|
|
158
|
+
- Get back coming soon apps in apps list menu
|
|
159
|
+
- Improve global keyboard accessibility
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [v4.8.2] - 2018-01-10
|
|
163
|
+
|
|
164
|
+
### Fixed
|
|
165
|
+
- Typo in logout function name
|
|
166
|
+
|
|
167
|
+
## [v4.8.1] - 2018-01-10
|
|
168
|
+
|
|
169
|
+
### Fixed
|
|
170
|
+
- Force Transifex version to avoid regression
|
|
171
|
+
|
|
172
|
+
## [v4.8.0] - 2018-01-10
|
|
173
|
+
|
|
174
|
+
### Removed
|
|
175
|
+
- `beta` after app name
|
|
176
|
+
|
|
177
|
+
## [v4.7.0] - 2018-01-04
|
|
178
|
+
### Added
|
|
179
|
+
- `onLogOut` option on initialization. If you pass it, it is used instead of original log out mechanism [b836202](https://github.com/cozy/cozy-bar/commit/b8362026453b922dbf46c4436555fe427a26f2a5)
|
|
180
|
+
|
|
181
|
+
## [v4.6.0] - 2017-12-22
|
|
182
|
+
### Added
|
|
183
|
+
- Ask permissions for apps if the list of apps can't be fetched [ac7b506](https://github.com/cozy/cozy-bar/commit/ac7b506c86657369808b1f1bf1d8c30e958e2855)
|
|
184
|
+
|
|
185
|
+
### Fixed
|
|
186
|
+
- Fixed support modal [02b774](https://github.com/cozy/cozy-bar/commit/02b774ff26dac85f0c4d7ccb07b0f55c06e63beb)
|
|
187
|
+
|
|
188
|
+
## [v4.5.5] - 2017-12-12
|
|
189
|
+
### Added
|
|
190
|
+
- Documentation of cozy bar customization API [c0d08bf](https://github.com/cozy/cozy-bar/commit/c0d08bf7796dfe79b328fbac8ab51760bbe5d775)
|
|
191
|
+
- Persiste state on mobile with localForage [1d03fb2](https://github.com/cozy/cozy-bar/commit/1d03fb2f42228429e689567c88f9ebba8756515c)
|
|
192
|
+
- Add function to update accessToken [7e523a7](https://github.com/cozy/cozy-bar/commit/7e523a714e956f76b9dfb48ac76965bc233c2758)
|
|
193
|
+
- Save apps on redux store [6037eb7](https://github.com/cozy/cozy-bar/commit/6037eb74d645433e78986b5ecf9aa38b719a49e7)
|
|
194
|
+
- chore: Add bundlesize script to monitor build size 🔧 [a9b95f1](https://github.com/cozy/cozy-bar/commit/a9b95f101446171cbce310413e38c725cf9d9ead)
|
|
195
|
+
- feat: Remove own app on mobile AppsList [1692363](https://github.com/cozy/cozy-bar/commit/16923634c5e0affe46e3267f8f75724d6e893225)
|
|
196
|
+
|
|
197
|
+
### Fixed
|
|
198
|
+
- Upgrade cozy-ui 🚀 [969a41c](https://github.com/cozy/cozy-bar/commit/969a41c7add89df22138b0a4539159bbc924a10b), [ecee45c](https://github.com/cozy/cozy-bar/commit/ecee45c9166f7368579555b5a939f1a3f5b73790)
|
|
199
|
+
- Display default icon when app don't have one [a63e08c](https://github.com/cozy/cozy-bar/commit/a63e08c278fb6a41ae229e4d7f5fc63b1c2aba3c)
|
|
200
|
+
- If context is not present on stack don't ask again [20e7e43](https://github.com/cozy/cozy-bar/commit/20e7e43e5ed649b3bd7c14c3e82d7c157f250681)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [v4.5.4] - 2017-12-03
|
|
204
|
+
|
|
205
|
+
### Fixed
|
|
206
|
+
- Prevent `getLocale` returning the full store state
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## [v4.5.3] - 2017-11-29
|
|
210
|
+
### Changed
|
|
211
|
+
- Storage computing in bytes ✏️
|
|
212
|
+
- Use I18n from cozy-ui
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## [v4.5.2] - 2017-11-23
|
|
216
|
+
|
|
217
|
+
### Added
|
|
218
|
+
- Add an icon in search results :framed_picture:
|
|
219
|
+
|
|
220
|
+
### Changed
|
|
221
|
+
- Get back `Beta` status
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## [v4.5.1] - 2017-11-22
|
|
225
|
+
|
|
226
|
+
### Fixed
|
|
227
|
+
- Bar elements position on mobile :ambulance:
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [v4.5.0] - 2017-11-21
|
|
231
|
+
|
|
232
|
+
### Fixed
|
|
233
|
+
- Claudy drawer positin on mobile
|
|
234
|
+
- Hide app drawer button on mobile if the option is enabled
|
|
235
|
+
|
|
236
|
+
### Added
|
|
237
|
+
- Better UI for the search bar
|
|
238
|
+
|
|
239
|
+
### Changed
|
|
240
|
+
- Removed beta tag \o/
|
|
241
|
+
- Added a warning : the `displayOnMobile` default value will be changed to `true` in an upcoming version.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## [v4.4.0] - 2017-11-13
|
|
245
|
+
### Fixed
|
|
246
|
+
- remove isRequired property for I18n props
|
|
247
|
+
- fix problems with Claudy
|
|
248
|
+
|
|
249
|
+
### Added
|
|
250
|
+
- Highlight matching texts in search results
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## [v4.3.7] - 2017-11-08
|
|
254
|
+
### Fixed
|
|
255
|
+
- Remove a typo causing a bug in the search bar component :ambulance: [[390ff7b]](https://github.com/cozy/cozy-bar/commit/390ff7bb34f5d0aa082bcf10acf65a1205ba69ce)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## [v4.3.6] - 2017-11-08
|
|
259
|
+
### Changed
|
|
260
|
+
- styl: Remove unnecessary space on mobile application :art: [[bbea1bd]](https://github.com/cozy/cozy-bar/commit/bbea1bd44b768883784dd81f2bfeb0f1e241f841)
|
|
261
|
+
- lint: fix lint issues + add config file using eslint-config-cozy-app :rotating_light: [[587ae08]](https://github.com/cozy/cozy-bar/commit/587ae08a9773830e2559054c577cc7cf518e55ee)
|
|
262
|
+
- fix: use data-tutorial attribute for buttons targeted by app tutorials :art: [[564d7b8]](https://github.com/cozy/cozy-bar/commit/564d7b8b97f2625a1b3a1a9eaa16086cd06c7901)
|
|
263
|
+
- chore: use eslint for linting (cozy-app standard config) :rotating_light: [[d688455]](https://github.com/cozy/cozy-bar/commit/d688455d219e0f2bffa63f7232a23576203c69bb)
|
|
264
|
+
- styl: reduce item size in apps lists :lipstick: [[af83f45]](https://github.com/cozy/cozy-bar/commit/af83f45f3040f7426b606d710b1d03354a17b202)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
## [v4.3.5] - 2017-11-3
|
|
268
|
+
### Fixed
|
|
269
|
+
- Uncaught error on Safari mobile caused blank screens
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## [v4.3.4] - 2017-11-2
|
|
273
|
+
### Fixed
|
|
274
|
+
- Drawer can be opened on mobile
|
|
275
|
+
- Languages are working again
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## [v4.3.3] - 2017-10-31
|
|
279
|
+
### Added
|
|
280
|
+
- API to set content of the Bar (setBar{Right,Left,Center} and <Bar{Left,Right, Center} />)
|
|
281
|
+
|
|
282
|
+
v4.3.0, v4.3.2, v4.3.3 are only there because of build problems on Travis.
|
|
283
|
+
|
|
284
|
+
### Removed
|
|
285
|
+
- none yet
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
## [v4.2.6] - 2017-10-25
|
|
289
|
+
### Add
|
|
290
|
+
- Add ability to display on mobile
|
|
291
|
+
- Expose a new method `setLocale` to change the bar locale without reloading the app page
|
|
292
|
+
|
|
293
|
+
### Changed
|
|
294
|
+
- Update intents library
|
|
295
|
+
- Remove useless then() for support intent
|
|
296
|
+
- Remove some unused styles
|
|
297
|
+
- Update dependencies
|
|
298
|
+
- Change `Apps` button icon
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## [v4.2.5] - 2017-10-04
|
|
302
|
+
### Added
|
|
303
|
+
- Modal allowing to send email to support when click on "Help" link
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## [v4.2.4] - 2017-09-26
|
|
307
|
+
### Fixed
|
|
308
|
+
- Re-instaured spacer between the app title and navigation icons
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## [v4.2.3] - 2017-09-26
|
|
312
|
+
### Fixed
|
|
313
|
+
- Fucked up the previous release
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## [v4.2.2] - 2017-09-26
|
|
317
|
+
### Fixed
|
|
318
|
+
- Temporarily disable the searchbar
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
## [v4.2.1] - 2017-09-21
|
|
322
|
+
### Fixed
|
|
323
|
+
- Prevent the search bar from taking up too much space
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## [v4.2.0] - 2017-09-19
|
|
327
|
+
### Changed
|
|
328
|
+
- Updated cozy-client-js
|
|
329
|
+
|
|
330
|
+
### Added
|
|
331
|
+
- Added the search bar
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## [v4.1.4] - 2017-08-08
|
|
335
|
+
### Changed
|
|
336
|
+
- Update intent lib according to new cozy-client-js update to handle `resizeClient()` css transition
|
|
337
|
+
- Better handling Claudy active status (desktop version)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## [v4.1.3] - 2017-07-26
|
|
341
|
+
### Fixed
|
|
342
|
+
- Bug about coming soon apps filtering
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
## [v4.1.2] - 2017-07-24
|
|
346
|
+
### Changed
|
|
347
|
+
- Better claudy loading CSS animation
|
|
348
|
+
|
|
349
|
+
### Removed
|
|
350
|
+
- Some now unused tx locales
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## [v4.1.1] - 2017-07-21
|
|
354
|
+
### Fixed
|
|
355
|
+
- Do not hijack click outside the nav for react apps
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## [v4.1.0] - 2017-07-21
|
|
359
|
+
### Changed
|
|
360
|
+
- Now the Claudy menu is displayed as an intent using a `cozy-settings` service.
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## [v4.0.2] - 2017-07-12
|
|
364
|
+
### Fixed
|
|
365
|
+
- Apps are now opened in the same tab
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## [v4.0.1] - 2017-07-11
|
|
369
|
+
### Fixed
|
|
370
|
+
- Fix `__SERVER__ is not defined` error
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
## [v4.0.0] - 2017-07-10
|
|
374
|
+
### Changed
|
|
375
|
+
- Rewrited entirely using preact/preact-compat with JSX components
|
|
376
|
+
- Better popups and drawer displaying/hidding transition
|
|
377
|
+
|
|
378
|
+
### Fixed
|
|
379
|
+
- Bug about displaying blue spinner at apps/settings loading
|
|
380
|
+
- Bug about duplicated items in settings menu
|
|
381
|
+
|
|
382
|
+
### Added
|
|
383
|
+
- Dependencies due to Preact usage
|
|
384
|
+
|
|
385
|
+
### Removed
|
|
386
|
+
- SvelteJS usage and dependency
|
|
387
|
+
- Some now unused dependencies
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## [v3.2.2] - 2017-07-06
|
|
391
|
+
### Fixed
|
|
392
|
+
- filter coming soon app
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
## [v3.2.1] - 2017-07-06 [YANKED]
|
|
396
|
+
### Fixed
|
|
397
|
+
- filter coming soon app
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
## [v3.2.0] - 2017-07-05
|
|
401
|
+
### Changed
|
|
402
|
+
- Help link is now fetched from stack context
|
|
403
|
+
|
|
404
|
+
### Fixed
|
|
405
|
+
- Avoid apps being displayed twice
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
## [v3.1.1] - 2017-06-27
|
|
409
|
+
### Fixed
|
|
410
|
+
- Force claudy to rerender when the locale changes
|
|
411
|
+
- Fix bug about others apps category not alwayes at the end of the list
|
|
412
|
+
- Don't allow to close the drawer when Claudy is opened
|
|
413
|
+
- Fix bug when app detection for Claudy app links
|
|
414
|
+
|
|
415
|
+
### Added
|
|
416
|
+
- Piwik environment variables for production build
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
## [v3.1.0] - 2017-06-26
|
|
420
|
+
### Changed
|
|
421
|
+
- The 'others' apps category will always be displayed at the end of the apps list
|
|
422
|
+
|
|
423
|
+
### Fixed
|
|
424
|
+
- Long app name are correctly handled using ellipsis in the apps list of the desktop view
|
|
425
|
+
|
|
426
|
+
### Added
|
|
427
|
+
- Claudy: a list of actions available for the Cozy and suggested to the user (according the Cozy context setting), in desktop and mobile views
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
## [v3.0.1] - 2017-06-23
|
|
431
|
+
### Fixed
|
|
432
|
+
- Fixed wrong path for Cozy Store icon
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
## [v3.0.0] - 2017-06-20
|
|
436
|
+
### Changed
|
|
437
|
+
- Support link href
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
[Unreleased]: https://github.com/cozy/cozy-bar/compare/v4.10.4...HEAD
|
|
441
|
+
[v4.10.4]: https://github.com/cozy/cozy-bar/compare/v4.10.3...v4.10.4
|
|
442
|
+
[v4.10.3]: https://github.com/cozy/cozy-bar/compare/v4.10.2...v4.10.3
|
|
443
|
+
[v4.10.2]: https://github.com/cozy/cozy-bar/compare/v4.10.1...v4.10.2
|
|
444
|
+
[v4.10.1]: https://github.com/cozy/cozy-bar/compare/v4.10.0...v4.10.1
|
|
445
|
+
[v4.10.0]: https://github.com/cozy/cozy-bar/compare/v4.9.4...v4.10.0
|
|
446
|
+
[v4.9.4]: https://github.com/cozy/cozy-bar/compare/v4.9.3...v4.9.4
|
|
447
|
+
[v4.9.3]: https://github.com/cozy/cozy-bar/compare/v4.9.2...v4.9.3
|
|
448
|
+
[v4.9.2]: https://github.com/cozy/cozy-bar/compare/v4.9.1...v4.9.2
|
|
449
|
+
[v4.9.1]: https://github.com/cozy/cozy-bar/compare/v4.9.0...v4.9.1
|
|
450
|
+
[v4.9.0]: https://github.com/cozy/cozy-bar/compare/v4.8.9...v4.9.0
|
|
451
|
+
[v4.8.9]: https://github.com/cozy/cozy-bar/compare/v4.8.8...v4.8.9
|
|
452
|
+
[v4.8.8]: https://github.com/cozy/cozy-bar/compare/v4.8.7...v4.8.8
|
|
453
|
+
[v4.8.7]: https://github.com/cozy/cozy-bar/compare/v4.8.6...v4.8.7
|
|
454
|
+
[v4.8.6]: https://github.com/cozy/cozy-bar/compare/v4.8.5...v4.8.6
|
|
455
|
+
[v4.8.5]: https://github.com/cozy/cozy-bar/compare/v4.8.4...v4.8.5
|
|
456
|
+
[v4.8.4]: https://github.com/cozy/cozy-bar/compare/v4.8.3...v4.8.4
|
|
457
|
+
[v4.8.3]: https://github.com/cozy/cozy-bar/compare/v4.8.2...v4.8.3
|
|
458
|
+
[v4.8.1]: https://github.com/cozy/cozy-bar/compare/v4.8.1...v4.8.2
|
|
459
|
+
[v4.8.1]: https://github.com/cozy/cozy-bar/compare/v4.8.0...v4.8.1
|
|
460
|
+
[v4.8.0]: https://github.com/cozy/cozy-bar/compare/v4.7.0...v4.8.0
|
|
461
|
+
[v4.7.0]: https://github.com/cozy/cozy-bar/compare/v4.6.0...v4.7.0
|
|
462
|
+
[v4.6.0]: https://github.com/cozy/cozy-bar/compare/v4.5.5...v4.6.0
|
|
463
|
+
[v4.5.4]: https://github.com/cozy/cozy-bar/compare/v4.5.4...v4.5.5
|
|
464
|
+
[v4.5.4]: https://github.com/cozy/cozy-bar/compare/v4.5.3...v4.5.4
|
|
465
|
+
[v4.5.3]: https://github.com/cozy/cozy-bar/compare/v4.5.2...v4.5.3
|
|
466
|
+
[v4.5.2]: https://github.com/cozy/cozy-bar/compare/v4.5.1...v4.5.2
|
|
467
|
+
[v4.5.0]: https://github.com/cozy/cozy-bar/compare/v4.4.0...v4.5.0
|
|
468
|
+
[v4.4.0]: https://github.com/cozy/cozy-bar/compare/v4.3.7...v4.4.0
|
|
469
|
+
[v4.3.7]: https://github.com/cozy/cozy-bar/compare/v4.3.6...v4.3.7
|
|
470
|
+
[v4.3.6]: https://github.com/cozy/cozy-bar/compare/v4.3.5...v4.3.6
|
|
471
|
+
[v4.3.5]: https://github.com/cozy/cozy-bar/compare/v4.3.4...v4.3.5
|
|
472
|
+
[v4.3.4]: https://github.com/cozy/cozy-bar/compare/v4.3.3...v4.3.4
|
|
473
|
+
[v4.3.3]: https://github.com/cozy/cozy-bar/compare/v4.2.6...v4.3.3
|
|
474
|
+
[v4.2.6]: https://github.com/cozy/cozy-bar/compare/v4.2.5...v4.2.6
|
|
475
|
+
[v4.2.5]: https://github.com/cozy/cozy-bar/compare/v4.2.4...v4.2.5
|
|
476
|
+
[v4.2.4]: https://github.com/cozy/cozy-bar/compare/v4.2.3...v4.2.4
|
|
477
|
+
[v4.2.3]: https://github.com/cozy/cozy-bar/compare/v4.2.2...v4.2.3
|
|
478
|
+
[v4.2.2]: https://github.com/cozy/cozy-bar/compare/v4.2.1...v4.2.2
|
|
479
|
+
[v4.2.1]: https://github.com/cozy/cozy-bar/compare/v4.2.0...v4.2.1
|
|
480
|
+
[v4.2.0]: https://github.com/cozy/cozy-bar/compare/v4.1.4...v4.2.0
|
|
481
|
+
[v4.1.4]: https://github.com/cozy/cozy-bar/compare/v4.1.3...v4.1.4
|
|
482
|
+
[v4.1.3]: https://github.com/cozy/cozy-bar/compare/v4.1.2...v4.1.3
|
|
483
|
+
[v4.1.2]: https://github.com/cozy/cozy-bar/compare/v4.1.1...v4.1.2
|
|
484
|
+
[v4.1.1]: https://github.com/cozy/cozy-bar/compare/v4.1.0...v4.1.1
|
|
485
|
+
[v4.1.0]: https://github.com/cozy/cozy-bar/compare/v4.0.2...v4.1.0
|
|
486
|
+
[v4.0.2]: https://github.com/cozy/cozy-bar/compare/v4.0.1...v4.0.2
|
|
487
|
+
[v4.0.1]: https://github.com/cozy/cozy-bar/compare/v4.0.0...v4.0.1
|
|
488
|
+
[v4.0.0]: https://github.com/cozy/cozy-bar/compare/v3.2.1...v4.0.0
|
|
489
|
+
[v3.2.1]: https://github.com/cozy/cozy-bar/compare/v3.2.0...v3.2.1
|
|
490
|
+
[v3.2.0]: https://github.com/cozy/cozy-bar/compare/v3.1.1...v3.2.0
|
|
491
|
+
[v3.1.1]: https://github.com/cozy/cozy-bar/compare/v3.1.0...v3.1.1
|
|
492
|
+
[v3.1.0]: https://github.com/cozy/cozy-bar/compare/v3.0.1...v3.1.0
|
|
493
|
+
[v3.0.1]: https://github.com/cozy/cozy-bar/compare/v3.0.0...v3.0.1
|
package/README.md
CHANGED
|
@@ -33,16 +33,20 @@ You need to include the `BarComponent` into your react tree :
|
|
|
33
33
|
```jsx
|
|
34
34
|
import { BarComponent } from 'cozy-bar'
|
|
35
35
|
|
|
36
|
-
<BarComponent
|
|
36
|
+
<BarComponent />
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
`
|
|
39
|
+
The `BarComponent` will get default params into `data-cozy` attribute of the element `role=application`. You can still customize this parameter through props:
|
|
40
|
+
- `appName`: The name of the app.
|
|
41
|
+
- `appNamePrefix`: The prefix of the app. Originally used for apps maintained by Cozy Cloud teams.
|
|
42
|
+
- `appSlug`: The slug of the app.
|
|
43
|
+
- `iconPath`: The path to the app icon. Defaults to a blank GIF
|
|
40
44
|
|
|
41
|
-
|
|
42
|
-
- `
|
|
43
|
-
- `
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
There is also other parameter to adapt the bar to your app:
|
|
46
|
+
- `isInvertedTheme`: To make the icon of Cozy(`icon-cozy-home.svg`) compatible with an inverted theme
|
|
47
|
+
- `isPublic`: To show the public version of the Bar
|
|
48
|
+
- `onLogout`: A callback to react to the logout of the user
|
|
49
|
+
- `disableInternalStore`: Allow to disable the internal store of the Bar
|
|
46
50
|
|
|
47
51
|
## Customizing the content of the bar
|
|
48
52
|
|
|
@@ -63,6 +67,28 @@ import { BarLeft, BarCenter, BarRight, BarSearch } from 'cozy-bar'
|
|
|
63
67
|
</BarLeft>
|
|
64
68
|
```
|
|
65
69
|
|
|
70
|
+
### Access your application store in custom components
|
|
71
|
+
|
|
72
|
+
By default, the Bar has its own redux store to fetch data and manage ui state. If you are using a Redux store into your application and you need to access it into your Bar customization you need to integrate the cozy-bar store into your own.
|
|
73
|
+
|
|
74
|
+
```js
|
|
75
|
+
import { barReducers } from 'cozy-bar'
|
|
76
|
+
|
|
77
|
+
const reducers = {
|
|
78
|
+
...baseReducers,
|
|
79
|
+
...barReducers,
|
|
80
|
+
cozy: client.reducer()
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const appReducer = combineReducers(reducers)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
You also need to disable the internal store onto the `BarComponent` with the property `disableInternalStore`
|
|
87
|
+
|
|
88
|
+
```jsx
|
|
89
|
+
<BarComponent disableInternalStore />
|
|
90
|
+
```
|
|
91
|
+
|
|
66
92
|
## Change theme bar
|
|
67
93
|
|
|
68
94
|
It's possible to update theme on the cozy-bar with `setTheme` function using the bar context
|
|
@@ -78,7 +104,7 @@ setTheme('primary')
|
|
|
78
104
|
|
|
79
105
|
## Migrate from previous version
|
|
80
106
|
|
|
81
|
-
If you're migrating from
|
|
107
|
+
If you're migrating from v7, check out [the migration guide for v7](/docs/upgrading/v7.md). If you're migrating from an other version, check out [the migration guide](/docs/upgrading/v8.md). If you need to find the code for v7, [it is on the v7-stable branch](https://github.com/cozy/cozy-bar/tree/v7-stable).
|
|
82
108
|
|
|
83
109
|
## Debugging
|
|
84
110
|
|
|
@@ -92,8 +118,6 @@ flag(bar.debug, true)
|
|
|
92
118
|
Development mode
|
|
93
119
|
----------
|
|
94
120
|
|
|
95
|
-
|
|
96
|
-
|
|
97
121
|
* Then, follow these steps:
|
|
98
122
|
|
|
99
123
|
`$ yarn link` // in cozy-bar
|
|
@@ -70,7 +70,7 @@ var AppItem = function AppItem(_ref) {
|
|
|
70
70
|
var onClick = _ref2.onClick,
|
|
71
71
|
href = _ref2.href;
|
|
72
72
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
73
|
-
className: "coz-nav-apps-item".concat(app.isCurrentApp ? ' --current' : '')
|
|
73
|
+
className: "coz-nav-apps-item".concat(app.isCurrentApp ? ' coz-nav-apps-item--current' : '')
|
|
74
74
|
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
75
75
|
role: "menuitem",
|
|
76
76
|
href: href,
|
|
@@ -44,7 +44,7 @@ var AppNavButton = function AppNavButton(_ref) {
|
|
|
44
44
|
|
|
45
45
|
if (!isPublic && isFetchingApps) {
|
|
46
46
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
className: "coz-nav-apps-btns --loading"
|
|
47
|
+
className: "coz-nav-apps-btns coz-nav-apps-btns--loading"
|
|
48
48
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
49
49
|
className: "coz-nav-apps-btns-home coz-loading-placeholder"
|
|
50
50
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -61,7 +61,7 @@ var AppNavButton = function AppNavButton(_ref) {
|
|
|
61
61
|
});
|
|
62
62
|
var homeHref = !isPublic && homeApp && homeApp.href;
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
-
className: "coz-nav-apps-btns".concat(isHomeApp ? ' --currentHome' : '')
|
|
64
|
+
className: "coz-nav-apps-btns".concat(isHomeApp ? ' coz-nav-apps-btns--currentHome' : '')
|
|
65
65
|
}, /*#__PURE__*/_react.default.createElement(_ButtonCozyHome.ButtonCozyHome, {
|
|
66
66
|
homeHref: homeHref,
|
|
67
67
|
isInvertedTheme: isInvertedTheme
|
|
@@ -83,7 +83,7 @@ var AppNavButton = function AppNavButton(_ref) {
|
|
|
83
83
|
className: "coz-nav-app-name"
|
|
84
84
|
}, displayName), !isPublic && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
85
85
|
icon: opened ? _Top.default : _Bottom.default,
|
|
86
|
-
color: "
|
|
86
|
+
color: "var(--secondaryTextColor)",
|
|
87
87
|
size: "12"
|
|
88
88
|
})));
|
|
89
89
|
};
|
|
@@ -27,7 +27,7 @@ var ButtonCozyHome = function ButtonCozyHome(_ref) {
|
|
|
27
27
|
onClick: function onClick() {
|
|
28
28
|
webviewIntent.call('backToHome');
|
|
29
29
|
},
|
|
30
|
-
className: "coz-nav-apps-btns-home --is-flagship"
|
|
30
|
+
className: "coz-nav-apps-btns-home coz-nav-apps-btns-home--is-flagship"
|
|
31
31
|
}, /*#__PURE__*/_react.default.createElement(_IconCozyHome.default, {
|
|
32
32
|
className: "coz-nav-apps-btns-home-svg",
|
|
33
33
|
isInvertedTheme: isInvertedTheme
|
package/dist/components/Bar.js
CHANGED
|
@@ -9,8 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = exports.mapDispatchToProps = exports.mapStateToProps = exports.Bar = void 0;
|
|
11
11
|
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
|
|
13
|
-
|
|
14
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
13
|
|
|
16
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -60,8 +58,6 @@ var Bar = function Bar(_ref) {
|
|
|
60
58
|
fetchApps = _ref.fetchApps,
|
|
61
59
|
isPublic = _ref.isPublic,
|
|
62
60
|
onDrawer = _ref.onDrawer,
|
|
63
|
-
theme = _ref.theme,
|
|
64
|
-
themeOverrides = _ref.themeOverrides,
|
|
65
61
|
barLeft = _ref.barLeft,
|
|
66
62
|
barRight = _ref.barRight,
|
|
67
63
|
barCenter = _ref.barCenter,
|
|
@@ -156,18 +152,8 @@ var Bar = function Bar(_ref) {
|
|
|
156
152
|
}) : null;
|
|
157
153
|
};
|
|
158
154
|
|
|
159
|
-
var pColor = themeOverrides.primaryColor,
|
|
160
|
-
pctColor = themeOverrides.primaryContrastTextColor;
|
|
161
|
-
var pStyle = pColor ? {
|
|
162
|
-
'--cozBarThemePrimaryColor': pColor
|
|
163
|
-
} : {};
|
|
164
|
-
var pctStyle = pctColor ? {
|
|
165
|
-
'--cozBarThemePrimaryContrastTextColor': pctColor
|
|
166
|
-
} : {};
|
|
167
|
-
var themeStyle = (0, _objectSpread2.default)({}, pStyle, pctStyle);
|
|
168
155
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
169
|
-
className: "coz-bar-wrapper
|
|
170
|
-
style: themeStyle,
|
|
156
|
+
className: "coz-bar-wrapper",
|
|
171
157
|
"data-testid": "coz-bar-wrapper"
|
|
172
158
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
173
159
|
id: "cozy-bar-modal-dom-place"
|
|
@@ -201,8 +187,6 @@ Bar.propTypes = {
|
|
|
201
187
|
|
|
202
188
|
var mapStateToProps = function mapStateToProps(state) {
|
|
203
189
|
return {
|
|
204
|
-
theme: (0, _reducers.getTheme)(state).name,
|
|
205
|
-
themeOverrides: (0, _reducers.getTheme)(state).overrides,
|
|
206
190
|
hasFetchedApps: (0, _reducers.hasFetched)(state)
|
|
207
191
|
};
|
|
208
192
|
};
|