@boxcustodia/library 0.0.7 → 0.0.8
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/dist/index.d.ts +6 -1
- package/dist/index.es100.js +4 -4
- package/dist/index.es101.js +4 -14
- package/dist/index.es102.js +3 -4
- package/dist/index.es103.js +14 -57
- package/dist/index.es104.js +5 -29
- package/dist/index.es105.js +57 -12
- package/dist/index.es106.js +29 -11
- package/dist/index.es111.js +243 -1046
- package/dist/index.es112.js +12 -4
- package/dist/index.es113.js +11 -4
- package/dist/index.es114.js +7 -7
- package/dist/index.es117.js +14 -14
- package/dist/index.es118.js +813 -55
- package/dist/index.es119.js +9 -822
- package/dist/index.es120.js +5 -3
- package/dist/index.es121.js +64 -11
- package/dist/index.es122.js +88 -11
- package/dist/index.es123.js +11 -88
- package/dist/index.es124.js +4 -216
- package/dist/index.es127.js +5 -5
- package/dist/index.es128.js +216 -4
- package/dist/index.es129.js +2 -2
- package/dist/index.es134.js +1 -1
- package/dist/index.es137.js +20 -11
- package/dist/index.es138.js +37 -205
- package/dist/index.es139.js +10 -10
- package/dist/index.es140.js +11 -20
- package/dist/index.es141.js +205 -37
- package/dist/index.es142.js +10 -10
- package/dist/index.es143.js +5 -6
- package/dist/index.es144.js +2 -65
- package/dist/index.es145.js +44 -11
- package/dist/index.es146.js +5 -123
- package/dist/index.es147.js +58 -128
- package/dist/index.es148.js +11 -14
- package/dist/index.es149.js +122 -30
- package/dist/index.es150.js +134 -14
- package/dist/index.es151.js +12 -7
- package/dist/index.es152.js +32 -49
- package/dist/index.es153.js +14 -5
- package/dist/index.es154.js +9 -2
- package/dist/index.es155.js +48 -648
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +649 -3
- package/dist/index.es158.js +4 -4
- package/dist/index.es159.js +3 -45
- package/dist/index.es160.js +45 -7
- package/dist/index.es161.js +7 -5
- package/dist/index.es162.js +6 -28
- package/dist/index.es163.js +27 -43
- package/dist/index.es164.js +3 -3
- package/dist/index.es166.js +5 -5
- package/dist/index.es168.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es182.js +1 -1
- package/dist/index.es184.js +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es241.js +24 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +2 -2
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es249.js +178 -2
- package/dist/index.es250.js +25 -397
- package/dist/index.es251.js +4 -722
- package/dist/index.es252.js +7 -282
- package/dist/index.es253.js +13 -60
- package/dist/index.es254.js +13 -9
- package/dist/index.es255.js +134 -28
- package/dist/index.es256.js +32 -199
- package/dist/index.es257.js +462 -25
- package/dist/index.es258.js +131 -4
- package/dist/index.es259.js +27 -8
- package/dist/index.es260.js +4 -13
- package/dist/index.es261.js +26 -13
- package/dist/index.es262.js +7 -134
- package/dist/index.es263.js +11 -31
- package/dist/index.es264.js +26 -460
- package/dist/index.es265.js +47 -130
- package/dist/index.es266.js +31 -27
- package/dist/index.es267.js +43 -4
- package/dist/index.es268.js +158 -26
- package/dist/index.es269.js +32 -6
- package/dist/index.es27.js +1 -1
- package/dist/index.es270.js +2 -12
- package/dist/index.es271.js +77 -26
- package/dist/index.es272.js +18 -48
- package/dist/index.es273.js +2 -31
- package/dist/index.es274.js +397 -43
- package/dist/index.es275.js +715 -151
- package/dist/index.es276.js +278 -29
- package/dist/index.es277.js +61 -2
- package/dist/index.es278.js +8 -78
- package/dist/index.es279.js +28 -18
- package/dist/index.es28.js +3 -3
- package/dist/index.es280.js +199 -25
- package/dist/index.es281.js +15 -16
- package/dist/index.es282.js +3 -8
- package/dist/index.es283.js +16 -4
- package/dist/index.es284.js +8 -14
- package/dist/index.es285.js +4 -15
- package/dist/index.es286.js +14 -15
- package/dist/index.es287.js +15 -3
- package/dist/index.es29.js +6 -6
- package/dist/index.es31.js +2 -2
- package/dist/index.es32.js +2 -2
- package/dist/index.es322.js +3 -3
- package/dist/index.es323.js +3 -3
- package/dist/index.es325.js +1 -1
- package/dist/index.es326.js +5 -5
- package/dist/index.es327.js +1 -1
- package/dist/index.es336.js +6 -2
- package/dist/index.es337.js +34 -2
- package/dist/index.es338.js +26 -6
- package/dist/index.es339.js +18 -34
- package/dist/index.es34.js +5 -5
- package/dist/index.es340.js +4 -25
- package/dist/index.es341.js +231 -18
- package/dist/index.es342.js +100 -5
- package/dist/index.es343.js +26 -229
- package/dist/index.es344.js +35 -80
- package/dist/index.es345.js +2 -28
- package/dist/index.es346.js +2 -55
- package/dist/index.es347.js +334 -2
- package/dist/index.es348.js +31 -106
- package/dist/index.es349.js +16 -75
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +29 -35
- package/dist/index.es351.js +3 -64
- package/dist/index.es352.js +107 -34
- package/dist/index.es353.js +71 -60
- package/dist/index.es354.js +34 -111
- package/dist/index.es355.js +60 -90
- package/dist/index.es356.js +32 -41
- package/dist/index.es357.js +66 -3
- package/dist/index.es358.js +113 -3
- package/dist/index.es359.js +94 -3
- package/dist/index.es360.js +43 -3
- package/dist/index.es361.js +2 -2
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es365.js +2 -2
- package/dist/index.es366.js +4 -241
- package/dist/index.es367.js +4 -384
- package/dist/index.es368.js +4 -169
- package/dist/index.es369.js +4 -153
- package/dist/index.es370.js +187 -88
- package/dist/index.es371.js +384 -4
- package/dist/index.es372.js +169 -4
- package/dist/index.es373.js +153 -4
- package/dist/index.es374.js +142 -4
- package/dist/index.es375.js +2 -2
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -334
- package/dist/index.es378.js +2 -31
- package/dist/index.es379.js +2 -17
- package/dist/index.es38.js +51 -46
- package/dist/index.es380.js +2 -29
- package/dist/index.es381.js +2 -2
- package/dist/index.es382.js +1 -1
- package/dist/index.es384.js +1 -1
- package/dist/index.es385.js +1 -1
- package/dist/index.es39.js +2 -2
- package/dist/index.es394.js +68 -5
- package/dist/index.es395.js +31 -3
- package/dist/index.es396.js +16 -24
- package/dist/index.es397.js +141 -110
- package/dist/index.es398.js +113 -15
- package/dist/index.es399.js +5 -6
- package/dist/index.es40.js +3 -3
- package/dist/index.es400.js +3 -2
- package/dist/index.es401.js +23 -7
- package/dist/index.es402.js +108 -325
- package/dist/index.es403.js +15 -49
- package/dist/index.es404.js +518 -3
- package/dist/index.es405.js +113 -505
- package/dist/index.es406.js +120 -121
- package/dist/index.es407.js +5 -125
- package/dist/index.es408.js +2 -68
- package/dist/index.es409.js +8 -31
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +327 -16
- package/dist/index.es411.js +48 -139
- package/dist/index.es412.js +4 -114
- package/dist/index.es416.js +1 -1
- package/dist/index.es418.js +1 -1
- package/dist/index.es419.js +4 -4
- package/dist/index.es42.js +1 -1
- package/dist/index.es437.js +21 -271
- package/dist/index.es438.js +10 -79
- package/dist/index.es439.js +31 -164
- package/dist/index.es44.js +1 -1
- package/dist/index.es440.js +29 -24
- package/dist/index.es441.js +11 -10
- package/dist/index.es442.js +274 -32
- package/dist/index.es443.js +79 -29
- package/dist/index.es444.js +165 -11
- package/dist/index.es448.js +2 -2
- package/dist/index.es45.js +1 -1
- package/dist/index.es454.js +1 -1
- package/dist/index.es455.js +1 -1
- package/dist/index.es461.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es477.js +1 -1
- package/dist/index.es50.js +2 -2
- package/dist/index.es51.js +1 -1
- package/dist/index.es52.js +4 -4
- package/dist/index.es55.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es57.js +2 -2
- package/dist/index.es59.js +2 -2
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es66.js +2 -2
- package/dist/index.es754.js +13 -21
- package/dist/index.es755.js +18 -79
- package/dist/index.es756.js +82 -13
- package/dist/index.es757.js +14 -2
- package/dist/index.es758.js +60 -2
- package/dist/index.es759.js +2 -14
- package/dist/index.es760.js +2 -60
- package/dist/index.es768.js +2 -5
- package/dist/index.es769.js +2 -17
- package/dist/index.es770.js +5 -2
- package/dist/index.es771.js +17 -2
- package/dist/index.es772.js +1 -1
- package/dist/index.es773.js +2 -2
- package/dist/index.es78.js +1 -1
- package/dist/index.es781.js +1 -1
- package/dist/index.es784.js +1 -1
- package/dist/index.es787.js +56 -26
- package/dist/index.es788.js +10 -3
- package/dist/index.es789.js +14 -57
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +3 -6
- package/dist/index.es791.js +28 -15
- package/dist/index.es792.js +3 -7
- package/dist/index.es808.js +1 -1
- package/dist/index.es811.js +5 -5
- package/dist/index.es812.js +2 -2
- package/dist/index.es813.js +1 -1
- package/dist/index.es815.js +2 -2
- package/dist/index.es827.js +64 -15
- package/dist/index.es828.js +11 -7
- package/dist/index.es829.js +38 -61
- package/dist/index.es830.js +54 -7
- package/dist/index.es831.js +16 -40
- package/dist/index.es832.js +17 -57
- package/dist/index.es833.js +7 -20
- package/dist/index.es834.js +1 -1
- package/dist/index.es86.js +55 -33
- package/dist/index.es87.js +53 -44
- package/dist/index.es88.js +89 -29
- package/dist/index.es89.js +37 -30
- package/dist/index.es90.js +24 -9
- package/dist/index.es91.js +30 -55
- package/dist/index.es92.js +31 -53
- package/dist/index.es93.js +46 -90
- package/dist/index.es94.js +29 -36
- package/dist/index.es95.js +29 -23
- package/dist/index.es96.js +9 -30
- package/dist/index.es97.js +12 -259
- package/dist/index.es98.js +1062 -12
- package/dist/index.es99.js +2 -2
- package/package.json +1 -1
package/dist/index.es787.js
CHANGED
|
@@ -1,30 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (r
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { useDragDropManager as p } from "./index.es772.js";
|
|
2
|
+
import { useIsomorphicLayoutEffect as y } from "./index.es792.js";
|
|
3
|
+
import { useAccept as g } from "./index.es809.js";
|
|
4
|
+
import { useDropTarget as m } from "./index.es810.js";
|
|
5
|
+
import { registerTarget as d } from "./index.es805.js";
|
|
6
|
+
function v(r, t) {
|
|
7
|
+
return T(r) || h(r, t) || b(r, t) || _();
|
|
8
|
+
}
|
|
9
|
+
function _() {
|
|
10
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
12
|
+
}
|
|
13
|
+
function b(r, t) {
|
|
14
|
+
if (r) {
|
|
15
|
+
if (typeof r == "string") return c(r, t);
|
|
16
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
17
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
18
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return c(r, t);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function c(r, t) {
|
|
22
|
+
(t == null || t > r.length) && (t = r.length);
|
|
23
|
+
for (var e = 0, n = new Array(t); e < t; e++)
|
|
24
|
+
n[e] = r[e];
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
function h(r, t) {
|
|
28
|
+
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
29
|
+
if (e != null) {
|
|
30
|
+
var n = [], a = !0, o = !1, i, u;
|
|
31
|
+
try {
|
|
32
|
+
for (e = e.call(r); !(a = (i = e.next()).done) && (n.push(i.value), !(t && n.length === t)); a = !0)
|
|
33
|
+
;
|
|
34
|
+
} catch (f) {
|
|
35
|
+
o = !0, u = f;
|
|
36
|
+
} finally {
|
|
37
|
+
try {
|
|
38
|
+
!a && e.return != null && e.return();
|
|
39
|
+
} finally {
|
|
40
|
+
if (o) throw u;
|
|
41
|
+
}
|
|
22
42
|
}
|
|
23
|
-
return
|
|
43
|
+
return n;
|
|
24
44
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
45
|
+
}
|
|
46
|
+
function T(r) {
|
|
47
|
+
if (Array.isArray(r)) return r;
|
|
48
|
+
}
|
|
49
|
+
function w(r, t, e) {
|
|
50
|
+
var n = p(), a = m(r, t), o = g(r);
|
|
51
|
+
y(function() {
|
|
52
|
+
var u = d(o, a, n), f = v(u, 2), l = f[0], s = f[1];
|
|
53
|
+
return t.receiveHandlerId(l), e.receiveHandlerId(l), s;
|
|
54
|
+
}, [n, t, a, e, o.map(function(i) {
|
|
55
|
+
return i.toString();
|
|
56
|
+
}).join("|")]);
|
|
57
|
+
}
|
|
28
58
|
export {
|
|
29
|
-
|
|
59
|
+
w as useRegisteredDropTarget
|
|
30
60
|
};
|
package/dist/index.es788.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { useMemo as o } from "react";
|
|
2
|
+
import { useDragDropManager as e } from "./index.es772.js";
|
|
3
|
+
import { DropTargetMonitorImpl as t } from "./index.es800.js";
|
|
4
|
+
function p() {
|
|
5
|
+
var r = e();
|
|
6
|
+
return o(function() {
|
|
7
|
+
return new t(r);
|
|
8
|
+
}, [r]);
|
|
9
|
+
}
|
|
3
10
|
export {
|
|
4
|
-
|
|
11
|
+
p as useDropTargetMonitor
|
|
5
12
|
};
|
package/dist/index.es789.js
CHANGED
|
@@ -1,60 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (r) {
|
|
15
|
-
if (typeof r == "string") return c(r, t);
|
|
16
|
-
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
17
|
-
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
18
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return c(r, t);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function c(r, t) {
|
|
22
|
-
(t == null || t > r.length) && (t = r.length);
|
|
23
|
-
for (var e = 0, n = new Array(t); e < t; e++)
|
|
24
|
-
n[e] = r[e];
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
function h(r, t) {
|
|
28
|
-
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
29
|
-
if (e != null) {
|
|
30
|
-
var n = [], a = !0, o = !1, i, u;
|
|
31
|
-
try {
|
|
32
|
-
for (e = e.call(r); !(a = (i = e.next()).done) && (n.push(i.value), !(t && n.length === t)); a = !0)
|
|
33
|
-
;
|
|
34
|
-
} catch (f) {
|
|
35
|
-
o = !0, u = f;
|
|
36
|
-
} finally {
|
|
37
|
-
try {
|
|
38
|
-
!a && e.return != null && e.return();
|
|
39
|
-
} finally {
|
|
40
|
-
if (o) throw u;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return n;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function T(r) {
|
|
47
|
-
if (Array.isArray(r)) return r;
|
|
48
|
-
}
|
|
49
|
-
function w(r, t, e) {
|
|
50
|
-
var n = p(), a = m(r, t), o = g(r);
|
|
51
|
-
y(function() {
|
|
52
|
-
var u = d(o, a, n), f = v(u, 2), l = f[0], s = f[1];
|
|
53
|
-
return t.receiveHandlerId(l), e.receiveHandlerId(l), s;
|
|
54
|
-
}, [n, t, a, e, o.map(function(i) {
|
|
55
|
-
return i.toString();
|
|
56
|
-
}).join("|")]);
|
|
1
|
+
import { useMemo as e } from "react";
|
|
2
|
+
import { useDragDropManager as t } from "./index.es772.js";
|
|
3
|
+
import { useIsomorphicLayoutEffect as c } from "./index.es792.js";
|
|
4
|
+
import { TargetConnector as u } from "./index.es804.js";
|
|
5
|
+
function p(o) {
|
|
6
|
+
var n = t(), r = e(function() {
|
|
7
|
+
return new u(n.getBackend());
|
|
8
|
+
}, [n]);
|
|
9
|
+
return c(function() {
|
|
10
|
+
return r.dropTargetOptions = o || null, r.reconnect(), function() {
|
|
11
|
+
return r.disconnectDropTarget();
|
|
12
|
+
};
|
|
13
|
+
}, [o]), r;
|
|
57
14
|
}
|
|
58
15
|
export {
|
|
59
|
-
|
|
16
|
+
p as useDropTargetConnector
|
|
60
17
|
};
|
package/dist/index.es79.js
CHANGED
package/dist/index.es790.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { useMemo as o } from "react";
|
|
2
|
-
|
|
3
|
-
import { DropTargetMonitorImpl as t } from "./index.es800.js";
|
|
4
|
-
function p() {
|
|
5
|
-
var r = e();
|
|
2
|
+
function t(r) {
|
|
6
3
|
return o(function() {
|
|
7
|
-
return
|
|
4
|
+
return r.hooks.dropTarget();
|
|
8
5
|
}, [r]);
|
|
9
6
|
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
t as useConnectDropTarget
|
|
12
9
|
};
|
package/dist/index.es791.js
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as c } from "./index.es143.js";
|
|
2
|
+
var s = function u(r, t) {
|
|
3
|
+
if (r === t) return !0;
|
|
4
|
+
if (r && t && typeof r == "object" && typeof t == "object") {
|
|
5
|
+
if (r.constructor !== t.constructor) return !1;
|
|
6
|
+
var f, e, o;
|
|
7
|
+
if (Array.isArray(r)) {
|
|
8
|
+
if (f = r.length, f != t.length) return !1;
|
|
9
|
+
for (e = f; e-- !== 0; )
|
|
10
|
+
if (!u(r[e], t[e])) return !1;
|
|
11
|
+
return !0;
|
|
12
|
+
}
|
|
13
|
+
if (r.constructor === RegExp) return r.source === t.source && r.flags === t.flags;
|
|
14
|
+
if (r.valueOf !== Object.prototype.valueOf) return r.valueOf() === t.valueOf();
|
|
15
|
+
if (r.toString !== Object.prototype.toString) return r.toString() === t.toString();
|
|
16
|
+
if (o = Object.keys(r), f = o.length, f !== Object.keys(t).length) return !1;
|
|
17
|
+
for (e = f; e-- !== 0; )
|
|
18
|
+
if (!Object.prototype.hasOwnProperty.call(t, o[e])) return !1;
|
|
19
|
+
for (e = f; e-- !== 0; ) {
|
|
20
|
+
var n = o[e];
|
|
21
|
+
if (!u(r[n], t[n])) return !1;
|
|
22
|
+
}
|
|
23
|
+
return !0;
|
|
24
|
+
}
|
|
25
|
+
return r !== r && t !== t;
|
|
26
|
+
};
|
|
27
|
+
const p = /* @__PURE__ */ c(s);
|
|
15
28
|
export {
|
|
16
|
-
p as
|
|
29
|
+
p as default
|
|
17
30
|
};
|
package/dist/index.es792.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
return o(function() {
|
|
4
|
-
return r.hooks.dropTarget();
|
|
5
|
-
}, [r]);
|
|
6
|
-
}
|
|
1
|
+
import { useLayoutEffect as e, useEffect as f } from "react";
|
|
2
|
+
var t = typeof window < "u" ? e : f;
|
|
7
3
|
export {
|
|
8
|
-
t as
|
|
4
|
+
t as useIsomorphicLayoutEffect
|
|
9
5
|
};
|
package/dist/index.es808.js
CHANGED
package/dist/index.es811.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createBeginDrag as o } from "./index.
|
|
2
|
-
import { createPublishDragSource as e } from "./index.
|
|
3
|
-
import { createHover as t } from "./index.
|
|
4
|
-
import { createDrop as i } from "./index.
|
|
5
|
-
import { createEndDrag as c } from "./index.
|
|
1
|
+
import { createBeginDrag as o } from "./index.es827.js";
|
|
2
|
+
import { createPublishDragSource as e } from "./index.es828.js";
|
|
3
|
+
import { createHover as t } from "./index.es829.js";
|
|
4
|
+
import { createDrop as i } from "./index.es830.js";
|
|
5
|
+
import { createEndDrag as c } from "./index.es831.js";
|
|
6
6
|
function a(r) {
|
|
7
7
|
return {
|
|
8
8
|
beginDrag: o(r),
|
package/dist/index.es812.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { areCoordsEqual as c } from "./index.
|
|
2
|
-
import { DROP as u, END_DRAG as s, HOVER as O, BEGIN_DRAG as o, INIT_COORDS as p } from "./index.
|
|
1
|
+
import { areCoordsEqual as c } from "./index.es832.js";
|
|
2
|
+
import { DROP as u, END_DRAG as s, HOVER as O, BEGIN_DRAG as o, INIT_COORDS as p } from "./index.es833.js";
|
|
3
3
|
function i(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
package/dist/index.es813.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REMOVE_TARGET as a } from "./index.es821.js";
|
|
2
2
|
import { without as s } from "./index.es817.js";
|
|
3
|
-
import { END_DRAG as o, DROP as c, HOVER as d, PUBLISH_DRAG_SOURCE as p, BEGIN_DRAG as f } from "./index.
|
|
3
|
+
import { END_DRAG as o, DROP as c, HOVER as d, PUBLISH_DRAG_SOURCE as p, BEGIN_DRAG as f } from "./index.es833.js";
|
|
4
4
|
function i(e, t) {
|
|
5
5
|
var r = Object.keys(e);
|
|
6
6
|
if (Object.getOwnPropertySymbols) {
|
package/dist/index.es815.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { REMOVE_SOURCE as g, REMOVE_TARGET as m, ADD_TARGET as u, ADD_SOURCE as E } from "./index.es821.js";
|
|
2
|
-
import { areArraysEqual as f } from "./index.
|
|
2
|
+
import { areArraysEqual as f } from "./index.es832.js";
|
|
3
3
|
import { ALL as v, NONE as p } from "./index.es820.js";
|
|
4
4
|
import { xor as R } from "./index.es817.js";
|
|
5
|
-
import { DROP as l, END_DRAG as _, PUBLISH_DRAG_SOURCE as A, BEGIN_DRAG as D, HOVER as I } from "./index.
|
|
5
|
+
import { DROP as l, END_DRAG as _, PUBLISH_DRAG_SOURCE as A, BEGIN_DRAG as D, HOVER as I } from "./index.es833.js";
|
|
6
6
|
function $() {
|
|
7
7
|
var n = arguments.length > 1 ? arguments[1] : void 0;
|
|
8
8
|
switch (n.type) {
|
package/dist/index.es827.js
CHANGED
|
@@ -1,20 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { invariant as f } from "./index.es774.js";
|
|
2
|
+
import { setClientOffset as p } from "./index.es834.js";
|
|
3
|
+
import { isObject as O } from "./index.es817.js";
|
|
4
|
+
import { INIT_COORDS as b, BEGIN_DRAG as S } from "./index.es833.js";
|
|
5
|
+
var h = {
|
|
6
|
+
type: b,
|
|
7
|
+
payload: {
|
|
8
|
+
clientOffset: null,
|
|
9
|
+
sourceClientOffset: null
|
|
10
|
+
}
|
|
3
11
|
};
|
|
4
|
-
function
|
|
5
|
-
return
|
|
12
|
+
function w(e) {
|
|
13
|
+
return function() {
|
|
14
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
15
|
+
publishSource: !0
|
|
16
|
+
}, g = t.publishSource, d = g === void 0 ? !0 : g, o = t.clientOffset, s = t.getSourceClientOffset, c = e.getMonitor(), u = e.getRegistry();
|
|
17
|
+
e.dispatch(p(o)), y(r, c, u);
|
|
18
|
+
var n = D(r, c);
|
|
19
|
+
if (n === null) {
|
|
20
|
+
e.dispatch(h);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
var l = null;
|
|
24
|
+
if (o) {
|
|
25
|
+
if (!s)
|
|
26
|
+
throw new Error("getSourceClientOffset must be defined");
|
|
27
|
+
C(s), l = s(n);
|
|
28
|
+
}
|
|
29
|
+
e.dispatch(p(o, l));
|
|
30
|
+
var m = u.getSource(n), a = m.beginDrag(c, n);
|
|
31
|
+
if (a != null) {
|
|
32
|
+
I(a), u.pinSource(n);
|
|
33
|
+
var v = u.getSourceType(n);
|
|
34
|
+
return {
|
|
35
|
+
type: S,
|
|
36
|
+
payload: {
|
|
37
|
+
itemType: v,
|
|
38
|
+
item: a,
|
|
39
|
+
sourceId: n,
|
|
40
|
+
clientOffset: o || null,
|
|
41
|
+
sourceClientOffset: l || null,
|
|
42
|
+
isSourcePublic: !!d
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
};
|
|
6
47
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
48
|
+
function y(e, i, r) {
|
|
49
|
+
f(!i.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(t) {
|
|
50
|
+
f(r.getSource(t), "Expected sourceIds to be registered.");
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function C(e) {
|
|
54
|
+
f(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
55
|
+
}
|
|
56
|
+
function I(e) {
|
|
57
|
+
f(O(e), "Item must be an object.");
|
|
58
|
+
}
|
|
59
|
+
function D(e, i) {
|
|
60
|
+
for (var r = null, t = e.length - 1; t >= 0; t--)
|
|
61
|
+
if (i.canDragSource(e[t])) {
|
|
62
|
+
r = e[t];
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return r;
|
|
15
66
|
}
|
|
16
67
|
export {
|
|
17
|
-
|
|
18
|
-
a as areCoordsEqual,
|
|
19
|
-
t as strictEquality
|
|
68
|
+
w as createBeginDrag
|
|
20
69
|
};
|
package/dist/index.es828.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { PUBLISH_DRAG_SOURCE as t } from "./index.es833.js";
|
|
2
|
+
function n(r) {
|
|
3
|
+
return function() {
|
|
4
|
+
var o = r.getMonitor();
|
|
5
|
+
if (o.isDragging())
|
|
6
|
+
return {
|
|
7
|
+
type: t
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|
|
2
11
|
export {
|
|
3
|
-
|
|
4
|
-
O as DROP,
|
|
5
|
-
_ as END_DRAG,
|
|
6
|
-
D as HOVER,
|
|
7
|
-
R as INIT_COORDS,
|
|
8
|
-
d as PUBLISH_DRAG_SOURCE
|
|
12
|
+
n as createPublishDragSource
|
|
9
13
|
};
|
package/dist/index.es829.js
CHANGED
|
@@ -1,69 +1,46 @@
|
|
|
1
|
-
import { invariant as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var n = D(r, c);
|
|
19
|
-
if (n === null) {
|
|
20
|
-
e.dispatch(h);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
var l = null;
|
|
24
|
-
if (o) {
|
|
25
|
-
if (!s)
|
|
26
|
-
throw new Error("getSourceClientOffset must be defined");
|
|
27
|
-
C(s), l = s(n);
|
|
28
|
-
}
|
|
29
|
-
e.dispatch(p(o, l));
|
|
30
|
-
var m = u.getSource(n), a = m.beginDrag(c, n);
|
|
31
|
-
if (a != null) {
|
|
32
|
-
I(a), u.pinSource(n);
|
|
33
|
-
var v = u.getSourceType(n);
|
|
34
|
-
return {
|
|
35
|
-
type: S,
|
|
36
|
-
payload: {
|
|
37
|
-
itemType: v,
|
|
38
|
-
item: a,
|
|
39
|
-
sourceId: n,
|
|
40
|
-
clientOffset: o || null,
|
|
41
|
-
sourceClientOffset: l || null,
|
|
42
|
-
isSourcePublic: !!d
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
1
|
+
import { invariant as i } from "./index.es774.js";
|
|
2
|
+
import { matchesType as s } from "./index.es818.js";
|
|
3
|
+
import { HOVER as v } from "./index.es833.js";
|
|
4
|
+
function T(e) {
|
|
5
|
+
return function(t) {
|
|
6
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = r.clientOffset;
|
|
7
|
+
l(t);
|
|
8
|
+
var n = t.slice(0), g = e.getMonitor(), f = e.getRegistry();
|
|
9
|
+
p(n, g, f);
|
|
10
|
+
var c = g.getItemType();
|
|
11
|
+
return u(n, f, c), d(n, g, f), {
|
|
12
|
+
type: v,
|
|
13
|
+
payload: {
|
|
14
|
+
targetIds: n,
|
|
15
|
+
clientOffset: a || null
|
|
16
|
+
}
|
|
17
|
+
};
|
|
46
18
|
};
|
|
47
19
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
f(r.getSource(t), "Expected sourceIds to be registered.");
|
|
51
|
-
});
|
|
20
|
+
function l(e) {
|
|
21
|
+
i(Array.isArray(e), "Expected targetIds to be an array.");
|
|
52
22
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
23
|
+
function p(e, o, t) {
|
|
24
|
+
i(o.isDragging(), "Cannot call hover while not dragging."), i(!o.didDrop(), "Cannot call hover after drop.");
|
|
25
|
+
for (var r = 0; r < e.length; r++) {
|
|
26
|
+
var a = e[r];
|
|
27
|
+
i(e.lastIndexOf(a) === r, "Expected targetIds to be unique in the passed array.");
|
|
28
|
+
var n = t.getTarget(a);
|
|
29
|
+
i(n, "Expected targetIds to be registered.");
|
|
30
|
+
}
|
|
55
31
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
32
|
+
function u(e, o, t) {
|
|
33
|
+
for (var r = e.length - 1; r >= 0; r--) {
|
|
34
|
+
var a = e[r], n = o.getTargetType(a);
|
|
35
|
+
s(n, t) || e.splice(r, 1);
|
|
36
|
+
}
|
|
58
37
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
return r;
|
|
38
|
+
function d(e, o, t) {
|
|
39
|
+
e.forEach(function(r) {
|
|
40
|
+
var a = t.getTarget(r);
|
|
41
|
+
a.hover(o, r);
|
|
42
|
+
});
|
|
66
43
|
}
|
|
67
44
|
export {
|
|
68
|
-
|
|
45
|
+
T as createHover
|
|
69
46
|
};
|
package/dist/index.es830.js
CHANGED
|
@@ -1,13 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { invariant as a } from "./index.es774.js";
|
|
2
|
+
import { DROP as d } from "./index.es833.js";
|
|
3
|
+
import { isObject as l } from "./index.es817.js";
|
|
4
|
+
function p(e, r) {
|
|
5
|
+
var t = Object.keys(e);
|
|
6
|
+
if (Object.getOwnPropertySymbols) {
|
|
7
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
8
|
+
r && (n = n.filter(function(i) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
10
|
+
})), t.push.apply(t, n);
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function u(e) {
|
|
15
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
16
|
+
var t = arguments[r] != null ? arguments[r] : {};
|
|
17
|
+
r % 2 ? p(Object(t), !0).forEach(function(n) {
|
|
18
|
+
O(e, n, t[n]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : p(Object(t)).forEach(function(n) {
|
|
20
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function O(e, r, t) {
|
|
26
|
+
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
27
|
+
}
|
|
28
|
+
function w(e) {
|
|
3
29
|
return function() {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
30
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.getMonitor(), i = e.getRegistry();
|
|
31
|
+
v(n);
|
|
32
|
+
var o = D(n);
|
|
33
|
+
o.forEach(function(f, c) {
|
|
34
|
+
var s = y(f, c, i, n), g = {
|
|
35
|
+
type: d,
|
|
36
|
+
payload: {
|
|
37
|
+
dropResult: u(u({}, t), s)
|
|
38
|
+
}
|
|
8
39
|
};
|
|
40
|
+
e.dispatch(g);
|
|
41
|
+
});
|
|
9
42
|
};
|
|
10
43
|
}
|
|
44
|
+
function v(e) {
|
|
45
|
+
a(e.isDragging(), "Cannot call drop while not dragging."), a(!e.didDrop(), "Cannot call drop twice during one drag operation.");
|
|
46
|
+
}
|
|
47
|
+
function y(e, r, t, n) {
|
|
48
|
+
var i = t.getTarget(e), o = i ? i.drop(n, e) : void 0;
|
|
49
|
+
return b(o), typeof o > "u" && (o = r === 0 ? {} : n.getDropResult()), o;
|
|
50
|
+
}
|
|
51
|
+
function b(e) {
|
|
52
|
+
a(typeof e > "u" || l(e), "Drop result must either be an object or undefined.");
|
|
53
|
+
}
|
|
54
|
+
function D(e) {
|
|
55
|
+
var r = e.getTargetIds().filter(e.canDropOnTarget, e);
|
|
56
|
+
return r.reverse(), r;
|
|
57
|
+
}
|
|
11
58
|
export {
|
|
12
|
-
|
|
59
|
+
w as createDrop
|
|
13
60
|
};
|