Skip to content

Commit 287fe2c

Browse files
committed
Update PDF.js version to 5.3.31
1 parent e1485b1 commit 287fe2c

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
lines changed

bun.lockb

23.1 KB
Binary file not shown.

docs/.vitepress/config.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from "vitepress";
2+
import llmstxt from 'vitepress-plugin-llms'
23
import { version } from "../../packages/vue/package.json";
34

45
// https://vitepress.dev/reference/site-config
@@ -25,15 +26,16 @@ export default defineConfig({
2526
],
2627

2728
sidebar: [
28-
{ text: "Introduction",
29+
{
30+
text: "Introduction",
2931
items: [
3032
{ text: "Getting Started", link: "/guide/getting-started" },
3133
{ text: "Props", link: "/guide/props" },
3234
{ text: "Events", link: "/guide/events" },
3335
{ text: "Slots", link: "/guide/slots" },
3436
{ text: "Composables", link: "/guide/composables" },
3537
],
36-
}, {
38+
}, {
3739
text: "Customization",
3840
items: [
3941
{ text: "Customization Options", link: "/guide/customization" },
@@ -47,7 +49,7 @@ export default defineConfig({
4749
{ text: "Basic Examples", link: "/examples/basic-examples" },
4850
{ text: "Usage with Nuxt", link: "/examples/nuxt-example" },
4951
],
50-
}, {
52+
}, {
5153
text: "Interactive Demos",
5254
items: [
5355
{ text: "Playground", link: "/playground" },
@@ -67,4 +69,7 @@ export default defineConfig({
6769
},
6870
],
6971
},
72+
vite: {
73+
plugins: [llmstxt()]
74+
}
7075
});

docs/components/APIReferenceDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function toggleSidebar() {
167167
168168
// New document input
169169
const newDocUrl = ref('')
170-
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.2.133/web/compressed.tracemonkey-pldi-09.pdf'
170+
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.3.31/web/compressed.tracemonkey-pldi-09.pdf'
171171
const source = ref(pdf)
172172
173173
function resetPdfInfo() {

docs/components/CustomizationDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ watchedRefs.forEach(ref => {
141141
watch(ref, updateOptions)
142142
})
143143
144-
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.2.133/web/compressed.tracemonkey-pldi-09.pdf'
144+
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.3.31/web/compressed.tracemonkey-pldi-09.pdf'
145145
146146
// Setup watchers for theme options
147147
import { watch } from 'vue'

docs/components/EventsDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function rotateClockwise() {
138138
vuepdfjs.value.pdfApp.eventBus.dispatch("rotatecw")
139139
}
140140
141-
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.2.133/web/compressed.tracemonkey-pldi-09.pdf'
141+
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.3.31/web/compressed.tracemonkey-pldi-09.pdf'
142142
</script>
143143

144144
<template>

docs/components/PdfViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const onPdfAppLoaded = () => {
7777
vuepdfjs.value.pdfApp.eventBus.on('documenterror', onErrorHandler)
7878
}
7979
80-
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.2.133/web/compressed.tracemonkey-pldi-09.pdf'
80+
const pdf = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.3.31/web/compressed.tracemonkey-pldi-09.pdf'
8181
const source = ref(pdf)
8282
</script>
8383

docs/components/SlotsDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function loadPdf() {
3232
// Add artificial delay to show loading indicator
3333
setTimeout(() => {
3434
// Imposta l'URL del PDF dopo il ritardo
35-
pdf.value = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.2.133/web/compressed.tracemonkey-pldi-09.pdf'
35+
pdf.value = 'https://raw.githubusercontent.com/mozilla/pdf.js/v5.3.31/web/compressed.tracemonkey-pldi-09.pdf'
3636
}, loadingDelay.value * 1000)
3737
}
3838

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"workspaces": [
1515
"packages/*"
1616
],
17-
"dependencies": {},
1817
"devDependencies": {
1918
"@types/bun": "latest",
20-
"vitepress": "^1.6.3"
19+
"vitepress": "^1.6.3",
20+
"vitepress-plugin-llms": "^1.3.4"
2121
},
2222
"peerDependencies": {
2323
"typescript": "^5.6.3"
2424
}
25-
}
25+
}

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tuttarealstep/vue-pdf.js",
33
"description": "A Vue component for displaying PDF files using the standard `pdf.js` viewer. This package provides a simple and powerful integration to embed PDF viewers in Vue applications.",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"private": false,
66
"type": "module",
77
"author": "Stefano Valenzano (https://github.com/tuttarealstep)",
@@ -36,7 +36,7 @@
3636
"@fluent/bundle": "^0.18.0",
3737
"@fluent/dom": "^0.10.0",
3838
"ajv": "^8.17.1",
39-
"pdf.js": "git://github.com/mozilla/pdf.js.git#v5.2.133"
39+
"pdf.js": "git://github.com/mozilla/pdf.js.git#v5.3.31"
4040
},
4141
"peerDependencies": {
4242
"vue": "^3.4.29"

0 commit comments

Comments
 (0)