cozy-client 47.2.0 → 47.4.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.
@@ -2782,7 +2782,7 @@ var CozyClient = /*#__PURE__*/function () {
2782
2782
  CozyClient.hooks = CozyClient.hooks || {};
2783
2783
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2784
2784
 
2785
- CozyClient.version = "47.2.0";
2785
+ CozyClient.version = "47.4.0";
2786
2786
 
2787
2787
  _microee.default.mixin(CozyClient);
2788
2788
 
@@ -41,7 +41,7 @@ var generateFetchMoreQueryDefinition = function generateFetchMoreQueryDefinition
41
41
  /**
42
42
  * Fetches a queryDefinition and returns the queryState
43
43
  *
44
- * @param {QueryDefinition} queryDefinition - Definition created with Q()
44
+ * @param {QueryDefinition|(() => QueryDefinition)} queryDefinition - Definition created with Q()
45
45
  * @param {import("../types").QueryOptions} options - Options created with Q()
46
46
  * @returns {import("../types").UseQueryReturnValue}
47
47
  */
@@ -74,7 +74,7 @@ var useQuery = function useQuery(queryDefinition, options) {
74
74
 
75
75
  var client = (0, _useClient.default)();
76
76
  var queryState = useSelector(function () {
77
- if (options.singleDocData === undefined && queryDefinition.id) {
77
+ if (options.singleDocData === undefined && definition !== null && definition !== void 0 && definition.id) {
78
78
  _logger.default.warn('useQuery options.singleDocData will pass to true in a next version of cozy-client, please add it now to prevent any problem in the future.');
79
79
  }
80
80
 
@@ -47,7 +47,7 @@ var themesList = [{
47
47
  }, {
48
48
  id: 'theme3',
49
49
  label: 'work_study',
50
- icon: 'company',
50
+ icon: 'work',
51
51
  items: buildItemsByLabel(_constants.THEME_WORK_STUDY_LABELS)
52
52
  }, {
53
53
  id: 'theme4',
@@ -68,7 +68,7 @@ var themesList = [{
68
68
  }, {
69
69
  id: 'theme7',
70
70
  label: 'activity',
71
- icon: 'compass',
71
+ icon: 'chess',
72
72
  items: buildItemsByLabel(_constants.THEME_ACTIVITY_LABELS)
73
73
  }, {
74
74
  id: 'theme8',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "47.2.0",
3
+ "version": "47.4.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": "^47.0.0",
21
+ "cozy-stack-client": "^47.4.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": "6e8e15ab4f4d7ee4a2a1ef52367f6fea9b41f9fe"
78
+ "gitHead": "0528e1fd5c61a1954db47790da15bc474321e730"
79
79
  }
@@ -3,9 +3,9 @@ export default useQuery;
3
3
  /**
4
4
  * Fetches a queryDefinition and returns the queryState
5
5
  *
6
- * @param {QueryDefinition} queryDefinition - Definition created with Q()
6
+ * @param {QueryDefinition|(() => QueryDefinition)} queryDefinition - Definition created with Q()
7
7
  * @param {import("../types").QueryOptions} options - Options created with Q()
8
8
  * @returns {import("../types").UseQueryReturnValue}
9
9
  */
10
- declare function useQuery(queryDefinition: QueryDefinition, options: import("../types").QueryOptions): import("../types").UseQueryReturnValue;
10
+ declare function useQuery(queryDefinition: QueryDefinition | (() => QueryDefinition), options: import("../types").QueryOptions): import("../types").UseQueryReturnValue;
11
11
  import { QueryDefinition } from "../queries/dsl";