@solidpepper/solidpepper-upload-youbooky 0.1.0 → 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
|
@@ -21,6 +21,9 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
21
21
|
isPim: boolean;
|
|
22
22
|
alias: string;
|
|
23
23
|
token: string;
|
|
24
|
+
isFree: boolean;
|
|
25
|
+
isFreePlan: boolean;
|
|
26
|
+
offer: string;
|
|
24
27
|
completed: EventEmitter<{
|
|
25
28
|
assetGuid: string;
|
|
26
29
|
projectName: string;
|
|
@@ -53,9 +56,12 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
53
56
|
url: string;
|
|
54
57
|
width: number;
|
|
55
58
|
height: number;
|
|
59
|
+
blob?: Blob;
|
|
56
60
|
}[];
|
|
57
61
|
isLoadingPdf: boolean;
|
|
58
62
|
pdfProgress: number;
|
|
63
|
+
processingCurrentPage: number;
|
|
64
|
+
processingTotalPages: number;
|
|
59
65
|
useHighQuality: boolean;
|
|
60
66
|
pdfScale: number;
|
|
61
67
|
isPdfProcessingCancelled: boolean;
|
|
@@ -91,6 +97,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
91
97
|
ngOnInit(): void;
|
|
92
98
|
ngOnChanges(changes: SimpleChanges): void;
|
|
93
99
|
ngOnDestroy(): void;
|
|
100
|
+
private revokePreviewUrls;
|
|
94
101
|
setStep(step: YoubookyUploadStep): void;
|
|
95
102
|
onDragOver(event: DragEvent): void;
|
|
96
103
|
onDrop(event: DragEvent): void;
|
|
@@ -103,6 +110,7 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
103
110
|
private generateSvgContent;
|
|
104
111
|
private getEffectiveApiUrl;
|
|
105
112
|
get effectiveAlias(): string;
|
|
113
|
+
get isFreeOffer(): boolean;
|
|
106
114
|
syncToken(token: string): void;
|
|
107
115
|
initAuthSession(): void;
|
|
108
116
|
get connectedUserDisplayName(): string;
|
|
@@ -118,8 +126,14 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
118
126
|
verifyCodeAndProceed(): Promise<void>;
|
|
119
127
|
registerLead(): Promise<void>;
|
|
120
128
|
submitLogin(): Promise<void>;
|
|
129
|
+
private blobToDataUrl;
|
|
130
|
+
private dataUrlToBlob;
|
|
131
|
+
private buildPagesZipBlob;
|
|
132
|
+
private importDocumentZipStream;
|
|
121
133
|
private importDocumentFiles;
|
|
134
|
+
private uploadWithRetry;
|
|
122
135
|
private translate;
|
|
136
|
+
private fallbackBatchSvgUpload;
|
|
123
137
|
importDocumentFromPdf(): Promise<void>;
|
|
124
138
|
private scrollToActivePage;
|
|
125
139
|
fetchDocumentLinks(assetGuid: string): Promise<void>;
|
|
@@ -129,13 +143,13 @@ declare class SolidpepperUploadYoubookyComponent implements OnInit, OnDestroy, O
|
|
|
129
143
|
openLink(type: 'flipbook' | 'reviewer'): void;
|
|
130
144
|
goToDetail(): void;
|
|
131
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<SolidpepperUploadYoubookyComponent, never>;
|
|
132
|
-
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; }; }, { "completed": "completed"; "cancelled": "cancelled"; "stepChange": "stepChange"; "error": "error"; "loginSuccess": "loginSuccess"; "registerSuccess": "registerSuccess"; }, never, never, true, never>;
|
|
146
|
+
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>;
|
|
133
147
|
}
|
|
134
148
|
|
|
135
149
|
declare const _default$2: {
|
|
136
150
|
media: {
|
|
137
|
-
|
|
138
|
-
|
|
151
|
+
'dam-documents': {
|
|
152
|
+
'dam-documents-list': {
|
|
139
153
|
CLICKORDRAGPDF: string;
|
|
140
154
|
SUPPORTEDFORMAT: string;
|
|
141
155
|
PROCESSING: string;
|
|
@@ -149,10 +163,14 @@ declare const _default$2: {
|
|
|
149
163
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
150
164
|
TOTAL_PROGRESS: string;
|
|
151
165
|
CREATING_DOCUMENT: string;
|
|
166
|
+
PREPARING_ARCHIVE: string;
|
|
167
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
168
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
152
169
|
UPLOADING_PAGES: string;
|
|
153
170
|
UPLOADING_PAGE_PROGRESS: string;
|
|
154
171
|
REDIRECTING: string;
|
|
155
172
|
IMPORT_SUCCESS: string;
|
|
173
|
+
IMPORT_PARTIAL_SUCCESS: string;
|
|
156
174
|
PAGE: string;
|
|
157
175
|
PREVIEW: string;
|
|
158
176
|
STATUS_COMPLETED: string;
|
|
@@ -172,7 +190,7 @@ declare const _default$2: {
|
|
|
172
190
|
};
|
|
173
191
|
};
|
|
174
192
|
publications: {
|
|
175
|
-
|
|
193
|
+
'publications-listing': {
|
|
176
194
|
PROJECT_NAME: string;
|
|
177
195
|
NEW_PROJECT_PLACEHOLDER: string;
|
|
178
196
|
};
|
|
@@ -227,8 +245,8 @@ declare const _default$2: {
|
|
|
227
245
|
|
|
228
246
|
declare const _default$1: {
|
|
229
247
|
media: {
|
|
230
|
-
|
|
231
|
-
|
|
248
|
+
'dam-documents': {
|
|
249
|
+
'dam-documents-list': {
|
|
232
250
|
CLICKORDRAGPDF: string;
|
|
233
251
|
SUPPORTEDFORMAT: string;
|
|
234
252
|
PROCESSING: string;
|
|
@@ -242,10 +260,14 @@ declare const _default$1: {
|
|
|
242
260
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
243
261
|
TOTAL_PROGRESS: string;
|
|
244
262
|
CREATING_DOCUMENT: string;
|
|
263
|
+
PREPARING_ARCHIVE: string;
|
|
264
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
265
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
245
266
|
UPLOADING_PAGES: string;
|
|
246
267
|
UPLOADING_PAGE_PROGRESS: string;
|
|
247
268
|
REDIRECTING: string;
|
|
248
269
|
IMPORT_SUCCESS: string;
|
|
270
|
+
IMPORT_PARTIAL_SUCCESS: string;
|
|
249
271
|
PAGE: string;
|
|
250
272
|
PREVIEW: string;
|
|
251
273
|
STATUS_COMPLETED: string;
|
|
@@ -265,7 +287,7 @@ declare const _default$1: {
|
|
|
265
287
|
};
|
|
266
288
|
};
|
|
267
289
|
publications: {
|
|
268
|
-
|
|
290
|
+
'publications-listing': {
|
|
269
291
|
PROJECT_NAME: string;
|
|
270
292
|
NEW_PROJECT_PLACEHOLDER: string;
|
|
271
293
|
};
|
|
@@ -320,8 +342,8 @@ declare const _default$1: {
|
|
|
320
342
|
|
|
321
343
|
declare const _default: {
|
|
322
344
|
media: {
|
|
323
|
-
|
|
324
|
-
|
|
345
|
+
'dam-documents': {
|
|
346
|
+
'dam-documents-list': {
|
|
325
347
|
CLICKORDRAGPDF: string;
|
|
326
348
|
SUPPORTEDFORMAT: string;
|
|
327
349
|
PROCESSING: string;
|
|
@@ -335,10 +357,14 @@ declare const _default: {
|
|
|
335
357
|
IMPORT_PROGRESS_SUBTITLE: string;
|
|
336
358
|
TOTAL_PROGRESS: string;
|
|
337
359
|
CREATING_DOCUMENT: string;
|
|
360
|
+
PREPARING_ARCHIVE: string;
|
|
361
|
+
UPLOADING_ARCHIVE_PROGRESS: string;
|
|
362
|
+
PROCESSING_PAGE_PROGRESS: string;
|
|
338
363
|
UPLOADING_PAGES: string;
|
|
339
364
|
UPLOADING_PAGE_PROGRESS: string;
|
|
340
365
|
REDIRECTING: string;
|
|
341
366
|
IMPORT_SUCCESS: string;
|
|
367
|
+
IMPORT_PARTIAL_SUCCESS: string;
|
|
342
368
|
PAGE: string;
|
|
343
369
|
PREVIEW: string;
|
|
344
370
|
STATUS_COMPLETED: string;
|
|
@@ -358,7 +384,7 @@ declare const _default: {
|
|
|
358
384
|
};
|
|
359
385
|
};
|
|
360
386
|
publications: {
|
|
361
|
-
|
|
387
|
+
'publications-listing': {
|
|
362
388
|
PROJECT_NAME: string;
|
|
363
389
|
NEW_PROJECT_PLACEHOLDER: string;
|
|
364
390
|
};
|
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"
|