@pastweb/vue 2.0.0

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 (734) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1455 -0
  3. package/dist/EntryAdapter/EntryAdapter.cjs +6 -0
  4. package/dist/EntryAdapter/EntryAdapter.cjs.map +1 -0
  5. package/dist/EntryAdapter/EntryAdapter.js +7 -0
  6. package/dist/EntryAdapter/EntryAdapter.js.map +1 -0
  7. package/dist/EntryAdapter/EntryAdapter.vue.d.cts +36 -0
  8. package/dist/EntryAdapter/EntryAdapter.vue.d.ts +37 -0
  9. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs +62 -0
  10. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs.map +1 -0
  11. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js +62 -0
  12. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js.map +1 -0
  13. package/dist/EntryAdapter/constants.cjs +14 -0
  14. package/dist/EntryAdapter/constants.cjs.map +1 -0
  15. package/dist/EntryAdapter/constants.d.cts +14 -0
  16. package/dist/EntryAdapter/constants.d.ts +14 -0
  17. package/dist/EntryAdapter/constants.js +13 -0
  18. package/dist/EntryAdapter/constants.js.map +1 -0
  19. package/dist/EntryAdapter/index.cjs +3 -0
  20. package/dist/EntryAdapter/index.d.cts +2 -0
  21. package/dist/EntryAdapter/index.d.ts +2 -0
  22. package/dist/EntryAdapter/index.js +2 -0
  23. package/dist/EntryAdapter/types.cjs +0 -0
  24. package/dist/EntryAdapter/types.d.cts +44 -0
  25. package/dist/EntryAdapter/types.d.ts +44 -0
  26. package/dist/EntryAdapter/types.js +0 -0
  27. package/dist/EntryAdapter/utils.cjs +62 -0
  28. package/dist/EntryAdapter/utils.cjs.map +1 -0
  29. package/dist/EntryAdapter/utils.d.cts +36 -0
  30. package/dist/EntryAdapter/utils.d.ts +36 -0
  31. package/dist/EntryAdapter/utils.js +60 -0
  32. package/dist/EntryAdapter/utils.js.map +1 -0
  33. package/dist/Island/Island.cjs +6 -0
  34. package/dist/Island/Island.cjs.map +1 -0
  35. package/dist/Island/Island.js +7 -0
  36. package/dist/Island/Island.js.map +1 -0
  37. package/dist/Island/Island.vue.d.cts +22 -0
  38. package/dist/Island/Island.vue.d.ts +23 -0
  39. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs +145 -0
  40. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  41. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js +144 -0
  42. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js.map +1 -0
  43. package/dist/Island/constants.cjs +12 -0
  44. package/dist/Island/constants.cjs.map +1 -0
  45. package/dist/Island/constants.d.cts +11 -0
  46. package/dist/Island/constants.d.ts +11 -0
  47. package/dist/Island/constants.js +10 -0
  48. package/dist/Island/constants.js.map +1 -0
  49. package/dist/Island/index.cjs +9 -0
  50. package/dist/Island/index.d.cts +5 -0
  51. package/dist/Island/index.d.ts +5 -0
  52. package/dist/Island/index.js +4 -0
  53. package/dist/Island/types.cjs +0 -0
  54. package/dist/Island/types.d.cts +18 -0
  55. package/dist/Island/types.d.ts +18 -0
  56. package/dist/Island/types.js +0 -0
  57. package/dist/Island/useIsland.cjs +23 -0
  58. package/dist/Island/useIsland.cjs.map +1 -0
  59. package/dist/Island/useIsland.d.cts +15 -0
  60. package/dist/Island/useIsland.d.ts +15 -0
  61. package/dist/Island/useIsland.js +21 -0
  62. package/dist/Island/useIsland.js.map +1 -0
  63. package/dist/Render/Render.cjs +6 -0
  64. package/dist/Render/Render.cjs.map +1 -0
  65. package/dist/Render/Render.js +7 -0
  66. package/dist/Render/Render.js.map +1 -0
  67. package/dist/Render/Render.vue.d.cts +10 -0
  68. package/dist/Render/Render.vue.d.ts +11 -0
  69. package/dist/Render/Render.vue_vue_type_script_lang.cjs +47 -0
  70. package/dist/Render/Render.vue_vue_type_script_lang.cjs.map +1 -0
  71. package/dist/Render/Render.vue_vue_type_script_lang.js +47 -0
  72. package/dist/Render/Render.vue_vue_type_script_lang.js.map +1 -0
  73. package/dist/Render/index.cjs +3 -0
  74. package/dist/Render/index.d.cts +3 -0
  75. package/dist/Render/index.d.ts +3 -0
  76. package/dist/Render/index.js +2 -0
  77. package/dist/Render/types.cjs +0 -0
  78. package/dist/Render/types.d.cts +21 -0
  79. package/dist/Render/types.d.ts +21 -0
  80. package/dist/Render/types.js +0 -0
  81. package/dist/Slot/Slot.cjs +89 -0
  82. package/dist/Slot/Slot.cjs.map +1 -0
  83. package/dist/Slot/Slot.d.cts +38 -0
  84. package/dist/Slot/Slot.d.ts +39 -0
  85. package/dist/Slot/Slot.js +89 -0
  86. package/dist/Slot/Slot.js.map +1 -0
  87. package/dist/Slot/index.cjs +3 -0
  88. package/dist/Slot/index.d.cts +3 -0
  89. package/dist/Slot/index.d.ts +3 -0
  90. package/dist/Slot/index.js +2 -0
  91. package/dist/Slot/types.cjs +0 -0
  92. package/dist/Slot/types.d.cts +17 -0
  93. package/dist/Slot/types.d.ts +17 -0
  94. package/dist/Slot/types.js +0 -0
  95. package/dist/_virtual/_rolldown/runtime.cjs +4 -0
  96. package/dist/api/hooks/index.cjs +20 -0
  97. package/dist/api/hooks/index.d.cts +12 -0
  98. package/dist/api/hooks/index.d.ts +12 -0
  99. package/dist/api/hooks/index.js +13 -0
  100. package/dist/api/hooks/reuseQuery/index.cjs +4 -0
  101. package/dist/api/hooks/reuseQuery/index.d.cts +2 -0
  102. package/dist/api/hooks/reuseQuery/index.d.ts +2 -0
  103. package/dist/api/hooks/reuseQuery/index.js +2 -0
  104. package/dist/api/hooks/reuseQuery/reuseQuery.cjs +44 -0
  105. package/dist/api/hooks/reuseQuery/reuseQuery.cjs.map +1 -0
  106. package/dist/api/hooks/reuseQuery/reuseQuery.d.cts +37 -0
  107. package/dist/api/hooks/reuseQuery/reuseQuery.d.ts +37 -0
  108. package/dist/api/hooks/reuseQuery/reuseQuery.js +42 -0
  109. package/dist/api/hooks/reuseQuery/reuseQuery.js.map +1 -0
  110. package/dist/api/hooks/useApiQueryCache/index.cjs +3 -0
  111. package/dist/api/hooks/useApiQueryCache/index.d.cts +2 -0
  112. package/dist/api/hooks/useApiQueryCache/index.d.ts +2 -0
  113. package/dist/api/hooks/useApiQueryCache/index.js +2 -0
  114. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs +31 -0
  115. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs.map +1 -0
  116. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.cts +24 -0
  117. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.ts +24 -0
  118. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js +30 -0
  119. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js.map +1 -0
  120. package/dist/api/hooks/useInfiniteQuery/index.cjs +3 -0
  121. package/dist/api/hooks/useInfiniteQuery/index.d.cts +3 -0
  122. package/dist/api/hooks/useInfiniteQuery/index.d.ts +3 -0
  123. package/dist/api/hooks/useInfiniteQuery/index.js +2 -0
  124. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs +34 -0
  125. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs.map +1 -0
  126. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.cts +29 -0
  127. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts +29 -0
  128. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js +33 -0
  129. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js.map +1 -0
  130. package/dist/api/hooks/useMutation/index.cjs +3 -0
  131. package/dist/api/hooks/useMutation/index.d.cts +3 -0
  132. package/dist/api/hooks/useMutation/index.d.ts +3 -0
  133. package/dist/api/hooks/useMutation/index.js +2 -0
  134. package/dist/api/hooks/useMutation/useMutation.cjs +30 -0
  135. package/dist/api/hooks/useMutation/useMutation.cjs.map +1 -0
  136. package/dist/api/hooks/useMutation/useMutation.d.cts +25 -0
  137. package/dist/api/hooks/useMutation/useMutation.d.ts +25 -0
  138. package/dist/api/hooks/useMutation/useMutation.js +29 -0
  139. package/dist/api/hooks/useMutation/useMutation.js.map +1 -0
  140. package/dist/api/hooks/useQueries/index.cjs +3 -0
  141. package/dist/api/hooks/useQueries/index.d.cts +3 -0
  142. package/dist/api/hooks/useQueries/index.d.ts +3 -0
  143. package/dist/api/hooks/useQueries/index.js +2 -0
  144. package/dist/api/hooks/useQueries/useQueries.cjs +32 -0
  145. package/dist/api/hooks/useQueries/useQueries.cjs.map +1 -0
  146. package/dist/api/hooks/useQueries/useQueries.d.cts +28 -0
  147. package/dist/api/hooks/useQueries/useQueries.d.ts +28 -0
  148. package/dist/api/hooks/useQueries/useQueries.js +31 -0
  149. package/dist/api/hooks/useQueries/useQueries.js.map +1 -0
  150. package/dist/api/hooks/useQuery/index.cjs +3 -0
  151. package/dist/api/hooks/useQuery/index.d.cts +3 -0
  152. package/dist/api/hooks/useQuery/index.d.ts +3 -0
  153. package/dist/api/hooks/useQuery/index.js +2 -0
  154. package/dist/api/hooks/useQuery/useQuery.cjs +30 -0
  155. package/dist/api/hooks/useQuery/useQuery.cjs.map +1 -0
  156. package/dist/api/hooks/useQuery/useQuery.d.cts +25 -0
  157. package/dist/api/hooks/useQuery/useQuery.d.ts +25 -0
  158. package/dist/api/hooks/useQuery/useQuery.js +29 -0
  159. package/dist/api/hooks/useQuery/useQuery.js.map +1 -0
  160. package/dist/api/hooks/utils/index.cjs +4 -0
  161. package/dist/api/hooks/utils/index.d.cts +2 -0
  162. package/dist/api/hooks/utils/index.d.ts +2 -0
  163. package/dist/api/hooks/utils/index.js +2 -0
  164. package/dist/api/hooks/utils/useReactiveRender.cjs +56 -0
  165. package/dist/api/hooks/utils/useReactiveRender.cjs.map +1 -0
  166. package/dist/api/hooks/utils/useReactiveRender.d.cts +29 -0
  167. package/dist/api/hooks/utils/useReactiveRender.d.ts +29 -0
  168. package/dist/api/hooks/utils/useReactiveRender.js +54 -0
  169. package/dist/api/hooks/utils/useReactiveRender.js.map +1 -0
  170. package/dist/api/index.cjs +18 -0
  171. package/dist/api/index.d.cts +15 -0
  172. package/dist/api/index.d.ts +15 -0
  173. package/dist/api/index.js +10 -0
  174. package/dist/api/installApiCache/index.cjs +3 -0
  175. package/dist/api/installApiCache/index.d.cts +3 -0
  176. package/dist/api/installApiCache/index.d.ts +3 -0
  177. package/dist/api/installApiCache/index.js +2 -0
  178. package/dist/api/installApiCache/installApiCache.cjs +35 -0
  179. package/dist/api/installApiCache/installApiCache.cjs.map +1 -0
  180. package/dist/api/installApiCache/installApiCache.d.cts +29 -0
  181. package/dist/api/installApiCache/installApiCache.d.ts +29 -0
  182. package/dist/api/installApiCache/installApiCache.js +34 -0
  183. package/dist/api/installApiCache/installApiCache.js.map +1 -0
  184. package/dist/api/installApiCache/types.cjs +0 -0
  185. package/dist/api/installApiCache/types.d.cts +21 -0
  186. package/dist/api/installApiCache/types.d.ts +21 -0
  187. package/dist/api/installApiCache/types.js +0 -0
  188. package/dist/api/types.cjs +0 -0
  189. package/dist/api/types.d.cts +2 -0
  190. package/dist/api/types.d.ts +2 -0
  191. package/dist/api/types.js +0 -0
  192. package/dist/computed/computed.cjs +28 -0
  193. package/dist/computed/computed.cjs.map +1 -0
  194. package/dist/computed/computed.d.cts +25 -0
  195. package/dist/computed/computed.d.ts +25 -0
  196. package/dist/computed/computed.js +27 -0
  197. package/dist/computed/computed.js.map +1 -0
  198. package/dist/computed/index.cjs +3 -0
  199. package/dist/computed/index.d.cts +2 -0
  200. package/dist/computed/index.d.ts +2 -0
  201. package/dist/computed/index.js +2 -0
  202. package/dist/createEntry/UpdateEntry/UpdateEntry.cjs +6 -0
  203. package/dist/createEntry/UpdateEntry/UpdateEntry.cjs.map +1 -0
  204. package/dist/createEntry/UpdateEntry/UpdateEntry.js +7 -0
  205. package/dist/createEntry/UpdateEntry/UpdateEntry.js.map +1 -0
  206. package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.cts +6 -0
  207. package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.ts +7 -0
  208. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs +35 -0
  209. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  210. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js +35 -0
  211. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js.map +1 -0
  212. package/dist/createEntry/UpdateEntry/Vnode.cjs +19 -0
  213. package/dist/createEntry/UpdateEntry/Vnode.cjs.map +1 -0
  214. package/dist/createEntry/UpdateEntry/Vnode.d.cts +20 -0
  215. package/dist/createEntry/UpdateEntry/Vnode.d.ts +20 -0
  216. package/dist/createEntry/UpdateEntry/Vnode.js +18 -0
  217. package/dist/createEntry/UpdateEntry/Vnode.js.map +1 -0
  218. package/dist/createEntry/UpdateEntry/index.cjs +3 -0
  219. package/dist/createEntry/UpdateEntry/index.d.cts +3 -0
  220. package/dist/createEntry/UpdateEntry/index.d.ts +3 -0
  221. package/dist/createEntry/UpdateEntry/index.js +2 -0
  222. package/dist/createEntry/UpdateEntry/types.cjs +0 -0
  223. package/dist/createEntry/UpdateEntry/types.d.cts +18 -0
  224. package/dist/createEntry/UpdateEntry/types.d.ts +18 -0
  225. package/dist/createEntry/UpdateEntry/types.js +0 -0
  226. package/dist/createEntry/WaitFor/WaitFor.cjs +6 -0
  227. package/dist/createEntry/WaitFor/WaitFor.cjs.map +1 -0
  228. package/dist/createEntry/WaitFor/WaitFor.js +7 -0
  229. package/dist/createEntry/WaitFor/WaitFor.js.map +1 -0
  230. package/dist/createEntry/WaitFor/WaitFor.vue.d.cts +6 -0
  231. package/dist/createEntry/WaitFor/WaitFor.vue.d.ts +7 -0
  232. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs +50 -0
  233. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  234. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js +50 -0
  235. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js.map +1 -0
  236. package/dist/createEntry/WaitFor/index.cjs +3 -0
  237. package/dist/createEntry/WaitFor/index.d.cts +3 -0
  238. package/dist/createEntry/WaitFor/index.d.ts +3 -0
  239. package/dist/createEntry/WaitFor/index.js +2 -0
  240. package/dist/createEntry/WaitFor/types.cjs +0 -0
  241. package/dist/createEntry/WaitFor/types.d.cts +21 -0
  242. package/dist/createEntry/WaitFor/types.d.ts +21 -0
  243. package/dist/createEntry/WaitFor/types.js +0 -0
  244. package/dist/createEntry/createEntry.cjs +32 -0
  245. package/dist/createEntry/createEntry.cjs.map +1 -0
  246. package/dist/createEntry/createEntry.d.cts +17 -0
  247. package/dist/createEntry/createEntry.d.ts +17 -0
  248. package/dist/createEntry/createEntry.js +31 -0
  249. package/dist/createEntry/createEntry.js.map +1 -0
  250. package/dist/createEntry/createServerEntry.cjs +45 -0
  251. package/dist/createEntry/createServerEntry.cjs.map +1 -0
  252. package/dist/createEntry/createServerEntry.d.cts +17 -0
  253. package/dist/createEntry/createServerEntry.d.ts +17 -0
  254. package/dist/createEntry/createServerEntry.js +43 -0
  255. package/dist/createEntry/createServerEntry.js.map +1 -0
  256. package/dist/createEntry/index.cjs +5 -0
  257. package/dist/createEntry/index.d.cts +5 -0
  258. package/dist/createEntry/index.d.ts +5 -0
  259. package/dist/createEntry/index.js +3 -0
  260. package/dist/createEntry/types.cjs +0 -0
  261. package/dist/createEntry/types.d.cts +75 -0
  262. package/dist/createEntry/types.d.ts +75 -0
  263. package/dist/createEntry/types.js +0 -0
  264. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs +28 -0
  265. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs.map +1 -0
  266. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.cts +27 -0
  267. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.ts +27 -0
  268. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js +27 -0
  269. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js.map +1 -0
  270. package/dist/createEntry/utils/createServerVueApp/index.cjs +3 -0
  271. package/dist/createEntry/utils/createServerVueApp/index.d.cts +2 -0
  272. package/dist/createEntry/utils/createServerVueApp/index.d.ts +2 -0
  273. package/dist/createEntry/utils/createServerVueApp/index.js +2 -0
  274. package/dist/createEntry/utils/createServerVueApp/types.cjs +0 -0
  275. package/dist/createEntry/utils/createServerVueApp/types.d.cts +7 -0
  276. package/dist/createEntry/utils/createServerVueApp/types.d.ts +7 -0
  277. package/dist/createEntry/utils/createServerVueApp/types.js +0 -0
  278. package/dist/createEntry/utils/createVueApp/createVueApp.cjs +43 -0
  279. package/dist/createEntry/utils/createVueApp/createVueApp.cjs.map +1 -0
  280. package/dist/createEntry/utils/createVueApp/createVueApp.d.cts +22 -0
  281. package/dist/createEntry/utils/createVueApp/createVueApp.d.ts +22 -0
  282. package/dist/createEntry/utils/createVueApp/createVueApp.js +42 -0
  283. package/dist/createEntry/utils/createVueApp/createVueApp.js.map +1 -0
  284. package/dist/createEntry/utils/createVueApp/index.cjs +3 -0
  285. package/dist/createEntry/utils/createVueApp/index.d.cts +2 -0
  286. package/dist/createEntry/utils/createVueApp/index.d.ts +2 -0
  287. package/dist/createEntry/utils/createVueApp/index.js +2 -0
  288. package/dist/createEntry/utils/index.cjs +10 -0
  289. package/dist/createEntry/utils/index.d.cts +5 -0
  290. package/dist/createEntry/utils/index.d.ts +5 -0
  291. package/dist/createEntry/utils/index.js +6 -0
  292. package/dist/createEntry/utils/normalizeVueOptions/index.cjs +3 -0
  293. package/dist/createEntry/utils/normalizeVueOptions/index.d.cts +2 -0
  294. package/dist/createEntry/utils/normalizeVueOptions/index.d.ts +2 -0
  295. package/dist/createEntry/utils/normalizeVueOptions/index.js +2 -0
  296. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs +28 -0
  297. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs.map +1 -0
  298. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.cts +17 -0
  299. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.ts +17 -0
  300. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js +27 -0
  301. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js.map +1 -0
  302. package/dist/createEntry/utils/setupVueEntry/index.cjs +3 -0
  303. package/dist/createEntry/utils/setupVueEntry/index.d.cts +2 -0
  304. package/dist/createEntry/utils/setupVueEntry/index.d.ts +2 -0
  305. package/dist/createEntry/utils/setupVueEntry/index.js +2 -0
  306. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs +31 -0
  307. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs.map +1 -0
  308. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.cts +17 -0
  309. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.ts +17 -0
  310. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js +30 -0
  311. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js.map +1 -0
  312. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs +49 -0
  313. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs.map +1 -0
  314. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.cts +33 -0
  315. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.ts +33 -0
  316. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js +48 -0
  317. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js.map +1 -0
  318. package/dist/createPiniaAsyncStore/index.cjs +3 -0
  319. package/dist/createPiniaAsyncStore/index.d.cts +3 -0
  320. package/dist/createPiniaAsyncStore/index.d.ts +3 -0
  321. package/dist/createPiniaAsyncStore/index.js +2 -0
  322. package/dist/createPiniaAsyncStore/types.cjs +0 -0
  323. package/dist/createPiniaAsyncStore/types.d.cts +22 -0
  324. package/dist/createPiniaAsyncStore/types.d.ts +22 -0
  325. package/dist/createPiniaAsyncStore/types.js +0 -0
  326. package/dist/getContext/getContext.cjs +29 -0
  327. package/dist/getContext/getContext.cjs.map +1 -0
  328. package/dist/getContext/getContext.d.cts +24 -0
  329. package/dist/getContext/getContext.d.ts +24 -0
  330. package/dist/getContext/getContext.js +28 -0
  331. package/dist/getContext/getContext.js.map +1 -0
  332. package/dist/getContext/index.cjs +3 -0
  333. package/dist/getContext/index.d.cts +2 -0
  334. package/dist/getContext/index.d.ts +2 -0
  335. package/dist/getContext/index.js +2 -0
  336. package/dist/getEventHandlers/getEventHandlers.cjs +65 -0
  337. package/dist/getEventHandlers/getEventHandlers.cjs.map +1 -0
  338. package/dist/getEventHandlers/getEventHandlers.d.cts +45 -0
  339. package/dist/getEventHandlers/getEventHandlers.d.ts +45 -0
  340. package/dist/getEventHandlers/getEventHandlers.js +64 -0
  341. package/dist/getEventHandlers/getEventHandlers.js.map +1 -0
  342. package/dist/getEventHandlers/index.cjs +3 -0
  343. package/dist/getEventHandlers/index.d.cts +3 -0
  344. package/dist/getEventHandlers/index.d.ts +3 -0
  345. package/dist/getEventHandlers/index.js +2 -0
  346. package/dist/getEventHandlers/types.cjs +0 -0
  347. package/dist/getEventHandlers/types.d.cts +7 -0
  348. package/dist/getEventHandlers/types.d.ts +7 -0
  349. package/dist/getEventHandlers/types.js +0 -0
  350. package/dist/index.cjs +104 -0
  351. package/dist/index.d.cts +61 -0
  352. package/dist/index.d.ts +61 -0
  353. package/dist/index.js +62 -0
  354. package/dist/node_modules/@babel/parser/lib/index.cjs +12599 -0
  355. package/dist/node_modules/@babel/parser/lib/index.cjs.map +1 -0
  356. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +4832 -0
  357. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +1 -0
  358. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +4775 -0
  359. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +1 -0
  360. package/dist/node_modules/@vue/compiler-core/index.cjs +18 -0
  361. package/dist/node_modules/@vue/compiler-core/index.cjs.map +1 -0
  362. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +665 -0
  363. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +1 -0
  364. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +447 -0
  365. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +1 -0
  366. package/dist/node_modules/@vue/compiler-dom/index.cjs +18 -0
  367. package/dist/node_modules/@vue/compiler-dom/index.cjs.map +1 -0
  368. package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs +848 -0
  369. package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs.map +1 -0
  370. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs +830 -0
  371. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs.map +1 -0
  372. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs +605 -0
  373. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs.map +1 -0
  374. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +532 -0
  375. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
  376. package/dist/node_modules/@vue/server-renderer/index.cjs +18 -0
  377. package/dist/node_modules/@vue/server-renderer/index.cjs.map +1 -0
  378. package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs +496 -0
  379. package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs.map +1 -0
  380. package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +495 -0
  381. package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +1 -0
  382. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +166 -0
  383. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  384. package/dist/node_modules/@vue/shared/index.cjs +18 -0
  385. package/dist/node_modules/@vue/shared/index.cjs.map +1 -0
  386. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs +81 -0
  387. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs.map +1 -0
  388. package/dist/node_modules/entities/dist/commonjs/decode.cjs +474 -0
  389. package/dist/node_modules/entities/dist/commonjs/decode.cjs.map +1 -0
  390. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs +18 -0
  391. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs.map +1 -0
  392. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs +18 -0
  393. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs.map +1 -0
  394. package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs +32 -0
  395. package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs.map +1 -0
  396. package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs +26 -0
  397. package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs.map +1 -0
  398. package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs +254 -0
  399. package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +1 -0
  400. package/dist/node_modules/source-map-js/lib/array-set.cjs +102 -0
  401. package/dist/node_modules/source-map-js/lib/array-set.cjs.map +1 -0
  402. package/dist/node_modules/source-map-js/lib/base64-vlq.cjs +75 -0
  403. package/dist/node_modules/source-map-js/lib/base64-vlq.cjs.map +1 -0
  404. package/dist/node_modules/source-map-js/lib/base64.cjs +42 -0
  405. package/dist/node_modules/source-map-js/lib/base64.cjs.map +1 -0
  406. package/dist/node_modules/source-map-js/lib/binary-search.cjs +69 -0
  407. package/dist/node_modules/source-map-js/lib/binary-search.cjs.map +1 -0
  408. package/dist/node_modules/source-map-js/lib/mapping-list.cjs +79 -0
  409. package/dist/node_modules/source-map-js/lib/mapping-list.cjs.map +1 -0
  410. package/dist/node_modules/source-map-js/lib/quick-sort.cjs +90 -0
  411. package/dist/node_modules/source-map-js/lib/quick-sort.cjs.map +1 -0
  412. package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs +790 -0
  413. package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs.map +1 -0
  414. package/dist/node_modules/source-map-js/lib/source-map-generator.cjs +297 -0
  415. package/dist/node_modules/source-map-js/lib/source-map-generator.cjs.map +1 -0
  416. package/dist/node_modules/source-map-js/lib/source-node.cjs +295 -0
  417. package/dist/node_modules/source-map-js/lib/source-node.cjs.map +1 -0
  418. package/dist/node_modules/source-map-js/lib/util.cjs +353 -0
  419. package/dist/node_modules/source-map-js/lib/util.cjs.map +1 -0
  420. package/dist/node_modules/source-map-js/source-map.cjs +19 -0
  421. package/dist/node_modules/source-map-js/source-map.cjs.map +1 -0
  422. package/dist/portals/Portal/Portal.cjs +6 -0
  423. package/dist/portals/Portal/Portal.cjs.map +1 -0
  424. package/dist/portals/Portal/Portal.js +7 -0
  425. package/dist/portals/Portal/Portal.js.map +1 -0
  426. package/dist/portals/Portal/Portal.vue.d.cts +6 -0
  427. package/dist/portals/Portal/Portal.vue.d.ts +7 -0
  428. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs +56 -0
  429. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  430. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js +56 -0
  431. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js.map +1 -0
  432. package/dist/portals/Portal/index.cjs +3 -0
  433. package/dist/portals/Portal/index.d.cts +3 -0
  434. package/dist/portals/Portal/index.d.ts +3 -0
  435. package/dist/portals/Portal/index.js +2 -0
  436. package/dist/portals/Portal/types.cjs +0 -0
  437. package/dist/portals/Portal/types.d.cts +19 -0
  438. package/dist/portals/Portal/types.d.ts +19 -0
  439. package/dist/portals/Portal/types.js +0 -0
  440. package/dist/portals/index.cjs +13 -0
  441. package/dist/portals/index.d.cts +8 -0
  442. package/dist/portals/index.d.ts +8 -0
  443. package/dist/portals/index.js +8 -0
  444. package/dist/portals/installPortals/index.cjs +3 -0
  445. package/dist/portals/installPortals/index.d.cts +3 -0
  446. package/dist/portals/installPortals/index.d.ts +3 -0
  447. package/dist/portals/installPortals/index.js +2 -0
  448. package/dist/portals/installPortals/installPortals.cjs +25 -0
  449. package/dist/portals/installPortals/installPortals.cjs.map +1 -0
  450. package/dist/portals/installPortals/installPortals.d.cts +25 -0
  451. package/dist/portals/installPortals/installPortals.d.ts +25 -0
  452. package/dist/portals/installPortals/installPortals.js +24 -0
  453. package/dist/portals/installPortals/installPortals.js.map +1 -0
  454. package/dist/portals/installPortals/types.cjs +0 -0
  455. package/dist/portals/installPortals/types.d.cts +23 -0
  456. package/dist/portals/installPortals/types.d.ts +23 -0
  457. package/dist/portals/installPortals/types.js +0 -0
  458. package/dist/portals/types.cjs +0 -0
  459. package/dist/portals/types.d.cts +40 -0
  460. package/dist/portals/types.d.ts +40 -0
  461. package/dist/portals/types.js +0 -0
  462. package/dist/portals/usePortal.cjs +44 -0
  463. package/dist/portals/usePortal.cjs.map +1 -0
  464. package/dist/portals/usePortal.d.cts +17 -0
  465. package/dist/portals/usePortal.d.ts +17 -0
  466. package/dist/portals/usePortal.js +43 -0
  467. package/dist/portals/usePortal.js.map +1 -0
  468. package/dist/portals/usePortalAnchors.cjs +21 -0
  469. package/dist/portals/usePortalAnchors.cjs.map +1 -0
  470. package/dist/portals/usePortalAnchors.d.cts +14 -0
  471. package/dist/portals/usePortalAnchors.d.ts +14 -0
  472. package/dist/portals/usePortalAnchors.js +20 -0
  473. package/dist/portals/usePortalAnchors.js.map +1 -0
  474. package/dist/portals/usePortals.cjs +21 -0
  475. package/dist/portals/usePortals.cjs.map +1 -0
  476. package/dist/portals/usePortals.d.cts +14 -0
  477. package/dist/portals/usePortals.d.ts +14 -0
  478. package/dist/portals/usePortals.js +20 -0
  479. package/dist/portals/usePortals.js.map +1 -0
  480. package/dist/router/RouterLink/RouterLink.cjs +6 -0
  481. package/dist/router/RouterLink/RouterLink.cjs.map +1 -0
  482. package/dist/router/RouterLink/RouterLink.js +7 -0
  483. package/dist/router/RouterLink/RouterLink.js.map +1 -0
  484. package/dist/router/RouterLink/RouterLink.vue.d.cts +18 -0
  485. package/dist/router/RouterLink/RouterLink.vue.d.ts +19 -0
  486. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs +59 -0
  487. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  488. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js +59 -0
  489. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js.map +1 -0
  490. package/dist/router/RouterLink/index.cjs +3 -0
  491. package/dist/router/RouterLink/index.d.cts +3 -0
  492. package/dist/router/RouterLink/index.d.ts +3 -0
  493. package/dist/router/RouterLink/index.js +2 -0
  494. package/dist/router/RouterLink/types.cjs +0 -0
  495. package/dist/router/RouterLink/types.d.cts +11 -0
  496. package/dist/router/RouterLink/types.d.ts +11 -0
  497. package/dist/router/RouterLink/types.js +0 -0
  498. package/dist/router/RouterView/RouterView.cjs +6 -0
  499. package/dist/router/RouterView/RouterView.cjs.map +1 -0
  500. package/dist/router/RouterView/RouterView.js +7 -0
  501. package/dist/router/RouterView/RouterView.js.map +1 -0
  502. package/dist/router/RouterView/RouterView.vue.d.cts +6 -0
  503. package/dist/router/RouterView/RouterView.vue.d.ts +7 -0
  504. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs +58 -0
  505. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  506. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js +58 -0
  507. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js.map +1 -0
  508. package/dist/router/RouterView/index.cjs +3 -0
  509. package/dist/router/RouterView/index.d.cts +2 -0
  510. package/dist/router/RouterView/index.d.ts +2 -0
  511. package/dist/router/RouterView/index.js +2 -0
  512. package/dist/router/RouterView/types.cjs +0 -0
  513. package/dist/router/RouterView/types.d.cts +15 -0
  514. package/dist/router/RouterView/types.d.ts +15 -0
  515. package/dist/router/RouterView/types.js +0 -0
  516. package/dist/router/index.cjs +28 -0
  517. package/dist/router/index.d.cts +12 -0
  518. package/dist/router/index.d.ts +12 -0
  519. package/dist/router/index.js +18 -0
  520. package/dist/router/installRouter.cjs +34 -0
  521. package/dist/router/installRouter.cjs.map +1 -0
  522. package/dist/router/installRouter.d.cts +14 -0
  523. package/dist/router/installRouter.d.ts +14 -0
  524. package/dist/router/installRouter.js +33 -0
  525. package/dist/router/installRouter.js.map +1 -0
  526. package/dist/router/types.cjs +1 -0
  527. package/dist/router/types.d.cts +21 -0
  528. package/dist/router/types.d.ts +21 -0
  529. package/dist/router/types.js +1 -0
  530. package/dist/router/useLocation/index.cjs +3 -0
  531. package/dist/router/useLocation/index.d.cts +2 -0
  532. package/dist/router/useLocation/index.d.ts +2 -0
  533. package/dist/router/useLocation/index.js +2 -0
  534. package/dist/router/useLocation/useLocation.cjs +24 -0
  535. package/dist/router/useLocation/useLocation.cjs.map +1 -0
  536. package/dist/router/useLocation/useLocation.d.cts +12 -0
  537. package/dist/router/useLocation/useLocation.d.ts +12 -0
  538. package/dist/router/useLocation/useLocation.js +23 -0
  539. package/dist/router/useLocation/useLocation.js.map +1 -0
  540. package/dist/router/useNavigate/index.cjs +3 -0
  541. package/dist/router/useNavigate/index.d.cts +2 -0
  542. package/dist/router/useNavigate/index.d.ts +2 -0
  543. package/dist/router/useNavigate/index.js +2 -0
  544. package/dist/router/useNavigate/useNavigate.cjs +17 -0
  545. package/dist/router/useNavigate/useNavigate.cjs.map +1 -0
  546. package/dist/router/useNavigate/useNavigate.d.cts +12 -0
  547. package/dist/router/useNavigate/useNavigate.d.ts +12 -0
  548. package/dist/router/useNavigate/useNavigate.js +16 -0
  549. package/dist/router/useNavigate/useNavigate.js.map +1 -0
  550. package/dist/router/usePaths/index.cjs +3 -0
  551. package/dist/router/usePaths/index.d.cts +2 -0
  552. package/dist/router/usePaths/index.d.ts +2 -0
  553. package/dist/router/usePaths/index.js +2 -0
  554. package/dist/router/usePaths/usePaths.cjs +27 -0
  555. package/dist/router/usePaths/usePaths.cjs.map +1 -0
  556. package/dist/router/usePaths/usePaths.d.cts +14 -0
  557. package/dist/router/usePaths/usePaths.d.ts +14 -0
  558. package/dist/router/usePaths/usePaths.js +26 -0
  559. package/dist/router/usePaths/usePaths.js.map +1 -0
  560. package/dist/router/useRoute/index.cjs +3 -0
  561. package/dist/router/useRoute/index.d.cts +2 -0
  562. package/dist/router/useRoute/index.d.ts +2 -0
  563. package/dist/router/useRoute/index.js +2 -0
  564. package/dist/router/useRoute/useRoute.cjs +28 -0
  565. package/dist/router/useRoute/useRoute.cjs.map +1 -0
  566. package/dist/router/useRoute/useRoute.d.cts +12 -0
  567. package/dist/router/useRoute/useRoute.d.ts +12 -0
  568. package/dist/router/useRoute/useRoute.js +27 -0
  569. package/dist/router/useRoute/useRoute.js.map +1 -0
  570. package/dist/router/useRouter/index.cjs +3 -0
  571. package/dist/router/useRouter/index.d.cts +2 -0
  572. package/dist/router/useRouter/index.d.ts +2 -0
  573. package/dist/router/useRouter/index.js +2 -0
  574. package/dist/router/useRouter/useRouter.cjs +17 -0
  575. package/dist/router/useRouter/useRouter.cjs.map +1 -0
  576. package/dist/router/useRouter/useRouter.d.cts +12 -0
  577. package/dist/router/useRouter/useRouter.d.ts +12 -0
  578. package/dist/router/useRouter/useRouter.js +16 -0
  579. package/dist/router/useRouter/useRouter.js.map +1 -0
  580. package/dist/router/useRouterLink/index.cjs +3 -0
  581. package/dist/router/useRouterLink/index.d.cts +3 -0
  582. package/dist/router/useRouterLink/index.d.ts +3 -0
  583. package/dist/router/useRouterLink/index.js +2 -0
  584. package/dist/router/useRouterLink/types.cjs +0 -0
  585. package/dist/router/useRouterLink/types.d.cts +2 -0
  586. package/dist/router/useRouterLink/types.d.ts +2 -0
  587. package/dist/router/useRouterLink/types.js +0 -0
  588. package/dist/router/useRouterLink/useRouterLink.cjs +37 -0
  589. package/dist/router/useRouterLink/useRouterLink.cjs.map +1 -0
  590. package/dist/router/useRouterLink/useRouterLink.d.cts +13 -0
  591. package/dist/router/useRouterLink/useRouterLink.d.ts +13 -0
  592. package/dist/router/useRouterLink/useRouterLink.js +36 -0
  593. package/dist/router/useRouterLink/useRouterLink.js.map +1 -0
  594. package/dist/router/useSearchParams/index.cjs +3 -0
  595. package/dist/router/useSearchParams/index.d.cts +2 -0
  596. package/dist/router/useSearchParams/index.d.ts +2 -0
  597. package/dist/router/useSearchParams/index.js +2 -0
  598. package/dist/router/useSearchParams/useSearchParams.cjs +29 -0
  599. package/dist/router/useSearchParams/useSearchParams.cjs.map +1 -0
  600. package/dist/router/useSearchParams/useSearchParams.d.cts +14 -0
  601. package/dist/router/useSearchParams/useSearchParams.d.ts +14 -0
  602. package/dist/router/useSearchParams/useSearchParams.js +28 -0
  603. package/dist/router/useSearchParams/useSearchParams.js.map +1 -0
  604. package/dist/setContext/index.cjs +3 -0
  605. package/dist/setContext/index.d.cts +2 -0
  606. package/dist/setContext/index.d.ts +2 -0
  607. package/dist/setContext/index.js +2 -0
  608. package/dist/setContext/setContext.cjs +29 -0
  609. package/dist/setContext/setContext.cjs.map +1 -0
  610. package/dist/setContext/setContext.d.cts +24 -0
  611. package/dist/setContext/setContext.d.ts +24 -0
  612. package/dist/setContext/setContext.js +28 -0
  613. package/dist/setContext/setContext.js.map +1 -0
  614. package/dist/useBeforeMount/index.cjs +3 -0
  615. package/dist/useBeforeMount/index.d.cts +2 -0
  616. package/dist/useBeforeMount/index.d.ts +2 -0
  617. package/dist/useBeforeMount/index.js +2 -0
  618. package/dist/useBeforeMount/useBeforeMount.cjs +29 -0
  619. package/dist/useBeforeMount/useBeforeMount.cjs.map +1 -0
  620. package/dist/useBeforeMount/useBeforeMount.d.cts +24 -0
  621. package/dist/useBeforeMount/useBeforeMount.d.ts +24 -0
  622. package/dist/useBeforeMount/useBeforeMount.js +28 -0
  623. package/dist/useBeforeMount/useBeforeMount.js.map +1 -0
  624. package/dist/useBeforeUnmount/index.cjs +3 -0
  625. package/dist/useBeforeUnmount/index.d.cts +2 -0
  626. package/dist/useBeforeUnmount/index.d.ts +2 -0
  627. package/dist/useBeforeUnmount/index.js +2 -0
  628. package/dist/useBeforeUnmount/useBeforeUnmount.cjs +29 -0
  629. package/dist/useBeforeUnmount/useBeforeUnmount.cjs.map +1 -0
  630. package/dist/useBeforeUnmount/useBeforeUnmount.d.cts +24 -0
  631. package/dist/useBeforeUnmount/useBeforeUnmount.d.ts +24 -0
  632. package/dist/useBeforeUnmount/useBeforeUnmount.js +28 -0
  633. package/dist/useBeforeUnmount/useBeforeUnmount.js.map +1 -0
  634. package/dist/useChildren/index.cjs +3 -0
  635. package/dist/useChildren/index.d.cts +2 -0
  636. package/dist/useChildren/index.d.ts +2 -0
  637. package/dist/useChildren/index.js +2 -0
  638. package/dist/useChildren/useChildren.cjs +35 -0
  639. package/dist/useChildren/useChildren.cjs.map +1 -0
  640. package/dist/useChildren/useChildren.d.cts +26 -0
  641. package/dist/useChildren/useChildren.d.ts +26 -0
  642. package/dist/useChildren/useChildren.js +34 -0
  643. package/dist/useChildren/useChildren.js.map +1 -0
  644. package/dist/useColorScheme/index.cjs +3 -0
  645. package/dist/useColorScheme/index.d.cts +2 -0
  646. package/dist/useColorScheme/index.d.ts +2 -0
  647. package/dist/useColorScheme/index.js +2 -0
  648. package/dist/useColorScheme/useColorScheme.cjs +46 -0
  649. package/dist/useColorScheme/useColorScheme.cjs.map +1 -0
  650. package/dist/useColorScheme/useColorScheme.d.cts +29 -0
  651. package/dist/useColorScheme/useColorScheme.d.ts +29 -0
  652. package/dist/useColorScheme/useColorScheme.js +45 -0
  653. package/dist/useColorScheme/useColorScheme.js.map +1 -0
  654. package/dist/useMediator/index.cjs +3 -0
  655. package/dist/useMediator/index.d.cts +3 -0
  656. package/dist/useMediator/index.d.ts +3 -0
  657. package/dist/useMediator/index.js +2 -0
  658. package/dist/useMediator/types.cjs +0 -0
  659. package/dist/useMediator/types.d.cts +2 -0
  660. package/dist/useMediator/types.d.ts +2 -0
  661. package/dist/useMediator/types.js +0 -0
  662. package/dist/useMediator/useMediator.cjs +137 -0
  663. package/dist/useMediator/useMediator.cjs.map +1 -0
  664. package/dist/useMediator/useMediator.d.cts +61 -0
  665. package/dist/useMediator/useMediator.d.ts +61 -0
  666. package/dist/useMediator/useMediator.js +136 -0
  667. package/dist/useMediator/useMediator.js.map +1 -0
  668. package/dist/useMediator/utils.cjs +22 -0
  669. package/dist/useMediator/utils.cjs.map +1 -0
  670. package/dist/useMediator/utils.d.cts +14 -0
  671. package/dist/useMediator/utils.d.ts +14 -0
  672. package/dist/useMediator/utils.js +21 -0
  673. package/dist/useMediator/utils.js.map +1 -0
  674. package/dist/useMounted/index.cjs +3 -0
  675. package/dist/useMounted/index.d.cts +2 -0
  676. package/dist/useMounted/index.d.ts +2 -0
  677. package/dist/useMounted/index.js +2 -0
  678. package/dist/useMounted/useMounted.cjs +29 -0
  679. package/dist/useMounted/useMounted.cjs.map +1 -0
  680. package/dist/useMounted/useMounted.d.cts +24 -0
  681. package/dist/useMounted/useMounted.d.ts +24 -0
  682. package/dist/useMounted/useMounted.js +28 -0
  683. package/dist/useMounted/useMounted.js.map +1 -0
  684. package/dist/useRef/index.cjs +3 -0
  685. package/dist/useRef/index.d.cts +2 -0
  686. package/dist/useRef/index.d.ts +2 -0
  687. package/dist/useRef/index.js +2 -0
  688. package/dist/useRef/useRef.cjs +28 -0
  689. package/dist/useRef/useRef.cjs.map +1 -0
  690. package/dist/useRef/useRef.d.cts +25 -0
  691. package/dist/useRef/useRef.d.ts +25 -0
  692. package/dist/useRef/useRef.js +27 -0
  693. package/dist/useRef/useRef.js.map +1 -0
  694. package/dist/withDefaultProps/constants.cjs +10 -0
  695. package/dist/withDefaultProps/constants.cjs.map +1 -0
  696. package/dist/withDefaultProps/constants.d.cts +8 -0
  697. package/dist/withDefaultProps/constants.d.ts +8 -0
  698. package/dist/withDefaultProps/constants.js +9 -0
  699. package/dist/withDefaultProps/constants.js.map +1 -0
  700. package/dist/withDefaultProps/index.cjs +3 -0
  701. package/dist/withDefaultProps/index.d.cts +3 -0
  702. package/dist/withDefaultProps/index.d.ts +3 -0
  703. package/dist/withDefaultProps/index.js +2 -0
  704. package/dist/withDefaultProps/types.cjs +0 -0
  705. package/dist/withDefaultProps/types.d.cts +25 -0
  706. package/dist/withDefaultProps/types.d.ts +25 -0
  707. package/dist/withDefaultProps/types.js +0 -0
  708. package/dist/withDefaultProps/withDefaultProps.cjs +85 -0
  709. package/dist/withDefaultProps/withDefaultProps.cjs.map +1 -0
  710. package/dist/withDefaultProps/withDefaultProps.d.cts +48 -0
  711. package/dist/withDefaultProps/withDefaultProps.d.ts +48 -0
  712. package/dist/withDefaultProps/withDefaultProps.js +84 -0
  713. package/dist/withDefaultProps/withDefaultProps.js.map +1 -0
  714. package/dist/withDefaultPropsHandlers/constants.cjs +7 -0
  715. package/dist/withDefaultPropsHandlers/constants.cjs.map +1 -0
  716. package/dist/withDefaultPropsHandlers/constants.d.cts +5 -0
  717. package/dist/withDefaultPropsHandlers/constants.d.ts +5 -0
  718. package/dist/withDefaultPropsHandlers/constants.js +6 -0
  719. package/dist/withDefaultPropsHandlers/constants.js.map +1 -0
  720. package/dist/withDefaultPropsHandlers/index.cjs +3 -0
  721. package/dist/withDefaultPropsHandlers/index.d.cts +3 -0
  722. package/dist/withDefaultPropsHandlers/index.d.ts +3 -0
  723. package/dist/withDefaultPropsHandlers/index.js +2 -0
  724. package/dist/withDefaultPropsHandlers/types.cjs +0 -0
  725. package/dist/withDefaultPropsHandlers/types.d.cts +12 -0
  726. package/dist/withDefaultPropsHandlers/types.d.ts +12 -0
  727. package/dist/withDefaultPropsHandlers/types.js +0 -0
  728. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs +81 -0
  729. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs.map +1 -0
  730. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.cts +49 -0
  731. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.ts +49 -0
  732. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js +80 -0
  733. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js.map +1 -0
  734. package/package.json +647 -0
