bansa 0.0.45 → 0.0.47

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/react.d.mts CHANGED
@@ -6,11 +6,11 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
  declare const ScopeContext: React.Context<AtomScope>;
7
7
  declare const useScopedAtom: UseScopedAtom;
8
8
  declare const useForkedAtom: <Value>(atom: DerivedAtom<Value>, injectedEntries?: AtomValuePair<any>[]) => DerivedAtom<Value>;
9
- declare const useAtomValue: <Value>(atom: Atom<Value>) => Value;
9
+ declare const useAtomValue: <Value>(atom: Atom<Value>, getServerSnapshot?: null | (() => Value)) => Value;
10
10
  type UseAtomState = {
11
- <Value>(atom: PrimitiveAtom<Value>): AtomSuccessState<Value>;
12
- <Value>(atom: DerivedAtom<Value>): AtomState<Value>;
13
- <Value>(atom: Atom<Value>): AtomState<Value>;
11
+ <Value>(atom: PrimitiveAtom<Value>, getServerSnapshot?: null | (() => Value)): AtomSuccessState<Value>;
12
+ <Value>(atom: DerivedAtom<Value>, getServerSnapshot?: null | (() => Value)): AtomState<Value>;
13
+ <Value>(atom: Atom<Value>, getServerSnapshot?: null | (() => Value)): AtomState<Value>;
14
14
  };
15
15
  declare const useAtomState: UseAtomState;
16
16
  declare const useAtom: <Value>(atom: PrimitiveAtom<Value>) => readonly [Value, (newState: AtomUpdater<Value>) => void];
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.mts","names":[],"sources":["../src/react.tsx"],"mappings":";;;;;cAsBa,YAAA,EAAY,KAAA,CAAA,OAAA,CAAA,SAAA;AAAA,cAGZ,aAAA,EAIP,aAAA;AAAA,cAUO,aAAA,UACX,IAAA,EAAM,WAAA,CAAY,KAAA,GAClB,eAAA,GAAkB,aAAA,YAAoB,WAAA,CAAA,KAAA;AAAA,cAU3B,YAAA,UAAwB,IAAA,EAAM,IAAA,CAAK,KAAA,MAAM,KAAA;AAAA,KAyBjD,YAAA;EAAA,QAC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AA,IAAS,SAAA,CAAU,KAAA;EAAA,QAC/E,IAAA,EAAM,IAAA,CAAK,KAAA,GAAQ,iBAAA,iBAAkC,KAAA,IAAS,SAAA,CAAU,KAAA;AAAA;AAAA,cAGrE,YAAA,EA2CP,YAAA;AAAA,cAEO,OAAA,UAAmB,IAAA,EAAM,aAAA,CAAc,KAAA,gBAAM,KAAA,GAAA,QAAA,EAEf,WAAA,CAAY,KAAA;AAAA,cAI1C,aAAA;EAAiB,KAAA;EAAA;AAAA;EAI5B,KAAA,GAAQ,aAAA;EACR,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA,MACjB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,KAEW,aAAA;EAAA,QACF,QAAA,EAAU,aAAA,CAAc,KAAA,IAAS,aAAA,CAAc,KAAA;EAAA,QAC/C,QAAA,EAAU,WAAA,CAAY,KAAA,IAAS,WAAA,CAAY,KAAA;EAAA,QAC3C,QAAA,EAAU,IAAA,CAAK,KAAA,IAAS,IAAA,CAAK,KAAA;AAAA"}
package/dist/react.mjs CHANGED
@@ -22,7 +22,7 @@ const useForkedAtom = (atom, injectedEntries) => {
22
22
  return atom;
23
23
  };
24
24
  const REACT_USE = (parseInt(version || "19", 10) || 19) >= 19 && "use" in React;
