@abhishekzambare/react-grid-dnd 0.0.11 → 0.0.12
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 +120 -116
- package/Readme.md +120 -116
- package/dist/react-grid-dnd.cjs +1 -1
- package/dist/react-grid-dnd.js +9 -5
- package/package.json +77 -72
package/dist/react-grid-dnd.js
CHANGED
|
@@ -1799,7 +1799,8 @@ var ui = /* @__PURE__ */ new Set([
|
|
|
1799
1799
|
"opacity",
|
|
1800
1800
|
"clipPath",
|
|
1801
1801
|
"filter",
|
|
1802
|
-
"transform"
|
|
1802
|
+
"transform",
|
|
1803
|
+
"backgroundColor"
|
|
1803
1804
|
]), di = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1804
1805
|
function fi(e) {
|
|
1805
1806
|
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && di.test(e[t])) return !0;
|
|
@@ -1820,10 +1821,10 @@ var pi = /* @__PURE__ */ new Set([
|
|
|
1820
1821
|
"borderLeftColor"
|
|
1821
1822
|
]), mi = /*@__PURE__*/ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1822
1823
|
function hi(e) {
|
|
1823
|
-
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1824
|
-
if (!(
|
|
1825
|
-
let { onUpdate:
|
|
1826
|
-
return mi() && n && (ui.has(n) || pi.has(n) && fi(s)) && (n !== "transform" || !
|
|
1824
|
+
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
|
|
1825
|
+
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
|
|
1826
|
+
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
|
|
1827
|
+
return mi() && n && (ui.has(n) || pi.has(n) && fi(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1827
1828
|
}
|
|
1828
1829
|
//#endregion
|
|
1829
1830
|
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
@@ -3326,6 +3327,9 @@ var ms = class extends Po {
|
|
|
3326
3327
|
constructor() {
|
|
3327
3328
|
super(...arguments), this.type = "html", this.renderInstance = os;
|
|
3328
3329
|
}
|
|
3330
|
+
mount(e) {
|
|
3331
|
+
j(!!e.style, "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref"), super.mount(e);
|
|
3332
|
+
}
|
|
3329
3333
|
readValueFromInstance(e, t) {
|
|
3330
3334
|
if (Or.has(t)) return this.projection?.isProjecting ? Cr(t) : Tr(e, t);
|
|
3331
3335
|
{
|
package/package.json
CHANGED
|
@@ -1,75 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"name": "@abhishekzambare/react-grid-dnd",
|
|
3
|
+
"description": "grid style drag and drop for react",
|
|
4
|
+
"version": "0.0.12",
|
|
5
|
+
"author": "Abhishek Zambare",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"private": false,
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"gesture",
|
|
11
|
+
"drag and drop",
|
|
12
|
+
"dnd",
|
|
13
|
+
"grid"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"main": "./dist/react-grid-dnd.cjs",
|
|
20
|
+
"module": "./dist/react-grid-dnd.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/react-grid-dnd.js",
|
|
24
|
+
"require": "./dist/react-grid-dnd.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/Macintosh98/react-grid-dnd",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/Macintosh98/react-grid-dnd/issues"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/Macintosh98/react-grid-dnd.git"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "vite",
|
|
37
|
+
"build": "tsc -b && vite build",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"lint:fix": "eslint --fix .",
|
|
40
|
+
"format": "prettier --check . --config ./.prettierrc.json",
|
|
41
|
+
"format:fix": "prettier --write . --config ./.prettierrc.json",
|
|
42
|
+
"preview": "vite preview"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@babel/core": "^8.0.1",
|
|
46
|
+
"@eslint/js": "^10.0.1",
|
|
47
|
+
"@microsoft/api-extractor": "^7.58.12",
|
|
48
|
+
"@rolldown/plugin-babel": "^0.2.3",
|
|
49
|
+
"@types/babel__core": "^7.20.5",
|
|
50
|
+
"@types/node": "^26.1.2",
|
|
51
|
+
"@types/react": "^19.2.17",
|
|
52
|
+
"@types/react-dom": "^19.2.3",
|
|
53
|
+
"@typescript/typescript6": "^6.0.2",
|
|
54
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
55
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
56
|
+
"eslint": "^10.8.0",
|
|
57
|
+
"eslint-config-prettier": "^10.1.8",
|
|
58
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
59
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
60
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
61
|
+
"globals": "^17.8.0",
|
|
62
|
+
"motion": "^12.43.0",
|
|
63
|
+
"prettier": "^3.9.6",
|
|
64
|
+
"react": "^19.2.8",
|
|
65
|
+
"react-dom": "^19.2.8",
|
|
66
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
67
|
+
"rolldown": "^1.2.1",
|
|
68
|
+
"typescript": "^6.0.3",
|
|
69
|
+
"typescript-eslint": "^8.65.0",
|
|
70
|
+
"unplugin-dts": "^1.0.3",
|
|
71
|
+
"uuid": "^14.0.1",
|
|
72
|
+
"vite": "^8.1.5",
|
|
73
|
+
"vite-plugin-checker": "^0.14.5"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"motion": "^12",
|
|
77
|
+
"react": "^19",
|
|
78
|
+
"react-dom": "^19"
|
|
25
79
|
}
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/Macintosh98/react-grid-dnd",
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/Macintosh98/react-grid-dnd/issues"
|
|
30
|
-
},
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "https://github.com/Macintosh98/react-grid-dnd.git"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"dev": "vite",
|
|
37
|
-
"build": "tsc -b && vite build",
|
|
38
|
-
"lint": "eslint .",
|
|
39
|
-
"preview": "vite preview"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"motion": "^12.42.2",
|
|
43
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
44
|
-
"uuid": "^14.0.1",
|
|
45
|
-
"@babel/core": "^8.0.1",
|
|
46
|
-
"@eslint/js": "^10.0.1",
|
|
47
|
-
"@microsoft/api-extractor": "^7.58.10",
|
|
48
|
-
"@rolldown/plugin-babel": "^0.2.3",
|
|
49
|
-
"@types/babel__core": "^7.20.5",
|
|
50
|
-
"@types/node": "^26.1.1",
|
|
51
|
-
"@types/react": "^19.2.17",
|
|
52
|
-
"@types/react-dom": "^19.2.3",
|
|
53
|
-
"@typescript/typescript6": "^6.0.2",
|
|
54
|
-
"@vitejs/plugin-react": "^6.0.3",
|
|
55
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
56
|
-
"eslint": "^10.7.0",
|
|
57
|
-
"eslint-config-prettier": "^10.1.8",
|
|
58
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
59
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
60
|
-
"eslint-plugin-react-refresh": "^0.5.3",
|
|
61
|
-
"globals": "^17.7.0",
|
|
62
|
-
"react": "^19.2.7",
|
|
63
|
-
"react-dom": "^19.2.7",
|
|
64
|
-
"typescript": "~7.0.2",
|
|
65
|
-
"typescript-eslint": "^8.64.0",
|
|
66
|
-
"unplugin-dts": "^1.0.3",
|
|
67
|
-
"vite": "^8.1.4",
|
|
68
|
-
"vite-plugin-checker": "^0.14.4"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"react": "^19",
|
|
72
|
-
"react-dom": "^19",
|
|
73
|
-
"motion": "^12"
|
|
74
|
-
}
|
|
75
80
|
}
|