@@ -0,0 +1,17 @@
1
+ import { VueEntryNormalizedOptions } from "../../types.cjs";
2
+ import { App } from "vue";
3
+
4
+ //#region src/createEntry/utils/setupVueEntry/setupVueEntry.d.ts
5
+ /**
6
+ * Applies Vue entry plugins, components, and directives to an app instance.
7
+ *
8
+ * Plugin descriptors can pass one or more options to `app.use`. Registered
9
+ * components and directives are installed globally on the entry app.
10
+ *
11
+ * @param app - Vue app instance to configure.
12
+ * @param options - Normalized Vue entry options.
13
+ */
14
+ declare function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void;
15
+ //#endregion
16
+ export { setupVueEntry };
17
+ //# sourceMappingURL=setupVueEntry.d.cts.map
@@ -0,0 +1,17 @@
1
+ import { VueEntryNormalizedOptions } from "../../types.js";
2
+ import { App } from "vue";
3
+
4
+ //#region src/createEntry/utils/setupVueEntry/setupVueEntry.d.ts
5
+ /**
6
+ * Applies Vue entry plugins, components, and directives to an app instance.
7
+ *
8
+ * Plugin descriptors can pass one or more options to `app.use`. Registered
9
+ * components and directives are installed globally on the entry app.
10
+ *
11
+ * @param app - Vue app instance to configure.
12
+ * @param options - Normalized Vue entry options.
13
+ */
14
+ declare function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void;
15
+ //#endregion
16
+ export { setupVueEntry };
17
+ //# sourceMappingURL=setupVueEntry.d.ts.map
@@ -0,0 +1,30 @@
1
+ //#region src/createEntry/utils/setupVueEntry/setupVueEntry.ts
2
+ /**
3
+ * Applies Vue entry plugins, components, and directives to an app instance.
4
+ *
5
+ * Plugin descriptors can pass one or more options to `app.use`. Registered
6
+ * components and directives are installed globally on the entry app.
7
+ *
8
+ * @param app - Vue app instance to configure.
9
+ * @param options - Normalized Vue entry options.
10
+ */
11
+ function setupVueEntry(app, options) {
12
+ const { use, register } = options;
13
+ use.forEach((_plugin) => {
14
+ const plugin = _plugin.plugin || _plugin;
15
+ let options = [];
16
+ if (_plugin.options) options = Array.isArray(_plugin.options) ? _plugin.options : [_plugin.options];
17
+ app.use(plugin, ...options);
18
+ });
19
+ const { component, directive } = register;
20
+ Object.entries(component).forEach(([name, component]) => {
21
+ app.component(name, component);
22
+ });
23
+ Object.entries(directive).forEach(([name, directive]) => {
24
+ app.directive(name, directive);
25
+ });
26
+ }
27
+ //#endregion
28
+ export { setupVueEntry };
29
+
30
+ //# sourceMappingURL=setupVueEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupVueEntry.js","names":[],"sources":["../../../../src/createEntry/utils/setupVueEntry/setupVueEntry.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\nimport type { VueEntryNormalizedOptions, PluginDescriptor } from '../../types';\n\n/**\n * Applies Vue entry plugins, components, and directives to an app instance.\n *\n * Plugin descriptors can pass one or more options to `app.use`. Registered\n * components and directives are installed globally on the entry app.\n *\n * @param app - Vue app instance to configure.\n * @param options - Normalized Vue entry options.\n */\nexport function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void {\n const { use, register } = options;\n\n use.forEach((_plugin: Plugin | PluginDescriptor) => {\n const plugin = (_plugin as PluginDescriptor).plugin || _plugin as Plugin;\n let options: any[] = [];\n \n if ((_plugin as PluginDescriptor).options) {\n options = Array.isArray((_plugin as PluginDescriptor).options) ?\n (_plugin as PluginDescriptor).options :\n [ (_plugin as PluginDescriptor).options ];\n }\n\n app.use(plugin, ...options);\n });\n \n const { component, directive } = register;\n\n Object.entries(component).forEach(([name, component]) => {\n app.component(name, component);\n });\n\n Object.entries(directive).forEach(([name, directive]) => {\n app.directive(name, directive);\n });\n}\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,cAAc,KAAe,SAA0C;CACrF,MAAM,EAAE,KAAK,aAAa;CAE1B,IAAI,SAAS,YAAuC;EAClD,MAAM,SAAU,QAA6B,UAAU;EACvD,IAAI,UAAiB,CAAC;EAEtB,IAAK,QAA6B,SAChC,UAAU,MAAM,QAAS,QAA6B,OAAO,IAC1D,QAA6B,UAC9B,CAAG,QAA6B,OAAQ;EAG5C,IAAI,IAAI,QAAQ,GAAG,OAAO;CAC5B,CAAC;CAED,MAAM,EAAE,WAAW,cAAc;CAEjC,OAAO,QAAQ,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,eAAe;EACvD,IAAI,UAAU,MAAM,SAAS;CAC/B,CAAC;CAED,OAAO,QAAQ,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,eAAe;EACvD,IAAI,UAAU,MAAM,SAAS;CAC/B,CAAC;AACH"}
@@ -0,0 +1,49 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _pastweb_tools_createAsyncStore = require("@pastweb/tools/createAsyncStore");
3
+ let _pastweb_tools_noop = require("@pastweb/tools/noop");
4
+ let pinia = require("pinia");
5
+ //#region src/createPiniaAsyncStore/createPiniaAsyncStore.ts
6
+ /**
7
+ * Creates an async Pinia store wrapper.
8
+ *
9
+ * The returned object is a tools async store with a Pinia instance attached as
10
+ * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
11
+ * instance and marks the async store as ready when the callback resolves.
12
+ *
13
+ * @param options - Async Pinia store options.
14
+ * @param options.name - Optional name suffix used for the underlying async store.
15
+ * @param options.onInit - Optional initialization callback that receives the Pinia instance.
16
+ * @returns Async store with a Pinia instance attached.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
21
+ *
22
+ * const piniaStore = createPiniaAsyncStore({
23
+ * name: 'app',
24
+ * async onInit(pinia) {
25
+ * app.use(pinia);
26
+ * },
27
+ * });
28
+ *
29
+ * await piniaStore.init();
30
+ * ```
31
+ */
32
+ function createPiniaAsyncStore(options) {
33
+ const asyncStore = (0, _pastweb_tools_createAsyncStore.createAsyncStore)({
34
+ ...options,
35
+ name: `PiniaAsyncStore${options.name ? `:${options.name}` : ""}`
36
+ });
37
+ const store = (0, pinia.createPinia)();
38
+ asyncStore.store = store;
39
+ asyncStore.init = async () => {
40
+ const { onInit = _pastweb_tools_noop.noop } = asyncStore.options;
41
+ await onInit(store);
42
+ asyncStore.setStoreReady();
43
+ };
44
+ return asyncStore;
45
+ }
46
+ //#endregion
47
+ exports.createPiniaAsyncStore = createPiniaAsyncStore;
48
+
49
+ //# sourceMappingURL=createPiniaAsyncStore.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPiniaAsyncStore.cjs","names":["noop"],"sources":["../../src/createPiniaAsyncStore/createPiniaAsyncStore.ts"],"sourcesContent":["import { createAsyncStore } from '@pastweb/tools/createAsyncStore';\nimport { noop } from '@pastweb/tools/noop';\nimport { createPinia } from 'pinia';\nimport type { PiniaAsyncStore, PiniaStoreOptions } from './types';\n\n/**\n * Creates an async Pinia store wrapper.\n *\n * The returned object is a tools async store with a Pinia instance attached as\n * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia\n * instance and marks the async store as ready when the callback resolves.\n *\n * @param options - Async Pinia store options.\n * @param options.name - Optional name suffix used for the underlying async store.\n * @param options.onInit - Optional initialization callback that receives the Pinia instance.\n * @returns Async store with a Pinia instance attached.\n *\n * @example\n * ```ts\n * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';\n *\n * const piniaStore = createPiniaAsyncStore({\n * name: 'app',\n * async onInit(pinia) {\n * app.use(pinia);\n * },\n * });\n *\n * await piniaStore.init();\n * ```\n */\nexport function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore {\n const asyncStore = createAsyncStore<PiniaAsyncStore>({\n ...options,\n name: `PiniaAsyncStore${options.name ? `:${options.name}` : ''}`,\n });\n\n const store = createPinia();\n\n asyncStore.store = store;\n\n asyncStore.init = async () => {\n const { onInit = noop } = asyncStore.options as PiniaStoreOptions;\n await onInit(store);\n asyncStore.setStoreReady();\n };\n\n return asyncStore;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,sBAAsB,SAA6C;CACjF,MAAM,cAAA,GAAA,gCAAA,iBAAA,CAA+C;EACnD,GAAG;EACH,MAAM,kBAAkB,QAAQ,OAAO,IAAI,QAAQ,SAAS;CAC9D,CAAC;CAED,MAAM,SAAA,GAAA,MAAA,YAAA,CAAoB;CAE1B,WAAW,QAAQ;CAEnB,WAAW,OAAO,YAAY;EAC5B,MAAM,EAAE,SAASA,oBAAAA,SAAS,WAAW;EACrC,MAAM,OAAO,KAAK;EAClB,WAAW,cAAc;CAC3B;CAEA,OAAO;AACT"}
@@ -0,0 +1,33 @@
1
+ import { PiniaAsyncStore, PiniaStoreOptions } from "./types.cjs";
2
+
3
+ //#region src/createPiniaAsyncStore/createPiniaAsyncStore.d.ts
4
+ /**
5
+ * Creates an async Pinia store wrapper.
6
+ *
7
+ * The returned object is a tools async store with a Pinia instance attached as
8
+ * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
9
+ * instance and marks the async store as ready when the callback resolves.
10
+ *
11
+ * @param options - Async Pinia store options.
12
+ * @param options.name - Optional name suffix used for the underlying async store.
13
+ * @param options.onInit - Optional initialization callback that receives the Pinia instance.
14
+ * @returns Async store with a Pinia instance attached.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
19
+ *
20
+ * const piniaStore = createPiniaAsyncStore({
21
+ * name: 'app',
22
+ * async onInit(pinia) {
23
+ * app.use(pinia);
24
+ * },
25
+ * });
26
+ *
27
+ * await piniaStore.init();
28
+ * ```
29
+ */
30
+ declare function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore;
31
+ //#endregion
32
+ export { createPiniaAsyncStore };
33
+ //# sourceMappingURL=createPiniaAsyncStore.d.cts.map
@@ -0,0 +1,33 @@
1
+ import { PiniaAsyncStore, PiniaStoreOptions } from "./types.js";
2
+
3
+ //#region src/createPiniaAsyncStore/createPiniaAsyncStore.d.ts
4
+ /**
5
+ * Creates an async Pinia store wrapper.
6
+ *
7
+ * The returned object is a tools async store with a Pinia instance attached as
8
+ * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
9
+ * instance and marks the async store as ready when the callback resolves.
10
+ *
11
+ * @param options - Async Pinia store options.
12
+ * @param options.name - Optional name suffix used for the underlying async store.
13
+ * @param options.onInit - Optional initialization callback that receives the Pinia instance.
14
+ * @returns Async store with a Pinia instance attached.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
19
+ *
20
+ * const piniaStore = createPiniaAsyncStore({
21
+ * name: 'app',
22
+ * async onInit(pinia) {
23
+ * app.use(pinia);
24
+ * },
25
+ * });
26
+ *
27
+ * await piniaStore.init();
28
+ * ```
29
+ */
30
+ declare function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore;
31
+ //#endregion
32
+ export { createPiniaAsyncStore };
33
+ //# sourceMappingURL=createPiniaAsyncStore.d.ts.map
@@ -0,0 +1,48 @@
1
+ import { createAsyncStore } from "@pastweb/tools/createAsyncStore";
2
+ import { noop } from "@pastweb/tools/noop";
3
+ import { createPinia } from "pinia";
4
+ //#region src/createPiniaAsyncStore/createPiniaAsyncStore.ts
5
+ /**
6
+ * Creates an async Pinia store wrapper.
7
+ *
8
+ * The returned object is a tools async store with a Pinia instance attached as
9
+ * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
10
+ * instance and marks the async store as ready when the callback resolves.
11
+ *
12
+ * @param options - Async Pinia store options.
13
+ * @param options.name - Optional name suffix used for the underlying async store.
14
+ * @param options.onInit - Optional initialization callback that receives the Pinia instance.
15
+ * @returns Async store with a Pinia instance attached.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
20
+ *
21
+ * const piniaStore = createPiniaAsyncStore({
22
+ * name: 'app',
23
+ * async onInit(pinia) {
24
+ * app.use(pinia);
25
+ * },
26
+ * });
27
+ *
28
+ * await piniaStore.init();
29
+ * ```
30
+ */
31
+ function createPiniaAsyncStore(options) {
32
+ const asyncStore = createAsyncStore({
33
+ ...options,
34
+ name: `PiniaAsyncStore${options.name ? `:${options.name}` : ""}`
35
+ });
36
+ const store = createPinia();
37
+ asyncStore.store = store;
38
+ asyncStore.init = async () => {
39
+ const { onInit = noop } = asyncStore.options;
40
+ await onInit(store);
41
+ asyncStore.setStoreReady();
42
+ };
43
+ return asyncStore;
44
+ }
45
+ //#endregion
46
+ export { createPiniaAsyncStore };
47
+
48
+ //# sourceMappingURL=createPiniaAsyncStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPiniaAsyncStore.js","names":[],"sources":["../../src/createPiniaAsyncStore/createPiniaAsyncStore.ts"],"sourcesContent":["import { createAsyncStore } from '@pastweb/tools/createAsyncStore';\nimport { noop } from '@pastweb/tools/noop';\nimport { createPinia } from 'pinia';\nimport type { PiniaAsyncStore, PiniaStoreOptions } from './types';\n\n/**\n * Creates an async Pinia store wrapper.\n *\n * The returned object is a tools async store with a Pinia instance attached as\n * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia\n * instance and marks the async store as ready when the callback resolves.\n *\n * @param options - Async Pinia store options.\n * @param options.name - Optional name suffix used for the underlying async store.\n * @param options.onInit - Optional initialization callback that receives the Pinia instance.\n * @returns Async store with a Pinia instance attached.\n *\n * @example\n * ```ts\n * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';\n *\n * const piniaStore = createPiniaAsyncStore({\n * name: 'app',\n * async onInit(pinia) {\n * app.use(pinia);\n * },\n * });\n *\n * await piniaStore.init();\n * ```\n */\nexport function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore {\n const asyncStore = createAsyncStore<PiniaAsyncStore>({\n ...options,\n name: `PiniaAsyncStore${options.name ? `:${options.name}` : ''}`,\n });\n\n const store = createPinia();\n\n asyncStore.store = store;\n\n asyncStore.init = async () => {\n const { onInit = noop } = asyncStore.options as PiniaStoreOptions;\n await onInit(store);\n asyncStore.setStoreReady();\n };\n\n return asyncStore;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,sBAAsB,SAA6C;CACjF,MAAM,aAAa,iBAAkC;EACnD,GAAG;EACH,MAAM,kBAAkB,QAAQ,OAAO,IAAI,QAAQ,SAAS;CAC9D,CAAC;CAED,MAAM,QAAQ,YAAY;CAE1B,WAAW,QAAQ;CAEnB,WAAW,OAAO,YAAY;EAC5B,MAAM,EAAE,SAAS,SAAS,WAAW;EACrC,MAAM,OAAO,KAAK;EAClB,WAAW,cAAc;CAC3B;CAEA,OAAO;AACT"}
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_createPiniaAsyncStore_createPiniaAsyncStore = require("./createPiniaAsyncStore.cjs");
3
+ exports.createPiniaAsyncStore = require_createPiniaAsyncStore_createPiniaAsyncStore.createPiniaAsyncStore;
@@ -0,0 +1,3 @@
1
+ import { PiniaAsyncStore, PiniaStoreOptions } from "./types.cjs";
2
+ import { createPiniaAsyncStore } from "./createPiniaAsyncStore.cjs";
3
+ export { type PiniaAsyncStore, type PiniaStoreOptions, createPiniaAsyncStore };
@@ -0,0 +1,3 @@
1
+ import { PiniaAsyncStore, PiniaStoreOptions } from "./types.js";
2
+ import { createPiniaAsyncStore } from "./createPiniaAsyncStore.js";
3
+ export { type PiniaAsyncStore, type PiniaStoreOptions, createPiniaAsyncStore };
@@ -0,0 +1,2 @@
1
+ import { createPiniaAsyncStore } from "./createPiniaAsyncStore.js";
2
+ export { createPiniaAsyncStore };
File without changes
@@ -0,0 +1,22 @@
1
+ import { AsyncStore, AsyncStoreOptions } from "@pastweb/tools";
2
+ import { Pinia } from "pinia";
3
+
4
+ //#region src/createPiniaAsyncStore/types.d.ts
5
+ /**
6
+ * Options accepted by {@link createPiniaAsyncStore}.
7
+ */
8
+ interface PiniaStoreOptions {
9
+ /** Optional name suffix appended to the underlying async store name. */
10
+ name?: string;
11
+ /** Callback executed by `init` with the created Pinia instance. */
12
+ onInit?: (pinia: Pinia) => Promise<void> | void;
13
+ }
14
+ /**
15
+ * Tools async store enhanced with a Pinia instance.
16
+ */
17
+ type PiniaAsyncStore = AsyncStore<AsyncStoreOptions & PiniaStoreOptions> & {
18
+ /** Pinia instance created by `createPinia`. */store: Pinia;
19
+ };
20
+ //#endregion
21
+ export { PiniaAsyncStore, PiniaStoreOptions };
22
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1,22 @@
1
+ import { Pinia } from "pinia";
2
+ import { AsyncStore, AsyncStoreOptions } from "@pastweb/tools";
3
+
4
+ //#region src/createPiniaAsyncStore/types.d.ts
5
+ /**
6
+ * Options accepted by {@link createPiniaAsyncStore}.
7
+ */
8
+ interface PiniaStoreOptions {
9
+ /** Optional name suffix appended to the underlying async store name. */
10
+ name?: string;
11
+ /** Callback executed by `init` with the created Pinia instance. */
12
+ onInit?: (pinia: Pinia) => Promise<void> | void;
13
+ }
14
+ /**
15
+ * Tools async store enhanced with a Pinia instance.
16
+ */
17
+ type PiniaAsyncStore = AsyncStore<AsyncStoreOptions & PiniaStoreOptions> & {
18
+ /** Pinia instance created by `createPinia`. */store: Pinia;
19
+ };
20
+ //#endregion
21
+ export { PiniaAsyncStore, PiniaStoreOptions };
22
+ //# sourceMappingURL=types.d.ts.map
File without changes
@@ -0,0 +1,29 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let vue = require("vue");
3
+ //#region src/getContext/getContext.ts
4
+ /**
5
+ * Reads a value from the active Vue dependency-injection context.
6
+ *
7
+ * Use this helper instead of importing `inject` directly inside package
8
+ * composables so context access stays consistent across the Vue integration.
9
+ * It must be called during component setup, or from a composable that runs
10
+ * during setup.
11
+ *
12
+ * @typeParam T - Expected value type for the provided context value.
13
+ * @param key - String key used when the value was provided with {@link setContext}.
14
+ * @returns The injected value cast to `T`, or `undefined` when no provider exists.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { getContext } from '@pastweb/vue';
19
+ *
20
+ * const session = getContext<{ userId: string }>('session');
21
+ * ```
22
+ */
23
+ function getContext(key) {
24
+ return (0, vue.inject)(key, void 0);
25
+ }
26
+ //#endregion
27
+ exports.getContext = getContext;
28
+
29
+ //# sourceMappingURL=getContext.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContext.cjs","names":[],"sources":["../../src/getContext/getContext.ts"],"sourcesContent":["import { inject } from 'vue';\n\n/**\n * Reads a value from the active Vue dependency-injection context.\n *\n * Use this helper instead of importing `inject` directly inside package\n * composables so context access stays consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Expected value type for the provided context value.\n * @param key - String key used when the value was provided with {@link setContext}.\n * @returns The injected value cast to `T`, or `undefined` when no provider exists.\n *\n * @example\n * ```ts\n * import { getContext } from '@pastweb/vue';\n *\n * const session = getContext<{ userId: string }>('session');\n * ```\n */\nexport function getContext<T = any>(key: string): T {\n return inject(key, undefined) as T;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAAoB,KAAgB;CAClD,QAAA,GAAA,IAAA,OAAA,CAAc,KAAK,KAAA,CAAS;AAC9B"}
@@ -0,0 +1,24 @@
1
+ //#region src/getContext/getContext.d.ts
2
+ /**
3
+ * Reads a value from the active Vue dependency-injection context.
4
+ *
5
+ * Use this helper instead of importing `inject` directly inside package
6
+ * composables so context access stays consistent across the Vue integration.
7
+ * It must be called during component setup, or from a composable that runs
8
+ * during setup.
9
+ *
10
+ * @typeParam T - Expected value type for the provided context value.
11
+ * @param key - String key used when the value was provided with {@link setContext}.
12
+ * @returns The injected value cast to `T`, or `undefined` when no provider exists.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { getContext } from '@pastweb/vue';
17
+ *
18
+ * const session = getContext<{ userId: string }>('session');
19
+ * ```
20
+ */
21
+ declare function getContext<T = any>(key: string): T;
22
+ //#endregion
23
+ export { getContext };
24
+ //# sourceMappingURL=getContext.d.cts.map
@@ -0,0 +1,24 @@
1
+ //#region src/getContext/getContext.d.ts
2
+ /**
3
+ * Reads a value from the active Vue dependency-injection context.
4
+ *
5
+ * Use this helper instead of importing `inject` directly inside package
6
+ * composables so context access stays consistent across the Vue integration.
7
+ * It must be called during component setup, or from a composable that runs
8
+ * during setup.
9
+ *
10
+ * @typeParam T - Expected value type for the provided context value.
11
+ * @param key - String key used when the value was provided with {@link setContext}.
12
+ * @returns The injected value cast to `T`, or `undefined` when no provider exists.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { getContext } from '@pastweb/vue';
17
+ *
18
+ * const session = getContext<{ userId: string }>('session');
19
+ * ```
20
+ */
21
+ declare function getContext<T = any>(key: string): T;
22
+ //#endregion
23
+ export { getContext };
24
+ //# sourceMappingURL=getContext.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { inject } from "vue";
2
+ //#region src/getContext/getContext.ts
3
+ /**
4
+ * Reads a value from the active Vue dependency-injection context.
5
+ *
6
+ * Use this helper instead of importing `inject` directly inside package
7
+ * composables so context access stays consistent across the Vue integration.
8
+ * It must be called during component setup, or from a composable that runs
9
+ * during setup.
10
+ *
11
+ * @typeParam T - Expected value type for the provided context value.
12
+ * @param key - String key used when the value was provided with {@link setContext}.
13
+ * @returns The injected value cast to `T`, or `undefined` when no provider exists.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * import { getContext } from '@pastweb/vue';
18
+ *
19
+ * const session = getContext<{ userId: string }>('session');
20
+ * ```
21
+ */
22
+ function getContext(key) {
23
+ return inject(key, void 0);
24
+ }
25
+ //#endregion
26
+ export { getContext };
27
+
28
+ //# sourceMappingURL=getContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContext.js","names":[],"sources":["../../src/getContext/getContext.ts"],"sourcesContent":["import { inject } from 'vue';\n\n/**\n * Reads a value from the active Vue dependency-injection context.\n *\n * Use this helper instead of importing `inject` directly inside package\n * composables so context access stays consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Expected value type for the provided context value.\n * @param key - String key used when the value was provided with {@link setContext}.\n * @returns The injected value cast to `T`, or `undefined` when no provider exists.\n *\n * @example\n * ```ts\n * import { getContext } from '@pastweb/vue';\n *\n * const session = getContext<{ userId: string }>('session');\n * ```\n */\nexport function getContext<T = any>(key: string): T {\n return inject(key, undefined) as T;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAAoB,KAAgB;CAClD,OAAO,OAAO,KAAK,KAAA,CAAS;AAC9B"}
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_getContext_getContext = require("./getContext.cjs");
3
+ exports.getContext = require_getContext_getContext.getContext;
@@ -0,0 +1,2 @@
1
+ import { getContext } from "./getContext.cjs";
2
+ export { getContext };
@@ -0,0 +1,2 @@
1
+ import { getContext } from "./getContext.js";
2
+ export { getContext };
@@ -0,0 +1,2 @@
1
+ import { getContext } from "./getContext.js";
2
+ export { getContext };
@@ -0,0 +1,65 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/getEventHandlers/getEventHandlers.ts
3
+ const EVENT_HANDLER_PROP_RE = /^on[A-Z]/;
4
+ /**
5
+ * Converts Vue-style event handler properties from a props object into a plain
6
+ * object suitable for Vue's `v-on` directive binding.
7
+ *
8
+ * Handler props must start with `on` followed by an uppercase character, such
9
+ * as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
10
+ * such as `online` or `once` from being treated as events. The helper strips
11
+ * the `on` prefix and converts camelCase to kebab-case (for example,
12
+ * `onMyCustomEvent` becomes `my-custom-event`).
13
+ *
14
+ * @param props - The object containing component props and event handlers
15
+ * (e.g. `{ title: string, onClick: Function, onChange: Function }`)
16
+ * @param options - Configuration options
17
+ * @param options.exclude - Event names (without "on" prefix) to exclude.
18
+ * Can be a string, RegExp, or array of both.
19
+ * Exclusion is matched against the kebab-cased event name.
20
+ *
21
+ * @returns An object with event names as keys and handler functions as values,
22
+ * ready to be used with `v-on="events"`
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const props = {
27
+ * title: "Hello",
28
+ * disabled: false,
29
+ * onClick: () => console.log('clicked'),
30
+ * onChange: (value: string) => console.log(value),
31
+ * onMyCustomEvent: (payload: any) => {},
32
+ * onUpdateModelValue: (val: any) => {},
33
+ * }
34
+ *
35
+ * const events = getEventHandlers(props, {
36
+ * exclude: ['update:model-value', /^my-/]
37
+ * })
38
+ *
39
+ * // Result: { click: fn, change: fn }
40
+ * ```
41
+ */
42
+ function getEventHandlers(props, options = {}) {
43
+ const events = {};
44
+ const { exclude } = options;
45
+ const shouldExclude = (eventName) => {
46
+ if (!exclude) return false;
47
+ return (Array.isArray(exclude) ? exclude : [exclude]).some((rule) => {
48
+ if (typeof rule === "string") return eventName === rule;
49
+ if (rule instanceof RegExp) return rule.test(eventName);
50
+ return false;
51
+ });
52
+ };
53
+ for (const [key, value] of Object.entries(props)) {
54
+ if (!EVENT_HANDLER_PROP_RE.test(key) || typeof value !== "function") continue;
55
+ let eventName = key.slice(2);
56
+ eventName = eventName.replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
57
+ if (shouldExclude(eventName)) continue;
58
+ events[eventName] = value;
59
+ }
60
+ return events;
61
+ }
62
+ //#endregion
63
+ exports.getEventHandlers = getEventHandlers;
64
+
65
+ //# sourceMappingURL=getEventHandlers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEventHandlers.cjs","names":[],"sources":["../../src/getEventHandlers/getEventHandlers.ts"],"sourcesContent":["import type { GetEventHandlersOptions } from './types'\n\nconst EVENT_HANDLER_PROP_RE = /^on[A-Z]/\n\n/**\n * Converts Vue-style event handler properties from a props object into a plain\n * object suitable for Vue's `v-on` directive binding.\n *\n * Handler props must start with `on` followed by an uppercase character, such\n * as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props\n * such as `online` or `once` from being treated as events. The helper strips\n * the `on` prefix and converts camelCase to kebab-case (for example,\n * `onMyCustomEvent` becomes `my-custom-event`).\n *\n * @param props - The object containing component props and event handlers\n * (e.g. `{ title: string, onClick: Function, onChange: Function }`)\n * @param options - Configuration options\n * @param options.exclude - Event names (without \"on\" prefix) to exclude.\n * Can be a string, RegExp, or array of both.\n * Exclusion is matched against the kebab-cased event name.\n *\n * @returns An object with event names as keys and handler functions as values,\n * ready to be used with `v-on=\"events\"`\n *\n * @example\n * ```ts\n * const props = {\n * title: \"Hello\",\n * disabled: false,\n * onClick: () => console.log('clicked'),\n * onChange: (value: string) => console.log(value),\n * onMyCustomEvent: (payload: any) => {},\n * onUpdateModelValue: (val: any) => {},\n * }\n *\n * const events = getEventHandlers(props, {\n * exclude: ['update:model-value', /^my-/]\n * })\n *\n * // Result: { click: fn, change: fn }\n * ```\n */\nexport function getEventHandlers(props: Record<string, any>, options: GetEventHandlersOptions = {}): Record<string, Function> {\n const events: Record<string, Function> = {}\n const { exclude } = options\n\n const shouldExclude = (eventName: string): boolean => {\n if (!exclude) return false\n\n const excludes = Array.isArray(exclude) ? exclude : [exclude]\n\n return excludes.some((rule) => {\n if (typeof rule === 'string') {\n return eventName === rule\n }\n if (rule instanceof RegExp) {\n return rule.test(eventName)\n }\n return false\n })\n }\n\n for (const [key, value] of Object.entries(props)) {\n if (!EVENT_HANDLER_PROP_RE.test(key) || typeof value !== 'function') {\n continue\n }\n\n // Remove \"on\" prefix\n let eventName = key.slice(2)\n\n // Convert to kebab-case (e.g., MyCustomEvent → my-custom-event)\n eventName = eventName\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .toLowerCase()\n\n // Check exclusion (applied to the name without \"on\")\n if (shouldExclude(eventName)) {\n continue\n }\n\n events[eventName] = value\n }\n\n return events\n}\n"],"mappings":";;AAEA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwC9B,SAAgB,iBAAiB,OAA4B,UAAmC,CAAC,GAA6B;CAC5H,MAAM,SAAmC,CAAC;CAC1C,MAAM,EAAE,YAAY;CAEpB,MAAM,iBAAiB,cAA+B;EACpD,IAAI,CAAC,SAAS,OAAO;EAIrB,QAFiB,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,EAAA,CAE5C,MAAM,SAAS;GAC7B,IAAI,OAAO,SAAS,UAClB,OAAO,cAAc;GAEvB,IAAI,gBAAgB,QAClB,OAAO,KAAK,KAAK,SAAS;GAE5B,OAAO;EACT,CAAC;CACH;CAEA,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAAG;EAChD,IAAI,CAAC,sBAAsB,KAAK,GAAG,KAAK,OAAO,UAAU,YACvD;EAIF,IAAI,YAAY,IAAI,MAAM,CAAC;EAG3B,YAAY,UACT,QAAQ,yBAAyB,OAAO,CAAC,CACzC,QAAQ,sBAAsB,OAAO,CAAC,CACtC,YAAY;EAGf,IAAI,cAAc,SAAS,GACzB;EAGF,OAAO,aAAa;CACtB;CAEA,OAAO;AACT"}
@@ -0,0 +1,45 @@
1
+ import { GetEventHandlersOptions } from "./types.cjs";
2
+
3
+ //#region src/getEventHandlers/getEventHandlers.d.ts
4
+ /**
5
+ * Converts Vue-style event handler properties from a props object into a plain
6
+ * object suitable for Vue's `v-on` directive binding.
7
+ *
8
+ * Handler props must start with `on` followed by an uppercase character, such
9
+ * as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
10
+ * such as `online` or `once` from being treated as events. The helper strips
11
+ * the `on` prefix and converts camelCase to kebab-case (for example,
12
+ * `onMyCustomEvent` becomes `my-custom-event`).
13
+ *
14
+ * @param props - The object containing component props and event handlers
15
+ * (e.g. `{ title: string, onClick: Function, onChange: Function }`)
16
+ * @param options - Configuration options
17
+ * @param options.exclude - Event names (without "on" prefix) to exclude.
18
+ * Can be a string, RegExp, or array of both.
19
+ * Exclusion is matched against the kebab-cased event name.
20
+ *
21
+ * @returns An object with event names as keys and handler functions as values,
22
+ * ready to be used with `v-on="events"`
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const props = {
27
+ * title: "Hello",
28
+ * disabled: false,
29
+ * onClick: () => console.log('clicked'),
30
+ * onChange: (value: string) => console.log(value),
31
+ * onMyCustomEvent: (payload: any) => {},
32
+ * onUpdateModelValue: (val: any) => {},
33
+ * }
34
+ *
35
+ * const events = getEventHandlers(props, {
36
+ * exclude: ['update:model-value', /^my-/]
37
+ * })
38
+ *
39
+ * // Result: { click: fn, change: fn }
40
+ * ```
41
+ */
42
+ declare function getEventHandlers(props: Record<string, any>, options?: GetEventHandlersOptions): Record<string, Function>;
43
+ //#endregion
44
+ export { getEventHandlers };
45
+ //# sourceMappingURL=getEventHandlers.d.cts.map
@@ -0,0 +1,45 @@
1
+ import { GetEventHandlersOptions } from "./types.js";
2
+
3
+ //#region src/getEventHandlers/getEventHandlers.d.ts
4
+ /**
5
+ * Converts Vue-style event handler properties from a props object into a plain
6
+ * object suitable for Vue's `v-on` directive binding.
7
+ *
8
+ * Handler props must start with `on` followed by an uppercase character, such
9
+ * as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
10
+ * such as `online` or `once` from being treated as events. The helper strips
11
+ * the `on` prefix and converts camelCase to kebab-case (for example,
12
+ * `onMyCustomEvent` becomes `my-custom-event`).
13
+ *
14
+ * @param props - The object containing component props and event handlers
15
+ * (e.g. `{ title: string, onClick: Function, onChange: Function }`)
16
+ * @param options - Configuration options
17
+ * @param options.exclude - Event names (without "on" prefix) to exclude.
18
+ * Can be a string, RegExp, or array of both.
19
+ * Exclusion is matched against the kebab-cased event name.
20
+ *
21
+ * @returns An object with event names as keys and handler functions as values,
22
+ * ready to be used with `v-on="events"`
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const props = {
27
+ * title: "Hello",
28
+ * disabled: false,
29
+ * onClick: () => console.log('clicked'),
30
+ * onChange: (value: string) => console.log(value),
31
+ * onMyCustomEvent: (payload: any) => {},
32
+ * onUpdateModelValue: (val: any) => {},
33
+ * }
34
+ *
35
+ * const events = getEventHandlers(props, {
36
+ * exclude: ['update:model-value', /^my-/]
37
+ * })
38
+ *
39
+ * // Result: { click: fn, change: fn }
40
+ * ```
41
+ */
42
+ declare function getEventHandlers(props: Record<string, any>, options?: GetEventHandlersOptions): Record<string, Function>;
43
+ //#endregion
44
+ export { getEventHandlers };
45
+ //# sourceMappingURL=getEventHandlers.d.ts.map