vue-safe-teleport
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,3 +0,3 @@ | ||
export { SafeTeleport } from './SafeTeleport'; | ||
export { TeleportTarget } from './TeleportTarget'; | ||
export { SafeTeleport } from './SafeTeleport.js'; | ||
export { TeleportTarget } from './TeleportTarget.js'; | ||
declare const _default: { | ||
@@ -4,0 +4,0 @@ install(app: any): void; |
import { reactive } from 'vue'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const'; | ||
import { SafeTeleport } from './SafeTeleport'; | ||
import { TeleportTarget } from './TeleportTarget'; | ||
export { SafeTeleport } from './SafeTeleport'; | ||
export { TeleportTarget } from './TeleportTarget'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const.js'; | ||
import { SafeTeleport } from './SafeTeleport.js'; | ||
import { TeleportTarget } from './TeleportTarget.js'; | ||
export { SafeTeleport } from './SafeTeleport.js'; | ||
export { TeleportTarget } from './TeleportTarget.js'; | ||
export default { | ||
@@ -8,0 +8,0 @@ install(app) { |
import { computed, defineComponent, h, inject, onMounted, ref, Teleport, watch } from 'vue'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const.js'; | ||
export const SafeTeleport = defineComponent({ | ||
@@ -4,0 +4,0 @@ name: 'SafeTeleport', |
import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted } from 'vue'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const'; | ||
import { PROVIDE_TELEPORT_TARGETS } from './const.js'; | ||
export const TeleportTarget = defineComponent({ | ||
@@ -4,0 +4,0 @@ name: 'TeleportTarget', |
{ | ||
"name": "vue-safe-teleport", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Recommended for teleporting inside a Vue app", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -54,3 +54,3 @@ # vue-safe-teleport | ||
The content will be teleport as soon as the corresponding target is mounted. | ||
The content will be teleported as soon as the corresponding target is mounted. | ||
@@ -57,0 +57,0 @@ You can also use `SafeTeleport` without `TeleportTarget`, in that case it will work like the builtin `Teleport` but will wait one frame if the target DOM element isn't available yet: |
import { reactive } from 'vue' | ||
import { PROVIDE_TELEPORT_TARGETS } from './const' | ||
import { SafeTeleport } from './SafeTeleport' | ||
import { TeleportTarget } from './TeleportTarget' | ||
import { PROVIDE_TELEPORT_TARGETS } from './const.js' | ||
import { SafeTeleport } from './SafeTeleport.js' | ||
import { TeleportTarget } from './TeleportTarget.js' | ||
export { SafeTeleport } from './SafeTeleport' | ||
export { TeleportTarget } from './TeleportTarget' | ||
export { SafeTeleport } from './SafeTeleport.js' | ||
export { TeleportTarget } from './TeleportTarget.js' | ||
@@ -9,0 +9,0 @@ export default { |
import { computed, defineComponent, h, inject, onMounted, PropType, ref, Teleport, watch } from 'vue' | ||
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const' | ||
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const.js' | ||
@@ -4,0 +4,0 @@ export const SafeTeleport = defineComponent({ |
@@ -1,3 +0,3 @@ | ||
import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted, watch } from 'vue' | ||
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const' | ||
import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted } from 'vue' | ||
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const.js' | ||
@@ -4,0 +4,0 @@ export const TeleportTarget = defineComponent({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13717