@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.
@@ -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 '@gaddario98/react-notifications';
5
+ import { NotificationConfig } from '../notifications/index';
6
6
  import { AxiosRequestConfig } from 'axios';
7
- import * as _gaddario98_react_state from '@gaddario98/react-state';
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
 
@@ -1,4 +1,4 @@
1
- 'use strict';var jotai=require('jotai'),utils=require('jotai/utils'),reactState=require('@gaddario98/react-state'),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);// ============================================================================
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(() => reactState.storage), {
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
- } = reactState.atomStateGenerator({
252
+ } = index_ts.atomStateGenerator({
253
253
  key: 'apiConfig',
254
254
  defaultValue: {
255
255
  endpoints: _endpoints,