@vue-pdf-viewer/viewer 4.2.0 → 4.3.0-beta.1

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 (66) hide show
  1. package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_f3ec81b9_lang-BCpt_D_8.cjs → VPdfViewer.vue_vue_type_style_index_1_scoped_aa5424ef_lang-Bh7hp9vX.cjs} +8 -8
  2. package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_f3ec81b9_lang-D2_mw9CP.js → VPdfViewer.vue_vue_type_style_index_1_scoped_aa5424ef_lang-CCJvCqim.js} +1989 -1973
  3. package/dist/{annotation-circle-COOiYsJg.js → annotation-circle-tIpRci60.js} +2 -2
  4. package/dist/{annotation-font-Dz5-utxy.js → annotation-font-CLhhAYBv.js} +2 -2
  5. package/dist/{annotation-font-style-italic-DrQU7N-a.js → annotation-font-style-italic-oHlnJsqJ.js} +2 -2
  6. package/dist/{annotation-font-style-underline-D7zPcuK6.js → annotation-font-style-underline-BcbrLo1i.js} +2 -2
  7. package/dist/{annotation-font-weight-bold-Ba2Ix8G4.js → annotation-font-weight-bold-BXnAi8FR.js} +2 -2
  8. package/dist/{annotation-freetext-dvsFpAZu.js → annotation-freetext-zmKZ4GuW.js} +2 -2
  9. package/dist/{annotation-highlight-DfO5AU26.js → annotation-highlight-CBhenBLo.js} +2 -2
  10. package/dist/{annotation-ink-Dq1T0COO.js → annotation-ink-Cr5tjD8f.js} +2 -2
  11. package/dist/{annotation-line-mbXXKVam.js → annotation-line-CBubP1QZ.js} +2 -2
  12. package/dist/{annotation-link-DHPTdWez.js → annotation-link-DI9mj24Y.js} +2 -2
  13. package/dist/annotation-popup-BGBBbfEC.js +23 -0
  14. package/dist/annotation-popup-BxlwGOD0.cjs +1 -0
  15. package/dist/{annotation-signature-4ci2KImE.js → annotation-signature-DQVfU7hJ.js} +2 -2
  16. package/dist/{annotation-square-SQ7oqcEq.js → annotation-square-_rIuUCHT.js} +2 -2
  17. package/dist/{annotation-squiggly-B7fWFNAK.js → annotation-squiggly-DfLrUnSa.js} +2 -2
  18. package/dist/{annotation-stamp-BkEskP5J.js → annotation-stamp-B5gaCO0X.js} +2 -2
  19. package/dist/{annotation-strikeout-C-bSOcHc.js → annotation-strikeout-Cn_VHn_N.js} +2 -2
  20. package/dist/{annotation-text-BgsMjKeI.js → annotation-text-pKHfDK_Q.js} +2 -2
  21. package/dist/{annotation-underline-Be5qs13j.js → annotation-underline-BDgmfJQk.js} +2 -2
  22. package/dist/{arrow-up-vWNs2knA.js → arrow-up-DhoV0HvK.js} +2 -2
  23. package/dist/{check-BkaH7nrH.js → check-BRo7Q5UG.js} +2 -2
  24. package/dist/{chevron-down-BSFTOkiu.js → chevron-down-BEs3P7KI.js} +2 -2
  25. package/dist/{clear-CasZmBPr.js → clear-DP391aEz.js} +2 -2
  26. package/dist/{close-BgsD04zx.js → close-CnbAWKuA.js} +2 -2
  27. package/dist/{comment-panel-B-sIKcBp.js → comment-panel-BkFw3FUB.js} +2 -2
  28. package/dist/{download-DCHGUHXx.js → download-C45QpUvK.js} +2 -2
  29. package/dist/{drag-icon-D-z1P6O_.js → drag-icon-CpENKa0y.js} +2 -2
  30. package/dist/{drag-icon-dark-DXDxQjnW.js → drag-icon-dark-B0sqKXav.js} +2 -2
  31. package/dist/{ellipsis-vertical-Cjbi7utY.js → ellipsis-vertical-X1VRRfZe.js} +2 -2
  32. package/dist/{empty-comment-dark-CrZRt0Hl.js → empty-comment-dark-DdPeDeR5.js} +2 -2
  33. package/dist/{empty-comment-light-BVPUX2pA.js → empty-comment-light-Dgc1r5xv.js} +2 -2
  34. package/dist/{file-BD05gONj.js → file-C2gjRcLU.js} +2 -2
  35. package/dist/{first-page-DihCXIQm.js → first-page-32lvRrjG.js} +2 -2
  36. package/dist/{fullscreen-BmHQQPIs.js → fullscreen-Cuegwls4.js} +2 -2
  37. package/dist/{hand-B1v6mSWQ.js → hand-BvbzlDGf.js} +2 -2
  38. package/dist/{index-Dfd-5_Zt.cjs → index-Dbzsm5ws.cjs} +1 -1
  39. package/dist/{index-DkpUounX.js → index-U9huHFJY.js} +1 -1
  40. package/dist/index.cjs +18 -18
  41. package/dist/index.js +12443 -11173
  42. package/dist/{info-DXpOTVKn.js → info-2-wEcru0.js} +2 -2
  43. package/dist/{last-page-DIN17z_8.js → last-page-DDJIJ2gp.js} +2 -2
  44. package/dist/license.cjs +1 -1
  45. package/dist/license.js +1 -1
  46. package/dist/{magnifier-Dep29X1B.js → magnifier-shuB09Te.js} +2 -2
  47. package/dist/{moon-Dw-MII-V.js → moon-Cf7pmsnw.js} +2 -2
  48. package/dist/{page-view-dual-DCLg-YkG.js → page-view-dual-f5-I0-4D.js} +2 -2
  49. package/dist/{page-view-dual-with-cover-BFBRneNZ.js → page-view-dual-with-cover-D9GlYHG4.js} +2 -2
  50. package/dist/{page-view-single-CWOhdavX.js → page-view-single-DTduusoS.js} +2 -2
  51. package/dist/{pointer-jfdFDx4z.js → pointer-CdvbhXLR.js} +2 -2
  52. package/dist/{printer-B8qbXO9F.js → printer-ERNx1Q88.js} +2 -2
  53. package/dist/{rotate-counter-clockwise-DFl9ijSR.js → rotate-counter-clockwise-CEN3P8nT.js} +2 -2
  54. package/dist/{scrolling-horizontal-JO2P2O-8.js → scrolling-horizontal-CdariRpO.js} +2 -2
  55. package/dist/{scrolling-page-y5Rrmrnm.js → scrolling-page-wFZlGv_K.js} +2 -2
  56. package/dist/{scrolling-vertical-D9MCCss9.js → scrolling-vertical-B1Doxmyt.js} +2 -2
  57. package/dist/{scrolling-wrapped-CYbEHLH6.js → scrolling-wrapped-BBipRQ-N.js} +2 -2
  58. package/dist/{sun-BhyBd5LA.js → sun-C0fX-A5U.js} +2 -2
  59. package/dist/{thumbnail-BMmN_jSl.js → thumbnail-HzftUNEp.js} +2 -2
  60. package/dist/{trash-Deie-RCt.js → trash-BTydaFkw.js} +2 -2
  61. package/dist/types/components/VPdfViewer.vue.d.ts +40 -1
  62. package/dist/types/composables/useAnnotationStorage.d.ts +7 -1
  63. package/dist/types/utils/types.d.ts +2 -1
  64. package/dist/{zoom-in-qogh-J7e.js → zoom-in-CPqqALGr.js} +2 -2
  65. package/dist/{zoom-out-BFzERV6_.js → zoom-out-BpilF8O_.js} +2 -2
  66. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function l(i, e) {
10
- return t(), o("svg", r, e[0] || (e[0] = [
10
+ return o(), t("svg", r, e[0] || (e[0] = [
11
11
  n("path", {
12
12
  fill: "currentColor",
13
13
  d: "M8 1.5A6.5 6.5 0 1 0 14.5 8 6.507 6.507 0 0 0 8 1.5m0 12A5.5 5.5 0 1 1 13.5 8 5.506 5.506 0 0 1 8 13.5M9 11a.5.5 0 0 1-.5.5 1 1 0 0 1-1-1V8a.5.5 0 0 1 0-1 1 1 0 0 1 1 1v2.5a.5.5 0 0 1 .5.5M7 5.25a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as o } from "vue";
1
+ import { createElementBlock as t, openBlock as l, createElementVNode as o } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "16",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function r(a, e) {
10
- return t(), l("svg", n, e[0] || (e[0] = [
10
+ return l(), t("svg", n, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  d: "M3.146 7.354a.5.5 0 1 1 .708-.708L7.5 10.293V2a.5.5 0 1 1 1 0v8.293l3.646-3.647a.501.501 0 0 1 .708.708l-4.5 4.5a.5.5 0 0 1-.708 0zM13.5 13h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1"
package/dist/license.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_f3ec81b9_lang-BCpt_D_8.cjs");exports.LicenseProduct=e.L;exports.LicenseType=e.a;exports.useLicense=e.u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_aa5424ef_lang-Bh7hp9vX.cjs");exports.LicenseProduct=e.a;exports.LicenseType=e.L;exports.useLicense=e.u;
package/dist/license.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as a, a as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_f3ec81b9_lang-D2_mw9CP.js";
1
+ import { a, L as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_aa5424ef_lang-CCJvCqim.js";
2
2
  export {
3
3
  a as LicenseProduct,
4
4
  c as LicenseType,
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
1
+ import { createElementBlock as t, openBlock as n, createElementVNode as o } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function l(i, e) {
10
- return t(), n("svg", r, e[0] || (e[0] = [
10
+ return n(), t("svg", r, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  d: "m17.942 17.058-3.912-3.911a6.884 6.884 0 1 0-.883.883l3.91 3.912a.626.626 0 0 0 .885-.884M3.125 8.75a5.625 5.625 0 1 1 5.625 5.625A5.63 5.63 0 0 1 3.125 8.75"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function l(m, e) {
10
- return t(), o("svg", r, e[0] || (e[0] = [
10
+ return o(), t("svg", r, e[0] || (e[0] = [
11
11
  n("path", {
12
12
  fill: "currentColor",
13
13
  d: "M18.245 11.112a.63.63 0 0 0-.625-.156 6.88 6.88 0 0 1-8.578-8.579.625.625 0 0 0-.781-.78 8.2 8.2 0 0 0-4.134 2.89A8.125 8.125 0 0 0 10.625 17.5a8.05 8.05 0 0 0 4.884-1.631 8.2 8.2 0 0 0 2.89-4.134.62.62 0 0 0-.154-.623m-3.487 3.758A6.874 6.874 0 1 1 7.583 3.212a8.134 8.134 0 0 0 9.208 9.206 6.95 6.95 0 0 1-2.033 2.452"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function l(a, e) {
10
- return t(), o("svg", r, e[0] || (e[0] = [
10
+ return o(), t("svg", r, e[0] || (e[0] = [
11
11
  n("path", {
12
12
  fill: "currentColor",
13
13
  d: "M13.833 2.5H2.167a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h11.666a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-11.666 1H7.5v9H2.167zm11.666 9H8.5v-9h5.333z"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function l(h, e) {
10
- return t(), o("svg", n, e[0] || (e[0] = [
10
+ return o(), t("svg", n, e[0] || (e[0] = [
11
11
  r("path", {
12
12
  fill: "currentColor",
13
13
  d: "M11 1.5a.5.5 0 0 1 .5.5v5.5H14a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h2.5V2a.5.5 0 0 1 .5-.5zm-2.5 12h5v-5h-5zm-6 0h5v-5h-5zm3-6h5v-5h-5z"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
1
+ import { createElementBlock as t, openBlock as n, createElementVNode as o } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function l(i, e) {
10
- return t(), n("svg", r, e[0] || (e[0] = [
10
+ return n(), t("svg", r, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  d: "M12.333 2H3.667a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8.666a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m0 11H3.667V3h8.666z"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as o } from "vue";
1
+ import { createElementBlock as t, openBlock as l, createElementVNode as o } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function r(a, e) {
10
- return t(), l("svg", n, e[0] || (e[0] = [
10
+ return l(), t("svg", n, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  d: "m10.602 8.396 2.799-1.217a1 1 0 0 0-.089-1.862L3.307 2.05A.997.997 0 0 0 2.05 3.307l3.267 10.005a.99.99 0 0 0 .9.688h.05a.99.99 0 0 0 .912-.6l1.217-2.798 3.104 3.105a1 1 0 0 0 1.414 0l.793-.793a1 1 0 0 0 0-1.414zM12.207 13 9.102 9.896a1 1 0 0 0-1.625.308l-1.213 2.79L3 3l9.992 3.262-2.79 1.214a1 1 0 0 0-.309 1.625L13 12.207z"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as r, createElementVNode as n } from "vue";
1
+ import { createElementBlock as t, openBlock as r, createElementVNode as n } from "vue";
2
2
  const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const o = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function h(l, e) {
10
- return t(), r("svg", o, e[0] || (e[0] = [
10
+ return r(), t("svg", o, e[0] || (e[0] = [
11
11
  n("path", {
12
12
  fill: "currentColor",
13
13
  d: "M16.771 5.625h-1.146v-2.5A.625.625 0 0 0 15 2.5H5a.625.625 0 0 0-.625.625v2.5H3.229c-1.091 0-1.979.841-1.979 1.875v6.25a.625.625 0 0 0 .625.625h2.5v2.5A.625.625 0 0 0 5 17.5h10a.624.624 0 0 0 .625-.625v-2.5h2.5a.624.624 0 0 0 .625-.625V7.5c0-1.034-.887-1.875-1.979-1.875M5.625 3.75h8.75v1.875h-8.75zm8.75 12.5h-8.75V12.5h8.75zm3.125-3.125h-1.875v-1.25A.624.624 0 0 0 15 11.25H5a.625.625 0 0 0-.625.625v1.25H2.5V7.5c0-.345.327-.625.729-.625H16.77c.402 0 .729.28.729.625zm-1.875-4.062a.938.938 0 1 1-1.875 0 .938.938 0 0 1 1.875 0"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function l(a, e) {
10
- return t(), o("svg", n, e[0] || (e[0] = [
10
+ return o(), t("svg", n, e[0] || (e[0] = [
11
11
  r("path", {
12
12
  fill: "currentColor",
13
13
  d: "M17.5 10a7.5 7.5 0 0 1-7.4 7.5H10a7.45 7.45 0 0 1-5.148-2.047.624.624 0 1 1 .859-.909 6.25 6.25 0 1 0-.15-8.947L3.483 7.5h2.141a.625.625 0 0 1 0 1.25h-3.75a.625.625 0 0 1-.625-.625v-3.75a.625.625 0 0 1 1.25 0v2.328l2.207-2.016A7.5 7.5 0 0 1 17.5 10"
@@ -1,4 +1,4 @@
1
- import { openBlock as l, createElementBlock as o, createElementVNode as t } from "vue";
1
+ import { createElementBlock as l, openBlock as o, createElementVNode as t } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function r(a, e) {
10
- return l(), o("svg", n, e[0] || (e[0] = [
10
+ return o(), l("svg", n, e[0] || (e[0] = [
11
11
  t("path", {
12
12
  fill: "currentColor",
13
13
  "fill-rule": "evenodd",
@@ -1,4 +1,4 @@
1
- import { openBlock as l, createElementBlock as o, createElementVNode as t } from "vue";
1
+ import { createElementBlock as l, openBlock as o, createElementVNode as t } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function r(a, e) {
10
- return l(), o("svg", n, e[0] || (e[0] = [
10
+ return o(), l("svg", n, e[0] || (e[0] = [
11
11
  t("path", {
12
12
  fill: "currentColor",
13
13
  "fill-rule": "evenodd",
@@ -1,4 +1,4 @@
1
- import { openBlock as l, createElementBlock as t, createElementVNode as o } from "vue";
1
+ import { createElementBlock as l, openBlock as t, createElementVNode as o } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function n(a, e) {
10
- return l(), t("svg", r, e[0] || (e[0] = [
10
+ return t(), l("svg", r, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  "fill-rule": "evenodd",
@@ -1,4 +1,4 @@
1
- import { openBlock as a, createElementBlock as l, createElementVNode as o } from "vue";
1
+ import { createElementBlock as a, openBlock as l, createElementVNode as o } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 16 16"
8
8
  };
9
9
  function t(n, e) {
10
- return a(), l("svg", r, e[0] || (e[0] = [
10
+ return l(), a("svg", r, e[0] || (e[0] = [
11
11
  o("path", {
12
12
  fill: "currentColor",
13
13
  "fill-rule": "evenodd",
@@ -1,4 +1,4 @@
1
- import { openBlock as a, createElementBlock as t, createElementVNode as l } from "vue";
1
+ import { createElementBlock as a, openBlock as t, createElementVNode as l } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function o(r, e) {
10
- return a(), t("svg", n, e[0] || (e[0] = [
10
+ return t(), a("svg", n, e[0] || (e[0] = [
11
11
  l("path", {
12
12
  fill: "currentColor",
13
13
  d: "M9.375 3.125V1.25a.625.625 0 0 1 1.25 0v1.875a.625.625 0 1 1-1.25 0M15 10a5 5 0 1 1-10 0 5 5 0 0 1 10 0m-1.25 0a3.75 3.75 0 1 0-7.5 0 3.75 3.75 0 0 0 7.5 0M4.558 5.442a.625.625 0 0 0 .884-.884l-1.25-1.25a.625.625 0 0 0-.884.884zm0 9.116-1.25 1.25a.625.625 0 0 0 .884.884l1.25-1.25a.626.626 0 0 0-.884-.884M15 5.625a.63.63 0 0 0 .442-.183l1.25-1.25a.625.625 0 0 0-.884-.884l-1.25 1.25A.625.625 0 0 0 15 5.625m.442 8.933a.625.625 0 0 0-.884.884l1.25 1.25a.624.624 0 1 0 .884-.884zM3.75 10a.625.625 0 0 0-.625-.625H1.25a.625.625 0 0 0 0 1.25h1.875A.625.625 0 0 0 3.75 10M10 16.25a.625.625 0 0 0-.625.625v1.875a.625.625 0 1 0 1.25 0v-1.875A.624.624 0 0 0 10 16.25m8.75-6.875h-1.875a.625.625 0 1 0 0 1.25h1.875a.624.624 0 1 0 0-1.25"
@@ -1,4 +1,4 @@
1
- import { openBlock as o, createElementBlock as n, createElementVNode as e } from "vue";
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as e } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const r = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function h(l, t) {
10
- return o(), n("svg", r, t[0] || (t[0] = [
10
+ return n(), o("svg", r, t[0] || (t[0] = [
11
11
  e("g", { fill: "currentColor" }, [
12
12
  e("path", { d: "M16.875 3.125H3.125a1.25 1.25 0 0 0-1.25 1.25v11.25a1.25 1.25 0 0 0 1.25 1.25h13.75a1.25 1.25 0 0 0 1.25-1.25V4.375a1.25 1.25 0 0 0-1.25-1.25m-13.75 1.25h3.958v11.25H3.125zm13.75 11.25H8.333V4.375h8.542z" }),
13
13
  e("path", { d: "M4.25 5.833h1.667V7.5H4.25zM4.25 9.167h1.667v1.667H4.25zM4.25 12.5h1.667v1.667H4.25z" })
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
2
  const a = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const a = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function n(h, e) {
10
- return t(), o("svg", a, e[0] || (e[0] = [
10
+ return o(), t("svg", a, e[0] || (e[0] = [
11
11
  r("path", {
12
12
  fill: "currentColor",
13
13
  d: "M16.875 3.75H13.75v-.625a1.875 1.875 0 0 0-1.875-1.875h-3.75A1.875 1.875 0 0 0 6.25 3.125v.625H3.125a.625.625 0 0 0 0 1.25h.625v11.25A1.25 1.25 0 0 0 5 17.5h10a1.25 1.25 0 0 0 1.25-1.25V5h.625a.625.625 0 1 0 0-1.25M7.5 3.125a.625.625 0 0 1 .625-.625h3.75a.625.625 0 0 1 .625.625v.625h-5zM15 16.25H5V5h10zM8.75 8.125v5a.625.625 0 1 1-1.25 0v-5a.625.625 0 0 1 1.25 0m3.75 0v5a.624.624 0 1 1-1.25 0v-5a.625.625 0 1 1 1.25 0"
@@ -2,7 +2,7 @@ import type { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
2
2
  import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties, PasswordRequiredPayload } from '@/utils/types';
3
3
  import { ScrollMode, SelectionMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
4
4
  import '../style.scss';
5
- import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors } from '@vue-pdf-viewer/shared';
5
+ import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors, type XfdfImportResult, type Annotation } from '@vue-pdf-viewer/shared';
6
6
  declare const _default: {
7
7
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
8
8
  readonly src: {
@@ -208,6 +208,19 @@ declare const _default: {
208
208
  setFontColor: (color: string) => void;
209
209
  setFontSize: (size: number) => void;
210
210
  };
211
+ annotationXfdfControl: {
212
+ exportToXfdf: (options?: {
213
+ pdfFilename?: string;
214
+ download?: boolean;
215
+ }) => string;
216
+ importFromXfdf: (xfdfString: string) => XfdfImportResult;
217
+ };
218
+ annotationControl: {
219
+ getAnnotations: () => Annotation[];
220
+ clearAnnotations: () => void;
221
+ };
222
+ pdfDocument: import("vue").ShallowRef<PDFDocumentProxy | undefined, PDFDocumentProxy | undefined>;
223
+ totalPages: import("vue").Ref<number, number>;
211
224
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
212
225
  annotation: (data: AnnotationEventPayload) => void;
213
226
  } & {
@@ -472,6 +485,19 @@ declare const _default: {
472
485
  setFontColor: (color: string) => void;
473
486
  setFontSize: (size: number) => void;
474
487
  };
488
+ annotationXfdfControl: {
489
+ exportToXfdf: (options?: {
490
+ pdfFilename?: string;
491
+ download?: boolean;
492
+ }) => string;
493
+ importFromXfdf: (xfdfString: string) => XfdfImportResult;
494
+ };
495
+ annotationControl: {
496
+ getAnnotations: () => Annotation[];
497
+ clearAnnotations: () => void;
498
+ };
499
+ pdfDocument: import("vue").ShallowRef<PDFDocumentProxy | undefined, PDFDocumentProxy | undefined>;
500
+ totalPages: import("vue").Ref<number, number>;
475
501
  }, {}, {}, {}, {
476
502
  readonly workerUrl: string;
477
503
  readonly wasmUrl: string;
@@ -699,6 +725,19 @@ declare const _default: {
699
725
  setFontColor: (color: string) => void;
700
726
  setFontSize: (size: number) => void;
701
727
  };
728
+ annotationXfdfControl: {
729
+ exportToXfdf: (options?: {
730
+ pdfFilename?: string;
731
+ download?: boolean;
732
+ }) => string;
733
+ importFromXfdf: (xfdfString: string) => XfdfImportResult;
734
+ };
735
+ annotationControl: {
736
+ getAnnotations: () => Annotation[];
737
+ clearAnnotations: () => void;
738
+ };
739
+ pdfDocument: import("vue").ShallowRef<PDFDocumentProxy | undefined, PDFDocumentProxy | undefined>;
740
+ totalPages: import("vue").Ref<number, number>;
702
741
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
703
742
  annotation: (data: AnnotationEventPayload) => void;
704
743
  } & {
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import { type AnnotationPluginApi } from '@vue-pdf-viewer/shared';
2
+ import { type AnnotationPluginApi, type Annotation } from '@vue-pdf-viewer/shared';
3
3
  import type { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
4
4
  /**
5
5
  * Set the global annotation plugin API reference
@@ -65,6 +65,12 @@ export interface UseAnnotationStorageReturn {
65
65
  renderTrigger: Ref<number>;
66
66
  canvasRenderTrigger: Ref<number>;
67
67
  cancelBatchUpdate: () => void;
68
+ /** Bulk-insert parsed annotations into the editor storage map. Returns generated keys. */
69
+ bulkImportAnnotations: (annotations: Annotation[]) => string[];
70
+ /** Remove all editor annotations from storage. Returns count of cleared entries. */
71
+ clearAllAnnotations: () => number;
72
+ /** The active annotation plugin API, or null when the plugin is not loaded. */
73
+ pluginApi: Ref<AnnotationPluginApi | null>;
68
74
  ensureStorageInitialized: () => boolean;
69
75
  getEditorKey: () => string;
70
76
  getAnnotationById: (id: string) => any;
@@ -122,7 +122,8 @@ export type UpdatePasswordFn = (newPassword: string) => void;
122
122
  export type OnPasswordCallback = (updatePassword: UpdatePasswordFn, reason: any) => void;
123
123
  export type OnErrorCallback = (error: any) => void;
124
124
  export declare enum ErrorType {
125
- NOT_SUPPORTED = "not-supported"
125
+ NOT_SUPPORTED = "not-supported",
126
+ PASSWORD_REQUIRED = "password-required"
126
127
  }
127
128
  /**
128
129
  * Payload for the password-required event.
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
2
2
  const l = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const l = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function r(a, e) {
10
- return t(), o("svg", l, e[0] || (e[0] = [
10
+ return o(), t("svg", l, e[0] || (e[0] = [
11
11
  n("path", {
12
12
  fill: "currentColor",
13
13
  d: "M11.875 8.75a.625.625 0 0 1-.625.625H9.375v1.875a.625.625 0 0 1-1.25 0V9.375H6.25a.625.625 0 0 1 0-1.25h1.875V6.25a.625.625 0 0 1 1.25 0v1.875h1.875a.625.625 0 0 1 .625.625m6.067 9.192a.623.623 0 0 1-.884 0l-3.911-3.911a6.884 6.884 0 1 1 .883-.884l3.912 3.91a.625.625 0 0 1 0 .885M8.75 14.375A5.625 5.625 0 1 0 3.125 8.75a5.63 5.63 0 0 0 5.625 5.625"
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as l } from "vue";
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as l } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
@@ -7,7 +7,7 @@ const n = {
7
7
  viewBox: "0 0 20 20"
8
8
  };
9
9
  function r(a, e) {
10
- return t(), o("svg", n, e[0] || (e[0] = [
10
+ return o(), t("svg", n, e[0] || (e[0] = [
11
11
  l("path", {
12
12
  fill: "currentColor",
13
13
  d: "M11.875 8.75a.625.625 0 0 1-.625.625h-5a.625.625 0 0 1 0-1.25h5a.625.625 0 0 1 .625.625m6.067 9.192a.623.623 0 0 1-.884 0l-3.911-3.911a6.884 6.884 0 1 1 .883-.884l3.912 3.91a.625.625 0 0 1 0 .885M8.75 14.375A5.625 5.625 0 1 0 3.125 8.75a5.63 5.63 0 0 0 5.625 5.625"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "4.2.0",
4
+ "version": "4.3.0-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "prepare": "husky"
66
66
  },
67
67
  "dependencies": {
68
- "@vue-pdf-viewer/shared": "1.5.0",
68
+ "@vue-pdf-viewer/shared": "1.6.0-rc.0",
69
69
  "@vueuse/core": "^13.6.0",
70
70
  "node-forge": "^1.3.2",
71
71
  "pdfjs-dist": "5.4.530",