@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
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/setContext/setContext.ts
|
|
4
|
+
/**
|
|
5
|
+
* Provides a value to descendants through Vue dependency injection.
|
|
6
|
+
*
|
|
7
|
+
* Use this helper instead of importing `provide` directly inside package
|
|
8
|
+
* composables so context writes stay consistent across the Vue integration.
|
|
9
|
+
* It must be called during component setup, or from a composable that runs
|
|
10
|
+
* during setup.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Provided value type.
|
|
13
|
+
* @param key - String key used by descendants with {@link getContext}.
|
|
14
|
+
* @param value - Value to make available to descendant components.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { setContext } from '@pastweb/vue';
|
|
19
|
+
*
|
|
20
|
+
* setContext('session', { userId: 'user-1' });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function setContext(key, value) {
|
|
24
|
+
(0, vue.provide)(key, value);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.setContext = setContext;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=setContext.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setContext.cjs","names":[],"sources":["../../src/setContext/setContext.ts"],"sourcesContent":["import { provide } from 'vue';\n\n/**\n * Provides a value to descendants through Vue dependency injection.\n *\n * Use this helper instead of importing `provide` directly inside package\n * composables so context writes stay consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Provided value type.\n * @param key - String key used by descendants with {@link getContext}.\n * @param value - Value to make available to descendant components.\n *\n * @example\n * ```ts\n * import { setContext } from '@pastweb/vue';\n *\n * setContext('session', { userId: 'user-1' });\n * ```\n */\nexport function setContext<T = undefined>(key: string, value: T): void {\n provide<T>(key, value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAA0B,KAAa,OAAgB;CACrE,CAAA,GAAA,IAAA,QAAA,CAAW,KAAK,KAAK;AACvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/setContext/setContext.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Provides a value to descendants through Vue dependency injection.
|
|
4
|
+
*
|
|
5
|
+
* Use this helper instead of importing `provide` directly inside package
|
|
6
|
+
* composables so context writes stay consistent across the Vue integration.
|
|
7
|
+
* It must be called during component setup, or from a composable that runs
|
|
8
|
+
* during setup.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam T - Provided value type.
|
|
11
|
+
* @param key - String key used by descendants with {@link getContext}.
|
|
12
|
+
* @param value - Value to make available to descendant components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { setContext } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* setContext('session', { userId: 'user-1' });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function setContext<T = undefined>(key: string, value: T): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { setContext };
|
|
24
|
+
//# sourceMappingURL=setContext.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/setContext/setContext.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Provides a value to descendants through Vue dependency injection.
|
|
4
|
+
*
|
|
5
|
+
* Use this helper instead of importing `provide` directly inside package
|
|
6
|
+
* composables so context writes stay consistent across the Vue integration.
|
|
7
|
+
* It must be called during component setup, or from a composable that runs
|
|
8
|
+
* during setup.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam T - Provided value type.
|
|
11
|
+
* @param key - String key used by descendants with {@link getContext}.
|
|
12
|
+
* @param value - Value to make available to descendant components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { setContext } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* setContext('session', { userId: 'user-1' });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function setContext<T = undefined>(key: string, value: T): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { setContext };
|
|
24
|
+
//# sourceMappingURL=setContext.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { provide } from "vue";
|
|
2
|
+
//#region src/setContext/setContext.ts
|
|
3
|
+
/**
|
|
4
|
+
* Provides a value to descendants through Vue dependency injection.
|
|
5
|
+
*
|
|
6
|
+
* Use this helper instead of importing `provide` directly inside package
|
|
7
|
+
* composables so context writes stay consistent across the Vue integration.
|
|
8
|
+
* It must be called during component setup, or from a composable that runs
|
|
9
|
+
* during setup.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Provided value type.
|
|
12
|
+
* @param key - String key used by descendants with {@link getContext}.
|
|
13
|
+
* @param value - Value to make available to descendant components.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { setContext } from '@pastweb/vue';
|
|
18
|
+
*
|
|
19
|
+
* setContext('session', { userId: 'user-1' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function setContext(key, value) {
|
|
23
|
+
provide(key, value);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { setContext };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=setContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setContext.js","names":[],"sources":["../../src/setContext/setContext.ts"],"sourcesContent":["import { provide } from 'vue';\n\n/**\n * Provides a value to descendants through Vue dependency injection.\n *\n * Use this helper instead of importing `provide` directly inside package\n * composables so context writes stay consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Provided value type.\n * @param key - String key used by descendants with {@link getContext}.\n * @param value - Value to make available to descendant components.\n *\n * @example\n * ```ts\n * import { setContext } from '@pastweb/vue';\n *\n * setContext('session', { userId: 'user-1' });\n * ```\n */\nexport function setContext<T = undefined>(key: string, value: T): void {\n provide<T>(key, value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAA0B,KAAa,OAAgB;CACrE,QAAW,KAAK,KAAK;AACvB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/useBeforeMount/useBeforeMount.ts
|
|
4
|
+
/**
|
|
5
|
+
* Registers a callback with Vue's `onBeforeMount` lifecycle hook.
|
|
6
|
+
*
|
|
7
|
+
* Use it for setup that must run after `setup()` has finished but before the
|
|
8
|
+
* component is mounted into the DOM. Async callbacks are accepted for parity
|
|
9
|
+
* with the package hook API, but Vue does not await the returned promise before
|
|
10
|
+
* continuing the mount.
|
|
11
|
+
*
|
|
12
|
+
* @param fn - Callback invoked once before the component mounts.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { useBeforeMount } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* useBeforeMount(() => {
|
|
19
|
+
* registry.register('profile-card');
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useBeforeMount(fn) {
|
|
24
|
+
(0, vue.onBeforeMount)(fn);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.useBeforeMount = useBeforeMount;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=useBeforeMount.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBeforeMount.cjs","names":[],"sources":["../../src/useBeforeMount/useBeforeMount.ts"],"sourcesContent":["import { onBeforeMount } from 'vue';\n\n/**\n * Registers a callback with Vue's `onBeforeMount` lifecycle hook.\n *\n * Use it for setup that must run after `setup()` has finished but before the\n * component is mounted into the DOM. Async callbacks are accepted for parity\n * with the package hook API, but Vue does not await the returned promise before\n * continuing the mount.\n *\n * @param fn - Callback invoked once before the component mounts.\n *\n * @example\n * ```ts\n * import { useBeforeMount } from '@pastweb/vue';\n *\n * useBeforeMount(() => {\n * registry.register('profile-card');\n * });\n * ```\n */\nexport function useBeforeMount(fn: () => void | Promise<void>): void {\n onBeforeMount(fn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,eAAe,IAAsC;CACnE,CAAA,GAAA,IAAA,cAAA,CAAc,EAAE;AAClB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/useBeforeMount/useBeforeMount.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registers a callback with Vue's `onBeforeMount` lifecycle hook.
|
|
4
|
+
*
|
|
5
|
+
* Use it for setup that must run after `setup()` has finished but before the
|
|
6
|
+
* component is mounted into the DOM. Async callbacks are accepted for parity
|
|
7
|
+
* with the package hook API, but Vue does not await the returned promise before
|
|
8
|
+
* continuing the mount.
|
|
9
|
+
*
|
|
10
|
+
* @param fn - Callback invoked once before the component mounts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { useBeforeMount } from '@pastweb/vue';
|
|
15
|
+
*
|
|
16
|
+
* useBeforeMount(() => {
|
|
17
|
+
* registry.register('profile-card');
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useBeforeMount(fn: () => void | Promise<void>): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useBeforeMount };
|
|
24
|
+
//# sourceMappingURL=useBeforeMount.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/useBeforeMount/useBeforeMount.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registers a callback with Vue's `onBeforeMount` lifecycle hook.
|
|
4
|
+
*
|
|
5
|
+
* Use it for setup that must run after `setup()` has finished but before the
|
|
6
|
+
* component is mounted into the DOM. Async callbacks are accepted for parity
|
|
7
|
+
* with the package hook API, but Vue does not await the returned promise before
|
|
8
|
+
* continuing the mount.
|
|
9
|
+
*
|
|
10
|
+
* @param fn - Callback invoked once before the component mounts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { useBeforeMount } from '@pastweb/vue';
|
|
15
|
+
*
|
|
16
|
+
* useBeforeMount(() => {
|
|
17
|
+
* registry.register('profile-card');
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useBeforeMount(fn: () => void | Promise<void>): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useBeforeMount };
|
|
24
|
+
//# sourceMappingURL=useBeforeMount.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { onBeforeMount } from "vue";
|
|
2
|
+
//#region src/useBeforeMount/useBeforeMount.ts
|
|
3
|
+
/**
|
|
4
|
+
* Registers a callback with Vue's `onBeforeMount` lifecycle hook.
|
|
5
|
+
*
|
|
6
|
+
* Use it for setup that must run after `setup()` has finished but before the
|
|
7
|
+
* component is mounted into the DOM. Async callbacks are accepted for parity
|
|
8
|
+
* with the package hook API, but Vue does not await the returned promise before
|
|
9
|
+
* continuing the mount.
|
|
10
|
+
*
|
|
11
|
+
* @param fn - Callback invoked once before the component mounts.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { useBeforeMount } from '@pastweb/vue';
|
|
16
|
+
*
|
|
17
|
+
* useBeforeMount(() => {
|
|
18
|
+
* registry.register('profile-card');
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function useBeforeMount(fn) {
|
|
23
|
+
onBeforeMount(fn);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useBeforeMount };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=useBeforeMount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBeforeMount.js","names":[],"sources":["../../src/useBeforeMount/useBeforeMount.ts"],"sourcesContent":["import { onBeforeMount } from 'vue';\n\n/**\n * Registers a callback with Vue's `onBeforeMount` lifecycle hook.\n *\n * Use it for setup that must run after `setup()` has finished but before the\n * component is mounted into the DOM. Async callbacks are accepted for parity\n * with the package hook API, but Vue does not await the returned promise before\n * continuing the mount.\n *\n * @param fn - Callback invoked once before the component mounts.\n *\n * @example\n * ```ts\n * import { useBeforeMount } from '@pastweb/vue';\n *\n * useBeforeMount(() => {\n * registry.register('profile-card');\n * });\n * ```\n */\nexport function useBeforeMount(fn: () => void | Promise<void>): void {\n onBeforeMount(fn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,eAAe,IAAsC;CACnE,cAAc,EAAE;AAClB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/useBeforeUnmount/useBeforeUnmount.ts
|
|
4
|
+
/**
|
|
5
|
+
* Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.
|
|
6
|
+
*
|
|
7
|
+
* Use it for cleanup that should happen while the component instance is still
|
|
8
|
+
* active, immediately before Vue unmounts it. Async callbacks are accepted for
|
|
9
|
+
* parity with the package hook API, but Vue does not await the returned promise
|
|
10
|
+
* before continuing unmount.
|
|
11
|
+
*
|
|
12
|
+
* @param fn - Callback invoked once before the component unmounts.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { useBeforeUnmount } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* useBeforeUnmount(() => {
|
|
19
|
+
* subscription.remove();
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useBeforeUnmount(fn) {
|
|
24
|
+
(0, vue.onBeforeUnmount)(fn);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.useBeforeUnmount = useBeforeUnmount;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=useBeforeUnmount.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBeforeUnmount.cjs","names":[],"sources":["../../src/useBeforeUnmount/useBeforeUnmount.ts"],"sourcesContent":["import { onBeforeUnmount } from 'vue';\n\n/**\n * Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.\n *\n * Use it for cleanup that should happen while the component instance is still\n * active, immediately before Vue unmounts it. Async callbacks are accepted for\n * parity with the package hook API, but Vue does not await the returned promise\n * before continuing unmount.\n *\n * @param fn - Callback invoked once before the component unmounts.\n *\n * @example\n * ```ts\n * import { useBeforeUnmount } from '@pastweb/vue';\n *\n * useBeforeUnmount(() => {\n * subscription.remove();\n * });\n * ```\n */\nexport function useBeforeUnmount(fn: () => void | Promise<void>): void {\n onBeforeUnmount(fn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,iBAAiB,IAAsC;CACrE,CAAA,GAAA,IAAA,gBAAA,CAAgB,EAAE;AACpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/useBeforeUnmount/useBeforeUnmount.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.
|
|
4
|
+
*
|
|
5
|
+
* Use it for cleanup that should happen while the component instance is still
|
|
6
|
+
* active, immediately before Vue unmounts it. Async callbacks are accepted for
|
|
7
|
+
* parity with the package hook API, but Vue does not await the returned promise
|
|
8
|
+
* before continuing unmount.
|
|
9
|
+
*
|
|
10
|
+
* @param fn - Callback invoked once before the component unmounts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { useBeforeUnmount } from '@pastweb/vue';
|
|
15
|
+
*
|
|
16
|
+
* useBeforeUnmount(() => {
|
|
17
|
+
* subscription.remove();
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useBeforeUnmount(fn: () => void | Promise<void>): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useBeforeUnmount };
|
|
24
|
+
//# sourceMappingURL=useBeforeUnmount.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/useBeforeUnmount/useBeforeUnmount.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.
|
|
4
|
+
*
|
|
5
|
+
* Use it for cleanup that should happen while the component instance is still
|
|
6
|
+
* active, immediately before Vue unmounts it. Async callbacks are accepted for
|
|
7
|
+
* parity with the package hook API, but Vue does not await the returned promise
|
|
8
|
+
* before continuing unmount.
|
|
9
|
+
*
|
|
10
|
+
* @param fn - Callback invoked once before the component unmounts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { useBeforeUnmount } from '@pastweb/vue';
|
|
15
|
+
*
|
|
16
|
+
* useBeforeUnmount(() => {
|
|
17
|
+
* subscription.remove();
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function useBeforeUnmount(fn: () => void | Promise<void>): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useBeforeUnmount };
|
|
24
|
+
//# sourceMappingURL=useBeforeUnmount.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { onBeforeUnmount } from "vue";
|
|
2
|
+
//#region src/useBeforeUnmount/useBeforeUnmount.ts
|
|
3
|
+
/**
|
|
4
|
+
* Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.
|
|
5
|
+
*
|
|
6
|
+
* Use it for cleanup that should happen while the component instance is still
|
|
7
|
+
* active, immediately before Vue unmounts it. Async callbacks are accepted for
|
|
8
|
+
* parity with the package hook API, but Vue does not await the returned promise
|
|
9
|
+
* before continuing unmount.
|
|
10
|
+
*
|
|
11
|
+
* @param fn - Callback invoked once before the component unmounts.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { useBeforeUnmount } from '@pastweb/vue';
|
|
16
|
+
*
|
|
17
|
+
* useBeforeUnmount(() => {
|
|
18
|
+
* subscription.remove();
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function useBeforeUnmount(fn) {
|
|
23
|
+
onBeforeUnmount(fn);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useBeforeUnmount };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=useBeforeUnmount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBeforeUnmount.js","names":[],"sources":["../../src/useBeforeUnmount/useBeforeUnmount.ts"],"sourcesContent":["import { onBeforeUnmount } from 'vue';\n\n/**\n * Registers a callback with Vue's `onBeforeUnmount` lifecycle hook.\n *\n * Use it for cleanup that should happen while the component instance is still\n * active, immediately before Vue unmounts it. Async callbacks are accepted for\n * parity with the package hook API, but Vue does not await the returned promise\n * before continuing unmount.\n *\n * @param fn - Callback invoked once before the component unmounts.\n *\n * @example\n * ```ts\n * import { useBeforeUnmount } from '@pastweb/vue';\n *\n * useBeforeUnmount(() => {\n * subscription.remove();\n * });\n * ```\n */\nexport function useBeforeUnmount(fn: () => void | Promise<void>): void {\n onBeforeUnmount(fn);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,iBAAiB,IAAsC;CACrE,gBAAgB,EAAE;AACpB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/useChildren/useChildren.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads the current component's default slot children as Vue VNodes.
|
|
6
|
+
*
|
|
7
|
+
* This helper is intended for render-function utilities that need to inspect or
|
|
8
|
+
* forward default slot content from the active component instance. When no
|
|
9
|
+
* component instance or default slot is available, it returns an empty array.
|
|
10
|
+
*
|
|
11
|
+
* @returns Default slot children for the current component instance.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { h } from 'vue';
|
|
16
|
+
* import { useChildren } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const children = useChildren();
|
|
19
|
+
*
|
|
20
|
+
* return () => h('div', children);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function useChildren() {
|
|
24
|
+
const instance = (0, vue.getCurrentInstance)();
|
|
25
|
+
const children = (0, vue.shallowRef)([]);
|
|
26
|
+
(0, vue.watchEffect)(() => {
|
|
27
|
+
if (!instance?.vnode || !instance?.vnode.children) return;
|
|
28
|
+
children.value = (instance?.vnode.children).default();
|
|
29
|
+
});
|
|
30
|
+
return children.value;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.useChildren = useChildren;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=useChildren.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChildren.cjs","names":[],"sources":["../../src/useChildren/useChildren.ts"],"sourcesContent":["import { getCurrentInstance, watchEffect, shallowRef, type VNode } from 'vue';\n\n/**\n * Reads the current component's default slot children as Vue VNodes.\n *\n * This helper is intended for render-function utilities that need to inspect or\n * forward default slot content from the active component instance. When no\n * component instance or default slot is available, it returns an empty array.\n *\n * @returns Default slot children for the current component instance.\n *\n * @example\n * ```ts\n * import { h } from 'vue';\n * import { useChildren } from '@pastweb/vue';\n *\n * const children = useChildren();\n *\n * return () => h('div', children);\n * ```\n */\nexport function useChildren(): VNode[] {\n const instance = getCurrentInstance();\n const children = shallowRef<VNode[]>([]);\n\n watchEffect(() => {\n if (!instance?.vnode || !instance?.vnode.children) return;\n children.value = (instance?.vnode.children as any).default() as VNode[];\n });\n\n return children.value as unknown as VNode[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,cAAuB;CACrC,MAAM,YAAA,GAAA,IAAA,mBAAA,CAA8B;CACpC,MAAM,YAAA,GAAA,IAAA,WAAA,CAA+B,CAAC,CAAC;CAEvC,CAAA,GAAA,IAAA,YAAA,OAAkB;EAChB,IAAI,CAAC,UAAU,SAAS,CAAC,UAAU,MAAM,UAAU;EACnD,SAAS,SAAS,UAAU,MAAM,SAAA,CAAiB,QAAQ;CAC7D,CAAC;CAED,OAAO,SAAS;AAClB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/useChildren/useChildren.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads the current component's default slot children as Vue VNodes.
|
|
6
|
+
*
|
|
7
|
+
* This helper is intended for render-function utilities that need to inspect or
|
|
8
|
+
* forward default slot content from the active component instance. When no
|
|
9
|
+
* component instance or default slot is available, it returns an empty array.
|
|
10
|
+
*
|
|
11
|
+
* @returns Default slot children for the current component instance.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { h } from 'vue';
|
|
16
|
+
* import { useChildren } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const children = useChildren();
|
|
19
|
+
*
|
|
20
|
+
* return () => h('div', children);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare function useChildren(): VNode[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { useChildren };
|
|
26
|
+
//# sourceMappingURL=useChildren.d.cts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/useChildren/useChildren.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads the current component's default slot children as Vue VNodes.
|
|
6
|
+
*
|
|
7
|
+
* This helper is intended for render-function utilities that need to inspect or
|
|
8
|
+
* forward default slot content from the active component instance. When no
|
|
9
|
+
* component instance or default slot is available, it returns an empty array.
|
|
10
|
+
*
|
|
11
|
+
* @returns Default slot children for the current component instance.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { h } from 'vue';
|
|
16
|
+
* import { useChildren } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const children = useChildren();
|
|
19
|
+
*
|
|
20
|
+
* return () => h('div', children);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare function useChildren(): VNode[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { useChildren };
|
|
26
|
+
//# sourceMappingURL=useChildren.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getCurrentInstance, shallowRef, watchEffect } from "vue";
|
|
2
|
+
//#region src/useChildren/useChildren.ts
|
|
3
|
+
/**
|
|
4
|
+
* Reads the current component's default slot children as Vue VNodes.
|
|
5
|
+
*
|
|
6
|
+
* This helper is intended for render-function utilities that need to inspect or
|
|
7
|
+
* forward default slot content from the active component instance. When no
|
|
8
|
+
* component instance or default slot is available, it returns an empty array.
|
|
9
|
+
*
|
|
10
|
+
* @returns Default slot children for the current component instance.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { h } from 'vue';
|
|
15
|
+
* import { useChildren } from '@pastweb/vue';
|
|
16
|
+
*
|
|
17
|
+
* const children = useChildren();
|
|
18
|
+
*
|
|
19
|
+
* return () => h('div', children);
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function useChildren() {
|
|
23
|
+
const instance = getCurrentInstance();
|
|
24
|
+
const children = shallowRef([]);
|
|
25
|
+
watchEffect(() => {
|
|
26
|
+
if (!instance?.vnode || !instance?.vnode.children) return;
|
|
27
|
+
children.value = (instance?.vnode.children).default();
|
|
28
|
+
});
|
|
29
|
+
return children.value;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { useChildren };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=useChildren.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChildren.js","names":[],"sources":["../../src/useChildren/useChildren.ts"],"sourcesContent":["import { getCurrentInstance, watchEffect, shallowRef, type VNode } from 'vue';\n\n/**\n * Reads the current component's default slot children as Vue VNodes.\n *\n * This helper is intended for render-function utilities that need to inspect or\n * forward default slot content from the active component instance. When no\n * component instance or default slot is available, it returns an empty array.\n *\n * @returns Default slot children for the current component instance.\n *\n * @example\n * ```ts\n * import { h } from 'vue';\n * import { useChildren } from '@pastweb/vue';\n *\n * const children = useChildren();\n *\n * return () => h('div', children);\n * ```\n */\nexport function useChildren(): VNode[] {\n const instance = getCurrentInstance();\n const children = shallowRef<VNode[]>([]);\n\n watchEffect(() => {\n if (!instance?.vnode || !instance?.vnode.children) return;\n children.value = (instance?.vnode.children as any).default() as VNode[];\n });\n\n return children.value as unknown as VNode[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,cAAuB;CACrC,MAAM,WAAW,mBAAmB;CACpC,MAAM,WAAW,WAAoB,CAAC,CAAC;CAEvC,kBAAkB;EAChB,IAAI,CAAC,UAAU,SAAS,CAAC,UAAU,MAAM,UAAU;EACnD,SAAS,SAAS,UAAU,MAAM,SAAA,CAAiB,QAAQ;CAC7D,CAAC;CAED,OAAO,SAAS;AAClB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_useBeforeUnmount_useBeforeUnmount = require("../useBeforeUnmount/useBeforeUnmount.cjs");
|
|
3
|
+
require("../useBeforeUnmount/index.cjs");
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
let _pastweb_tools_update = require("@pastweb/tools/update");
|
|
6
|
+
let _pastweb_tools_createMatchScheme = require("@pastweb/tools/createMatchScheme");
|
|
7
|
+
//#region src/useColorScheme/useColorScheme.ts
|
|
8
|
+
/**
|
|
9
|
+
* Vue composable for reading and updating the current color scheme.
|
|
10
|
+
*
|
|
11
|
+
* The signature mirrors `useColorScheme` from `@pastweb/tools` and the React
|
|
12
|
+
* package: pass options to create an internal `MatchScheme`, or pass a
|
|
13
|
+
* pre-created `matchScheme` as the second argument. The Vue wrapper subscribes
|
|
14
|
+
* to mode/system changes and cleans those listeners up before component
|
|
15
|
+
* unmount.
|
|
16
|
+
*
|
|
17
|
+
* @param options - Options passed to `createMatchScheme` when `matchScheme` is not provided.
|
|
18
|
+
* @param matchScheme - Optional pre-created `MatchScheme` instance.
|
|
19
|
+
* @returns A tuple with the current color scheme info and the mode setter.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { useColorScheme } from '@pastweb/vue';
|
|
24
|
+
*
|
|
25
|
+
* const [scheme, setMode] = useColorScheme({ defaultMode: 'auto' });
|
|
26
|
+
*
|
|
27
|
+
* setMode(scheme.selected === 'dark' ? 'light' : 'dark');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function useColorScheme(options = {}, matchScheme) {
|
|
31
|
+
const scheme = matchScheme ?? (0, _pastweb_tools_createMatchScheme.createMatchScheme)(options);
|
|
32
|
+
const current = (0, vue.shallowReactive)(scheme.getInfo());
|
|
33
|
+
const updateCurrent = () => (0, _pastweb_tools_update.update)(current, scheme.getInfo());
|
|
34
|
+
const onModeChange = scheme.onModeChange(updateCurrent);
|
|
35
|
+
const onSysChange = scheme.onSysSchemeChange(updateCurrent);
|
|
36
|
+
updateCurrent();
|
|
37
|
+
require_useBeforeUnmount_useBeforeUnmount.useBeforeUnmount(() => {
|
|
38
|
+
onModeChange.removeListener();
|
|
39
|
+
onSysChange.removeListener();
|
|
40
|
+
});
|
|
41
|
+
return [current, scheme.setMode];
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.useColorScheme = useColorScheme;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=useColorScheme.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColorScheme.cjs","names":[],"sources":["../../src/useColorScheme/useColorScheme.ts"],"sourcesContent":["import { shallowReactive } from 'vue';\nimport { createMatchScheme } from '@pastweb/tools/createMatchScheme';\nimport { update } from '@pastweb/tools/update';\nimport { useBeforeUnmount } from '../useBeforeUnmount';\nimport type { RemoveListener } from '@pastweb/tools/createEventEmitter/types';\nimport type { MatchScheme, ColorSchemeInfo, SchemeOptions } from '@pastweb/tools/createMatchScheme/types';\n\n/**\n * Vue composable for reading and updating the current color scheme.\n *\n * The signature mirrors `useColorScheme` from `@pastweb/tools` and the React\n * package: pass options to create an internal `MatchScheme`, or pass a\n * pre-created `matchScheme` as the second argument. The Vue wrapper subscribes\n * to mode/system changes and cleans those listeners up before component\n * unmount.\n *\n * @param options - Options passed to `createMatchScheme` when `matchScheme` is not provided.\n * @param matchScheme - Optional pre-created `MatchScheme` instance.\n * @returns A tuple with the current color scheme info and the mode setter.\n *\n * @example\n * ```ts\n * import { useColorScheme } from '@pastweb/vue';\n *\n * const [scheme, setMode] = useColorScheme({ defaultMode: 'auto' });\n *\n * setMode(scheme.selected === 'dark' ? 'light' : 'dark');\n * ```\n */\nexport function useColorScheme(options: SchemeOptions = {}, matchScheme?: MatchScheme): [ColorSchemeInfo, (mode: string) => void] {\n const scheme = matchScheme ?? createMatchScheme(options);\n const current = shallowReactive(scheme.getInfo()) as ColorSchemeInfo;\n\n const updateCurrent = () => update(current, scheme.getInfo());\n\n const onModeChange: RemoveListener = scheme.onModeChange(updateCurrent);\n const onSysChange: RemoveListener = scheme.onSysSchemeChange(updateCurrent);\n\n updateCurrent();\n\n useBeforeUnmount(() => {\n onModeChange.removeListener();\n onSysChange.removeListener();\n });\n\n return [current, scheme.setMode];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,eAAe,UAAyB,CAAC,GAAG,aAAsE;CAChI,MAAM,SAAS,gBAAA,GAAA,iCAAA,kBAAA,CAAiC,OAAO;CACvD,MAAM,WAAA,GAAA,IAAA,gBAAA,CAA0B,OAAO,QAAQ,CAAC;CAEhD,MAAM,uBAAA,GAAA,sBAAA,OAAA,CAA6B,SAAS,OAAO,QAAQ,CAAC;CAE5D,MAAM,eAA+B,OAAO,aAAa,aAAa;CACtE,MAAM,cAA8B,OAAO,kBAAkB,aAAa;CAE1E,cAAc;CAEd,0CAAA,uBAAuB;EACrB,aAAa,eAAe;EAC5B,YAAY,eAAe;CAC7B,CAAC;CAED,OAAO,CAAC,SAAS,OAAO,OAAO;AACjC"}
|