25
- const useAtomValue = (atom) => {
25
+ const useAtomValue = (atom, getServerSnapshot) => {
26
26
  atom = useScopedAtom(atom);
27
27
  const subscribe = useCallback((watcher) => atom.watch(watcher), [atom]);
28
28
  const getSnapshot = useCallback(() => {
@@ -37,10 +37,15 @@ const useAtomValue = (atom) => {
37
37
  throw atom.state.error;
38
38
  }
39
39
  }, [atom]);
40
- return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
40
+ return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot === void 0 ? getSnapshot : getServerSnapshot === null ? throwPromise : getServerSnapshot);
41
+ };
42
+ const ssrPromise = new Promise(() => {});
43
+ const throwPromise = () => {
44
+ if (REACT_USE) React.use(ssrPromise);
45
+ throw ssrPromise;
41
46
  };
42
47
  const sameAtomState = (a, b) => a.active === b.active && a.promise === b.promise && Object.is(a.error, b.error) && Object.is(a.value, b.value);
43
- const useAtomState = ((atom) => {
48
+ const useAtomState = ((atom, getServerSnapshot) => {
44
49
  atom = useScopedAtom(atom);
45
50
  const stateSnapshot = useRef({ ...atom.state });
46
51
  const subscribe = useCallback((watcher) => atom.watch(() => {
@@ -49,14 +54,20 @@ const useAtomState = ((atom) => {
49
54
  watcher();
50
55
  }
51
56
  }), [atom]);
52
- const getSnapshot = useCallback(() => {
57
+ const getStateSnapshot = useCallback(() => {
53
58
  try {
54
59
  atom.get();
55
60
  } catch (_) {}
56
61
  if (!sameAtomState(stateSnapshot.current, atom.state)) stateSnapshot.current = { ...atom.state };
57
62
  return stateSnapshot.current;
58
63
  }, [atom]);
59
- return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
64
+ const getServerStateSnapshot = useCallback(() => getServerSnapshot ? {
65
+ active: true,
66
+ error: void 0,
67
+ promise: void 0,
68
+ value: getServerSnapshot()
69
+ } : stateSnapshot.current, [getServerSnapshot]);
70
+ return useSyncExternalStore(subscribe, getStateSnapshot, getServerSnapshot === void 0 ? getStateSnapshot : getServerStateSnapshot);
60
71
  });
61
72
  const useAtom = (atom) => {
62
73
  atom = useScopedAtom(atom);
@@ -1 +1 @@
1
- {"version":3,"file":"react.mjs","names":[],"sources":["../src/react.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useSyncExternalStore,\n version,\n} from \"react\";\nimport { createScope } from \"./atom.ts\";\nimport type {\n Atom,\n AtomScope,\n AtomSuccessState,\n AtomState,\n AtomUpdater,\n AtomValuePair,\n DerivedAtom,\n PrimitiveAtom,\n} from \"./atom.ts\";\n\nexport const ScopeContext = createContext<AtomScope>((x) => x as any);\n\nconst forkedAtomParentMap = new WeakMap<Atom<any>, AtomScope>();\nexport const useScopedAtom = (<Value,>(atom: Atom<Value>) => {\n const scope = useContext(ScopeContext);\n if (forkedAtomParentMap.get(atom) === scope) return atom;\n return scope(atom);\n}) as UseScopedAtom;\n\nconst useForkedScope = (injectedEntries?: AtomValuePair<any>[]) => {\n const parentScope = useContext(ScopeContext);\n const deps = injectedEntries?.flat() || [];\n deps.push(parentScope);\n // oxlint-disable-next-line exhaustive-deps\n return useMemo(() => createScope(injectedEntries && parentScope, injectedEntries), deps);\n};\n\nexport const useForkedAtom = <Value,>(\n atom: DerivedAtom<Value>,\n injectedEntries?: AtomValuePair<any>[],\n) => {\n atom = useForkedScope(injectedEntries)(atom);\n forkedAtomParentMap.set(atom, useContext(ScopeContext));\n return atom;\n};\n\n// TODO: cleanup\nconst REACT_MAJOR_VERSION = parseInt(version || \"19\", 10) || 19;\nconst REACT_USE = REACT_MAJOR_VERSION >= 19 && \"use\" in React;\nexport const useAtomValue = <Value,>(atom: Atom<Value>) => {\n atom = useScopedAtom(atom);\n const subscribe = useCallback((watcher: () => void) => atom.watch(watcher), [atom]);\n const getSnapshot = useCallback(() => {\n // https://github.com/facebook/react/pull/34032\n try {\n return atom.get();\n } catch (_) {\n if (atom.state.promise) {\n const promise = Promise.resolve(atom.state.promise);\n if (REACT_USE) React.use(promise);\n throw promise;\n }\n throw atom.state.error;\n }\n }, [atom]);\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n};\n\nconst sameAtomState = <Value,>(a: AtomState<Value>, b: AtomState<Value>) =>\n a.active === b.active &&\n a.promise === b.promise &&\n Object.is(a.error, b.error) &&\n Object.is(a.value, b.value);\n\ntype UseAtomState = {\n <Value>(atom: PrimitiveAtom<Value>): AtomSuccessState<Value>;\n <Value>(atom: DerivedAtom<Value>): AtomState<Value>;\n <Value>(atom: Atom<Value>): AtomState<Value>;\n};\n\nexport const useAtomState = (<Value,>(atom: Atom<Value>) => {\n atom = useScopedAtom(atom);\n const stateSnapshot = useRef({ ...atom.state });\n const subscribe = useCallback(\n (watcher: () => void) =>\n atom.watch(() => {\n if (!sameAtomState(stateSnapshot.current, atom.state)) {\n stateSnapshot.current = { ...atom.state };\n watcher();\n }\n }),\n [atom],\n );\n const getSnapshot = useCallback(() => {\n // avoid https://github.com/facebook/react/issues/31730\n try {\n atom.get();\n } catch (_) {}\n if (!sameAtomState(stateSnapshot.current, atom.state)) {\n stateSnapshot.current = { ...atom.state };\n }\n return stateSnapshot.current;\n }, [atom]);\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}) as UseAtomState;\n\nexport const useAtom = <Value,>(atom: PrimitiveAtom<Value>) => {\n atom = useScopedAtom(atom);\n const setAtom = useMemo(() => (newState: AtomUpdater<Value>) => atom.set(newState), [atom]);\n return [useAtomValue(atom), setAtom] as const;\n};\n\nexport const ScopeProvider = ({\n value,\n children,\n}: {\n value?: AtomValuePair<any>[];\n children: React.ReactNode;\n}) => <ScopeContext.Provider value={useForkedScope(value)}>{children}</ScopeContext.Provider>;\n\nexport type UseScopedAtom = {\n <Value>(baseAtom: PrimitiveAtom<Value>): PrimitiveAtom<Value>;\n <Value>(baseAtom: DerivedAtom<Value>): DerivedAtom<Value>;\n <Value>(baseAtom: Atom<Value>): Atom<Value>;\n};\n"],"mappings":";;;;;AAsBA,MAAa,eAAe,eAA0B,MAAM,EAAS;AAErE,MAAM,sCAAsB,IAAI,SAA+B;AAC/D,MAAa,kBAA0B,SAAsB;CAC3D,MAAM,QAAQ,WAAW,aAAa;AACtC,KAAI,oBAAoB,IAAI,KAAK,KAAK,MAAO,QAAO;AACpD,QAAO,MAAM,KAAK;;AAGpB,MAAM,kBAAkB,oBAA2C;CACjE,MAAM,cAAc,WAAW,aAAa;CAC5C,MAAM,OAAO,iBAAiB,MAAM,IAAI,EAAE;AAC1C,MAAK,KAAK,YAAY;AAEtB,QAAO,cAAc,YAAY,mBAAmB,aAAa,gBAAgB,EAAE,KAAK;;AAG1F,MAAa,iBACX,MACA,oBACG;AACH,QAAO,eAAe,gBAAgB,CAAC,KAAK;AAC5C,qBAAoB,IAAI,MA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SAA+B;AAC7D,QAAO,cAAc,KAAK;CAC1B,MAAM,UAAU,eAAe,aAAiC,KAAK,IAAI,SAAS,EAAE,CAAC,KAAK,CAAC;AAC3F,QAAO,CAAC,aAAa,KAAK,EAAE,QAAQ;;AAGtC,MAAa,iBAAiB,EAC5B,OACA,eAII,oBAAC,aAAa,UAAd;CAAuB,OAAO,eAAe,MAAM;CAAG;CAAiC,CAAA"}
1
+ {"version":3,"file":"react.mjs","names":[],"sources":["../src/react.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useSyncExternalStore,\n version,\n} from \"react\";\nimport { createScope } from \"./atom.ts\";\nimport type {\n Atom,\n AtomScope,\n AtomSuccessState,\n AtomState,\n AtomUpdater,\n AtomValuePair,\n DerivedAtom,\n PrimitiveAtom,\n} from \"./atom.ts\";\n\nexport const ScopeContext = createContext<AtomScope>((x) => x as any);\n\nconst forkedAtomParentMap = new WeakMap<Atom<any>, AtomScope>();\nexport const useScopedAtom = (<Value,>(atom: Atom<Value>) => {\n const scope = useContext(ScopeContext);\n if (forkedAtomParentMap.get(atom) === scope) return atom;\n return scope(atom);\n}) as UseScopedAtom;\n\nconst useForkedScope = (injectedEntries?: AtomValuePair<any>[]) => {\n const parentScope = useContext(ScopeContext);\n const deps = injectedEntries?.flat() || [];\n deps.push(parentScope);\n // oxlint-disable-next-line exhaustive-deps\n return useMemo(() => createScope(injectedEntries && parentScope, injectedEntries), deps);\n};\n\nexport const useForkedAtom = <Value,>(\n atom: DerivedAtom<Value>,\n injectedEntries?: AtomValuePair<any>[],\n) => {\n atom = useForkedScope(injectedEntries)(atom);\n forkedAtomParentMap.set(atom, useContext(ScopeContext));\n return atom;\n};\n\n// TODO: cleanup\nconst REACT_MAJOR_VERSION = parseInt(version || \"19\", 10) || 19;\nconst REACT_USE = REACT_MAJOR_VERSION >= 19 && \"use\" in React;\nexport const useAtomValue = <Value,>(\n atom: Atom<Value>,\n getServerSnapshot?: null | (() => Value),\n) => {\n atom = useScopedAtom(atom);\n const subscribe = useCallback((watcher: () => void) => atom.watch(watcher), [atom]);\n const getSnapshot = useCallback(() => {\n // https://github.com/facebook/react/pull/34032\n try {\n return atom.get();\n } catch (_) {\n if (atom.state.promise) {\n const promise = Promise.resolve(atom.state.promise);\n if (REACT_USE) React.use(promise);\n throw promise;\n }\n throw atom.state.error;\n }\n }, [atom]);\n return useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot === undefined\n ? getSnapshot\n : getServerSnapshot === null\n ? throwPromise\n : getServerSnapshot,\n );\n};\n\nconst ssrPromise = new Promise(() => {});\nconst throwPromise = () => {\n if (REACT_USE) React.use(ssrPromise);\n throw ssrPromise;\n};\nconst sameAtomState = <Value,>(a: AtomState<Value>, b: AtomState<Value>) =>\n a.active === b.active &&\n a.promise === b.promise &&\n Object.is(a.error, b.error) &&\n Object.is(a.value, b.value);\n\ntype UseAtomState = {\n <Value>(atom: PrimitiveAtom<Value>, getServerSnapshot?: null | (() => Value)): AtomSuccessState<Value>;\n <Value>(atom: DerivedAtom<Value>, getServerSnapshot?: null | (() => Value)): AtomState<Value>;\n <Value>(atom: Atom<Value>, getServerSnapshot?: null | (() => Value)): AtomState<Value>;\n};\n\nexport const useAtomState = (<Value,>(\n atom: Atom<Value>,\n getServerSnapshot?: null | (() => Value),\n) => {\n atom = useScopedAtom(atom);\n const stateSnapshot = useRef({ ...atom.state });\n const subscribe = useCallback(\n (watcher: () => void) =>\n atom.watch(() => {\n if (!sameAtomState(stateSnapshot.current, atom.state)) {\n stateSnapshot.current = { ...atom.state };\n watcher();\n }\n }),\n [atom],\n );\n const getStateSnapshot = useCallback(() => {\n // avoid https://github.com/facebook/react/issues/31730\n try {\n atom.get();\n } catch (_) {}\n if (!sameAtomState(stateSnapshot.current, atom.state)) {\n stateSnapshot.current = { ...atom.state };\n }\n return stateSnapshot.current;\n }, [atom]);\n const getServerStateSnapshot = useCallback(\n () =>\n getServerSnapshot\n ? {\n active: true,\n error: undefined,\n promise: undefined,\n value: getServerSnapshot(),\n }\n : stateSnapshot.current,\n [getServerSnapshot],\n );\n return useSyncExternalStore(\n subscribe,\n getStateSnapshot,\n getServerSnapshot === undefined ? getStateSnapshot : getServerStateSnapshot,\n );\n}) as UseAtomState;\n\nexport const useAtom = <Value,>(atom: PrimitiveAtom<Value>) => {\n atom = useScopedAtom(atom);\n const setAtom = useMemo(() => (newState: AtomUpdater<Value>) => atom.set(newState), [atom]);\n return [useAtomValue(atom), setAtom] as const;\n};\n\nexport const ScopeProvider = ({\n value,\n children,\n}: {\n value?: AtomValuePair<any>[];\n children: React.ReactNode;\n}) => <ScopeContext.Provider value={useForkedScope(value)}>{children}</ScopeContext.Provider>;\n\nexport type UseScopedAtom = {\n <Value>(baseAtom: PrimitiveAtom<Value>): PrimitiveAtom<Value>;\n <Value>(baseAtom: DerivedAtom<Value>): DerivedAtom<Value>;\n <Value>(baseAtom: Atom<Value>): Atom<Value>;\n};\n"],"mappings":";;;;;AAsBA,MAAa,eAAe,eAA0B,MAAM,EAAS;AAErE,MAAM,sCAAsB,IAAI,SAA+B;AAC/D,MAAa,kBAA0B,SAAsB;CAC3D,MAAM,QAAQ,WAAW,aAAa;AACtC,KAAI,oBAAoB,IAAI,KAAK,KAAK,MAAO,QAAO;AACpD,QAAO,MAAM,KAAK;;AAGpB,MAAM,kBAAkB,oBAA2C;CACjE,MAAM,cAAc,WAAW,aAAa;CAC5C,MAAM,OAAO,iBAAiB,MAAM,IAAI,EAAE;AAC1C,MAAK,KAAK,YAAY;AAEtB,QAAO,cAAc,YAAY,mBAAmB,aAAa,gBAAgB,EAAE,KAAK;;AAG1F,MAAa,iBACX,MACA,oBACG;AACH,QAAO,eAAe,gBAAgB,CAAC,KAAK;AAC5C,qBAAoB,IAAI,MAAM,WAAW,aAAa,CAAC;AACvD,QAAO;;AAKT,MAAM,aADsB,SAAS,WAAW,MAAM,GAAG,IAAI,OACpB,MAAM,SAAS;AACxD,MAAa,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oBACI;EACE,QAAQ;EACR,OAAO,KAAA;EACP,SAAS,KAAA;EACT,OAAO,mBAAmB;EAC3B,GACD,cAAc,SACpB,CAAC,kBAAkB,CACpB;AACD,QAAO,qBACL,WACA,kBACA,sBAAsB,KAAA,IAAY,mBAAmB,uBACtD;;AAGH,MAAa,WAAmB,SAA+B;AAC7D,QAAO,cAAc,KAAK;CAC1B,MAAM,UAAU,eAAe,aAAiC,KAAK,IAAI,SAAS,EAAE,CAAC,KAAK,CAAC;AAC3F,QAAO,CAAC,aAAa,KAAK,EAAE,QAAQ;;AAGtC,MAAa,iBAAiB,EAC5B,OACA,eAII,oBAAC,aAAa,UAAd;CAAuB,OAAO,eAAe,MAAM;CAAG;CAAiC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bansa",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "bansa",