@vue-pdf-viewer/viewer 3.12.0-beta.2 → 4.0.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 (199) hide show
  1. package/README.md +2 -2
  2. package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_9b7953f5_lang-CANTRuxC.js → VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-CbVNExyD.js} +2152 -1960
  3. package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_b89b6109_lang-CgZy-lRD.cjs +48 -0
  4. package/dist/{annotation-circle-0ubo5rf1.js → annotation-circle-BQBy6tn3.js} +2 -2
  5. package/dist/{annotation-font-style-italic-DcGlIJ1a.js → annotation-font-style-italic-BcdR3gg4.js} +2 -2
  6. package/dist/{annotation-font-style-underline-BTkTZ_Is.js → annotation-font-style-underline-BIIeUL-E.js} +2 -2
  7. package/dist/{annotation-font-weight-bold-xwBIbXyc.js → annotation-font-weight-bold-BjNpYNH-.js} +2 -2
  8. package/dist/{annotation-font-weSbdjgD.js → annotation-font-zZyS-SlV.js} +2 -2
  9. package/dist/{annotation-freetext-CQ_RRlBQ.js → annotation-freetext-ej2f4XcK.js} +2 -2
  10. package/dist/{annotation-highlight-ChCnie-U.js → annotation-highlight-C0eb8QWg.js} +2 -2
  11. package/dist/{annotation-ink-AUjv0MoR.js → annotation-ink-yBnUj3B7.js} +2 -2
  12. package/dist/{annotation-line-DNXr-JOS.js → annotation-line-BUVRX9rx.js} +2 -2
  13. package/dist/{annotation-link-D-YgulsY.js → annotation-link-DoW9ZY_d.js} +2 -2
  14. package/dist/{annotation-signature-Bkex5Nk1.js → annotation-signature-pDvKQWlM.js} +2 -2
  15. package/dist/{annotation-square-BfIB5mW3.js → annotation-square-Bk2373TM.js} +2 -2
  16. package/dist/{annotation-squiggly-DeBMymIe.js → annotation-squiggly-YtuSed0x.js} +2 -2
  17. package/dist/{annotation-stamp-DWiWsYdA.js → annotation-stamp-C2wpc7h6.js} +2 -2
  18. package/dist/{annotation-strikeout-CWDrP0rU.js → annotation-strikeout-BGVZPNAE.js} +2 -2
  19. package/dist/{annotation-text-DeYYDSKn.js → annotation-text-BOIyodIU.js} +2 -2
  20. package/dist/{annotation-underline-CgwFacyd.js → annotation-underline-DoWqt0zo.js} +2 -2
  21. package/dist/{arrow-up-BiwEJddu.js → arrow-up-Ctk-zewR.js} +2 -2
  22. package/dist/{check-dvYcg6X_.js → check-DQCKtaYd.js} +2 -2
  23. package/dist/{chevron-down-CVDp3iv9.js → chevron-down-D4_y88NG.js} +2 -2
  24. package/dist/{clear-D0d0aXhI.js → clear-BiZkcsym.js} +2 -2
  25. package/dist/{close-IpbbaszX.js → close-IMkeZ8kc.js} +2 -2
  26. package/dist/{comment-panel-D6A8yNfw.js → comment-panel-BdDz1A7Q.js} +2 -2
  27. package/dist/{download-CMOMvnwF.js → download-DzjxbCsv.js} +2 -2
  28. package/dist/{drag-icon-3GRPy1Gk.js → drag-icon-DOmc0ruK.js} +2 -2
  29. package/dist/{drag-icon-dark-DXLtAf-Z.js → drag-icon-dark-KP2APQRZ.js} +2 -2
  30. package/dist/{ellipsis-vertical-BdPl_QKK.js → ellipsis-vertical-Be4cs0zL.js} +2 -2
  31. package/dist/{empty-comment-dark-BCCY0a2L.js → empty-comment-dark-C727VX0e.js} +2 -2
  32. package/dist/{empty-comment-light-B4FDCCnF.js → empty-comment-light-C_MCSiSZ.js} +2 -2
  33. package/dist/{file-HYz_W_Bn.js → file-DxJhIWIs.js} +2 -2
  34. package/dist/{first-page-DF2-f8F5.js → first-page-D6g7jaNj.js} +2 -2
  35. package/dist/{fullscreen-DxRYZ3Qt.js → fullscreen-BbC1XVkp.js} +2 -2
  36. package/dist/{hand-CgNhcMPW.js → hand-BDnbYf2g.js} +2 -2
  37. package/dist/{index-BAHQSucx.js → index-D9-DcVaR.js} +1995 -1967
  38. package/dist/index-XDzAKC8V.cjs +27 -0
  39. package/dist/index.cjs +19 -19
  40. package/dist/index.js +13601 -13502
  41. package/dist/{info-CssPzj9L.js → info-CPe9YuhZ.js} +2 -2
  42. package/dist/{last-page-DrYSRMe5.js → last-page-DP_aiVT6.js} +2 -2
  43. package/dist/lib/assets/pdf-legacy/pdf.worker.min.mjs +8 -1
  44. package/dist/lib/assets/pdf.worker.min.mjs +8 -1
  45. package/dist/license.cjs +1 -1
  46. package/dist/license.js +1 -1
  47. package/dist/{magnifier-DQHbDi_X.js → magnifier-C_YQ-_dk.js} +2 -2
  48. package/dist/{moon-DXlgBCWH.js → moon-CFoAH0E8.js} +2 -2
  49. package/dist/{page-view-dual-CeQyiqfI.js → page-view-dual-Bvx14KbJ.js} +2 -2
  50. package/dist/{page-view-dual-with-cover-BT5sW_cl.js → page-view-dual-with-cover-DIHiS3rt.js} +2 -2
  51. package/dist/{page-view-single-Cp9W1OUV.js → page-view-single-srjCDw_P.js} +2 -2
  52. package/dist/{pointer-BppCj8EV.js → pointer-DDPsuK9z.js} +2 -2
  53. package/dist/{printer-BFl4fVY9.js → printer-C2onvDqO.js} +2 -2
  54. package/dist/{rotate-counter-clockwise-C4VIpGoU.js → rotate-counter-clockwise-d9-d6DQu.js} +2 -2
  55. package/dist/{scrolling-horizontal-CLl5lWK8.js → scrolling-horizontal-av5LVY8f.js} +2 -2
  56. package/dist/{scrolling-page-C5NJekbJ.js → scrolling-page-Cc6u7H1t.js} +2 -2
  57. package/dist/{scrolling-vertical-DjEDpf4E.js → scrolling-vertical-dsX3d6Yv.js} +2 -2
  58. package/dist/{scrolling-wrapped-BYH7Nvoa.js → scrolling-wrapped-BwcsO1WS.js} +2 -2
  59. package/dist/{sun-gPHy98wE.js → sun-3lZB5S__.js} +2 -2
  60. package/dist/{thumbnail-BIBuAei4.js → thumbnail-CIo49MEr.js} +2 -2
  61. package/dist/{trash-TzreR6N5.js → trash-22hixXTM.js} +2 -2
  62. package/dist/types/components/AppButton.vue.d.ts +11 -17
  63. package/dist/types/components/AppColorPicker.vue.d.ts +11 -14
  64. package/dist/types/components/AppFormControl.vue.d.ts +6 -24
  65. package/dist/types/components/AppIcon.vue.d.ts +3 -13
  66. package/dist/types/components/AppInput.vue.d.ts +1 -10
  67. package/dist/types/components/AppLoader.vue.d.ts +13 -18
  68. package/dist/types/components/AppPopover.vue.d.ts +21 -76
  69. package/dist/types/components/AppTooltip.vue.d.ts +14 -31
  70. package/dist/types/components/ColorButton.vue.d.ts +10 -13
  71. package/dist/types/components/DragFileMask.vue.d.ts +11 -45
  72. package/dist/types/components/FreeTextPanel.vue.d.ts +9 -1
  73. package/dist/types/components/FreeTextPanelFontColors.vue.d.ts +8 -1
  74. package/dist/types/components/FreeTextPanelFontFamilySelector.vue.d.ts +8 -1
  75. package/dist/types/components/FreeTextPanelFontSizeSelector.vue.d.ts +8 -1
  76. package/dist/types/components/LayerAnnotation.vue.d.ts +15 -36
  77. package/dist/types/components/LayerAnnotationEditor.vue.d.ts +3 -18
  78. package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +20 -31
  79. package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +8 -19
  80. package/dist/types/components/LayerAnnotationEditorHighlight.vue.d.ts +22 -31
  81. package/dist/types/components/LayerAnnotationEditorHighlightItem.vue.d.ts +3 -18
  82. package/dist/types/components/LayerAnnotationEditorImage.vue.d.ts +13 -20
  83. package/dist/types/components/LayerAnnotationEditorTextSelectionItem.vue.d.ts +7 -18
  84. package/dist/types/components/LayerAnnotationEditorTextSelectionItemMenu.vue.d.ts +15 -19
  85. package/dist/types/components/LayerAnnotationStampResizer.vue.d.ts +7 -17
  86. package/dist/types/components/LayerCanvas.vue.d.ts +4 -13
  87. package/dist/types/components/LayerCanvasDetail.vue.d.ts +1 -10
  88. package/dist/types/components/LayerOverlay.vue.d.ts +15 -35
  89. package/dist/types/components/LayerText.vue.d.ts +9 -23
  90. package/dist/types/components/LayerTextHighlight.vue.d.ts +1 -10
  91. package/dist/types/components/LayerTextSearchHighlight.vue.d.ts +1 -10
  92. package/dist/types/components/LayerXFA.vue.d.ts +10 -21
  93. package/dist/types/components/ModalPassword.vue.d.ts +11 -14
  94. package/dist/types/components/ModalPdfProperties.vue.d.ts +4 -13
  95. package/dist/types/components/ModalPrintLoadingProgress.vue.d.ts +4 -13
  96. package/dist/types/components/SwitchAppearance.vue.d.ts +25 -22
  97. package/dist/types/components/ToolCommentPanel.vue.d.ts +24 -29
  98. package/dist/types/components/ToolDownload.vue.d.ts +15 -20
  99. package/dist/types/components/ToolFullscreen.vue.d.ts +16 -21
  100. package/dist/types/components/ToolMenuOthers.vue.d.ts +37 -76
  101. package/dist/types/components/ToolMenuOthersMobile.vue.d.ts +7 -12
  102. package/dist/types/components/ToolOpenFile.vue.d.ts +15 -20
  103. package/dist/types/components/ToolOpenFileInput.vue.d.ts +3 -4
  104. package/dist/types/components/ToolPagination.vue.d.ts +26 -60
  105. package/dist/types/components/ToolPrint.vue.d.ts +10 -27
  106. package/dist/types/components/ToolSearch.vue.d.ts +23 -57
  107. package/dist/types/components/ToolThumbnail.vue.d.ts +13 -36
  108. package/dist/types/components/ToolZoom.vue.d.ts +21 -45
  109. package/dist/types/components/ToolZoomPercentageMenu.vue.d.ts +7 -18
  110. package/dist/types/components/VPdfComments.vue.d.ts +6 -17
  111. package/dist/types/components/VPdfCommentsDate.vue.d.ts +3 -13
  112. package/dist/types/components/VPdfCommentsHeader.vue.d.ts +3 -13
  113. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +3 -13
  114. package/dist/types/components/VPdfCommentsReplies.vue.d.ts +3 -13
  115. package/dist/types/components/VPdfCommentsSidebar.vue.d.ts +3 -4
  116. package/dist/types/components/VPdfCommentsText.vue.d.ts +11 -1
  117. package/dist/types/components/VPdfPage.vue.d.ts +16 -55
  118. package/dist/types/components/VPdfThumbnail.vue.d.ts +6 -17
  119. package/dist/types/components/VPdfThumbnails.vue.d.ts +6 -15
  120. package/dist/types/components/VPdfViewer.vue.d.ts +315 -603
  121. package/dist/types/components/ui/button/Button.vue.d.ts +8 -41
  122. package/dist/types/components/ui/button/index.d.ts +1 -1
  123. package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +15 -29
  124. package/dist/types/components/ui/collapsible/Collapsible.vue.d.ts +15 -26
  125. package/dist/types/components/ui/collapsible/CollapsibleContent.vue.d.ts +9 -24
  126. package/dist/types/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +9 -24
  127. package/dist/types/components/ui/dialog/Dialog.vue.d.ts +13 -24
  128. package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +9 -24
  129. package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +25 -29
  130. package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +11 -29
  131. package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +11 -29
  132. package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +11 -29
  133. package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +11 -29
  134. package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +9 -24
  135. package/dist/types/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +13 -24
  136. package/dist/types/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +17 -29
  137. package/dist/types/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +23 -44
  138. package/dist/types/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +9 -24
  139. package/dist/types/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +13 -35
  140. package/dist/types/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +12 -32
  141. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -24
  142. package/dist/types/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +16 -32
  143. package/dist/types/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -13
  144. package/dist/types/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +11 -29
  145. package/dist/types/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +13 -24
  146. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +27 -29
  147. package/dist/types/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -29
  148. package/dist/types/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -24
  149. package/dist/types/components/ui/input/Input.vue.d.ts +4 -13
  150. package/dist/types/components/ui/popover/Popover.vue.d.ts +13 -24
  151. package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +27 -55
  152. package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +9 -24
  153. package/dist/types/components/ui/progress/Progress.vue.d.ts +4 -23
  154. package/dist/types/components/ui/select/Select.vue.d.ts +16 -24
  155. package/dist/types/components/ui/select/SelectContent.vue.d.ts +21 -48
  156. package/dist/types/components/ui/select/SelectGroup.vue.d.ts +11 -29
  157. package/dist/types/components/ui/select/SelectItem.vue.d.ts +11 -29
  158. package/dist/types/components/ui/select/SelectItemText.vue.d.ts +9 -24
  159. package/dist/types/components/ui/select/SelectLabel.vue.d.ts +11 -29
  160. package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +11 -29
  161. package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +11 -29
  162. package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +3 -13
  163. package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +11 -29
  164. package/dist/types/components/ui/select/SelectValue.vue.d.ts +9 -24
  165. package/dist/types/components/ui/toast/Toast.vue.d.ts +91 -24
  166. package/dist/types/components/ui/toast/ToastAction.vue.d.ts +11 -29
  167. package/dist/types/components/ui/toast/ToastClose.vue.d.ts +3 -13
  168. package/dist/types/components/ui/toast/ToastDescription.vue.d.ts +11 -29
  169. package/dist/types/components/ui/toast/ToastProvider.vue.d.ts +9 -24
  170. package/dist/types/components/ui/toast/ToastTitle.vue.d.ts +11 -29
  171. package/dist/types/components/ui/toast/ToastViewport.vue.d.ts +3 -13
  172. package/dist/types/components/ui/toast/index.d.ts +1 -1
  173. package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +13 -24
  174. package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +17 -44
  175. package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +9 -24
  176. package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +9 -24
  177. package/dist/types/components/utils/annotations.d.ts +2 -1
  178. package/dist/types/components/utils/link_service.d.ts +10 -0
  179. package/dist/types/composables/useAnnotationFreeText.d.ts +454 -248
  180. package/dist/types/composables/useAnnotationHighlight.d.ts +288 -178
  181. package/dist/types/composables/useAnnotationStamp.d.ts +344 -212
  182. package/dist/types/composables/useAnnotationStrikethrough.d.ts +326 -216
  183. package/dist/types/composables/useAnnotationUnderline.d.ts +326 -216
  184. package/dist/types/composables/useDownload.d.ts +1 -1
  185. package/dist/types/composables/usePinch.d.ts +2 -2
  186. package/dist/types/composables/usePrintControl.d.ts +1 -1
  187. package/dist/types/composables/useRotation.d.ts +1 -1
  188. package/dist/types/composables/useScale.d.ts +4 -4
  189. package/dist/types/const.d.ts +29 -1096
  190. package/dist/types/utils/CanvasRender.d.ts +0 -1
  191. package/dist/types/utils/highlight.d.ts +6 -1
  192. package/dist/types/utils/searchHighlight.d.ts +1 -1
  193. package/dist/types/utils/types.d.ts +3 -3
  194. package/dist/{zoom-in-CPaNSJ1z.js → zoom-in-BUg87bP_.js} +2 -2
  195. package/dist/{zoom-out-CLnidFKC.js → zoom-out-C7L8Ab_Y.js} +2 -2
  196. package/package.json +7 -5
  197. package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_9b7953f5_lang-CoSH1YWG.cjs +0 -48
  198. package/dist/index-B9gGGXMy.cjs +0 -27
  199. package/dist/types/utils/transformMatrix.d.ts +0 -3
