@boxcustodia/library 0.2.0 → 0.2.2

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.
Files changed (373) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +4 -14
  4. package/dist/index.es101.js +14 -5
  5. package/dist/index.es102.js +4 -56
  6. package/dist/index.es103.js +55 -257
  7. package/dist/index.es104.js +3 -6
  8. package/dist/index.es108.js +11 -21
  9. package/dist/index.es109.js +21 -12
  10. package/dist/index.es110.js +5 -4
  11. package/dist/index.es111.js +4 -4
  12. package/dist/index.es112.js +4 -5
  13. package/dist/index.es113.js +12 -240
  14. package/dist/index.es114.js +224 -11
  15. package/dist/index.es115.js +11 -224
  16. package/dist/index.es116.js +41 -11
  17. package/dist/index.es117.js +821 -40
  18. package/dist/index.es118.js +9 -64
  19. package/dist/index.es119.js +11 -822
  20. package/dist/index.es120.js +64 -9
  21. package/dist/index.es121.js +240 -11
  22. package/dist/index.es124.js +1 -1
  23. package/dist/index.es125.js +1 -1
  24. package/dist/index.es126.js +5 -5
  25. package/dist/index.es13.js +1 -1
  26. package/dist/index.es131.js +13 -11
  27. package/dist/index.es132.js +196 -11
  28. package/dist/index.es133.js +41 -204
  29. package/dist/index.es134.js +12 -10
  30. package/dist/index.es135.js +11 -20
  31. package/dist/index.es136.js +205 -37
  32. package/dist/index.es137.js +10 -10
  33. package/dist/index.es138.js +20 -14
  34. package/dist/index.es139.js +34 -194
  35. package/dist/index.es14.js +1 -1
  36. package/dist/index.es140.js +9 -40
  37. package/dist/index.es141.js +6 -5
  38. package/dist/index.es142.js +65 -2
  39. package/dist/index.es143.js +10 -6
  40. package/dist/index.es144.js +118 -58
  41. package/dist/index.es145.js +134 -10
  42. package/dist/index.es146.js +13 -124
  43. package/dist/index.es147.js +31 -133
  44. package/dist/index.es148.js +14 -13
  45. package/dist/index.es149.js +9 -33
  46. package/dist/index.es150.js +50 -15
  47. package/dist/index.es151.js +6 -9
  48. package/dist/index.es152.js +2 -50
  49. package/dist/index.es153.js +1 -1
  50. package/dist/index.es154.js +625 -193
  51. package/dist/index.es156.js +193 -625
  52. package/dist/index.es158.js +3 -3
  53. package/dist/index.es161.js +1 -1
  54. package/dist/index.es162.js +3 -3
  55. package/dist/index.es164.js +5 -5
  56. package/dist/index.es165.js +2 -2
  57. package/dist/index.es166.js +6 -6
  58. package/dist/index.es173.js +1 -1
  59. package/dist/index.es174.js +1 -1
  60. package/dist/index.es175.js +3 -3
  61. package/dist/index.es176.js +2 -2
  62. package/dist/index.es177.js +1 -1
  63. package/dist/index.es178.js +1 -1
  64. package/dist/index.es182.js +21 -8
  65. package/dist/index.es183.js +9 -6
  66. package/dist/index.es184.js +38 -5
  67. package/dist/index.es185.js +18 -18
  68. package/dist/index.es186.js +7 -5
  69. package/dist/index.es187.js +5 -5
  70. package/dist/index.es188.js +4 -8
  71. package/dist/index.es189.js +18 -6
  72. package/dist/index.es190.js +5 -6
  73. package/dist/index.es191.js +5 -15
  74. package/dist/index.es192.js +8 -13
  75. package/dist/index.es193.js +6 -14
  76. package/dist/index.es194.js +6 -6
  77. package/dist/index.es195.js +15 -6
  78. package/dist/index.es196.js +13 -6
  79. package/dist/index.es197.js +13 -4
  80. package/dist/index.es198.js +6 -515
  81. package/dist/index.es199.js +7 -50
  82. package/dist/index.es200.js +6 -17
  83. package/dist/index.es201.js +4 -9
  84. package/dist/index.es202.js +513 -16
  85. package/dist/index.es203.js +50 -9
  86. package/dist/index.es204.js +17 -7
  87. package/dist/index.es205.js +9 -7
  88. package/dist/index.es206.js +19 -6
  89. package/dist/index.es207.js +8 -6
  90. package/dist/index.es208.js +7 -9
  91. package/dist/index.es209.js +7 -5
  92. package/dist/index.es210.js +5 -8
  93. package/dist/index.es211.js +6 -12
  94. package/dist/index.es212.js +9 -9
  95. package/dist/index.es213.js +5 -8
  96. package/dist/index.es214.js +8 -10
  97. package/dist/index.es215.js +12 -14
  98. package/dist/index.es216.js +9 -6
  99. package/dist/index.es217.js +8 -6
  100. package/dist/index.es218.js +10 -6
  101. package/dist/index.es219.js +14 -6
  102. package/dist/index.es22.js +2 -2
  103. package/dist/index.es220.js +6 -6
  104. package/dist/index.es221.js +6 -9
  105. package/dist/index.es222.js +6 -84
  106. package/dist/index.es223.js +7 -65
  107. package/dist/index.es224.js +6 -37
  108. package/dist/index.es225.js +9 -9
  109. package/dist/index.es226.js +84 -8
  110. package/dist/index.es227.js +65 -8
  111. package/dist/index.es228.js +37 -10
  112. package/dist/index.es229.js +9 -7
  113. package/dist/index.es230.js +8 -7
  114. package/dist/index.es231.js +7 -6
  115. package/dist/index.es232.js +10 -5
  116. package/dist/index.es233.js +7 -15
  117. package/dist/index.es234.js +7 -11
  118. package/dist/index.es235.js +6 -200
  119. package/dist/index.es236.js +6 -22
  120. package/dist/index.es237.js +15 -24
  121. package/dist/index.es238.js +10 -369
  122. package/dist/index.es239.js +176 -19
  123. package/dist/index.es240.js +25 -9
  124. package/dist/index.es241.js +19 -38
  125. package/dist/index.es242.js +53 -17
  126. package/dist/index.es243.js +15 -24
  127. package/dist/index.es244.js +200 -18
  128. package/dist/index.es245.js +19 -51
  129. package/dist/index.es246.js +25 -16
  130. package/dist/index.es247.js +364 -171
  131. package/dist/index.es248.js +26 -2
  132. package/dist/index.es249.js +4 -397
  133. package/dist/index.es250.js +7 -722
  134. package/dist/index.es251.js +13 -282
  135. package/dist/index.es252.js +13 -60
  136. package/dist/index.es253.js +134 -9
  137. package/dist/index.es254.js +31 -28
  138. package/dist/index.es255.js +459 -195
  139. package/dist/index.es256.js +131 -25
  140. package/dist/index.es257.js +27 -5
  141. package/dist/index.es258.js +4 -7
  142. package/dist/index.es259.js +25 -12
  143. package/dist/index.es260.js +7 -13
  144. package/dist/index.es261.js +11 -134
  145. package/dist/index.es262.js +27 -30
  146. package/dist/index.es263.js +46 -460
  147. package/dist/index.es264.js +28 -129
  148. package/dist/index.es265.js +43 -26
  149. package/dist/index.es266.js +158 -4
  150. package/dist/index.es267.js +30 -23
  151. package/dist/index.es268.js +2 -8
  152. package/dist/index.es269.js +77 -9
  153. package/dist/index.es27.js +1 -1
  154. package/dist/index.es270.js +18 -28
  155. package/dist/index.es271.js +2 -49
  156. package/dist/index.es272.js +395 -28
  157. package/dist/index.es273.js +722 -43
  158. package/dist/index.es274.js +281 -157
  159. package/dist/index.es275.js +54 -27
  160. package/dist/index.es276.js +10 -2
  161. package/dist/index.es277.js +28 -79
  162. package/dist/index.es278.js +199 -19
  163. package/dist/index.es279.js +4 -16
  164. package/dist/index.es28.js +1 -1
  165. package/dist/index.es280.js +14 -8
  166. package/dist/index.es281.js +15 -4
  167. package/dist/index.es282.js +16 -14
  168. package/dist/index.es283.js +8 -15
  169. package/dist/index.es29.js +3 -3
  170. package/dist/index.es290.js +2 -2
  171. package/dist/index.es291.js +2 -2
  172. package/dist/index.es297.js +2 -2
  173. package/dist/index.es298.js +2 -2
  174. package/dist/index.es30.js +6 -6
  175. package/dist/index.es301.js +1 -1
  176. package/dist/index.es302.js +1 -1
  177. package/dist/index.es303.js +1 -1
  178. package/dist/index.es304.js +1 -1
  179. package/dist/index.es315.js +2 -2
  180. package/dist/index.es316.js +2 -2
  181. package/dist/index.es317.js +1 -1
  182. package/dist/index.es318.js +1 -1
  183. package/dist/index.es32.js +2 -2
  184. package/dist/index.es322.js +10 -2
  185. package/dist/index.es323.js +5 -2
  186. package/dist/index.es324.js +13 -10
  187. package/dist/index.es325.js +4 -4
  188. package/dist/index.es326.js +7 -13
  189. package/dist/index.es327.js +333 -4
  190. package/dist/index.es328.js +19 -7
  191. package/dist/index.es329.js +3 -333
  192. package/dist/index.es33.js +2 -2
  193. package/dist/index.es330.js +5 -19
  194. package/dist/index.es331.js +3 -4
  195. package/dist/index.es332.js +71 -4
  196. package/dist/index.es333.js +4 -3
  197. package/dist/index.es334.js +6 -72
  198. package/dist/index.es335.js +34 -4
  199. package/dist/index.es336.js +26 -6
  200. package/dist/index.es337.js +18 -34
  201. package/dist/index.es338.js +4 -25
  202. package/dist/index.es339.js +231 -18
  203. package/dist/index.es34.js +6 -6
  204. package/dist/index.es340.js +100 -5
  205. package/dist/index.es341.js +26 -229
  206. package/dist/index.es342.js +35 -80
  207. package/dist/index.es343.js +2 -28
  208. package/dist/index.es344.js +2 -55
  209. package/dist/index.es345.js +334 -2
  210. package/dist/index.es346.js +31 -106
  211. package/dist/index.es347.js +16 -75
  212. package/dist/index.es348.js +29 -35
  213. package/dist/index.es349.js +3 -64
  214. package/dist/index.es35.js +2 -2
  215. package/dist/index.es350.js +107 -34
  216. package/dist/index.es351.js +71 -60
  217. package/dist/index.es352.js +34 -111
  218. package/dist/index.es353.js +60 -90
  219. package/dist/index.es354.js +32 -41
  220. package/dist/index.es355.js +66 -3
  221. package/dist/index.es356.js +113 -3
  222. package/dist/index.es357.js +94 -3
  223. package/dist/index.es358.js +43 -3
  224. package/dist/index.es359.js +2 -2
  225. package/dist/index.es360.js +2 -2
  226. package/dist/index.es361.js +2 -2
  227. package/dist/index.es362.js +2 -2
  228. package/dist/index.es363.js +2 -2
  229. package/dist/index.es364.js +4 -241
  230. package/dist/index.es365.js +4 -384
  231. package/dist/index.es366.js +4 -169
  232. package/dist/index.es367.js +4 -153
  233. package/dist/index.es368.js +187 -88
  234. package/dist/index.es369.js +384 -4
  235. package/dist/index.es370.js +169 -4
  236. package/dist/index.es371.js +153 -4
  237. package/dist/index.es372.js +142 -4
  238. package/dist/index.es373.js +2 -2
  239. package/dist/index.es374.js +2 -2
  240. package/dist/index.es375.js +2 -334
  241. package/dist/index.es376.js +2 -31
  242. package/dist/index.es377.js +2 -17
  243. package/dist/index.es378.js +2 -29
  244. package/dist/index.es379.js +1 -1
  245. package/dist/index.es38.js +2 -2
  246. package/dist/index.es380.js +2 -2
  247. package/dist/index.es382.js +2 -2
  248. package/dist/index.es383.js +2 -2
  249. package/dist/index.es389.js +1 -1
  250. package/dist/index.es390.js +1 -1
  251. package/dist/index.es393.js +1 -1
  252. package/dist/index.es395.js +4 -4
  253. package/dist/index.es397.js +66 -517
  254. package/dist/index.es398.js +30 -126
  255. package/dist/index.es399.js +16 -126
  256. package/dist/index.es400.js +135 -62
  257. package/dist/index.es401.js +108 -25
  258. package/dist/index.es402.js +6 -16
  259. package/dist/index.es403.js +2 -141
  260. package/dist/index.es404.js +8 -114
  261. package/dist/index.es405.js +326 -5
  262. package/dist/index.es406.js +50 -2
  263. package/dist/index.es407.js +3 -7
  264. package/dist/index.es408.js +497 -305
  265. package/dist/index.es409.js +125 -48
  266. package/dist/index.es41.js +1 -1
  267. package/dist/index.es410.js +125 -3
  268. package/dist/index.es411.js +1 -1
  269. package/dist/index.es412.js +6 -6
  270. package/dist/index.es416.js +1 -1
  271. package/dist/index.es417.js +5 -5
  272. package/dist/index.es420.js +2 -2
  273. package/dist/index.es43.js +1 -1
  274. package/dist/index.es435.js +21 -271
  275. package/dist/index.es436.js +10 -79
  276. package/dist/index.es437.js +31 -164
  277. package/dist/index.es438.js +29 -24
  278. package/dist/index.es439.js +11 -10
  279. package/dist/index.es44.js +4 -4
  280. package/dist/index.es440.js +2 -33
  281. package/dist/index.es441.js +2 -30
  282. package/dist/index.es442.js +274 -11
  283. package/dist/index.es443.js +80 -3
  284. package/dist/index.es444.js +163 -104
  285. package/dist/index.es445.js +3 -2
  286. package/dist/index.es446.js +107 -2
  287. package/dist/index.es45.js +1 -1
  288. package/dist/index.es451.js +65 -69
  289. package/dist/index.es452.js +68 -8
  290. package/dist/index.es453.js +9 -14
  291. package/dist/index.es454.js +14 -60
  292. package/dist/index.es455.js +59 -64
  293. package/dist/index.es46.js +5 -5
  294. package/dist/index.es465.js +44 -7
  295. package/dist/index.es466.js +63 -2
  296. package/dist/index.es467.js +17 -41
  297. package/dist/index.es468.js +5 -63
  298. package/dist/index.es469.js +41 -17
  299. package/dist/index.es47.js +1 -1
  300. package/dist/index.es470.js +5 -5
  301. package/dist/index.es471.js +7 -44
  302. package/dist/index.es472.js +2 -5
  303. package/dist/index.es474.js +1 -1
  304. package/dist/index.es475.js +1 -1
  305. package/dist/index.es49.js +2 -2
  306. package/dist/index.es50.js +1 -1
  307. package/dist/index.es51.js +4 -4
  308. package/dist/index.es54.js +1 -1
  309. package/dist/index.es55.js +48 -55
  310. package/dist/index.es56.js +22 -22
  311. package/dist/index.es57.js +3 -3
  312. package/dist/index.es59.js +1 -1
  313. package/dist/index.es62.js +1 -1
  314. package/dist/index.es63.js +1 -1
  315. package/dist/index.es65.js +2 -2
  316. package/dist/index.es66.js +3 -3
  317. package/dist/index.es67.js +2 -2
  318. package/dist/index.es69.js +1 -1
  319. package/dist/index.es7.js +1 -1
  320. package/dist/index.es752.js +13 -21
  321. package/dist/index.es753.js +18 -79
  322. package/dist/index.es754.js +82 -13
  323. package/dist/index.es766.js +2 -24
  324. package/dist/index.es767.js +2 -8
  325. package/dist/index.es768.js +21 -64
  326. package/dist/index.es769.js +8 -52
  327. package/dist/index.es770.js +56 -60
  328. package/dist/index.es771.js +52 -2
  329. package/dist/index.es772.js +71 -2
  330. package/dist/index.es777.js +56 -20
  331. package/dist/index.es778.js +26 -49
  332. package/dist/index.es779.js +9 -34
  333. package/dist/index.es780.js +18 -9
  334. package/dist/index.es781.js +8 -18
  335. package/dist/index.es782.js +12 -8
  336. package/dist/index.es783.js +56 -11
  337. package/dist/index.es784.js +9 -57
  338. package/dist/index.es785.js +14 -9
  339. package/dist/index.es786.js +6 -14
  340. package/dist/index.es787.js +21 -6
  341. package/dist/index.es788.js +1 -1
  342. package/dist/index.es799.js +1 -1
  343. package/dist/index.es802.js +1 -1
  344. package/dist/index.es809.js +5 -5
  345. package/dist/index.es810.js +2 -2
  346. package/dist/index.es811.js +1 -1
  347. package/dist/index.es813.js +2 -2
  348. package/dist/index.es825.js +15 -64
  349. package/dist/index.es826.js +7 -11
  350. package/dist/index.es827.js +61 -38
  351. package/dist/index.es828.js +7 -54
  352. package/dist/index.es829.js +40 -16
  353. package/dist/index.es83.js +305 -31
  354. package/dist/index.es830.js +57 -17
  355. package/dist/index.es831.js +20 -7
  356. package/dist/index.es832.js +1 -1
  357. package/dist/index.es84.js +12 -35
  358. package/dist/index.es85.js +33 -46
  359. package/dist/index.es86.js +34 -29
  360. package/dist/index.es87.js +42 -26
  361. package/dist/index.es88.js +30 -55
  362. package/dist/index.es89.js +28 -53
  363. package/dist/index.es90.js +55 -90
  364. package/dist/index.es91.js +55 -37
  365. package/dist/index.es92.js +88 -22
  366. package/dist/index.es93.js +36 -29
  367. package/dist/index.es94.js +22 -305
  368. package/dist/index.es95.js +30 -12
  369. package/dist/index.es96.js +259 -9
  370. package/dist/index.es97.js +5 -5
  371. package/dist/index.es98.js +10 -3672
  372. package/dist/index.es99.js +3673 -3
  373. package/package.json +1 -1
