@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.
- package/LICENSE +21 -0
- package/README.md +1455 -0
- package/dist/EntryAdapter/EntryAdapter.cjs +6 -0
- package/dist/EntryAdapter/EntryAdapter.cjs.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.js +7 -0
- package/dist/EntryAdapter/EntryAdapter.js.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.vue.d.cts +36 -0
- package/dist/EntryAdapter/EntryAdapter.vue.d.ts +37 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs +62 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js +62 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js.map +1 -0
- package/dist/EntryAdapter/constants.cjs +14 -0
- package/dist/EntryAdapter/constants.cjs.map +1 -0
- package/dist/EntryAdapter/constants.d.cts +14 -0
- package/dist/EntryAdapter/constants.d.ts +14 -0
- package/dist/EntryAdapter/constants.js +13 -0
- package/dist/EntryAdapter/constants.js.map +1 -0
- package/dist/EntryAdapter/index.cjs +3 -0
- package/dist/EntryAdapter/index.d.cts +2 -0
- package/dist/EntryAdapter/index.d.ts +2 -0
- package/dist/EntryAdapter/index.js +2 -0
- package/dist/EntryAdapter/types.cjs +0 -0
- package/dist/EntryAdapter/types.d.cts +44 -0
- package/dist/EntryAdapter/types.d.ts +44 -0
- package/dist/EntryAdapter/types.js +0 -0
- package/dist/EntryAdapter/utils.cjs +62 -0
- package/dist/EntryAdapter/utils.cjs.map +1 -0
- package/dist/EntryAdapter/utils.d.cts +36 -0
- package/dist/EntryAdapter/utils.d.ts +36 -0
- package/dist/EntryAdapter/utils.js +60 -0
- package/dist/EntryAdapter/utils.js.map +1 -0
- package/dist/Island/Island.cjs +6 -0
- package/dist/Island/Island.cjs.map +1 -0
- package/dist/Island/Island.js +7 -0
- package/dist/Island/Island.js.map +1 -0
- package/dist/Island/Island.vue.d.cts +22 -0
- package/dist/Island/Island.vue.d.ts +23 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs +145 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/Island/constants.cjs +12 -0
- package/dist/Island/constants.cjs.map +1 -0
- package/dist/Island/constants.d.cts +11 -0
- package/dist/Island/constants.d.ts +11 -0
- package/dist/Island/constants.js +10 -0
- package/dist/Island/constants.js.map +1 -0
- package/dist/Island/index.cjs +9 -0
- package/dist/Island/index.d.cts +5 -0
- package/dist/Island/index.d.ts +5 -0
- package/dist/Island/index.js +4 -0
- package/dist/Island/types.cjs +0 -0
- package/dist/Island/types.d.cts +18 -0
- package/dist/Island/types.d.ts +18 -0
- package/dist/Island/types.js +0 -0
- package/dist/Island/useIsland.cjs +23 -0
- package/dist/Island/useIsland.cjs.map +1 -0
- package/dist/Island/useIsland.d.cts +15 -0
- package/dist/Island/useIsland.d.ts +15 -0
- package/dist/Island/useIsland.js +21 -0
- package/dist/Island/useIsland.js.map +1 -0
- package/dist/Render/Render.cjs +6 -0
- package/dist/Render/Render.cjs.map +1 -0
- package/dist/Render/Render.js +7 -0
- package/dist/Render/Render.js.map +1 -0
- package/dist/Render/Render.vue.d.cts +10 -0
- package/dist/Render/Render.vue.d.ts +11 -0
- package/dist/Render/Render.vue_vue_type_script_lang.cjs +47 -0
- package/dist/Render/Render.vue_vue_type_script_lang.cjs.map +1 -0
- package/dist/Render/Render.vue_vue_type_script_lang.js +47 -0
- package/dist/Render/Render.vue_vue_type_script_lang.js.map +1 -0
- package/dist/Render/index.cjs +3 -0
- package/dist/Render/index.d.cts +3 -0
- package/dist/Render/index.d.ts +3 -0
- package/dist/Render/index.js +2 -0
- package/dist/Render/types.cjs +0 -0
- package/dist/Render/types.d.cts +21 -0
- package/dist/Render/types.d.ts +21 -0
- package/dist/Render/types.js +0 -0
- package/dist/Slot/Slot.cjs +89 -0
- package/dist/Slot/Slot.cjs.map +1 -0
- package/dist/Slot/Slot.d.cts +38 -0
- package/dist/Slot/Slot.d.ts +39 -0
- package/dist/Slot/Slot.js +89 -0
- package/dist/Slot/Slot.js.map +1 -0
- package/dist/Slot/index.cjs +3 -0
- package/dist/Slot/index.d.cts +3 -0
- package/dist/Slot/index.d.ts +3 -0
- package/dist/Slot/index.js +2 -0
- package/dist/Slot/types.cjs +0 -0
- package/dist/Slot/types.d.cts +17 -0
- package/dist/Slot/types.d.ts +17 -0
- package/dist/Slot/types.js +0 -0
- package/dist/_virtual/_rolldown/runtime.cjs +4 -0
- package/dist/api/hooks/index.cjs +20 -0
- package/dist/api/hooks/index.d.cts +12 -0
- package/dist/api/hooks/index.d.ts +12 -0
- package/dist/api/hooks/index.js +13 -0
- package/dist/api/hooks/reuseQuery/index.cjs +4 -0
- package/dist/api/hooks/reuseQuery/index.d.cts +2 -0
- package/dist/api/hooks/reuseQuery/index.d.ts +2 -0
- package/dist/api/hooks/reuseQuery/index.js +2 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.cjs +44 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.cjs.map +1 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.d.cts +37 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.d.ts +37 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.js +42 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.js.map +1 -0
- package/dist/api/hooks/useApiQueryCache/index.cjs +3 -0
- package/dist/api/hooks/useApiQueryCache/index.d.cts +2 -0
- package/dist/api/hooks/useApiQueryCache/index.d.ts +2 -0
- package/dist/api/hooks/useApiQueryCache/index.js +2 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs +31 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs.map +1 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.cts +24 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.ts +24 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js +30 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js.map +1 -0
- package/dist/api/hooks/useInfiniteQuery/index.cjs +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.d.cts +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.d.ts +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.js +2 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs +34 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs.map +1 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.cts +29 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts +29 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js +33 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js.map +1 -0
- package/dist/api/hooks/useMutation/index.cjs +3 -0
- package/dist/api/hooks/useMutation/index.d.cts +3 -0
- package/dist/api/hooks/useMutation/index.d.ts +3 -0
- package/dist/api/hooks/useMutation/index.js +2 -0
- package/dist/api/hooks/useMutation/useMutation.cjs +30 -0
- package/dist/api/hooks/useMutation/useMutation.cjs.map +1 -0
- package/dist/api/hooks/useMutation/useMutation.d.cts +25 -0
- package/dist/api/hooks/useMutation/useMutation.d.ts +25 -0
- package/dist/api/hooks/useMutation/useMutation.js +29 -0
- package/dist/api/hooks/useMutation/useMutation.js.map +1 -0
- package/dist/api/hooks/useQueries/index.cjs +3 -0
- package/dist/api/hooks/useQueries/index.d.cts +3 -0
- package/dist/api/hooks/useQueries/index.d.ts +3 -0
- package/dist/api/hooks/useQueries/index.js +2 -0
- package/dist/api/hooks/useQueries/useQueries.cjs +32 -0
- package/dist/api/hooks/useQueries/useQueries.cjs.map +1 -0
- package/dist/api/hooks/useQueries/useQueries.d.cts +28 -0
- package/dist/api/hooks/useQueries/useQueries.d.ts +28 -0
- package/dist/api/hooks/useQueries/useQueries.js +31 -0
- package/dist/api/hooks/useQueries/useQueries.js.map +1 -0
- package/dist/api/hooks/useQuery/index.cjs +3 -0
- package/dist/api/hooks/useQuery/index.d.cts +3 -0
- package/dist/api/hooks/useQuery/index.d.ts +3 -0
- package/dist/api/hooks/useQuery/index.js +2 -0
- package/dist/api/hooks/useQuery/useQuery.cjs +30 -0
- package/dist/api/hooks/useQuery/useQuery.cjs.map +1 -0
- package/dist/api/hooks/useQuery/useQuery.d.cts +25 -0
- package/dist/api/hooks/useQuery/useQuery.d.ts +25 -0
- package/dist/api/hooks/useQuery/useQuery.js +29 -0
- package/dist/api/hooks/useQuery/useQuery.js.map +1 -0
- package/dist/api/hooks/utils/index.cjs +4 -0
- package/dist/api/hooks/utils/index.d.cts +2 -0
- package/dist/api/hooks/utils/index.d.ts +2 -0
- package/dist/api/hooks/utils/index.js +2 -0
- package/dist/api/hooks/utils/useReactiveRender.cjs +56 -0
- package/dist/api/hooks/utils/useReactiveRender.cjs.map +1 -0
- package/dist/api/hooks/utils/useReactiveRender.d.cts +29 -0
- package/dist/api/hooks/utils/useReactiveRender.d.ts +29 -0
- package/dist/api/hooks/utils/useReactiveRender.js +54 -0
- package/dist/api/hooks/utils/useReactiveRender.js.map +1 -0
- package/dist/api/index.cjs +18 -0
- package/dist/api/index.d.cts +15 -0
- package/dist/api/index.d.ts +15 -0
- package/dist/api/index.js +10 -0
- package/dist/api/installApiCache/index.cjs +3 -0
- package/dist/api/installApiCache/index.d.cts +3 -0
- package/dist/api/installApiCache/index.d.ts +3 -0
- package/dist/api/installApiCache/index.js +2 -0
- package/dist/api/installApiCache/installApiCache.cjs +35 -0
- package/dist/api/installApiCache/installApiCache.cjs.map +1 -0
- package/dist/api/installApiCache/installApiCache.d.cts +29 -0
- package/dist/api/installApiCache/installApiCache.d.ts +29 -0
- package/dist/api/installApiCache/installApiCache.js +34 -0
- package/dist/api/installApiCache/installApiCache.js.map +1 -0
- package/dist/api/installApiCache/types.cjs +0 -0
- package/dist/api/installApiCache/types.d.cts +21 -0
- package/dist/api/installApiCache/types.d.ts +21 -0
- package/dist/api/installApiCache/types.js +0 -0
- package/dist/api/types.cjs +0 -0
- package/dist/api/types.d.cts +2 -0
- package/dist/api/types.d.ts +2 -0
- package/dist/api/types.js +0 -0
- package/dist/computed/computed.cjs +28 -0
- package/dist/computed/computed.cjs.map +1 -0
- package/dist/computed/computed.d.cts +25 -0
- package/dist/computed/computed.d.ts +25 -0
- package/dist/computed/computed.js +27 -0
- package/dist/computed/computed.js.map +1 -0
- package/dist/computed/index.cjs +3 -0
- package/dist/computed/index.d.cts +2 -0
- package/dist/computed/index.d.ts +2 -0
- package/dist/computed/index.js +2 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.cjs +6 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.js +7 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.js.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.cts +6 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.ts +7 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs +35 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/createEntry/UpdateEntry/Vnode.cjs +19 -0
- package/dist/createEntry/UpdateEntry/Vnode.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/Vnode.d.cts +20 -0
- package/dist/createEntry/UpdateEntry/Vnode.d.ts +20 -0
- package/dist/createEntry/UpdateEntry/Vnode.js +18 -0
- package/dist/createEntry/UpdateEntry/Vnode.js.map +1 -0
- package/dist/createEntry/UpdateEntry/index.cjs +3 -0
- package/dist/createEntry/UpdateEntry/index.d.cts +3 -0
- package/dist/createEntry/UpdateEntry/index.d.ts +3 -0
- package/dist/createEntry/UpdateEntry/index.js +2 -0
- package/dist/createEntry/UpdateEntry/types.cjs +0 -0
- package/dist/createEntry/UpdateEntry/types.d.cts +18 -0
- package/dist/createEntry/UpdateEntry/types.d.ts +18 -0
- package/dist/createEntry/UpdateEntry/types.js +0 -0
- package/dist/createEntry/WaitFor/WaitFor.cjs +6 -0
- package/dist/createEntry/WaitFor/WaitFor.cjs.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.js +7 -0
- package/dist/createEntry/WaitFor/WaitFor.js.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.vue.d.cts +6 -0
- package/dist/createEntry/WaitFor/WaitFor.vue.d.ts +7 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs +50 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/createEntry/WaitFor/index.cjs +3 -0
- package/dist/createEntry/WaitFor/index.d.cts +3 -0
- package/dist/createEntry/WaitFor/index.d.ts +3 -0
- package/dist/createEntry/WaitFor/index.js +2 -0
- package/dist/createEntry/WaitFor/types.cjs +0 -0
- package/dist/createEntry/WaitFor/types.d.cts +21 -0
- package/dist/createEntry/WaitFor/types.d.ts +21 -0
- package/dist/createEntry/WaitFor/types.js +0 -0
- package/dist/createEntry/createEntry.cjs +32 -0
- package/dist/createEntry/createEntry.cjs.map +1 -0
- package/dist/createEntry/createEntry.d.cts +17 -0
- package/dist/createEntry/createEntry.d.ts +17 -0
- package/dist/createEntry/createEntry.js +31 -0
- package/dist/createEntry/createEntry.js.map +1 -0
- package/dist/createEntry/createServerEntry.cjs +45 -0
- package/dist/createEntry/createServerEntry.cjs.map +1 -0
- package/dist/createEntry/createServerEntry.d.cts +17 -0
- package/dist/createEntry/createServerEntry.d.ts +17 -0
- package/dist/createEntry/createServerEntry.js +43 -0
- package/dist/createEntry/createServerEntry.js.map +1 -0
- package/dist/createEntry/index.cjs +5 -0
- package/dist/createEntry/index.d.cts +5 -0
- package/dist/createEntry/index.d.ts +5 -0
- package/dist/createEntry/index.js +3 -0
- package/dist/createEntry/types.cjs +0 -0
- package/dist/createEntry/types.d.cts +75 -0
- package/dist/createEntry/types.d.ts +75 -0
- package/dist/createEntry/types.js +0 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs +28 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs.map +1 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.cts +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.ts +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js.map +1 -0
- package/dist/createEntry/utils/createServerVueApp/index.cjs +3 -0
- package/dist/createEntry/utils/createServerVueApp/index.d.cts +2 -0
- package/dist/createEntry/utils/createServerVueApp/index.d.ts +2 -0
- package/dist/createEntry/utils/createServerVueApp/index.js +2 -0
- package/dist/createEntry/utils/createServerVueApp/types.cjs +0 -0
- package/dist/createEntry/utils/createServerVueApp/types.d.cts +7 -0
- package/dist/createEntry/utils/createServerVueApp/types.d.ts +7 -0
- package/dist/createEntry/utils/createServerVueApp/types.js +0 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.cjs +43 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.cjs.map +1 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.d.cts +22 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.d.ts +22 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.js +42 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.js.map +1 -0
- package/dist/createEntry/utils/createVueApp/index.cjs +3 -0
- package/dist/createEntry/utils/createVueApp/index.d.cts +2 -0
- package/dist/createEntry/utils/createVueApp/index.d.ts +2 -0
- package/dist/createEntry/utils/createVueApp/index.js +2 -0
- package/dist/createEntry/utils/index.cjs +10 -0
- package/dist/createEntry/utils/index.d.cts +5 -0
- package/dist/createEntry/utils/index.d.ts +5 -0
- package/dist/createEntry/utils/index.js +6 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.cjs +3 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.d.cts +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.d.ts +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.js +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs +28 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs.map +1 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.cts +17 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.ts +17 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js +27 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js.map +1 -0
- package/dist/createEntry/utils/setupVueEntry/index.cjs +3 -0
- package/dist/createEntry/utils/setupVueEntry/index.d.cts +2 -0
- package/dist/createEntry/utils/setupVueEntry/index.d.ts +2 -0
- package/dist/createEntry/utils/setupVueEntry/index.js +2 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs +31 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs.map +1 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.cts +17 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.ts +17 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js +30 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js.map +1 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs +49 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs.map +1 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.cts +33 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.ts +33 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js +48 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js.map +1 -0
- package/dist/createPiniaAsyncStore/index.cjs +3 -0
- package/dist/createPiniaAsyncStore/index.d.cts +3 -0
- package/dist/createPiniaAsyncStore/index.d.ts +3 -0
- package/dist/createPiniaAsyncStore/index.js +2 -0
- package/dist/createPiniaAsyncStore/types.cjs +0 -0
- package/dist/createPiniaAsyncStore/types.d.cts +22 -0
- package/dist/createPiniaAsyncStore/types.d.ts +22 -0
- package/dist/createPiniaAsyncStore/types.js +0 -0
- package/dist/getContext/getContext.cjs +29 -0
- package/dist/getContext/getContext.cjs.map +1 -0
- package/dist/getContext/getContext.d.cts +24 -0
- package/dist/getContext/getContext.d.ts +24 -0
- package/dist/getContext/getContext.js +28 -0
- package/dist/getContext/getContext.js.map +1 -0
- package/dist/getContext/index.cjs +3 -0
- package/dist/getContext/index.d.cts +2 -0
- package/dist/getContext/index.d.ts +2 -0
- package/dist/getContext/index.js +2 -0
- package/dist/getEventHandlers/getEventHandlers.cjs +65 -0
- package/dist/getEventHandlers/getEventHandlers.cjs.map +1 -0
- package/dist/getEventHandlers/getEventHandlers.d.cts +45 -0
- package/dist/getEventHandlers/getEventHandlers.d.ts +45 -0
- package/dist/getEventHandlers/getEventHandlers.js +64 -0
- package/dist/getEventHandlers/getEventHandlers.js.map +1 -0
- package/dist/getEventHandlers/index.cjs +3 -0
- package/dist/getEventHandlers/index.d.cts +3 -0
- package/dist/getEventHandlers/index.d.ts +3 -0
- package/dist/getEventHandlers/index.js +2 -0
- package/dist/getEventHandlers/types.cjs +0 -0
- package/dist/getEventHandlers/types.d.cts +7 -0
- package/dist/getEventHandlers/types.d.ts +7 -0
- package/dist/getEventHandlers/types.js +0 -0
- package/dist/index.cjs +104 -0
- package/dist/index.d.cts +61 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +62 -0
- package/dist/node_modules/@babel/parser/lib/index.cjs +12599 -0
- package/dist/node_modules/@babel/parser/lib/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +4832 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +4775 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/index.cjs +18 -0
- package/dist/node_modules/@vue/compiler-core/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +665 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +447 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/index.cjs +18 -0
- package/dist/node_modules/@vue/compiler-dom/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs +848 -0
- package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs +830 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs +605 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +532 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/node_modules/@vue/server-renderer/index.cjs +18 -0
- package/dist/node_modules/@vue/server-renderer/index.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs +496 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +495 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +166 -0
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/node_modules/@vue/shared/index.cjs +18 -0
- package/dist/node_modules/@vue/shared/index.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs +81 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode.cjs +474 -0
- package/dist/node_modules/entities/dist/commonjs/decode.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs +18 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs +18 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs +32 -0
- package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs +26 -0
- package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs.map +1 -0
- package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs +254 -0
- package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/array-set.cjs +102 -0
- package/dist/node_modules/source-map-js/lib/array-set.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/base64-vlq.cjs +75 -0
- package/dist/node_modules/source-map-js/lib/base64-vlq.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/base64.cjs +42 -0
- package/dist/node_modules/source-map-js/lib/base64.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/binary-search.cjs +69 -0
- package/dist/node_modules/source-map-js/lib/binary-search.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/mapping-list.cjs +79 -0
- package/dist/node_modules/source-map-js/lib/mapping-list.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/quick-sort.cjs +90 -0
- package/dist/node_modules/source-map-js/lib/quick-sort.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs +790 -0
- package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-generator.cjs +297 -0
- package/dist/node_modules/source-map-js/lib/source-map-generator.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-node.cjs +295 -0
- package/dist/node_modules/source-map-js/lib/source-node.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/util.cjs +353 -0
- package/dist/node_modules/source-map-js/lib/util.cjs.map +1 -0
- package/dist/node_modules/source-map-js/source-map.cjs +19 -0
- package/dist/node_modules/source-map-js/source-map.cjs.map +1 -0
- package/dist/portals/Portal/Portal.cjs +6 -0
- package/dist/portals/Portal/Portal.cjs.map +1 -0
- package/dist/portals/Portal/Portal.js +7 -0
- package/dist/portals/Portal/Portal.js.map +1 -0
- package/dist/portals/Portal/Portal.vue.d.cts +6 -0
- package/dist/portals/Portal/Portal.vue.d.ts +7 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs +56 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/portals/Portal/index.cjs +3 -0
- package/dist/portals/Portal/index.d.cts +3 -0
- package/dist/portals/Portal/index.d.ts +3 -0
- package/dist/portals/Portal/index.js +2 -0
- package/dist/portals/Portal/types.cjs +0 -0
- package/dist/portals/Portal/types.d.cts +19 -0
- package/dist/portals/Portal/types.d.ts +19 -0
- package/dist/portals/Portal/types.js +0 -0
- package/dist/portals/index.cjs +13 -0
- package/dist/portals/index.d.cts +8 -0
- package/dist/portals/index.d.ts +8 -0
- package/dist/portals/index.js +8 -0
- package/dist/portals/installPortals/index.cjs +3 -0
- package/dist/portals/installPortals/index.d.cts +3 -0
- package/dist/portals/installPortals/index.d.ts +3 -0
- package/dist/portals/installPortals/index.js +2 -0
- package/dist/portals/installPortals/installPortals.cjs +25 -0
- package/dist/portals/installPortals/installPortals.cjs.map +1 -0
- package/dist/portals/installPortals/installPortals.d.cts +25 -0
- package/dist/portals/installPortals/installPortals.d.ts +25 -0
- package/dist/portals/installPortals/installPortals.js +24 -0
- package/dist/portals/installPortals/installPortals.js.map +1 -0
- package/dist/portals/installPortals/types.cjs +0 -0
- package/dist/portals/installPortals/types.d.cts +23 -0
- package/dist/portals/installPortals/types.d.ts +23 -0
- package/dist/portals/installPortals/types.js +0 -0
- package/dist/portals/types.cjs +0 -0
- package/dist/portals/types.d.cts +40 -0
- package/dist/portals/types.d.ts +40 -0
- package/dist/portals/types.js +0 -0
- package/dist/portals/usePortal.cjs +44 -0
- package/dist/portals/usePortal.cjs.map +1 -0
- package/dist/portals/usePortal.d.cts +17 -0
- package/dist/portals/usePortal.d.ts +17 -0
- package/dist/portals/usePortal.js +43 -0
- package/dist/portals/usePortal.js.map +1 -0
- package/dist/portals/usePortalAnchors.cjs +21 -0
- package/dist/portals/usePortalAnchors.cjs.map +1 -0
- package/dist/portals/usePortalAnchors.d.cts +14 -0
- package/dist/portals/usePortalAnchors.d.ts +14 -0
- package/dist/portals/usePortalAnchors.js +20 -0
- package/dist/portals/usePortalAnchors.js.map +1 -0
- package/dist/portals/usePortals.cjs +21 -0
- package/dist/portals/usePortals.cjs.map +1 -0
- package/dist/portals/usePortals.d.cts +14 -0
- package/dist/portals/usePortals.d.ts +14 -0
- package/dist/portals/usePortals.js +20 -0
- package/dist/portals/usePortals.js.map +1 -0
- package/dist/router/RouterLink/RouterLink.cjs +6 -0
- package/dist/router/RouterLink/RouterLink.cjs.map +1 -0
- package/dist/router/RouterLink/RouterLink.js +7 -0
- package/dist/router/RouterLink/RouterLink.js.map +1 -0
- package/dist/router/RouterLink/RouterLink.vue.d.cts +18 -0
- package/dist/router/RouterLink/RouterLink.vue.d.ts +19 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs +59 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/router/RouterLink/index.cjs +3 -0
- package/dist/router/RouterLink/index.d.cts +3 -0
- package/dist/router/RouterLink/index.d.ts +3 -0
- package/dist/router/RouterLink/index.js +2 -0
- package/dist/router/RouterLink/types.cjs +0 -0
- package/dist/router/RouterLink/types.d.cts +11 -0
- package/dist/router/RouterLink/types.d.ts +11 -0
- package/dist/router/RouterLink/types.js +0 -0
- package/dist/router/RouterView/RouterView.cjs +6 -0
- package/dist/router/RouterView/RouterView.cjs.map +1 -0
- package/dist/router/RouterView/RouterView.js +7 -0
- package/dist/router/RouterView/RouterView.js.map +1 -0
- package/dist/router/RouterView/RouterView.vue.d.cts +6 -0
- package/dist/router/RouterView/RouterView.vue.d.ts +7 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs +58 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/router/RouterView/index.cjs +3 -0
- package/dist/router/RouterView/index.d.cts +2 -0
- package/dist/router/RouterView/index.d.ts +2 -0
- package/dist/router/RouterView/index.js +2 -0
- package/dist/router/RouterView/types.cjs +0 -0
- package/dist/router/RouterView/types.d.cts +15 -0
- package/dist/router/RouterView/types.d.ts +15 -0
- package/dist/router/RouterView/types.js +0 -0
- package/dist/router/index.cjs +28 -0
- package/dist/router/index.d.cts +12 -0
- package/dist/router/index.d.ts +12 -0
- package/dist/router/index.js +18 -0
- package/dist/router/installRouter.cjs +34 -0
- package/dist/router/installRouter.cjs.map +1 -0
- package/dist/router/installRouter.d.cts +14 -0
- package/dist/router/installRouter.d.ts +14 -0
- package/dist/router/installRouter.js +33 -0
- package/dist/router/installRouter.js.map +1 -0
- package/dist/router/types.cjs +1 -0
- package/dist/router/types.d.cts +21 -0
- package/dist/router/types.d.ts +21 -0
- package/dist/router/types.js +1 -0
- package/dist/router/useLocation/index.cjs +3 -0
- package/dist/router/useLocation/index.d.cts +2 -0
- package/dist/router/useLocation/index.d.ts +2 -0
- package/dist/router/useLocation/index.js +2 -0
- package/dist/router/useLocation/useLocation.cjs +24 -0
- package/dist/router/useLocation/useLocation.cjs.map +1 -0
- package/dist/router/useLocation/useLocation.d.cts +12 -0
- package/dist/router/useLocation/useLocation.d.ts +12 -0
- package/dist/router/useLocation/useLocation.js +23 -0
- package/dist/router/useLocation/useLocation.js.map +1 -0
- package/dist/router/useNavigate/index.cjs +3 -0
- package/dist/router/useNavigate/index.d.cts +2 -0
- package/dist/router/useNavigate/index.d.ts +2 -0
- package/dist/router/useNavigate/index.js +2 -0
- package/dist/router/useNavigate/useNavigate.cjs +17 -0
- package/dist/router/useNavigate/useNavigate.cjs.map +1 -0
- package/dist/router/useNavigate/useNavigate.d.cts +12 -0
- package/dist/router/useNavigate/useNavigate.d.ts +12 -0
- package/dist/router/useNavigate/useNavigate.js +16 -0
- package/dist/router/useNavigate/useNavigate.js.map +1 -0
- package/dist/router/usePaths/index.cjs +3 -0
- package/dist/router/usePaths/index.d.cts +2 -0
- package/dist/router/usePaths/index.d.ts +2 -0
- package/dist/router/usePaths/index.js +2 -0
- package/dist/router/usePaths/usePaths.cjs +27 -0
- package/dist/router/usePaths/usePaths.cjs.map +1 -0
- package/dist/router/usePaths/usePaths.d.cts +14 -0
- package/dist/router/usePaths/usePaths.d.ts +14 -0
- package/dist/router/usePaths/usePaths.js +26 -0
- package/dist/router/usePaths/usePaths.js.map +1 -0
- package/dist/router/useRoute/index.cjs +3 -0
- package/dist/router/useRoute/index.d.cts +2 -0
- package/dist/router/useRoute/index.d.ts +2 -0
- package/dist/router/useRoute/index.js +2 -0
- package/dist/router/useRoute/useRoute.cjs +28 -0
- package/dist/router/useRoute/useRoute.cjs.map +1 -0
- package/dist/router/useRoute/useRoute.d.cts +12 -0
- package/dist/router/useRoute/useRoute.d.ts +12 -0
- package/dist/router/useRoute/useRoute.js +27 -0
- package/dist/router/useRoute/useRoute.js.map +1 -0
- package/dist/router/useRouter/index.cjs +3 -0
- package/dist/router/useRouter/index.d.cts +2 -0
- package/dist/router/useRouter/index.d.ts +2 -0
- package/dist/router/useRouter/index.js +2 -0
- package/dist/router/useRouter/useRouter.cjs +17 -0
- package/dist/router/useRouter/useRouter.cjs.map +1 -0
- package/dist/router/useRouter/useRouter.d.cts +12 -0
- package/dist/router/useRouter/useRouter.d.ts +12 -0
- package/dist/router/useRouter/useRouter.js +16 -0
- package/dist/router/useRouter/useRouter.js.map +1 -0
- package/dist/router/useRouterLink/index.cjs +3 -0
- package/dist/router/useRouterLink/index.d.cts +3 -0
- package/dist/router/useRouterLink/index.d.ts +3 -0
- package/dist/router/useRouterLink/index.js +2 -0
- package/dist/router/useRouterLink/types.cjs +0 -0
- package/dist/router/useRouterLink/types.d.cts +2 -0
- package/dist/router/useRouterLink/types.d.ts +2 -0
- package/dist/router/useRouterLink/types.js +0 -0
- package/dist/router/useRouterLink/useRouterLink.cjs +37 -0
- package/dist/router/useRouterLink/useRouterLink.cjs.map +1 -0
- package/dist/router/useRouterLink/useRouterLink.d.cts +13 -0
- package/dist/router/useRouterLink/useRouterLink.d.ts +13 -0
- package/dist/router/useRouterLink/useRouterLink.js +36 -0
- package/dist/router/useRouterLink/useRouterLink.js.map +1 -0
- package/dist/router/useSearchParams/index.cjs +3 -0
- package/dist/router/useSearchParams/index.d.cts +2 -0
- package/dist/router/useSearchParams/index.d.ts +2 -0
- package/dist/router/useSearchParams/index.js +2 -0
- package/dist/router/useSearchParams/useSearchParams.cjs +29 -0
- package/dist/router/useSearchParams/useSearchParams.cjs.map +1 -0
- package/dist/router/useSearchParams/useSearchParams.d.cts +14 -0
- package/dist/router/useSearchParams/useSearchParams.d.ts +14 -0
- package/dist/router/useSearchParams/useSearchParams.js +28 -0
- package/dist/router/useSearchParams/useSearchParams.js.map +1 -0
- package/dist/setContext/index.cjs +3 -0
- package/dist/setContext/index.d.cts +2 -0
- package/dist/setContext/index.d.ts +2 -0
- package/dist/setContext/index.js +2 -0
- package/dist/setContext/setContext.cjs +29 -0
- package/dist/setContext/setContext.cjs.map +1 -0
- package/dist/setContext/setContext.d.cts +24 -0
- package/dist/setContext/setContext.d.ts +24 -0
- package/dist/setContext/setContext.js +28 -0
- package/dist/setContext/setContext.js.map +1 -0
- package/dist/useBeforeMount/index.cjs +3 -0
- package/dist/useBeforeMount/index.d.cts +2 -0
- package/dist/useBeforeMount/index.d.ts +2 -0
- package/dist/useBeforeMount/index.js +2 -0
- package/dist/useBeforeMount/useBeforeMount.cjs +29 -0
- package/dist/useBeforeMount/useBeforeMount.cjs.map +1 -0
- package/dist/useBeforeMount/useBeforeMount.d.cts +24 -0
- package/dist/useBeforeMount/useBeforeMount.d.ts +24 -0
- package/dist/useBeforeMount/useBeforeMount.js +28 -0
- package/dist/useBeforeMount/useBeforeMount.js.map +1 -0
- package/dist/useBeforeUnmount/index.cjs +3 -0
- package/dist/useBeforeUnmount/index.d.cts +2 -0
- package/dist/useBeforeUnmount/index.d.ts +2 -0
- package/dist/useBeforeUnmount/index.js +2 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.cjs +29 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.cjs.map +1 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.d.cts +24 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.d.ts +24 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.js +28 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.js.map +1 -0
- package/dist/useChildren/index.cjs +3 -0
- package/dist/useChildren/index.d.cts +2 -0
- package/dist/useChildren/index.d.ts +2 -0
- package/dist/useChildren/index.js +2 -0
- package/dist/useChildren/useChildren.cjs +35 -0
- package/dist/useChildren/useChildren.cjs.map +1 -0
- package/dist/useChildren/useChildren.d.cts +26 -0
- package/dist/useChildren/useChildren.d.ts +26 -0
- package/dist/useChildren/useChildren.js +34 -0
- package/dist/useChildren/useChildren.js.map +1 -0
- package/dist/useColorScheme/index.cjs +3 -0
- package/dist/useColorScheme/index.d.cts +2 -0
- package/dist/useColorScheme/index.d.ts +2 -0
- package/dist/useColorScheme/index.js +2 -0
- package/dist/useColorScheme/useColorScheme.cjs +46 -0
- package/dist/useColorScheme/useColorScheme.cjs.map +1 -0
- package/dist/useColorScheme/useColorScheme.d.cts +29 -0
- package/dist/useColorScheme/useColorScheme.d.ts +29 -0
- package/dist/useColorScheme/useColorScheme.js +45 -0
- package/dist/useColorScheme/useColorScheme.js.map +1 -0
- package/dist/useMediator/index.cjs +3 -0
- package/dist/useMediator/index.d.cts +3 -0
- package/dist/useMediator/index.d.ts +3 -0
- package/dist/useMediator/index.js +2 -0
- package/dist/useMediator/types.cjs +0 -0
- package/dist/useMediator/types.d.cts +2 -0
- package/dist/useMediator/types.d.ts +2 -0
- package/dist/useMediator/types.js +0 -0
- package/dist/useMediator/useMediator.cjs +137 -0
- package/dist/useMediator/useMediator.cjs.map +1 -0
- package/dist/useMediator/useMediator.d.cts +61 -0
- package/dist/useMediator/useMediator.d.ts +61 -0
- package/dist/useMediator/useMediator.js +136 -0
- package/dist/useMediator/useMediator.js.map +1 -0
- package/dist/useMediator/utils.cjs +22 -0
- package/dist/useMediator/utils.cjs.map +1 -0
- package/dist/useMediator/utils.d.cts +14 -0
- package/dist/useMediator/utils.d.ts +14 -0
- package/dist/useMediator/utils.js +21 -0
- package/dist/useMediator/utils.js.map +1 -0
- package/dist/useMounted/index.cjs +3 -0
- package/dist/useMounted/index.d.cts +2 -0
- package/dist/useMounted/index.d.ts +2 -0
- package/dist/useMounted/index.js +2 -0
- package/dist/useMounted/useMounted.cjs +29 -0
- package/dist/useMounted/useMounted.cjs.map +1 -0
- package/dist/useMounted/useMounted.d.cts +24 -0
- package/dist/useMounted/useMounted.d.ts +24 -0
- package/dist/useMounted/useMounted.js +28 -0
- package/dist/useMounted/useMounted.js.map +1 -0
- package/dist/useRef/index.cjs +3 -0
- package/dist/useRef/index.d.cts +2 -0
- package/dist/useRef/index.d.ts +2 -0
- package/dist/useRef/index.js +2 -0
- package/dist/useRef/useRef.cjs +28 -0
- package/dist/useRef/useRef.cjs.map +1 -0
- package/dist/useRef/useRef.d.cts +25 -0
- package/dist/useRef/useRef.d.ts +25 -0
- package/dist/useRef/useRef.js +27 -0
- package/dist/useRef/useRef.js.map +1 -0
- package/dist/withDefaultProps/constants.cjs +10 -0
- package/dist/withDefaultProps/constants.cjs.map +1 -0
- package/dist/withDefaultProps/constants.d.cts +8 -0
- package/dist/withDefaultProps/constants.d.ts +8 -0
- package/dist/withDefaultProps/constants.js +9 -0
- package/dist/withDefaultProps/constants.js.map +1 -0
- package/dist/withDefaultProps/index.cjs +3 -0
- package/dist/withDefaultProps/index.d.cts +3 -0
- package/dist/withDefaultProps/index.d.ts +3 -0
- package/dist/withDefaultProps/index.js +2 -0
- package/dist/withDefaultProps/types.cjs +0 -0
- package/dist/withDefaultProps/types.d.cts +25 -0
- package/dist/withDefaultProps/types.d.ts +25 -0
- package/dist/withDefaultProps/types.js +0 -0
- package/dist/withDefaultProps/withDefaultProps.cjs +85 -0
- package/dist/withDefaultProps/withDefaultProps.cjs.map +1 -0
- package/dist/withDefaultProps/withDefaultProps.d.cts +48 -0
- package/dist/withDefaultProps/withDefaultProps.d.ts +48 -0
- package/dist/withDefaultProps/withDefaultProps.js +84 -0
- package/dist/withDefaultProps/withDefaultProps.js.map +1 -0
- package/dist/withDefaultPropsHandlers/constants.cjs +7 -0
- package/dist/withDefaultPropsHandlers/constants.cjs.map +1 -0
- package/dist/withDefaultPropsHandlers/constants.d.cts +5 -0
- package/dist/withDefaultPropsHandlers/constants.d.ts +5 -0
- package/dist/withDefaultPropsHandlers/constants.js +6 -0
- package/dist/withDefaultPropsHandlers/constants.js.map +1 -0
- package/dist/withDefaultPropsHandlers/index.cjs +3 -0
- package/dist/withDefaultPropsHandlers/index.d.cts +3 -0
- package/dist/withDefaultPropsHandlers/index.d.ts +3 -0
- package/dist/withDefaultPropsHandlers/index.js +2 -0
- package/dist/withDefaultPropsHandlers/types.cjs +0 -0
- package/dist/withDefaultPropsHandlers/types.d.cts +12 -0
- package/dist/withDefaultPropsHandlers/types.d.ts +12 -0
- package/dist/withDefaultPropsHandlers/types.js +0 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs +81 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs.map +1 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.cts +49 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.ts +49 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js +80 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js.map +1 -0
- package/package.json +647 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { reuseMutation, reuseQuery } from "./reuseQuery/reuseQuery.js";
|
|
2
|
+
import "./reuseQuery/index.js";
|
|
3
|
+
import { useInfiniteQuery } from "./useInfiniteQuery/useInfiniteQuery.js";
|
|
4
|
+
import "./useInfiniteQuery/index.js";
|
|
5
|
+
import { useApiQueryCache } from "./useApiQueryCache/useApiQueryCache.js";
|
|
6
|
+
import "./useApiQueryCache/index.js";
|
|
7
|
+
import { useMutation } from "./useMutation/useMutation.js";
|
|
8
|
+
import "./useMutation/index.js";
|
|
9
|
+
import { useQueries } from "./useQueries/useQueries.js";
|
|
10
|
+
import "./useQueries/index.js";
|
|
11
|
+
import { useQuery } from "./useQuery/useQuery.js";
|
|
12
|
+
import "./useQuery/index.js";
|
|
13
|
+
export { reuseMutation, reuseQuery, useApiQueryCache, useInfiniteQuery, useMutation, useQueries, useQuery };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_hooks_reuseQuery_reuseQuery = require("./reuseQuery.cjs");
|
|
3
|
+
exports.reuseMutation = require_api_hooks_reuseQuery_reuseQuery.reuseMutation;
|
|
4
|
+
exports.reuseQuery = require_api_hooks_reuseQuery_reuseQuery.reuseQuery;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_hooks_utils_useReactiveRender = require("../utils/useReactiveRender.cjs");
|
|
3
|
+
require("../utils/index.cjs");
|
|
4
|
+
//#region src/api/hooks/reuseQuery/reuseQuery.ts
|
|
5
|
+
/**
|
|
6
|
+
* Reuses a tools reactive query-like state inside Vue rendering.
|
|
7
|
+
*
|
|
8
|
+
* `createState` is called when the composable runs. The returned tools
|
|
9
|
+
* reactive object is wrapped by {@link useReactiveRender}, so Vue components
|
|
10
|
+
* that read its fields update when those fields change.
|
|
11
|
+
*
|
|
12
|
+
* Use this helper to build custom Vue composables from the framework-agnostic
|
|
13
|
+
* `@pastweb/tools` query primitives without reimplementing their state
|
|
14
|
+
* machines.
|
|
15
|
+
*
|
|
16
|
+
* @typeParam TState - Reactive state object returned by a tools hook.
|
|
17
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
18
|
+
* @returns The same state shape, bridged into Vue rendering.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { useQuery as createToolsQuery } from '@pastweb/tools';
|
|
23
|
+
* import { reuseQuery } from '@pastweb/vue';
|
|
24
|
+
*
|
|
25
|
+
* export function useUsers(agent: Agent) {
|
|
26
|
+
* return reuseQuery(() => createToolsQuery({
|
|
27
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
28
|
+
* }));
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function reuseQuery(createState) {
|
|
33
|
+
return require_api_hooks_utils_useReactiveRender.useReactiveRender(createState);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Semantic alias for {@link reuseQuery} when the reused state represents a
|
|
37
|
+
* mutation rather than a query.
|
|
38
|
+
*/
|
|
39
|
+
const reuseMutation = reuseQuery;
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.reuseMutation = reuseMutation;
|
|
42
|
+
exports.reuseQuery = reuseQuery;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=reuseQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reuseQuery.cjs","names":["useReactiveRender"],"sources":["../../../../src/api/hooks/reuseQuery/reuseQuery.ts"],"sourcesContent":["import { useReactiveRender } from '../utils';\n\n/**\n * Reuses a tools reactive query-like state inside Vue rendering.\n *\n * `createState` is called when the composable runs. The returned tools\n * reactive object is wrapped by {@link useReactiveRender}, so Vue components\n * that read its fields update when those fields change.\n *\n * Use this helper to build custom Vue composables from the framework-agnostic\n * `@pastweb/tools` query primitives without reimplementing their state\n * machines.\n *\n * @typeParam TState - Reactive state object returned by a tools hook.\n * @param createState - Factory that creates the tools reactive state.\n * @returns The same state shape, bridged into Vue rendering.\n *\n * @example\n * ```ts\n * import { useQuery as createToolsQuery } from '@pastweb/tools';\n * import { reuseQuery } from '@pastweb/vue';\n *\n * export function useUsers(agent: Agent) {\n * return reuseQuery(() => createToolsQuery({\n * fn: () => agent.get('/api/users', { queryKey: ['users'] }),\n * }));\n * }\n * ```\n */\nexport function reuseQuery<TState extends Record<PropertyKey, any>>(createState: () => TState): TState {\n return useReactiveRender(createState);\n}\n\n/**\n * Semantic alias for {@link reuseQuery} when the reused state represents a\n * mutation rather than a query.\n */\nexport const reuseMutation = reuseQuery;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,WAAoD,aAAmC;CACrG,OAAOA,0CAAAA,kBAAkB,WAAW;AACtC;;;;;AAMA,MAAa,gBAAgB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/api/hooks/reuseQuery/reuseQuery.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reuses a tools reactive query-like state inside Vue rendering.
|
|
4
|
+
*
|
|
5
|
+
* `createState` is called when the composable runs. The returned tools
|
|
6
|
+
* reactive object is wrapped by {@link useReactiveRender}, so Vue components
|
|
7
|
+
* that read its fields update when those fields change.
|
|
8
|
+
*
|
|
9
|
+
* Use this helper to build custom Vue composables from the framework-agnostic
|
|
10
|
+
* `@pastweb/tools` query primitives without reimplementing their state
|
|
11
|
+
* machines.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam TState - Reactive state object returned by a tools hook.
|
|
14
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
15
|
+
* @returns The same state shape, bridged into Vue rendering.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { useQuery as createToolsQuery } from '@pastweb/tools';
|
|
20
|
+
* import { reuseQuery } from '@pastweb/vue';
|
|
21
|
+
*
|
|
22
|
+
* export function useUsers(agent: Agent) {
|
|
23
|
+
* return reuseQuery(() => createToolsQuery({
|
|
24
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
25
|
+
* }));
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function reuseQuery<TState extends Record<PropertyKey, any>>(createState: () => TState): TState;
|
|
30
|
+
/**
|
|
31
|
+
* Semantic alias for {@link reuseQuery} when the reused state represents a
|
|
32
|
+
* mutation rather than a query.
|
|
33
|
+
*/
|
|
34
|
+
declare const reuseMutation: typeof reuseQuery;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { reuseMutation, reuseQuery };
|
|
37
|
+
//# sourceMappingURL=reuseQuery.d.cts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/api/hooks/reuseQuery/reuseQuery.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reuses a tools reactive query-like state inside Vue rendering.
|
|
4
|
+
*
|
|
5
|
+
* `createState` is called when the composable runs. The returned tools
|
|
6
|
+
* reactive object is wrapped by {@link useReactiveRender}, so Vue components
|
|
7
|
+
* that read its fields update when those fields change.
|
|
8
|
+
*
|
|
9
|
+
* Use this helper to build custom Vue composables from the framework-agnostic
|
|
10
|
+
* `@pastweb/tools` query primitives without reimplementing their state
|
|
11
|
+
* machines.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam TState - Reactive state object returned by a tools hook.
|
|
14
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
15
|
+
* @returns The same state shape, bridged into Vue rendering.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { useQuery as createToolsQuery } from '@pastweb/tools';
|
|
20
|
+
* import { reuseQuery } from '@pastweb/vue';
|
|
21
|
+
*
|
|
22
|
+
* export function useUsers(agent: Agent) {
|
|
23
|
+
* return reuseQuery(() => createToolsQuery({
|
|
24
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
25
|
+
* }));
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare function reuseQuery<TState extends Record<PropertyKey, any>>(createState: () => TState): TState;
|
|
30
|
+
/**
|
|
31
|
+
* Semantic alias for {@link reuseQuery} when the reused state represents a
|
|
32
|
+
* mutation rather than a query.
|
|
33
|
+
*/
|
|
34
|
+
declare const reuseMutation: typeof reuseQuery;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { reuseMutation, reuseQuery };
|
|
37
|
+
//# sourceMappingURL=reuseQuery.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useReactiveRender } from "../utils/useReactiveRender.js";
|
|
2
|
+
import "../utils/index.js";
|
|
3
|
+
//#region src/api/hooks/reuseQuery/reuseQuery.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reuses a tools reactive query-like state inside Vue rendering.
|
|
6
|
+
*
|
|
7
|
+
* `createState` is called when the composable runs. The returned tools
|
|
8
|
+
* reactive object is wrapped by {@link useReactiveRender}, so Vue components
|
|
9
|
+
* that read its fields update when those fields change.
|
|
10
|
+
*
|
|
11
|
+
* Use this helper to build custom Vue composables from the framework-agnostic
|
|
12
|
+
* `@pastweb/tools` query primitives without reimplementing their state
|
|
13
|
+
* machines.
|
|
14
|
+
*
|
|
15
|
+
* @typeParam TState - Reactive state object returned by a tools hook.
|
|
16
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
17
|
+
* @returns The same state shape, bridged into Vue rendering.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { useQuery as createToolsQuery } from '@pastweb/tools';
|
|
22
|
+
* import { reuseQuery } from '@pastweb/vue';
|
|
23
|
+
*
|
|
24
|
+
* export function useUsers(agent: Agent) {
|
|
25
|
+
* return reuseQuery(() => createToolsQuery({
|
|
26
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
27
|
+
* }));
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
function reuseQuery(createState) {
|
|
32
|
+
return useReactiveRender(createState);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Semantic alias for {@link reuseQuery} when the reused state represents a
|
|
36
|
+
* mutation rather than a query.
|
|
37
|
+
*/
|
|
38
|
+
const reuseMutation = reuseQuery;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { reuseMutation, reuseQuery };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=reuseQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reuseQuery.js","names":[],"sources":["../../../../src/api/hooks/reuseQuery/reuseQuery.ts"],"sourcesContent":["import { useReactiveRender } from '../utils';\n\n/**\n * Reuses a tools reactive query-like state inside Vue rendering.\n *\n * `createState` is called when the composable runs. The returned tools\n * reactive object is wrapped by {@link useReactiveRender}, so Vue components\n * that read its fields update when those fields change.\n *\n * Use this helper to build custom Vue composables from the framework-agnostic\n * `@pastweb/tools` query primitives without reimplementing their state\n * machines.\n *\n * @typeParam TState - Reactive state object returned by a tools hook.\n * @param createState - Factory that creates the tools reactive state.\n * @returns The same state shape, bridged into Vue rendering.\n *\n * @example\n * ```ts\n * import { useQuery as createToolsQuery } from '@pastweb/tools';\n * import { reuseQuery } from '@pastweb/vue';\n *\n * export function useUsers(agent: Agent) {\n * return reuseQuery(() => createToolsQuery({\n * fn: () => agent.get('/api/users', { queryKey: ['users'] }),\n * }));\n * }\n * ```\n */\nexport function reuseQuery<TState extends Record<PropertyKey, any>>(createState: () => TState): TState {\n return useReactiveRender(createState);\n}\n\n/**\n * Semantic alias for {@link reuseQuery} when the reused state represents a\n * mutation rather than a query.\n */\nexport const reuseMutation = reuseQuery;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,WAAoD,aAAmC;CACrG,OAAO,kBAAkB,WAAW;AACtC;;;;;AAMA,MAAa,gBAAgB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_getContext_getContext = require("../../../getContext/getContext.cjs");
|
|
3
|
+
require("../../../getContext/index.cjs");
|
|
4
|
+
let _pastweb_tools_api_createQueryCache_constants = require("@pastweb/tools/api/createQueryCache/constants");
|
|
5
|
+
//#region src/api/hooks/useApiQueryCache/useApiQueryCache.ts
|
|
6
|
+
/**
|
|
7
|
+
* Returns the active tools `QueryCache` from Vue dependency injection.
|
|
8
|
+
*
|
|
9
|
+
* The cache is provided by installing the plugin returned from
|
|
10
|
+
* {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`
|
|
11
|
+
* while exposing Vue-friendly access for composables and components.
|
|
12
|
+
*
|
|
13
|
+
* @returns The active tools `QueryCache`.
|
|
14
|
+
* @throws When no query cache has been provided in the current app tree.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { useApiQueryCache } from '@pastweb/vue';
|
|
19
|
+
*
|
|
20
|
+
* const queryCache = useApiQueryCache();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useApiQueryCache() {
|
|
24
|
+
const queryCache = require_getContext_getContext.getContext(_pastweb_tools_api_createQueryCache_constants.QUERY_CACHE_CONTEXT_KEY);
|
|
25
|
+
if (!queryCache) throw new Error("useApiQueryCache error: queryCache must be installed via installApiCache.");
|
|
26
|
+
return queryCache;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.useApiQueryCache = useApiQueryCache;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=useApiQueryCache.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useApiQueryCache.cjs","names":["getContext","QUERY_CACHE_CONTEXT_KEY"],"sources":["../../../../src/api/hooks/useApiQueryCache/useApiQueryCache.ts"],"sourcesContent":["import { QUERY_CACHE_CONTEXT_KEY } from '@pastweb/tools/api/createQueryCache/constants';\nimport type { QueryCache } from '@pastweb/tools/api/createQueryCache/types';\nimport { getContext } from '../../../getContext';\n\n/**\n * Returns the active tools `QueryCache` from Vue dependency injection.\n *\n * The cache is provided by installing the plugin returned from\n * {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`\n * while exposing Vue-friendly access for composables and components.\n *\n * @returns The active tools `QueryCache`.\n * @throws When no query cache has been provided in the current app tree.\n *\n * @example\n * ```ts\n * import { useApiQueryCache } from '@pastweb/vue';\n *\n * const queryCache = useApiQueryCache();\n * ```\n */\nexport function useApiQueryCache(): QueryCache {\n const queryCache = getContext<QueryCache | undefined>(QUERY_CACHE_CONTEXT_KEY);\n\n if (!queryCache) {\n throw new Error(\n 'useApiQueryCache error: queryCache must be installed via installApiCache.'\n );\n }\n\n return queryCache;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,mBAA+B;CAC7C,MAAM,aAAaA,8BAAAA,WAAmCC,8CAAAA,uBAAuB;CAE7E,IAAI,CAAC,YACH,MAAM,IAAI,MACR,2EACF;CAGF,OAAO;AACT"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QueryCache } from "@pastweb/tools/api/createQueryCache/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useApiQueryCache/useApiQueryCache.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Returns the active tools `QueryCache` from Vue dependency injection.
|
|
6
|
+
*
|
|
7
|
+
* The cache is provided by installing the plugin returned from
|
|
8
|
+
* {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`
|
|
9
|
+
* while exposing Vue-friendly access for composables and components.
|
|
10
|
+
*
|
|
11
|
+
* @returns The active tools `QueryCache`.
|
|
12
|
+
* @throws When no query cache has been provided in the current app tree.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { useApiQueryCache } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const queryCache = useApiQueryCache();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useApiQueryCache(): QueryCache;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useApiQueryCache };
|
|
24
|
+
//# sourceMappingURL=useApiQueryCache.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QueryCache } from "@pastweb/tools/api/createQueryCache/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useApiQueryCache/useApiQueryCache.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Returns the active tools `QueryCache` from Vue dependency injection.
|
|
6
|
+
*
|
|
7
|
+
* The cache is provided by installing the plugin returned from
|
|
8
|
+
* {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`
|
|
9
|
+
* while exposing Vue-friendly access for composables and components.
|
|
10
|
+
*
|
|
11
|
+
* @returns The active tools `QueryCache`.
|
|
12
|
+
* @throws When no query cache has been provided in the current app tree.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { useApiQueryCache } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const queryCache = useApiQueryCache();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useApiQueryCache(): QueryCache;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useApiQueryCache };
|
|
24
|
+
//# sourceMappingURL=useApiQueryCache.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getContext } from "../../../getContext/getContext.js";
|
|
2
|
+
import "../../../getContext/index.js";
|
|
3
|
+
import { QUERY_CACHE_CONTEXT_KEY } from "@pastweb/tools/api/createQueryCache/constants";
|
|
4
|
+
//#region src/api/hooks/useApiQueryCache/useApiQueryCache.ts
|
|
5
|
+
/**
|
|
6
|
+
* Returns the active tools `QueryCache` from Vue dependency injection.
|
|
7
|
+
*
|
|
8
|
+
* The cache is provided by installing the plugin returned from
|
|
9
|
+
* {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`
|
|
10
|
+
* while exposing Vue-friendly access for composables and components.
|
|
11
|
+
*
|
|
12
|
+
* @returns The active tools `QueryCache`.
|
|
13
|
+
* @throws When no query cache has been provided in the current app tree.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { useApiQueryCache } from '@pastweb/vue';
|
|
18
|
+
*
|
|
19
|
+
* const queryCache = useApiQueryCache();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function useApiQueryCache() {
|
|
23
|
+
const queryCache = getContext(QUERY_CACHE_CONTEXT_KEY);
|
|
24
|
+
if (!queryCache) throw new Error("useApiQueryCache error: queryCache must be installed via installApiCache.");
|
|
25
|
+
return queryCache;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { useApiQueryCache };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=useApiQueryCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useApiQueryCache.js","names":[],"sources":["../../../../src/api/hooks/useApiQueryCache/useApiQueryCache.ts"],"sourcesContent":["import { QUERY_CACHE_CONTEXT_KEY } from '@pastweb/tools/api/createQueryCache/constants';\nimport type { QueryCache } from '@pastweb/tools/api/createQueryCache/types';\nimport { getContext } from '../../../getContext';\n\n/**\n * Returns the active tools `QueryCache` from Vue dependency injection.\n *\n * The cache is provided by installing the plugin returned from\n * {@link installApiCache}. This keeps cache ownership in `@pastweb/tools`\n * while exposing Vue-friendly access for composables and components.\n *\n * @returns The active tools `QueryCache`.\n * @throws When no query cache has been provided in the current app tree.\n *\n * @example\n * ```ts\n * import { useApiQueryCache } from '@pastweb/vue';\n *\n * const queryCache = useApiQueryCache();\n * ```\n */\nexport function useApiQueryCache(): QueryCache {\n const queryCache = getContext<QueryCache | undefined>(QUERY_CACHE_CONTEXT_KEY);\n\n if (!queryCache) {\n throw new Error(\n 'useApiQueryCache error: queryCache must be installed via installApiCache.'\n );\n }\n\n return queryCache;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,mBAA+B;CAC7C,MAAM,aAAa,WAAmC,uBAAuB;CAE7E,IAAI,CAAC,YACH,MAAM,IAAI,MACR,2EACF;CAGF,OAAO;AACT"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_hooks_reuseQuery_reuseQuery = require("../reuseQuery/reuseQuery.cjs");
|
|
3
|
+
require("../reuseQuery/index.cjs");
|
|
4
|
+
let _pastweb_tools_api_hooks_useInfiniteQuery = require("@pastweb/tools/api/hooks/useInfiniteQuery");
|
|
5
|
+
//#region src/api/hooks/useInfiniteQuery/useInfiniteQuery.ts
|
|
6
|
+
/**
|
|
7
|
+
* Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.
|
|
8
|
+
*
|
|
9
|
+
* The core infinite query owns page ordering, fetch status, retry behavior, and
|
|
10
|
+
* cache interaction. This composable bridges that reactive state into Vue
|
|
11
|
+
* rendering so templates update when query fields change.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam TPage - Data shape for each fetched page.
|
|
14
|
+
* @typeParam TPageParam - Page parameter shape.
|
|
15
|
+
* @param config - Infinite query configuration passed to the tools hook.
|
|
16
|
+
* @returns Reactive infinite query information.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const posts = useInfiniteQuery({
|
|
21
|
+
* initialPageParam: 1,
|
|
22
|
+
* fn: page => agent.get(`/api/posts?page=${page}`, {
|
|
23
|
+
* queryKey: ['posts', page],
|
|
24
|
+
* }),
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function useInfiniteQuery(config) {
|
|
29
|
+
return require_api_hooks_reuseQuery_reuseQuery.reuseQuery(() => (0, _pastweb_tools_api_hooks_useInfiniteQuery.useInfiniteQuery)(config));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.useInfiniteQuery = useInfiniteQuery;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=useInfiniteQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteQuery.cjs","names":["reuseQuery"],"sources":["../../../../src/api/hooks/useInfiniteQuery/useInfiniteQuery.ts"],"sourcesContent":["import { useInfiniteQuery as createToolsInfiniteQuery } from '@pastweb/tools/api/hooks/useInfiniteQuery';\nimport { reuseQuery } from '../reuseQuery';\nimport type {\n InfiniteQueryConfig,\n InfiniteQueryInfo,\n} from '@pastweb/tools/api/hooks/useInfiniteQuery/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.\n *\n * The core infinite query owns page ordering, fetch status, retry behavior, and\n * cache interaction. This composable bridges that reactive state into Vue\n * rendering so templates update when query fields change.\n *\n * @typeParam TPage - Data shape for each fetched page.\n * @typeParam TPageParam - Page parameter shape.\n * @param config - Infinite query configuration passed to the tools hook.\n * @returns Reactive infinite query information.\n *\n * @example\n * ```ts\n * const posts = useInfiniteQuery({\n * initialPageParam: 1,\n * fn: page => agent.get(`/api/posts?page=${page}`, {\n * queryKey: ['posts', page],\n * }),\n * });\n * ```\n */\nexport function useInfiniteQuery<TPage, TPageParam = unknown>(\n config: InfiniteQueryConfig<TPage, TPageParam>,\n): InfiniteQueryInfo<TPage, TPageParam> {\n return reuseQuery(() => createToolsInfiniteQuery(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,iBACd,QACsC;CACtC,OAAOA,wCAAAA,kBAAAA,GAAAA,0CAAAA,iBAAAA,CAA0C,MAAM,CAAC;AAC1D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InfiniteQueryConfig, InfiniteQueryInfo } from "@pastweb/tools/api/hooks/useInfiniteQuery/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.
|
|
6
|
+
*
|
|
7
|
+
* The core infinite query owns page ordering, fetch status, retry behavior, and
|
|
8
|
+
* cache interaction. This composable bridges that reactive state into Vue
|
|
9
|
+
* rendering so templates update when query fields change.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam TPage - Data shape for each fetched page.
|
|
12
|
+
* @typeParam TPageParam - Page parameter shape.
|
|
13
|
+
* @param config - Infinite query configuration passed to the tools hook.
|
|
14
|
+
* @returns Reactive infinite query information.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const posts = useInfiniteQuery({
|
|
19
|
+
* initialPageParam: 1,
|
|
20
|
+
* fn: page => agent.get(`/api/posts?page=${page}`, {
|
|
21
|
+
* queryKey: ['posts', page],
|
|
22
|
+
* }),
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare function useInfiniteQuery<TPage, TPageParam = unknown>(config: InfiniteQueryConfig<TPage, TPageParam>): InfiniteQueryInfo<TPage, TPageParam>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { useInfiniteQuery };
|
|
29
|
+
//# sourceMappingURL=useInfiniteQuery.d.cts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InfiniteQueryConfig, InfiniteQueryInfo } from "@pastweb/tools/api/hooks/useInfiniteQuery/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.
|
|
6
|
+
*
|
|
7
|
+
* The core infinite query owns page ordering, fetch status, retry behavior, and
|
|
8
|
+
* cache interaction. This composable bridges that reactive state into Vue
|
|
9
|
+
* rendering so templates update when query fields change.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam TPage - Data shape for each fetched page.
|
|
12
|
+
* @typeParam TPageParam - Page parameter shape.
|
|
13
|
+
* @param config - Infinite query configuration passed to the tools hook.
|
|
14
|
+
* @returns Reactive infinite query information.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const posts = useInfiniteQuery({
|
|
19
|
+
* initialPageParam: 1,
|
|
20
|
+
* fn: page => agent.get(`/api/posts?page=${page}`, {
|
|
21
|
+
* queryKey: ['posts', page],
|
|
22
|
+
* }),
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare function useInfiniteQuery<TPage, TPageParam = unknown>(config: InfiniteQueryConfig<TPage, TPageParam>): InfiniteQueryInfo<TPage, TPageParam>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { useInfiniteQuery };
|
|
29
|
+
//# sourceMappingURL=useInfiniteQuery.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { reuseQuery } from "../reuseQuery/reuseQuery.js";
|
|
2
|
+
import "../reuseQuery/index.js";
|
|
3
|
+
import { useInfiniteQuery as useInfiniteQuery$1 } from "@pastweb/tools/api/hooks/useInfiniteQuery";
|
|
4
|
+
//#region src/api/hooks/useInfiniteQuery/useInfiniteQuery.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.
|
|
7
|
+
*
|
|
8
|
+
* The core infinite query owns page ordering, fetch status, retry behavior, and
|
|
9
|
+
* cache interaction. This composable bridges that reactive state into Vue
|
|
10
|
+
* rendering so templates update when query fields change.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam TPage - Data shape for each fetched page.
|
|
13
|
+
* @typeParam TPageParam - Page parameter shape.
|
|
14
|
+
* @param config - Infinite query configuration passed to the tools hook.
|
|
15
|
+
* @returns Reactive infinite query information.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const posts = useInfiniteQuery({
|
|
20
|
+
* initialPageParam: 1,
|
|
21
|
+
* fn: page => agent.get(`/api/posts?page=${page}`, {
|
|
22
|
+
* queryKey: ['posts', page],
|
|
23
|
+
* }),
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function useInfiniteQuery(config) {
|
|
28
|
+
return reuseQuery(() => useInfiniteQuery$1(config));
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { useInfiniteQuery };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=useInfiniteQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteQuery.js","names":["createToolsInfiniteQuery"],"sources":["../../../../src/api/hooks/useInfiniteQuery/useInfiniteQuery.ts"],"sourcesContent":["import { useInfiniteQuery as createToolsInfiniteQuery } from '@pastweb/tools/api/hooks/useInfiniteQuery';\nimport { reuseQuery } from '../reuseQuery';\nimport type {\n InfiniteQueryConfig,\n InfiniteQueryInfo,\n} from '@pastweb/tools/api/hooks/useInfiniteQuery/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useInfiniteQuery`.\n *\n * The core infinite query owns page ordering, fetch status, retry behavior, and\n * cache interaction. This composable bridges that reactive state into Vue\n * rendering so templates update when query fields change.\n *\n * @typeParam TPage - Data shape for each fetched page.\n * @typeParam TPageParam - Page parameter shape.\n * @param config - Infinite query configuration passed to the tools hook.\n * @returns Reactive infinite query information.\n *\n * @example\n * ```ts\n * const posts = useInfiniteQuery({\n * initialPageParam: 1,\n * fn: page => agent.get(`/api/posts?page=${page}`, {\n * queryKey: ['posts', page],\n * }),\n * });\n * ```\n */\nexport function useInfiniteQuery<TPage, TPageParam = unknown>(\n config: InfiniteQueryConfig<TPage, TPageParam>,\n): InfiniteQueryInfo<TPage, TPageParam> {\n return reuseQuery(() => createToolsInfiniteQuery(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,iBACd,QACsC;CACtC,OAAO,iBAAiBA,mBAAyB,MAAM,CAAC;AAC1D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_hooks_reuseQuery_reuseQuery = require("../reuseQuery/reuseQuery.cjs");
|
|
3
|
+
require("../reuseQuery/index.cjs");
|
|
4
|
+
let _pastweb_tools_api_hooks_useMutation = require("@pastweb/tools/api/hooks/useMutation");
|
|
5
|
+
//#region src/api/hooks/useMutation/useMutation.ts
|
|
6
|
+
/**
|
|
7
|
+
* Vue wrapper for `@pastweb/tools` `useMutation`.
|
|
8
|
+
*
|
|
9
|
+
* The mutation object is created by tools and bridged into Vue rendering. Use it
|
|
10
|
+
* for POST/PUT/PATCH/DELETE style actions, cache invalidation callbacks, and
|
|
11
|
+
* mutation lifecycle state.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam T - Mutation result data shape.
|
|
14
|
+
* @param config - Mutation configuration passed to the tools hook.
|
|
15
|
+
* @returns Reactive mutation information.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const saveUser = useMutation({
|
|
20
|
+
* fn: payload => agent.post('/api/users', payload),
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function useMutation(config) {
|
|
25
|
+
return require_api_hooks_reuseQuery_reuseQuery.reuseMutation(() => (0, _pastweb_tools_api_hooks_useMutation.useMutation)(config));
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.useMutation = useMutation;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=useMutation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMutation.cjs","names":["reuseMutation"],"sources":["../../../../src/api/hooks/useMutation/useMutation.ts"],"sourcesContent":["import { useMutation as createToolsMutation } from '@pastweb/tools/api/hooks/useMutation';\nimport { reuseMutation } from '../reuseQuery';\nimport type { MutationConfig, MutationInfo } from '@pastweb/tools/api/hooks/useMutation/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useMutation`.\n *\n * The mutation object is created by tools and bridged into Vue rendering. Use it\n * for POST/PUT/PATCH/DELETE style actions, cache invalidation callbacks, and\n * mutation lifecycle state.\n *\n * @typeParam T - Mutation result data shape.\n * @param config - Mutation configuration passed to the tools hook.\n * @returns Reactive mutation information.\n *\n * @example\n * ```ts\n * const saveUser = useMutation({\n * fn: payload => agent.post('/api/users', payload),\n * });\n * ```\n */\nexport function useMutation<T>(config: MutationConfig<T>): MutationInfo<T> {\n return reuseMutation(() => createToolsMutation(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,YAAe,QAA4C;CACzE,OAAOA,wCAAAA,qBAAAA,GAAAA,qCAAAA,YAAAA,CAAwC,MAAM,CAAC;AACxD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MutationConfig, MutationInfo } from "@pastweb/tools/api/hooks/useMutation/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useMutation/useMutation.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useMutation`.
|
|
6
|
+
*
|
|
7
|
+
* The mutation object is created by tools and bridged into Vue rendering. Use it
|
|
8
|
+
* for POST/PUT/PATCH/DELETE style actions, cache invalidation callbacks, and
|
|
9
|
+
* mutation lifecycle state.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Mutation result data shape.
|
|
12
|
+
* @param config - Mutation configuration passed to the tools hook.
|
|
13
|
+
* @returns Reactive mutation information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const saveUser = useMutation({
|
|
18
|
+
* fn: payload => agent.post('/api/users', payload),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function useMutation<T>(config: MutationConfig<T>): MutationInfo<T>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useMutation };
|
|
25
|
+
//# sourceMappingURL=useMutation.d.cts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MutationConfig, MutationInfo } from "@pastweb/tools/api/hooks/useMutation/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useMutation/useMutation.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useMutation`.
|
|
6
|
+
*
|
|
7
|
+
* The mutation object is created by tools and bridged into Vue rendering. Use it
|
|
8
|
+
* for POST/PUT/PATCH/DELETE style actions, cache invalidation callbacks, and
|
|
9
|
+
* mutation lifecycle state.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Mutation result data shape.
|
|
12
|
+
* @param config - Mutation configuration passed to the tools hook.
|
|
13
|
+
* @returns Reactive mutation information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const saveUser = useMutation({
|
|
18
|
+
* fn: payload => agent.post('/api/users', payload),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function useMutation<T>(config: MutationConfig<T>): MutationInfo<T>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useMutation };
|
|
25
|
+
//# sourceMappingURL=useMutation.d.ts.map
|