@@ -8,7 +8,6 @@
8
8
  * - Immediate cleanup via width=0, height=0 (releases GPU texture)
9
9
  * - Lifecycle guards to prevent DOM manipulation after unmount
10
10
  */
11
- /// <reference types="node" />
12
11
  import { type Ref } from 'vue';
13
12
  /**
14
13
  * Canvas context options optimized for PDF rendering.
@@ -5,7 +5,12 @@ interface MatchWithLines extends Match {
5
5
  }
6
6
  declare function isMatchEntireWord(content: string, startIdx: number, length: number): boolean;
7
7
  declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[]): void;
8
+ /**
9
+ * Appends highlights without removing existing ones.
10
+ * Works with the current DOM structure to preserve overlapping highlights.
11
+ */
12
+ declare function appendHighlightMatches(matches: Match[], textDivs: HTMLElement[]): void;
8
13
  declare function resetDivs(textContent: TextContent, textDivs: HTMLElement[]): void;
9
14
  declare function findMatches(queries: (string | RegExp)[], textContent: TextContent, pageIndex: number, options: HighlightOptions): MatchWithLines[];
10
15
  declare function getHighlightOptionsWithDefaults(options?: HighlightOptions): HighlightOptions;
11
- export { findMatches, highlightMatches, resetDivs, getHighlightOptionsWithDefaults, isMatchEntireWord };
16
+ export { appendHighlightMatches, findMatches, highlightMatches, resetDivs, getHighlightOptionsWithDefaults, isMatchEntireWord };
@@ -2,7 +2,7 @@ import type { CSSProperties } from 'vue';
2
2
  import type { FlagKeyword, HighlightArea, HighlightMatchPosition, NormalizedKeyword, SingleKeyword } from './types';
