@micromag/data 0.4.33 → 0.4.38
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.d.ts +15 -12
- package/package.json +3 -3
package/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
|
|
3
4
|
declare const useContributionCreate: ({ screenId, visitorId: providedVisitorId, storyId: providedStoryId, onSuccess, }?: {
|
|
4
5
|
visitorId?: any;
|
|
@@ -148,13 +149,6 @@ declare const useQuizCreate: ({ screenId, visitorId: providedVisitorId, storyId:
|
|
|
148
149
|
creating: boolean;
|
|
149
150
|
};
|
|
150
151
|
|
|
151
|
-
declare const useApi: () => unknown;
|
|
152
|
-
declare function ApiProvider({ api: initialApi, baseUrl, children }: {
|
|
153
|
-
api?: any;
|
|
154
|
-
baseUrl?: any;
|
|
155
|
-
children: any;
|
|
156
|
-
}): react_jsx_runtime.JSX.Element;
|
|
157
|
-
|
|
158
152
|
declare class Base {
|
|
159
153
|
constructor(opts?: {});
|
|
160
154
|
requestGet(path: any, query?: any): any;
|
|
@@ -169,10 +163,19 @@ declare class Api extends Base {
|
|
|
169
163
|
constructor(opts?: {});
|
|
170
164
|
}
|
|
171
165
|
|
|
172
|
-
declare
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
declare const useApi: () => unknown;
|
|
167
|
+
interface ApiProviderProps {
|
|
168
|
+
api?: Api;
|
|
169
|
+
baseUrl?: string;
|
|
170
|
+
children: React.ReactNode;
|
|
171
|
+
}
|
|
172
|
+
declare function ApiProvider({ api: initialApi, baseUrl, children }: ApiProviderProps): react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface DataProviderProps {
|
|
175
|
+
api?: Api;
|
|
176
|
+
apiBaseUrl?: string;
|
|
177
|
+
children?: React.ReactNode;
|
|
178
|
+
}
|
|
179
|
+
declare function DataProvider({ api, apiBaseUrl, children }: DataProviderProps): react_jsx_runtime.JSX.Element;
|
|
177
180
|
|
|
178
181
|
export { Api, ApiProvider, Base as BaseApi, DataProvider, useApi, useContributionCreate, useContributions, useData, 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.38",
|
|
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.38",
|
|
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": "e984a8b97d5c87914dd4844ff29628a5690edd6f",
|
|
72
72
|
"types": "es/index.d.ts"
|
|
73
73
|
}
|