@micromag/data 0.4.49 → 0.4.51
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/es/index.js +9 -6
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
7
7
|
import { getJSON, getCSRFHeaders, postJSON } from '@folklore/fetch';
|
|
8
8
|
import { generatePath } from '@folklore/routes';
|
|
9
9
|
import queryString from 'query-string';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
10
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
12
|
import { useVisitor, useStory } from '@micromag/core/contexts';
|
|
12
13
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -275,9 +276,10 @@ function ApiProvider(_ref) {
|
|
|
275
276
|
// baseUrl: 'https://micromag.studio.test/api',
|
|
276
277
|
});
|
|
277
278
|
}, [previousApi, initialApi, baseUrl]);
|
|
278
|
-
return /*#__PURE__*/
|
|
279
|
-
value: api
|
|
280
|
-
|
|
279
|
+
return /*#__PURE__*/jsx(ApiContext.Provider, {
|
|
280
|
+
value: api,
|
|
281
|
+
children: children
|
|
282
|
+
});
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
var useContributionCreate = function useContributionCreate() {
|
|
@@ -1060,10 +1062,11 @@ function DataProvider(_ref) {
|
|
|
1060
1062
|
apiBaseUrl = _ref$apiBaseUrl === void 0 ? undefined : _ref$apiBaseUrl,
|
|
1061
1063
|
_ref$children = _ref.children,
|
|
1062
1064
|
children = _ref$children === void 0 ? null : _ref$children;
|
|
1063
|
-
return /*#__PURE__*/
|
|
1065
|
+
return /*#__PURE__*/jsx(ApiProvider, {
|
|
1064
1066
|
api: api,
|
|
1065
|
-
baseUrl: apiBaseUrl
|
|
1066
|
-
|
|
1067
|
+
baseUrl: apiBaseUrl,
|
|
1068
|
+
children: children
|
|
1069
|
+
});
|
|
1067
1070
|
}
|
|
1068
1071
|
|
|
1069
1072
|
export { Api, ApiProvider, Base as BaseApi, DataProvider, useApi, useContributionCreate, useContributions, useData, useItems$1 as useItems, useMedia, useMediaAuthors, useMediaCreate, useMediaDelete, useMediaRequestDelete, useMediaTags, useMediaUpdate, useMedias, useMediasRecent as useMediasRecentSearches, useQuiz, useQuizCreate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/data",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@babel/runtime": "^7.28.6",
|
|
61
61
|
"@folklore/fetch": "^0.1.17",
|
|
62
62
|
"@folklore/routes": "^0.2.36",
|
|
63
|
-
"@micromag/core": "^0.4.
|
|
63
|
+
"@micromag/core": "^0.4.51",
|
|
64
64
|
"lodash": "^4.17.23",
|
|
65
65
|
"query-string": "^9.0.0"
|
|
66
66
|
},
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"access": "public",
|
|
69
69
|
"registry": "https://registry.npmjs.org/"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "985a2370829c9ac8901ea97bf20bfc98ab158439",
|
|
72
72
|
"types": "es/index.d.ts"
|
|
73
73
|
}
|