3
3
  export declare const normalizeFlagKeyword: (flagKeyword: FlagKeyword) => NormalizedKeyword;
4
4
  export declare const normalizeSingleKeyword: (keyword: SingleKeyword, matchCase?: boolean, wholeWords?: boolean) => NormalizedKeyword;
5
- export declare const sortHighlightPosition: (a: HighlightArea, b: HighlightArea) => 0 | 1 | -1;
5
+ export declare const sortHighlightPosition: (a: HighlightArea, b: HighlightArea) => 1 | 0 | -1;
6
6
  export declare const getHighlightStyle: (area: HighlightArea) => CSSProperties;
7
7
  export declare const unwrap: (ele: Node) => void;
8
8
  export declare const getHighlightElement: (layerRef: HTMLElement, query: HighlightMatchPosition, selector?: string) => HTMLElement;
@@ -495,7 +495,7 @@ export type TextSelectionMenuOption = Pick<TextSelectionOption, 'highlight' | 'u
495
495
  export type TextSelectionMenuItemOption = AnnotationToolOption;
496
496
  export declare const VPVBaseProps: {
497
497
  readonly src: {
498
- readonly type: PropType<string | VPVSrc>;
498
+ readonly type: PropType<VPVSrc | string>;
499
499
  readonly required: true;
500
500
  };
501
501
  readonly workerUrl: {
@@ -547,7 +547,7 @@ export declare const VPVBaseProps: {
547
547
  readonly default: undefined;
548
548
  };
549
549
  readonly toolbarOptions: {
550
- readonly type: PropType<false | Partial<ToolbarOptions>>;
550
+ readonly type: PropType<Partial<ToolbarOptions> | false>;
551
551
  readonly default: () => ToolbarOptions;
552
552
  };
553
553
  readonly localization: {
@@ -566,7 +566,7 @@ export declare const VPVBaseProps: {
566
566
  * Experiment property
567
567
  */
568
568
  readonly textHighlights: {
569
- readonly type: PropType<TextHighlight[]>;
569
+ readonly type: PropType<Array<TextHighlight>>;
570
570
  readonly default: undefined;
571
571
  readonly validator: (value: Array<TextHighlight>) => boolean;
572
572
  };
@@ -1,4 +1,4 @@
1
- import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
1
+ import { openBlock as t, createElementBlock 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 o(), t("svg", l, [...e[0] || (e[0] = [
10
+ return t(), o("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 { createElementBlock as t, openBlock as o, createElementVNode as l } from "vue";
1
+ import { openBlock as t, createElementBlock 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 o(), t("svg", n, [...e[0] || (e[0] = [
10
+ return t(), o("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": "3.12.0-beta.2",
4
+ "version": "4.0.0-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -68,16 +68,18 @@
68
68
  "@vue-pdf-viewer/shared": "1.4.0",
69
69
  "@vueuse/core": "^13.6.0",
70
70
  "node-forge": "^1.3.2",
71
- "pdfjs-dist": "4.10.38",
71
+ "pdfjs-dist": "5.4.530",
72
72
  "reka-ui": "^2.4.1",
73
73
  "vite-plugin-css-injected-by-js": "^3.5.1"
74
74
  },
75
75
  "peerDependencies": {
76
- "pdfjs-dist": "^4.10.38",
76
+ "pdfjs-dist": "^5.4.530",
77
77
  "vue": "^3.2.37"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@laynezh/vite-plugin-lib-assets": "^0.5.24",
81
+ "@esbuild/darwin-arm64": "0.21.5",
82
+ "@esbuild/darwin-x64": "0.21.5",
81
83
  "@rollup/rollup-darwin-x64": "^4.19.1",
82
84
  "@types/node": "^20.11.30",
83
85
  "@types/node-forge": "^1.3.14",
@@ -106,7 +108,7 @@
106
108
  "sass": "^1.75.0",
107
109
  "shadcn-vue": "^0.11.3",
108
110
  "tailwind-merge": "^3.0.2",
109
- "typescript": "^4.6.4",
111
+ "typescript": "~5.6.3",
110
112
  "unocss": "^65.4.2",
111
113
  "unocss-preset-shadcn": "^0.3.1",
112
114
  "vite": "^5.2.8",
@@ -116,7 +118,7 @@
116
118
  "vitest": "^3.2.4",
117
119
  "vitest-browser-vue": "^1.1.0",
118
120
  "vue": "^3.5.14",
119
- "vue-tsc": "^0.40.4",
121
+ "vue-tsc": "^2.2.8",
120
122
  "webdriverio": "^8.36.0"
121
123
  },
122
124
  "engines": {