@overmap-ai/core 1.0.57-export-overmap-reducer.0 → 1.0.57-export-overmap-reducer.2
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/dist/contexts/sdk/sdk.d.ts +3 -3
- package/dist/overmap-core.js +6 -3
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +5 -2
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/store.d.ts +1 -0
- package/dist/typings/models/store.d.ts +34 -1
- package/package.json +1 -1
|
@@ -3226,6 +3226,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3226
3226
|
},
|
|
3227
3227
|
appearance: "dark",
|
|
3228
3228
|
isFetchingInitialData: false,
|
|
3229
|
+
// TODO: this is being used only in the custom hook in /web called useRetrySDK, which has something to do with licences
|
|
3230
|
+
// this has no purpose of being put into /core, it should be removed from here. But licences need to be fixed before this is done.
|
|
3229
3231
|
isLoading: false
|
|
3230
3232
|
};
|
|
3231
3233
|
const settingSlice = toolkit.createSlice({
|
|
@@ -8343,14 +8345,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8343
8345
|
}
|
|
8344
8346
|
const makeClient = (apiUrl, store) => new OvermapSDK(apiUrl, store);
|
|
8345
8347
|
const SDKContext = React.createContext({});
|
|
8346
|
-
const SDKProvider =
|
|
8348
|
+
const SDKProvider = genericMemo(function SDKProvider2(props) {
|
|
8349
|
+
const { children, API_URL, store } = props;
|
|
8347
8350
|
const client = React.useMemo(() => makeClient(API_URL, store), [API_URL, store]);
|
|
8348
8351
|
React.useEffect(() => {
|
|
8349
8352
|
setClientStore(store);
|
|
8350
8353
|
}, [store]);
|
|
8351
8354
|
return /* @__PURE__ */ jsxRuntime.jsx(SDKContext.Provider, { value: { sdk: client }, children });
|
|
8352
8355
|
});
|
|
8353
|
-
SDKProvider.displayName = "SDKProvider";
|
|
8354
8356
|
const useSDK = () => {
|
|
8355
8357
|
return React.useContext(SDKContext);
|
|
8356
8358
|
};
|
|
@@ -16463,6 +16465,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16463
16465
|
exports2.TextInput = TextInput;
|
|
16464
16466
|
exports2.UserFormService = UserFormService;
|
|
16465
16467
|
exports2.UserFormSubmissionService = UserFormSubmissionService;
|
|
16468
|
+
exports2.VERSION_REDUCER_KEY = VERSION_REDUCER_KEY;
|
|
16466
16469
|
exports2.VerificationCodeType = VerificationCodeType;
|
|
16467
16470
|
exports2.WorkspaceService = WorkspaceService;
|
|
16468
16471
|
exports2.YELLOW = YELLOW;
|