@gaddario98/react-core 2.0.8 → 2.1.0

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.
@@ -1,4 +1,4 @@
1
- import * as _gaddario98_react_state from '@gaddario98/react-state';
1
+ import * as jotai_vanilla_atom from 'jotai/vanilla/atom';
2
2
 
3
3
  type AuthState = {
4
4
  id: string;
@@ -9,7 +9,7 @@ type AuthState = {
9
9
  email?: string;
10
10
  };
11
11
 
12
- declare const authAtom: _gaddario98_react_state.PrimitiveAtom<AuthState | null>;
12
+ declare const authAtom: jotai_vanilla_atom.PrimitiveAtom<AuthState | null>;
13
13
  declare const useAuthValue: () => AuthState | null;
14
14
  declare const useAuthState: () => [AuthState | null, (value: AuthState | null) => void];
15
15
 
@@ -1,8 +1,8 @@
1
- 'use strict';var reactState=require('@gaddario98/react-state');const {
1
+ 'use strict';var index_ts=require('../state/index.js');const {
2
2
  atom: authAtom,
3
3
  useValue: useAuthValue,
4
4
  useState: useAuthState
5
- } = reactState.atomStateGenerator({
5
+ } = index_ts.atomStateGenerator({
6
6
  defaultValue: null,
7
7
  key: "reactAuthStore",
8
8
  persist: true
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../auth/state.ts"],"sourcesContent":["import { atomStateGenerator } from \"@gaddario98/react-state\";\nimport type { AuthState } from \"./types\";\n\nconst {\n atom: authAtom,\n useValue: useAuthValue,\n useState: useAuthState,\n} = atomStateGenerator<AuthState | null>({\n defaultValue: null,\n key: \"reactAuthStore\",\n persist: true,\n});\nexport { authAtom, useAuthValue, useAuthState };\n"],"names":["atom","authAtom","useValue","useAuthValue","useState","useAuthState","atomStateGenerator","defaultValue","key","persist"],"mappings":"+DAGA,MAAM;AACJA,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,QAAQ,EAAEC,YAAY;AACtBC,EAAAA,QAAQ,EAAEC;AAAY,CACvB,GAAGC,6BAAkB,CAAmB;AACvCC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,GAAG,EAAE,gBAAgB;AACrBC,EAAAA,OAAO,EAAE;AACV,CAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../auth/state.ts"],"sourcesContent":["import { atomStateGenerator } from \"../state\";\nimport type { AuthState } from \"./types\";\n\nconst {\n atom: authAtom,\n useValue: useAuthValue,\n useState: useAuthState,\n} = atomStateGenerator<AuthState | null>({\n defaultValue: null,\n key: \"reactAuthStore\",\n persist: true,\n});\nexport { authAtom, useAuthValue, useAuthState };\n"],"names":["atom","authAtom","useValue","useAuthValue","useState","useAuthState","atomStateGenerator","defaultValue","key","persist"],"mappings":"uDAGA,MAAM;AACJA,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,QAAQ,EAAEC,YAAY;AACtBC,EAAAA,QAAQ,EAAEC;AAAY,CACvB,GAAGC,2BAAkB,CAAmB;AACvCC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,GAAG,EAAE,gBAAgB;AACrBC,EAAAA,OAAO,EAAE;AACV,CAAA"}
@@ -1,4 +1,4 @@
1
- import {atomStateGenerator}from'@gaddario98/react-state';const {
1
+ import {atomStateGenerator}from'../state/index.mjs';const {
2
2
  atom: authAtom,
3
3
  useValue: useAuthValue,
4
4
  useState: useAuthState
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../auth/state.ts"],"sourcesContent":["import { atomStateGenerator } from \"@gaddario98/react-state\";\nimport type { AuthState } from \"./types\";\n\nconst {\n atom: authAtom,\n useValue: useAuthValue,\n useState: useAuthState,\n} = atomStateGenerator<AuthState | null>({\n defaultValue: null,\n key: \"reactAuthStore\",\n persist: true,\n});\nexport { authAtom, useAuthValue, useAuthState };\n"],"names":["atom","authAtom","useValue","useAuthValue","useState","useAuthState","atomStateGenerator","defaultValue","key","persist"],"mappings":"yDAGA,MAAM;AACJA,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,QAAQ,EAAEC,YAAY;AACtBC,EAAAA,QAAQ,EAAEC;AAAY,CACvB,GAAGC,kBAAkB,CAAmB;AACvCC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,GAAG,EAAE,gBAAgB;AACrBC,EAAAA,OAAO,EAAE;AACV,CAAA"}
1
+ {"version":3,"file":"index.mjs","sources":["../../auth/state.ts"],"sourcesContent":["import { atomStateGenerator } from \"../state\";\nimport type { AuthState } from \"./types\";\n\nconst {\n atom: authAtom,\n useValue: useAuthValue,\n useState: useAuthState,\n} = atomStateGenerator<AuthState | null>({\n defaultValue: null,\n key: \"reactAuthStore\",\n persist: true,\n});\nexport { authAtom, useAuthValue, useAuthState };\n"],"names":["atom","authAtom","useValue","useAuthValue","useState","useAuthState","atomStateGenerator","defaultValue","key","persist"],"mappings":"oDAGA,MAAM;AACJA,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,QAAQ,EAAEC,YAAY;AACtBC,EAAAA,QAAQ,EAAEC;AAAY,CACvB,GAAGC,kBAAkB,CAAmB;AACvCC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,GAAG,EAAE,gBAAgB;AACrBC,EAAAA,OAAO,EAAE;AACV,CAAA"}