@boxcustodia/library 0.2.7 → 0.2.9

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 (778) hide show
  1. package/dist/index.d.ts +31 -5
  2. package/dist/index.es.js +78 -74
  3. package/dist/index.es10.js +1 -1
  4. package/dist/index.es100.js +3 -3
  5. package/dist/index.es101.js +6 -6
  6. package/dist/index.es102.js +3672 -9
  7. package/dist/index.es103.js +4 -21
  8. package/dist/index.es104.js +6 -4
  9. package/dist/index.es105.js +5 -11
  10. package/dist/index.es106.js +57 -11
  11. package/dist/index.es107.js +259 -12
  12. package/dist/index.es108.js +10 -3672
  13. package/dist/index.es109.js +1061 -3
  14. package/dist/index.es110.js +4 -14
  15. package/dist/index.es111.js +4 -5
  16. package/dist/index.es112.js +21 -57
  17. package/dist/index.es113.js +12 -1062
  18. package/dist/index.es114.js +11 -4
  19. package/dist/index.es115.js +11 -4
  20. package/dist/index.es116.js +12 -224
  21. package/dist/index.es117.js +3 -3
  22. package/dist/index.es118.js +238 -39
  23. package/dist/index.es119.js +200 -216
  24. package/dist/index.es120.js +11 -822
  25. package/dist/index.es121.js +41 -9
  26. package/dist/index.es122.js +64 -11
  27. package/dist/index.es123.js +813 -55
  28. package/dist/index.es124.js +9 -4
  29. package/dist/index.es125.js +11 -13
  30. package/dist/index.es126.js +13 -33
  31. package/dist/index.es127.js +17 -13
  32. package/dist/index.es128.js +41 -15
  33. package/dist/index.es129.js +13 -43
  34. package/dist/index.es13.js +1 -1
  35. package/dist/index.es130.js +33 -13
  36. package/dist/index.es131.js +13 -216
  37. package/dist/index.es132.js +4 -8
  38. package/dist/index.es133.js +26 -2
  39. package/dist/index.es134.js +26 -25
  40. package/dist/index.es135.js +211 -601
  41. package/dist/index.es136.js +8 -15
  42. package/dist/index.es137.js +2 -197
  43. package/dist/index.es138.js +25 -41
  44. package/dist/index.es139.js +605 -12
  45. package/dist/index.es140.js +12 -9
  46. package/dist/index.es141.js +196 -204
  47. package/dist/index.es142.js +41 -10
  48. package/dist/index.es143.js +12 -6
  49. package/dist/index.es144.js +9 -62
  50. package/dist/index.es145.js +205 -11
  51. package/dist/index.es146.js +10 -124
  52. package/dist/index.es147.js +17 -131
  53. package/dist/index.es148.js +37 -14
  54. package/dist/index.es149.js +10 -32
  55. package/dist/index.es15.js +1 -1
  56. package/dist/index.es150.js +5 -14
  57. package/dist/index.es151.js +2 -9
  58. package/dist/index.es152.js +6 -49
  59. package/dist/index.es153.js +62 -18
  60. package/dist/index.es154.js +10 -36
  61. package/dist/index.es155.js +123 -9
  62. package/dist/index.es156.js +134 -5
  63. package/dist/index.es157.js +14 -2
  64. package/dist/index.es158.js +32 -217
  65. package/dist/index.es159.js +11 -646
  66. package/dist/index.es16.js +1 -1
  67. package/dist/index.es160.js +9 -4
  68. package/dist/index.es161.js +50 -4
  69. package/dist/index.es162.js +215 -43
  70. package/dist/index.es163.js +4 -8
  71. package/dist/index.es164.js +649 -5
  72. package/dist/index.es165.js +43 -27
  73. package/dist/index.es166.js +4 -44
  74. package/dist/index.es167.js +46 -6
  75. package/dist/index.es168.js +10 -3
  76. package/dist/index.es169.js +5 -2053
  77. package/dist/index.es17.js +1 -1
  78. package/dist/index.es170.js +28 -33
  79. package/dist/index.es171.js +7 -7
  80. package/dist/index.es172.js +33 -2
  81. package/dist/index.es173.js +6 -2
  82. package/dist/index.es174.js +3 -12
  83. package/dist/index.es175.js +2052 -4
  84. package/dist/index.es176.js +2 -14
  85. package/dist/index.es177.js +2 -83
  86. package/dist/index.es178.js +9 -15
  87. package/dist/index.es179.js +5 -33
  88. package/dist/index.es180.js +11 -131
  89. package/dist/index.es181.js +77 -170
  90. package/dist/index.es182.js +15 -11
  91. package/dist/index.es183.js +28 -73
  92. package/dist/index.es184.js +131 -15
  93. package/dist/index.es185.js +175 -8
  94. package/dist/index.es186.js +10 -49
  95. package/dist/index.es187.js +78 -20
  96. package/dist/index.es188.js +18 -9
  97. package/dist/index.es189.js +9 -38
  98. package/dist/index.es190.js +51 -18
  99. package/dist/index.es191.js +7 -11
  100. package/dist/index.es192.js +5 -7
  101. package/dist/index.es193.js +4 -5
  102. package/dist/index.es194.js +17 -4
  103. package/dist/index.es195.js +5 -17
  104. package/dist/index.es196.js +5 -5
  105. package/dist/index.es197.js +8 -5
  106. package/dist/index.es198.js +6 -9
  107. package/dist/index.es199.js +7 -6
  108. package/dist/index.es200.js +15 -6
  109. package/dist/index.es201.js +13 -15
  110. package/dist/index.es202.js +12 -12
  111. package/dist/index.es203.js +6 -13
  112. package/dist/index.es204.js +6 -6
  113. package/dist/index.es205.js +6 -6
  114. package/dist/index.es206.js +4 -6
  115. package/dist/index.es207.js +515 -4
  116. package/dist/index.es208.js +48 -514
  117. package/dist/index.es209.js +18 -50
  118. package/dist/index.es210.js +9 -17
  119. package/dist/index.es211.js +19 -10
  120. package/dist/index.es212.js +8 -18
  121. package/dist/index.es213.js +7 -8
  122. package/dist/index.es214.js +7 -7
  123. package/dist/index.es215.js +5 -7
  124. package/dist/index.es216.js +6 -5
  125. package/dist/index.es217.js +9 -6
  126. package/dist/index.es218.js +5 -9
  127. package/dist/index.es219.js +8 -5
  128. package/dist/index.es220.js +12 -8
  129. package/dist/index.es221.js +9 -12
  130. package/dist/index.es222.js +8 -9
  131. package/dist/index.es223.js +10 -8
  132. package/dist/index.es224.js +14 -10
  133. package/dist/index.es225.js +6 -14
  134. package/dist/index.es226.js +6 -6
  135. package/dist/index.es227.js +6 -6
  136. package/dist/index.es228.js +6 -6
  137. package/dist/index.es229.js +6 -6
  138. package/dist/index.es230.js +9 -6
  139. package/dist/index.es231.js +84 -9
  140. package/dist/index.es232.js +65 -85
  141. package/dist/index.es233.js +38 -65
  142. package/dist/index.es234.js +9 -37
  143. package/dist/index.es235.js +8 -9
  144. package/dist/index.es236.js +6 -7
  145. package/dist/index.es237.js +10 -7
  146. package/dist/index.es238.js +7 -10
  147. package/dist/index.es239.js +7 -7
  148. package/dist/index.es24.js +2 -2
  149. package/dist/index.es240.js +6 -7
  150. package/dist/index.es241.js +5 -6
  151. package/dist/index.es242.js +15 -5
  152. package/dist/index.es243.js +11 -15
  153. package/dist/index.es244.js +20 -18
  154. package/dist/index.es245.js +9 -52
  155. package/dist/index.es246.js +37 -15
  156. package/dist/index.es247.js +18 -201
  157. package/dist/index.es248.js +19 -22
  158. package/dist/index.es249.js +52 -25
  159. package/dist/index.es25.js +1 -1
  160. package/dist/index.es250.js +16 -371
  161. package/dist/index.es251.js +195 -172
  162. package/dist/index.es252.js +22 -26
  163. package/dist/index.es253.js +24 -4
  164. package/dist/index.es254.js +370 -7
  165. package/dist/index.es255.js +177 -13
  166. package/dist/index.es256.js +25 -13
  167. package/dist/index.es257.js +4 -134
  168. package/dist/index.es258.js +7 -31
  169. package/dist/index.es259.js +13 -462
  170. package/dist/index.es26.js +4 -4
  171. package/dist/index.es260.js +13 -131
  172. package/dist/index.es261.js +135 -27
  173. package/dist/index.es262.js +31 -4
  174. package/dist/index.es263.js +460 -24
  175. package/dist/index.es264.js +130 -6
  176. package/dist/index.es265.js +27 -12
  177. package/dist/index.es266.js +4 -28
  178. package/dist/index.es267.js +26 -48
  179. package/dist/index.es268.js +7 -30
  180. package/dist/index.es269.js +9 -41
  181. package/dist/index.es27.js +1 -1
  182. package/dist/index.es270.js +28 -158
  183. package/dist/index.es271.js +47 -32
  184. package/dist/index.es272.js +31 -2
  185. package/dist/index.es273.js +41 -77
  186. package/dist/index.es274.js +158 -18
  187. package/dist/index.es275.js +34 -2
  188. package/dist/index.es276.js +2 -398
  189. package/dist/index.es277.js +79 -722
  190. package/dist/index.es278.js +18 -282
  191. package/dist/index.es279.js +2 -61
  192. package/dist/index.es28.js +3 -3
  193. package/dist/index.es280.js +397 -9
  194. package/dist/index.es281.js +722 -28
  195. package/dist/index.es282.js +281 -197
  196. package/dist/index.es283.js +58 -22
  197. package/dist/index.es284.js +10 -16
  198. package/dist/index.es285.js +29 -8
  199. package/dist/index.es286.js +199 -15
  200. package/dist/index.es287.js +25 -3
  201. package/dist/index.es288.js +16 -4
  202. package/dist/index.es289.js +8 -14
  203. package/dist/index.es29.js +2 -2
  204. package/dist/index.es290.js +4 -15
  205. package/dist/index.es291.js +13 -24
  206. package/dist/index.es292.js +15 -29
  207. package/dist/index.es293.js +5 -5
  208. package/dist/index.es294.js +57 -5
  209. package/dist/index.es295.js +25 -54
  210. package/dist/index.es296.js +39 -20
  211. package/dist/index.es297.js +43 -23
  212. package/dist/index.es298.js +21 -50
  213. package/dist/index.es299.js +12 -31
  214. package/dist/index.es30.js +2 -2
  215. package/dist/index.es300.js +62 -13
  216. package/dist/index.es301.js +36 -36
  217. package/dist/index.es302.js +42 -41
  218. package/dist/index.es303.js +37 -37
  219. package/dist/index.es304.js +27 -50
  220. package/dist/index.es305.js +22 -21
  221. package/dist/index.es306.js +40 -28
  222. package/dist/index.es307.js +28 -38
  223. package/dist/index.es308.js +34 -40
  224. package/dist/index.es309.js +54 -25
  225. package/dist/index.es31.js +1 -1
  226. package/dist/index.es310.js +38 -38
  227. package/dist/index.es311.js +71 -46
  228. package/dist/index.es312.js +38 -88
  229. package/dist/index.es313.js +24 -24
  230. package/dist/index.es314.js +14 -14
  231. package/dist/index.es315.js +23 -39
  232. package/dist/index.es316.js +20 -21
  233. package/dist/index.es317.js +20 -20
  234. package/dist/index.es318.js +20 -19
  235. package/dist/index.es319.js +19 -20
  236. package/dist/index.es32.js +3 -3
  237. package/dist/index.es320.js +21 -21
  238. package/dist/index.es321.js +13 -23
  239. package/dist/index.es322.js +40 -14
  240. package/dist/index.es323.js +26 -26
  241. package/dist/index.es324.js +14 -40
  242. package/dist/index.es325.js +10 -10
  243. package/dist/index.es326.js +24 -19
  244. package/dist/index.es327.js +29 -10
  245. package/dist/index.es328.js +5 -5
  246. package/dist/index.es329.js +15 -13
  247. package/dist/index.es33.js +4 -4
  248. package/dist/index.es330.js +3 -5
  249. package/dist/index.es331.js +8 -5
  250. package/dist/index.es332.js +3 -332
  251. package/dist/index.es333.js +13 -19
  252. package/dist/index.es334.js +5 -4
  253. package/dist/index.es335.js +6 -4
  254. package/dist/index.es336.js +334 -3
  255. package/dist/index.es337.js +19 -72
  256. package/dist/index.es338.js +3 -3
  257. package/dist/index.es339.js +5 -2
  258. package/dist/index.es34.js +2 -2
  259. package/dist/index.es340.js +3 -2
  260. package/dist/index.es341.js +72 -6
  261. package/dist/index.es342.js +4 -34
  262. package/dist/index.es343.js +6 -26
  263. package/dist/index.es344.js +34 -18
  264. package/dist/index.es345.js +25 -4
  265. package/dist/index.es346.js +18 -231
  266. package/dist/index.es347.js +5 -100
  267. package/dist/index.es348.js +229 -26
  268. package/dist/index.es349.js +80 -35
  269. package/dist/index.es350.js +26 -332
  270. package/dist/index.es351.js +55 -31
  271. package/dist/index.es352.js +2 -17
  272. package/dist/index.es353.js +2 -29
  273. package/dist/index.es354.js +334 -2
  274. package/dist/index.es355.js +31 -106
  275. package/dist/index.es356.js +16 -75
  276. package/dist/index.es357.js +29 -35
  277. package/dist/index.es358.js +3 -64
  278. package/dist/index.es359.js +107 -34
  279. package/dist/index.es36.js +4 -4
  280. package/dist/index.es360.js +71 -60
  281. package/dist/index.es361.js +34 -111
  282. package/dist/index.es362.js +60 -90
  283. package/dist/index.es363.js +32 -41
  284. package/dist/index.es364.js +66 -3
  285. package/dist/index.es365.js +113 -3
  286. package/dist/index.es366.js +94 -3
  287. package/dist/index.es367.js +43 -3
  288. package/dist/index.es368.js +2 -2
  289. package/dist/index.es369.js +2 -2
  290. package/dist/index.es37.js +4 -4
  291. package/dist/index.es370.js +2 -2
  292. package/dist/index.es371.js +2 -2
  293. package/dist/index.es372.js +2 -2
  294. package/dist/index.es373.js +4 -241
  295. package/dist/index.es374.js +4 -384
  296. package/dist/index.es375.js +4 -169
  297. package/dist/index.es376.js +4 -153
  298. package/dist/index.es377.js +188 -89
  299. package/dist/index.es378.js +384 -4
  300. package/dist/index.es379.js +169 -4
  301. package/dist/index.es38.js +8 -8
  302. package/dist/index.es380.js +153 -4
  303. package/dist/index.es381.js +142 -4
  304. package/dist/index.es382.js +2 -2
  305. package/dist/index.es383.js +2 -2
  306. package/dist/index.es384.js +2 -2
  307. package/dist/index.es385.js +2 -54
  308. package/dist/index.es386.js +2 -59
  309. package/dist/index.es387.js +2 -29
  310. package/dist/index.es388.js +29 -5
  311. package/dist/index.es389.js +5 -5
  312. package/dist/index.es39.js +4 -4
  313. package/dist/index.es390.js +2 -3
  314. package/dist/index.es391.js +53 -23
  315. package/dist/index.es392.js +56 -107
  316. package/dist/index.es393.js +67 -15
  317. package/dist/index.es394.js +30 -67
  318. package/dist/index.es395.js +9 -31
  319. package/dist/index.es396.js +153 -9
  320. package/dist/index.es397.js +97 -142
  321. package/dist/index.es398.js +19 -107
  322. package/dist/index.es399.js +98 -17
  323. package/dist/index.es40.js +2 -2
  324. package/dist/index.es400.js +47 -101
  325. package/dist/index.es401.js +5 -47
  326. package/dist/index.es402.js +3 -6
  327. package/dist/index.es403.js +24 -2
  328. package/dist/index.es404.js +109 -7
  329. package/dist/index.es405.js +15 -326
  330. package/dist/index.es406.js +67 -49
  331. package/dist/index.es407.js +31 -4
  332. package/dist/index.es408.js +16 -519
  333. package/dist/index.es409.js +140 -126
  334. package/dist/index.es41.js +2 -2
  335. package/dist/index.es410.js +113 -125
  336. package/dist/index.es411.js +6 -68
  337. package/dist/index.es412.js +2 -31
  338. package/dist/index.es413.js +8 -16
  339. package/dist/index.es414.js +326 -140
  340. package/dist/index.es415.js +48 -112
  341. package/dist/index.es416.js +4 -2
  342. package/dist/index.es417.js +514 -42
  343. package/dist/index.es418.js +126 -82
  344. package/dist/index.es419.js +124 -12
  345. package/dist/index.es42.js +7 -7
  346. package/dist/index.es420.js +2 -341
  347. package/dist/index.es421.js +43 -71
  348. package/dist/index.es422.js +82 -10
  349. package/dist/index.es423.js +12 -23
  350. package/dist/index.es424.js +340 -10
  351. package/dist/index.es425.js +74 -32
  352. package/dist/index.es426.js +10 -29
  353. package/dist/index.es427.js +2 -12
  354. package/dist/index.es428.js +8 -2
  355. package/dist/index.es429.js +45 -7
  356. package/dist/index.es43.js +2 -2
  357. package/dist/index.es430.js +2 -46
  358. package/dist/index.es431.js +6 -2
  359. package/dist/index.es432.js +24 -8
  360. package/dist/index.es433.js +4 -24
  361. package/dist/index.es434.js +35 -4
  362. package/dist/index.es435.js +174 -32
  363. package/dist/index.es436.js +81 -169
  364. package/dist/index.es437.js +14 -86
  365. package/dist/index.es438.js +4 -17
  366. package/dist/index.es44.js +3 -3
  367. package/dist/index.es442.js +24 -2
  368. package/dist/index.es443.js +2 -24
  369. package/dist/index.es444.js +2 -2
  370. package/dist/index.es445.js +2 -2
  371. package/dist/index.es446.js +25 -2
  372. package/dist/index.es447.js +9 -273
  373. package/dist/index.es448.js +32 -79
  374. package/dist/index.es449.js +28 -164
  375. package/dist/index.es45.js +3 -3
  376. package/dist/index.es450.js +12 -3
  377. package/dist/index.es451.js +268 -100
  378. package/dist/index.es452.js +78 -63
  379. package/dist/index.es453.js +163 -66
  380. package/dist/index.es454.js +3 -9
  381. package/dist/index.es455.js +106 -13
  382. package/dist/index.es456.js +7 -60
  383. package/dist/index.es457.js +14 -5
  384. package/dist/index.es458.js +27 -14
  385. package/dist/index.es459.js +11 -27
  386. package/dist/index.es46.js +2 -2
  387. package/dist/index.es460.js +63 -11
  388. package/dist/index.es461.js +69 -2
  389. package/dist/index.es462.js +9 -76
  390. package/dist/index.es463.js +13 -92
  391. package/dist/index.es464.js +59 -51
  392. package/dist/index.es465.js +2 -8
  393. package/dist/index.es466.js +75 -4
  394. package/dist/index.es467.js +89 -48
  395. package/dist/index.es468.js +52 -2
  396. package/dist/index.es469.js +8 -2
  397. package/dist/index.es47.js +3 -3
  398. package/dist/index.es470.js +4 -42
  399. package/dist/index.es471.js +50 -61
  400. package/dist/index.es472.js +2 -19
  401. package/dist/index.es473.js +2 -5
  402. package/dist/index.es474.js +30 -30
  403. package/dist/index.es475.js +62 -4
  404. package/dist/index.es476.js +20 -7
  405. package/dist/index.es477.js +5 -2
  406. package/dist/index.es478.js +43 -2
  407. package/dist/index.es479.js +4 -78
  408. package/dist/index.es48.js +6 -6
  409. package/dist/index.es480.js +7 -97
  410. package/dist/index.es481.js +4 -27
  411. package/dist/index.es482.js +2 -2
  412. package/dist/index.es483.js +81 -21
  413. package/dist/index.es484.js +98 -24
  414. package/dist/index.es485.js +24 -25
  415. package/dist/index.es486.js +4 -21
  416. package/dist/index.es487.js +4 -8
  417. package/dist/index.es488.js +8 -33
  418. package/dist/index.es489.js +7 -15
  419. package/dist/index.es49.js +2 -2
  420. package/dist/index.es490.js +2 -2
  421. package/dist/index.es491.js +6 -4
  422. package/dist/index.es492.js +34 -6
  423. package/dist/index.es493.js +17 -2
  424. package/dist/index.es494.js +5 -7
  425. package/dist/index.es495.js +23 -4
  426. package/dist/index.es496.js +21 -4
  427. package/dist/index.es497.js +21 -4
  428. package/dist/index.es498.js +23 -4
  429. package/dist/index.es499.js +2 -2
  430. package/dist/index.es50.js +7 -7
  431. package/dist/index.es500.js +2 -2
  432. package/dist/index.es502.js +2 -2
  433. package/dist/index.es504.js +2 -2
  434. package/dist/index.es506.js +2 -2
  435. package/dist/index.es507.js +4 -29
  436. package/dist/index.es508.js +4 -26
  437. package/dist/index.es509.js +4 -32
  438. package/dist/index.es51.js +3 -3
  439. package/dist/index.es510.js +4 -29
  440. package/dist/index.es511.js +7 -5
  441. package/dist/index.es512.js +7 -7
  442. package/dist/index.es513.js +11 -51
  443. package/dist/index.es514.js +12 -9
  444. package/dist/index.es515.js +9 -14
  445. package/dist/index.es516.js +10 -28
  446. package/dist/index.es517.js +56 -10
  447. package/dist/index.es518.js +11 -31
  448. package/dist/index.es519.js +15 -106
  449. package/dist/index.es52.js +1 -1
  450. package/dist/index.es520.js +23 -25
  451. package/dist/index.es521.js +6 -7
  452. package/dist/index.es522.js +30 -10
  453. package/dist/index.es523.js +107 -10
  454. package/dist/index.es524.js +25 -5
  455. package/dist/index.es525.js +9 -5
  456. package/dist/index.es526.js +2 -6
  457. package/dist/index.es527.js +3 -3
  458. package/dist/index.es528.js +11 -6
  459. package/dist/index.es529.js +2 -5
  460. package/dist/index.es53.js +3 -3
  461. package/dist/index.es530.js +7 -25
  462. package/dist/index.es531.js +5 -97
  463. package/dist/index.es532.js +4 -7
  464. package/dist/index.es533.js +8 -18
  465. package/dist/index.es534.js +20 -16
  466. package/dist/index.es535.js +81 -18
  467. package/dist/index.es536.js +11 -31
  468. package/dist/index.es537.js +19 -9
  469. package/dist/index.es538.js +20 -19
  470. package/dist/index.es539.js +31 -12
  471. package/dist/index.es54.js +2 -2
  472. package/dist/index.es540.js +14 -32
  473. package/dist/index.es541.js +9 -19
  474. package/dist/index.es542.js +27 -7
  475. package/dist/index.es543.js +16 -6
  476. package/dist/index.es544.js +42 -10
  477. package/dist/index.es545.js +23 -8
  478. package/dist/index.es546.js +4 -7
  479. package/dist/index.es547.js +8 -25
  480. package/dist/index.es548.js +10 -8
  481. package/dist/index.es549.js +9 -30
  482. package/dist/index.es55.js +6 -6
  483. package/dist/index.es550.js +9 -11
  484. package/dist/index.es551.js +30 -15
  485. package/dist/index.es552.js +10 -14
  486. package/dist/index.es553.js +27 -11
  487. package/dist/index.es554.js +17 -10
  488. package/dist/index.es555.js +15 -8
  489. package/dist/index.es556.js +10 -21
  490. package/dist/index.es557.js +4 -4
  491. package/dist/index.es558.js +6 -15
  492. package/dist/index.es559.js +5 -17
  493. package/dist/index.es56.js +2 -2
  494. package/dist/index.es560.js +17 -10
  495. package/dist/index.es561.js +10 -15
  496. package/dist/index.es562.js +10 -23
  497. package/dist/index.es563.js +16 -17
  498. package/dist/index.es564.js +19 -19
  499. package/dist/index.es565.js +13 -23
  500. package/dist/index.es566.js +31 -18
  501. package/dist/index.es567.js +22 -9
  502. package/dist/index.es568.js +20 -18
  503. package/dist/index.es569.js +24 -16
  504. package/dist/index.es57.js +1 -1
  505. package/dist/index.es570.js +9 -20
  506. package/dist/index.es571.js +4 -20
  507. package/dist/index.es572.js +12 -7
  508. package/dist/index.es573.js +16 -9
  509. package/dist/index.es574.js +26 -11
  510. package/dist/index.es575.js +17 -6
  511. package/dist/index.es576.js +11 -10
  512. package/dist/index.es577.js +15 -17
  513. package/dist/index.es578.js +8 -11
  514. package/dist/index.es579.js +11 -15
  515. package/dist/index.es58.js +3 -3
  516. package/dist/index.es580.js +15 -8
  517. package/dist/index.es581.js +16 -19
  518. package/dist/index.es582.js +8 -85
  519. package/dist/index.es583.js +13 -9
  520. package/dist/index.es584.js +2 -2
  521. package/dist/index.es585.js +11 -8
  522. package/dist/index.es586.js +91 -6
  523. package/dist/index.es587.js +10 -11
  524. package/dist/index.es588.js +3 -3
  525. package/dist/index.es589.js +15 -13
  526. package/dist/index.es59.js +3 -3
  527. package/dist/index.es590.js +21 -4
  528. package/dist/index.es591.js +27 -4
  529. package/dist/index.es592.js +21 -4
  530. package/dist/index.es593.js +26 -4
  531. package/dist/index.es595.js +2 -2
  532. package/dist/index.es596.js +2 -2
  533. package/dist/index.es597.js +2 -2
  534. package/dist/index.es599.js +2 -2
  535. package/dist/index.es60.js +2 -2
  536. package/dist/index.es600.js +2 -2
  537. package/dist/index.es601.js +2 -2
  538. package/dist/index.es602.js +2 -2
  539. package/dist/index.es604.js +2 -2
  540. package/dist/index.es606.js +2 -2
  541. package/dist/index.es607.js +2 -2
  542. package/dist/index.es608.js +2 -2
  543. package/dist/index.es61.js +5 -5
  544. package/dist/index.es611.js +2 -2
  545. package/dist/index.es612.js +2 -2
  546. package/dist/index.es613.js +2 -2
  547. package/dist/index.es615.js +2 -2
  548. package/dist/index.es619.js +2 -2
  549. package/dist/index.es621.js +2 -2
  550. package/dist/index.es623.js +2 -2
  551. package/dist/index.es625.js +2 -2
  552. package/dist/index.es626.js +2 -2
  553. package/dist/index.es627.js +2 -2
  554. package/dist/index.es629.js +2 -2
  555. package/dist/index.es63.js +4 -4
  556. package/dist/index.es630.js +2 -2
  557. package/dist/index.es631.js +2 -2
  558. package/dist/index.es633.js +2 -2
  559. package/dist/index.es636.js +2 -2
  560. package/dist/index.es639.js +2 -2
  561. package/dist/index.es64.js +2 -2
  562. package/dist/index.es642.js +2 -2
  563. package/dist/index.es644.js +2 -2
  564. package/dist/index.es646.js +2 -2
  565. package/dist/index.es648.js +2 -2
  566. package/dist/index.es649.js +2 -2
  567. package/dist/index.es65.js +3 -3
  568. package/dist/index.es650.js +2 -2
  569. package/dist/index.es651.js +2 -2
  570. package/dist/index.es652.js +2 -2
  571. package/dist/index.es653.js +2 -2
  572. package/dist/index.es654.js +2 -2
  573. package/dist/index.es655.js +2 -2
  574. package/dist/index.es656.js +2 -2
  575. package/dist/index.es657.js +2 -2
  576. package/dist/index.es658.js +2 -2
  577. package/dist/index.es659.js +2 -2
  578. package/dist/index.es66.js +3 -3
  579. package/dist/index.es660.js +2 -2
  580. package/dist/index.es661.js +2 -2
  581. package/dist/index.es662.js +2 -2
  582. package/dist/index.es663.js +2 -2
  583. package/dist/index.es664.js +2 -2
  584. package/dist/index.es666.js +2 -2
  585. package/dist/index.es667.js +2 -2
  586. package/dist/index.es668.js +2 -2
  587. package/dist/index.es669.js +2 -2
  588. package/dist/index.es67.js +2 -2
  589. package/dist/index.es672.js +2 -2
  590. package/dist/index.es673.js +4 -32
  591. package/dist/index.es674.js +4 -32
  592. package/dist/index.es675.js +4 -32
  593. package/dist/index.es676.js +4 -32
  594. package/dist/index.es677.js +7 -4
  595. package/dist/index.es678.js +8 -8
  596. package/dist/index.es679.js +2 -2
  597. package/dist/index.es68.js +1 -1
  598. package/dist/index.es680.js +10 -7
  599. package/dist/index.es681.js +4 -7
  600. package/dist/index.es682.js +7 -7
  601. package/dist/index.es683.js +2 -2
  602. package/dist/index.es684.js +6 -9
  603. package/dist/index.es685.js +2 -2
  604. package/dist/index.es686.js +4 -4
  605. package/dist/index.es687.js +5 -5
  606. package/dist/index.es688.js +4 -4
  607. package/dist/index.es689.js +3 -3
  608. package/dist/index.es69.js +3 -3
  609. package/dist/index.es690.js +2 -2
  610. package/dist/index.es691.js +5 -5
  611. package/dist/index.es692.js +4 -4
  612. package/dist/index.es693.js +8 -3
  613. package/dist/index.es694.js +3 -3
  614. package/dist/index.es695.js +1 -1
  615. package/dist/index.es696.js +2 -2
  616. package/dist/index.es697.js +9 -11
  617. package/dist/index.es698.js +5 -5
  618. package/dist/index.es699.js +1 -1
  619. package/dist/index.es7.js +1 -1
  620. package/dist/index.es70.js +5 -5
  621. package/dist/index.es700.js +10 -7
  622. package/dist/index.es701.js +6 -9
  623. package/dist/index.es702.js +8 -7
  624. package/dist/index.es703.js +5 -5
  625. package/dist/index.es704.js +5 -8
  626. package/dist/index.es705.js +2 -2
  627. package/dist/index.es706.js +4 -5
  628. package/dist/index.es707.js +11 -5
  629. package/dist/index.es708.js +6 -6
  630. package/dist/index.es709.js +2 -2
  631. package/dist/index.es71.js +5 -5
  632. package/dist/index.es710.js +2 -2
  633. package/dist/index.es711.js +5 -11
  634. package/dist/index.es712.js +32 -4
  635. package/dist/index.es713.js +32 -4
  636. package/dist/index.es714.js +32 -4
  637. package/dist/index.es715.js +32 -4
  638. package/dist/index.es717.js +2 -2
  639. package/dist/index.es719.js +2 -2
  640. package/dist/index.es72.js +2 -2
  641. package/dist/index.es720.js +2 -2
  642. package/dist/index.es725.js +2 -2
  643. package/dist/index.es728.js +2 -2
  644. package/dist/index.es729.js +2 -2
  645. package/dist/index.es73.js +9 -9
  646. package/dist/index.es731.js +2 -2
  647. package/dist/index.es732.js +2 -2
  648. package/dist/index.es735.js +2 -2
  649. package/dist/index.es736.js +2 -2
  650. package/dist/index.es737.js +2 -2
  651. package/dist/index.es739.js +2 -2
  652. package/dist/index.es74.js +6 -10
  653. package/dist/index.es742.js +2 -2
  654. package/dist/index.es743.js +2 -2
  655. package/dist/index.es744.js +2 -2
  656. package/dist/index.es745.js +2 -2
  657. package/dist/index.es746.js +2 -2
  658. package/dist/index.es75.js +21 -2
  659. package/dist/index.es751.js +4 -42
  660. package/dist/index.es752.js +4 -46
  661. package/dist/index.es753.js +4 -27
  662. package/dist/index.es754.js +2 -2
  663. package/dist/index.es755.js +42 -4
  664. package/dist/index.es756.js +46 -4
  665. package/dist/index.es757.js +27 -16
  666. package/dist/index.es758.js +2 -22
  667. package/dist/index.es759.js +2 -83
  668. package/dist/index.es76.js +9 -7
  669. package/dist/index.es760.js +2 -14
  670. package/dist/index.es761.js +14 -60
  671. package/dist/index.es762.js +21 -3
  672. package/dist/index.es763.js +82 -22
  673. package/dist/index.es764.js +14 -2
  674. package/dist/index.es765.js +60 -2
  675. package/dist/index.es766.js +3 -23
  676. package/dist/index.es767.js +23 -8
  677. package/dist/index.es768.js +2 -67
  678. package/dist/index.es769.js +2 -52
  679. package/dist/index.es77.js +2 -11
  680. package/dist/index.es770.js +2 -71
  681. package/dist/index.es771.js +2 -2
  682. package/dist/index.es772.js +24 -2
  683. package/dist/index.es773.js +7 -4
  684. package/dist/index.es774.js +65 -15
  685. package/dist/index.es775.js +51 -7
  686. package/dist/index.es776.js +65 -50
  687. package/dist/index.es777.js +5 -19
  688. package/dist/index.es778.js +17 -23
  689. package/dist/index.es779.js +8 -13
  690. package/dist/index.es78.js +8 -11
  691. package/dist/index.es780.js +52 -24
  692. package/dist/index.es781.js +19 -5
  693. package/dist/index.es782.js +23 -7
  694. package/dist/index.es783.js +13 -58
  695. package/dist/index.es784.js +25 -32
  696. package/dist/index.es785.js +5 -10
  697. package/dist/index.es786.js +6 -14
  698. package/dist/index.es787.js +21 -8
  699. package/dist/index.es788.js +57 -6
  700. package/dist/index.es789.js +33 -20
  701. package/dist/index.es79.js +10 -8
  702. package/dist/index.es790.js +9 -57
  703. package/dist/index.es791.js +18 -9
  704. package/dist/index.es792.js +8 -18
  705. package/dist/index.es794.js +56 -26
  706. package/dist/index.es795.js +10 -3
  707. package/dist/index.es796.js +15 -5
  708. package/dist/index.es797.js +6 -70
  709. package/dist/index.es798.js +25 -156
  710. package/dist/index.es799.js +3 -46
  711. package/dist/index.es80.js +11 -3
  712. package/dist/index.es800.js +5 -171
  713. package/dist/index.es801.js +51 -167
  714. package/dist/index.es802.js +151 -138
  715. package/dist/index.es803.js +41 -96
  716. package/dist/index.es804.js +115 -88
  717. package/dist/index.es805.js +184 -48
  718. package/dist/index.es806.js +144 -13
  719. package/dist/index.es807.js +67 -59
  720. package/dist/index.es808.js +142 -12
  721. package/dist/index.es809.js +50 -8
  722. package/dist/index.es81.js +9 -5
  723. package/dist/index.es810.js +14 -10
  724. package/dist/index.es811.js +87 -50
  725. package/dist/index.es812.js +13 -10
  726. package/dist/index.es813.js +10 -8
  727. package/dist/index.es814.js +8 -14
  728. package/dist/index.es815.js +49 -46
  729. package/dist/index.es816.js +8 -80
  730. package/dist/index.es817.js +10 -14
  731. package/dist/index.es818.js +14 -28
  732. package/dist/index.es819.js +52 -4
  733. package/dist/index.es82.js +3 -15
  734. package/dist/index.es820.js +77 -37
  735. package/dist/index.es821.js +14 -5
  736. package/dist/index.es822.js +28 -23
  737. package/dist/index.es823.js +4 -14
  738. package/dist/index.es824.js +36 -36
  739. package/dist/index.es825.js +5 -4
  740. package/dist/index.es826.js +20 -23
  741. package/dist/index.es827.js +14 -6
  742. package/dist/index.es828.js +37 -38
  743. package/dist/index.es829.js +4 -54
  744. package/dist/index.es83.js +5 -2282
  745. package/dist/index.es830.js +23 -63
  746. package/dist/index.es831.js +6 -10
  747. package/dist/index.es832.js +49 -38
  748. package/dist/index.es833.js +38 -54
  749. package/dist/index.es834.js +62 -15
  750. package/dist/index.es835.js +10 -17
  751. package/dist/index.es836.js +44 -7
  752. package/dist/index.es837.js +56 -9
  753. package/dist/index.es838.js +19 -36
  754. package/dist/index.es839.js +17 -13
  755. package/dist/index.es84.js +15 -6
  756. package/dist/index.es840.js +7 -60
  757. package/dist/index.es841.js +9 -13
  758. package/dist/index.es842.js +39 -0
  759. package/dist/index.es843.js +16 -0
  760. package/dist/index.es844.js +62 -0
  761. package/dist/index.es845.js +17 -0
  762. package/dist/index.es85.js +2264 -289
  763. package/dist/index.es86.js +6 -12
  764. package/dist/index.es87.js +305 -31
  765. package/dist/index.es88.js +12 -35
  766. package/dist/index.es89.js +33 -46
  767. package/dist/index.es90.js +34 -29
  768. package/dist/index.es91.js +42 -26
  769. package/dist/index.es92.js +30 -12
  770. package/dist/index.es93.js +28 -257
  771. package/dist/index.es94.js +3 -6
  772. package/dist/index.es95.js +5 -2
  773. package/dist/index.es96.js +7 -7
  774. package/dist/index.es97.js +5 -5
  775. package/dist/index.es98.js +10 -10
  776. package/dist/index.es99.js +7 -7
  777. package/dist/style.css +27 -0
  778. package/package.json +2 -4
