Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ const state = useCustomInspectorState()
</script>

<template>
<Timeline :layer-ids="state.timelineLayerIds!" :doc-link="state.homepage!" :plugin-id="state.pluginId" />
<Timeline :layer-ids="state.timelineLayerIds!" :doc-link="state.homepage!" :plugin-id="state.pluginId!" />
</template>
4 changes: 1 addition & 3 deletions packages/ui/src/components/DarkToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const isDark = computed({
set: v => mode.value = v ? 'dark' : 'light',
})

// @ts-expect-error: Transition API
const isAppearanceTransition = document.startViewTransition
const isAppearanceTransition = !!document.startViewTransition
&& !window.matchMedia('(prefers-reduced-motion: reduce)').matches
/**
* Credit to [@hooray](https://github.com/hooray)
Expand All @@ -45,7 +44,6 @@ function toggle(event?: MouseEvent) {
Math.max(x, innerWidth - x),
Math.max(y, innerHeight - y),
)
// @ts-expect-error: Transition API
const transition = document.startViewTransition(async () => {
isDark.value = !isDark.value
await nextTick()
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Select.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts" generic="Value extends number | string, Label, M extends boolean">
import type { ButtonProps } from './Button.vue'
import { VClosePopper as vClosePopper } from 'floating-vue'
import { vClosePopper } from 'floating-vue'
import { computed, useSlots } from 'vue'
import VueButton from './Button.vue'
import VueDropdown from './Dropdown.vue'
Expand Down