@new-black/lyra 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (608) hide show
  1. package/dist/lyra10.cjs +1 -1
  2. package/dist/lyra10.js +1 -1
  3. package/dist/lyra100.cjs +1 -1
  4. package/dist/lyra100.js +19 -5
  5. package/dist/lyra101.cjs +1 -1
  6. package/dist/lyra101.js +11 -10
  7. package/dist/lyra102.cjs +1 -1
  8. package/dist/lyra102.js +15 -7
  9. package/dist/lyra103.cjs +1 -1
  10. package/dist/lyra103.js +5 -4
  11. package/dist/lyra104.cjs +1 -1
  12. package/dist/lyra104.js +9 -2
  13. package/dist/lyra105.cjs +1 -1
  14. package/dist/lyra105.js +9 -17
  15. package/dist/lyra106.cjs +1 -1
  16. package/dist/lyra106.js +8 -13
  17. package/dist/lyra107.cjs +1 -1
  18. package/dist/lyra107.js +37 -32
  19. package/dist/lyra108.cjs +1 -1
  20. package/dist/lyra108.js +3 -30
  21. package/dist/lyra109.cjs +1 -1
  22. package/dist/lyra109.js +4 -39
  23. package/dist/lyra11.cjs +1 -1
  24. package/dist/lyra11.js +2 -2
  25. package/dist/lyra110.cjs +1 -1
  26. package/dist/lyra110.js +4 -9
  27. package/dist/lyra111.cjs +1 -1
  28. package/dist/lyra111.js +10 -3
  29. package/dist/lyra112.cjs +1 -1
  30. package/dist/lyra112.js +6 -47
  31. package/dist/lyra113.cjs +1 -1
  32. package/dist/lyra113.js +4 -7
  33. package/dist/lyra114.cjs +1 -1
  34. package/dist/lyra114.js +2 -3
  35. package/dist/lyra115.cjs +1 -1
  36. package/dist/lyra115.js +17 -27
  37. package/dist/lyra116.cjs +1 -1
  38. package/dist/lyra116.js +13 -15
  39. package/dist/lyra117.cjs +1 -1
  40. package/dist/lyra117.js +31 -9
  41. package/dist/lyra118.cjs +1 -1
  42. package/dist/lyra118.js +29 -8
  43. package/dist/lyra119.cjs +1 -1
  44. package/dist/lyra119.js +39 -2
  45. package/dist/lyra12.cjs +1 -1
  46. package/dist/lyra12.js +1 -1
  47. package/dist/lyra120.cjs +1 -1
  48. package/dist/lyra120.js +10 -3
  49. package/dist/lyra121.cjs +1 -1
  50. package/dist/lyra121.js +3 -3
  51. package/dist/lyra122.cjs +1 -1
  52. package/dist/lyra122.js +48 -2
  53. package/dist/lyra123.cjs +1 -1
  54. package/dist/lyra123.js +7 -258
  55. package/dist/lyra124.cjs +1 -1
  56. package/dist/lyra124.js +3 -25
  57. package/dist/lyra125.cjs +1 -1
  58. package/dist/lyra125.js +28 -16
  59. package/dist/lyra126.cjs +1 -1
  60. package/dist/lyra126.js +15 -3
  61. package/dist/lyra127.cjs +1 -1
  62. package/dist/lyra127.js +10 -10
  63. package/dist/lyra128.cjs +1 -1
  64. package/dist/lyra128.js +9 -3
  65. package/dist/lyra129.cjs +1 -1
  66. package/dist/lyra129.js +2 -27
  67. package/dist/lyra13.cjs +1 -1
  68. package/dist/lyra13.js +1 -1
  69. package/dist/lyra130.cjs +1 -1
  70. package/dist/lyra130.js +3 -201
  71. package/dist/lyra131.cjs +1 -1
  72. package/dist/lyra131.js +3 -5
  73. package/dist/lyra132.cjs +1 -1
  74. package/dist/lyra132.js +2 -21
  75. package/dist/lyra133.cjs +1 -1
  76. package/dist/lyra133.js +257 -10
  77. package/dist/lyra134.cjs +1 -1
  78. package/dist/lyra134.js +24 -3
  79. package/dist/lyra135.cjs +1 -1
  80. package/dist/lyra135.js +16 -26
  81. package/dist/lyra136.cjs +1 -1
  82. package/dist/lyra136.js +3 -3
  83. package/dist/lyra137.cjs +1 -1
  84. package/dist/lyra137.js +10 -4
  85. package/dist/lyra138.cjs +1 -1
  86. package/dist/lyra138.js +3 -25
  87. package/dist/lyra139.cjs +1 -1
  88. package/dist/lyra139.js +27 -11
  89. package/dist/lyra14.cjs +1 -1
  90. package/dist/lyra14.js +5 -5
  91. package/dist/lyra140.cjs +1 -1
  92. package/dist/lyra140.js +201 -2
  93. package/dist/lyra141.cjs +1 -1
  94. package/dist/lyra141.js +4 -5
  95. package/dist/lyra142.cjs +1 -1
  96. package/dist/lyra142.js +21 -19
  97. package/dist/lyra143.cjs +1 -1
  98. package/dist/lyra143.js +10 -118
  99. package/dist/lyra144.cjs +1 -1
  100. package/dist/lyra144.js +3 -27
  101. package/dist/lyra145.cjs +1 -1
  102. package/dist/lyra145.js +24 -61
  103. package/dist/lyra146.cjs +1 -1
  104. package/dist/lyra146.js +3 -33
  105. package/dist/lyra147.cjs +1 -1
  106. package/dist/lyra147.js +5 -15
  107. package/dist/lyra148.cjs +1 -1
  108. package/dist/lyra148.js +24 -40
  109. package/dist/lyra149.cjs +1 -1
  110. package/dist/lyra149.js +11 -2
  111. package/dist/lyra15.cjs +1 -1
  112. package/dist/lyra15.js +2 -2
  113. package/dist/lyra150.cjs +1 -1
  114. package/dist/lyra150.js +2 -3
  115. package/dist/lyra151.cjs +1 -1
  116. package/dist/lyra151.js +5 -10
  117. package/dist/lyra152.cjs +1 -1
  118. package/dist/lyra152.js +19 -10
  119. package/dist/lyra153.cjs +1 -1
  120. package/dist/lyra153.js +118 -8
  121. package/dist/lyra154.cjs +1 -1
  122. package/dist/lyra154.js +26 -15
  123. package/dist/lyra155.cjs +1 -1
  124. package/dist/lyra155.js +63 -10
  125. package/dist/lyra156.cjs +1 -1
  126. package/dist/lyra156.js +34 -14
  127. package/dist/lyra157.cjs +1 -1
  128. package/dist/lyra157.js +13 -63
  129. package/dist/lyra158.cjs +1 -1
  130. package/dist/lyra158.js +41 -4
  131. package/dist/lyra159.cjs +1 -1
  132. package/dist/lyra159.js +2 -2
  133. package/dist/lyra16.cjs +1 -1
  134. package/dist/lyra16.js +1 -1
  135. package/dist/lyra160.cjs +1 -1
  136. package/dist/lyra160.js +3 -15
  137. package/dist/lyra161.cjs +1 -1
  138. package/dist/lyra161.js +11 -16
  139. package/dist/lyra162.cjs +1 -1
  140. package/dist/lyra162.js +10 -4
  141. package/dist/lyra163.cjs +1 -1
  142. package/dist/lyra163.js +9 -2
  143. package/dist/lyra164.cjs +1 -1
  144. package/dist/lyra164.js +16 -6
  145. package/dist/lyra165.cjs +1 -1
  146. package/dist/lyra165.js +10 -53
  147. package/dist/lyra166.cjs +1 -1
  148. package/dist/lyra166.js +14 -17
  149. package/dist/lyra167.cjs +1 -1
  150. package/dist/lyra167.js +63 -7
  151. package/dist/lyra168.cjs +1 -1
  152. package/dist/lyra168.js +4 -2
  153. package/dist/lyra169.cjs +1 -1
  154. package/dist/lyra169.js +2 -6
  155. package/dist/lyra17.cjs +1 -1
  156. package/dist/lyra17.js +1 -1
  157. package/dist/lyra170.cjs +1 -1
  158. package/dist/lyra170.js +15 -4
  159. package/dist/lyra171.cjs +1 -1
  160. package/dist/lyra171.js +16 -2
  161. package/dist/lyra172.cjs +1 -1
  162. package/dist/lyra172.js +4 -2
  163. package/dist/lyra173.cjs +1 -1
  164. package/dist/lyra173.js +2 -5
  165. package/dist/lyra174.cjs +1 -1
  166. package/dist/lyra174.js +7 -3
  167. package/dist/lyra175.cjs +1 -1
  168. package/dist/lyra175.js +53 -7
  169. package/dist/lyra176.cjs +1 -1
  170. package/dist/lyra176.js +16 -15
  171. package/dist/lyra177.cjs +1 -1
  172. package/dist/lyra177.js +9 -2
  173. package/dist/lyra178.cjs +1 -1
  174. package/dist/lyra178.js +2 -2
  175. package/dist/lyra179.cjs +1 -1
  176. package/dist/lyra179.js +6 -6
  177. package/dist/lyra18.cjs +1 -1
  178. package/dist/lyra18.js +2 -2
  179. package/dist/lyra180.cjs +1 -1
  180. package/dist/lyra180.js +4 -5
  181. package/dist/lyra181.cjs +1 -1
  182. package/dist/lyra181.js +2 -9
  183. package/dist/lyra182.cjs +1 -1
  184. package/dist/lyra182.js +2 -7
  185. package/dist/lyra183.cjs +1 -1
  186. package/dist/lyra183.js +4 -21
  187. package/dist/lyra184.cjs +1 -1
  188. package/dist/lyra184.js +3 -33
  189. package/dist/lyra185.cjs +1 -1
  190. package/dist/lyra185.js +7 -36
  191. package/dist/lyra186.cjs +1 -1
  192. package/dist/lyra186.js +15 -29
  193. package/dist/lyra187.cjs +1 -1
  194. package/dist/lyra187.js +2 -23
  195. package/dist/lyra188.cjs +1 -1
  196. package/dist/lyra188.js +2 -50
  197. package/dist/lyra189.cjs +1 -1
  198. package/dist/lyra189.js +6 -2
  199. package/dist/lyra19.cjs +1 -1
  200. package/dist/lyra19.js +2 -2
  201. package/dist/lyra190.cjs +1 -1
  202. package/dist/lyra190.js +5 -2
  203. package/dist/lyra191.cjs +1 -1
  204. package/dist/lyra191.js +8 -7
  205. package/dist/lyra192.cjs +1 -1
  206. package/dist/lyra192.js +7 -6
  207. package/dist/lyra193.cjs +1 -1
  208. package/dist/lyra193.js +22 -33
  209. package/dist/lyra194.cjs +1 -1
  210. package/dist/lyra194.js +32 -17
  211. package/dist/lyra195.cjs +1 -1
  212. package/dist/lyra195.js +33 -44
  213. package/dist/lyra196.cjs +1 -1
  214. package/dist/lyra196.js +29 -3
  215. package/dist/lyra197.cjs +1 -1
  216. package/dist/lyra197.js +22 -5
  217. package/dist/lyra198.cjs +1 -1
  218. package/dist/lyra198.js +46 -27
  219. package/dist/lyra199.cjs +1 -1
  220. package/dist/lyra199.js +2 -6
  221. package/dist/lyra2.cjs +1 -1
  222. package/dist/lyra2.js +12 -12
  223. package/dist/lyra20.cjs +1 -1
  224. package/dist/lyra20.js +1 -1
  225. package/dist/lyra200.cjs +1 -1
  226. package/dist/lyra200.js +2 -4
  227. package/dist/lyra201.cjs +1 -1
  228. package/dist/lyra201.js +7 -11
  229. package/dist/lyra202.cjs +1 -1
  230. package/dist/lyra202.js +6 -2
  231. package/dist/lyra203.cjs +1 -1
  232. package/dist/lyra203.js +32 -12
  233. package/dist/lyra204.cjs +1 -1
  234. package/dist/lyra204.js +17 -24
  235. package/dist/lyra205.cjs +1 -1
  236. package/dist/lyra205.js +45 -9
  237. package/dist/lyra206.cjs +1 -1
  238. package/dist/lyra206.js +3 -38
  239. package/dist/lyra207.cjs +1 -1
  240. package/dist/lyra207.js +5 -1997
  241. package/dist/lyra208.cjs +1 -1
  242. package/dist/lyra208.js +29 -5
  243. package/dist/lyra209.cjs +1 -1
  244. package/dist/lyra209.js +5 -71
  245. package/dist/lyra210.cjs +1 -9
  246. package/dist/lyra210.js +3 -47
  247. package/dist/lyra211.cjs +1 -9
  248. package/dist/lyra211.js +11 -82
  249. package/dist/lyra212.cjs +1 -1
  250. package/dist/lyra212.js +2 -22
  251. package/dist/lyra213.cjs +1 -1
  252. package/dist/lyra213.js +96 -18
  253. package/dist/lyra214.cjs +1 -1
  254. package/dist/lyra214.js +24 -24
  255. package/dist/lyra215.cjs +1 -1
  256. package/dist/lyra215.js +39 -10
  257. package/dist/lyra216.cjs +1 -1
  258. package/dist/lyra216.js +2 -24
  259. package/dist/lyra217.cjs +1 -1
  260. package/dist/lyra217.js +2 -26
  261. package/dist/lyra218.cjs +1 -1
  262. package/dist/lyra218.js +21 -70
  263. package/dist/lyra219.cjs +1 -1
  264. package/dist/lyra219.js +19 -41
  265. package/dist/lyra220.cjs +1 -1
  266. package/dist/lyra220.js +26 -16
  267. package/dist/lyra221.cjs +1 -1
  268. package/dist/lyra221.js +9 -36
  269. package/dist/lyra222.cjs +1 -1
  270. package/dist/lyra222.js +21 -67
  271. package/dist/lyra223.cjs +1 -1
  272. package/dist/lyra223.js +25 -22
  273. package/dist/lyra224.cjs +1 -1
  274. package/dist/lyra224.js +63 -36
  275. package/dist/lyra225.cjs +1 -1
  276. package/dist/lyra225.js +39 -38
  277. package/dist/lyra226.cjs +1 -9
  278. package/dist/lyra226.js +12 -43
  279. package/dist/lyra227.cjs +1 -1
  280. package/dist/lyra227.js +37 -2
  281. package/dist/lyra228.cjs +1 -1
  282. package/dist/lyra228.js +68 -40
  283. package/dist/lyra229.cjs +1 -1
  284. package/dist/lyra229.js +23 -13
  285. package/dist/lyra23.cjs +1 -1
  286. package/dist/lyra23.js +6 -5
  287. package/dist/lyra230.cjs +1 -1
  288. package/dist/lyra230.js +44 -4
  289. package/dist/lyra231.cjs +1 -1
  290. package/dist/lyra231.js +38 -581
  291. package/dist/lyra232.cjs +9 -1
  292. package/dist/lyra232.js +47 -11
  293. package/dist/lyra233.cjs +1 -1
  294. package/dist/lyra233.js +2 -2
  295. package/dist/lyra234.cjs +1 -1
  296. package/dist/lyra234.js +41 -28
  297. package/dist/lyra235.cjs +1 -1
  298. package/dist/lyra235.js +12 -5
  299. package/dist/lyra236.cjs +1 -1
  300. package/dist/lyra236.js +4 -4
  301. package/dist/lyra237.cjs +1 -1
  302. package/dist/lyra237.js +582 -12
  303. package/dist/lyra238.cjs +1 -1
  304. package/dist/lyra238.js +11 -15
  305. package/dist/lyra239.cjs +1 -1
  306. package/dist/lyra239.js +2 -23
  307. package/dist/lyra24.cjs +1 -1
  308. package/dist/lyra24.js +3 -3
  309. package/dist/lyra240.cjs +1 -1
  310. package/dist/lyra240.js +29 -8
  311. package/dist/lyra241.cjs +1 -1
  312. package/dist/lyra241.js +5 -19
  313. package/dist/lyra242.cjs +1 -1
  314. package/dist/lyra242.js +3 -113
  315. package/dist/lyra243.cjs +1 -1
  316. package/dist/lyra243.js +14 -8
  317. package/dist/lyra244.cjs +1 -1
  318. package/dist/lyra244.js +14 -21
  319. package/dist/lyra245.cjs +1 -1
  320. package/dist/lyra245.js +23 -22
  321. package/dist/lyra246.cjs +1 -1
  322. package/dist/lyra246.js +8 -7
  323. package/dist/lyra247.cjs +1 -1
  324. package/dist/lyra247.js +20 -2
  325. package/dist/lyra248.cjs +1 -1
  326. package/dist/lyra248.js +106 -90
  327. package/dist/lyra249.cjs +1 -1
  328. package/dist/lyra249.js +6 -24
  329. package/dist/lyra25.cjs +1 -1
  330. package/dist/lyra25.js +3 -3
  331. package/dist/lyra250.cjs +1 -1
  332. package/dist/lyra250.js +21 -38
  333. package/dist/lyra251.cjs +1 -1
  334. package/dist/lyra251.js +22 -2
  335. package/dist/lyra252.cjs +1 -1
  336. package/dist/lyra252.js +7 -2
  337. package/dist/lyra253.cjs +1 -1
  338. package/dist/lyra253.js +2 -28
  339. package/dist/lyra254.cjs +1 -1
  340. package/dist/lyra254.js +2 -25
  341. package/dist/lyra255.cjs +1 -1
  342. package/dist/lyra255.js +18 -19
  343. package/dist/lyra256.cjs +1 -1
  344. package/dist/lyra256.js +231 -8
  345. package/dist/lyra257.cjs +1 -1
  346. package/dist/lyra257.js +80 -12
  347. package/dist/lyra258.cjs +1 -1
  348. package/dist/lyra258.js +13 -6
  349. package/dist/lyra259.cjs +1 -1
  350. package/dist/lyra259.js +18 -23
  351. package/dist/lyra26.cjs +1 -1
  352. package/dist/lyra26.js +1 -1
  353. package/dist/lyra260.cjs +1 -1
  354. package/dist/lyra260.js +14 -2
  355. package/dist/lyra261.cjs +1 -1
  356. package/dist/lyra261.js +28 -9
  357. package/dist/lyra262.cjs +1 -1
  358. package/dist/lyra262.js +25 -7
  359. package/dist/lyra263.cjs +1 -1
  360. package/dist/lyra263.js +20 -2
  361. package/dist/lyra264.cjs +1 -1
  362. package/dist/lyra264.js +8 -18
  363. package/dist/lyra265.cjs +1 -1
  364. package/dist/lyra265.js +11 -230
  365. package/dist/lyra266.cjs +1 -1
  366. package/dist/lyra266.js +6 -81
  367. package/dist/lyra267.cjs +1 -1
  368. package/dist/lyra267.js +24 -13
  369. package/dist/lyra268.cjs +1 -1
  370. package/dist/lyra268.js +2 -19
  371. package/dist/lyra269.cjs +1 -1
  372. package/dist/lyra269.js +9 -14
  373. package/dist/lyra27.cjs +1 -1
  374. package/dist/lyra27.js +3 -3
  375. package/dist/lyra270.cjs +1 -1
  376. package/dist/lyra270.js +7 -28
  377. package/dist/lyra271.cjs +1 -1
  378. package/dist/lyra271.js +27 -5
  379. package/dist/lyra272.cjs +1 -1
  380. package/dist/lyra272.js +5 -10
  381. package/dist/lyra273.cjs +1 -1
  382. package/dist/lyra273.js +10 -27
  383. package/dist/lyra274.cjs +1 -1
  384. package/dist/lyra274.js +28 -26
  385. package/dist/lyra275.cjs +1 -1
  386. package/dist/lyra275.js +26 -97
  387. package/dist/lyra276.cjs +1 -1
  388. package/dist/lyra276.js +96 -21
  389. package/dist/lyra277.cjs +1 -1
  390. package/dist/lyra277.js +22 -20
  391. package/dist/lyra278.cjs +1 -1
  392. package/dist/lyra278.js +20 -5
  393. package/dist/lyra279.cjs +1 -1
  394. package/dist/lyra279.js +5 -20
  395. package/dist/lyra28.cjs +1 -1
  396. package/dist/lyra28.js +2 -72
  397. package/dist/lyra280.cjs +1 -1
  398. package/dist/lyra280.js +19 -7
  399. package/dist/lyra281.cjs +1 -1
  400. package/dist/lyra281.js +6 -28
  401. package/dist/lyra282.cjs +1 -1
  402. package/dist/lyra282.js +28 -6
  403. package/dist/lyra283.cjs +1 -1
  404. package/dist/lyra283.js +6 -51
  405. package/dist/lyra284.cjs +1 -1
  406. package/dist/lyra284.js +49 -19
  407. package/dist/lyra285.cjs +1 -1
  408. package/dist/lyra285.js +19 -12
  409. package/dist/lyra286.cjs +1 -1
  410. package/dist/lyra286.js +15 -55
  411. package/dist/lyra287.cjs +1 -1
  412. package/dist/lyra287.js +55 -10
  413. package/dist/lyra288.cjs +1 -1
  414. package/dist/lyra288.js +10 -3
  415. package/dist/lyra289.cjs +1 -1
  416. package/dist/lyra289.js +3 -17
  417. package/dist/lyra29.cjs +1 -1
  418. package/dist/lyra29.js +63 -112
  419. package/dist/lyra290.cjs +1 -1
  420. package/dist/lyra290.js +17 -3
  421. package/dist/lyra291.cjs +1 -1
  422. package/dist/lyra291.js +3 -3
  423. package/dist/lyra292.cjs +1 -1
  424. package/dist/lyra292.js +3 -9
  425. package/dist/lyra293.cjs +1 -1
  426. package/dist/lyra293.js +10 -2
  427. package/dist/lyra294.cjs +1 -1
  428. package/dist/lyra294.js +2 -12
  429. package/dist/lyra295.cjs +1 -1
  430. package/dist/lyra295.js +12 -70
  431. package/dist/lyra297.cjs +1 -1
  432. package/dist/lyra297.js +70 -6
  433. package/dist/lyra298.cjs +1 -1
  434. package/dist/lyra298.js +63 -7
  435. package/dist/lyra299.cjs +1 -1
  436. package/dist/lyra299.js +22 -15
  437. package/dist/lyra3.cjs +1 -1
  438. package/dist/lyra3.js +2 -2
  439. package/dist/lyra30.cjs +1 -1
  440. package/dist/lyra30.js +121 -2
  441. package/dist/lyra300.cjs +1 -1
  442. package/dist/lyra300.js +5 -64
  443. package/dist/lyra301.cjs +1 -1
  444. package/dist/lyra301.js +7 -21
  445. package/dist/lyra302.cjs +1 -1
  446. package/dist/lyra302.js +16 -2
  447. package/dist/lyra303.cjs +1 -1
  448. package/dist/lyra303.js +2 -7
  449. package/dist/lyra304.cjs +1 -1
  450. package/dist/lyra304.js +7 -6
  451. package/dist/lyra305.cjs +1 -1
  452. package/dist/lyra305.js +6 -5
  453. package/dist/lyra306.cjs +1 -1
  454. package/dist/lyra306.js +4 -7
  455. package/dist/lyra307.cjs +1 -1
  456. package/dist/lyra307.js +8 -6
  457. package/dist/lyra308.cjs +1 -1
  458. package/dist/lyra308.js +6 -41
  459. package/dist/lyra309.cjs +1 -1
  460. package/dist/lyra309.js +38 -92
  461. package/dist/lyra31.cjs +1 -9
  462. package/dist/lyra31.js +4 -30
  463. package/dist/lyra310.cjs +1 -0
  464. package/dist/lyra310.js +97 -0
  465. package/dist/lyra32.cjs +1 -19
  466. package/dist/lyra32.js +38 -598
  467. package/dist/lyra33.cjs +1 -1
  468. package/dist/lyra33.js +2 -446
  469. package/dist/lyra34.cjs +1 -1
  470. package/dist/lyra34.js +483 -73
  471. package/dist/lyra35.cjs +1 -1
  472. package/dist/lyra35.js +439 -36
  473. package/dist/lyra36.cjs +1 -1
  474. package/dist/lyra36.js +2 -657
  475. package/dist/lyra37.cjs +1 -1
  476. package/dist/lyra37.js +2 -21
  477. package/dist/lyra38.cjs +1 -1
  478. package/dist/lyra38.js +30 -37
  479. package/dist/lyra39.cjs +1 -1
  480. package/dist/lyra39.js +14 -12
  481. package/dist/lyra4.cjs +1 -1
  482. package/dist/lyra4.js +1 -1
  483. package/dist/lyra40.cjs +1 -1
  484. package/dist/lyra40.js +2 -484
  485. package/dist/lyra41.cjs +1 -1
  486. package/dist/lyra41.js +2 -4
  487. package/dist/lyra42.cjs +1 -1
  488. package/dist/lyra42.js +3 -65
  489. package/dist/lyra43.cjs +1 -1
  490. package/dist/lyra43.js +82 -14
  491. package/dist/lyra44.cjs +1 -1
  492. package/dist/lyra44.js +36 -229
  493. package/dist/lyra45.cjs +1 -1
  494. package/dist/lyra45.js +657 -2
  495. package/dist/lyra46.cjs +1 -1
  496. package/dist/lyra46.js +21 -2
  497. package/dist/lyra47.cjs +1 -1
  498. package/dist/lyra47.js +12 -492
  499. package/dist/lyra48.cjs +1 -1
  500. package/dist/lyra48.js +484 -2
  501. package/dist/lyra49.cjs +1 -1
  502. package/dist/lyra49.js +66 -2
  503. package/dist/lyra5.cjs +1 -1
  504. package/dist/lyra5.js +2 -2
  505. package/dist/lyra50.cjs +1 -1
  506. package/dist/lyra50.js +234 -30
  507. package/dist/lyra51.js +2 -2
  508. package/dist/lyra53.cjs +1 -1
  509. package/dist/lyra53.js +1 -1
  510. package/dist/lyra54.cjs +1 -1
  511. package/dist/lyra54.js +2 -2
  512. package/dist/lyra55.cjs +9 -1
  513. package/dist/lyra55.js +29 -3
  514. package/dist/lyra56.cjs +19 -1
  515. package/dist/lyra56.js +599 -2
  516. package/dist/lyra57.cjs +1 -1
  517. package/dist/lyra57.js +20 -4
  518. package/dist/lyra58.cjs +1 -1
  519. package/dist/lyra58.js +4 -20
  520. package/dist/lyra59.cjs +1 -1
  521. package/dist/lyra59.js +21 -4
  522. package/dist/lyra6.cjs +1 -1
  523. package/dist/lyra6.js +3 -3
  524. package/dist/lyra60.cjs +1 -1
  525. package/dist/lyra60.js +4 -21
  526. package/dist/lyra61.cjs +1 -1
  527. package/dist/lyra61.js +60 -2
  528. package/dist/lyra62.cjs +1 -1
  529. package/dist/lyra62.js +38 -57
  530. package/dist/lyra63.cjs +1 -1
  531. package/dist/lyra63.js +816 -33
  532. package/dist/lyra64.cjs +1 -1
  533. package/dist/lyra64.js +40 -815
  534. package/dist/lyra65.cjs +1 -1
  535. package/dist/lyra65.js +34 -45
  536. package/dist/lyra66.cjs +1 -1
  537. package/dist/lyra66.js +29 -35
  538. package/dist/lyra67.cjs +1 -1
  539. package/dist/lyra67.js +33 -31
  540. package/dist/lyra68.cjs +1 -1
  541. package/dist/lyra68.js +440 -29
  542. package/dist/lyra69.cjs +1 -1
  543. package/dist/lyra69.js +48 -439
  544. package/dist/lyra7.cjs +1 -1
  545. package/dist/lyra7.js +2 -2
  546. package/dist/lyra70.cjs +1 -1
  547. package/dist/lyra70.js +62 -48
  548. package/dist/lyra71.cjs +1 -1
  549. package/dist/lyra71.js +18 -66
  550. package/dist/lyra72.cjs +1 -1
  551. package/dist/lyra72.js +2 -20
  552. package/dist/lyra73.cjs +1 -1
  553. package/dist/lyra73.js +2 -327
  554. package/dist/lyra74.cjs +1 -1
  555. package/dist/lyra74.js +28 -3
  556. package/dist/lyra75.cjs +1 -1
  557. package/dist/lyra75.js +2 -27
  558. package/dist/lyra76.cjs +1 -1
  559. package/dist/lyra76.js +3 -38
  560. package/dist/lyra77.cjs +1 -1
  561. package/dist/lyra77.js +29 -17
  562. package/dist/lyra78.cjs +1 -1
  563. package/dist/lyra78.js +36 -991
  564. package/dist/lyra79.cjs +1 -1
  565. package/dist/lyra79.js +19 -2
  566. package/dist/lyra8.cjs +1 -1
  567. package/dist/lyra8.js +5 -5
  568. package/dist/lyra80.cjs +1 -1
  569. package/dist/lyra80.js +20 -27
  570. package/dist/lyra81.cjs +1 -1
  571. package/dist/lyra81.js +17 -4
  572. package/dist/lyra82.cjs +1 -1
  573. package/dist/lyra82.js +989 -123
  574. package/dist/lyra83.cjs +1 -1
  575. package/dist/lyra83.js +2 -62
  576. package/dist/lyra84.cjs +1 -1
  577. package/dist/lyra84.js +123 -17
  578. package/dist/lyra85.cjs +1 -1
  579. package/dist/lyra85.js +61 -18
  580. package/dist/lyra88.cjs +1 -1
  581. package/dist/lyra88.js +326 -17
  582. package/dist/lyra89.cjs +1 -1
  583. package/dist/lyra89.js +12 -13
  584. package/dist/lyra9.cjs +1 -1
  585. package/dist/lyra9.js +3 -3
  586. package/dist/lyra90.cjs +1 -1
  587. package/dist/lyra90.js +24 -18
  588. package/dist/lyra91.cjs +1 -1
  589. package/dist/lyra91.js +11 -11
  590. package/dist/lyra92.cjs +1 -1
  591. package/dist/lyra92.js +39 -15
  592. package/dist/lyra93.cjs +1 -1
  593. package/dist/lyra93.js +1998 -5
  594. package/dist/lyra94.cjs +1 -1
  595. package/dist/lyra94.js +7 -9
  596. package/dist/lyra95.cjs +1 -1
  597. package/dist/lyra95.js +71 -9
  598. package/dist/lyra96.cjs +9 -1
  599. package/dist/lyra96.js +47 -8
  600. package/dist/lyra97.cjs +9 -1
  601. package/dist/lyra97.js +82 -37
  602. package/dist/lyra98.cjs +1 -1
  603. package/dist/lyra98.js +18 -3
  604. package/dist/lyra99.cjs +1 -1
  605. package/dist/lyra99.js +14 -4
  606. package/dist/provider.d.ts.map +1 -1
  607. package/dist/style.css +1 -1
  608. package/package.json +1 -1
