Skip to content

Commit ed3b5ee

Browse files
committed
Merge tag 'v52.15.1' into merge/upstream-52.14.2
2 parents 5e5e42a + 09d22f2 commit ed3b5ee

24 files changed

Lines changed: 134 additions & 76 deletions

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@slidev/docs",
33
"type": "module",
4-
"version": "52.15.0",
4+
"version": "52.15.1",
55
"license": "MIT",
66
"funding": "https://github.com/sponsors/antfu",
77
"homepage": "https://sli.dev",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"version": "52.15.0",
3+
"version": "52.15.1",
44
"private": true,
55
"packageManager": "pnpm@10.33.2",
66
"engines": {

packages/client/internals/DrawingControls.vue

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
2-
import { Menu } from 'floating-vue'
2+
import { Dropdown } from 'floating-vue'
3+
import { ref } from 'vue'
34
import { useDrawings } from '../composables/useDrawings'
45
import Draggable from './Draggable.vue'
56
import IconButton from './IconButton.vue'
@@ -18,6 +19,23 @@ const {
1819
brushColors,
1920
} = useDrawings()
2021
22+
const strokeWidthDropdownShown = ref(false)
23+
24+
function showStrokeWidthDropdown(event: Event) {
25+
event.preventDefault()
26+
event.stopPropagation()
27+
requestAnimationFrame(() => {
28+
requestAnimationFrame(() => {
29+
strokeWidthDropdownShown.value = true
30+
})
31+
})
32+
}
33+
34+
function showStrokeWidthDropdownForPointer(event: PointerEvent) {
35+
if (event.pointerType !== 'mouse')
36+
showStrokeWidthDropdown(event)
37+
}
38+
2139
function undo() {
2240
drauu.undo()
2341
}
@@ -71,8 +89,8 @@ function setBrushColor(color: string) {
7189

7290
<VerticalDivider />
7391

74-
<Menu>
75-
<IconButton title="Adjust stroke width" :class="{ shallow: drawingMode === 'eraseLine' }">
92+
<Dropdown v-model:shown="strokeWidthDropdownShown" :triggers="[]">
93+
<IconButton title="Adjust stroke width" :class="{ shallow: drawingMode === 'eraseLine' }" @click="showStrokeWidthDropdown" @pointerdown="showStrokeWidthDropdownForPointer" @pointerup="showStrokeWidthDropdownForPointer" @touchend="showStrokeWidthDropdown">
7694
<svg viewBox="0 0 32 32" width="1.2em" height="1.2em">
7795
<line x1="2" y1="15" x2="22" y2="4" stroke="currentColor" stroke-width="1" stroke-linecap="round" />
7896
<line x1="2" y1="24" x2="28" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
@@ -89,7 +107,7 @@ function setBrushColor(color: string) {
89107
</div>
90108
</div>
91109
</template>
92-
</Menu>
110+
</Dropdown>
93111
<IconButton
94112
v-for="color of brushColors"
95113
:key="color"
@@ -134,7 +152,7 @@ function setBrushColor(color: string) {
134152
</template>
135153

136154
<style>
137-
.v-popper--theme-menu .v-popper__arrow-inner {
155+
.v-popper--theme-dropdown .v-popper__arrow-inner {
138156
--uno: border-main;
139157
}
140158
</style>

packages/client/logic/recording.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type RecorderType from 'recordrtc'
22
import type { Options as RecorderOptions } from 'recordrtc'
33
import type { Ref } from 'vue'
44
import { isTruthy } from '@antfu/utils'
5+
import { fixWebmDuration } from '@fix-webm-duration/fix'
56
import { useDevicesList, useEventListener, useLocalStorage } from '@vueuse/core'
6-
import fixWebmDuration from 'fix-webm-duration'
77
import { nextTick, ref, shallowRef, watch } from 'vue'
88
import { currentCamera, currentMic } from '../state'
99

packages/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@slidev/client",
33
"type": "module",
4-
"version": "52.15.0",
4+
"version": "52.15.1",
55
"description": "Presentation slides for developers",
66
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
77
"license": "MIT",
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@antfu/utils": "catalog:frontend",
32+
"@fix-webm-duration/fix": "catalog:frontend",
3233
"@iconify-json/carbon": "catalog:icons",
3334
"@iconify-json/ph": "catalog:icons",
3435
"@iconify-json/svg-spinners": "catalog:icons",
@@ -49,7 +50,6 @@
4950
"ansis": "catalog:prod",
5051
"drauu": "catalog:frontend",
5152
"file-saver": "catalog:frontend",
52-
"fix-webm-duration": "catalog:frontend",
5353
"floating-vue": "catalog:frontend",
5454
"fuse.js": "catalog:frontend",
5555
"katex": "catalog:frontend",

packages/create-app/index.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const RE_NON_ALPHANUMERIC = /[^a-z0-9-~]+/g
2525

2626
const renameFiles = {
2727
_gitignore: '.gitignore',
28-
_npmrc: '.npmrc',
2928
}
3029

3130
async function init() {

packages/create-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "create-slidev",
33
"type": "module",
4-
"version": "52.15.0",
4+
"version": "52.15.1",
55
"description": "Create starter template for Slidev",
66
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
77
"license": "MIT",

packages/create-app/template/_npmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/create-app/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"export": "slidev export"
99
},
1010
"dependencies": {
11-
"@slidev/cli": "^52.15.0",
11+
"@slidev/cli": "^52.15.1",
1212
"@slidev/theme-default": "latest",
1313
"@slidev/theme-seriph": "latest",
1414
"vue": "^3.5.33"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefullyHoist: true

0 commit comments

Comments
 (0)