@pie-lib/drag 2.1.15 → 2.1.16
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/CHANGELOG.md +11 -0
- package/lib/with-drag-context.js +2 -1
- package/lib/with-drag-context.js.map +1 -1
- package/package.json +2 -2
- package/src/with-drag-context.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.16](https://github.com/pie-framework/pie-lib/compare/@pie-lib/drag@2.1.15...@pie-lib/drag@2.1.16) (2023-04-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* commit for build (testing purpose) ([75acd61](https://github.com/pie-framework/pie-lib/commit/75acd61956f266fc3d4d2b6819782a0de61b0ec7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.1.15](https://github.com/pie-framework/pie-lib/compare/@pie-lib/drag@2.1.13...@pie-lib/drag@2.1.15) (2023-02-28)
|
|
7
18
|
|
|
8
19
|
|
package/lib/with-drag-context.js
CHANGED
|
@@ -15,7 +15,8 @@ var _reactDndTouchBackend = require("react-dnd-touch-backend");
|
|
|
15
15
|
|
|
16
16
|
var _reactDnd = require("react-dnd");
|
|
17
17
|
|
|
18
|
-
var isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; //
|
|
18
|
+
var isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; // This is a test for a build
|
|
19
|
+
// https://github.com/react-dnd/react-dnd/issues/3257
|
|
19
20
|
|
|
20
21
|
var _default = function _default(Component) {
|
|
21
22
|
return function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-drag-context.js"],"names":["isTouchEnabled","window","navigator","maxTouchPoints","msMaxTouchPoints","Component","props","TouchBackend","HTML5Backend"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA,IAAMA,cAAc,GAAG,kBAAkBC,MAAlB,IAA4BC,SAAS,CAACC,cAAV,GAA2B,CAAvD,IAA4DD,SAAS,CAACE,gBAAV,GAA6B,CAAhH,C,CAEA;;eACe,kBAACC,SAAD;AAAA,SAAe,UAACC,KAAD;AAAA,wBAC5B,gCAAC,qBAAD;AAAa,MAAA,OAAO,EAAEN,cAAc,GAAGO,kCAAH,GAAkBC,kCAAtD;AAAoE,MAAA,OAAO,EAAEP;AAA7E,oBACE,gCAAC,SAAD,EAAeK,KAAf,CADF,CAD4B;AAAA,GAAf;AAAA,C","sourcesContent":["import React from 'react';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\nimport { TouchBackend } from 'react-dnd-touch-backend';\n\nimport { DndProvider } from 'react-dnd';\n\nconst isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n\n// https://github.com/react-dnd/react-dnd/issues/3257\nexport default (Component) => (props) => (\n <DndProvider backend={isTouchEnabled ? TouchBackend : HTML5Backend} context={window}>\n <Component {...props} />\n </DndProvider>\n);\n"],"file":"with-drag-context.js"}
|
|
1
|
+
{"version":3,"sources":["../src/with-drag-context.js"],"names":["isTouchEnabled","window","navigator","maxTouchPoints","msMaxTouchPoints","Component","props","TouchBackend","HTML5Backend"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA,IAAMA,cAAc,GAAG,kBAAkBC,MAAlB,IAA4BC,SAAS,CAACC,cAAV,GAA2B,CAAvD,IAA4DD,SAAS,CAACE,gBAAV,GAA6B,CAAhH,C,CAEA;AAEA;;eACe,kBAACC,SAAD;AAAA,SAAe,UAACC,KAAD;AAAA,wBAC5B,gCAAC,qBAAD;AAAa,MAAA,OAAO,EAAEN,cAAc,GAAGO,kCAAH,GAAkBC,kCAAtD;AAAoE,MAAA,OAAO,EAAEP;AAA7E,oBACE,gCAAC,SAAD,EAAeK,KAAf,CADF,CAD4B;AAAA,GAAf;AAAA,C","sourcesContent":["import React from 'react';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\nimport { TouchBackend } from 'react-dnd-touch-backend';\n\nimport { DndProvider } from 'react-dnd';\n\nconst isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n\n// This is a test for a build\n\n// https://github.com/react-dnd/react-dnd/issues/3257\nexport default (Component) => (props) => (\n <DndProvider backend={isTouchEnabled ? TouchBackend : HTML5Backend} context={window}>\n <Component {...props} />\n </DndProvider>\n);\n"],"file":"with-drag-context.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/drag",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"scripts": {},
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "fb85ea77575747ac1bef1fb28bfb5fac1cb2c54f"
|
|
22
22
|
}
|
package/src/with-drag-context.js
CHANGED
|
@@ -6,6 +6,8 @@ import { DndProvider } from 'react-dnd';
|
|
|
6
6
|
|
|
7
7
|
const isTouchEnabled = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
8
8
|
|
|
9
|
+
// This is a test for a build
|
|
10
|
+
|
|
9
11
|
// https://github.com/react-dnd/react-dnd/issues/3257
|
|
10
12
|
export default (Component) => (props) => (
|
|
11
13
|
<DndProvider backend={isTouchEnabled ? TouchBackend : HTML5Backend} context={window}>
|