@effect/atom-react 4.0.0-beta.6 → 4.0.0-beta.62
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/ScopedAtom.d.ts +1 -1
- package/dist/ScopedAtom.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/ScopedAtom.ts +1 -1
package/dist/ScopedAtom.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const TypeId: TypeId;
|
|
|
43
43
|
export interface ScopedAtom<A extends Atom.Atom<any>, Input = never> {
|
|
44
44
|
readonly [TypeId]: TypeId;
|
|
45
45
|
use(): A;
|
|
46
|
-
Provider: Input extends never ? React.FC<{
|
|
46
|
+
Provider: [Input] extends [never] ? React.FC<{
|
|
47
47
|
readonly children?: React.ReactNode | undefined;
|
|
48
48
|
}> : React.FC<{
|
|
49
49
|
readonly children?: React.ReactNode | undefined;
|
package/dist/ScopedAtom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopedAtom.d.ts","sourceRoot":"","sources":["../src/ScopedAtom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,IAAI,MAAM,iCAAiC,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,gCAAgC,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,EAAE,MAAyC,CAAA;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK;IACjE,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACzB,GAAG,IAAI,CAAC,CAAA;IACR,QAAQ,EAAE,KAAK,SAAS,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;QAAE,QAAQ,CAAC,QA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K,CAAC,CAAC,KACnC,UAAU,CAAC,CAAC,EAAE,KAAK,CA6BrB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/atom-react",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React bindings for the Effect Atom modules",
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.2.4",
|
|
47
47
|
"scheduler": "*",
|
|
48
|
-
"effect": "^4.0.0-beta.
|
|
48
|
+
"effect": "^4.0.0-beta.62"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/dom": "^10.4.1",
|
|
52
52
|
"@testing-library/jest-dom": "^6.9.1",
|
|
53
|
-
"@testing-library/react": "^16.3.
|
|
54
|
-
"@types/react": "^19.2.
|
|
53
|
+
"@testing-library/react": "^16.3.2",
|
|
54
|
+
"@types/react": "^19.2.14",
|
|
55
55
|
"@types/react-dom": "^19.2.2",
|
|
56
56
|
"@types/scheduler": "^0.26.0",
|
|
57
|
-
"jsdom": "^
|
|
58
|
-
"react": "19.2.
|
|
59
|
-
"react-dom": "19.2.
|
|
60
|
-
"react-error-boundary": "^6.
|
|
57
|
+
"jsdom": "^29.0.2",
|
|
58
|
+
"react": "19.2.5",
|
|
59
|
+
"react-dom": "19.2.5",
|
|
60
|
+
"react-error-boundary": "^6.1.1",
|
|
61
61
|
"scheduler": "^0.27.0",
|
|
62
|
-
"effect": "^4.0.0-beta.
|
|
62
|
+
"effect": "^4.0.0-beta.62"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsc -b tsconfig.json && pnpm babel",
|
package/src/ScopedAtom.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const TypeId: TypeId = "~@effect/atom-react/ScopedAtom"
|
|
|
51
51
|
export interface ScopedAtom<A extends Atom.Atom<any>, Input = never> {
|
|
52
52
|
readonly [TypeId]: TypeId
|
|
53
53
|
use(): A
|
|
54
|
-
Provider: Input extends never ? React.FC<{ readonly children?: React.ReactNode | undefined }>
|
|
54
|
+
Provider: [Input] extends [never] ? React.FC<{ readonly children?: React.ReactNode | undefined }>
|
|
55
55
|
: React.FC<{ readonly children?: React.ReactNode | undefined; readonly value: Input }>
|
|
56
56
|
Context: React.Context<A>
|
|
57
57
|
}
|