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

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.
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_aa5424ef_lang-Bh7hp9vX.cjs");exports.LicenseProduct=e.a;exports.LicenseType=e.L;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_8748e302_lang-26dzVsS8.cjs");exports.LicenseProduct=e.a;exports.LicenseType=e.L;exports.useLicense=e.u;
package/dist/license.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, L as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_aa5424ef_lang-CCJvCqim.js";
1
+ import { a, L as c, u as L } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_8748e302_lang-BvYOS6kB.js";
2
2
  export {
3
3
  a as LicenseProduct,
4
4
  c as LicenseType,
@@ -1,8 +1,8 @@
1
1
  import type { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
2
- import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties, PasswordRequiredPayload } from '@/utils/types';
2
+ import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties, PasswordRequiredPayload, XfdfExportOptions, XfdfImportResult } from '@/utils/types';
3
3
  import { ScrollMode, SelectionMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
4
4
  import '../style.scss';
5
- import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors, type XfdfImportResult, type Annotation } from '@vue-pdf-viewer/shared';
5
+ import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors, 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: {
@@ -209,10 +209,7 @@ declare const _default: {
209
209
  setFontSize: (size: number) => void;
210
210
  };
211
211
  annotationXfdfControl: {
212
- exportToXfdf: (options?: {
213
- pdfFilename?: string;
214
- download?: boolean;
215
- }) => string;
212
+ exportToXfdf: (options?: XfdfExportOptions) => string;
216
213
  importFromXfdf: (xfdfString: string) => XfdfImportResult;
217
214
  };
218
215
  annotationControl: {
@@ -486,10 +483,7 @@ declare const _default: {
486
483
  setFontSize: (size: number) => void;
487
484
  };
488
485
  annotationXfdfControl: {
489
- exportToXfdf: (options?: {
490
- pdfFilename?: string;
491
- download?: boolean;
492
- }) => string;
486
+ exportToXfdf: (options?: XfdfExportOptions) => string;
493
487
  importFromXfdf: (xfdfString: string) => XfdfImportResult;
494
488
  };
495
489
  annotationControl: {
@@ -726,10 +720,7 @@ declare const _default: {
726
720
  setFontSize: (size: number) => void;
727
721
  };
728
722
  annotationXfdfControl: {
729
- exportToXfdf: (options?: {
730
- pdfFilename?: string;
731
- download?: boolean;
732
- }) => string;
723
+ exportToXfdf: (options?: XfdfExportOptions) => string;
733
724
  importFromXfdf: (xfdfString: string) => XfdfImportResult;
734
725
  };
735
726
  annotationControl: {
@@ -1,17 +1,17 @@
1
1
  import type { SelectRootProps } from 'reka-ui';
2
2
  declare const _default: {
3
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
4
4
  P: {};
5
5
  B: {};
6
6
  D: {};
7
7
  C: {};
8
8
  M: {};
9
9
  Defaults: {};
10
- }, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ }, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
11
11
  __isFragment?: undefined;
12
12
  __isTeleport?: undefined;
13
13
  __isSuspense?: undefined;
14
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui/dist/index3.js").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
14
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectRootProps<import("reka-ui").AcceptableValue>>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
15
15
  $slots: {
16
16
  default: (_: {}) => any;
17
17
  };
@@ -1,7 +1,7 @@
1
1
  import type { SelectItemProps } from 'reka-ui';
2
2
  import type { HTMLAttributes } from 'vue';
3
3
  declare const _default: {
4
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
5
5
  class?: HTMLAttributes['class'];
6
6
  }>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
7
7
  P: {};
@@ -10,13 +10,13 @@ declare const _default: {
10
10
  C: {};
11
11
  M: {};
12
12
  Defaults: {};
13
- }, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
13
+ }, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
14
14
  class?: HTMLAttributes['class'];
15
15
  }>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
16
16
  __isFragment?: undefined;
17
17
  __isTeleport?: undefined;
18
18
  __isSuspense?: undefined;
19
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui/dist/index3.js").AcceptableValue> & {
19
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SelectItemProps<import("reka-ui").AcceptableValue> & {
20
20
  class?: HTMLAttributes['class'];
21
21
  }>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
22
22
  $slots: {
@@ -3,7 +3,7 @@ import { Locales } from '@vue-pdf-viewer/shared';
3
3
  export declare const VPdfViewerPlugin: Plugin;
4
4
  export { Locales };
5
5
  export * from './components';
6
- export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult } from './utils/types';
6
+ export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult, XfdfExportOptions, AnnotationXfdfControl, XfdfImportResult, XfdfSkippedEntry } from './utils/types';
7
7
  export type { TextContent } from 'pdfjs-dist/types/src/display/api';
8
8
  export type { Localization } from '@vue-pdf-viewer/shared';
9
9
  export default VPdfViewerPlugin;
@@ -2,7 +2,7 @@ import { ComputedRef, MaybeRef, PropType, Reactive, Ref } from 'vue';
2
2
  import type { PageViewport, RenderTask } from 'pdfjs-dist';
3
3
  import type { DocumentInitParameters, OnProgressParameters, PDFDataRangeTransport, TextContent, TypedArray, PDFPageProxy, PDFDocumentProxy, RenderParameters } from 'pdfjs-dist/types/src/display/api';
4
4
  import type { Metadata } from 'pdfjs-dist/types/src/display/metadata';
5
- import type { Annotation, AnnotationToolOption, TextSelectionOption, AnnotationTextSelectionControl, AnnotationFreeTextControl } from '@vue-pdf-viewer/shared';
5
+ import type { Annotation, AnnotationToolOption, TextSelectionOption, AnnotationTextSelectionControl, AnnotationFreeTextControl, XfdfImportResult, XfdfSkippedEntry } from '@vue-pdf-viewer/shared';
6
6
  import { ZoomLevel, ViewMode, ScrollMode, SelectionMode, VPVAnnotationType, LicenseType, LicenseProduct } from './enumerators';
7
7
  import { Localization, Plugin, AnnotationType } from '@vue-pdf-viewer/shared';
8
8
  export interface VirtualRange {
@@ -708,6 +708,15 @@ export interface UseScaleCallback {
708
708
  mode?: ZoomLevel;
709
709
  error?: string;
710
710
  }
711
+ export interface XfdfExportOptions {
712
+ pdfFilename?: string;
713
+ download?: boolean;
714
+ }
715
+ export interface AnnotationXfdfControl {
716
+ exportToXfdf: (options?: XfdfExportOptions) => string;
717
+ importFromXfdf: (xfdfString: string) => XfdfImportResult;
718
+ }
719
+ export type { XfdfImportResult, XfdfSkippedEntry };
711
720
  export interface VPVInstance {
712
721
  printControl: Reactive<PrintControl> | undefined;
713
722
  searchControl: SearchControl | undefined;
@@ -718,6 +727,7 @@ export interface VPVInstance {
718
727
  passwordControl: Reactive<PasswordControl> | undefined;
719
728
  annotationTextSelectionControl: Reactive<AnnotationTextSelectionControl> | undefined;
720
729
  annotationFreeTextControl: Reactive<AnnotationFreeTextControl> | undefined;
730
+ annotationXfdfControl: Reactive<AnnotationXfdfControl> | undefined;
721
731
  }
722
732
  export interface NavigationAnnotation {
723
733
  action: 'FirstPage' | 'LastPage' | 'NextPage' | 'PrevPage';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "4.3.0-beta.1",
4
+ "version": "4.3.0-beta.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",