@evolu/react-web 2.4.0 → 3.0.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.
- package/README.md +4 -2
- package/dist/{components → src/components}/EvoluIdenticon.d.ts +1 -1
- package/dist/src/components/EvoluIdenticon.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/index.js +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/local-first/Evolu.d.ts +5 -0
- package/dist/src/local-first/Evolu.d.ts.map +1 -0
- package/dist/src/local-first/Evolu.js +7 -0
- package/package.json +23 -23
- package/src/components/EvoluIdenticon.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/index.ts +2 -11
- package/src/local-first/Evolu.ts +10 -0
- package/dist/components/EvoluIdenticon.d.ts.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
- /package/dist/{components → src/components}/EvoluIdenticon.js +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# Evolu for Web
|
|
1
|
+
# Evolu for React Web
|
|
2
|
+
|
|
3
|
+
This package provides Evolu for [React](https://react.dev) on the web platform (browsers). It re-exports everything from `@evolu/web` and adds React-specific functionality.
|
|
2
4
|
|
|
3
5
|
## Documentation
|
|
4
6
|
|
|
@@ -10,4 +12,4 @@ The Evolu community is on [GitHub Discussions](https://github.com/evoluhq/evolu/
|
|
|
10
12
|
|
|
11
13
|
To chat with other community members, you can join the [Evolu Discord](https://discord.gg/2J8yyyyxtZ).
|
|
12
14
|
|
|
13
|
-
[](https://x.com/evoluhq)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvoluIdenticon.d.ts","sourceRoot":"","sources":["../../../src/components/EvoluIdenticon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAeA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EvoluIdenticon.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ConsoleDep } from "@evolu/common";
|
|
2
|
+
import type { EvoluDeps } from "@evolu/common/local-first";
|
|
3
|
+
/** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
|
|
4
|
+
export declare const createEvoluDeps: (deps?: Partial<ConsoleDep>) => EvoluDeps;
|
|
5
|
+
//# sourceMappingURL=Evolu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Evolu.d.ts","sourceRoot":"","sources":["../../../src/local-first/Evolu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3D,oFAAoF;AACpF,eAAO,MAAM,eAAe,UAAU,OAAO,CAAC,UAAU,CAAC,KAAQ,SAG/D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createEvoluDeps as createWebEvoluDeps } from "@evolu/web";
|
|
2
|
+
import { flushSync } from "react-dom";
|
|
3
|
+
/** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
|
|
4
|
+
export const createEvoluDeps = (deps = {}) => ({
|
|
5
|
+
...createWebEvoluDeps(deps),
|
|
6
|
+
flushSync,
|
|
7
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/react-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Evolu for React (web platform)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -11,52 +11,52 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/evoluhq/evolu/issues"
|
|
13
13
|
},
|
|
14
|
-
"repository":
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/evoluhq/evolu.git"
|
|
17
|
+
},
|
|
15
18
|
"license": "MIT",
|
|
16
19
|
"author": "Daniel Steigerwald <daniel@steigerwald.cz>",
|
|
17
|
-
"sideEffects":
|
|
20
|
+
"sideEffects": false,
|
|
18
21
|
"type": "module",
|
|
19
22
|
"exports": {
|
|
20
23
|
".": {
|
|
21
|
-
"types": "./dist/index.d.ts",
|
|
22
|
-
"import": "./dist/index.js",
|
|
23
|
-
"browser": "./dist/index.js"
|
|
24
|
+
"types": "./dist/src/index.d.ts",
|
|
25
|
+
"import": "./dist/src/index.js",
|
|
26
|
+
"browser": "./dist/src/index.js"
|
|
24
27
|
}
|
|
25
28
|
},
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
29
|
+
"types": "./dist/src/index.d.ts",
|
|
27
30
|
"files": [
|
|
28
|
-
"dist/**",
|
|
31
|
+
"dist/src/**",
|
|
29
32
|
"src/**",
|
|
30
33
|
"README.md"
|
|
31
34
|
],
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"@types/react": "
|
|
34
|
-
"@types/react-dom": "
|
|
35
|
-
"
|
|
36
|
-
"react
|
|
37
|
-
"
|
|
36
|
+
"@types/react": "^19.2.18",
|
|
37
|
+
"@types/react-dom": "^19.2.4",
|
|
38
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
39
|
+
"react": "19.2.3",
|
|
40
|
+
"react-dom": "19.2.3",
|
|
38
41
|
"user-agent-data-types": "^0.4.2",
|
|
39
|
-
"
|
|
40
|
-
"@evolu/
|
|
41
|
-
"@evolu/
|
|
42
|
-
"@evolu/web": "2.4.0"
|
|
42
|
+
"@evolu/common": "8.0.0",
|
|
43
|
+
"@evolu/typescript-config": "0.0.2",
|
|
44
|
+
"@evolu/web": "3.0.0"
|
|
43
45
|
},
|
|
44
46
|
"peerDependencies": {
|
|
45
|
-
"@evolu/common": "^
|
|
46
|
-
"@evolu/web": "^
|
|
47
|
+
"@evolu/common": "^8.0.0-next.0",
|
|
48
|
+
"@evolu/web": "^3.0.0-next.0",
|
|
47
49
|
"react": ">=19",
|
|
48
50
|
"react-dom": ">=19"
|
|
49
51
|
},
|
|
50
52
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
53
|
+
"node": ">=24.0.0"
|
|
52
54
|
},
|
|
53
55
|
"publishConfig": {
|
|
54
56
|
"access": "public"
|
|
55
57
|
},
|
|
56
58
|
"scripts": {
|
|
57
|
-
"build": "
|
|
58
|
-
"clean": "rimraf .turbo node_modules dist",
|
|
59
|
-
"dev": "tsc --watch",
|
|
59
|
+
"build": "tsc --build tsconfig.build.json",
|
|
60
60
|
"format": "prettier --write \"src/*.{ts,tsx,md}\""
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EvoluIdenticon.tsx";
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { flushSync } from "react-dom";
|
|
4
|
-
|
|
5
|
-
export * from "./components/EvoluIdenticon.js";
|
|
6
|
-
export { localAuth };
|
|
7
|
-
|
|
8
|
-
export const evoluReactWebDeps: EvoluDeps = {
|
|
9
|
-
...evoluWebDeps,
|
|
10
|
-
flushSync,
|
|
11
|
-
};
|
|
1
|
+
export * from "./components/index.ts";
|
|
2
|
+
export * from "./local-first/Evolu.ts";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ConsoleDep } from "@evolu/common";
|
|
2
|
+
import type { EvoluDeps } from "@evolu/common/local-first";
|
|
3
|
+
import { createEvoluDeps as createWebEvoluDeps } from "@evolu/web";
|
|
4
|
+
import { flushSync } from "react-dom";
|
|
5
|
+
|
|
6
|
+
/** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
|
|
7
|
+
export const createEvoluDeps = (deps: Partial<ConsoleDep> = {}): EvoluDeps => ({
|
|
8
|
+
...createWebEvoluDeps(deps),
|
|
9
|
+
flushSync,
|
|
10
|
+
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EvoluIdenticon.d.ts","sourceRoot":"","sources":["../../src/components/EvoluIdenticon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAEpC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAeA,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAgB,SAAS,EAAE,MAAM,YAAY,CAAC;AAGrD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,eAAO,MAAM,iBAAiB,EAAE,SAG/B,CAAC"}
|
package/dist/index.js
DELETED
|
File without changes
|