@solidpepper/solidpepper-upload-youbooky 0.1.1 → 0.1.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/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
24
24
|
isFree: boolean;
|
|
25
25
|
isFreePlan: boolean;
|
|
26
26
|
offer: string;
|
|
27
|
+
documentType: string;
|
|
27
28
|
completed: EventEmitter<{
|
|
28
29
|
assetGuid: string;
|
|
29
30
|
projectName: string;
|
|
@@ -56,6 +57,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
56
57
|
url: string;
|
|
57
58
|
width: number;
|
|
58
59
|
height: number;
|
|
60
|
+
blob?: Blob;
|
|
59
61
|
}[];
|
|
60
62
|
isLoadingPdf: boolean;
|
|
61
63
|
pdfProgress: number;
|
|
@@ -96,6 +98,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
96
98
|
ngOnInit(): void;
|
|
97
99
|
ngOnChanges(changes: SimpleChanges): void;
|
|
98
100
|
ngOnDestroy(): void;
|
|
101
|
+
private revokePreviewUrls;
|
|
99
102
|
setStep(step: YoubookyUploadStep): void;
|
|
100
103
|
onDragOver(event: DragEvent): void;
|
|
101
104
|
onDrop(event: DragEvent): void;
|
|
@@ -124,9 +127,14 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
124
127
|
verifyCodeAndProceed(): Promise<void>;
|
|
125
128
|
registerLead(): Promise<void>;
|
|
126
129
|
submitLogin(): Promise<void>;
|
|
130
|
+
private blobToDataUrl;
|
|
131
|
+
private dataUrlToBlob;
|
|
132
|
+
private buildPagesZipBlob;
|
|
133
|
+
private importDocumentZipStream;
|
|
127
134
|
private importDocumentFiles;
|
|
128
135
|
private uploadWithRetry;
|
|
129
136
|
private translate;
|
|
137
|
+
private fallbackBatchSvgUpload;
|
|
130
138
|
importDocumentFromPdf(): Promise<void>;
|
|
131
139
|
private scrollToActivePage;
|
|
132
140
|
fetchDocumentLinks(assetGuid: string): Promise<void>;
|
|
@@ -136,7 +144,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
136
144
|
openLink(type: 'flipbook' | 'reviewer'): void;
|
|
137
145
|
goToDetail(): void;
|
|
138
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<SolidpepperUploadYoubookyComponent, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SolidpepperUploadYoubookyComponent, "solidpepper-upload-youbooky", never, { "parentFolder": { "alias": "parentFolder"; "required": false; }; "language": { "alias": "language"; "required": false; }; "initialProjectName": { "alias": "initialProjectName"; "required": false; }; "isModal": { "alias": "isModal"; "required": false; }; "redirectOnComplete": { "alias": "redirectOnComplete"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "flipbookBaseUrl": { "alias": "flipbookBaseUrl"; "required": false; }; "reviewerBaseUrl": { "alias": "reviewerBaseUrl"; "required": false; }; "isPim": { "alias": "isPim"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "token": { "alias": "token"; "required": false; }; "isFree": { "alias": "isFree"; "required": false; }; "isFreePlan": { "alias": "isFreePlan"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; }, { "completed": "completed"; "cancelled": "cancelled"; "stepChange": "stepChange"; "error": "error"; "loginSuccess": "loginSuccess"; "registerSuccess": "registerSuccess"; }, never, never, true, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SolidpepperUploadYoubookyComponent, "solidpepper-upload-youbooky", never, { "parentFolder": { "alias": "parentFolder"; "required": false; }; "language": { "alias": "language"; "required": false; }; "initialProjectName": { "alias": "initialProjectName"; "required": false; }; "isModal": { "alias": "isModal"; "required": false; }; "redirectOnComplete": { "alias": "redirectOnComplete"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "flipbookBaseUrl": { "alias": "flipbookBaseUrl"; "required": false; }; "reviewerBaseUrl": { "alias": "reviewerBaseUrl"; "required": false; }; "isPim": { "alias": "isPim"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "token": { "alias": "token"; "required": false; }; "isFree": { "alias": "isFree"; "required": false; }; "isFreePlan": { "alias": "isFreePlan"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; "documentType": { "alias": "documentType"; "required": false; }; }, { "completed": "completed"; "cancelled": "cancelled"; "stepChange": "stepChange"; "error": "error"; "loginSuccess": "loginSuccess"; "registerSuccess": "registerSuccess"; }, never, never, true, never>;
|
|
140
148
|
}
|
|
141
149
|
|
|
142
150
|
declare const _default$2: {
|
|
@@ -156,6 +164,9 @@ declare const _default$2: {
|
|
|
156
164
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
157
165
|
TOTAL_PROGRESS: string;
|
|
158
166
|
CREATING_DOCUMENT: string;
|
|
167
|
+
PREPARING_ARCHIVE: string;
|
|
168
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
169
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
159
170
|
UPLOADING_PAGES: string;
|
|
160
171
|
UPLOADING_PAGE_PROGRESS: string;
|
|
161
172
|
REDIRECTING: string;
|
|
@@ -250,6 +261,9 @@ declare const _default$1: {
|
|
|
250
261
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
251
262
|
TOTAL_PROGRESS: string;
|
|
252
263
|
CREATING_DOCUMENT: string;
|
|
264
|
+
PREPARING_ARCHIVE: string;
|
|
265
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
266
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
253
267
|
UPLOADING_PAGES: string;
|
|
254
268
|
UPLOADING_PAGE_PROGRESS: string;
|
|
255
269
|
REDIRECTING: string;
|
|
@@ -344,6 +358,9 @@ declare const _default: {
|
|
|
344
358
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
345
359
|
TOTAL_PROGRESS: string;
|
|
346
360
|
CREATING_DOCUMENT: string;
|
|
361
|
+
PREPARING_ARCHIVE: string;
|
|
362
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
363
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
347
364
|
UPLOADING_PAGES: string;
|
|
348
365
|
UPLOADING_PAGE_PROGRESS: string;
|
|
349
366
|
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.3",
|
|
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"
|