package/dist/lyra115.js CHANGED
@@ -1,30 +1,20 @@
1
- import { useContext as o, useRef as C, useInsertionEffect as d, useEffect as f } from "react";
2
- import { PresenceContext as l } from "./lyra111.js";
3
- import { MotionContext as x } from "./lyra114.js";
4
- import { useIsomorphicLayoutEffect as a } from "./lyra99.js";
5
- import { LazyContext as E } from "./lyra120.js";
6
- import { MotionConfigContext as g } from "./lyra113.js";
7
- function z(s, m, r, e) {
8
- const { visualElement: u } = o(x), c = o(E), n = o(l), p = o(g).reducedMotion, i = C();
9
- e = e || c.renderer, !i.current && e && (i.current = e(s, {
10
- visualState: m,
11
- parent: u,
12
- props: r,
13
- presenceContext: n,
14
- blockInitialAnimation: n ? n.initial === !1 : !1,
15
- reducedMotionConfig: p
16
- }));
17
- const t = i.current;
18
- return d(() => {
19
- t && t.update(r, n);
20
- }), a(() => {
21
- t && t.render();
22
- }), f(() => {
23
- t && t.updateFeatures();
24
- }), (window.HandoffAppearAnimations ? a : f)(() => {
25
- t && t.animationState && t.animationState.animateChanges();
26
- }), t;
1
+ import { resolveVariant as c } from "./lyra116.js";
2
+ import { animateTarget as p } from "./lyra117.js";
3
+ import { animateVariant as e } from "./lyra118.js";
4
+ function n(a, r, t = {}) {
5
+ a.notify("AnimationStart", r);
6
+ let m;
7
+ if (Array.isArray(r)) {
8
+ const o = r.map((y) => e(a, y, t));
9
+ m = Promise.all(o);
10
+ } else if (typeof r == "string")
11
+ m = e(a, r, t);
12
+ else {
13
+ const o = typeof r == "function" ? c(a, r, t.custom) : r;
14
+ m = Promise.all(p(a, o, t));
15
+ }
16
+ return m.then(() => a.notify("AnimationComplete", r));
27
17
  }
28
18
  export {
29
- z as useVisualElement
19
+ n as animateVisualElement
30
20
  };
package/dist/lyra116.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),c=require("./lyra126.cjs");function i(f,r,u){return t.useCallback(o=>{o&&f.mount&&f.mount(o),r&&(o?r.mount(o):r.unmount()),u&&(typeof u=="function"?u(o):c.isRefObject(u)&&(u.current=o))},[r])}exports.useMotionRef=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./lyra146.cjs");function c(e){const r={};return e.values.forEach((t,o)=>r[o]=t.get()),r}function s(e){const r={};return e.values.forEach((t,o)=>r[o]=t.getVelocity()),r}function i(e,r,t){const o=e.getProps();return n.resolveVariantFromProps(o,r,t!==void 0?t:o.custom,c(e),s(e))}exports.resolveVariant=i;
package/dist/lyra116.js CHANGED
@@ -1,18 +1,16 @@
1
- import { useCallback as r } from "react";
2
- import { isRefObject as p } from "./lyra126.js";
3
- function j(m, u, f) {
4
- return r(
5
- (o) => {
6
- o && m.mount && m.mount(o), u && (o ? u.mount(o) : u.unmount()), f && (typeof f == "function" ? f(o) : p(f) && (f.current = o));
7
- },
8
- /**
9
- * Only pass a new ref callback to React if we've received a visual element
10
- * factory. Otherwise we'll be mounting/remounting every time externalRef
11
- * or other dependencies change.
12
- */
13
- [u]
14
- );
1
+ import { resolveVariantFromProps as n } from "./lyra146.js";
2
+ function c(r) {
3
+ const t = {};
4
+ return r.values.forEach((o, e) => t[e] = o.get()), t;
5
+ }
6
+ function u(r) {
7
+ const t = {};
8
+ return r.values.forEach((o, e) => t[e] = o.getVelocity()), t;
9
+ }
10
+ function s(r, t, o) {
11
+ const e = r.getProps();
12
+ return n(e, t, o !== void 0 ? o : e.custom, c(r), u(r));
15
13
  }
16
14
  export {
17
- j as useMotionRef
15
+ s as resolveVariant
18
16
  };
package/dist/lyra117.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),o=require("./lyra114.cjs"),u=require("./lyra229.cjs");function a(e){const{initial:t,animate:n}=u.getCurrentTreeVariants(e,r.useContext(o.MotionContext));return r.useMemo(()=>({initial:t,animate:n}),[i(t),i(n)])}function i(e){return Array.isArray(e)?e.join(" "):e}exports.useCreateMotionContext=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./lyra134.cjs"),A=require("./lyra142.cjs"),w=require("./lyra172.cjs"),q=require("./lyra234.cjs"),S=require("./lyra141.cjs"),P=require("./lyra198.cjs");function V({protectedKeys:t,needsAnimating:o},e){const i=t.hasOwnProperty(e)&&o[e]!==!0;return o[e]=!1,i}function b(t,o,{delay:e=0,transitionOverride:i,type:u}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:r,...f}=t.makeTargetAnimatable(o);const s=t.getValue("willChange");i&&(d=i);const c=[],p=u&&t.animationState&&t.animationState.getState()[u];for(const a in f){const n=t.getValue(a),g=f[a];if(!n||g===void 0||p&&V(p,a))continue;const l={delay:e,elapsed:0,...d};if(window.HandoffAppearAnimations&&!n.hasAnimated){const h=t.getProps()[w.optimizedAppearDataAttribute];h&&(l.elapsed=window.HandoffAppearAnimations(h,a,n,T.frame))}n.start(q.animateMotionValue(a,n,g,t.shouldReduceMotion&&A.transformProps.has(a)?{type:!1}:l));const m=n.animation;S.isWillChangeMotionValue(s)&&(s.add(a),m.then(()=>s.remove(a))),c.push(m)}return r&&Promise.all(c).then(()=>{r&&P.setTarget(t,r)}),c}exports.animateTarget=b;
package/dist/lyra117.js CHANGED
@@ -1,13 +1,35 @@
1
- import { useContext as o, useMemo as i } from "react";
2
- import { MotionContext as a } from "./lyra114.js";
3
- import { getCurrentTreeVariants as m } from "./lyra229.js";
4
- function C(t) {
5
- const { initial: e, animate: n } = m(t, o(a));
6
- return i(() => ({ initial: e, animate: n }), [r(e), r(n)]);
1
+ import { frame as A } from "./lyra134.js";
2
+ import { transformProps as w } from "./lyra142.js";
3
+ import { optimizedAppearDataAttribute as T } from "./lyra172.js";
4
+ import { animateMotionValue as P } from "./lyra234.js";
5
+ import { isWillChangeMotionValue as S } from "./lyra141.js";
6
+ import { setTarget as V } from "./lyra198.js";
7
+ function C({ protectedKeys: t, needsAnimating: i }, n) {
8
+ const e = t.hasOwnProperty(n) && i[n] !== !0;
9
+ return i[n] = !1, e;
7
10
  }
8
- function r(t) {
9
- return Array.isArray(t) ? t.join(" ") : t;
11
+ function x(t, i, { delay: n = 0, transitionOverride: e, type: p } = {}) {
12
+ let { transition: m = t.getDefaultTransition(), transitionEnd: r, ...c } = t.makeTargetAnimatable(i);
13
+ const f = t.getValue("willChange");
14
+ e && (m = e);
15
+ const s = [], d = p && t.animationState && t.animationState.getState()[p];
16
+ for (const o in c) {
17
+ const a = t.getValue(o), u = c[o];
18
+ if (!a || u === void 0 || d && C(d, o))
19
+ continue;
20
+ const g = { delay: n, elapsed: 0, ...m };
21
+ if (window.HandoffAppearAnimations && !a.hasAnimated) {
22
+ const l = t.getProps()[T];
23
+ l && (g.elapsed = window.HandoffAppearAnimations(l, o, a, A));
24
+ }
25
+ a.start(P(o, a, u, t.shouldReduceMotion && w.has(o) ? { type: !1 } : g));
26
+ const h = a.animation;
27
+ S(f) && (f.add(o), h.then(() => f.remove(o))), s.push(h);
28
+ }
29
+ return r && Promise.all(s).then(() => {
30
+ r && V(t, r);
31
+ }), s;
10
32
  }
11
33
  export {
12
- C as useCreateMotionContext
34
+ x as animateTarget
13
35
  };
package/dist/lyra118.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./lyra138.cjs");function n(i){for(const e in i)t.featureDefinitions[e]={...t.featureDefinitions[e],...i[e]}}exports.loadFeatures=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./lyra116.cjs"),y=require("./lyra117.cjs");function m(r,t,n={}){const i=g.resolveVariant(r,t,n.custom);let{transition:o=r.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(y.animateTarget(r,i,n)):()=>Promise.resolve(),a=r.variantChildren&&r.variantChildren.size?(c=0)=>{const{delayChildren:e=0,staggerChildren:d,staggerDirection:u}=o;return h(r,t,e+c,d,u,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,e]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>e())}else return Promise.all([s(),a(n.delay)])}function h(r,t,n=0,i=0,o=1,s){const a=[],l=(r.variantChildren.size-1)*i,c=o===1?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(r.variantChildren).sort(f).forEach((e,d)=>{e.notify("AnimationStart",t),a.push(m(e,t,{...s,delay:n+c(d)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}function f(r,t){return r.sortNodePosition(t)}exports.animateVariant=m;exports.sortByTreeOrder=f;
package/dist/lyra118.js CHANGED
@@ -1,11 +1,32 @@
1
- import { featureDefinitions as n } from "./lyra138.js";
2
- function e(i) {
3
- for (const o in i)
4
- n[o] = {
5
- ...n[o],
6
- ...i[o]
7
- };
1
+ import { resolveVariant as l } from "./lyra116.js";
2
+ import { animateTarget as h } from "./lyra117.js";
3
+ function g(r, e, n = {}) {
4
+ const i = l(r, e, n.custom);
5
+ let { transition: a = r.getDefaultTransition() || {} } = i || {};
6
+ n.transitionOverride && (a = n.transitionOverride);
7
+ const s = i ? () => Promise.all(h(r, i, n)) : () => Promise.resolve(), o = r.variantChildren && r.variantChildren.size ? (m = 0) => {
8
+ const { delayChildren: t = 0, staggerChildren: c, staggerDirection: d } = a;
9
+ return C(r, e, t + m, c, d, n);
10
+ } : () => Promise.resolve(), { when: f } = a;
11
+ if (f) {
12
+ const [m, t] = f === "beforeChildren" ? [s, o] : [o, s];
13
+ return m().then(() => t());
14
+ } else
15
+ return Promise.all([s(), o(n.delay)]);
16
+ }
17
+ function C(r, e, n = 0, i = 0, a = 1, s) {
18
+ const o = [], f = (r.variantChildren.size - 1) * i, m = a === 1 ? (t = 0) => t * i : (t = 0) => f - t * i;
19
+ return Array.from(r.variantChildren).sort(u).forEach((t, c) => {
20
+ t.notify("AnimationStart", e), o.push(g(t, e, {
21
+ ...s,
22
+ delay: n + m(c)
23
+ }).then(() => t.notify("AnimationComplete", e)));
24
+ }), Promise.all(o);
25
+ }
26
+ function u(r, e) {
27
+ return r.sortNodePosition(e);
8
28
  }
9
29
  export {
10
- e as loadFeatures
30
+ g as animateVariant,
31
+ u as sortByTreeOrder
11
32
  };
package/dist/lyra119.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=typeof document<"u";exports.isBrowser=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function n(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||o.has(t)}exports.isValidMotionProp=n;
package/dist/lyra119.js CHANGED
@@ -1,4 +1,41 @@
1
- const e = typeof document < "u";
1
+ const n = /* @__PURE__ */ new Set([
2
+ "animate",
3
+ "exit",
4
+ "variants",
5
+ "initial",
6
+ "style",
7
+ "values",
8
+ "variants",
9
+ "transition",
10
+ "transformTemplate",
11
+ "transformValues",
12
+ "custom",
13
+ "inherit",
14
+ "onLayoutAnimationStart",
15
+ "onLayoutAnimationComplete",
16
+ "onLayoutMeasure",
17
+ "onBeforeLayoutMeasure",
18
+ "onAnimationStart",
19
+ "onAnimationComplete",
20
+ "onUpdate",
21
+ "onDragStart",
22
+ "onDrag",
23
+ "onDragEnd",
24
+ "onMeasureDragConstraints",
25
+ "onDirectionLock",
26
+ "onDragTransitionEnd",
27
+ "_dragX",
28
+ "_dragY",
29
+ "onHoverStart",
30
+ "onHoverEnd",
31
+ "onViewportEnter",
32
+ "onViewportLeave",
33
+ "ignoreStrict",
34
+ "viewport"
35
+ ]);
36
+ function o(t) {
37
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || n.has(t);
38
+ }
2
39
  export {
3
- e as isBrowser
40
+ o as isValidMotionProp
4
41
  };
package/dist/lyra12.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra27.cjs"),t=require("./lyra47.cjs"),s=require("./lyra13.cjs"),u=({className:i,children:o,...n})=>e.jsxRuntimeExports.jsx(t.Popover,{...n,offset:4,isNonModal:!0,className:({isEntering:r,isExiting:p})=>s.popoverStyles({isEntering:r,isExiting:p}),children:r=>e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(t.Dialog,{className:s.popoverDialogStyles({className:i}),children:typeof o=="function"?o(r):o})})}),l=t.DialogTrigger;exports.Popover=u;exports.PopoverTrigger=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra27.cjs"),t=require("./lyra34.cjs"),s=require("./lyra13.cjs"),u=({className:i,children:o,...n})=>e.jsxRuntimeExports.jsx(t.Popover,{...n,offset:4,isNonModal:!0,className:({isEntering:r,isExiting:p})=>s.popoverStyles({isEntering:r,isExiting:p}),children:r=>e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(t.Dialog,{className:s.popoverDialogStyles({className:i}),children:typeof o=="function"?o(r):o})})}),l=t.DialogTrigger;exports.Popover=u;exports.PopoverTrigger=l;
package/dist/lyra12.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as o } from "./lyra27.js";
2
- import { Popover as a, Dialog as f, DialogTrigger as i } from "./lyra47.js";
2
+ import { Popover as a, Dialog as f, DialogTrigger as i } from "./lyra34.js";
3
3
  import { popoverStyles as c, popoverDialogStyles as m } from "./lyra13.js";
4
4
  const $ = ({
5
5
  className: s,
package/dist/lyra120.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext({strict:!1});exports.LazyContext=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),u=require("./lyra121.cjs");function c(){const n=t.useContext(u.PresenceContext);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:e,register:o}=n,s=t.useId();return t.useEffect(()=>o(s),[]),!r&&e?[!1,()=>e&&e(s)]:[!0]}exports.usePresence=c;
package/dist/lyra120.js CHANGED
@@ -1,5 +1,12 @@
1
- import { createContext as t } from "react";
2
- const o = t({ strict: !1 });
1
+ import { useContext as s, useId as u, useEffect as c } from "react";
2
+ import { PresenceContext as f } from "./lyra121.js";
3
+ function x() {
4
+ const t = s(f);
5
+ if (t === null)
6
+ return [!0, null];
7
+ const { isPresent: n, onExitComplete: e, register: r } = t, o = u();
8
+ return c(() => r(o), []), !n && e ? [!1, () => e && e(o)] : [!0];
9
+ }
3
10
  export {
4
- o as LazyContext
11
+ x as usePresence
5
12
  };
package/dist/lyra121.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext({});exports.SwitchLayoutGroupContext=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(null);exports.PresenceContext=t;
package/dist/lyra121.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createContext as t } from "react";
2
- const e = t({});
1
+ import { createContext as e } from "react";
2
+ const o = e(null);
3
3
  export {
4
- e as SwitchLayoutGroupContext
4
+ o as PresenceContext
5
5
  };
package/dist/lyra122.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=Symbol.for("motionComponentSymbol");exports.motionComponentSymbol=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),E=require("./lyra123.cjs"),v=require("./lyra124.cjs"),M=require("./lyra125.cjs"),g=require("./lyra126.cjs"),b=require("./lyra127.cjs"),S=require("./lyra128.cjs"),L=require("./lyra129.cjs"),G=require("./lyra108.cjs"),p=require("./lyra130.cjs"),w=require("./lyra131.cjs"),O=require("./lyra132.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=j(r);function P({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:c}){e&&S.loadFeatures(e);function d(u,x){let a;const s={...r.useContext(E.MotionConfigContext),...u,layoutId:R(u)},{isStatic:l}=s,o=b.useCreateMotionContext(u),f=i(u,l);if(!l&&L.isBrowser){o.visualElement=M.useVisualElement(c,f,s,t);const y=r.useContext(w.SwitchLayoutGroupContext),q=r.useContext(p.LazyContext).strict;o.visualElement&&(a=o.visualElement.loadFeatures(s,q,e,y))}return C.createElement(v.MotionContext.Provider,{value:o},a&&o.visualElement?C.createElement(a,{visualElement:o.visualElement,...s}):null,n(c,u,g.useMotionRef(f,o.visualElement,x),f,l,o.visualElement))}const m=r.forwardRef(d);return m[O.motionComponentSymbol]=c,m}function R({layoutId:e}){const t=r.useContext(G.LayoutGroupContext).id;return t&&e!==void 0?t+"-"+e:e}exports.createMotionComponent=P;
package/dist/lyra122.js CHANGED
@@ -1,4 +1,50 @@
1
- const o = Symbol.for("motionComponentSymbol");
1
+ import * as f from "react";
2
+ import { forwardRef as d, useContext as r } from "react";
3
+ import { MotionConfigContext as y } from "./lyra123.js";
4
+ import { MotionContext as M } from "./lyra124.js";
5
+ import { useVisualElement as L } from "./lyra125.js";
6
+ import { useMotionRef as G } from "./lyra126.js";
7
+ import { useCreateMotionContext as S } from "./lyra127.js";
8
+ import { loadFeatures as w } from "./lyra128.js";
9
+ import { isBrowser as g } from "./lyra129.js";
10
+ import { LayoutGroupContext as R } from "./lyra108.js";
11
+ import { LazyContext as P } from "./lyra130.js";
12
+ import { SwitchLayoutGroupContext as $ } from "./lyra131.js";
13
+ import { motionComponentSymbol as b } from "./lyra132.js";
14
+ function K({ preloadedFeatures: o, createVisualElement: n, useRender: c, useVisualState: C, Component: m }) {
15
+ o && w(o);
16
+ function E(e, p) {
17
+ let u;
18
+ const i = {
19
+ ...r(y),
20
+ ...e,
21
+ layoutId: h(e)
22
+ }, { isStatic: a } = i, t = S(e), l = C(e, a);
23
+ if (!a && g) {
24
+ t.visualElement = L(m, l, i, n);
25
+ const v = r($), x = r(P).strict;
26
+ t.visualElement && (u = t.visualElement.loadFeatures(
27
+ // Note: Pass the full new combined props to correctly re-render dynamic feature components.
28
+ i,
29
+ x,
30
+ o,
31
+ v
32
+ ));
33
+ }
34
+ return f.createElement(
35
+ M.Provider,
36
+ { value: t },
37
+ u && t.visualElement ? f.createElement(u, { visualElement: t.visualElement, ...i }) : null,
38
+ c(m, e, G(l, t.visualElement, p), l, a, t.visualElement)
39
+ );
40
+ }
41
+ const s = d(E);
42
+ return s[b] = m, s;
43
+ }
44
+ function h({ layoutId: o }) {
45
+ const n = r(R).id;
46
+ return n && o !== void 0 ? n + "-" + o : o;
47
+ }
2
48
  export {
3
- o as motionComponentSymbol
49
+ K as createMotionComponent
4
50
  };
package/dist/lyra123.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./lyra124.cjs"),f=require("./lyra101.cjs"),P=require("./lyra125.cjs"),T=require("./lyra126.cjs"),y=require("./lyra127.cjs"),V=require("./lyra128.cjs"),q=require("./lyra129.cjs"),F=require("./lyra130.cjs"),j=require("./lyra131.cjs"),m=require("./lyra104.cjs"),R=require("./lyra132.cjs"),v=require("./lyra133.cjs"),w=require("./lyra134.cjs"),E=require("./lyra135.cjs"),x=require("./lyra136.cjs"),N=require("./lyra137.cjs"),C=require("./lyra138.cjs"),b=require("./lyra139.cjs"),g=require("./lyra140.cjs"),S=Object.keys(C.featureDefinitions),L=S.length,M=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],O=b.variantProps.length;class B{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,visualState:n},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>p.frame.render(this.render,!1,!0);const{latestValues:u,renderState:r}=n;this.latestValues=u,this.baseTarget={...u},this.initialValues=e.initial?{...u}:{},this.renderState=r,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=h,this.isControllingVariants=v.isControllingVariants(e),this.isVariantNode=v.isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:o,...d}=this.scrapeMotionValuesFromProps(e,{});for(const a in d){const l=d[a];u[a]!==void 0&&m.isMotionValue(l)&&(l.set(u[a],!1),j.isWillChangeMotionValue(o)&&o.add(a))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,g.visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,i)=>this.bindToMotionValue(i,e)),V.hasReducedMotionListener.current||y.initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:V.prefersReducedMotion.current,process.env.NODE_ENV!=="production"&&N.warnOnce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){g.visualElementStore.delete(this.current),this.projection&&this.projection.unmount(),p.cancelFrame(this.notifyUpdate),p.cancelFrame(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const i=R.transformProps.has(t),s=e.on("change",h=>{this.latestValues[t]=h,this.props.onUpdate&&p.frame.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),n()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...e},i,s,n){let h,u;if(process.env.NODE_ENV!=="production"&&s&&i){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?f.warning(!1,r):f.invariant(!1,r)}for(let r=0;r<L;r++){const o=S[r],{isEnabled:d,Feature:a,ProjectionNode:l,MeasureLayout:c}=C.featureDefinitions[o];l&&(h=l),d(e)&&(!this.features[o]&&a&&(this.features[o]=new a(this)),c&&(u=c))}if(!this.projection&&h){this.projection=new h(this.latestValues,this.parent&&this.parent.projection);const{layoutId:r,layout:o,drag:d,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;this.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!d||a&&T.isRefObject(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}return u}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):P.createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<M.length;i++){const s=M[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const n=t["on"+s];n&&(this.propEventSubscriptions[s]=this.on(s,n))}this.prevMotionValues=E.updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const e={};for(let i=0;i<O;i++){const s=b.variantProps[i],n=this.props[s];(w.isVariantLabel(n)||n===!1)&&(e[s]=n)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&e!==void 0&&(i=F.motionValue(e,{owner:this}),this.addValue(t,i)),i}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:i}=this.props,s=typeof i=="string"||typeof i=="object"?(e=x.resolveVariantFromProps(this.props,i))===null||e===void 0?void 0:e[t]:void 0;if(i&&s!==void 0)return s;const n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!m.isMotionValue(n)?n:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new q.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}exports.VisualElement=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});exports.MotionConfigContext=o;
package/dist/lyra123.js CHANGED
@@ -1,260 +1,9 @@
1
- import { frame as c, cancelFrame as f } from "./lyra124.js";
2
- import { warning as b, invariant as S } from "./lyra101.js";
3
- import { createBox as P } from "./lyra125.js";
4
- import { isRefObject as T } from "./lyra126.js";
5
- import { initPrefersReducedMotion as y } from "./lyra127.js";
6
- import { hasReducedMotionListener as F, prefersReducedMotion as R } from "./lyra128.js";
7
- import { SubscriptionManager as j } from "./lyra129.js";
8
- import { motionValue as w } from "./lyra130.js";
9
- import { isWillChangeMotionValue as N } from "./lyra131.js";
10
- import { isMotionValue as m } from "./lyra104.js";
11
- import { transformProps as E } from "./lyra132.js";
12
- import { isControllingVariants as x, isVariantNode as B } from "./lyra133.js";
13
- import { isVariantLabel as L } from "./lyra134.js";
14
- import { updateMotionValuesFromProps as I } from "./lyra135.js";
15
- import { resolveVariantFromProps as O } from "./lyra136.js";
16
- import { warnOnce as A } from "./lyra137.js";
17
- import { featureDefinitions as g } from "./lyra138.js";
18
- import { variantProps as M } from "./lyra139.js";
19
- import { visualElementStore as V } from "./lyra140.js";
20
- const C = Object.keys(g), U = C.length, v = [
21
- "AnimationStart",
22
- "AnimationComplete",
23
- "Update",
24
- "BeforeLayoutMeasure",
25
- "LayoutMeasure",
26
- "LayoutAnimationStart",
27
- "LayoutAnimationComplete"
28
- ], D = M.length;
29
- class ot {
30
- constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, visualState: r }, u = {}) {
31
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
32
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
33
- }, this.scheduleRender = () => c.render(this.render, !1, !0);
34
- const { latestValues: h, renderState: n } = r;
35
- this.latestValues = h, this.baseTarget = { ...h }, this.initialValues = e.initial ? { ...h } : {}, this.renderState = n, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = u, this.isControllingVariants = x(e), this.isVariantNode = B(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
36
- const { willChange: o, ...p } = this.scrapeMotionValuesFromProps(e, {});
37
- for (const a in p) {
38
- const l = p[a];
39
- h[a] !== void 0 && m(l) && (l.set(h[a], !1), N(o) && o.add(a));
40
- }
41
- }
42
- /**
43
- * This method takes React props and returns found MotionValues. For example, HTML
44
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
45
- *
46
- * This isn't an abstract method as it needs calling in the constructor, but it is
47
- * intended to be one.
48
- */
49
- scrapeMotionValuesFromProps(t, e) {
50
- return {};
51
- }
52
- mount(t) {
53
- this.current = t, V.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), F.current || y(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : R.current, process.env.NODE_ENV !== "production" && A(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
54
- }
55
- unmount() {
56
- V.delete(this.current), this.projection && this.projection.unmount(), f(this.notifyUpdate), f(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
57
- for (const t in this.events)
58
- this.events[t].clear();
59
- for (const t in this.features)
60
- this.features[t].unmount();
61
- this.current = null;
62
- }
63
- bindToMotionValue(t, e) {
64
- const i = E.has(t), s = e.on("change", (u) => {
65
- this.latestValues[t] = u, this.props.onUpdate && c.update(this.notifyUpdate, !1, !0), i && this.projection && (this.projection.isTransformDirty = !0);
66
- }), r = e.on("renderRequest", this.scheduleRender);
67
- this.valueSubscriptions.set(t, () => {
68
- s(), r();
69
- });
70
- }
71
- sortNodePosition(t) {
72
- return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
73
- }
74
- loadFeatures({ children: t, ...e }, i, s, r) {
75
- let u, h;
76
- if (process.env.NODE_ENV !== "production" && s && i) {
77
- const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
78
- e.ignoreStrict ? b(!1, n) : S(!1, n);
79
- }
80
- for (let n = 0; n < U; n++) {
81
- const o = C[n], { isEnabled: p, Feature: a, ProjectionNode: l, MeasureLayout: d } = g[o];
82
- l && (u = l), p(e) && (!this.features[o] && a && (this.features[o] = new a(this)), d && (h = d));
83
- }
84
- if (!this.projection && u) {
85
- this.projection = new u(this.latestValues, this.parent && this.parent.projection);
86
- const { layoutId: n, layout: o, drag: p, dragConstraints: a, layoutScroll: l, layoutRoot: d } = e;
87
- this.projection.setOptions({
88
- layoutId: n,
89
- layout: o,
90
- alwaysMeasureLayout: !!p || a && T(a),
91
- visualElement: this,
92
- scheduleRender: () => this.scheduleRender(),
93
- /**
94
- * TODO: Update options in an effect. This could be tricky as it'll be too late
95
- * to update by the time layout animations run.
96
- * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
97
- * ensuring it gets called if there's no potential layout animations.
98
- *
99
- */
100
- animationType: typeof o == "string" ? o : "both",
101
- initialPromotionConfig: r,
102
- layoutScroll: l,
103
- layoutRoot: d
104
- });
105
- }
106
- return h;
107
- }
108
- updateFeatures() {
109
- for (const t in this.features) {
110
- const e = this.features[t];
111
- e.isMounted ? e.update() : (e.mount(), e.isMounted = !0);
112
- }
113
- }
114
- triggerBuild() {
115
- this.build(this.renderState, this.latestValues, this.options, this.props);
116
- }
117
- /**
118
- * Measure the current viewport box with or without transforms.
119
- * Only measures axis-aligned boxes, rotate and skew must be manually
120
- * removed with a re-render to work.
121
- */
122
- measureViewportBox() {
123
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : P();
124
- }
125
- getStaticValue(t) {
126
- return this.latestValues[t];
127
- }
128
- setStaticValue(t, e) {
129
- this.latestValues[t] = e;
130
- }
131
- /**
132
- * Make a target animatable by Popmotion. For instance, if we're
133
- * trying to animate width from 100px to 100vw we need to measure 100vw
134
- * in pixels to determine what we really need to animate to. This is also
135
- * pluggable to support Framer's custom value types like Color,
136
- * and CSS variables.
137
- */
138
- makeTargetAnimatable(t, e = !0) {
139
- return this.makeTargetAnimatableFromInstance(t, this.props, e);
140
- }
141
- /**
142
- * Update the provided props. Ensure any newly-added motion values are
143
- * added to our map, old ones removed, and listeners updated.
144
- */
145
- update(t, e) {
146
- (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
147
- for (let i = 0; i < v.length; i++) {
148
- const s = v[i];
149
- this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
150
- const r = t["on" + s];
151
- r && (this.propEventSubscriptions[s] = this.on(s, r));
152
- }
153
- this.prevMotionValues = I(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
154
- }
155
- getProps() {
156
- return this.props;
157
- }
158
- /**
159
- * Returns the variant definition with a given name.
160
- */
161
- getVariant(t) {
162
- return this.props.variants ? this.props.variants[t] : void 0;
163
- }
164
- /**
165
- * Returns the defined default transition on this component.
166
- */
167
- getDefaultTransition() {
168
- return this.props.transition;
169
- }
170
- getTransformPagePoint() {
171
- return this.props.transformPagePoint;
172
- }
173
- getClosestVariantNode() {
174
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
175
- }
176
- getVariantContext(t = !1) {
177
- if (t)
178
- return this.parent ? this.parent.getVariantContext() : void 0;
179
- if (!this.isControllingVariants) {
180
- const i = this.parent ? this.parent.getVariantContext() || {} : {};
181
- return this.props.initial !== void 0 && (i.initial = this.props.initial), i;
182
- }
183
- const e = {};
184
- for (let i = 0; i < D; i++) {
185
- const s = M[i], r = this.props[s];
186
- (L(r) || r === !1) && (e[s] = r);
187
- }
188
- return e;
189
- }
190
- /**
191
- * Add a child visual element to our set of children.
192
- */
193
- addVariantChild(t) {
194
- const e = this.getClosestVariantNode();
195
- if (e)
196
- return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
197
- }
198
- /**
199
- * Add a motion value and bind it to this visual element.
200
- */
201
- addValue(t, e) {
202
- e !== this.values.get(t) && (this.removeValue(t), this.bindToMotionValue(t, e)), this.values.set(t, e), this.latestValues[t] = e.get();
203
- }
204
- /**
205
- * Remove a motion value and unbind any active subscriptions.
206
- */
207
- removeValue(t) {
208
- this.values.delete(t);
209
- const e = this.valueSubscriptions.get(t);
210
- e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
211
- }
212
- /**
213
- * Check whether we have a motion value for this key
214
- */
215
- hasValue(t) {
216
- return this.values.has(t);
217
- }
218
- getValue(t, e) {
219
- if (this.props.values && this.props.values[t])
220
- return this.props.values[t];
221
- let i = this.values.get(t);
222
- return i === void 0 && e !== void 0 && (i = w(e, { owner: this }), this.addValue(t, i)), i;
223
- }
224
- /**
225
- * If we're trying to animate to a previously unencountered value,
226
- * we need to check for it in our state and as a last resort read it
227
- * directly from the instance (which might have performance implications).
228
- */
229
- readValue(t) {
230
- return this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.readValueFromInstance(this.current, t, this.options);
231
- }
232
- /**
233
- * Set the base target to later animate back to. This is currently
234
- * only hydrated on creation and when we first read a value.
235
- */
236
- setBaseTarget(t, e) {
237
- this.baseTarget[t] = e;
238
- }
239
- /**
240
- * Find the base target for a value thats been removed from all animation
241
- * props.
242
- */
243
- getBaseTarget(t) {
244
- var e;
245
- const { initial: i } = this.props, s = typeof i == "string" || typeof i == "object" ? (e = O(this.props, i)) === null || e === void 0 ? void 0 : e[t] : void 0;
246
- if (i && s !== void 0)
247
- return s;
248
- const r = this.getBaseTargetFromProps(this.props, t);
249
- return r !== void 0 && !m(r) ? r : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
250
- }
251
- on(t, e) {
252
- return this.events[t] || (this.events[t] = new j()), this.events[t].add(e);
253
- }
254
- notify(t, ...e) {
255
- this.events[t] && this.events[t].notify(...e);
256
- }
257
- }
1
+ import { createContext as o } from "react";
2
+ const n = o({
3
+ transformPagePoint: (t) => t,
4
+ isStatic: !1,
5
+ reducedMotion: "never"
6
+ });
258
7
  export {
259
- ot as VisualElement
8
+ n as MotionConfigContext
260
9
  };