@bitux/review-layer-react 0.1.4 → 0.1.6
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 +116 -116
- package/dist/review-layer-react.js +980 -957
- package/dist/review-layer-react.js.map +1 -1
- package/dist/review-layer-react.umd.cjs +339 -339
- package/dist/review-layer-react.umd.cjs.map +1 -1
- package/dist/utils/positioning.d.ts +3 -3
- package/package.json +59 -59
|
@@ -35,9 +35,9 @@ export declare function getFallbackPosition(comment: Comment): {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function getFallbackRect(comment: Comment): DOMRect | null;
|
|
37
37
|
/**
|
|
38
|
-
* Pin position: prioriza
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* Pin position: prioriza el elemento en vivo por selector para que el pin
|
|
39
|
+
* siga al elemento al hacer scroll. Solo usa coordenadas guardadas cuando
|
|
40
|
+
* el selector no encuentra el elemento (p. ej. DOM cambiado, SPA).
|
|
41
41
|
*/
|
|
42
42
|
export declare function getCommentPinPosition(comment: Comment): {
|
|
43
43
|
x: number;
|
package/package.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bitux/review-layer-react",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "SDK to leave UI comments on staging React applications",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/review-layer-react.umd.cjs",
|
|
7
|
-
"module": "./dist/review-layer-react.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/review-layer-react.js",
|
|
12
|
-
"require": "./dist/review-layer-react.umd.cjs",
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"keywords": [
|
|
20
|
-
"review",
|
|
21
|
-
"comments",
|
|
22
|
-
"qa",
|
|
23
|
-
"staging",
|
|
24
|
-
"react",
|
|
25
|
-
"feedback",
|
|
26
|
-
"ui-review"
|
|
27
|
-
],
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"publishConfig": {
|
|
30
|
-
"access": "public"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "vite build",
|
|
34
|
-
"dev": "vite build --watch",
|
|
35
|
-
"test": "vitest run",
|
|
36
|
-
"test:watch": "vitest",
|
|
37
|
-
"demo": "vite --config vite.demo.config.ts",
|
|
38
|
-
"release:patch": "npm version patch --no-git-tag-version && npm run build && npm publish",
|
|
39
|
-
"release:minor": "npm version minor --no-git-tag-version && npm run build && npm publish",
|
|
40
|
-
"release:major": "npm version major --no-git-tag-version && npm run build && npm publish"
|
|
41
|
-
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@testing-library/react": "^14.1.0",
|
|
48
|
-
"@types/react": "^18.2.0",
|
|
49
|
-
"@types/react-dom": "^18.2.0",
|
|
50
|
-
"@vitejs/plugin-react": "^4.2.0",
|
|
51
|
-
"jsdom": "^23.0.0",
|
|
52
|
-
"react": "^18.2.0",
|
|
53
|
-
"react-dom": "^18.2.0",
|
|
54
|
-
"typescript": "^5.3.0",
|
|
55
|
-
"vite": "^5.0.0",
|
|
56
|
-
"vite-plugin-dts": "^3.7.0",
|
|
57
|
-
"vitest": "^1.2.0"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitux/review-layer-react",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "SDK to leave UI comments on staging React applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/review-layer-react.umd.cjs",
|
|
7
|
+
"module": "./dist/review-layer-react.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/review-layer-react.js",
|
|
12
|
+
"require": "./dist/review-layer-react.umd.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"review",
|
|
21
|
+
"comments",
|
|
22
|
+
"qa",
|
|
23
|
+
"staging",
|
|
24
|
+
"react",
|
|
25
|
+
"feedback",
|
|
26
|
+
"ui-review"
|
|
27
|
+
],
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "vite build",
|
|
34
|
+
"dev": "vite build --watch",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"demo": "vite --config vite.demo.config.ts",
|
|
38
|
+
"release:patch": "npm version patch --no-git-tag-version && npm run build && npm publish",
|
|
39
|
+
"release:minor": "npm version minor --no-git-tag-version && npm run build && npm publish",
|
|
40
|
+
"release:major": "npm version major --no-git-tag-version && npm run build && npm publish"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@testing-library/react": "^14.1.0",
|
|
48
|
+
"@types/react": "^18.2.0",
|
|
49
|
+
"@types/react-dom": "^18.2.0",
|
|
50
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
51
|
+
"jsdom": "^23.0.0",
|
|
52
|
+
"react": "^18.2.0",
|
|
53
|
+
"react-dom": "^18.2.0",
|
|
54
|
+
"typescript": "^5.3.0",
|
|
55
|
+
"vite": "^5.0.0",
|
|
56
|
+
"vite-plugin-dts": "^3.7.0",
|
|
57
|
+
"vitest": "^1.2.0"
|
|
58
|
+
}
|
|
59
|
+
}
|