@gaddario98/react-core 2.1.0 → 2.1.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/form/index.d.ts +1 -1
- package/dist/form/index.js +2 -2
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +1 -1
- package/dist/form/index.mjs.map +1 -1
- package/dist/index.d.ts +15 -2697
- package/dist/localization/index.d.ts +1 -1
- package/dist/localization/index.js +2 -2
- package/dist/localization/index.js.map +1 -1
- package/dist/localization/index.mjs +1 -1
- package/dist/localization/index.mjs.map +1 -1
- package/dist/pages/index.d.ts +4 -4
- package/dist/pages/index.js +8 -8
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/index.mjs +1 -1
- package/dist/pages/index.mjs.map +1 -1
- package/dist/queries/index.d.ts +2 -2
- package/dist/queries/index.js +3 -3
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/index.mjs +1 -1
- package/dist/queries/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/queries/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as jotai from 'jotai';
|
|
|
2
2
|
import * as jotai_utils from 'jotai/utils';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { useMutation, MutateOptions, UseMutationOptions, UseQueryOptions, useQuery, UseMutationResult, QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import { NotificationConfig } from '
|
|
5
|
+
import { NotificationConfig } from '../notifications/index';
|
|
6
6
|
import { AxiosRequestConfig } from 'axios';
|
|
7
|
-
import * as _gaddario98_react_state from '
|
|
7
|
+
import * as _gaddario98_react_state from '../state/index';
|
|
8
8
|
import { PersistQueryClientOptions } from '@tanstack/react-query-persist-client';
|
|
9
9
|
import { PropsWithChildren } from 'react';
|
|
10
10
|
|
package/dist/queries/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var jotai=require('jotai'),utils=require('jotai/utils'),
|
|
1
|
+
'use strict';var jotai=require('jotai'),utils=require('jotai/utils'),index_ts=require('../state/index.js'),reactQuery=require('@tanstack/react-query'),axios=require('axios'),React=require('react'),compilerRuntime=require('react/compiler-runtime'),equal=require('fast-deep-equal'),jsxRuntime=require('react/jsx-runtime');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var React__namespace=/*#__PURE__*/_interopNamespaceDefault(React);// ============================================================================
|
|
2
2
|
// Default Values
|
|
3
3
|
// ============================================================================
|
|
4
4
|
const DEFAULT_QUERY_ENTRY = Object.freeze({
|
|
@@ -41,7 +41,7 @@ const DEFAULT_MUTATION_ENTRY = Object.freeze({
|
|
|
41
41
|
* Global atom storing all query results.
|
|
42
42
|
* Key format: "scopeId:queryKey"
|
|
43
43
|
*/
|
|
44
|
-
const queriesAtom = utils.atomWithStorage('queries-atom', {}, utils.createJSONStorage(() =>
|
|
44
|
+
const queriesAtom = utils.atomWithStorage('queries-atom', {}, utils.createJSONStorage(() => index_ts.storage), {
|
|
45
45
|
getOnInit: true
|
|
46
46
|
});
|
|
47
47
|
/**
|
|
@@ -249,7 +249,7 @@ const {
|
|
|
249
249
|
useValue: useApiConfigValue,
|
|
250
250
|
useState: useApiConfigState,
|
|
251
251
|
useReset: useApiConfigReset
|
|
252
|
-
} =
|
|
252
|
+
} = index_ts.atomStateGenerator({
|
|
253
253
|
key: 'apiConfig',
|
|
254
254
|
defaultValue: {
|
|
255
255
|
endpoints: _endpoints,
|