cozy-client 48.1.0 → 48.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.
@@ -2830,7 +2830,7 @@ var CozyClient = /*#__PURE__*/function () {
2830
2830
  CozyClient.hooks = CozyClient.hooks || {};
2831
2831
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2832
2832
 
2833
- CozyClient.version = "48.1.0";
2833
+ CozyClient.version = "48.2.0";
2834
2834
 
2835
2835
  _microee.default.mixin(CozyClient);
2836
2836
 
@@ -53,15 +53,12 @@ var FlagItem = function FlagItem(_ref) {
53
53
  data: flag.value
54
54
  }) : flag.type !== 'boolean' ? flag.humanValue : null
55
55
  }), /*#__PURE__*/_react.default.createElement(_ListItemSecondaryAction.default, null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
56
- size: "small",
57
56
  onClick: function onClick() {
58
57
  return onEdit(flag);
59
58
  }
60
59
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
61
60
  icon: _Pen.default
62
61
  })), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
63
- className: "u-ml-1",
64
- size: "small",
65
62
  onClick: function onClick() {
66
63
  return onTrash(flag);
67
64
  }
@@ -28,7 +28,7 @@ var styles = {
28
28
  flexBasis: 240,
29
29
  flexShrink: 0,
30
30
  flexGrow: 0,
31
- boxShadow: '4px 0 8px rgba(0, 0, 0, 0.10)'
31
+ boxShadow: 'var(--shadow1)'
32
32
  }
33
33
  };
34
34
 
@@ -105,16 +105,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
105
105
  top: '0',
106
106
  right: '0.5rem',
107
107
  transform: 'translateY(-66%)',
108
- background: 'white',
108
+ background: 'var(--paperBackgroundColor)',
109
109
  border: "2px solid ".concat(theme.palette.primary.main),
110
- boxShadow: '2px 2px 2px rgba(0, 0, 0, 0.5)',
110
+ boxShadow: 'var(--shadow1)',
111
111
  zIndex: 1,
112
112
  '&:hover': {
113
- background: '#efefef'
113
+ background: 'var(--paperBackgroundColor)'
114
114
  }
115
115
  },
116
116
  panelContainer: {
117
- background: 'white',
117
+ background: 'var(--paperBackgroundColor)',
118
118
  height: '100%',
119
119
  flexWrap: 'nowrap',
120
120
  overflowX: 'scroll'
package/dist/types.js CHANGED
@@ -456,8 +456,8 @@ var _dsl = require("./queries/dsl");
456
456
 
457
457
  /**
458
458
  * @typedef {object} NextcloudFile - An io.cozy.remote.nextcloud document after normalization
459
- * @property {string} [_id] - Id of the file
460
- * @property {string} [id] - Id of the file
459
+ * @property {string} _id - Id of the file
460
+ * @property {string} id - Id of the file
461
461
  * @property {NextcloudFilesDoctype} _type - Doctype of the folder
462
462
  * @property {string} name - Name of the file
463
463
  * @property {string} path - Path to the file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "48.1.0",
3
+ "version": "48.2.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "@types/jest": "^26.0.20",
19
19
  "@types/lodash": "^4.14.170",
20
20
  "btoa": "^1.2.1",
21
- "cozy-stack-client": "^48.0.0",
21
+ "cozy-stack-client": "^48.2.0",
22
22
  "date-fns": "2.29.3",
23
23
  "json-stable-stringify": "^1.0.1",
24
24
  "lodash": "^4.17.13",
@@ -75,5 +75,5 @@
75
75
  "react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
76
76
  },
77
77
  "sideEffects": false,
78
- "gitHead": "86a86b58b0506bd50b97b9a44a5d6314cea8cdee"
78
+ "gitHead": "e4953a7393ecf4384122ae8cbfe6d707a3f884ff"
79
79
  }
package/types/types.d.ts CHANGED
@@ -813,11 +813,11 @@ export type NextcloudFile = {
813
813
  /**
814
814
  * - Id of the file
815
815
  */
816
- _id?: string;
816
+ _id: string;
817
817
  /**
818
818
  * - Id of the file
819
819
  */
820
- id?: string;
820
+ id: string;
821
821
  /**
822
822
  * - Doctype of the folder
823
823
  */