@vue-pdf-viewer/viewer 3.0.0-alpha.9 → 3.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.
- package/dist/index.js +10606 -10417
- package/dist/index.umd.cjs +22 -31
- package/dist/types/components/AppTooltip.vue.d.ts +3 -3
- package/dist/types/components/FreeTextPanel.vue.d.ts +1 -15
- package/dist/types/components/LayerAnnotationEditorFreeText.vue.d.ts +3 -0
- package/dist/types/components/LayerAnnotationEditorFreeTextItem.vue.d.ts +10 -4
- package/dist/types/components/ui/select/SelectContent.vue.d.ts +3 -0
- package/dist/types/composables/__mocks__/useLicense.d.ts +12 -0
- package/dist/types/composables/useAnnotationFreeText.d.ts +1097 -23
- package/dist/types/composables/useAnnotationHighlight.d.ts +22 -22
- package/dist/types/composables/useAnnotationStamp.d.ts +42 -22
- package/dist/types/composables/useAnnotationStorage.d.ts +1 -1
- package/dist/types/composables/usePlugins.d.ts +1 -1
- package/dist/types/utils/annotation-free-text.d.ts +3 -4
- package/dist/types/utils/annotation-highlight.d.ts +19 -0
- package/dist/types/utils/types.d.ts +23 -9
- package/dist/types/utils.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
contentSide?: "
|
|
3
|
+
contentSide?: "left" | "top" | "right" | "bottom" | undefined;
|
|
4
4
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
5
5
|
P: {};
|
|
6
6
|
B: {};
|
|
@@ -9,13 +9,13 @@ declare const _default: {
|
|
|
9
9
|
M: {};
|
|
10
10
|
Defaults: {};
|
|
11
11
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
-
contentSide?: "
|
|
12
|
+
contentSide?: "left" | "top" | "right" | "bottom" | undefined;
|
|
13
13
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
14
14
|
__isFragment?: undefined;
|
|
15
15
|
__isTeleport?: undefined;
|
|
16
16
|
__isSuspense?: undefined;
|
|
17
17
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
-
contentSide?: "
|
|
18
|
+
contentSide?: "left" | "top" | "right" | "bottom" | undefined;
|
|
19
19
|
}>>> & 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 () => {
|
|
20
20
|
$slots: {
|
|
21
21
|
default: (_: {}) => any;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
annotation: AnnotationFreeText;
|
|
4
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
annotation: AnnotationFreeText;
|
|
6
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
2
|
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -2,6 +2,7 @@ import { AnnotationFreeText } from '@/utils/types';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
annotation: AnnotationFreeText;
|
|
5
|
+
isDragging: boolean;
|
|
5
6
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
6
7
|
P: {};
|
|
7
8
|
B: {};
|
|
@@ -11,12 +12,14 @@ declare const _default: {
|
|
|
11
12
|
Defaults: {};
|
|
12
13
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
14
|
annotation: AnnotationFreeText;
|
|
15
|
+
isDragging: boolean;
|
|
14
16
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
15
17
|
__isFragment?: undefined;
|
|
16
18
|
__isTeleport?: undefined;
|
|
17
19
|
__isSuspense?: undefined;
|
|
18
20
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
19
21
|
annotation: AnnotationFreeText;
|
|
22
|
+
isDragging: boolean;
|
|
20
23
|
}>>> & 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 () => {
|
|
21
24
|
$slots: {
|
|
22
25
|
default: (_: {}) => any;
|
|
@@ -3,17 +3,23 @@ import type { PageViewport } from 'pdfjs-dist/types/web/interfaces';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
viewport: PageViewport;
|
|
5
5
|
isSelected: boolean;
|
|
6
|
-
|
|
6
|
+
annotationElement: HTMLElement;
|
|
7
7
|
annotation: AnnotationFreeText;
|
|
8
8
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
update: (annotation: AnnotationFreeText) => void;
|
|
9
|
+
"update:content": (annotation: AnnotationFreeText) => void;
|
|
10
|
+
} & {
|
|
11
|
+
dragStart: (annotation: AnnotationFreeText) => void;
|
|
12
|
+
} & {
|
|
13
|
+
dragEnd: (annotation: AnnotationFreeText) => void;
|
|
10
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
15
|
viewport: PageViewport;
|
|
12
16
|
isSelected: boolean;
|
|
13
|
-
|
|
17
|
+
annotationElement: HTMLElement;
|
|
14
18
|
annotation: AnnotationFreeText;
|
|
15
19
|
}>>> & Readonly<{
|
|
16
|
-
onUpdate?: ((annotation: AnnotationFreeText) => any) | undefined;
|
|
20
|
+
"onUpdate:content"?: ((annotation: AnnotationFreeText) => any) | undefined;
|
|
21
|
+
onDragStart?: ((annotation: AnnotationFreeText) => any) | undefined;
|
|
22
|
+
onDragEnd?: ((annotation: AnnotationFreeText) => any) | undefined;
|
|
17
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
24
|
export default _default;
|
|
19
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -3,6 +3,7 @@ import { type HTMLAttributes } from 'vue';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectContentProps & {
|
|
5
5
|
class?: HTMLAttributes['class'];
|
|
6
|
+
portalElement?: HTMLElement | undefined;
|
|
6
7
|
}>, {
|
|
7
8
|
position: string;
|
|
8
9
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
@@ -16,6 +17,7 @@ declare const _default: {
|
|
|
16
17
|
Defaults: {};
|
|
17
18
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectContentProps & {
|
|
18
19
|
class?: HTMLAttributes['class'];
|
|
20
|
+
portalElement?: HTMLElement | undefined;
|
|
19
21
|
}>, {
|
|
20
22
|
position: string;
|
|
21
23
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
@@ -26,6 +28,7 @@ declare const _default: {
|
|
|
26
28
|
__isSuspense?: undefined;
|
|
27
29
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectContentProps & {
|
|
28
30
|
class?: HTMLAttributes['class'];
|
|
31
|
+
portalElement?: HTMLElement | undefined;
|
|
29
32
|
}>, {
|
|
30
33
|
position: string;
|
|
31
34
|
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LicenseType } from '../../../lib/utils/enumerators';
|
|
2
|
+
export interface License {
|
|
3
|
+
isValidating: boolean;
|
|
4
|
+
isValidated: boolean;
|
|
5
|
+
isValidKey: boolean;
|
|
6
|
+
licenseKey: string | null;
|
|
7
|
+
type: LicenseType;
|
|
8
|
+
}
|
|
9
|
+
export interface AppLicense extends Omit<License, 'licenseKey'> {
|
|
10
|
+
invalidatedMessage?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const LICENSE_DEFAULT: AppLicense;
|