@@ -1,102 +1,57 @@
1
- import { j as m } from "./index.es82.js";
2
- import { memo as s, useEffect as v } from "react";
3
- import { DndContext as y } from "./index.es761.js";
4
- import { createDragDropManager as b } from "./index.es762.js";
5
- var _ = ["children"];
6
- function h(t, r) {
7
- return A(t) || j(t, r) || x(t, r) || p();
1
+ import { useEffect as l } from "react";
2
+ import { useDragDropManager as s } from "./index.es763.js";
3
+ import { useCollector as y } from "./index.es764.js";
4
+ function p(r, e) {
5
+ return g(r) || d(r, e) || m(r, e) || b();
8
6
  }
9
- function p() {
7
+ function b() {
10
8
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
12
10
  }
13
- function x(t, r) {
14
- if (t) {
15
- if (typeof t == "string") return c(t, r);
16
- var e = Object.prototype.toString.call(t).slice(8, -1);
17
- if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
18
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return c(t, r);
11
+ function m(r, e) {
12
+ if (r) {
13
+ if (typeof r == "string") return f(r, e);
14
+ var t = Object.prototype.toString.call(r).slice(8, -1);
15
+ if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
16
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return f(r, e);
19
17
  }
20
18
  }
21
- function c(t, r) {
22
- (r == null || r > t.length) && (r = t.length);
23
- for (var e = 0, n = new Array(r); e < r; e++)
24
- n[e] = t[e];
19
+ function f(r, e) {
20
+ (e == null || e > r.length) && (e = r.length);
21
+ for (var t = 0, n = new Array(e); t < e; t++)
22
+ n[t] = r[t];
25
23
  return n;
26
24
  }
27
- function j(t, r) {
28
- var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
29
- if (e != null) {
30
- var n = [], a = !0, o = !1, i, u;
25
+ function d(r, e) {
26
+ var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
27
+ if (t != null) {
28
+ var n = [], o = !0, u = !1, a, i;
31
29
  try {
32
- for (e = e.call(t); !(a = (i = e.next()).done) && (n.push(i.value), !(r && n.length === r)); a = !0)
30
+ for (t = t.call(r); !(o = (a = t.next()).done) && (n.push(a.value), !(e && n.length === e)); o = !0)
33
31
  ;
34
- } catch (f) {
35
- o = !0, u = f;
32
+ } catch (c) {
33
+ u = !0, i = c;
36
34
  } finally {
37
35
  try {
38
- !a && e.return != null && e.return();
36
+ !o && t.return != null && t.return();
39
37
  } finally {
40
- if (o) throw u;
38
+ if (u) throw i;
41
39
  }
42
40
  }
43
41
  return n;
44
42
  }
45
43
  }
46
- function A(t) {
47
- if (Array.isArray(t)) return t;
44
+ function g(r) {
45
+ if (Array.isArray(r)) return r;
48
46
  }
49
- function D(t, r) {
50
- if (t == null) return {};
51
- var e = C(t, r), n, a;
52
- if (Object.getOwnPropertySymbols) {
53
- var o = Object.getOwnPropertySymbols(t);
54
- for (a = 0; a < o.length; a++)
55
- n = o[a], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (e[n] = t[n]);
56
- }
57
- return e;
58
- }
59
- function C(t, r) {
60
- if (t == null) return {};
61
- var e = {}, n = Object.keys(t), a, o;
62
- for (o = 0; o < n.length; o++)
63
- a = n[o], !(r.indexOf(a) >= 0) && (e[a] = t[a]);
64
- return e;
65
- }
66
- var d = 0, l = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"), M = s(function(r) {
67
- var e = r.children, n = D(r, _), a = O(n), o = h(a, 2), i = o[0], u = o[1];
68
- return v(function() {
69
- if (u) {
70
- var f = g();
71
- return ++d, function() {
72
- --d === 0 && (f[l] = null);
73
- };
74
- }
75
- }, []), m.jsx(y.Provider, Object.assign({
76
- value: i
77
- }, {
78
- children: e
79
- }), void 0);
80
- });
81
- function O(t) {
82
- if ("manager" in t) {
83
- var r = {
84
- dragDropManager: t.manager
85
- };
86
- return [r, !1];
87
- }
88
- var e = S(t.backend, t.context, t.options, t.debugMode), n = !t.context;
89
- return [e, n];
90
- }
91
- function S(t) {
92
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g(), e = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0, a = r;
93
- return a[l] || (a[l] = {
94
- dragDropManager: b(t, r, e, n)
95
- }), a[l];
96
- }
97
- function g() {
98
- return typeof global < "u" ? global : window;
47
+ function A(r) {
48
+ var e = s(), t = e.getMonitor(), n = y(t, r), o = p(n, 2), u = o[0], a = o[1];
49
+ return l(function() {
50
+ return t.subscribeToOffsetChange(a);
51
+ }), l(function() {
52
+ return t.subscribeToStateChange(a);
53
+ }), u;
99
54
  }
100
55
  export {
101
- M as DndProvider
56
+ A as useDragLayer
102
57
  };
@@ -1,30 +1,4 @@
1
- import { useTreeApi as l } from "./index.es337.js";
2
- import { computeDrop as p } from "./index.es411.js";
3
- import { actions as u } from "./index.es272.js";
4
- import { useDrop as f } from "./index.es412.js";
5
- function h() {
6
- const e = l(), [, n] = f(() => ({
7
- accept: "NODE",
8
- canDrop: (s, r) => r.isOver({ shallow: !0 }) ? e.canDrop() : !1,
9
- hover: (s, r) => {
10
- if (!r.isOver({ shallow: !0 }))
11
- return;
12
- const o = r.getClientOffset();
13
- if (!e.listEl.current || !o)
14
- return;
15
- const { cursor: i, drop: t } = p({
16
- element: e.listEl.current,
17
- offset: o,
18
- indent: e.indent,
19
- node: null,
20
- prevNode: e.visibleNodes[e.visibleNodes.length - 1],
21
- nextNode: null
22
- });
23
- t && e.dispatch(u.hovering(t.parentId, t.index)), r.canDrop() ? i && e.showCursor(i) : e.hideCursor();
24
- }
25
- }), [e]);
26
- n(e.listEl);
27
- }
1
+ var t = {};
28
2
  export {
29
- h as useOuterDrop
3
+ t as __exports
30
4
  };
@@ -1,57 +1,4 @@
1
- import { useEffect as l } from "react";
2
- import { useDragDropManager as s } from "./index.es763.js";
3
- import { useCollector as y } from "./index.es764.js";
4
- function p(r, e) {
5
- return g(r) || d(r, e) || m(r, e) || b();
6
- }
7
- function b() {
8
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
10
- }
11
- function m(r, e) {
12
- if (r) {
13
- if (typeof r == "string") return f(r, e);
14
- var t = Object.prototype.toString.call(r).slice(8, -1);
15
- if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
16
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return f(r, e);
17
- }
18
- }
19
- function f(r, e) {
20
- (e == null || e > r.length) && (e = r.length);
21
- for (var t = 0, n = new Array(e); t < e; t++)
22
- n[t] = r[t];
23
- return n;
24
- }
25
- function d(r, e) {
26
- var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
27
- if (t != null) {
28
- var n = [], o = !0, u = !1, a, i;
29
- try {
30
- for (t = t.call(r); !(o = (a = t.next()).done) && (n.push(a.value), !(e && n.length === e)); o = !0)
31
- ;
32
- } catch (c) {
33
- u = !0, i = c;
34
- } finally {
35
- try {
36
- !o && t.return != null && t.return();
37
- } finally {
38
- if (u) throw i;
39
- }
40
- }
41
- return n;
42
- }
43
- }
44
- function g(r) {
45
- if (Array.isArray(r)) return r;
46
- }
47
- function A(r) {
48
- var e = s(), t = e.getMonitor(), n = y(t, r), o = p(n, 2), u = o[0], a = o[1];
49
- return l(function() {
50
- return t.subscribeToOffsetChange(a);
51
- }), l(function() {
52
- return t.subscribeToStateChange(a);
53
- }), u;
54
- }
1
+ var e = {};
55
2
  export {
56
- A as useDragLayer
3
+ e as __exports
57
4
  };
@@ -1,4 +1,336 @@
1
- var r = {};
1
+ import Z from "./index.es169.js";
2
+ import U from "./index.es330.js";
3
+ import ee from "./index.es323.js";
4
+ import M from "./index.es435.js";
5
+ import { createElement as W, PureComponent as te } from "react";
6
+ var ie = typeof performance == "object" && typeof performance.now == "function", V = ie ? function() {
7
+ return performance.now();
8
+ } : function() {
9
+ return Date.now();
10
+ };
11
+ function $(l) {
12
+ cancelAnimationFrame(l.id);
13
+ }
14
+ function re(l, t) {
15
+ var n = V();
16
+ function c() {
17
+ V() - n >= t ? l.call(null) : u.id = requestAnimationFrame(c);
18
+ }
19
+ var u = {
20
+ id: requestAnimationFrame(c)
21
+ };
22
+ return u;
23
+ }
24
+ var k = -1;
25
+ function q(l) {
26
+ if (l === void 0 && (l = !1), k === -1 || l) {
27
+ var t = document.createElement("div"), n = t.style;
28
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), k = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
29
+ }
30
+ return k;
31
+ }
32
+ var _ = null;
33
+ function H(l) {
34
+ if (l === void 0 && (l = !1), _ === null || l) {
35
+ var t = document.createElement("div"), n = t.style;
36
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
37
+ var c = document.createElement("div"), u = c.style;
38
+ return u.width = "100px", u.height = "100px", t.appendChild(c), document.body.appendChild(t), t.scrollLeft > 0 ? _ = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? _ = "negative" : _ = "positive-ascending"), document.body.removeChild(t), _;
39
+ }
40
+ return _;
41
+ }
42
+ process.env.NODE_ENV;
43
+ var oe = 150, ne = function(t, n) {
44
+ return t;
45
+ }, P = null, R = null;
46
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (P = /* @__PURE__ */ new WeakSet(), R = /* @__PURE__ */ new WeakSet());
47
+ function le(l) {
48
+ var t, n = l.getItemOffset, c = l.getEstimatedTotalSize, u = l.getItemSize, z = l.getOffsetForIndexAndAlignment, S = l.getStartIndexForOffset, b = l.getStopIndexForStartIndex, O = l.initInstanceProps, g = l.shouldResetStyleCacheOnItemSizeChange, m = l.validateProps;
49
+ return t = /* @__PURE__ */ function(I) {
50
+ ee(T, I);
51
+ function T(p) {
52
+ var e;
53
+ return e = I.call(this, p) || this, e._instanceProps = O(e.props, U(e)), e._outerRef = void 0, e._resetIsScrollingTimeoutId = null, e.state = {
54
+ instance: U(e),
55
+ isScrolling: !1,
56
+ scrollDirection: "forward",
57
+ scrollOffset: typeof e.props.initialScrollOffset == "number" ? e.props.initialScrollOffset : 0,
58
+ scrollUpdateWasRequested: !1
59
+ }, e._callOnItemsRendered = void 0, e._callOnItemsRendered = M(function(i, r, o, s) {
60
+ return e.props.onItemsRendered({
61
+ overscanStartIndex: i,
62
+ overscanStopIndex: r,
63
+ visibleStartIndex: o,
64
+ visibleStopIndex: s
65
+ });
66
+ }), e._callOnScroll = void 0, e._callOnScroll = M(function(i, r, o) {
67
+ return e.props.onScroll({
68
+ scrollDirection: i,
69
+ scrollOffset: r,
70
+ scrollUpdateWasRequested: o
71
+ });
72
+ }), e._getItemStyle = void 0, e._getItemStyle = function(i) {
73
+ var r = e.props, o = r.direction, s = r.itemSize, h = r.layout, a = e._getItemStyleCache(g && s, g && h, g && o), d;
74
+ if (a.hasOwnProperty(i))
75
+ d = a[i];
76
+ else {
77
+ var f = n(e.props, i, e._instanceProps), y = u(e.props, i, e._instanceProps), w = o === "horizontal" || h === "horizontal", x = o === "rtl", E = w ? f : 0;
78
+ a[i] = d = {
79
+ position: "absolute",
80
+ left: x ? void 0 : E,
81
+ right: x ? E : void 0,
82
+ top: w ? 0 : f,
83
+ height: w ? "100%" : y,
84
+ width: w ? y : "100%"
85
+ };
86
+ }
87
+ return d;
88
+ }, e._getItemStyleCache = void 0, e._getItemStyleCache = M(function(i, r, o) {
89
+ return {};
90
+ }), e._onScrollHorizontal = function(i) {
91
+ var r = i.currentTarget, o = r.clientWidth, s = r.scrollLeft, h = r.scrollWidth;
92
+ e.setState(function(a) {
93
+ if (a.scrollOffset === s)
94
+ return null;
95
+ var d = e.props.direction, f = s;
96
+ if (d === "rtl")
97
+ switch (H()) {
98
+ case "negative":
99
+ f = -s;
100
+ break;
101
+ case "positive-descending":
102
+ f = h - o - s;
103
+ break;
104
+ }
105
+ return f = Math.max(0, Math.min(f, h - o)), {
106
+ isScrolling: !0,
107
+ scrollDirection: a.scrollOffset < f ? "forward" : "backward",
108
+ scrollOffset: f,
109
+ scrollUpdateWasRequested: !1
110
+ };
111
+ }, e._resetIsScrollingDebounced);
112
+ }, e._onScrollVertical = function(i) {
113
+ var r = i.currentTarget, o = r.clientHeight, s = r.scrollHeight, h = r.scrollTop;
114
+ e.setState(function(a) {
115
+ if (a.scrollOffset === h)
116
+ return null;
117
+ var d = Math.max(0, Math.min(h, s - o));
118
+ return {
119
+ isScrolling: !0,
120
+ scrollDirection: a.scrollOffset < d ? "forward" : "backward",
121
+ scrollOffset: d,
122
+ scrollUpdateWasRequested: !1
123
+ };
124
+ }, e._resetIsScrollingDebounced);
125
+ }, e._outerRefSetter = function(i) {
126
+ var r = e.props.outerRef;
127
+ e._outerRef = i, typeof r == "function" ? r(i) : r != null && typeof r == "object" && r.hasOwnProperty("current") && (r.current = i);
128
+ }, e._resetIsScrollingDebounced = function() {
129
+ e._resetIsScrollingTimeoutId !== null && $(e._resetIsScrollingTimeoutId), e._resetIsScrollingTimeoutId = re(e._resetIsScrolling, oe);
130
+ }, e._resetIsScrolling = function() {
131
+ e._resetIsScrollingTimeoutId = null, e.setState({
132
+ isScrolling: !1
133
+ }, function() {
134
+ e._getItemStyleCache(-1, null);
135
+ });
136
+ }, e;
137
+ }
138
+ T.getDerivedStateFromProps = function(e, i) {
139
+ return ae(e, i), m(e), null;
140
+ };
141
+ var v = T.prototype;
142
+ return v.scrollTo = function(e) {
143
+ e = Math.max(0, e), this.setState(function(i) {
144
+ return i.scrollOffset === e ? null : {
145
+ scrollDirection: i.scrollOffset < e ? "forward" : "backward",
146
+ scrollOffset: e,
147
+ scrollUpdateWasRequested: !0
148
+ };
149
+ }, this._resetIsScrollingDebounced);
150
+ }, v.scrollToItem = function(e, i) {
151
+ i === void 0 && (i = "auto");
152
+ var r = this.props, o = r.itemCount, s = r.layout, h = this.state.scrollOffset;
153
+ e = Math.max(0, Math.min(e, o - 1));
154
+ var a = 0;
155
+ if (this._outerRef) {
156
+ var d = this._outerRef;
157
+ s === "vertical" ? a = d.scrollWidth > d.clientWidth ? q() : 0 : a = d.scrollHeight > d.clientHeight ? q() : 0;
158
+ }
159
+ this.scrollTo(z(this.props, e, i, h, this._instanceProps, a));
160
+ }, v.componentDidMount = function() {
161
+ var e = this.props, i = e.direction, r = e.initialScrollOffset, o = e.layout;
162
+ if (typeof r == "number" && this._outerRef != null) {
163
+ var s = this._outerRef;
164
+ i === "horizontal" || o === "horizontal" ? s.scrollLeft = r : s.scrollTop = r;
165
+ }
166
+ this._callPropsCallbacks();
167
+ }, v.componentDidUpdate = function() {
168
+ var e = this.props, i = e.direction, r = e.layout, o = this.state, s = o.scrollOffset, h = o.scrollUpdateWasRequested;
169
+ if (h && this._outerRef != null) {
170
+ var a = this._outerRef;
171
+ if (i === "horizontal" || r === "horizontal")
172
+ if (i === "rtl")
173
+ switch (H()) {
174
+ case "negative":
175
+ a.scrollLeft = -s;
176
+ break;
177
+ case "positive-ascending":
178
+ a.scrollLeft = s;
179
+ break;
180
+ default:
181
+ var d = a.clientWidth, f = a.scrollWidth;
182
+ a.scrollLeft = f - d - s;
183
+ break;
184
+ }
185
+ else
186
+ a.scrollLeft = s;
187
+ else
188
+ a.scrollTop = s;
189
+ }
190
+ this._callPropsCallbacks();
191
+ }, v.componentWillUnmount = function() {
192
+ this._resetIsScrollingTimeoutId !== null && $(this._resetIsScrollingTimeoutId);
193
+ }, v.render = function() {
194
+ var e = this.props, i = e.children, r = e.className, o = e.direction, s = e.height, h = e.innerRef, a = e.innerElementType, d = e.innerTagName, f = e.itemCount, y = e.itemData, w = e.itemKey, x = w === void 0 ? ne : w, E = e.layout, K = e.outerElementType, j = e.outerTagName, B = e.style, G = e.useIsScrolling, J = e.width, D = this.state.isScrolling, N = o === "horizontal" || E === "horizontal", Q = N ? this._onScrollHorizontal : this._onScrollVertical, F = this._getRangeToRender(), X = F[0], Y = F[1], L = [];
195
+ if (f > 0)
196
+ for (var C = X; C <= Y; C++)
197
+ L.push(W(i, {
198
+ data: y,
199
+ key: x(C, y),
200
+ index: C,
201
+ isScrolling: G ? D : void 0,
202
+ style: this._getItemStyle(C)
203
+ }));
204
+ var A = c(this.props, this._instanceProps);
205
+ return W(K || j || "div", {
206
+ className: r,
207
+ onScroll: Q,
208
+ ref: this._outerRefSetter,
209
+ style: Z({
210
+ position: "relative",
211
+ height: s,
212
+ width: J,
213
+ overflow: "auto",
214
+ WebkitOverflowScrolling: "touch",
215
+ willChange: "transform",
216
+ direction: o
217
+ }, B)
218
+ }, W(a || d || "div", {
219
+ children: L,
220
+ ref: h,
221
+ style: {
222
+ height: N ? "100%" : A,
223
+ pointerEvents: D ? "none" : void 0,
224
+ width: N ? A : "100%"
225
+ }
226
+ }));
227
+ }, v._callPropsCallbacks = function() {
228
+ if (typeof this.props.onItemsRendered == "function") {
229
+ var e = this.props.itemCount;
230
+ if (e > 0) {
231
+ var i = this._getRangeToRender(), r = i[0], o = i[1], s = i[2], h = i[3];
232
+ this._callOnItemsRendered(r, o, s, h);
233
+ }
234
+ }
235
+ if (typeof this.props.onScroll == "function") {
236
+ var a = this.state, d = a.scrollDirection, f = a.scrollOffset, y = a.scrollUpdateWasRequested;
237
+ this._callOnScroll(d, f, y);
238
+ }
239
+ }, v._getRangeToRender = function() {
240
+ var e = this.props, i = e.itemCount, r = e.overscanCount, o = this.state, s = o.isScrolling, h = o.scrollDirection, a = o.scrollOffset;
241
+ if (i === 0)
242
+ return [0, 0, 0, 0];
243
+ var d = S(this.props, a, this._instanceProps), f = b(this.props, d, a, this._instanceProps), y = !s || h === "backward" ? Math.max(1, r) : 1, w = !s || h === "forward" ? Math.max(1, r) : 1;
244
+ return [Math.max(0, d - y), Math.max(0, Math.min(i - 1, f + w)), d, f];
245
+ }, T;
246
+ }(te), t.defaultProps = {
247
+ direction: "ltr",
248
+ itemData: void 0,
249
+ layout: "vertical",
250
+ overscanCount: 2,
251
+ useIsScrolling: !1
252
+ }, t;
253
+ }
254
+ var ae = function(t, n) {
255
+ var c = t.children, u = t.direction, z = t.height, S = t.layout, b = t.innerTagName, O = t.outerTagName, g = t.width, m = n.instance;
256
+ if (process.env.NODE_ENV !== "production") {
257
+ (b != null || O != null) && R && !R.has(m) && (R.add(m), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
258
+ var I = u === "horizontal" || S === "horizontal";
259
+ switch (u) {
260
+ case "horizontal":
261
+ case "vertical":
262
+ P && !P.has(m) && (P.add(m), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
263
+ break;
264
+ case "ltr":
265
+ case "rtl":
266
+ break;
267
+ default:
268
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + u + '" was specified.'));
269
+ }
270
+ switch (S) {
271
+ case "horizontal":
272
+ case "vertical":
273
+ break;
274
+ default:
275
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + S + '" was specified.'));
276
+ }
277
+ if (c == null)
278
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (c === null ? "null" : typeof c) + '" was specified.'));
279
+ if (I && typeof g != "number")
280
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (g === null ? "null" : typeof g) + '" was specified.'));
281
+ if (!I && typeof z != "number")
282
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (z === null ? "null" : typeof z) + '" was specified.'));
283
+ }
284
+ }, fe = /* @__PURE__ */ le({
285
+ getItemOffset: function(t, n) {
286
+ var c = t.itemSize;
287
+ return n * c;
288
+ },
289
+ getItemSize: function(t, n) {
290
+ var c = t.itemSize;
291
+ return c;
292
+ },
293
+ getEstimatedTotalSize: function(t) {
294
+ var n = t.itemCount, c = t.itemSize;
295
+ return c * n;
296
+ },
297
+ getOffsetForIndexAndAlignment: function(t, n, c, u, z, S) {
298
+ var b = t.direction, O = t.height, g = t.itemCount, m = t.itemSize, I = t.layout, T = t.width, v = b === "horizontal" || I === "horizontal", p = v ? T : O, e = Math.max(0, g * m - p), i = Math.min(e, n * m), r = Math.max(0, n * m - p + m + S);
299
+ switch (c === "smart" && (u >= r - p && u <= i + p ? c = "auto" : c = "center"), c) {
300
+ case "start":
301
+ return i;
302
+ case "end":
303
+ return r;
304
+ case "center": {
305
+ var o = Math.round(r + (i - r) / 2);
306
+ return o < Math.ceil(p / 2) ? 0 : o > e + Math.floor(p / 2) ? e : o;
307
+ }
308
+ case "auto":
309
+ default:
310
+ return u >= r && u <= i ? u : u < r ? r : i;
311
+ }
312
+ },
313
+ getStartIndexForOffset: function(t, n) {
314
+ var c = t.itemCount, u = t.itemSize;
315
+ return Math.max(0, Math.min(c - 1, Math.floor(n / u)));
316
+ },
317
+ getStopIndexForStartIndex: function(t, n, c) {
318
+ var u = t.direction, z = t.height, S = t.itemCount, b = t.itemSize, O = t.layout, g = t.width, m = u === "horizontal" || O === "horizontal", I = n * b, T = m ? g : z, v = Math.ceil((T + c - I) / b);
319
+ return Math.max(0, Math.min(
320
+ S - 1,
321
+ n + v - 1
322
+ // -1 is because stop index is inclusive
323
+ ));
324
+ },
325
+ initInstanceProps: function(t) {
326
+ },
327
+ shouldResetStyleCacheOnItemSizeChange: !0,
328
+ validateProps: function(t) {
329
+ var n = t.itemSize;
330
+ if (process.env.NODE_ENV !== "production" && typeof n != "number")
331
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
332
+ }
333
+ });
2
334
  export {
3
- r as __exports
335
+ fe as FixedSizeList
4
336
  };