@liveblocks/react-flow 0.0.0 → 3.16.0-flow2
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 +57 -0
- package/dist/constants.cjs +33 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.js +29 -0
- package/dist/constants.js.map +1 -0
- package/dist/cursors.cjs +157 -0
- package/dist/cursors.cjs.map +1 -0
- package/dist/cursors.js +155 -0
- package/dist/cursors.js.map +1 -0
- package/dist/flow.cjs +269 -0
- package/dist/flow.cjs.map +1 -0
- package/dist/flow.js +267 -0
- package/dist/flow.js.map +1 -0
- package/dist/helpers.cjs +35 -0
- package/dist/helpers.cjs.map +1 -0
- package/dist/helpers.js +30 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +217 -0
- package/dist/index.d.ts +217 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/version.cjs +10 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/package.json +104 -2
- package/src/styles/index.css +12 -0
- package/styles.css +1 -0
- package/styles.css.d.cts +1 -0
- package/styles.css.d.ts +1 -0
- package/styles.css.map +1 -0
- package/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react-flow",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.16.0-flow2",
|
|
4
|
+
"description": "An integration of React Flow to enable collaboration and realtime cursors with Liveblocks.",
|
|
4
5
|
"license": "Apache-2.0",
|
|
5
|
-
"
|
|
6
|
+
"author": "Liveblocks Inc.",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"types": "./dist/index.d.cts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.cts",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"default": "./dist/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./styles.css": {
|
|
23
|
+
"types": "./styles.css.d.cts",
|
|
24
|
+
"default": "./styles.css"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist/**",
|
|
29
|
+
"**/*.css",
|
|
30
|
+
"**/*.css.d.cts",
|
|
31
|
+
"**/*.css.d.ts",
|
|
32
|
+
"**/*.css.map",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "rollup --config rollup.config.js --watch",
|
|
37
|
+
"build": "rollup --config rollup.config.js",
|
|
38
|
+
"start": "npm run dev",
|
|
39
|
+
"format": "(eslint --fix src/ || true) && stylelint --fix src/styles/ && prettier --write src/",
|
|
40
|
+
"lint": "eslint src/ && stylelint src/styles/",
|
|
41
|
+
"test": "npx liveblocks dev -p 1154 -c 'vitest run --coverage'",
|
|
42
|
+
"test:ci": "vitest run",
|
|
43
|
+
"test:watch": "vitest"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@liveblocks/client": "3.16.0-flow2",
|
|
47
|
+
"@liveblocks/core": "3.16.0-flow2",
|
|
48
|
+
"@liveblocks/react": "3.16.0-flow2",
|
|
49
|
+
"@liveblocks/react-ui": "3.16.0-flow2"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@xyflow/react": "^12",
|
|
53
|
+
"react": "^18 || ^19 || ^19.0.0-rc",
|
|
54
|
+
"react-dom": "^18 || ^19 || ^19.0.0-rc"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@types/react": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@types/react-dom": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@liveblocks/eslint-config": "*",
|
|
66
|
+
"@liveblocks/rollup-config": "*",
|
|
67
|
+
"@liveblocks/vitest-config": "*",
|
|
68
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
69
|
+
"@testing-library/react": "^13.1.1",
|
|
70
|
+
"@xyflow/react": "^12.10.1",
|
|
71
|
+
"eslint-plugin-react": "^7.33.2",
|
|
72
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
73
|
+
"stylelint": "^15.10.2",
|
|
74
|
+
"stylelint-config-standard": "^34.0.0",
|
|
75
|
+
"stylelint-order": "^6.0.3",
|
|
76
|
+
"stylelint-plugin-logical-css": "^0.13.2"
|
|
77
|
+
},
|
|
78
|
+
"sideEffects": false,
|
|
79
|
+
"bugs": {
|
|
80
|
+
"url": "https://github.com/liveblocks/liveblocks/issues"
|
|
81
|
+
},
|
|
82
|
+
"repository": {
|
|
83
|
+
"type": "git",
|
|
84
|
+
"url": "git+https://github.com/liveblocks/liveblocks.git",
|
|
85
|
+
"directory": "packages/liveblocks-react-flow"
|
|
86
|
+
},
|
|
87
|
+
"homepage": "https://liveblocks.io",
|
|
88
|
+
"keywords": [
|
|
89
|
+
"xyflow",
|
|
90
|
+
"react-flow",
|
|
91
|
+
"react",
|
|
92
|
+
"comments",
|
|
93
|
+
"threads",
|
|
94
|
+
"liveblocks",
|
|
95
|
+
"real-time",
|
|
96
|
+
"toolkit",
|
|
97
|
+
"multiplayer",
|
|
98
|
+
"websockets",
|
|
99
|
+
"collaboration",
|
|
100
|
+
"collaborative",
|
|
101
|
+
"presence",
|
|
102
|
+
"crdts",
|
|
103
|
+
"synchronize",
|
|
104
|
+
"rooms",
|
|
105
|
+
"documents",
|
|
106
|
+
"conflict resolution"
|
|
107
|
+
]
|
|
6
108
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.lb-react-flow-cursors {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Same z-index as `.react-flow__panel` (panels, `MiniMap`, `Controls`, etc.)
|
|
7
|
+
* https://github.com/xyflow/xyflow/blob/main/packages/system/src/styles/init.css
|
|
8
|
+
*/
|
|
9
|
+
z-index: 5;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.lb-react-flow-cursors{z-index:5;pointer-events:none;position:absolute;inset:0;overflow:hidden}
|
package/styles.css.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "@liveblocks/react-flow/styles.css";
|
package/styles.css.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "@liveblocks/react-flow/styles.css";
|
package/styles.css.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/styles/src/styles/index.css"],"names":[],"mappings":"AAAA,uBAAA,SAAA,CAAA,mBAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,eAAA","file":"styles.css","sourcesContent":[".lb-react-flow-cursors {\n position: absolute;\n inset: 0;\n\n /**\n * Same z-index as `.react-flow__panel` (panels, `MiniMap`, `Controls`, etc.)\n * https://github.com/xyflow/xyflow/blob/main/packages/system/src/styles/init.css\n */\n z-index: 5;\n overflow: hidden;\n pointer-events: none;\n}\n"]}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Placeholder
|