@slidev/client 0.35.5 → 0.35.6

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.
Files changed (2) hide show
  1. package/layouts/iframe.vue +15 -3
  2. package/package.json +15 -15
@@ -1,11 +1,23 @@
1
1
  <script setup lang="ts">
2
- defineProps<{ url: string }>()
2
+ import { computed } from '@vue/reactivity'
3
+
4
+ const props = defineProps<{
5
+ url: string
6
+ scale?: number
7
+ }>()
8
+
9
+ const scaleInvertPercent = computed(() => `${(1 / (props.scale || 1)) * 100}%`)
3
10
  </script>
4
11
 
5
12
  <template>
6
13
  <div class="h-full w-full">
7
- <div class="w-full h-full">
8
- <iframe id="frame" class="w-full h-full" :src="url" />
14
+ <div relative :style="{ width: scaleInvertPercent, height: scaleInvertPercent }">
15
+ <iframe
16
+ id="frame" class="w-full h-full"
17
+ :src="url"
18
+ :style="scale ? { transform: `scale(${scale})`, transformOrigin: 'top left' } : {}"
19
+ />
9
20
  </div>
10
21
  </div>
11
22
  </template>
23
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.35.5",
3
+ "version": "0.35.6",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -16,34 +16,34 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@antfu/utils": "^0.5.2",
19
- "@slidev/parser": "0.35.5",
20
- "@slidev/types": "0.35.5",
21
- "@unocss/reset": "^0.45.6",
22
- "@vueuse/core": "^9.1.0",
19
+ "@slidev/parser": "0.35.6",
20
+ "@slidev/types": "0.35.6",
21
+ "@unocss/reset": "^0.45.14",
22
+ "@vueuse/core": "^9.1.1",
23
23
  "@vueuse/head": "^0.7.9",
24
- "@vueuse/math": "^9.1.0",
24
+ "@vueuse/math": "^9.1.1",
25
25
  "@vueuse/motion": "^2.0.0-beta.18",
26
26
  "codemirror": "^5.65.5",
27
- "defu": "^6.0.0",
28
- "drauu": "^0.3.0",
27
+ "defu": "^6.1.0",
28
+ "drauu": "^0.3.1",
29
29
  "file-saver": "^2.0.5",
30
30
  "js-base64": "^3.7.2",
31
31
  "js-yaml": "^4.1.0",
32
- "katex": "^0.16.0",
33
- "mermaid": "^9.1.5",
34
- "monaco-editor": "^0.34.0",
32
+ "katex": "^0.16.2",
33
+ "mermaid": "^9.1.6",
34
+ "monaco-editor": "^0.33.0",
35
35
  "nanoid": "^4.0.0",
36
36
  "prettier": "^2.7.1",
37
37
  "recordrtc": "^5.6.2",
38
38
  "resolve": "^1.22.1",
39
- "unocss": "^0.45.6",
39
+ "unocss": "^0.45.14",
40
40
  "vite-plugin-windicss": "^1.8.7",
41
- "vue": "^3.2.37",
42
- "vue-router": "^4.1.3",
41
+ "vue": "^3.2.38",
42
+ "vue-router": "^4.1.5",
43
43
  "vue-starport": "^0.3.0",
44
44
  "windicss": "^3.5.6"
45
45
  },
46
46
  "devDependencies": {
47
- "vite": "^3.0.7"
47
+ "vite": "^3.0.9"
48
48
  }
49
49
  }