@vue-pdf-viewer/shared 1.1.1 → 1.2.0-rc.0

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.
@@ -91,10 +91,10 @@
91
91
  "annotationHighlightTooltip": "Highlight",
92
92
  "annotationHighlightColorTooltip": "Change highlight color",
93
93
  "annotationHighlightColorPickerLabel": "Highlight color",
94
- "annotationHighlightDeleteTooltip": "Delete highlight",
94
+ "annotationHighlightDeleteTooltip": "Remove highlight",
95
95
  "annotationFreeTextLabel": "Free text",
96
96
  "annotationFreeTextTooltip": "Free text",
97
- "annotationFreeTextDeleteTooltip": "Delete free text",
97
+ "annotationFreeTextDeleteTooltip": "Remove free text",
98
98
  "annotationFreeTextTextStyleTooltip": "Change free text style",
99
99
  "annotationFreeTextTextStyleLabel": "Text style",
100
100
  "annotationFreeTextFontColorLabel": "Font color",
@@ -91,10 +91,10 @@
91
91
  "annotationHighlightTooltip": "Evidenzia",
92
92
  "annotationHighlightColorTooltip": "Cambia colore evidenziazione",
93
93
  "annotationHighlightColorPickerLabel": "Colore evidenziazione",
94
- "annotationHighlightDeleteTooltip": "Elimina evidenziazione",
94
+ "annotationHighlightDeleteTooltip": "Rimuovi evidenziazione",
95
95
  "annotationFreeTextLabel": "Testo libero",
96
96
  "annotationFreeTextTooltip": "Testo libero",
97
- "annotationFreeTextDeleteTooltip": "Elimina testo libero",
97
+ "annotationFreeTextDeleteTooltip": "Rimuovi testo libero",
98
98
  "annotationFreeTextTextStyleTooltip": "Cambia stile testo",
99
99
  "annotationFreeTextTextStyleLabel": "Stile testo",
100
100
  "annotationFreeTextFontColorTooltip": "Colore testo",
@@ -91,10 +91,10 @@
91
91
  "annotationHighlightTooltip": "Destacar",
92
92
  "annotationHighlightColorTooltip": "Alterar cor do destaque",
93
93
  "annotationHighlightColorPickerLabel": "Cor de destaque",
94
- "annotationHighlightDeleteTooltip": "Excluir destaque",
94
+ "annotationHighlightDeleteTooltip": "Remover destaque",
95
95
  "annotationFreeTextLabel": "Texto livre",
96
96
  "annotationFreeTextTooltip": "Texto livre",
97
- "annotationFreeTextDeleteTooltip": "Excluir texto livre",
97
+ "annotationFreeTextDeleteTooltip": "Remover texto livre",
98
98
  "annotationFreeTextTextStyleTooltip": "Alterar estilo de texto",
99
99
  "annotationFreeTextTextStyleLabel": "Estilo de texto",
100
100
  "annotationFreeTextFontColorLabel": "Cor da fonte",
package/dist/types.d.ts CHANGED
@@ -121,7 +121,7 @@ export interface PluginItem {
121
121
  component: Component;
122
122
  toolbarDirection: ToolbarDirection;
123
123
  }
124
- export interface PluginContext {
124
+ export interface PluginContext<PDFDocumentProxy = any> {
125
125
  componentInstance: ComponentInternalInstance | null;
126
126
  toolbar: {
127
127
  addItem: (item: PluginItem) => void;
@@ -135,11 +135,15 @@ export interface PluginContext {
135
135
  AppHighlightColorPicker?: Component;
136
136
  AppSignatures?: Component;
137
137
  };
138
+ pdf?: {
139
+ document: ComputedRef<PDFDocumentProxy | undefined>;
140
+ getOriginalBytes: () => Promise<Uint8Array | null>;
141
+ };
138
142
  };
139
143
  }
140
- export interface Plugin {
144
+ export interface Plugin<PDFDocumentProxy> {
141
145
  name: string;
142
- setup: (ctx: PluginContext) => void;
146
+ setup: (ctx: PluginContext<PDFDocumentProxy>) => void;
143
147
  }
144
148
  export interface LabelValuePair {
145
149
  label: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.2.0-rc.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",