@@ -1,146 +1,173 @@
1
- import { wrapConnectorHooks as s } from "./index.es805.js";
2
- import { isRef as c } from "./index.es806.js";
3
- import { shallowEqual as d } from "./index.es789.js";
4
- function u(i, r) {
5
- if (!(i instanceof r))
1
+ import { invariant as f } from "./index.es781.js";
2
+ import { matchesType as c } from "./index.es825.js";
3
+ import { getSourceClientOffset as v, getDifferenceFromInitialOffset as y } from "./index.es826.js";
4
+ import { areDirty as p } from "./index.es827.js";
5
+ function S(i, t) {
6
+ if (!(i instanceof t))
6
7
  throw new TypeError("Cannot call a class as a function");
7
8
  }
8
- function g(i, r) {
9
- for (var e = 0; e < r.length; e++) {
10
- var t = r[e];
11
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(i, t.key, t);
9
+ function m(i, t) {
10
+ for (var e = 0; e < t.length; e++) {
11
+ var r = t[e];
12
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, r.key, r);
12
13
  }
13
14
  }
14
- function h(i, r, e) {
15
- return r && g(i.prototype, r), i;
15
+ function O(i, t, e) {
16
+ return t && m(i.prototype, t), i;
16
17
  }
17
- function n(i, r, e) {
18
- return r in i ? Object.defineProperty(i, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[r] = e, i;
18
+ function h(i, t, e) {
19
+ return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
19
20
  }
20
- var w = /* @__PURE__ */ function() {
21
- function i(r) {
22
- var e = this;
23
- u(this, i), n(this, "hooks", s({
24
- dragSource: function(a, o) {
25
- e.clearDragSource(), e.dragSourceOptions = o || null, c(a) ? e.dragSourceRef = a : e.dragSourceNode = a, e.reconnectDragSource();
26
- },
27
- dragPreview: function(a, o) {
28
- e.clearDragPreview(), e.dragPreviewOptions = o || null, c(a) ? e.dragPreviewRef = a : e.dragPreviewNode = a, e.reconnectDragPreview();
29
- }
30
- })), n(this, "handlerId", null), n(this, "dragSourceRef", null), n(this, "dragSourceNode", void 0), n(this, "dragSourceOptionsInternal", null), n(this, "dragSourceUnsubscribe", void 0), n(this, "dragPreviewRef", null), n(this, "dragPreviewNode", void 0), n(this, "dragPreviewOptionsInternal", null), n(this, "dragPreviewUnsubscribe", void 0), n(this, "lastConnectedHandlerId", null), n(this, "lastConnectedDragSource", null), n(this, "lastConnectedDragSourceOptions", null), n(this, "lastConnectedDragPreview", null), n(this, "lastConnectedDragPreviewOptions", null), n(this, "backend", void 0), this.backend = r;
21
+ var C = /* @__PURE__ */ function() {
22
+ function i(t, e) {
23
+ S(this, i), h(this, "store", void 0), h(this, "registry", void 0), this.store = t, this.registry = e;
31
24
  }
32
- return h(i, [{
33
- key: "receiveHandlerId",
25
+ return O(i, [{
26
+ key: "subscribeToStateChange",
34
27
  value: function(e) {
35
- this.handlerId !== e && (this.handlerId = e, this.reconnect());
28
+ var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
29
+ handlerIds: void 0
30
+ }, n = a.handlerIds;
31
+ f(typeof e == "function", "listener must be a function."), f(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
32
+ var u = this.store.getState().stateId, s = function() {
33
+ var l = r.store.getState(), o = l.stateId;
34
+ try {
35
+ var d = o === u || o === u + 1 && !p(l.dirtyHandlerIds, n);
36
+ d || e();
37
+ } finally {
38
+ u = o;
39
+ }
40
+ };
41
+ return this.store.subscribe(s);
36
42
  }
37
43
  }, {
38
- key: "connectTarget",
39
- get: function() {
40
- return this.dragSource;
44
+ key: "subscribeToOffsetChange",
45
+ value: function(e) {
46
+ var r = this;
47
+ f(typeof e == "function", "listener must be a function.");
48
+ var a = this.store.getState().dragOffset, n = function() {
49
+ var s = r.store.getState().dragOffset;
50
+ s !== a && (a = s, e());
51
+ };
52
+ return this.store.subscribe(n);
41
53
  }
42
54
  }, {
43
- key: "dragSourceOptions",
44
- get: function() {
45
- return this.dragSourceOptionsInternal;
46
- },
47
- set: function(e) {
48
- this.dragSourceOptionsInternal = e;
55
+ key: "canDragSource",
56
+ value: function(e) {
57
+ if (!e)
58
+ return !1;
59
+ var r = this.registry.getSource(e);
60
+ return f(r, "Expected to find a valid source. sourceId=".concat(e)), this.isDragging() ? !1 : r.canDrag(this, e);
49
61
  }
50
62
  }, {
51
- key: "dragPreviewOptions",
52
- get: function() {
53
- return this.dragPreviewOptionsInternal;
54
- },
55
- set: function(e) {
56
- this.dragPreviewOptionsInternal = e;
63
+ key: "canDropOnTarget",
64
+ value: function(e) {
65
+ if (!e)
66
+ return !1;
67
+ var r = this.registry.getTarget(e);
68
+ if (f(r, "Expected to find a valid target. targetId=".concat(e)), !this.isDragging() || this.didDrop())
69
+ return !1;
70
+ var a = this.registry.getTargetType(e), n = this.getItemType();
71
+ return c(a, n) && r.canDrop(this, e);
57
72
  }
58
73
  }, {
59
- key: "reconnect",
74
+ key: "isDragging",
60
75
  value: function() {
61
- this.reconnectDragSource(), this.reconnectDragPreview();
76
+ return !!this.getItemType();
62
77
  }
63
78
  }, {
64
- key: "reconnectDragSource",
65
- value: function() {
66
- var e = this.dragSource, t = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
67
- if (t && this.disconnectDragSource(), !!this.handlerId) {
68
- if (!e) {
69
- this.lastConnectedDragSource = e;
70
- return;
71
- }
72
- t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = e, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, e, this.dragSourceOptions));
73
- }
79
+ key: "isDraggingSource",
80
+ value: function(e) {
81
+ if (!e)
82
+ return !1;
83
+ var r = this.registry.getSource(e, !0);
84
+ if (f(r, "Expected to find a valid source. sourceId=".concat(e)), !this.isDragging() || !this.isSourcePublic())
85
+ return !1;
86
+ var a = this.registry.getSourceType(e), n = this.getItemType();
87
+ return a !== n ? !1 : r.isDragging(this, e);
74
88
  }
75
89
  }, {
76
- key: "reconnectDragPreview",
90
+ key: "isOverTarget",
91
+ value: function(e) {
92
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
93
+ shallow: !1
94
+ };
95
+ if (!e)
96
+ return !1;
97
+ var a = r.shallow;
98
+ if (!this.isDragging())
99
+ return !1;
100
+ var n = this.registry.getTargetType(e), u = this.getItemType();
101
+ if (u && !c(n, u))
102
+ return !1;
103
+ var s = this.getTargetIds();
104
+ if (!s.length)
105
+ return !1;
106
+ var g = s.indexOf(e);
107
+ return a ? g === s.length - 1 : g > -1;
108
+ }
109
+ }, {
110
+ key: "getItemType",
77
111
  value: function() {
78
- var e = this.dragPreview, t = this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
79
- if (t && this.disconnectDragPreview(), !!this.handlerId) {
80
- if (!e) {
81
- this.lastConnectedDragPreview = e;
82
- return;
83
- }
84
- t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = e, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, e, this.dragPreviewOptions));
85
- }
112
+ return this.store.getState().dragOperation.itemType;
86
113
  }
87
114
  }, {
88
- key: "didHandlerIdChange",
115
+ key: "getItem",
89
116
  value: function() {
90
- return this.lastConnectedHandlerId !== this.handlerId;
117
+ return this.store.getState().dragOperation.item;
91
118
  }
92
119
  }, {
93
- key: "didConnectedDragSourceChange",
120
+ key: "getSourceId",
94
121
  value: function() {
95
- return this.lastConnectedDragSource !== this.dragSource;
122
+ return this.store.getState().dragOperation.sourceId;
96
123
  }
97
124
  }, {
98
- key: "didConnectedDragPreviewChange",
125
+ key: "getTargetIds",
99
126
  value: function() {
100
- return this.lastConnectedDragPreview !== this.dragPreview;
127
+ return this.store.getState().dragOperation.targetIds;
101
128
  }
102
129
  }, {
103
- key: "didDragSourceOptionsChange",
130
+ key: "getDropResult",
104
131
  value: function() {
105
- return !d(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
132
+ return this.store.getState().dragOperation.dropResult;
106
133
  }
107
134
  }, {
108
- key: "didDragPreviewOptionsChange",
135
+ key: "didDrop",
109
136
  value: function() {
110
- return !d(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
137
+ return this.store.getState().dragOperation.didDrop;
111
138
  }
112
139
  }, {
113
- key: "disconnectDragSource",
140
+ key: "isSourcePublic",
114
141
  value: function() {
115
- this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
142
+ return !!this.store.getState().dragOperation.isSourcePublic;
116
143
  }
117
144
  }, {
118
- key: "disconnectDragPreview",
145
+ key: "getInitialClientOffset",
119
146
  value: function() {
120
- this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null, this.dragPreviewRef = null);
147
+ return this.store.getState().dragOffset.initialClientOffset;
121
148
  }
122
149
  }, {
123
- key: "dragSource",
124
- get: function() {
125
- return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;
150
+ key: "getInitialSourceClientOffset",
151
+ value: function() {
152
+ return this.store.getState().dragOffset.initialSourceClientOffset;
126
153
  }
127
154
  }, {
128
- key: "dragPreview",
129
- get: function() {
130
- return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;
155
+ key: "getClientOffset",
156
+ value: function() {
157
+ return this.store.getState().dragOffset.clientOffset;
131
158
  }
132
159
  }, {
133
- key: "clearDragSource",
160
+ key: "getSourceClientOffset",
134
161
  value: function() {
135
- this.dragSourceNode = null, this.dragSourceRef = null;
162
+ return v(this.store.getState().dragOffset);
136
163
  }
137
164
  }, {
138
- key: "clearDragPreview",
165
+ key: "getDifferenceFromInitialOffset",
139
166
  value: function() {
140
- this.dragPreviewNode = null, this.dragPreviewRef = null;
167
+ return y(this.store.getState().dragOffset);
141
168
  }
142
169
  }]), i;
143
170
  }();
144
171
  export {
145
- w as SourceConnector
172
+ C as DragDropMonitorImpl
146
173
  };
@@ -1,53 +1,189 @@
1
- import { invariant as f } from "./index.es777.js";
2
- import { isValidElement as u, cloneElement as a } from "react";
3
- function l(n) {
4
- if (typeof n.type != "string") {
5
- var e = n.type.displayName || n.type.name || "the component";
6
- throw new Error("Only native element nodes can now be passed to React DnD connectors." + "You can either wrap ".concat(e, " into a <div>, or turn it into a ") + "drag source or a drop target itself.");
1
+ import { invariant as o } from "./index.es781.js";
2
+ import { addSource as v, addTarget as y, removeSource as S, removeTarget as T } from "./index.es828.js";
3
+ import { getNextUniqueId as m } from "./index.es829.js";
4
+ import { HandlerRole as u } from "./index.es800.js";
5
+ import { validateType as d, validateSourceContract as E, validateTargetContract as b } from "./index.es830.js";
6
+ import { asap as k } from "./index.es831.js";
7
+ function w(t, r) {
8
+ if (!(t instanceof r))
9
+ throw new TypeError("Cannot call a class as a function");
10
+ }
11
+ function I(t, r) {
12
+ for (var e = 0; e < r.length; e++) {
13
+ var n = r[e];
14
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
15
+ }
16
+ }
17
+ function R(t, r, e) {
18
+ return r && I(t.prototype, r), t;
19
+ }
20
+ function s(t, r, e) {
21
+ return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
22
+ }
23
+ function _(t, r) {
24
+ return H(t) || C(t, r) || x(t, r) || A();
25
+ }
26
+ function A() {
27
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
29
+ }
30
+ function x(t, r) {
31
+ if (t) {
32
+ if (typeof t == "string") return f(t, r);
33
+ var e = Object.prototype.toString.call(t).slice(8, -1);
34
+ if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
35
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return f(t, r);
36
+ }
37
+ }
38
+ function f(t, r) {
39
+ (r == null || r > t.length) && (r = t.length);
40
+ for (var e = 0, n = new Array(r); e < r; e++)
41
+ n[e] = t[e];
42
+ return n;
43
+ }
44
+ function C(t, r) {
45
+ var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
46
+ if (e != null) {
47
+ var n = [], a = !0, i = !1, c, l;
48
+ try {
49
+ for (e = e.call(t); !(a = (c = e.next()).done) && (n.push(c.value), !(r && n.length === r)); a = !0)
50
+ ;
51
+ } catch (g) {
52
+ i = !0, l = g;
53
+ } finally {
54
+ try {
55
+ !a && e.return != null && e.return();
56
+ } finally {
57
+ if (i) throw l;
58
+ }
59
+ }
60
+ return n;
61
+ }
62
+ }
63
+ function H(t) {
64
+ if (Array.isArray(t)) return t;
65
+ }
66
+ function O(t) {
67
+ var r = m().toString();
68
+ switch (t) {
69
+ case u.SOURCE:
70
+ return "S".concat(r);
71
+ case u.TARGET:
72
+ return "T".concat(r);
73
+ default:
74
+ throw new Error("Unknown Handler Role: ".concat(t));
75
+ }
76
+ }
77
+ function p(t) {
78
+ switch (t[0]) {
79
+ case "S":
80
+ return u.SOURCE;
81
+ case "T":
82
+ return u.TARGET;
83
+ default:
84
+ o(!1, "Cannot parse handler ID: ".concat(t));
7
85
  }
8
86
  }
9
- function p(n) {
10
- return function() {
11
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
12
- if (!u(e)) {
13
- var o = e;
14
- return n(o, t), o;
15
- }
16
- var r = e;
17
- l(r);
18
- var c = t ? function(s) {
19
- return n(s, t);
20
- } : n;
21
- return m(r, c);
22
- };
23
- }
24
- function v(n) {
25
- var e = {};
26
- return Object.keys(n).forEach(function(t) {
27
- var o = n[t];
28
- if (t.endsWith("Ref"))
29
- e[t] = n[t];
30
- else {
31
- var r = p(o);
32
- e[t] = function() {
33
- return r;
34
- };
35
- }
36
- }), e;
37
- }
38
- function i(n, e) {
39
- typeof n == "function" ? n(e) : n.current = e;
40
- }
41
- function m(n, e) {
42
- var t = n.ref;
43
- return f(typeof t != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), t ? a(n, {
44
- ref: function(r) {
45
- i(t, r), i(e, r);
46
- }
47
- }) : a(n, {
48
- ref: e
49
- });
87
+ function h(t, r) {
88
+ var e = t.entries(), n = !1;
89
+ do {
90
+ var a = e.next(), i = a.done, c = _(a.value, 2), l = c[1];
91
+ if (l === r)
92
+ return !0;
93
+ n = !!i;
94
+ } while (!n);
95
+ return !1;
50
96
  }
97
+ var N = /* @__PURE__ */ function() {
98
+ function t(r) {
99
+ w(this, t), s(this, "types", /* @__PURE__ */ new Map()), s(this, "dragSources", /* @__PURE__ */ new Map()), s(this, "dropTargets", /* @__PURE__ */ new Map()), s(this, "pinnedSourceId", null), s(this, "pinnedSource", null), s(this, "store", void 0), this.store = r;
100
+ }
101
+ return R(t, [{
102
+ key: "addSource",
103
+ value: function(e, n) {
104
+ d(e), E(n);
105
+ var a = this.addHandler(u.SOURCE, e, n);
106
+ return this.store.dispatch(v(a)), a;
107
+ }
108
+ }, {
109
+ key: "addTarget",
110
+ value: function(e, n) {
111
+ d(e, !0), b(n);
112
+ var a = this.addHandler(u.TARGET, e, n);
113
+ return this.store.dispatch(y(a)), a;
114
+ }
115
+ }, {
116
+ key: "containsHandler",
117
+ value: function(e) {
118
+ return h(this.dragSources, e) || h(this.dropTargets, e);
119
+ }
120
+ }, {
121
+ key: "getSource",
122
+ value: function(e) {
123
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
124
+ o(this.isSourceId(e), "Expected a valid source ID.");
125
+ var a = n && e === this.pinnedSourceId, i = a ? this.pinnedSource : this.dragSources.get(e);
126
+ return i;
127
+ }
128
+ }, {
129
+ key: "getTarget",
130
+ value: function(e) {
131
+ return o(this.isTargetId(e), "Expected a valid target ID."), this.dropTargets.get(e);
132
+ }
133
+ }, {
134
+ key: "getSourceType",
135
+ value: function(e) {
136
+ return o(this.isSourceId(e), "Expected a valid source ID."), this.types.get(e);
137
+ }
138
+ }, {
139
+ key: "getTargetType",
140
+ value: function(e) {
141
+ return o(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
142
+ }
143
+ }, {
144
+ key: "isSourceId",
145
+ value: function(e) {
146
+ var n = p(e);
147
+ return n === u.SOURCE;
148
+ }
149
+ }, {
150
+ key: "isTargetId",
151
+ value: function(e) {
152
+ var n = p(e);
153
+ return n === u.TARGET;
154
+ }
155
+ }, {
156
+ key: "removeSource",
157
+ value: function(e) {
158
+ var n = this;
159
+ o(this.getSource(e), "Expected an existing source."), this.store.dispatch(S(e)), k(function() {
160
+ n.dragSources.delete(e), n.types.delete(e);
161
+ });
162
+ }
163
+ }, {
164
+ key: "removeTarget",
165
+ value: function(e) {
166
+ o(this.getTarget(e), "Expected an existing target."), this.store.dispatch(T(e)), this.dropTargets.delete(e), this.types.delete(e);
167
+ }
168
+ }, {
169
+ key: "pinSource",
170
+ value: function(e) {
171
+ var n = this.getSource(e);
172
+ o(n, "Expected an existing source."), this.pinnedSourceId = e, this.pinnedSource = n;
173
+ }
174
+ }, {
175
+ key: "unpinSource",
176
+ value: function() {
177
+ o(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
178
+ }
179
+ }, {
180
+ key: "addHandler",
181
+ value: function(e, n, a) {
182
+ var i = O(e);
183
+ return this.types.set(i, n), e === u.SOURCE ? this.dragSources.set(i, a) : e === u.TARGET && this.dropTargets.set(i, a), i;
184
+ }
185
+ }]), t;
186
+ }();
51
187
  export {
52
- v as wrapConnectorHooks
188
+ N as HandlerRegistryImpl
53
189
  };
@@ -1,17 +1,148 @@
1
- function o(e) {
2
- "@babel/helpers - typeof";
3
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? o = function(t) {
4
- return typeof t;
5
- } : o = function(t) {
6
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
7
- }, o(e);
1
+ import { invariant as o } from "./index.es781.js";
2
+ function l(n, e) {
3
+ if (!(n instanceof e))
4
+ throw new TypeError("Cannot call a class as a function");
8
5
  }
9
- function r(e) {
10
- return (
11
- // eslint-disable-next-line no-prototype-builtins
12
- e !== null && o(e) === "object" && Object.prototype.hasOwnProperty.call(e, "current")
13
- );
6
+ function s(n, e) {
7
+ for (var t = 0; t < e.length; t++) {
8
+ var r = e[t];
9
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, r.key, r);
10
+ }
14
11
  }
12
+ function c(n, e, t) {
13
+ return e && s(n.prototype, e), n;
14
+ }
15
+ function u(n, e, t) {
16
+ return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
17
+ }
18
+ var i = !1, a = !1, f = /* @__PURE__ */ function() {
19
+ function n(e) {
20
+ l(this, n), u(this, "internalMonitor", void 0), u(this, "sourceId", null), this.internalMonitor = e.getMonitor();
21
+ }
22
+ return c(n, [{
23
+ key: "receiveHandlerId",
24
+ value: function(t) {
25
+ this.sourceId = t;
26
+ }
27
+ }, {
28
+ key: "getHandlerId",
29
+ value: function() {
30
+ return this.sourceId;
31
+ }
32
+ }, {
33
+ key: "canDrag",
34
+ value: function() {
35
+ o(!i, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
36
+ try {
37
+ return i = !0, this.internalMonitor.canDragSource(this.sourceId);
38
+ } finally {
39
+ i = !1;
40
+ }
41
+ }
42
+ }, {
43
+ key: "isDragging",
44
+ value: function() {
45
+ if (!this.sourceId)
46
+ return !1;
47
+ o(!a, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
48
+ try {
49
+ return a = !0, this.internalMonitor.isDraggingSource(this.sourceId);
50
+ } finally {
51
+ a = !1;
52
+ }
53
+ }
54
+ }, {
55
+ key: "subscribeToStateChange",
56
+ value: function(t, r) {
57
+ return this.internalMonitor.subscribeToStateChange(t, r);
58
+ }
59
+ }, {
60
+ key: "isDraggingSource",
61
+ value: function(t) {
62
+ return this.internalMonitor.isDraggingSource(t);
63
+ }
64
+ }, {
65
+ key: "isOverTarget",
66
+ value: function(t, r) {
67
+ return this.internalMonitor.isOverTarget(t, r);
68
+ }
69
+ }, {
70
+ key: "getTargetIds",
71
+ value: function() {
72
+ return this.internalMonitor.getTargetIds();
73
+ }
74
+ }, {
75
+ key: "isSourcePublic",
76
+ value: function() {
77
+ return this.internalMonitor.isSourcePublic();
78
+ }
79
+ }, {
80
+ key: "getSourceId",
81
+ value: function() {
82
+ return this.internalMonitor.getSourceId();
83
+ }
84
+ }, {
85
+ key: "subscribeToOffsetChange",
86
+ value: function(t) {
87
+ return this.internalMonitor.subscribeToOffsetChange(t);
88
+ }
89
+ }, {
90
+ key: "canDragSource",
91
+ value: function(t) {
92
+ return this.internalMonitor.canDragSource(t);
93
+ }
94
+ }, {
95
+ key: "canDropOnTarget",
96
+ value: function(t) {
97
+ return this.internalMonitor.canDropOnTarget(t);
98
+ }
99
+ }, {
100
+ key: "getItemType",
101
+ value: function() {
102
+ return this.internalMonitor.getItemType();
103
+ }
104
+ }, {
105
+ key: "getItem",
106
+ value: function() {
107
+ return this.internalMonitor.getItem();
108
+ }
109
+ }, {
110
+ key: "getDropResult",
111
+ value: function() {
112
+ return this.internalMonitor.getDropResult();
113
+ }
114
+ }, {
115
+ key: "didDrop",
116
+ value: function() {
117
+ return this.internalMonitor.didDrop();
118
+ }
119
+ }, {
120
+ key: "getInitialClientOffset",
121
+ value: function() {
122
+ return this.internalMonitor.getInitialClientOffset();
123
+ }
124
+ }, {
125
+ key: "getInitialSourceClientOffset",
126
+ value: function() {
127
+ return this.internalMonitor.getInitialSourceClientOffset();
128
+ }
129
+ }, {
130
+ key: "getSourceClientOffset",
131
+ value: function() {
132
+ return this.internalMonitor.getSourceClientOffset();
133
+ }
134
+ }, {
135
+ key: "getClientOffset",
136
+ value: function() {
137
+ return this.internalMonitor.getClientOffset();
138
+ }
139
+ }, {
140
+ key: "getDifferenceFromInitialOffset",
141
+ value: function() {
142
+ return this.internalMonitor.getDifferenceFromInitialOffset();
143
+ }
144
+ }]), n;
145
+ }();
15
146
  export {
16
- r as isRef
147
+ f as DragSourceMonitorImpl
17
148
  };