cozy-bar 34.0.2 → 35.1.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.
|
@@ -15,21 +15,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
15
15
|
|
|
16
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
selectEntrypoints = _models$applications.selectEntrypoints,
|
|
20
|
-
filterEntrypoints = _models$applications.filterEntrypoints; // We get only the entrypoints we want:
|
|
21
|
-
// - Drive onlyoffice
|
|
18
|
+
var filterEntrypoints = _cozyClient.models.applications.filterEntrypoints;
|
|
22
19
|
|
|
23
20
|
var getEntrypoints = function getEntrypoints(apps) {
|
|
24
|
-
|
|
25
|
-
return app.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var filteredEntrypoints = filterEntrypoints(selectedEntrypoints);
|
|
30
|
-
return filteredEntrypoints.map(function (entrypoint) {
|
|
31
|
-
return _objectSpread(_objectSpread({}, entrypoint), {}, {
|
|
32
|
-
slug: driveApp.slug
|
|
21
|
+
return (apps || []).flatMap(function (app) {
|
|
22
|
+
return filterEntrypoints(app.entrypoints || []).map(function (entrypoint) {
|
|
23
|
+
return _objectSpread(_objectSpread({}, entrypoint), {}, {
|
|
24
|
+
slug: app.slug
|
|
25
|
+
});
|
|
33
26
|
});
|
|
34
27
|
});
|
|
35
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.1.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/)",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/cli": "7.16.8",
|
|
32
32
|
"@babel/core": "7.16.12",
|
|
33
33
|
"@cozy/minilog": "^1.0.0",
|
|
34
|
-
"@linagora/twake-icons": "^2.6.
|
|
34
|
+
"@linagora/twake-icons": "^2.6.6",
|
|
35
35
|
"@testing-library/jest-dom": "5.17.0",
|
|
36
36
|
"@testing-library/react": "12.1.5",
|
|
37
37
|
"babel-preset-cozy-app": "^2.8.4",
|
|
@@ -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": "^
|
|
47
|
+
"cozy-ui-plus": "^10.0.0",
|
|
48
48
|
"identity-obj-proxy": "3.0.0",
|
|
49
49
|
"jest": "30.3.0",
|
|
50
50
|
"react": "18.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@cozy/minilog": ">=1.0.0",
|
|
63
|
-
"@linagora/twake-icons": ">=2.6.
|
|
63
|
+
"@linagora/twake-icons": ">=2.6.6",
|
|
64
64
|
"cozy-client": ">=60.21.0",
|
|
65
65
|
"cozy-dataproxy-lib": ">=4.1.0",
|
|
66
66
|
"cozy-device-helper": ">=2.6.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-router-dom": ">=6.14.2",
|
|
76
76
|
"twake-i18n": ">=0.3.0"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "bfda8e32bdbbae7e7c0b892b8afb753a5f3cf381"
|
|
79
79
|
}
|