@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,29 @@
|
|
|
1
|
+
import { reuseMutation } from "../reuseQuery/reuseQuery.js";
|
|
2
|
+
import "../reuseQuery/index.js";
|
|
3
|
+
import { useMutation as useMutation$1 } from "@pastweb/tools/api/hooks/useMutation";
|
|
4
|
+
//#region src/api/hooks/useMutation/useMutation.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useMutation`.
|
|
7
|
+
*
|
|
8
|
+
* The mutation object is created by tools and bridged into Vue rendering. Use it
|
|
9
|
+
* for POST/PUT/PATCH/DELETE style actions, cache invalidation callbacks, and
|
|
10
|
+
* mutation lifecycle state.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Mutation result data shape.
|
|
13
|
+
* @param config - Mutation configuration passed to the tools hook.
|
|
14
|
+
* @returns Reactive mutation information.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const saveUser = useMutation({
|
|
19
|
+
* fn: payload => agent.post('/api/users', payload),
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useMutation(config) {
|
|
24
|
+
return reuseMutation(() => useMutation$1(config));
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useMutation };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=useMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMutation.js","names":["createToolsMutation"],"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,OAAO,oBAAoBA,cAAoB,MAAM,CAAC;AACxD"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { useQueries } from "./useQueries.cjs";
|
|
2
|
+
import { QueriesData, QueriesInfo, QueryDataFromConfig, UseQueriesConfig, UseQueriesInfo, UseQueriesInput } from "@pastweb/tools";
|
|
3
|
+
export { type QueriesData, type QueriesInfo, type QueryDataFromConfig, type UseQueriesConfig, type UseQueriesInfo, type UseQueriesInput, useQueries };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { useQueries } from "./useQueries.js";
|
|
2
|
+
import { QueriesData, QueriesInfo, QueryDataFromConfig, UseQueriesConfig, UseQueriesInfo, UseQueriesInput } from "@pastweb/tools";
|
|
3
|
+
export { type QueriesData, type QueriesInfo, type QueryDataFromConfig, type UseQueriesConfig, type UseQueriesInfo, type UseQueriesInput, useQueries };
|
|
@@ -0,0 +1,32 @@
|
|
|
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_useQueries = require("@pastweb/tools/api/hooks/useQueries");
|
|
5
|
+
//#region src/api/hooks/useQueries/useQueries.ts
|
|
6
|
+
/**
|
|
7
|
+
* Vue wrapper for `@pastweb/tools` `useQueries`.
|
|
8
|
+
*
|
|
9
|
+
* Creates a tools aggregate query state for multiple query configs and bridges
|
|
10
|
+
* the aggregate fields into Vue rendering.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Tuple of query configurations.
|
|
13
|
+
* @param config - Aggregate query input passed to the tools hook.
|
|
14
|
+
* @returns Reactive aggregate query information.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const dashboard = useQueries({
|
|
19
|
+
* queries: [
|
|
20
|
+
* { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },
|
|
21
|
+
* { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },
|
|
22
|
+
* ],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
function useQueries(config) {
|
|
27
|
+
return require_api_hooks_reuseQuery_reuseQuery.reuseQuery(() => (0, _pastweb_tools_api_hooks_useQueries.useQueries)(config));
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.useQueries = useQueries;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=useQueries.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQueries.cjs","names":["reuseQuery"],"sources":["../../../../src/api/hooks/useQueries/useQueries.ts"],"sourcesContent":["import { useQueries as createToolsQueries } from '@pastweb/tools/api/hooks/useQueries';\nimport { reuseQuery } from '../reuseQuery';\nimport type { QueryConfig } from '@pastweb/tools/api/hooks/useQuery/types';\nimport type { UseQueriesInfo, UseQueriesInput } from '@pastweb/tools/api/hooks/useQueries/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useQueries`.\n *\n * Creates a tools aggregate query state for multiple query configs and bridges\n * the aggregate fields into Vue rendering.\n *\n * @typeParam T - Tuple of query configurations.\n * @param config - Aggregate query input passed to the tools hook.\n * @returns Reactive aggregate query information.\n *\n * @example\n * ```ts\n * const dashboard = useQueries({\n * queries: [\n * { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },\n * { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },\n * ],\n * });\n * ```\n */\nexport function useQueries<T extends readonly QueryConfig<any>[]>(config: UseQueriesInput<T>): UseQueriesInfo<T> {\n return reuseQuery(() => createToolsQueries(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,WAAkD,QAA+C;CAC/G,OAAOA,wCAAAA,kBAAAA,GAAAA,oCAAAA,WAAAA,CAAoC,MAAM,CAAC;AACpD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryConfig } from "@pastweb/tools/api/hooks/useQuery/types";
|
|
2
|
+
import { UseQueriesInfo, UseQueriesInput } from "@pastweb/tools/api/hooks/useQueries/types";
|
|
3
|
+
|
|
4
|
+
//#region src/api/hooks/useQueries/useQueries.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useQueries`.
|
|
7
|
+
*
|
|
8
|
+
* Creates a tools aggregate query state for multiple query configs and bridges
|
|
9
|
+
* the aggregate fields into Vue rendering.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Tuple of query configurations.
|
|
12
|
+
* @param config - Aggregate query input passed to the tools hook.
|
|
13
|
+
* @returns Reactive aggregate query information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const dashboard = useQueries({
|
|
18
|
+
* queries: [
|
|
19
|
+
* { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },
|
|
20
|
+
* { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },
|
|
21
|
+
* ],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare function useQueries<T extends readonly QueryConfig<any>[]>(config: UseQueriesInput<T>): UseQueriesInfo<T>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useQueries };
|
|
28
|
+
//# sourceMappingURL=useQueries.d.cts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryConfig } from "@pastweb/tools/api/hooks/useQuery/types";
|
|
2
|
+
import { UseQueriesInfo, UseQueriesInput } from "@pastweb/tools/api/hooks/useQueries/types";
|
|
3
|
+
|
|
4
|
+
//#region src/api/hooks/useQueries/useQueries.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useQueries`.
|
|
7
|
+
*
|
|
8
|
+
* Creates a tools aggregate query state for multiple query configs and bridges
|
|
9
|
+
* the aggregate fields into Vue rendering.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Tuple of query configurations.
|
|
12
|
+
* @param config - Aggregate query input passed to the tools hook.
|
|
13
|
+
* @returns Reactive aggregate query information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const dashboard = useQueries({
|
|
18
|
+
* queries: [
|
|
19
|
+
* { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },
|
|
20
|
+
* { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },
|
|
21
|
+
* ],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare function useQueries<T extends readonly QueryConfig<any>[]>(config: UseQueriesInput<T>): UseQueriesInfo<T>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useQueries };
|
|
28
|
+
//# sourceMappingURL=useQueries.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { reuseQuery } from "../reuseQuery/reuseQuery.js";
|
|
2
|
+
import "../reuseQuery/index.js";
|
|
3
|
+
import { useQueries as useQueries$1 } from "@pastweb/tools/api/hooks/useQueries";
|
|
4
|
+
//#region src/api/hooks/useQueries/useQueries.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useQueries`.
|
|
7
|
+
*
|
|
8
|
+
* Creates a tools aggregate query state for multiple query configs and bridges
|
|
9
|
+
* the aggregate fields into Vue rendering.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Tuple of query configurations.
|
|
12
|
+
* @param config - Aggregate query input passed to the tools hook.
|
|
13
|
+
* @returns Reactive aggregate query information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const dashboard = useQueries({
|
|
18
|
+
* queries: [
|
|
19
|
+
* { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },
|
|
20
|
+
* { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },
|
|
21
|
+
* ],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function useQueries(config) {
|
|
26
|
+
return reuseQuery(() => useQueries$1(config));
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { useQueries };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=useQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQueries.js","names":["createToolsQueries"],"sources":["../../../../src/api/hooks/useQueries/useQueries.ts"],"sourcesContent":["import { useQueries as createToolsQueries } from '@pastweb/tools/api/hooks/useQueries';\nimport { reuseQuery } from '../reuseQuery';\nimport type { QueryConfig } from '@pastweb/tools/api/hooks/useQuery/types';\nimport type { UseQueriesInfo, UseQueriesInput } from '@pastweb/tools/api/hooks/useQueries/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useQueries`.\n *\n * Creates a tools aggregate query state for multiple query configs and bridges\n * the aggregate fields into Vue rendering.\n *\n * @typeParam T - Tuple of query configurations.\n * @param config - Aggregate query input passed to the tools hook.\n * @returns Reactive aggregate query information.\n *\n * @example\n * ```ts\n * const dashboard = useQueries({\n * queries: [\n * { fn: () => agent.get('/api/users', { queryKey: ['users'] }) },\n * { fn: () => agent.get('/api/posts', { queryKey: ['posts'] }) },\n * ],\n * });\n * ```\n */\nexport function useQueries<T extends readonly QueryConfig<any>[]>(config: UseQueriesInput<T>): UseQueriesInfo<T> {\n return reuseQuery(() => createToolsQueries(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,WAAkD,QAA+C;CAC/G,OAAO,iBAAiBA,aAAmB,MAAM,CAAC;AACpD"}
|
|
@@ -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_useQuery = require("@pastweb/tools/api/hooks/useQuery");
|
|
5
|
+
//#region src/api/hooks/useQuery/useQuery.ts
|
|
6
|
+
/**
|
|
7
|
+
* Vue wrapper for `@pastweb/tools` `useQuery`.
|
|
8
|
+
*
|
|
9
|
+
* The underlying tools query state machine handles fetch status, retries,
|
|
10
|
+
* caching, and invalidation. This composable returns that state in a shape Vue
|
|
11
|
+
* components can read directly from setup functions and templates.
|
|
12
|
+
*
|
|
13
|
+
* @typeParam T - Query result data shape.
|
|
14
|
+
* @param config - Query configuration passed to the tools hook.
|
|
15
|
+
* @returns Reactive query information.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const users = useQuery({
|
|
20
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function useQuery(config) {
|
|
25
|
+
return require_api_hooks_reuseQuery_reuseQuery.reuseQuery(() => (0, _pastweb_tools_api_hooks_useQuery.useQuery)(config));
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.useQuery = useQuery;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=useQuery.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuery.cjs","names":["reuseQuery"],"sources":["../../../../src/api/hooks/useQuery/useQuery.ts"],"sourcesContent":["import { useQuery as createToolsQuery } from '@pastweb/tools/api/hooks/useQuery';\nimport { reuseQuery } from '../reuseQuery';\nimport type { QueryConfig, QueryInfo } from '@pastweb/tools/api/hooks/useQuery/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useQuery`.\n *\n * The underlying tools query state machine handles fetch status, retries,\n * caching, and invalidation. This composable returns that state in a shape Vue\n * components can read directly from setup functions and templates.\n *\n * @typeParam T - Query result data shape.\n * @param config - Query configuration passed to the tools hook.\n * @returns Reactive query information.\n *\n * @example\n * ```ts\n * const users = useQuery({\n * fn: () => agent.get('/api/users', { queryKey: ['users'] }),\n * });\n * ```\n */\nexport function useQuery<T>(config: QueryConfig<T>): QueryInfo<T> {\n return reuseQuery(() => createToolsQuery(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,SAAY,QAAsC;CAChE,OAAOA,wCAAAA,kBAAAA,GAAAA,kCAAAA,SAAAA,CAAkC,MAAM,CAAC;AAClD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryConfig, QueryInfo } from "@pastweb/tools/api/hooks/useQuery/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useQuery/useQuery.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useQuery`.
|
|
6
|
+
*
|
|
7
|
+
* The underlying tools query state machine handles fetch status, retries,
|
|
8
|
+
* caching, and invalidation. This composable returns that state in a shape Vue
|
|
9
|
+
* components can read directly from setup functions and templates.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Query result data shape.
|
|
12
|
+
* @param config - Query configuration passed to the tools hook.
|
|
13
|
+
* @returns Reactive query information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const users = useQuery({
|
|
18
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function useQuery<T>(config: QueryConfig<T>): QueryInfo<T>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useQuery };
|
|
25
|
+
//# sourceMappingURL=useQuery.d.cts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryConfig, QueryInfo } from "@pastweb/tools/api/hooks/useQuery/types";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/useQuery/useQuery.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue wrapper for `@pastweb/tools` `useQuery`.
|
|
6
|
+
*
|
|
7
|
+
* The underlying tools query state machine handles fetch status, retries,
|
|
8
|
+
* caching, and invalidation. This composable returns that state in a shape Vue
|
|
9
|
+
* components can read directly from setup functions and templates.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Query result data shape.
|
|
12
|
+
* @param config - Query configuration passed to the tools hook.
|
|
13
|
+
* @returns Reactive query information.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const users = useQuery({
|
|
18
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function useQuery<T>(config: QueryConfig<T>): QueryInfo<T>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useQuery };
|
|
25
|
+
//# sourceMappingURL=useQuery.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { reuseQuery } from "../reuseQuery/reuseQuery.js";
|
|
2
|
+
import "../reuseQuery/index.js";
|
|
3
|
+
import { useQuery as useQuery$1 } from "@pastweb/tools/api/hooks/useQuery";
|
|
4
|
+
//#region src/api/hooks/useQuery/useQuery.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue wrapper for `@pastweb/tools` `useQuery`.
|
|
7
|
+
*
|
|
8
|
+
* The underlying tools query state machine handles fetch status, retries,
|
|
9
|
+
* caching, and invalidation. This composable returns that state in a shape Vue
|
|
10
|
+
* components can read directly from setup functions and templates.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Query result data shape.
|
|
13
|
+
* @param config - Query configuration passed to the tools hook.
|
|
14
|
+
* @returns Reactive query information.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const users = useQuery({
|
|
19
|
+
* fn: () => agent.get('/api/users', { queryKey: ['users'] }),
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useQuery(config) {
|
|
24
|
+
return reuseQuery(() => useQuery$1(config));
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useQuery };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=useQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuery.js","names":["createToolsQuery"],"sources":["../../../../src/api/hooks/useQuery/useQuery.ts"],"sourcesContent":["import { useQuery as createToolsQuery } from '@pastweb/tools/api/hooks/useQuery';\nimport { reuseQuery } from '../reuseQuery';\nimport type { QueryConfig, QueryInfo } from '@pastweb/tools/api/hooks/useQuery/types';\n\n/**\n * Vue wrapper for `@pastweb/tools` `useQuery`.\n *\n * The underlying tools query state machine handles fetch status, retries,\n * caching, and invalidation. This composable returns that state in a shape Vue\n * components can read directly from setup functions and templates.\n *\n * @typeParam T - Query result data shape.\n * @param config - Query configuration passed to the tools hook.\n * @returns Reactive query information.\n *\n * @example\n * ```ts\n * const users = useQuery({\n * fn: () => agent.get('/api/users', { queryKey: ['users'] }),\n * });\n * ```\n */\nexport function useQuery<T>(config: QueryConfig<T>): QueryInfo<T> {\n return reuseQuery(() => createToolsQuery(config));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,SAAY,QAAsC;CAChE,OAAO,iBAAiBA,WAAiB,MAAM,CAAC;AAClD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_hooks_utils_useReactiveRender = require("./useReactiveRender.cjs");
|
|
3
|
+
exports.readReactiveFields = require_api_hooks_utils_useReactiveRender.readReactiveFields;
|
|
4
|
+
exports.useReactiveRender = require_api_hooks_utils_useReactiveRender.useReactiveRender;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
let _pastweb_tools_reactivity = require("@pastweb/tools/reactivity");
|
|
4
|
+
//#region src/api/hooks/utils/useReactiveRender.ts
|
|
5
|
+
/**
|
|
6
|
+
* Reads enumerable fields from a tools reactive state object.
|
|
7
|
+
*
|
|
8
|
+
* Accessing each field while a tools `effect` is active registers those fields
|
|
9
|
+
* as dependencies. This is useful when a custom bridge needs a snapshot of the
|
|
10
|
+
* observed reactive values.
|
|
11
|
+
*
|
|
12
|
+
* @param target - Reactive state object returned by a tools API hook.
|
|
13
|
+
* @returns Current values for the enumerable fields.
|
|
14
|
+
*/
|
|
15
|
+
function readReactiveFields(target) {
|
|
16
|
+
return Object.keys(target).map((key) => target[key]);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Bridges a tools reactive object into Vue rendering.
|
|
20
|
+
*
|
|
21
|
+
* The core API hooks from `@pastweb/tools` own the query and mutation state.
|
|
22
|
+
* This helper observes their enumerable fields with the tools reactivity system
|
|
23
|
+
* and exposes a proxy that also touches a Vue `shallowRef`, causing Vue
|
|
24
|
+
* components to update when the tools state changes.
|
|
25
|
+
*
|
|
26
|
+
* @typeParam TState - Reactive state object shape.
|
|
27
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
28
|
+
* @param getSnapshot - Optional custom dependency reader.
|
|
29
|
+
* @returns The created reactive state object, proxied for Vue rendering.
|
|
30
|
+
*/
|
|
31
|
+
function useReactiveRender(createState, getSnapshot) {
|
|
32
|
+
const state = createState();
|
|
33
|
+
const stateKeys = Object.keys(state);
|
|
34
|
+
const renderTick = (0, vue.shallowRef)(0);
|
|
35
|
+
const readSnapshot = (target) => {
|
|
36
|
+
if (getSnapshot) return getSnapshot(target);
|
|
37
|
+
return stateKeys.map((key) => target[key]);
|
|
38
|
+
};
|
|
39
|
+
(0, _pastweb_tools_reactivity.effect)(() => {
|
|
40
|
+
renderTick.value += 1;
|
|
41
|
+
}, () => readSnapshot(state));
|
|
42
|
+
return new Proxy(state, {
|
|
43
|
+
get(target, key, receiver) {
|
|
44
|
+
renderTick.value;
|
|
45
|
+
return Reflect.get(target, key, receiver);
|
|
46
|
+
},
|
|
47
|
+
set(target, key, value, receiver) {
|
|
48
|
+
return Reflect.set(target, key, value, receiver);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.readReactiveFields = readReactiveFields;
|
|
54
|
+
exports.useReactiveRender = useReactiveRender;
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=useReactiveRender.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReactiveRender.cjs","names":[],"sources":["../../../../src/api/hooks/utils/useReactiveRender.ts"],"sourcesContent":["import { shallowRef } from 'vue';\nimport { effect } from '@pastweb/tools/reactivity';\n\n/**\n * Reads enumerable fields from a tools reactive state object.\n *\n * Accessing each field while a tools `effect` is active registers those fields\n * as dependencies. This is useful when a custom bridge needs a snapshot of the\n * observed reactive values.\n *\n * @param target - Reactive state object returned by a tools API hook.\n * @returns Current values for the enumerable fields.\n */\nexport function readReactiveFields(target: Record<PropertyKey, any>): unknown[] {\n return Object.keys(target).map(key => target[key]);\n}\n\n/**\n * Bridges a tools reactive object into Vue rendering.\n *\n * The core API hooks from `@pastweb/tools` own the query and mutation state.\n * This helper observes their enumerable fields with the tools reactivity system\n * and exposes a proxy that also touches a Vue `shallowRef`, causing Vue\n * components to update when the tools state changes.\n *\n * @typeParam TState - Reactive state object shape.\n * @param createState - Factory that creates the tools reactive state.\n * @param getSnapshot - Optional custom dependency reader.\n * @returns The created reactive state object, proxied for Vue rendering.\n */\nexport function useReactiveRender<TState extends Record<PropertyKey, any>>(\n createState: () => TState,\n getSnapshot?: (state: TState) => unknown[],\n): TState {\n const state = createState();\n const stateKeys = Object.keys(state);\n const renderTick = shallowRef(0);\n const readSnapshot = (target: TState) => {\n if (getSnapshot) return getSnapshot(target);\n\n return stateKeys.map(key => target[key]);\n };\n\n effect(() => {\n renderTick.value += 1;\n }, () => readSnapshot(state));\n\n return new Proxy(state, {\n get(target, key, receiver) {\n renderTick.value;\n\n return Reflect.get(target, key, receiver);\n },\n set(target, key, value, receiver) {\n return Reflect.set(target, key, value, receiver);\n },\n });\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,mBAAmB,QAA6C;CAC9E,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,KAAI,QAAO,OAAO,IAAI;AACnD;;;;;;;;;;;;;;AAeA,SAAgB,kBACd,aACA,aACQ;CACR,MAAM,QAAQ,YAAY;CAC1B,MAAM,YAAY,OAAO,KAAK,KAAK;CACnC,MAAM,cAAA,GAAA,IAAA,WAAA,CAAwB,CAAC;CAC/B,MAAM,gBAAgB,WAAmB;EACvC,IAAI,aAAa,OAAO,YAAY,MAAM;EAE1C,OAAO,UAAU,KAAI,QAAO,OAAO,IAAI;CACzC;CAEA,CAAA,GAAA,0BAAA,OAAA,OAAa;EACX,WAAW,SAAS;CACtB,SAAS,aAAa,KAAK,CAAC;CAE5B,OAAO,IAAI,MAAM,OAAO;EACtB,IAAI,QAAQ,KAAK,UAAU;GACzB,WAAW;GAEX,OAAO,QAAQ,IAAI,QAAQ,KAAK,QAAQ;EAC1C;EACA,IAAI,QAAQ,KAAK,OAAO,UAAU;GAChC,OAAO,QAAQ,IAAI,QAAQ,KAAK,OAAO,QAAQ;EACjD;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/api/hooks/utils/useReactiveRender.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads enumerable fields from a tools reactive state object.
|
|
4
|
+
*
|
|
5
|
+
* Accessing each field while a tools `effect` is active registers those fields
|
|
6
|
+
* as dependencies. This is useful when a custom bridge needs a snapshot of the
|
|
7
|
+
* observed reactive values.
|
|
8
|
+
*
|
|
9
|
+
* @param target - Reactive state object returned by a tools API hook.
|
|
10
|
+
* @returns Current values for the enumerable fields.
|
|
11
|
+
*/
|
|
12
|
+
declare function readReactiveFields(target: Record<PropertyKey, any>): unknown[];
|
|
13
|
+
/**
|
|
14
|
+
* Bridges a tools reactive object into Vue rendering.
|
|
15
|
+
*
|
|
16
|
+
* The core API hooks from `@pastweb/tools` own the query and mutation state.
|
|
17
|
+
* This helper observes their enumerable fields with the tools reactivity system
|
|
18
|
+
* and exposes a proxy that also touches a Vue `shallowRef`, causing Vue
|
|
19
|
+
* components to update when the tools state changes.
|
|
20
|
+
*
|
|
21
|
+
* @typeParam TState - Reactive state object shape.
|
|
22
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
23
|
+
* @param getSnapshot - Optional custom dependency reader.
|
|
24
|
+
* @returns The created reactive state object, proxied for Vue rendering.
|
|
25
|
+
*/
|
|
26
|
+
declare function useReactiveRender<TState extends Record<PropertyKey, any>>(createState: () => TState, getSnapshot?: (state: TState) => unknown[]): TState;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { readReactiveFields, useReactiveRender };
|
|
29
|
+
//# sourceMappingURL=useReactiveRender.d.cts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/api/hooks/utils/useReactiveRender.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads enumerable fields from a tools reactive state object.
|
|
4
|
+
*
|
|
5
|
+
* Accessing each field while a tools `effect` is active registers those fields
|
|
6
|
+
* as dependencies. This is useful when a custom bridge needs a snapshot of the
|
|
7
|
+
* observed reactive values.
|
|
8
|
+
*
|
|
9
|
+
* @param target - Reactive state object returned by a tools API hook.
|
|
10
|
+
* @returns Current values for the enumerable fields.
|
|
11
|
+
*/
|
|
12
|
+
declare function readReactiveFields(target: Record<PropertyKey, any>): unknown[];
|
|
13
|
+
/**
|
|
14
|
+
* Bridges a tools reactive object into Vue rendering.
|
|
15
|
+
*
|
|
16
|
+
* The core API hooks from `@pastweb/tools` own the query and mutation state.
|
|
17
|
+
* This helper observes their enumerable fields with the tools reactivity system
|
|
18
|
+
* and exposes a proxy that also touches a Vue `shallowRef`, causing Vue
|
|
19
|
+
* components to update when the tools state changes.
|
|
20
|
+
*
|
|
21
|
+
* @typeParam TState - Reactive state object shape.
|
|
22
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
23
|
+
* @param getSnapshot - Optional custom dependency reader.
|
|
24
|
+
* @returns The created reactive state object, proxied for Vue rendering.
|
|
25
|
+
*/
|
|
26
|
+
declare function useReactiveRender<TState extends Record<PropertyKey, any>>(createState: () => TState, getSnapshot?: (state: TState) => unknown[]): TState;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { readReactiveFields, useReactiveRender };
|
|
29
|
+
//# sourceMappingURL=useReactiveRender.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { shallowRef } from "vue";
|
|
2
|
+
import { effect } from "@pastweb/tools/reactivity";
|
|
3
|
+
//#region src/api/hooks/utils/useReactiveRender.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads enumerable fields from a tools reactive state object.
|
|
6
|
+
*
|
|
7
|
+
* Accessing each field while a tools `effect` is active registers those fields
|
|
8
|
+
* as dependencies. This is useful when a custom bridge needs a snapshot of the
|
|
9
|
+
* observed reactive values.
|
|
10
|
+
*
|
|
11
|
+
* @param target - Reactive state object returned by a tools API hook.
|
|
12
|
+
* @returns Current values for the enumerable fields.
|
|
13
|
+
*/
|
|
14
|
+
function readReactiveFields(target) {
|
|
15
|
+
return Object.keys(target).map((key) => target[key]);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Bridges a tools reactive object into Vue rendering.
|
|
19
|
+
*
|
|
20
|
+
* The core API hooks from `@pastweb/tools` own the query and mutation state.
|
|
21
|
+
* This helper observes their enumerable fields with the tools reactivity system
|
|
22
|
+
* and exposes a proxy that also touches a Vue `shallowRef`, causing Vue
|
|
23
|
+
* components to update when the tools state changes.
|
|
24
|
+
*
|
|
25
|
+
* @typeParam TState - Reactive state object shape.
|
|
26
|
+
* @param createState - Factory that creates the tools reactive state.
|
|
27
|
+
* @param getSnapshot - Optional custom dependency reader.
|
|
28
|
+
* @returns The created reactive state object, proxied for Vue rendering.
|
|
29
|
+
*/
|
|
30
|
+
function useReactiveRender(createState, getSnapshot) {
|
|
31
|
+
const state = createState();
|
|
32
|
+
const stateKeys = Object.keys(state);
|
|
33
|
+
const renderTick = shallowRef(0);
|
|
34
|
+
const readSnapshot = (target) => {
|
|
35
|
+
if (getSnapshot) return getSnapshot(target);
|
|
36
|
+
return stateKeys.map((key) => target[key]);
|
|
37
|
+
};
|
|
38
|
+
effect(() => {
|
|
39
|
+
renderTick.value += 1;
|
|
40
|
+
}, () => readSnapshot(state));
|
|
41
|
+
return new Proxy(state, {
|
|
42
|
+
get(target, key, receiver) {
|
|
43
|
+
renderTick.value;
|
|
44
|
+
return Reflect.get(target, key, receiver);
|
|
45
|
+
},
|
|
46
|
+
set(target, key, value, receiver) {
|
|
47
|
+
return Reflect.set(target, key, value, receiver);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { readReactiveFields, useReactiveRender };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=useReactiveRender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReactiveRender.js","names":[],"sources":["../../../../src/api/hooks/utils/useReactiveRender.ts"],"sourcesContent":["import { shallowRef } from 'vue';\nimport { effect } from '@pastweb/tools/reactivity';\n\n/**\n * Reads enumerable fields from a tools reactive state object.\n *\n * Accessing each field while a tools `effect` is active registers those fields\n * as dependencies. This is useful when a custom bridge needs a snapshot of the\n * observed reactive values.\n *\n * @param target - Reactive state object returned by a tools API hook.\n * @returns Current values for the enumerable fields.\n */\nexport function readReactiveFields(target: Record<PropertyKey, any>): unknown[] {\n return Object.keys(target).map(key => target[key]);\n}\n\n/**\n * Bridges a tools reactive object into Vue rendering.\n *\n * The core API hooks from `@pastweb/tools` own the query and mutation state.\n * This helper observes their enumerable fields with the tools reactivity system\n * and exposes a proxy that also touches a Vue `shallowRef`, causing Vue\n * components to update when the tools state changes.\n *\n * @typeParam TState - Reactive state object shape.\n * @param createState - Factory that creates the tools reactive state.\n * @param getSnapshot - Optional custom dependency reader.\n * @returns The created reactive state object, proxied for Vue rendering.\n */\nexport function useReactiveRender<TState extends Record<PropertyKey, any>>(\n createState: () => TState,\n getSnapshot?: (state: TState) => unknown[],\n): TState {\n const state = createState();\n const stateKeys = Object.keys(state);\n const renderTick = shallowRef(0);\n const readSnapshot = (target: TState) => {\n if (getSnapshot) return getSnapshot(target);\n\n return stateKeys.map(key => target[key]);\n };\n\n effect(() => {\n renderTick.value += 1;\n }, () => readSnapshot(state));\n\n return new Proxy(state, {\n get(target, key, receiver) {\n renderTick.value;\n\n return Reflect.get(target, key, receiver);\n },\n set(target, key, value, receiver) {\n return Reflect.set(target, key, value, receiver);\n },\n });\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,SAAgB,mBAAmB,QAA6C;CAC9E,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,KAAI,QAAO,OAAO,IAAI;AACnD;;;;;;;;;;;;;;AAeA,SAAgB,kBACd,aACA,aACQ;CACR,MAAM,QAAQ,YAAY;CAC1B,MAAM,YAAY,OAAO,KAAK,KAAK;CACnC,MAAM,aAAa,WAAW,CAAC;CAC/B,MAAM,gBAAgB,WAAmB;EACvC,IAAI,aAAa,OAAO,YAAY,MAAM;EAE1C,OAAO,UAAU,KAAI,QAAO,OAAO,IAAI;CACzC;CAEA,aAAa;EACX,WAAW,SAAS;CACtB,SAAS,aAAa,KAAK,CAAC;CAE5B,OAAO,IAAI,MAAM,OAAO;EACtB,IAAI,QAAQ,KAAK,UAAU;GACzB,WAAW;GAEX,OAAO,QAAQ,IAAI,QAAQ,KAAK,QAAQ;EAC1C;EACA,IAAI,QAAQ,KAAK,OAAO,UAAU;GAChC,OAAO,QAAQ,IAAI,QAAQ,KAAK,OAAO,QAAQ;EACjD;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_installApiCache_installApiCache = require("./installApiCache/installApiCache.cjs");
|
|
3
|
+
require("./installApiCache/index.cjs");
|
|
4
|
+
const require_api_hooks_reuseQuery_reuseQuery = require("./hooks/reuseQuery/reuseQuery.cjs");
|
|
5
|
+
const require_api_hooks_useInfiniteQuery_useInfiniteQuery = require("./hooks/useInfiniteQuery/useInfiniteQuery.cjs");
|
|
6
|
+
const require_api_hooks_useApiQueryCache_useApiQueryCache = require("./hooks/useApiQueryCache/useApiQueryCache.cjs");
|
|
7
|
+
const require_api_hooks_useMutation_useMutation = require("./hooks/useMutation/useMutation.cjs");
|
|
8
|
+
const require_api_hooks_useQueries_useQueries = require("./hooks/useQueries/useQueries.cjs");
|
|
9
|
+
const require_api_hooks_useQuery_useQuery = require("./hooks/useQuery/useQuery.cjs");
|
|
10
|
+
require("./hooks/index.cjs");
|
|
11
|
+
exports.installApiCache = require_api_installApiCache_installApiCache.installApiCache;
|
|
12
|
+
exports.reuseMutation = require_api_hooks_reuseQuery_reuseQuery.reuseMutation;
|
|
13
|
+
exports.reuseQuery = require_api_hooks_reuseQuery_reuseQuery.reuseQuery;
|
|
14
|
+
exports.useApiQueryCache = require_api_hooks_useApiQueryCache_useApiQueryCache.useApiQueryCache;
|
|
15
|
+
exports.useInfiniteQuery = require_api_hooks_useInfiniteQuery_useInfiniteQuery.useInfiniteQuery;
|
|
16
|
+
exports.useMutation = require_api_hooks_useMutation_useMutation.useMutation;
|
|
17
|
+
exports.useQueries = require_api_hooks_useQueries_useQueries.useQueries;
|
|
18
|
+
exports.useQuery = require_api_hooks_useQuery_useQuery.useQuery;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useInfiniteQuery } from "./hooks/useInfiniteQuery/useInfiniteQuery.cjs";
|
|
2
|
+
import { InfiniteQueryConfig, InfiniteQueryInfo, InfiniteQueryInitialData } from "./hooks/useInfiniteQuery/index.cjs";
|
|
3
|
+
import { useApiQueryCache } from "./hooks/useApiQueryCache/useApiQueryCache.cjs";
|
|
4
|
+
import { useMutation } from "./hooks/useMutation/useMutation.cjs";
|
|
5
|
+
import { MutationConfig, MutationInfo } from "./hooks/useMutation/index.cjs";
|
|
6
|
+
import { useQueries } from "./hooks/useQueries/useQueries.cjs";
|
|
7
|
+
import { QueriesData, QueriesInfo, QueryDataFromConfig, UseQueriesConfig, UseQueriesInfo, UseQueriesInput } from "./hooks/useQueries/index.cjs";
|
|
8
|
+
import { useQuery } from "./hooks/useQuery/useQuery.cjs";
|
|
9
|
+
import { QueryConfig, QueryFetchStatus, QueryInfo, QueryStatus } from "./hooks/useQuery/index.cjs";
|
|
10
|
+
import { reuseMutation, reuseQuery } from "./hooks/reuseQuery/reuseQuery.cjs";
|
|
11
|
+
import { RetryDelayOption, RetryOption } from "./hooks/index.cjs";
|
|
12
|
+
import { ApiCacheOptions, ApiCachePlugin } from "./installApiCache/types.cjs";
|
|
13
|
+
import { installApiCache } from "./installApiCache/installApiCache.cjs";
|
|
14
|
+
import { ApiQuerySnapshot } from "./types.cjs";
|
|
15
|
+
export { type ApiCacheOptions, type ApiCachePlugin, type ApiQuerySnapshot, type InfiniteQueryConfig, type InfiniteQueryInfo, type InfiniteQueryInitialData, type MutationConfig, type MutationInfo, type QueriesData, type QueriesInfo, type QueryConfig, type QueryDataFromConfig, type QueryFetchStatus, type QueryInfo, type QueryStatus, type RetryDelayOption, type RetryOption, type UseQueriesConfig, type UseQueriesInfo, type UseQueriesInput, installApiCache, reuseMutation, reuseQuery, useApiQueryCache, useInfiniteQuery, useMutation, useQueries, useQuery };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useInfiniteQuery } from "./hooks/useInfiniteQuery/useInfiniteQuery.js";
|
|
2
|
+
import { InfiniteQueryConfig, InfiniteQueryInfo, InfiniteQueryInitialData } from "./hooks/useInfiniteQuery/index.js";
|
|
3
|
+
import { useApiQueryCache } from "./hooks/useApiQueryCache/useApiQueryCache.js";
|
|
4
|
+
import { useMutation } from "./hooks/useMutation/useMutation.js";
|
|
5
|
+
import { MutationConfig, MutationInfo } from "./hooks/useMutation/index.js";
|
|
6
|
+
import { useQueries } from "./hooks/useQueries/useQueries.js";
|
|
7
|
+
import { QueriesData, QueriesInfo, QueryDataFromConfig, UseQueriesConfig, UseQueriesInfo, UseQueriesInput } from "./hooks/useQueries/index.js";
|
|
8
|
+
import { useQuery } from "./hooks/useQuery/useQuery.js";
|
|
9
|
+
import { QueryConfig, QueryFetchStatus, QueryInfo, QueryStatus } from "./hooks/useQuery/index.js";
|
|
10
|
+
import { reuseMutation, reuseQuery } from "./hooks/reuseQuery/reuseQuery.js";
|
|
11
|
+
import { RetryDelayOption, RetryOption } from "./hooks/index.js";
|
|
12
|
+
import { ApiCacheOptions, ApiCachePlugin } from "./installApiCache/types.js";
|
|
13
|
+
import { installApiCache } from "./installApiCache/installApiCache.js";
|
|
14
|
+
import { ApiQuerySnapshot } from "./types.js";
|
|
15
|
+
export { type ApiCacheOptions, type ApiCachePlugin, type ApiQuerySnapshot, type InfiniteQueryConfig, type InfiniteQueryInfo, type InfiniteQueryInitialData, type MutationConfig, type MutationInfo, type QueriesData, type QueriesInfo, type QueryConfig, type QueryDataFromConfig, type QueryFetchStatus, type QueryInfo, type QueryStatus, type RetryDelayOption, type RetryOption, type UseQueriesConfig, type UseQueriesInfo, type UseQueriesInput, installApiCache, reuseMutation, reuseQuery, useApiQueryCache, useInfiniteQuery, useMutation, useQueries, useQuery };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { installApiCache } from "./installApiCache/installApiCache.js";
|
|
2
|
+
import "./installApiCache/index.js";
|
|
3
|
+
import { reuseMutation, reuseQuery } from "./hooks/reuseQuery/reuseQuery.js";
|
|
4
|
+
import { useInfiniteQuery } from "./hooks/useInfiniteQuery/useInfiniteQuery.js";
|
|
5
|
+
import { useApiQueryCache } from "./hooks/useApiQueryCache/useApiQueryCache.js";
|
|
6
|
+
import { useMutation } from "./hooks/useMutation/useMutation.js";
|
|
7
|
+
import { useQueries } from "./hooks/useQueries/useQueries.js";
|
|
8
|
+
import { useQuery } from "./hooks/useQuery/useQuery.js";
|
|
9
|
+
import "./hooks/index.js";
|
|
10
|
+
export { installApiCache, reuseMutation, reuseQuery, useApiQueryCache, useInfiniteQuery, useMutation, useQueries, useQuery };
|