@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 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../src/EntryAdapter/utils.ts"],"sourcesContent":["import { isEntry } from '@pastweb/tools/createEntry';\nimport { registerAsyncTask } from '@pastweb/tools/ssrUtils/asyncTasks';\nimport { getCurrentSSRTracker } from '@pastweb/tools/ssrUtils/ssrTracker/ssrTracker';\nimport { preloadedSSREntries } from './constants';\nimport type { EntryAdapterProps, GenericEntry } from './types';\n\n/**\n * Returns a preloaded server entry or registers its async loader for a later\n * SSR pass.\n *\n * On the first collection render, the loader is queued through\n * `registerAsyncTask` and the function returns `undefined`. After\n * `resolveAsyncTasks` runs, subsequent render passes receive the resolved\n * server entry from {@link preloadedSSREntries}.\n *\n * @param loader - Optional async server-entry loader.\n * @returns The resolved server entry when available.\n */\nexport function getServerEntry(loader?: EntryAdapterProps['ssrEntry']): GenericEntry | undefined {\n if (!loader) return undefined;\n\n const preloaded = preloadedSSREntries.get(loader);\n if (preloaded) return preloaded;\n\n registerAsyncTask(async () => {\n const entry = await loader();\n preloadedSSREntries.set(loader, entry);\n });\n\n return undefined;\n}\n\n/**\n * Renders the server side of {@link import('./EntryAdapter.vue').default}.\n *\n * The function preserves the client/server bundle split by registering the\n * async server entry loader during the collection pass, then rendering the\n * loaded server entry on later SSR passes. The returned string is the SSR\n * placeholder id that will be replaced by `getComposedSSR`.\n *\n * When no async loader is provided, the regular `entry` is used on the server.\n * This supports frameworks that share one entry renderer across client and SSR.\n *\n * @param entry - Entry used as the server renderer when no `ssrEntry` loader is provided.\n * @param loader - Optional async server-entry loader.\n * @param props - Props merged into the active entry `initData`.\n * @returns SSR placeholder id, or `null` while waiting for the async server entry.\n */\nexport function renderServerEntryAdapter(\n entry: GenericEntry,\n loader: EntryAdapterProps['ssrEntry'],\n props: Record<string, any>,\n): string | null {\n if (!isEntry(entry)) {\n throw Error('The entry must be generate via \"createEntry\" function.');\n }\n\n entry.mergeOptions({ initData: { ...props } });\n\n const serverEntry = getServerEntry(loader);\n if (loader && !serverEntry) return null;\n\n const activeEntry = serverEntry || entry;\n\n if (!isEntry(activeEntry)) {\n throw Error('The ssrEntry must be generate via \"createEntry\" function.');\n }\n\n activeEntry.mergeOptions({ initData: { ...props } });\n\n const tracker = getCurrentSSRTracker();\n const isStatic = tracker?.isStatic ?? false;\n const ssrId = activeEntry.ssrId as string;\n const mounted = activeEntry.mount(isStatic);\n\n if (typeof mounted === 'string' && mounted !== ssrId) {\n activeEntry.memoSSR(async () => mounted);\n }\n\n return ssrId;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,SAAgB,eAAe,QAAkE;CAC/F,IAAI,CAAC,QAAQ,OAAO,KAAA;CAEpB,MAAM,YAAY,oBAAoB,IAAI,MAAM;CAChD,IAAI,WAAW,OAAO;CAEtB,kBAAkB,YAAY;EAC5B,MAAM,QAAQ,MAAM,OAAO;EAC3B,oBAAoB,IAAI,QAAQ,KAAK;CACvC,CAAC;AAGH;;;;;;;;;;;;;;;;;AAkBA,SAAgB,yBACd,OACA,QACA,OACe;CACf,IAAI,CAAC,QAAQ,KAAK,GAChB,MAAM,MAAM,0DAAwD;CAGtE,MAAM,aAAa,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAAC;CAE7C,MAAM,cAAc,eAAe,MAAM;CACzC,IAAI,UAAU,CAAC,aAAa,OAAO;CAEnC,MAAM,cAAc,eAAe;CAEnC,IAAI,CAAC,QAAQ,WAAW,GACtB,MAAM,MAAM,6DAA2D;CAGzE,YAAY,aAAa,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAAC;CAGnD,MAAM,WADU,qBACO,CAAC,EAAE,YAAY;CACtC,MAAM,QAAQ,YAAY;CAC1B,MAAM,UAAU,YAAY,MAAM,QAAQ;CAE1C,IAAI,OAAO,YAAY,YAAY,YAAY,OAC7C,YAAY,QAAQ,YAAY,OAAO;CAGzC,OAAO;AACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Island.cjs","names":[],"sources":["../../src/Island/Island.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, onMounted, onUnmounted } from 'vue';\n import { setContext } from '../setContext';\n import { withDefaultProps } from '../withDefaultProps';\n import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from './constants';\n import type { IslandProps, IslandDefaultProps } from './types';\n\n const props = defineProps<IslandProps>();\n const p = withDefaultProps<IslandDefaultProps>(props, DEFAULT_PROPS);\n\n const emit = defineEmits<{(e: 'hydrated'): void}>();\n\n const islandRef = ref<HTMLElement | null>(null);\n const isHydrated = ref(false);\n let cleanup: (() => void) | null = null;\n\n setContext(ISLAND_CONTEXT_KEY, true);\n\n /**\n * Performs the actual hydration\n */\n function hydrate(): void {\n if (isHydrated.value) return;\n\n isHydrated.value = true;\n emit('hydrated');\n // In Vue we usually don't need explicit hydrateRoot like React.\n // Vue automatically handles hydration when the component is mounted\n // and the DOM matches what was rendered on server.\n // If you use teleport / suspense / etc., you may need extra logic.\n }\n\n /**\n * Cleanup function factory\n */\n const registerCleanup = (fn: () => void): void => { cleanup = fn };\n\n /**\n * Strategy: load\n */\n const hydrateImmediately = (): void => hydrate();\n\n /**\n * Strategy: idle\n */\n function hydrateOnIdle(): void {\n if ('requestIdleCallback' in window) {\n const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });\n registerCleanup(() => window.cancelIdleCallback(handle));\n } else {\n // Fallback\n const timeoutId = setTimeout(hydrate, p.idleTimeout);\n registerCleanup(() => clearTimeout(timeoutId));\n }\n }\n\n /**\n * Strategy: visible\n */\n function hydrateWhenVisible(): void {\n if (!islandRef.value) return;\n\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n hydrate();\n observer.disconnect();\n }\n },\n { rootMargin: '200px' }\n );\n\n observer.observe(islandRef.value);\n registerCleanup(() => observer.disconnect());\n }\n\n /**\n * Strategy: media\n */\n function hydrateOnMedia(): void {\n if (!props.media) return;\n\n const mql = window.matchMedia(props.media);\n \n const checkAndHydrate = () => {\n if (mql.matches) {\n hydrate();\n mql.removeEventListener('change', checkAndHydrate);\n }\n }\n\n if (mql.matches) hydrate();\n else {\n mql.addEventListener('change', checkAndHydrate);\n registerCleanup(() => mql.removeEventListener('change', checkAndHydrate));\n }\n }\n\n onMounted(() => {\n if (p.client === 'none') return;\n\n switch (p.client) {\n case 'load':\n hydrateImmediately();\n break;\n case 'idle':\n hydrateOnIdle();\n break;\n case 'visible':\n hydrateWhenVisible();\n break;\n case 'media':\n hydrateOnMedia();\n break;\n }\n });\n\n onUnmounted(() => {\n if (cleanup) cleanup();\n });\n</script>\n\n<template>\n <div\n ref=\"islandRef\"\n :data-island=\"true\"\n :data-client=\"p.client\"\n :data-media=\"p.media || undefined\"\n :data-island-id=\"p.islandId\"\n :style=\"{ display: 'contents' }\"\n >\n <!-- \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n -->\n <slot v-if=\"p.client !== 'none' || !isHydrated\" />\n <slot name=\"fallback\" v-if=\"p.client !== 'none' && !isHydrated\" />\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Island_vue_vue_type_script_setup_true_lang_default from "./Island.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/Island/Island.vue
|
|
3
|
+
var Island_default = Island_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Island_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=Island.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Island.js","names":[],"sources":["../../src/Island/Island.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, onMounted, onUnmounted } from 'vue';\n import { setContext } from '../setContext';\n import { withDefaultProps } from '../withDefaultProps';\n import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from './constants';\n import type { IslandProps, IslandDefaultProps } from './types';\n\n const props = defineProps<IslandProps>();\n const p = withDefaultProps<IslandDefaultProps>(props, DEFAULT_PROPS);\n\n const emit = defineEmits<{(e: 'hydrated'): void}>();\n\n const islandRef = ref<HTMLElement | null>(null);\n const isHydrated = ref(false);\n let cleanup: (() => void) | null = null;\n\n setContext(ISLAND_CONTEXT_KEY, true);\n\n /**\n * Performs the actual hydration\n */\n function hydrate(): void {\n if (isHydrated.value) return;\n\n isHydrated.value = true;\n emit('hydrated');\n // In Vue we usually don't need explicit hydrateRoot like React.\n // Vue automatically handles hydration when the component is mounted\n // and the DOM matches what was rendered on server.\n // If you use teleport / suspense / etc., you may need extra logic.\n }\n\n /**\n * Cleanup function factory\n */\n const registerCleanup = (fn: () => void): void => { cleanup = fn };\n\n /**\n * Strategy: load\n */\n const hydrateImmediately = (): void => hydrate();\n\n /**\n * Strategy: idle\n */\n function hydrateOnIdle(): void {\n if ('requestIdleCallback' in window) {\n const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });\n registerCleanup(() => window.cancelIdleCallback(handle));\n } else {\n // Fallback\n const timeoutId = setTimeout(hydrate, p.idleTimeout);\n registerCleanup(() => clearTimeout(timeoutId));\n }\n }\n\n /**\n * Strategy: visible\n */\n function hydrateWhenVisible(): void {\n if (!islandRef.value) return;\n\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n hydrate();\n observer.disconnect();\n }\n },\n { rootMargin: '200px' }\n );\n\n observer.observe(islandRef.value);\n registerCleanup(() => observer.disconnect());\n }\n\n /**\n * Strategy: media\n */\n function hydrateOnMedia(): void {\n if (!props.media) return;\n\n const mql = window.matchMedia(props.media);\n \n const checkAndHydrate = () => {\n if (mql.matches) {\n hydrate();\n mql.removeEventListener('change', checkAndHydrate);\n }\n }\n\n if (mql.matches) hydrate();\n else {\n mql.addEventListener('change', checkAndHydrate);\n registerCleanup(() => mql.removeEventListener('change', checkAndHydrate));\n }\n }\n\n onMounted(() => {\n if (p.client === 'none') return;\n\n switch (p.client) {\n case 'load':\n hydrateImmediately();\n break;\n case 'idle':\n hydrateOnIdle();\n break;\n case 'visible':\n hydrateWhenVisible();\n break;\n case 'media':\n hydrateOnMedia();\n break;\n }\n });\n\n onUnmounted(() => {\n if (cleanup) cleanup();\n });\n</script>\n\n<template>\n <div\n ref=\"islandRef\"\n :data-island=\"true\"\n :data-client=\"p.client\"\n :data-media=\"p.media || undefined\"\n :data-island-id=\"p.islandId\"\n :style=\"{ display: 'contents' }\"\n >\n <!-- \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n -->\n <slot v-if=\"p.client !== 'none' || !isHydrated\" />\n <slot name=\"fallback\" v-if=\"p.client !== 'none' && !isHydrated\" />\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IslandProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/Island/Island.vue.d.ts
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
fallback?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<IslandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
hydrated: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<IslandProps> & Readonly<{
|
|
13
|
+
onHydrated?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export = _default;
|
|
22
|
+
//# sourceMappingURL=Island.vue.d.cts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IslandProps } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/Island/Island.vue.d.ts
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
fallback?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<IslandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
hydrated: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<IslandProps> & Readonly<{
|
|
13
|
+
onHydrated?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default as default };
|
|
23
|
+
//# sourceMappingURL=Island.vue.d.ts.map
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const require_setContext_setContext = require("../setContext/setContext.cjs");
|
|
2
|
+
require("../setContext/index.cjs");
|
|
3
|
+
const require_withDefaultProps_withDefaultProps = require("../withDefaultProps/withDefaultProps.cjs");
|
|
4
|
+
require("../withDefaultProps/index.cjs");
|
|
5
|
+
const require_Island_constants = require("./constants.cjs");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
let _pastweb_tools_Island = require("@pastweb/tools/Island");
|
|
8
|
+
//#region src/Island/Island.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
const _hoisted_1 = [
|
|
10
|
+
"data-client",
|
|
11
|
+
"data-media",
|
|
12
|
+
"data-island-id"
|
|
13
|
+
];
|
|
14
|
+
var Island_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "Island",
|
|
16
|
+
props: {
|
|
17
|
+
client: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
media: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false
|
|
24
|
+
},
|
|
25
|
+
idleTimeout: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
islandId: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["hydrated"],
|
|
35
|
+
setup(__props, { emit: __emit }) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const p = require_withDefaultProps_withDefaultProps.withDefaultProps(props, require_Island_constants.DEFAULT_PROPS);
|
|
38
|
+
const emit = __emit;
|
|
39
|
+
const islandRef = (0, vue.ref)(null);
|
|
40
|
+
const isHydrated = (0, vue.ref)(false);
|
|
41
|
+
let cleanup = null;
|
|
42
|
+
require_setContext_setContext.setContext(_pastweb_tools_Island.ISLAND_CONTEXT_KEY, true);
|
|
43
|
+
/**
|
|
44
|
+
* Performs the actual hydration
|
|
45
|
+
*/
|
|
46
|
+
function hydrate() {
|
|
47
|
+
if (isHydrated.value) return;
|
|
48
|
+
isHydrated.value = true;
|
|
49
|
+
emit("hydrated");
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Cleanup function factory
|
|
53
|
+
*/
|
|
54
|
+
const registerCleanup = (fn) => {
|
|
55
|
+
cleanup = fn;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Strategy: load
|
|
59
|
+
*/
|
|
60
|
+
const hydrateImmediately = () => hydrate();
|
|
61
|
+
/**
|
|
62
|
+
* Strategy: idle
|
|
63
|
+
*/
|
|
64
|
+
function hydrateOnIdle() {
|
|
65
|
+
if ("requestIdleCallback" in window) {
|
|
66
|
+
const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });
|
|
67
|
+
registerCleanup(() => window.cancelIdleCallback(handle));
|
|
68
|
+
} else {
|
|
69
|
+
const timeoutId = setTimeout(hydrate, p.idleTimeout);
|
|
70
|
+
registerCleanup(() => clearTimeout(timeoutId));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Strategy: visible
|
|
75
|
+
*/
|
|
76
|
+
function hydrateWhenVisible() {
|
|
77
|
+
if (!islandRef.value) return;
|
|
78
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
79
|
+
if (entry.isIntersecting) {
|
|
80
|
+
hydrate();
|
|
81
|
+
observer.disconnect();
|
|
82
|
+
}
|
|
83
|
+
}, { rootMargin: "200px" });
|
|
84
|
+
observer.observe(islandRef.value);
|
|
85
|
+
registerCleanup(() => observer.disconnect());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Strategy: media
|
|
89
|
+
*/
|
|
90
|
+
function hydrateOnMedia() {
|
|
91
|
+
if (!props.media) return;
|
|
92
|
+
const mql = window.matchMedia(props.media);
|
|
93
|
+
const checkAndHydrate = () => {
|
|
94
|
+
if (mql.matches) {
|
|
95
|
+
hydrate();
|
|
96
|
+
mql.removeEventListener("change", checkAndHydrate);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
if (mql.matches) hydrate();
|
|
100
|
+
else {
|
|
101
|
+
mql.addEventListener("change", checkAndHydrate);
|
|
102
|
+
registerCleanup(() => mql.removeEventListener("change", checkAndHydrate));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
(0, vue.onMounted)(() => {
|
|
106
|
+
if (p.client === "none") return;
|
|
107
|
+
switch (p.client) {
|
|
108
|
+
case "load":
|
|
109
|
+
hydrateImmediately();
|
|
110
|
+
break;
|
|
111
|
+
case "idle":
|
|
112
|
+
hydrateOnIdle();
|
|
113
|
+
break;
|
|
114
|
+
case "visible":
|
|
115
|
+
hydrateWhenVisible();
|
|
116
|
+
break;
|
|
117
|
+
case "media":
|
|
118
|
+
hydrateOnMedia();
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
(0, vue.onUnmounted)(() => {
|
|
123
|
+
if (cleanup) cleanup();
|
|
124
|
+
});
|
|
125
|
+
return (_ctx, _cache) => {
|
|
126
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
127
|
+
ref_key: "islandRef",
|
|
128
|
+
ref: islandRef,
|
|
129
|
+
"data-island": true,
|
|
130
|
+
"data-client": (0, vue.unref)(p).client,
|
|
131
|
+
"data-media": (0, vue.unref)(p).media || void 0,
|
|
132
|
+
"data-island-id": (0, vue.unref)(p).islandId,
|
|
133
|
+
style: { display: "contents" }
|
|
134
|
+
}, [
|
|
135
|
+
(0, vue.createCommentVNode)(" \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n "),
|
|
136
|
+
(0, vue.unref)(p).client !== "none" || !isHydrated.value ? (0, vue.renderSlot)(_ctx.$slots, "default", { key: 0 }) : (0, vue.createCommentVNode)("v-if", true),
|
|
137
|
+
(0, vue.unref)(p).client !== "none" && !isHydrated.value ? (0, vue.renderSlot)(_ctx.$slots, "fallback", { key: 1 }) : (0, vue.createCommentVNode)("v-if", true)
|
|
138
|
+
], 8, _hoisted_1);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
//#endregion
|
|
143
|
+
exports.default = Island_vue_vue_type_script_setup_true_lang_default;
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=Island.vue_vue_type_script_setup_true_lang.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Island.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../src/Island/Island.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, onMounted, onUnmounted } from 'vue';\n import { setContext } from '../setContext';\n import { withDefaultProps } from '../withDefaultProps';\n import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from './constants';\n import type { IslandProps, IslandDefaultProps } from './types';\n\n const props = defineProps<IslandProps>();\n const p = withDefaultProps<IslandDefaultProps>(props, DEFAULT_PROPS);\n\n const emit = defineEmits<{(e: 'hydrated'): void}>();\n\n const islandRef = ref<HTMLElement | null>(null);\n const isHydrated = ref(false);\n let cleanup: (() => void) | null = null;\n\n setContext(ISLAND_CONTEXT_KEY, true);\n\n /**\n * Performs the actual hydration\n */\n function hydrate(): void {\n if (isHydrated.value) return;\n\n isHydrated.value = true;\n emit('hydrated');\n // In Vue we usually don't need explicit hydrateRoot like React.\n // Vue automatically handles hydration when the component is mounted\n // and the DOM matches what was rendered on server.\n // If you use teleport / suspense / etc., you may need extra logic.\n }\n\n /**\n * Cleanup function factory\n */\n const registerCleanup = (fn: () => void): void => { cleanup = fn };\n\n /**\n * Strategy: load\n */\n const hydrateImmediately = (): void => hydrate();\n\n /**\n * Strategy: idle\n */\n function hydrateOnIdle(): void {\n if ('requestIdleCallback' in window) {\n const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });\n registerCleanup(() => window.cancelIdleCallback(handle));\n } else {\n // Fallback\n const timeoutId = setTimeout(hydrate, p.idleTimeout);\n registerCleanup(() => clearTimeout(timeoutId));\n }\n }\n\n /**\n * Strategy: visible\n */\n function hydrateWhenVisible(): void {\n if (!islandRef.value) return;\n\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n hydrate();\n observer.disconnect();\n }\n },\n { rootMargin: '200px' }\n );\n\n observer.observe(islandRef.value);\n registerCleanup(() => observer.disconnect());\n }\n\n /**\n * Strategy: media\n */\n function hydrateOnMedia(): void {\n if (!props.media) return;\n\n const mql = window.matchMedia(props.media);\n \n const checkAndHydrate = () => {\n if (mql.matches) {\n hydrate();\n mql.removeEventListener('change', checkAndHydrate);\n }\n }\n\n if (mql.matches) hydrate();\n else {\n mql.addEventListener('change', checkAndHydrate);\n registerCleanup(() => mql.removeEventListener('change', checkAndHydrate));\n }\n }\n\n onMounted(() => {\n if (p.client === 'none') return;\n\n switch (p.client) {\n case 'load':\n hydrateImmediately();\n break;\n case 'idle':\n hydrateOnIdle();\n break;\n case 'visible':\n hydrateWhenVisible();\n break;\n case 'media':\n hydrateOnMedia();\n break;\n }\n });\n\n onUnmounted(() => {\n if (cleanup) cleanup();\n });\n</script>\n\n<template>\n <div\n ref=\"islandRef\"\n :data-island=\"true\"\n :data-client=\"p.client\"\n :data-media=\"p.media || undefined\"\n :data-island-id=\"p.islandId\"\n :style=\"{ display: 'contents' }\"\n >\n <!-- \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n -->\n <slot v-if=\"p.client !== 'none' || !isHydrated\" />\n <slot name=\"fallback\" v-if=\"p.client !== 'none' && !isHydrated\" />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOE,MAAM,QAAQ;EACd,MAAM,IAAI,0CAAA,iBAAqC,OAAO,yBAAA,aAAa;EAEnE,MAAM,OAAO;EAEb,MAAM,aAAA,GAAA,IAAA,IAAA,CAAoC,IAAI;EAC9C,MAAM,cAAA,GAAA,IAAA,IAAA,CAAiB,KAAK;EAC5B,IAAI,UAA+B;EAEnC,8BAAA,WAAW,sBAAA,oBAAoB,IAAI;;;;EAKnC,SAAS,UAAgB;GACvB,IAAI,WAAW,OAAO;GAEtB,WAAW,QAAQ;GACnB,KAAK,UAAU;EAKjB;;;;EAKA,MAAM,mBAAmB,OAAyB;GAAE,UAAU;EAAG;;;;EAKjE,MAAM,2BAAiC,QAAQ;;;;EAK/C,SAAS,gBAAsB;GAC7B,IAAI,yBAAyB,QAAQ;IACnC,MAAM,SAAS,OAAO,oBAAoB,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC;IAC7E,sBAAsB,OAAO,mBAAmB,MAAM,CAAC;GACzD,OAAO;IAEL,MAAM,YAAY,WAAW,SAAS,EAAE,WAAW;IACnD,sBAAsB,aAAa,SAAS,CAAC;GAC/C;EACF;;;;EAKA,SAAS,qBAA2B;GAClC,IAAI,CAAC,UAAU,OAAO;GAEtB,MAAM,WAAW,IAAI,sBAClB,CAAC,WAAW;IACX,IAAI,MAAM,gBAAgB;KACxB,QAAQ;KACR,SAAS,WAAW;IACtB;GACF,GACA,EAAE,YAAY,QAAQ,CACxB;GAEA,SAAS,QAAQ,UAAU,KAAK;GAChC,sBAAsB,SAAS,WAAW,CAAC;EAC7C;;;;EAKA,SAAS,iBAAuB;GAC9B,IAAI,CAAC,MAAM,OAAO;GAElB,MAAM,MAAM,OAAO,WAAW,MAAM,KAAK;GAEzC,MAAM,wBAAwB;IAC5B,IAAI,IAAI,SAAS;KACf,QAAQ;KACR,IAAI,oBAAoB,UAAU,eAAe;IACnD;GACF;GAEA,IAAI,IAAI,SAAS,QAAQ;QACpB;IACH,IAAI,iBAAiB,UAAU,eAAe;IAC9C,sBAAsB,IAAI,oBAAoB,UAAU,eAAe,CAAC;GAC1E;EACF;EAEA,CAAA,GAAA,IAAA,UAAA,OAAgB;GACd,IAAI,EAAE,WAAW,QAAQ;GAEzB,QAAQ,EAAE,QAAV;IACE,KAAK;KACH,mBAAmB;KACnB;IACF,KAAK;KACH,cAAc;KACd;IACF,KAAK;KACH,mBAAmB;KACnB;IACF,KAAK;KACH,eAAe;KACf;GACJ;EACF,CAAC;EAED,CAAA,GAAA,IAAA,YAAA,OAAkB;GAChB,IAAI,SAAS,QAAQ;EACvB,CAAC;;4DAoBK,OAAA;aAfA;IAAJ,KAAI;IACH,eAAa;IACb,gBAAA,GAAA,IAAA,MAAA,CAAa,CAAA,CAAC,CAAC;IACf,eAAA,GAAA,IAAA,MAAA,CAAY,CAAA,CAAC,CAAC,SAAS,KAAA;IACvB,mBAAA,GAAA,IAAA,MAAA,CAAgB,CAAA,CAAC,CAAC;IAClB,OAAO,EAAA,SAAA,WAAA;;gCAER,uMAAA;mBAMY,CAAA,CAAC,CAAC,WAAM,UAAA,CAAgB,WAAA,SAAA,GAAA,IAAA,WAAA,CAAc,KAAA,QAAA,WAAA,EAAA,KAAA,EAAA,CAAA,KAAA,GAAA,IAAA,mBAAA,CAAA,QAAA,IAAA;mBACtB,CAAA,CAAC,CAAC,WAAM,UAAA,CAAgB,WAAA,SAAA,GAAA,IAAA,WAAA,CAAc,KAAA,QAAA,YAAA,EAAA,KAAA,EAAA,CAAA,KAAA,GAAA,IAAA,mBAAA,CAAA,QAAA,IAAA"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { setContext } from "../setContext/setContext.js";
|
|
2
|
+
import "../setContext/index.js";
|
|
3
|
+
import { withDefaultProps } from "../withDefaultProps/withDefaultProps.js";
|
|
4
|
+
import "../withDefaultProps/index.js";
|
|
5
|
+
import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from "./constants.js";
|
|
6
|
+
import { createCommentVNode, createElementBlock, defineComponent, onMounted, onUnmounted, openBlock, ref, renderSlot, unref } from "vue";
|
|
7
|
+
//#region src/Island/Island.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
const _hoisted_1 = [
|
|
9
|
+
"data-client",
|
|
10
|
+
"data-media",
|
|
11
|
+
"data-island-id"
|
|
12
|
+
];
|
|
13
|
+
var Island_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "Island",
|
|
15
|
+
props: {
|
|
16
|
+
client: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
media: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
idleTimeout: {
|
|
25
|
+
type: Number,
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
islandId: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["hydrated"],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const p = withDefaultProps(props, DEFAULT_PROPS);
|
|
37
|
+
const emit = __emit;
|
|
38
|
+
const islandRef = ref(null);
|
|
39
|
+
const isHydrated = ref(false);
|
|
40
|
+
let cleanup = null;
|
|
41
|
+
setContext(ISLAND_CONTEXT_KEY, true);
|
|
42
|
+
/**
|
|
43
|
+
* Performs the actual hydration
|
|
44
|
+
*/
|
|
45
|
+
function hydrate() {
|
|
46
|
+
if (isHydrated.value) return;
|
|
47
|
+
isHydrated.value = true;
|
|
48
|
+
emit("hydrated");
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Cleanup function factory
|
|
52
|
+
*/
|
|
53
|
+
const registerCleanup = (fn) => {
|
|
54
|
+
cleanup = fn;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Strategy: load
|
|
58
|
+
*/
|
|
59
|
+
const hydrateImmediately = () => hydrate();
|
|
60
|
+
/**
|
|
61
|
+
* Strategy: idle
|
|
62
|
+
*/
|
|
63
|
+
function hydrateOnIdle() {
|
|
64
|
+
if ("requestIdleCallback" in window) {
|
|
65
|
+
const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });
|
|
66
|
+
registerCleanup(() => window.cancelIdleCallback(handle));
|
|
67
|
+
} else {
|
|
68
|
+
const timeoutId = setTimeout(hydrate, p.idleTimeout);
|
|
69
|
+
registerCleanup(() => clearTimeout(timeoutId));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Strategy: visible
|
|
74
|
+
*/
|
|
75
|
+
function hydrateWhenVisible() {
|
|
76
|
+
if (!islandRef.value) return;
|
|
77
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
78
|
+
if (entry.isIntersecting) {
|
|
79
|
+
hydrate();
|
|
80
|
+
observer.disconnect();
|
|
81
|
+
}
|
|
82
|
+
}, { rootMargin: "200px" });
|
|
83
|
+
observer.observe(islandRef.value);
|
|
84
|
+
registerCleanup(() => observer.disconnect());
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Strategy: media
|
|
88
|
+
*/
|
|
89
|
+
function hydrateOnMedia() {
|
|
90
|
+
if (!props.media) return;
|
|
91
|
+
const mql = window.matchMedia(props.media);
|
|
92
|
+
const checkAndHydrate = () => {
|
|
93
|
+
if (mql.matches) {
|
|
94
|
+
hydrate();
|
|
95
|
+
mql.removeEventListener("change", checkAndHydrate);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
if (mql.matches) hydrate();
|
|
99
|
+
else {
|
|
100
|
+
mql.addEventListener("change", checkAndHydrate);
|
|
101
|
+
registerCleanup(() => mql.removeEventListener("change", checkAndHydrate));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
onMounted(() => {
|
|
105
|
+
if (p.client === "none") return;
|
|
106
|
+
switch (p.client) {
|
|
107
|
+
case "load":
|
|
108
|
+
hydrateImmediately();
|
|
109
|
+
break;
|
|
110
|
+
case "idle":
|
|
111
|
+
hydrateOnIdle();
|
|
112
|
+
break;
|
|
113
|
+
case "visible":
|
|
114
|
+
hydrateWhenVisible();
|
|
115
|
+
break;
|
|
116
|
+
case "media":
|
|
117
|
+
hydrateOnMedia();
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
onUnmounted(() => {
|
|
122
|
+
if (cleanup) cleanup();
|
|
123
|
+
});
|
|
124
|
+
return (_ctx, _cache) => {
|
|
125
|
+
return openBlock(), createElementBlock("div", {
|
|
126
|
+
ref_key: "islandRef",
|
|
127
|
+
ref: islandRef,
|
|
128
|
+
"data-island": true,
|
|
129
|
+
"data-client": unref(p).client,
|
|
130
|
+
"data-media": unref(p).media || void 0,
|
|
131
|
+
"data-island-id": unref(p).islandId,
|
|
132
|
+
style: { display: "contents" }
|
|
133
|
+
}, [
|
|
134
|
+
createCommentVNode(" \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n "),
|
|
135
|
+
unref(p).client !== "none" || !isHydrated.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true),
|
|
136
|
+
unref(p).client !== "none" && !isHydrated.value ? renderSlot(_ctx.$slots, "fallback", { key: 1 }) : createCommentVNode("v-if", true)
|
|
137
|
+
], 8, _hoisted_1);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
//#endregion
|
|
142
|
+
export { Island_vue_vue_type_script_setup_true_lang_default as default };
|
|
143
|
+
|
|
144
|
+
//# sourceMappingURL=Island.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Island.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/Island/Island.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, onMounted, onUnmounted } from 'vue';\n import { setContext } from '../setContext';\n import { withDefaultProps } from '../withDefaultProps';\n import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from './constants';\n import type { IslandProps, IslandDefaultProps } from './types';\n\n const props = defineProps<IslandProps>();\n const p = withDefaultProps<IslandDefaultProps>(props, DEFAULT_PROPS);\n\n const emit = defineEmits<{(e: 'hydrated'): void}>();\n\n const islandRef = ref<HTMLElement | null>(null);\n const isHydrated = ref(false);\n let cleanup: (() => void) | null = null;\n\n setContext(ISLAND_CONTEXT_KEY, true);\n\n /**\n * Performs the actual hydration\n */\n function hydrate(): void {\n if (isHydrated.value) return;\n\n isHydrated.value = true;\n emit('hydrated');\n // In Vue we usually don't need explicit hydrateRoot like React.\n // Vue automatically handles hydration when the component is mounted\n // and the DOM matches what was rendered on server.\n // If you use teleport / suspense / etc., you may need extra logic.\n }\n\n /**\n * Cleanup function factory\n */\n const registerCleanup = (fn: () => void): void => { cleanup = fn };\n\n /**\n * Strategy: load\n */\n const hydrateImmediately = (): void => hydrate();\n\n /**\n * Strategy: idle\n */\n function hydrateOnIdle(): void {\n if ('requestIdleCallback' in window) {\n const handle = window.requestIdleCallback(hydrate, { timeout: p.idleTimeout });\n registerCleanup(() => window.cancelIdleCallback(handle));\n } else {\n // Fallback\n const timeoutId = setTimeout(hydrate, p.idleTimeout);\n registerCleanup(() => clearTimeout(timeoutId));\n }\n }\n\n /**\n * Strategy: visible\n */\n function hydrateWhenVisible(): void {\n if (!islandRef.value) return;\n\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n hydrate();\n observer.disconnect();\n }\n },\n { rootMargin: '200px' }\n );\n\n observer.observe(islandRef.value);\n registerCleanup(() => observer.disconnect());\n }\n\n /**\n * Strategy: media\n */\n function hydrateOnMedia(): void {\n if (!props.media) return;\n\n const mql = window.matchMedia(props.media);\n \n const checkAndHydrate = () => {\n if (mql.matches) {\n hydrate();\n mql.removeEventListener('change', checkAndHydrate);\n }\n }\n\n if (mql.matches) hydrate();\n else {\n mql.addEventListener('change', checkAndHydrate);\n registerCleanup(() => mql.removeEventListener('change', checkAndHydrate));\n }\n }\n\n onMounted(() => {\n if (p.client === 'none') return;\n\n switch (p.client) {\n case 'load':\n hydrateImmediately();\n break;\n case 'idle':\n hydrateOnIdle();\n break;\n case 'visible':\n hydrateWhenVisible();\n break;\n case 'media':\n hydrateOnMedia();\n break;\n }\n });\n\n onUnmounted(() => {\n if (cleanup) cleanup();\n });\n</script>\n\n<template>\n <div\n ref=\"islandRef\"\n :data-island=\"true\"\n :data-client=\"p.client\"\n :data-media=\"p.media || undefined\"\n :data-island-id=\"p.islandId\"\n :style=\"{ display: 'contents' }\"\n >\n <!-- \n For client !== 'none': we render children normally on server\n and hydrate them later on client.\n \n suppressHydrationWarning equivalent is handled via data-* + logic\n -->\n <slot v-if=\"p.client !== 'none' || !isHydrated\" />\n <slot name=\"fallback\" v-if=\"p.client !== 'none' && !isHydrated\" />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOE,MAAM,QAAQ;EACd,MAAM,IAAI,iBAAqC,OAAO,aAAa;EAEnE,MAAM,OAAO;EAEb,MAAM,YAAY,IAAwB,IAAI;EAC9C,MAAM,aAAa,IAAI,KAAK;EAC5B,IAAI,UAA+B;EAEnC,WAAW,oBAAoB,IAAI;;;;EAKnC,SAAS,UAAgB;GACvB,IAAI,WAAW,OAAO;GAEtB,WAAW,QAAQ;GACnB,KAAK,UAAU;EAKjB;;;;EAKA,MAAM,mBAAmB,OAAyB;GAAE,UAAU;EAAG;;;;EAKjE,MAAM,2BAAiC,QAAQ;;;;EAK/C,SAAS,gBAAsB;GAC7B,IAAI,yBAAyB,QAAQ;IACnC,MAAM,SAAS,OAAO,oBAAoB,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC;IAC7E,sBAAsB,OAAO,mBAAmB,MAAM,CAAC;GACzD,OAAO;IAEL,MAAM,YAAY,WAAW,SAAS,EAAE,WAAW;IACnD,sBAAsB,aAAa,SAAS,CAAC;GAC/C;EACF;;;;EAKA,SAAS,qBAA2B;GAClC,IAAI,CAAC,UAAU,OAAO;GAEtB,MAAM,WAAW,IAAI,sBAClB,CAAC,WAAW;IACX,IAAI,MAAM,gBAAgB;KACxB,QAAQ;KACR,SAAS,WAAW;IACtB;GACF,GACA,EAAE,YAAY,QAAQ,CACxB;GAEA,SAAS,QAAQ,UAAU,KAAK;GAChC,sBAAsB,SAAS,WAAW,CAAC;EAC7C;;;;EAKA,SAAS,iBAAuB;GAC9B,IAAI,CAAC,MAAM,OAAO;GAElB,MAAM,MAAM,OAAO,WAAW,MAAM,KAAK;GAEzC,MAAM,wBAAwB;IAC5B,IAAI,IAAI,SAAS;KACf,QAAQ;KACR,IAAI,oBAAoB,UAAU,eAAe;IACnD;GACF;GAEA,IAAI,IAAI,SAAS,QAAQ;QACpB;IACH,IAAI,iBAAiB,UAAU,eAAe;IAC9C,sBAAsB,IAAI,oBAAoB,UAAU,eAAe,CAAC;GAC1E;EACF;EAEA,gBAAgB;GACd,IAAI,EAAE,WAAW,QAAQ;GAEzB,QAAQ,EAAE,QAAV;IACE,KAAK;KACH,mBAAmB;KACnB;IACF,KAAK;KACH,cAAc;KACd;IACF,KAAK;KACH,mBAAmB;KACnB;IACF,KAAK;KACH,eAAe;KACf;GACJ;EACF,CAAC;EAED,kBAAkB;GAChB,IAAI,SAAS,QAAQ;EACvB,CAAC;;uBAID,mBAgBM,OAAA;aAfA;IAAJ,KAAI;IACH,eAAa;IACb,eAAa,MAAA,CAAA,CAAC,CAAC;IACf,cAAY,MAAA,CAAA,CAAC,CAAC,SAAS,KAAA;IACvB,kBAAgB,MAAA,CAAA,CAAC,CAAC;IAClB,OAAO,EAAA,SAAA,WAAA;;IAER,mBAAA,uMAAA;IAMY,MAAA,CAAA,CAAC,CAAC,WAAM,UAAA,CAAgB,WAAA,QAApC,WAAkD,KAAA,QAAA,WAAA,EAAA,KAAA,EAAA,CAAA,IAAA,mBAAA,QAAA,IAAA;IACtB,MAAA,CAAA,CAAC,CAAC,WAAM,UAAA,CAAgB,WAAA,QAApD,WAAkE,KAAA,QAAA,YAAA,EAAA,KAAA,EAAA,CAAA,IAAA,mBAAA,QAAA,IAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _pastweb_tools_Island = require("@pastweb/tools/Island");
|
|
3
|
+
//#region src/Island/constants.ts
|
|
4
|
+
/**
|
|
5
|
+
* Vue Island defaults adapted from the framework-agnostic tools contract.
|
|
6
|
+
*/
|
|
7
|
+
const DEFAULT_PROPS = _pastweb_tools_Island.DEFAULT_ISLAND_PROPS;
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.DEFAULT_PROPS = DEFAULT_PROPS;
|
|
10
|
+
exports.ISLAND_CONTEXT_KEY = _pastweb_tools_Island.ISLAND_CONTEXT_KEY;
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":["DEFAULT_ISLAND_PROPS"],"sources":["../../src/Island/constants.ts"],"sourcesContent":["import { DEFAULT_ISLAND_PROPS, ISLAND_CONTEXT_KEY } from '@pastweb/tools/Island';\nimport type { IslandDefaultProps as IDP } from './types';\n\nexport { ISLAND_CONTEXT_KEY };\n\n/**\n * Vue Island defaults adapted from the framework-agnostic tools contract.\n */\nexport const DEFAULT_PROPS: Pick<IDP, 'client' | 'idleTimeout'> = DEFAULT_ISLAND_PROPS;\n"],"mappings":";;;;;;AAQA,MAAa,gBAAqDA,sBAAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IslandDefaultProps as IslandDefaultProps$1 } from "./types.cjs";
|
|
2
|
+
import { ISLAND_CONTEXT_KEY } from "@pastweb/tools/Island";
|
|
3
|
+
|
|
4
|
+
//#region src/Island/constants.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue Island defaults adapted from the framework-agnostic tools contract.
|
|
7
|
+
*/
|
|
8
|
+
declare const DEFAULT_PROPS: Pick<IslandDefaultProps$1, 'client' | 'idleTimeout'>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DEFAULT_PROPS, ISLAND_CONTEXT_KEY };
|
|
11
|
+
//# sourceMappingURL=constants.d.cts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IslandDefaultProps as IslandDefaultProps$1 } from "./types.js";
|
|
2
|
+
import { ISLAND_CONTEXT_KEY } from "@pastweb/tools/Island";
|
|
3
|
+
|
|
4
|
+
//#region src/Island/constants.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue Island defaults adapted from the framework-agnostic tools contract.
|
|
7
|
+
*/
|
|
8
|
+
declare const DEFAULT_PROPS: Pick<IslandDefaultProps$1, 'client' | 'idleTimeout'>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DEFAULT_PROPS, ISLAND_CONTEXT_KEY };
|
|
11
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DEFAULT_ISLAND_PROPS, ISLAND_CONTEXT_KEY } from "@pastweb/tools/Island";
|
|
2
|
+
//#region src/Island/constants.ts
|
|
3
|
+
/**
|
|
4
|
+
* Vue Island defaults adapted from the framework-agnostic tools contract.
|
|
5
|
+
*/
|
|
6
|
+
const DEFAULT_PROPS = DEFAULT_ISLAND_PROPS;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { DEFAULT_PROPS, ISLAND_CONTEXT_KEY };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../src/Island/constants.ts"],"sourcesContent":["import { DEFAULT_ISLAND_PROPS, ISLAND_CONTEXT_KEY } from '@pastweb/tools/Island';\nimport type { IslandDefaultProps as IDP } from './types';\n\nexport { ISLAND_CONTEXT_KEY };\n\n/**\n * Vue Island defaults adapted from the framework-agnostic tools contract.\n */\nexport const DEFAULT_PROPS: Pick<IDP, 'client' | 'idleTimeout'> = DEFAULT_ISLAND_PROPS;\n"],"mappings":";;;;;AAQA,MAAa,gBAAqD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_Island_constants = require("./constants.cjs");
|
|
3
|
+
const require_Island = require("./Island.cjs");
|
|
4
|
+
const require_Island_useIsland = require("./useIsland.cjs");
|
|
5
|
+
let _pastweb_tools_Island = require("@pastweb/tools/Island");
|
|
6
|
+
exports.DEFAULT_PROPS = require_Island_constants.DEFAULT_PROPS;
|
|
7
|
+
exports.ISLAND_CONTEXT_KEY = _pastweb_tools_Island.ISLAND_CONTEXT_KEY;
|
|
8
|
+
exports.Island = require_Island.default;
|
|
9
|
+
exports.useIsland = require_Island_useIsland.useIsland;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ClientStrategy, IslandDefaultProps, IslandProps } from "./types.cjs";
|
|
2
|
+
import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from "./constants.cjs";
|
|
3
|
+
import _default from "./Island.vue.cjs";
|
|
4
|
+
import { useIsland } from "./useIsland.cjs";
|
|
5
|
+
export { type ClientStrategy, DEFAULT_PROPS, ISLAND_CONTEXT_KEY, _default as Island, type IslandDefaultProps, type IslandProps, useIsland };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ClientStrategy, IslandDefaultProps, IslandProps } from "./types.js";
|
|
2
|
+
import { DEFAULT_PROPS, ISLAND_CONTEXT_KEY } from "./constants.js";
|
|
3
|
+
import _default from "./Island.vue.js";
|
|
4
|
+
import { useIsland } from "./useIsland.js";
|
|
5
|
+
export { type ClientStrategy, DEFAULT_PROPS, ISLAND_CONTEXT_KEY, _default as Island, type IslandDefaultProps, type IslandProps, useIsland };
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClientStrategy, IslandDefaultProps as IslandDefaultProps$1, IslandProps as IslandProps$1 } from "@pastweb/tools/Island";
|
|
2
|
+
|
|
3
|
+
//#region src/Island/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Vue {@link Island} component.
|
|
6
|
+
*
|
|
7
|
+
* Vue Island uses the shared `@pastweb/tools` island contract for hydration
|
|
8
|
+
* strategies, media queries, idle timeout, and `islandId`. Renderable content is
|
|
9
|
+
* supplied through Vue slots.
|
|
10
|
+
*/
|
|
11
|
+
interface IslandProps extends Omit<IslandProps$1, 'fallback'> {}
|
|
12
|
+
/**
|
|
13
|
+
* Vue Island props after defaults from `@pastweb/tools` have been applied.
|
|
14
|
+
*/
|
|
15
|
+
interface IslandDefaultProps extends Omit<IslandDefaultProps$1, 'fallback'> {}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { type ClientStrategy, IslandDefaultProps, IslandProps };
|
|
18
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClientStrategy, IslandDefaultProps as IslandDefaultProps$1, IslandProps as IslandProps$1 } from "@pastweb/tools/Island";
|
|
2
|
+
|
|
3
|
+
//#region src/Island/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Vue {@link Island} component.
|
|
6
|
+
*
|
|
7
|
+
* Vue Island uses the shared `@pastweb/tools` island contract for hydration
|
|
8
|
+
* strategies, media queries, idle timeout, and `islandId`. Renderable content is
|
|
9
|
+
* supplied through Vue slots.
|
|
10
|
+
*/
|
|
11
|
+
interface IslandProps extends Omit<IslandProps$1, 'fallback'> {}
|
|
12
|
+
/**
|
|
13
|
+
* Vue Island props after defaults from `@pastweb/tools` have been applied.
|
|
14
|
+
*/
|
|
15
|
+
interface IslandDefaultProps extends Omit<IslandDefaultProps$1, 'fallback'> {}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { type ClientStrategy, IslandDefaultProps, IslandProps };
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_getContext_getContext = require("../getContext/getContext.cjs");
|
|
3
|
+
require("../getContext/index.cjs");
|
|
4
|
+
require("./constants.cjs");
|
|
5
|
+
let _pastweb_tools_Island = require("@pastweb/tools/Island");
|
|
6
|
+
//#region src/Island/useIsland.ts
|
|
7
|
+
/**
|
|
8
|
+
* Returns whether the current component is rendered inside an {@link Island}.
|
|
9
|
+
*
|
|
10
|
+
* Entry adapters use this signal to hydrate nested entries only when they are
|
|
11
|
+
* mounted as part of an island hydration boundary. The value is read from Vue
|
|
12
|
+
* dependency injection using the shared `ISLAND_CONTEXT_KEY` from
|
|
13
|
+
* `@pastweb/tools`.
|
|
14
|
+
*
|
|
15
|
+
* @returns `true` inside an `Island`, otherwise `false`.
|
|
16
|
+
*/
|
|
17
|
+
function useIsland() {
|
|
18
|
+
return Boolean(require_getContext_getContext.getContext(_pastweb_tools_Island.ISLAND_CONTEXT_KEY));
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.useIsland = useIsland;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=useIsland.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsland.cjs","names":["getContext","ISLAND_CONTEXT_KEY"],"sources":["../../src/Island/useIsland.ts"],"sourcesContent":["import { getContext } from '../getContext';\nimport { ISLAND_CONTEXT_KEY } from './constants';\n\n/**\n * Returns whether the current component is rendered inside an {@link Island}.\n *\n * Entry adapters use this signal to hydrate nested entries only when they are\n * mounted as part of an island hydration boundary. The value is read from Vue\n * dependency injection using the shared `ISLAND_CONTEXT_KEY` from\n * `@pastweb/tools`.\n *\n * @returns `true` inside an `Island`, otherwise `false`.\n */\nexport function useIsland(): boolean {\n return Boolean(getContext<boolean | undefined>(ISLAND_CONTEXT_KEY));\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAaA,SAAgB,YAAqB;CACnC,OAAO,QAAQA,8BAAAA,WAAgCC,sBAAAA,kBAAkB,CAAC;AACpE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/Island/useIsland.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether the current component is rendered inside an {@link Island}.
|
|
4
|
+
*
|
|
5
|
+
* Entry adapters use this signal to hydrate nested entries only when they are
|
|
6
|
+
* mounted as part of an island hydration boundary. The value is read from Vue
|
|
7
|
+
* dependency injection using the shared `ISLAND_CONTEXT_KEY` from
|
|
8
|
+
* `@pastweb/tools`.
|
|
9
|
+
*
|
|
10
|
+
* @returns `true` inside an `Island`, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
declare function useIsland(): boolean;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useIsland };
|
|
15
|
+
//# sourceMappingURL=useIsland.d.cts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/Island/useIsland.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether the current component is rendered inside an {@link Island}.
|
|
4
|
+
*
|
|
5
|
+
* Entry adapters use this signal to hydrate nested entries only when they are
|
|
6
|
+
* mounted as part of an island hydration boundary. The value is read from Vue
|
|
7
|
+
* dependency injection using the shared `ISLAND_CONTEXT_KEY` from
|
|
8
|
+
* `@pastweb/tools`.
|
|
9
|
+
*
|
|
10
|
+
* @returns `true` inside an `Island`, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
declare function useIsland(): boolean;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useIsland };
|
|
15
|
+
//# sourceMappingURL=useIsland.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getContext } from "../getContext/getContext.js";
|
|
2
|
+
import "../getContext/index.js";
|
|
3
|
+
import { ISLAND_CONTEXT_KEY } from "./constants.js";
|
|
4
|
+
//#region src/Island/useIsland.ts
|
|
5
|
+
/**
|
|
6
|
+
* Returns whether the current component is rendered inside an {@link Island}.
|
|
7
|
+
*
|
|
8
|
+
* Entry adapters use this signal to hydrate nested entries only when they are
|
|
9
|
+
* mounted as part of an island hydration boundary. The value is read from Vue
|
|
10
|
+
* dependency injection using the shared `ISLAND_CONTEXT_KEY` from
|
|
11
|
+
* `@pastweb/tools`.
|
|
12
|
+
*
|
|
13
|
+
* @returns `true` inside an `Island`, otherwise `false`.
|
|
14
|
+
*/
|
|
15
|
+
function useIsland() {
|
|
16
|
+
return Boolean(getContext(ISLAND_CONTEXT_KEY));
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { useIsland };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=useIsland.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsland.js","names":[],"sources":["../../src/Island/useIsland.ts"],"sourcesContent":["import { getContext } from '../getContext';\nimport { ISLAND_CONTEXT_KEY } from './constants';\n\n/**\n * Returns whether the current component is rendered inside an {@link Island}.\n *\n * Entry adapters use this signal to hydrate nested entries only when they are\n * mounted as part of an island hydration boundary. The value is read from Vue\n * dependency injection using the shared `ISLAND_CONTEXT_KEY` from\n * `@pastweb/tools`.\n *\n * @returns `true` inside an `Island`, otherwise `false`.\n */\nexport function useIsland(): boolean {\n return Boolean(getContext<boolean | undefined>(ISLAND_CONTEXT_KEY));\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,YAAqB;CACnC,OAAO,QAAQ,WAAgC,kBAAkB,CAAC;AACpE"}
|