@solidpepper/solidpepper-upload-youbooky 0.1.1 → 0.1.2
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/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
56
56
|
url: string;
|
|
57
57
|
width: number;
|
|
58
58
|
height: number;
|
|
59
|
+
blob?: Blob;
|
|
59
60
|
}[];
|
|
60
61
|
isLoadingPdf: boolean;
|
|
61
62
|
pdfProgress: number;
|
|
@@ -96,6 +97,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
96
97
|
ngOnInit(): void;
|
|
97
98
|
ngOnChanges(changes: SimpleChanges): void;
|
|
98
99
|
ngOnDestroy(): void;
|
|
100
|
+
private revokePreviewUrls;
|
|
99
101
|
setStep(step: YoubookyUploadStep): void;
|
|
100
102
|
onDragOver(event: DragEvent): void;
|
|
101
103
|
onDrop(event: DragEvent): void;
|
|
@@ -124,9 +126,14 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
124
126
|
verifyCodeAndProceed(): Promise<void>;
|
|
125
127
|
registerLead(): Promise<void>;
|
|
126
128
|
submitLogin(): Promise<void>;
|
|
129
|
+
private blobToDataUrl;
|
|
130
|
+
private dataUrlToBlob;
|
|
131
|
+
private buildPagesZipBlob;
|
|
132
|
+
private importDocumentZipStream;
|
|
127
133
|
private importDocumentFiles;
|
|
128
134
|
private uploadWithRetry;
|
|
129
135
|
private translate;
|
|
136
|
+
private fallbackBatchSvgUpload;
|
|
130
137
|
importDocumentFromPdf(): Promise<void>;
|
|
131
138
|
private scrollToActivePage;
|
|
132
139
|
fetchDocumentLinks(assetGuid: string): Promise<void>;
|
|
@@ -156,6 +163,9 @@ declare const _default$2: {
|
|
|
156
163
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
157
164
|
TOTAL_PROGRESS: string;
|
|
158
165
|
CREATING_DOCUMENT: string;
|
|
166
|
+
PREPARING_ARCHIVE: string;
|
|
167
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
168
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
159
169
|
UPLOADING_PAGES: string;
|
|
160
170
|
UPLOADING_PAGE_PROGRESS: string;
|
|
161
171
|
REDIRECTING: string;
|
|
@@ -250,6 +260,9 @@ declare const _default$1: {
|
|
|
250
260
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
251
261
|
TOTAL_PROGRESS: string;
|
|
252
262
|
CREATING_DOCUMENT: string;
|
|
263
|
+
PREPARING_ARCHIVE: string;
|
|
264
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
265
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
253
266
|
UPLOADING_PAGES: string;
|
|
254
267
|
UPLOADING_PAGE_PROGRESS: string;
|
|
255
268
|
REDIRECTING: string;
|
|
@@ -344,6 +357,9 @@ declare const _default: {
|
|
|
344
357
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
345
358
|
TOTAL_PROGRESS: string;
|
|
346
359
|
CREATING_DOCUMENT: string;
|
|
360
|
+
PREPARING_ARCHIVE: string;
|
|
361
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
362
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
347
363
|
UPLOADING_PAGES: string;
|
|
348
364
|
UPLOADING_PAGE_PROGRESS: string;
|
|
349
365
|
REDIRECTING: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidpepper/solidpepper-upload-youbooky",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Solidpepper - YouBooky PDF import and upload library component",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=17.0.0",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"@solidpepper/solidpepper-icons": ">=0.0.1",
|
|
13
13
|
"@solidpepper/solidpepper-service": ">=0.0.1",
|
|
14
14
|
"rxjs": ">=7.0.0",
|
|
15
|
-
"pdfjs-dist": "^4.8.69"
|
|
15
|
+
"pdfjs-dist": "^4.8.69",
|
|
16
|
+
"jszip": "^3.10.1"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"tslib": "^2.3.0"
|