@copio/sdk 0.0.0-stage → 0.1.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.
Files changed (149) hide show
  1. package/README.md +204 -2
  2. package/css/container.css +177 -0
  3. package/css/cropper.css +306 -0
  4. package/css/main.css +139 -0
  5. package/css/reset.css +204 -0
  6. package/css/shoelace.css +485 -0
  7. package/css/utils.css +689 -0
  8. package/dist/adapters/image/canvas2d-adapter.js +2 -0
  9. package/dist/adapters/image/canvas2d-adapter.js.map +7 -0
  10. package/dist/adapters/image/index.js +2 -0
  11. package/dist/adapters/image/index.js.map +7 -0
  12. package/dist/adapters/image/null-image-processor-adapter.js +2 -0
  13. package/dist/adapters/image/null-image-processor-adapter.js.map +7 -0
  14. package/dist/adapters/index.js +2 -0
  15. package/dist/adapters/index.js.map +7 -0
  16. package/dist/adapters/indexeddb-adapter.js +2 -0
  17. package/dist/adapters/indexeddb-adapter.js.map +7 -0
  18. package/dist/adapters/memory-adapter.js +2 -0
  19. package/dist/adapters/memory-adapter.js.map +7 -0
  20. package/dist/adapters/ocr/index.js +2 -0
  21. package/dist/adapters/ocr/index.js.map +7 -0
  22. package/dist/adapters/ocr/null-ocr-adapter.js +2 -0
  23. package/dist/adapters/ocr/null-ocr-adapter.js.map +7 -0
  24. package/dist/adapters/ocr/tesseract-wasm-adapter.js +2 -0
  25. package/dist/adapters/ocr/tesseract-wasm-adapter.js.map +7 -0
  26. package/dist/adapters/pdf/index.js +2 -0
  27. package/dist/adapters/pdf/index.js.map +7 -0
  28. package/dist/adapters/pdf/null-pdf-adapter.js +2 -0
  29. package/dist/adapters/pdf/null-pdf-adapter.js.map +7 -0
  30. package/dist/adapters/pdf/pdfkit-adapter.js +2 -0
  31. package/dist/adapters/pdf/pdfkit-adapter.js.map +7 -0
  32. package/dist/adapters/storage/index.js +2 -0
  33. package/dist/adapters/storage/index.js.map +7 -0
  34. package/dist/adapters/storage/indexeddb-adapter.js +2 -0
  35. package/dist/adapters/storage/indexeddb-adapter.js.map +7 -0
  36. package/dist/adapters/storage/memory-adapter.js +2 -0
  37. package/dist/adapters/storage/memory-adapter.js.map +7 -0
  38. package/dist/adapters/sync/index.js +2 -0
  39. package/dist/adapters/sync/index.js.map +7 -0
  40. package/dist/adapters/sync/null-sync-adapter.js +2 -0
  41. package/dist/adapters/sync/null-sync-adapter.js.map +7 -0
  42. package/dist/adapters/sync/peerjs-adapter.js +2 -0
  43. package/dist/adapters/sync/peerjs-adapter.js.map +7 -0
  44. package/dist/canvas-FAXPLPXN.js +2 -0
  45. package/dist/cdn.js +2770 -0
  46. package/dist/chunk-36F637QU.js +2 -0
  47. package/dist/chunk-4C666HHU.js +2 -0
  48. package/dist/chunk-4GEMGDRU.js +1 -0
  49. package/dist/chunk-4JPEWIT4.js +2 -0
  50. package/dist/chunk-A5G52Q2W.js +2 -0
  51. package/dist/chunk-B2EK6INF.js +2 -0
  52. package/dist/chunk-B5BEYYR2.js +8 -0
  53. package/dist/chunk-B7HT2X67.js +2 -0
  54. package/dist/chunk-BKZEOOH4.js +2 -0
  55. package/dist/chunk-CWCS22CQ.js +1 -0
  56. package/dist/chunk-DGGK5KEX.js +2 -0
  57. package/dist/chunk-E7JYVRJA.js +2 -0
  58. package/dist/chunk-G65H4ZTJ.js +2 -0
  59. package/dist/chunk-HN3336JN.js +2 -0
  60. package/dist/chunk-IUBYFIV6.js +12 -0
  61. package/dist/chunk-K6YP7EET.js +8 -0
  62. package/dist/chunk-K7RTGT3Q.js +2601 -0
  63. package/dist/chunk-KIMVF5UG.js +2 -0
  64. package/dist/chunk-LI54F6PA.js +2 -0
  65. package/dist/chunk-N4R55VRR.js +2 -0
  66. package/dist/chunk-N7Q34F2P.js +4 -0
  67. package/dist/chunk-OI4WCW7E.js +2 -0
  68. package/dist/chunk-PUJYN435.js +1 -0
  69. package/dist/chunk-PVNRK4OH.js +2 -0
  70. package/dist/chunk-QPUCXOOR.js +2 -0
  71. package/dist/chunk-SH4P4XSZ.js +2 -0
  72. package/dist/chunk-UCV3MQ6I.js +33 -0
  73. package/dist/chunk-V2FP4EEH.js +2 -0
  74. package/dist/chunk-V6E2SSSW.js +1 -0
  75. package/dist/chunk-XEN5VKAV.js +19 -0
  76. package/dist/chunk-YHLOPPXM.js +2 -0
  77. package/dist/core.js +2 -0
  78. package/dist/custom-elements.json +4779 -0
  79. package/dist/export.js +2 -0
  80. package/dist/fs-HJ6WWW73.js +2 -0
  81. package/dist/http-FKJJMT2N.js +2 -0
  82. package/dist/https-MUBFLDZM.js +2 -0
  83. package/dist/index.js +99 -0
  84. package/dist/ocr.js +2 -0
  85. package/dist/path2d-QWN6DFCC.js +2 -0
  86. package/dist/scanner.js +2631 -0
  87. package/dist/sync.js +2 -0
  88. package/dist/types/js/adapters/image/canvas2d-adapter.d.ts +42 -0
  89. package/dist/types/js/adapters/image/image-processor-port.d.ts +41 -0
  90. package/dist/types/js/adapters/image/index.d.ts +3 -0
  91. package/dist/types/js/adapters/image/null-image-processor-adapter.d.ts +13 -0
  92. package/dist/types/js/adapters/ocr/index.d.ts +3 -0
  93. package/dist/types/js/adapters/ocr/null-ocr-adapter.d.ts +39 -0
  94. package/dist/types/js/adapters/ocr/ocr-port.d.ts +139 -0
  95. package/dist/types/js/adapters/ocr/tesseract-wasm-adapter.d.ts +40 -0
  96. package/dist/types/js/adapters/pdf/index.d.ts +3 -0
  97. package/dist/types/js/adapters/pdf/null-pdf-adapter.d.ts +23 -0
  98. package/dist/types/js/adapters/pdf/pdf-port.d.ts +21 -0
  99. package/dist/types/js/adapters/pdf/pdfkit-adapter.d.ts +16 -0
  100. package/dist/types/js/adapters/storage/index.d.ts +22 -0
  101. package/dist/types/js/adapters/storage/indexeddb-adapter.d.ts +109 -0
  102. package/dist/types/js/adapters/storage/memory-adapter.d.ts +101 -0
  103. package/dist/types/js/adapters/storage/storage-port.d.ts +113 -0
  104. package/dist/types/js/adapters/sync/index.d.ts +3 -0
  105. package/dist/types/js/adapters/sync/null-sync-adapter.d.ts +14 -0
  106. package/dist/types/js/adapters/sync/peerjs-adapter.d.ts +16 -0
  107. package/dist/types/js/adapters/sync/sync-port.d.ts +18 -0
  108. package/dist/types/js/components/copio-header.d.ts +19 -0
  109. package/dist/types/js/components/copio-loader.d.ts +6 -0
  110. package/dist/types/js/core/store.d.ts +2 -0
  111. package/dist/types/js/routes/add-edit/copio-add-edit-dialog.d.ts +9 -0
  112. package/dist/types/js/routes/doc/copio-carousel.d.ts +43 -0
  113. package/dist/types/js/routes/doc/copio-images.d.ts +37 -0
  114. package/dist/types/js/routes/home/copio-row.d.ts +49 -0
  115. package/dist/types/js/routes/ocr/copio-doc-ocr-dialog.d.ts +97 -0
  116. package/dist/types/js/routes/sync/copio-sync-dialog.d.ts +13 -0
  117. package/dist/types/js/services/doc-repository.d.ts +233 -0
  118. package/dist/types/js/services/export-utils.d.ts +42 -0
  119. package/dist/types/js/services/ice-servers.d.ts +1 -0
  120. package/dist/types/js/services/notify.d.ts +82 -0
  121. package/dist/types/js/services/ocr-service.d.ts +64 -0
  122. package/dist/types/js/services/sync-service.d.ts +11 -0
  123. package/dist/types/js/styles/cropper-styles.d.ts +5 -0
  124. package/dist/types/js/utils/module-loader.d.ts +76 -0
  125. package/dist/types/js/utils/pdf-utils.d.ts +7 -0
  126. package/dist/types/js/utils/utils.d.ts +54 -0
  127. package/dist/types/sdk/cdn.d.ts +7 -0
  128. package/dist/types/sdk/core.d.ts +310 -0
  129. package/dist/types/sdk/elements.d.ts +25 -0
  130. package/dist/types/sdk/events.d.ts +227 -0
  131. package/dist/types/sdk/index.d.ts +37 -0
  132. package/dist/types/sdk/license.d.ts +12 -0
  133. package/dist/types/sdk/models.d.ts +174 -0
  134. package/dist/types/sdk/scanner.d.ts +68 -0
  135. package/dist/types/sdk/styles.d.ts +21 -0
  136. package/dist/types/sdk/sync.d.ts +7 -0
  137. package/dist/types/sdk/version.d.ts +2 -0
  138. package/dist/url-ABJ6S2Y6.js +2 -0
  139. package/package.json +73 -4
  140. package/sdk/cdn.js +13 -0
  141. package/sdk/core.js +961 -0
  142. package/sdk/events.js +99 -0
  143. package/sdk/index.js +137 -0
  144. package/sdk/license.js +28 -0
  145. package/sdk/models.js +177 -0
  146. package/sdk/scanner.js +1597 -0
  147. package/sdk/styles.js +1236 -0
  148. package/sdk/sync.js +12 -0
  149. package/sdk/version.js +7 -0
@@ -0,0 +1,4779 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sdk/cdn.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "sdk/index.js"
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "default",
21
+ "declaration": {
22
+ "name": "Copio",
23
+ "module": "sdk/cdn.js"
24
+ }
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "kind": "javascript-module",
30
+ "path": "sdk/core.js",
31
+ "declarations": [
32
+ {
33
+ "kind": "variable",
34
+ "name": "DEFAULT_FEATURES",
35
+ "type": {
36
+ "text": "array"
37
+ },
38
+ "default": "['crop', 'rotate', 'filter', 'ocr', 'export', 'sync']"
39
+ },
40
+ {
41
+ "kind": "variable",
42
+ "name": "DEFAULT_EXPORT_FORMATS",
43
+ "type": {
44
+ "text": "array"
45
+ },
46
+ "default": "['pdf', 'zip', 'png', 'jpg']"
47
+ },
48
+ {
49
+ "kind": "variable",
50
+ "name": "DEFAULT_OCR_LANGUAGES",
51
+ "type": {
52
+ "text": "array"
53
+ },
54
+ "default": "['eng']"
55
+ },
56
+ {
57
+ "kind": "function",
58
+ "name": "registerService",
59
+ "parameters": [
60
+ {
61
+ "name": "name",
62
+ "type": {
63
+ "text": "string"
64
+ }
65
+ },
66
+ {
67
+ "name": "service",
68
+ "type": {
69
+ "text": "any"
70
+ }
71
+ }
72
+ ],
73
+ "description": "Register a pluggable service adapter for headless ports (export, ocr, sync, pdf)."
74
+ },
75
+ {
76
+ "kind": "function",
77
+ "name": "getRegisteredService",
78
+ "parameters": [
79
+ {
80
+ "name": "name",
81
+ "type": {
82
+ "text": "string"
83
+ }
84
+ }
85
+ ],
86
+ "description": "Retrieve a registered service adapter.",
87
+ "return": {
88
+ "type": {
89
+ "text": "any"
90
+ }
91
+ }
92
+ },
93
+ {
94
+ "kind": "class",
95
+ "description": "Headless Copio Engine driving port.",
96
+ "name": "CopioEngine",
97
+ "members": [
98
+ {
99
+ "kind": "field",
100
+ "name": "#features",
101
+ "privacy": "private",
102
+ "default": "new Set(DEFAULT_FEATURES)"
103
+ },
104
+ {
105
+ "kind": "field",
106
+ "name": "#exportFormats",
107
+ "privacy": "private",
108
+ "type": {
109
+ "text": "array"
110
+ },
111
+ "default": "[...DEFAULT_EXPORT_FORMATS]"
112
+ },
113
+ {
114
+ "kind": "field",
115
+ "name": "#ocrLanguages",
116
+ "privacy": "private",
117
+ "type": {
118
+ "text": "array"
119
+ },
120
+ "default": "[...DEFAULT_OCR_LANGUAGES]"
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "#maxPages",
125
+ "privacy": "private",
126
+ "type": {
127
+ "text": "number"
128
+ },
129
+ "default": "0"
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "#licenseKey",
134
+ "privacy": "private",
135
+ "type": {
136
+ "text": "string"
137
+ },
138
+ "default": "''"
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "#storage",
143
+ "privacy": "private",
144
+ "type": {
145
+ "text": "null"
146
+ },
147
+ "default": "null"
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "#repository",
152
+ "privacy": "private",
153
+ "type": {
154
+ "text": "null"
155
+ },
156
+ "default": "null"
157
+ },
158
+ {
159
+ "kind": "field",
160
+ "name": "#services",
161
+ "privacy": "private",
162
+ "type": {
163
+ "text": "object"
164
+ },
165
+ "default": "{}"
166
+ },
167
+ {
168
+ "kind": "field",
169
+ "name": "#ocr",
170
+ "privacy": "private",
171
+ "type": {
172
+ "text": "boolean"
173
+ },
174
+ "default": "true"
175
+ },
176
+ {
177
+ "kind": "field",
178
+ "name": "#pdf",
179
+ "privacy": "private",
180
+ "type": {
181
+ "text": "boolean"
182
+ },
183
+ "default": "true"
184
+ },
185
+ {
186
+ "kind": "field",
187
+ "name": "#imageProcessor",
188
+ "privacy": "private",
189
+ "type": {
190
+ "text": "null"
191
+ },
192
+ "default": "null"
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "#undoStack",
197
+ "privacy": "private",
198
+ "default": "new Map()"
199
+ },
200
+ {
201
+ "kind": "field",
202
+ "name": "#redoStack",
203
+ "privacy": "private",
204
+ "default": "new Map()"
205
+ },
206
+ {
207
+ "kind": "method",
208
+ "name": "init",
209
+ "description": "Initializes the underlying storage adapter.",
210
+ "return": {
211
+ "type": {
212
+ "text": "Promise<{ kind: string, persistent: boolean }>"
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "kind": "method",
218
+ "name": "setService",
219
+ "parameters": [
220
+ {
221
+ "name": "name",
222
+ "type": {
223
+ "text": "string"
224
+ }
225
+ },
226
+ {
227
+ "name": "service",
228
+ "type": {
229
+ "text": "any"
230
+ }
231
+ }
232
+ ],
233
+ "description": "Register or override an adapter service for this engine instance."
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "getService",
238
+ "parameters": [
239
+ {
240
+ "name": "name",
241
+ "type": {
242
+ "text": "string"
243
+ }
244
+ }
245
+ ],
246
+ "description": "Retrieve an adapter service instance.",
247
+ "return": {
248
+ "type": {
249
+ "text": "any"
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "kind": "method",
255
+ "name": "hasFeature",
256
+ "parameters": [
257
+ {
258
+ "name": "featureName",
259
+ "type": {
260
+ "text": "string"
261
+ }
262
+ }
263
+ ],
264
+ "description": "Check if a specific feature is enabled.",
265
+ "return": {
266
+ "type": {
267
+ "text": "boolean"
268
+ }
269
+ }
270
+ },
271
+ {
272
+ "kind": "field",
273
+ "name": "features",
274
+ "description": "Returns list of currently enabled features.",
275
+ "return": {
276
+ "type": {
277
+ "text": "string[]"
278
+ }
279
+ },
280
+ "readonly": true
281
+ },
282
+ {
283
+ "kind": "method",
284
+ "name": "setFeatures",
285
+ "parameters": [
286
+ {
287
+ "name": "features",
288
+ "type": {
289
+ "text": "string|string[]|Set<string>"
290
+ }
291
+ }
292
+ ],
293
+ "description": "Set enabled features."
294
+ },
295
+ {
296
+ "kind": "method",
297
+ "name": "enableFeature",
298
+ "parameters": [
299
+ {
300
+ "name": "featureName",
301
+ "type": {
302
+ "text": "string"
303
+ }
304
+ }
305
+ ],
306
+ "description": "Enable a specific feature."
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "disableFeature",
311
+ "parameters": [
312
+ {
313
+ "name": "featureName",
314
+ "type": {
315
+ "text": "string"
316
+ }
317
+ }
318
+ ],
319
+ "description": "Disable a specific feature."
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "ocr",
324
+ "description": "Developer opt-in status for OCR heavy module (CPO-042).",
325
+ "type": {
326
+ "text": "boolean"
327
+ }
328
+ },
329
+ {
330
+ "kind": "field",
331
+ "name": "pdf",
332
+ "description": "Developer opt-in status for PDF heavy module (CPO-042).",
333
+ "type": {
334
+ "text": "boolean"
335
+ }
336
+ },
337
+ {
338
+ "kind": "field",
339
+ "name": "exportFormats",
340
+ "description": "Set supported export formats.",
341
+ "return": {
342
+ "type": {
343
+ "text": "string[]"
344
+ }
345
+ },
346
+ "parameters": [
347
+ {
348
+ "name": "formats",
349
+ "type": {
350
+ "text": "string|string[]"
351
+ }
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ "kind": "field",
357
+ "name": "ocrLanguages",
358
+ "description": "Set configured OCR languages.",
359
+ "return": {
360
+ "type": {
361
+ "text": "string[]"
362
+ }
363
+ },
364
+ "parameters": [
365
+ {
366
+ "name": "langs",
367
+ "type": {
368
+ "text": "string|string[]"
369
+ }
370
+ }
371
+ ]
372
+ },
373
+ {
374
+ "kind": "field",
375
+ "name": "maxPages",
376
+ "description": "Set maximum page limit.",
377
+ "return": {
378
+ "type": {
379
+ "text": "number"
380
+ }
381
+ },
382
+ "parameters": [
383
+ {
384
+ "name": "limit",
385
+ "type": {
386
+ "text": "number"
387
+ }
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "kind": "field",
393
+ "name": "assetBase",
394
+ "description": "Set asset base path for lazy worker/WASM loading.",
395
+ "return": {
396
+ "type": {
397
+ "text": "string"
398
+ }
399
+ },
400
+ "parameters": [
401
+ {
402
+ "name": "base",
403
+ "type": {
404
+ "text": "string"
405
+ }
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "kind": "field",
411
+ "name": "licenseKey",
412
+ "description": "Set license key.",
413
+ "return": {
414
+ "type": {
415
+ "text": "string"
416
+ }
417
+ },
418
+ "parameters": [
419
+ {
420
+ "name": "key",
421
+ "type": {
422
+ "text": "string"
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "kind": "field",
429
+ "name": "storage",
430
+ "description": "Underlying StoragePort adapter.",
431
+ "return": {
432
+ "type": {
433
+ "text": "StoragePort"
434
+ }
435
+ },
436
+ "readonly": true
437
+ },
438
+ {
439
+ "kind": "method",
440
+ "name": "setStorage",
441
+ "parameters": [
442
+ {
443
+ "name": "newStorage",
444
+ "type": {
445
+ "text": "StoragePort"
446
+ }
447
+ }
448
+ ],
449
+ "description": "Switch the underlying storage adapter."
450
+ },
451
+ {
452
+ "kind": "method",
453
+ "name": "#pushUndo",
454
+ "privacy": "private",
455
+ "parameters": [
456
+ {
457
+ "name": "docId"
458
+ },
459
+ {
460
+ "name": "action"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "kind": "field",
466
+ "name": "imageProcessor",
467
+ "description": "Current ImageProcessorPort adapter.",
468
+ "type": {
469
+ "text": "ImageProcessorPort"
470
+ },
471
+ "readonly": true
472
+ },
473
+ {
474
+ "kind": "method",
475
+ "name": "setImageProcessor",
476
+ "parameters": [
477
+ {
478
+ "name": "processor"
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "kind": "field",
484
+ "name": "docs",
485
+ "description": "Underlying document repository.",
486
+ "return": {
487
+ "type": {
488
+ "text": "DocRepository"
489
+ }
490
+ },
491
+ "readonly": true
492
+ },
493
+ {
494
+ "kind": "method",
495
+ "name": "listDocuments"
496
+ },
497
+ {
498
+ "kind": "method",
499
+ "name": "getDocument",
500
+ "parameters": [
501
+ {
502
+ "name": "id"
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ "kind": "method",
508
+ "name": "createDocument",
509
+ "parameters": [
510
+ {
511
+ "name": "name"
512
+ },
513
+ {
514
+ "name": "pages"
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "kind": "method",
520
+ "name": "deleteDocument",
521
+ "parameters": [
522
+ {
523
+ "name": "id"
524
+ },
525
+ {
526
+ "name": "options",
527
+ "default": "{}"
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "kind": "method",
533
+ "name": "undoDeleteDocument",
534
+ "parameters": [
535
+ {
536
+ "name": "id"
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "kind": "method",
542
+ "name": "renameDocument",
543
+ "parameters": [
544
+ {
545
+ "name": "id"
546
+ },
547
+ {
548
+ "name": "name"
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "kind": "method",
554
+ "name": "addPages",
555
+ "parameters": [
556
+ {
557
+ "name": "id"
558
+ },
559
+ {
560
+ "name": "pages"
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "kind": "method",
566
+ "name": "deletePage",
567
+ "parameters": [
568
+ {
569
+ "name": "id"
570
+ },
571
+ {
572
+ "name": "pageId"
573
+ },
574
+ {
575
+ "name": "options",
576
+ "default": "{}"
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "kind": "method",
582
+ "name": "undoDeletePage",
583
+ "parameters": [
584
+ {
585
+ "name": "id"
586
+ },
587
+ {
588
+ "name": "pageId"
589
+ }
590
+ ]
591
+ },
592
+ {
593
+ "kind": "method",
594
+ "name": "updatePage",
595
+ "parameters": [
596
+ {
597
+ "name": "id"
598
+ },
599
+ {
600
+ "name": "pageId"
601
+ },
602
+ {
603
+ "name": "updates"
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "kind": "method",
609
+ "name": "reorderPages",
610
+ "parameters": [
611
+ {
612
+ "name": "id"
613
+ },
614
+ {
615
+ "name": "pageIds"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "kind": "method",
621
+ "name": "#resolveDocId",
622
+ "privacy": "private",
623
+ "parameters": [
624
+ {
625
+ "name": "docId"
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "kind": "method",
631
+ "name": "applyEdit",
632
+ "parameters": [
633
+ {
634
+ "name": "docId",
635
+ "type": {
636
+ "text": "string"
637
+ }
638
+ },
639
+ {
640
+ "name": "pageId",
641
+ "type": {
642
+ "text": "string"
643
+ }
644
+ },
645
+ {
646
+ "name": "edits",
647
+ "type": {
648
+ "text": "Object"
649
+ }
650
+ }
651
+ ],
652
+ "description": "Applies non-destructive edits to a document page (CPO-011, CPO-045).\nGenerates derived src via ImageProcessorPort while keeping originalSrc intact.",
653
+ "return": {
654
+ "type": {
655
+ "text": "Promise<Object>"
656
+ }
657
+ }
658
+ },
659
+ {
660
+ "kind": "method",
661
+ "name": "undo",
662
+ "parameters": [
663
+ {
664
+ "name": "docId",
665
+ "type": {
666
+ "text": "string"
667
+ }
668
+ }
669
+ ],
670
+ "description": "Reverts the most recent operation on a document (CPO-016, CPO-045).",
671
+ "return": {
672
+ "type": {
673
+ "text": "Promise<Object|null>"
674
+ }
675
+ }
676
+ },
677
+ {
678
+ "kind": "method",
679
+ "name": "redo",
680
+ "parameters": [
681
+ {
682
+ "name": "docId",
683
+ "type": {
684
+ "text": "string"
685
+ }
686
+ }
687
+ ],
688
+ "description": "Re-applies the most recently reverted operation on a document (CPO-045).",
689
+ "return": {
690
+ "type": {
691
+ "text": "Promise<Object|null>"
692
+ }
693
+ }
694
+ },
695
+ {
696
+ "kind": "method",
697
+ "name": "subscribe",
698
+ "parameters": [
699
+ {
700
+ "name": "callback"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "kind": "method",
706
+ "name": "addFiles",
707
+ "parameters": [
708
+ {
709
+ "name": "files",
710
+ "type": {
711
+ "text": "FileList|File[]|Blob[]"
712
+ }
713
+ },
714
+ {
715
+ "name": "docId",
716
+ "default": "null",
717
+ "description": "Target document ID (if omitted, attaches to latest or creates new doc)",
718
+ "optional": true,
719
+ "type": {
720
+ "text": "string"
721
+ }
722
+ }
723
+ ],
724
+ "description": "Ingest and process an array of File or Blob objects, converting them to document pages.\nHandles images (with EXIF extraction) and PDF files (rendering pages to data URLs).",
725
+ "return": {
726
+ "type": {
727
+ "text": "Promise<Array<Object>>"
728
+ }
729
+ }
730
+ },
731
+ {
732
+ "kind": "method",
733
+ "name": "getPages",
734
+ "parameters": [
735
+ {
736
+ "name": "docId",
737
+ "default": "null",
738
+ "optional": true,
739
+ "type": {
740
+ "text": "string"
741
+ }
742
+ }
743
+ ],
744
+ "description": "Get all pages for a document.",
745
+ "return": {
746
+ "type": {
747
+ "text": "Promise<Array<Object>>"
748
+ }
749
+ }
750
+ },
751
+ {
752
+ "kind": "method",
753
+ "name": "clear",
754
+ "parameters": [
755
+ {
756
+ "name": "docId",
757
+ "default": "null",
758
+ "optional": true,
759
+ "type": {
760
+ "text": "string"
761
+ }
762
+ }
763
+ ],
764
+ "description": "Clear all pages from a document.",
765
+ "return": {
766
+ "type": {
767
+ "text": "Promise<void>"
768
+ }
769
+ }
770
+ },
771
+ {
772
+ "kind": "method",
773
+ "name": "#resolveDocAndPages",
774
+ "privacy": "private",
775
+ "parameters": [
776
+ {
777
+ "name": "docIdOrPages"
778
+ }
779
+ ],
780
+ "description": "Resolve pages and document name from either doc ID, array of pages, or latest doc."
781
+ },
782
+ {
783
+ "kind": "method",
784
+ "name": "exportPdf",
785
+ "parameters": [
786
+ {
787
+ "name": "docIdOrPages",
788
+ "optional": true,
789
+ "type": {
790
+ "text": "string|Array<Object>"
791
+ }
792
+ },
793
+ {
794
+ "name": "options",
795
+ "default": "{}",
796
+ "optional": true,
797
+ "type": {
798
+ "text": "@param {boolean} [options.download=false] - Whether to trigger browser download\n * @param {Function} [options.onProgress] - Progress callback (done, total)\n * "
799
+ }
800
+ }
801
+ ],
802
+ "description": "Export document pages as a PDF Blob.\nDoes NOT trigger automatic browser download unless options.download === true.",
803
+ "return": {
804
+ "type": {
805
+ "text": "Promise<Blob>"
806
+ }
807
+ }
808
+ },
809
+ {
810
+ "kind": "method",
811
+ "name": "exportZip",
812
+ "parameters": [
813
+ {
814
+ "name": "docIdOrPages",
815
+ "optional": true,
816
+ "type": {
817
+ "text": "string|Array<Object>"
818
+ }
819
+ },
820
+ {
821
+ "name": "options",
822
+ "default": "{}",
823
+ "optional": true,
824
+ "type": {
825
+ "text": "@param {boolean} [options.download=false] - Whether to trigger browser download\n * @param {Function} [options.onProgress] - Progress callback (done, total)\n * "
826
+ }
827
+ }
828
+ ],
829
+ "description": "Export document pages as a ZIP (or single image) Blob.\nDoes NOT trigger automatic browser download unless options.download === true.",
830
+ "return": {
831
+ "type": {
832
+ "text": "Promise<Blob>"
833
+ }
834
+ }
835
+ },
836
+ {
837
+ "kind": "method",
838
+ "name": "runOcr",
839
+ "parameters": [
840
+ {
841
+ "name": "docIdOrPages",
842
+ "optional": true,
843
+ "type": {
844
+ "text": "string|Array<Object>"
845
+ }
846
+ },
847
+ {
848
+ "name": "pageId",
849
+ "default": "null",
850
+ "description": "Optional specific page ID to recognize",
851
+ "optional": true,
852
+ "type": {
853
+ "text": "string"
854
+ }
855
+ },
856
+ {
857
+ "name": "options",
858
+ "default": "{}",
859
+ "optional": true,
860
+ "type": {
861
+ "text": "@param {string} [options.lang] - OCR language (defaults to first configured language or 'eng')\n * @param {Function} [options.onPageProgress]\n * "
862
+ }
863
+ }
864
+ ],
865
+ "description": "Run optical character recognition on document pages.",
866
+ "return": {
867
+ "type": {
868
+ "text": "Promise<{ combinedText: string, text: string, pagesResults: Array<Object>, averageConfidence: number }>"
869
+ }
870
+ }
871
+ },
872
+ {
873
+ "kind": "method",
874
+ "name": "sync",
875
+ "parameters": [
876
+ {
877
+ "name": "options",
878
+ "default": "{}",
879
+ "optional": true,
880
+ "type": {
881
+ "text": "@param {Function} [options.onStateChange]\n * "
882
+ }
883
+ }
884
+ ],
885
+ "description": "Initialize P2P synchronization session.",
886
+ "return": {
887
+ "type": {
888
+ "text": "Promise<any>"
889
+ }
890
+ }
891
+ }
892
+ ]
893
+ }
894
+ ],
895
+ "exports": [
896
+ {
897
+ "kind": "js",
898
+ "name": "DEFAULT_FEATURES",
899
+ "declaration": {
900
+ "name": "DEFAULT_FEATURES",
901
+ "module": "sdk/core.js"
902
+ }
903
+ },
904
+ {
905
+ "kind": "js",
906
+ "name": "DEFAULT_EXPORT_FORMATS",
907
+ "declaration": {
908
+ "name": "DEFAULT_EXPORT_FORMATS",
909
+ "module": "sdk/core.js"
910
+ }
911
+ },
912
+ {
913
+ "kind": "js",
914
+ "name": "DEFAULT_OCR_LANGUAGES",
915
+ "declaration": {
916
+ "name": "DEFAULT_OCR_LANGUAGES",
917
+ "module": "sdk/core.js"
918
+ }
919
+ },
920
+ {
921
+ "kind": "js",
922
+ "name": "registerService",
923
+ "declaration": {
924
+ "name": "registerService",
925
+ "module": "sdk/core.js"
926
+ }
927
+ },
928
+ {
929
+ "kind": "js",
930
+ "name": "getRegisteredService",
931
+ "declaration": {
932
+ "name": "getRegisteredService",
933
+ "module": "sdk/core.js"
934
+ }
935
+ },
936
+ {
937
+ "kind": "js",
938
+ "name": "CopioEngine",
939
+ "declaration": {
940
+ "name": "CopioEngine",
941
+ "module": "sdk/core.js"
942
+ }
943
+ },
944
+ {
945
+ "kind": "js",
946
+ "name": "DocRepository",
947
+ "declaration": {
948
+ "name": "DocRepository",
949
+ "module": "sdk/core.js"
950
+ }
951
+ },
952
+ {
953
+ "kind": "js",
954
+ "name": "docRepository",
955
+ "declaration": {
956
+ "name": "docRepository",
957
+ "module": "sdk/core.js"
958
+ }
959
+ },
960
+ {
961
+ "kind": "js",
962
+ "name": "StoragePort",
963
+ "declaration": {
964
+ "name": "StoragePort",
965
+ "module": "sdk/core.js"
966
+ }
967
+ },
968
+ {
969
+ "kind": "js",
970
+ "name": "MemoryStorageAdapter",
971
+ "declaration": {
972
+ "name": "MemoryStorageAdapter",
973
+ "module": "sdk/core.js"
974
+ }
975
+ },
976
+ {
977
+ "kind": "js",
978
+ "name": "IndexedDbStorageAdapter",
979
+ "declaration": {
980
+ "name": "IndexedDbStorageAdapter",
981
+ "module": "sdk/core.js"
982
+ }
983
+ },
984
+ {
985
+ "kind": "js",
986
+ "name": "createDefaultAdapter",
987
+ "declaration": {
988
+ "name": "createDefaultAdapter",
989
+ "module": "sdk/core.js"
990
+ }
991
+ },
992
+ {
993
+ "kind": "js",
994
+ "name": "ImageProcessorPort",
995
+ "declaration": {
996
+ "name": "ImageProcessorPort",
997
+ "module": "sdk/core.js"
998
+ }
999
+ },
1000
+ {
1001
+ "kind": "js",
1002
+ "name": "Canvas2DAdapter",
1003
+ "declaration": {
1004
+ "name": "Canvas2DAdapter",
1005
+ "module": "sdk/core.js"
1006
+ }
1007
+ },
1008
+ {
1009
+ "kind": "js",
1010
+ "name": "NullImageProcessorAdapter",
1011
+ "declaration": {
1012
+ "name": "NullImageProcessorAdapter",
1013
+ "module": "sdk/core.js"
1014
+ }
1015
+ },
1016
+ {
1017
+ "kind": "js",
1018
+ "name": "NullOcrAdapter",
1019
+ "declaration": {
1020
+ "name": "NullOcrAdapter",
1021
+ "module": "sdk/core.js"
1022
+ }
1023
+ },
1024
+ {
1025
+ "kind": "js",
1026
+ "name": "NullPdfAdapter",
1027
+ "declaration": {
1028
+ "name": "NullPdfAdapter",
1029
+ "module": "sdk/core.js"
1030
+ }
1031
+ },
1032
+ {
1033
+ "kind": "js",
1034
+ "name": "Document",
1035
+ "declaration": {
1036
+ "name": "Document",
1037
+ "module": "sdk/core.js"
1038
+ }
1039
+ },
1040
+ {
1041
+ "kind": "js",
1042
+ "name": "Page",
1043
+ "declaration": {
1044
+ "name": "Page",
1045
+ "module": "sdk/core.js"
1046
+ }
1047
+ },
1048
+ {
1049
+ "kind": "js",
1050
+ "name": "ScanSession",
1051
+ "declaration": {
1052
+ "name": "ScanSession",
1053
+ "module": "sdk/core.js"
1054
+ }
1055
+ },
1056
+ {
1057
+ "kind": "js",
1058
+ "name": "normalizeEditStack",
1059
+ "declaration": {
1060
+ "name": "normalizeEditStack",
1061
+ "module": "sdk/core.js"
1062
+ }
1063
+ },
1064
+ {
1065
+ "kind": "js",
1066
+ "name": "hasActiveEdits",
1067
+ "declaration": {
1068
+ "name": "hasActiveEdits",
1069
+ "module": "sdk/core.js"
1070
+ }
1071
+ },
1072
+ {
1073
+ "kind": "js",
1074
+ "name": "randomId",
1075
+ "declaration": {
1076
+ "name": "randomId",
1077
+ "module": "sdk/core.js"
1078
+ }
1079
+ },
1080
+ {
1081
+ "kind": "js",
1082
+ "name": "fileToBase64",
1083
+ "declaration": {
1084
+ "name": "fileToBase64",
1085
+ "module": "sdk/core.js"
1086
+ }
1087
+ },
1088
+ {
1089
+ "kind": "js",
1090
+ "name": "thresholdSrc",
1091
+ "declaration": {
1092
+ "name": "thresholdSrc",
1093
+ "module": "sdk/core.js"
1094
+ }
1095
+ },
1096
+ {
1097
+ "kind": "js",
1098
+ "name": "rotateSrc",
1099
+ "declaration": {
1100
+ "name": "rotateSrc",
1101
+ "module": "sdk/core.js"
1102
+ }
1103
+ },
1104
+ {
1105
+ "kind": "js",
1106
+ "name": "getCroppedSrc",
1107
+ "declaration": {
1108
+ "name": "getCroppedSrc",
1109
+ "module": "sdk/core.js"
1110
+ }
1111
+ },
1112
+ {
1113
+ "kind": "js",
1114
+ "name": "extractExif",
1115
+ "declaration": {
1116
+ "name": "extractExif",
1117
+ "module": "sdk/core.js"
1118
+ }
1119
+ },
1120
+ {
1121
+ "kind": "js",
1122
+ "name": "applyEdits",
1123
+ "declaration": {
1124
+ "name": "applyEdits",
1125
+ "module": "sdk/core.js"
1126
+ }
1127
+ },
1128
+ {
1129
+ "kind": "js",
1130
+ "name": "normalizeEdits",
1131
+ "declaration": {
1132
+ "name": "normalizeEdits",
1133
+ "module": "sdk/core.js"
1134
+ }
1135
+ },
1136
+ {
1137
+ "kind": "js",
1138
+ "name": "renderEditsToCanvas",
1139
+ "declaration": {
1140
+ "name": "renderEditsToCanvas",
1141
+ "module": "sdk/core.js"
1142
+ }
1143
+ },
1144
+ {
1145
+ "kind": "js",
1146
+ "name": "applySauvolaToImageData",
1147
+ "declaration": {
1148
+ "name": "applySauvolaToImageData",
1149
+ "module": "sdk/core.js"
1150
+ }
1151
+ },
1152
+ {
1153
+ "kind": "js",
1154
+ "name": "BUILD_DATE",
1155
+ "declaration": {
1156
+ "name": "BUILD_DATE",
1157
+ "module": "sdk/core.js"
1158
+ }
1159
+ },
1160
+ {
1161
+ "kind": "js",
1162
+ "name": "VERSION",
1163
+ "declaration": {
1164
+ "name": "VERSION",
1165
+ "module": "sdk/core.js"
1166
+ }
1167
+ },
1168
+ {
1169
+ "kind": "js",
1170
+ "name": "COPIO_EVENTS",
1171
+ "declaration": {
1172
+ "name": "COPIO_EVENTS",
1173
+ "module": "./events.js"
1174
+ }
1175
+ },
1176
+ {
1177
+ "kind": "js",
1178
+ "name": "dispatchCopioEvent",
1179
+ "declaration": {
1180
+ "name": "dispatchCopioEvent",
1181
+ "module": "./events.js"
1182
+ }
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ "kind": "javascript-module",
1188
+ "path": "sdk/events.js",
1189
+ "declarations": [
1190
+ {
1191
+ "kind": "variable",
1192
+ "name": "COPIO_EVENTS",
1193
+ "type": {
1194
+ "text": "object"
1195
+ },
1196
+ "default": "{ PAGE_ADDED: 'copio:page-added', PAGE_REMOVED: 'copio:page-removed', PAGES_CHANGED: 'copio:pages-changed', SCAN_COMPLETE: 'copio:scan-complete', EXPORT_PROGRESS: 'copio:export-progress', EXPORT_COMPLETE: 'copio:export-complete', OCR_COMPLETE: 'copio:ocr-complete', SYNC_CONNECTED: 'copio:sync-connected', ERROR: 'copio:error', }",
1197
+ "description": "Public event name constants.",
1198
+ "readonly": true
1199
+ },
1200
+ {
1201
+ "kind": "function",
1202
+ "name": "dispatchCopioEvent",
1203
+ "parameters": [
1204
+ {
1205
+ "name": "target",
1206
+ "description": "Element or target dispatching the event",
1207
+ "type": {
1208
+ "text": "EventTarget"
1209
+ }
1210
+ },
1211
+ {
1212
+ "name": "eventName",
1213
+ "description": "One of COPIO_EVENTS or a custom copio:* event string",
1214
+ "type": {
1215
+ "text": "string"
1216
+ }
1217
+ },
1218
+ {
1219
+ "name": "detail",
1220
+ "default": "{}",
1221
+ "description": "Event payload data",
1222
+ "optional": true,
1223
+ "type": {
1224
+ "text": "Object"
1225
+ }
1226
+ }
1227
+ ],
1228
+ "description": "Dispatch a standard public Copio CustomEvent.\nConfigured with bubbles: true and composed: true so it crosses shadow boundaries.",
1229
+ "return": {
1230
+ "type": {
1231
+ "text": "CustomEvent"
1232
+ }
1233
+ }
1234
+ }
1235
+ ],
1236
+ "exports": [
1237
+ {
1238
+ "kind": "js",
1239
+ "name": "COPIO_EVENTS",
1240
+ "declaration": {
1241
+ "name": "COPIO_EVENTS",
1242
+ "module": "sdk/events.js"
1243
+ }
1244
+ },
1245
+ {
1246
+ "kind": "js",
1247
+ "name": "dispatchCopioEvent",
1248
+ "declaration": {
1249
+ "name": "dispatchCopioEvent",
1250
+ "module": "sdk/events.js"
1251
+ }
1252
+ }
1253
+ ]
1254
+ },
1255
+ {
1256
+ "kind": "javascript-module",
1257
+ "path": "sdk/index.js",
1258
+ "declarations": [],
1259
+ "exports": [
1260
+ {
1261
+ "kind": "js",
1262
+ "name": "CopioScanner",
1263
+ "declaration": {
1264
+ "name": "CopioScanner",
1265
+ "module": "./scanner.js"
1266
+ }
1267
+ },
1268
+ {
1269
+ "kind": "js",
1270
+ "name": "scannerCss",
1271
+ "declaration": {
1272
+ "name": "scannerCss",
1273
+ "module": "./scanner.js"
1274
+ }
1275
+ },
1276
+ {
1277
+ "kind": "js",
1278
+ "name": "getScannerStyleSheet",
1279
+ "declaration": {
1280
+ "name": "getScannerStyleSheet",
1281
+ "module": "./scanner.js"
1282
+ }
1283
+ },
1284
+ {
1285
+ "kind": "js",
1286
+ "name": "adoptScannerStyles",
1287
+ "declaration": {
1288
+ "name": "adoptScannerStyles",
1289
+ "module": "./scanner.js"
1290
+ }
1291
+ },
1292
+ {
1293
+ "kind": "js",
1294
+ "name": "CopioImages",
1295
+ "declaration": {
1296
+ "name": "CopioImages",
1297
+ "module": "../js/routes/doc/copio-images.js"
1298
+ }
1299
+ },
1300
+ {
1301
+ "kind": "js",
1302
+ "name": "CopioCarousel",
1303
+ "declaration": {
1304
+ "name": "CopioCarousel",
1305
+ "module": "../js/routes/doc/copio-carousel.js"
1306
+ }
1307
+ },
1308
+ {
1309
+ "kind": "js",
1310
+ "name": "CopioDocOcrDialog",
1311
+ "declaration": {
1312
+ "name": "CopioDocOcrDialog",
1313
+ "module": "../js/routes/ocr/copio-doc-ocr-dialog.js"
1314
+ }
1315
+ },
1316
+ {
1317
+ "kind": "js",
1318
+ "name": "CopioSyncDialog",
1319
+ "declaration": {
1320
+ "name": "CopioSyncDialog",
1321
+ "module": "../js/routes/sync/copio-sync-dialog.js"
1322
+ }
1323
+ },
1324
+ {
1325
+ "kind": "js",
1326
+ "name": "CopioAddEditDialog",
1327
+ "declaration": {
1328
+ "name": "CopioAddEditDialog",
1329
+ "module": "../js/routes/add-edit/copio-add-edit-dialog.js"
1330
+ }
1331
+ },
1332
+ {
1333
+ "kind": "js",
1334
+ "name": "CopioRow",
1335
+ "declaration": {
1336
+ "name": "CopioRow",
1337
+ "module": "../js/routes/home/copio-row.js"
1338
+ }
1339
+ },
1340
+ {
1341
+ "kind": "js",
1342
+ "name": "CopioHeader",
1343
+ "declaration": {
1344
+ "name": "CopioHeader",
1345
+ "module": "../js/components/copio-header.js"
1346
+ }
1347
+ },
1348
+ {
1349
+ "kind": "js",
1350
+ "name": "CopioLoader",
1351
+ "declaration": {
1352
+ "name": "CopioLoader",
1353
+ "module": "../js/components/copio-loader.js"
1354
+ }
1355
+ },
1356
+ {
1357
+ "kind": "js",
1358
+ "name": "CopioEngine",
1359
+ "declaration": {
1360
+ "name": "CopioEngine",
1361
+ "module": "./core.js"
1362
+ }
1363
+ },
1364
+ {
1365
+ "kind": "js",
1366
+ "name": "COPIO_EVENTS",
1367
+ "declaration": {
1368
+ "name": "COPIO_EVENTS",
1369
+ "module": "./events.js"
1370
+ }
1371
+ },
1372
+ {
1373
+ "kind": "js",
1374
+ "name": "dispatchCopioEvent",
1375
+ "declaration": {
1376
+ "name": "dispatchCopioEvent",
1377
+ "module": "./events.js"
1378
+ }
1379
+ },
1380
+ {
1381
+ "kind": "js",
1382
+ "name": "LicenseManager",
1383
+ "declaration": {
1384
+ "name": "LicenseManager",
1385
+ "module": "./license.js"
1386
+ }
1387
+ },
1388
+ {
1389
+ "kind": "js",
1390
+ "name": "BUILD_DATE",
1391
+ "declaration": {
1392
+ "name": "BUILD_DATE",
1393
+ "module": "./version.js"
1394
+ }
1395
+ },
1396
+ {
1397
+ "kind": "js",
1398
+ "name": "VERSION",
1399
+ "declaration": {
1400
+ "name": "VERSION",
1401
+ "module": "./version.js"
1402
+ }
1403
+ },
1404
+ {
1405
+ "kind": "js",
1406
+ "name": "recognizeImageText",
1407
+ "declaration": {
1408
+ "name": "recognizeImageText",
1409
+ "module": "../js/services/ocr-service.js"
1410
+ }
1411
+ },
1412
+ {
1413
+ "kind": "js",
1414
+ "name": "recognizeDocumentPages",
1415
+ "declaration": {
1416
+ "name": "recognizeDocumentPages",
1417
+ "module": "../js/services/ocr-service.js"
1418
+ }
1419
+ },
1420
+ {
1421
+ "kind": "js",
1422
+ "name": "getOcrWorker",
1423
+ "declaration": {
1424
+ "name": "getOcrWorker",
1425
+ "module": "../js/services/ocr-service.js"
1426
+ }
1427
+ },
1428
+ {
1429
+ "kind": "js",
1430
+ "name": "terminateOcrWorker",
1431
+ "declaration": {
1432
+ "name": "terminateOcrWorker",
1433
+ "module": "../js/services/ocr-service.js"
1434
+ }
1435
+ },
1436
+ {
1437
+ "kind": "js",
1438
+ "name": "SUPPORTED_LANGUAGES",
1439
+ "declaration": {
1440
+ "name": "SUPPORTED_LANGUAGES",
1441
+ "module": "../js/services/ocr-service.js"
1442
+ }
1443
+ },
1444
+ {
1445
+ "kind": "js",
1446
+ "name": "SyncManager",
1447
+ "declaration": {
1448
+ "name": "SyncManager",
1449
+ "module": "../js/services/sync-service.js"
1450
+ }
1451
+ },
1452
+ {
1453
+ "kind": "js",
1454
+ "name": "exportDocumentAsPdf",
1455
+ "declaration": {
1456
+ "name": "exportDocumentAsPdf",
1457
+ "module": "../js/services/export-utils.js"
1458
+ }
1459
+ },
1460
+ {
1461
+ "kind": "js",
1462
+ "name": "exportDocumentAsImages",
1463
+ "declaration": {
1464
+ "name": "exportDocumentAsImages",
1465
+ "module": "../js/services/export-utils.js"
1466
+ }
1467
+ },
1468
+ {
1469
+ "kind": "js",
1470
+ "name": "exportDocumentAsMarkdown",
1471
+ "declaration": {
1472
+ "name": "exportDocumentAsMarkdown",
1473
+ "module": "../js/services/export-utils.js"
1474
+ }
1475
+ },
1476
+ {
1477
+ "kind": "js",
1478
+ "name": "notify",
1479
+ "declaration": {
1480
+ "name": "notify",
1481
+ "module": "../js/services/notify.js"
1482
+ }
1483
+ },
1484
+ {
1485
+ "kind": "js",
1486
+ "name": "setContainer",
1487
+ "declaration": {
1488
+ "name": "setContainer",
1489
+ "module": "../js/services/notify.js"
1490
+ }
1491
+ },
1492
+ {
1493
+ "kind": "js",
1494
+ "name": "getContainer",
1495
+ "declaration": {
1496
+ "name": "getContainer",
1497
+ "module": "../js/services/notify.js"
1498
+ }
1499
+ },
1500
+ {
1501
+ "kind": "js",
1502
+ "name": "clearNotifications",
1503
+ "declaration": {
1504
+ "name": "clear",
1505
+ "module": "../js/services/notify.js"
1506
+ }
1507
+ },
1508
+ {
1509
+ "kind": "js",
1510
+ "name": "randomId",
1511
+ "declaration": {
1512
+ "name": "randomId",
1513
+ "module": "../js/utils/utils.js"
1514
+ }
1515
+ },
1516
+ {
1517
+ "kind": "js",
1518
+ "name": "fileToBase64",
1519
+ "declaration": {
1520
+ "name": "fileToBase64",
1521
+ "module": "../js/utils/utils.js"
1522
+ }
1523
+ },
1524
+ {
1525
+ "kind": "js",
1526
+ "name": "thresholdSrc",
1527
+ "declaration": {
1528
+ "name": "thresholdSrc",
1529
+ "module": "../js/utils/utils.js"
1530
+ }
1531
+ },
1532
+ {
1533
+ "kind": "js",
1534
+ "name": "rotateSrc",
1535
+ "declaration": {
1536
+ "name": "rotateSrc",
1537
+ "module": "../js/utils/utils.js"
1538
+ }
1539
+ },
1540
+ {
1541
+ "kind": "js",
1542
+ "name": "getCroppedSrc",
1543
+ "declaration": {
1544
+ "name": "getCroppedSrc",
1545
+ "module": "../js/utils/utils.js"
1546
+ }
1547
+ },
1548
+ {
1549
+ "kind": "js",
1550
+ "name": "extractExif",
1551
+ "declaration": {
1552
+ "name": "extractExif",
1553
+ "module": "../js/utils/utils.js"
1554
+ }
1555
+ },
1556
+ {
1557
+ "kind": "js",
1558
+ "name": "renderPdfPagesToDataUrls",
1559
+ "declaration": {
1560
+ "name": "renderPdfPagesToDataUrls",
1561
+ "module": "../js/utils/pdf-utils.js"
1562
+ }
1563
+ },
1564
+ {
1565
+ "kind": "js",
1566
+ "name": "getAssetBase",
1567
+ "declaration": {
1568
+ "name": "getAssetBase",
1569
+ "module": "../js/utils/module-loader.js"
1570
+ }
1571
+ },
1572
+ {
1573
+ "kind": "js",
1574
+ "name": "setAssetBase",
1575
+ "declaration": {
1576
+ "name": "setAssetBase",
1577
+ "module": "../js/utils/module-loader.js"
1578
+ }
1579
+ },
1580
+ {
1581
+ "kind": "js",
1582
+ "name": "resolveAssetUrl",
1583
+ "declaration": {
1584
+ "name": "resolveAssetUrl",
1585
+ "module": "../js/utils/module-loader.js"
1586
+ }
1587
+ },
1588
+ {
1589
+ "kind": "js",
1590
+ "name": "loadScript",
1591
+ "declaration": {
1592
+ "name": "loadScript",
1593
+ "module": "../js/utils/module-loader.js"
1594
+ }
1595
+ },
1596
+ {
1597
+ "kind": "js",
1598
+ "name": "loadCropper",
1599
+ "declaration": {
1600
+ "name": "loadCropper",
1601
+ "module": "../js/utils/module-loader.js"
1602
+ }
1603
+ },
1604
+ {
1605
+ "kind": "js",
1606
+ "name": "loadPdfKit",
1607
+ "declaration": {
1608
+ "name": "loadPdfKit",
1609
+ "module": "../js/utils/module-loader.js"
1610
+ }
1611
+ },
1612
+ {
1613
+ "kind": "js",
1614
+ "name": "loadJsZip",
1615
+ "declaration": {
1616
+ "name": "loadJsZip",
1617
+ "module": "../js/utils/module-loader.js"
1618
+ }
1619
+ },
1620
+ {
1621
+ "kind": "js",
1622
+ "name": "loadMarked",
1623
+ "declaration": {
1624
+ "name": "loadMarked",
1625
+ "module": "../js/utils/module-loader.js"
1626
+ }
1627
+ },
1628
+ {
1629
+ "kind": "js",
1630
+ "name": "loadPeerJs",
1631
+ "declaration": {
1632
+ "name": "loadPeerJs",
1633
+ "module": "../js/utils/module-loader.js"
1634
+ }
1635
+ },
1636
+ {
1637
+ "kind": "js",
1638
+ "name": "loadQrCode",
1639
+ "declaration": {
1640
+ "name": "loadQrCode",
1641
+ "module": "../js/utils/module-loader.js"
1642
+ }
1643
+ },
1644
+ {
1645
+ "kind": "js",
1646
+ "name": "loadTesseract",
1647
+ "declaration": {
1648
+ "name": "loadTesseract",
1649
+ "module": "../js/utils/module-loader.js"
1650
+ }
1651
+ },
1652
+ {
1653
+ "kind": "js",
1654
+ "name": "DocRepository",
1655
+ "declaration": {
1656
+ "name": "DocRepository",
1657
+ "module": "../js/services/doc-repository.js"
1658
+ }
1659
+ },
1660
+ {
1661
+ "kind": "js",
1662
+ "name": "docRepository",
1663
+ "declaration": {
1664
+ "name": "docRepository",
1665
+ "module": "../js/services/doc-repository.js"
1666
+ }
1667
+ },
1668
+ {
1669
+ "kind": "js",
1670
+ "name": "StoragePort",
1671
+ "declaration": {
1672
+ "name": "StoragePort",
1673
+ "module": "../js/adapters/storage/index.js"
1674
+ }
1675
+ },
1676
+ {
1677
+ "kind": "js",
1678
+ "name": "MemoryStorageAdapter",
1679
+ "declaration": {
1680
+ "name": "MemoryStorageAdapter",
1681
+ "module": "../js/adapters/storage/index.js"
1682
+ }
1683
+ },
1684
+ {
1685
+ "kind": "js",
1686
+ "name": "IndexedDbStorageAdapter",
1687
+ "declaration": {
1688
+ "name": "IndexedDbStorageAdapter",
1689
+ "module": "../js/adapters/storage/index.js"
1690
+ }
1691
+ },
1692
+ {
1693
+ "kind": "js",
1694
+ "name": "createDefaultAdapter",
1695
+ "declaration": {
1696
+ "name": "createDefaultAdapter",
1697
+ "module": "../js/adapters/storage/index.js"
1698
+ }
1699
+ },
1700
+ {
1701
+ "kind": "js",
1702
+ "name": "OcrPort",
1703
+ "declaration": {
1704
+ "name": "OcrPort",
1705
+ "module": "../js/adapters/ocr/index.js"
1706
+ }
1707
+ },
1708
+ {
1709
+ "kind": "js",
1710
+ "name": "NullOcrAdapter",
1711
+ "declaration": {
1712
+ "name": "NullOcrAdapter",
1713
+ "module": "../js/adapters/ocr/index.js"
1714
+ }
1715
+ },
1716
+ {
1717
+ "kind": "js",
1718
+ "name": "TesseractWasmAdapter",
1719
+ "declaration": {
1720
+ "name": "TesseractWasmAdapter",
1721
+ "module": "../js/adapters/ocr/index.js"
1722
+ }
1723
+ },
1724
+ {
1725
+ "kind": "js",
1726
+ "name": "PdfPort",
1727
+ "declaration": {
1728
+ "name": "PdfPort",
1729
+ "module": "../js/adapters/pdf/index.js"
1730
+ }
1731
+ },
1732
+ {
1733
+ "kind": "js",
1734
+ "name": "NullPdfAdapter",
1735
+ "declaration": {
1736
+ "name": "NullPdfAdapter",
1737
+ "module": "../js/adapters/pdf/index.js"
1738
+ }
1739
+ },
1740
+ {
1741
+ "kind": "js",
1742
+ "name": "PdfKitAdapter",
1743
+ "declaration": {
1744
+ "name": "PdfKitAdapter",
1745
+ "module": "../js/adapters/pdf/index.js"
1746
+ }
1747
+ },
1748
+ {
1749
+ "kind": "js",
1750
+ "name": "ImageProcessorPort",
1751
+ "declaration": {
1752
+ "name": "ImageProcessorPort",
1753
+ "module": "../js/adapters/image/index.js"
1754
+ }
1755
+ },
1756
+ {
1757
+ "kind": "js",
1758
+ "name": "Canvas2DAdapter",
1759
+ "declaration": {
1760
+ "name": "Canvas2DAdapter",
1761
+ "module": "../js/adapters/image/index.js"
1762
+ }
1763
+ },
1764
+ {
1765
+ "kind": "js",
1766
+ "name": "NullImageProcessorAdapter",
1767
+ "declaration": {
1768
+ "name": "NullImageProcessorAdapter",
1769
+ "module": "../js/adapters/image/index.js"
1770
+ }
1771
+ },
1772
+ {
1773
+ "kind": "js",
1774
+ "name": "SyncPort",
1775
+ "declaration": {
1776
+ "name": "SyncPort",
1777
+ "module": "../js/adapters/sync/index.js"
1778
+ }
1779
+ },
1780
+ {
1781
+ "kind": "js",
1782
+ "name": "PeerJsAdapter",
1783
+ "declaration": {
1784
+ "name": "PeerJsAdapter",
1785
+ "module": "../js/adapters/sync/index.js"
1786
+ }
1787
+ },
1788
+ {
1789
+ "kind": "js",
1790
+ "name": "NullSyncAdapter",
1791
+ "declaration": {
1792
+ "name": "NullSyncAdapter",
1793
+ "module": "../js/adapters/sync/index.js"
1794
+ }
1795
+ },
1796
+ {
1797
+ "kind": "js",
1798
+ "name": "Document",
1799
+ "declaration": {
1800
+ "name": "Document",
1801
+ "module": "./models.js"
1802
+ }
1803
+ },
1804
+ {
1805
+ "kind": "js",
1806
+ "name": "Page",
1807
+ "declaration": {
1808
+ "name": "Page",
1809
+ "module": "./models.js"
1810
+ }
1811
+ },
1812
+ {
1813
+ "kind": "js",
1814
+ "name": "ScanSession",
1815
+ "declaration": {
1816
+ "name": "ScanSession",
1817
+ "module": "./models.js"
1818
+ }
1819
+ },
1820
+ {
1821
+ "kind": "js",
1822
+ "name": "normalizeEditStack",
1823
+ "declaration": {
1824
+ "name": "normalizeEditStack",
1825
+ "module": "./models.js"
1826
+ }
1827
+ },
1828
+ {
1829
+ "kind": "js",
1830
+ "name": "hasActiveEdits",
1831
+ "declaration": {
1832
+ "name": "hasActiveEdits",
1833
+ "module": "./models.js"
1834
+ }
1835
+ },
1836
+ {
1837
+ "kind": "js",
1838
+ "name": "registerService",
1839
+ "declaration": {
1840
+ "name": "registerService",
1841
+ "module": "./core.js"
1842
+ }
1843
+ },
1844
+ {
1845
+ "kind": "js",
1846
+ "name": "getRegisteredService",
1847
+ "declaration": {
1848
+ "name": "getRegisteredService",
1849
+ "module": "./core.js"
1850
+ }
1851
+ }
1852
+ ]
1853
+ },
1854
+ {
1855
+ "kind": "javascript-module",
1856
+ "path": "sdk/license.js",
1857
+ "declarations": [
1858
+ {
1859
+ "kind": "class",
1860
+ "description": "License Manager (CPO-053 / CPO-061)\nClient-side verification and key handling for Copio SDK tiers.",
1861
+ "name": "LicenseManager",
1862
+ "members": [
1863
+ {
1864
+ "kind": "method",
1865
+ "name": "setKey",
1866
+ "parameters": [
1867
+ {
1868
+ "name": "key"
1869
+ }
1870
+ ]
1871
+ },
1872
+ {
1873
+ "kind": "method",
1874
+ "name": "getKey"
1875
+ },
1876
+ {
1877
+ "kind": "method",
1878
+ "name": "isValid"
1879
+ },
1880
+ {
1881
+ "kind": "method",
1882
+ "name": "getTier"
1883
+ },
1884
+ {
1885
+ "kind": "field",
1886
+ "name": "key",
1887
+ "default": "licenseKey"
1888
+ }
1889
+ ]
1890
+ }
1891
+ ],
1892
+ "exports": [
1893
+ {
1894
+ "kind": "js",
1895
+ "name": "LicenseManager",
1896
+ "declaration": {
1897
+ "name": "LicenseManager",
1898
+ "module": "sdk/license.js"
1899
+ }
1900
+ }
1901
+ ]
1902
+ },
1903
+ {
1904
+ "kind": "javascript-module",
1905
+ "path": "sdk/models.js",
1906
+ "declarations": [
1907
+ {
1908
+ "kind": "function",
1909
+ "name": "normalizeEditStack",
1910
+ "parameters": [
1911
+ {
1912
+ "name": "edits",
1913
+ "default": "{}",
1914
+ "optional": true,
1915
+ "type": {
1916
+ "text": "Object"
1917
+ }
1918
+ }
1919
+ ],
1920
+ "description": "Normalizes an edit stack object with safe defaults.",
1921
+ "return": {
1922
+ "type": {
1923
+ "text": "{ crop: { x: number, y: number, w: number, h: number } | null, rotate: 0|90|180|270, filter: 'none'|'bw' }"
1924
+ }
1925
+ }
1926
+ },
1927
+ {
1928
+ "kind": "function",
1929
+ "name": "hasActiveEdits",
1930
+ "parameters": [
1931
+ {
1932
+ "name": "edits",
1933
+ "optional": true,
1934
+ "type": {
1935
+ "text": "Object"
1936
+ }
1937
+ }
1938
+ ],
1939
+ "description": "Checks whether an edit stack contains any non-default modifications.",
1940
+ "return": {
1941
+ "type": {
1942
+ "text": "boolean"
1943
+ }
1944
+ }
1945
+ },
1946
+ {
1947
+ "kind": "class",
1948
+ "description": "Page domain entity.",
1949
+ "name": "Page",
1950
+ "members": [
1951
+ {
1952
+ "kind": "field",
1953
+ "name": "isModified",
1954
+ "readonly": true
1955
+ },
1956
+ {
1957
+ "kind": "method",
1958
+ "name": "toJSON"
1959
+ },
1960
+ {
1961
+ "kind": "field",
1962
+ "name": "id"
1963
+ },
1964
+ {
1965
+ "kind": "field",
1966
+ "name": "src"
1967
+ },
1968
+ {
1969
+ "kind": "field",
1970
+ "name": "originalSrc"
1971
+ },
1972
+ {
1973
+ "kind": "field",
1974
+ "name": "edits"
1975
+ },
1976
+ {
1977
+ "kind": "field",
1978
+ "name": "name"
1979
+ },
1980
+ {
1981
+ "kind": "field",
1982
+ "name": "type"
1983
+ },
1984
+ {
1985
+ "kind": "field",
1986
+ "name": "orientation"
1987
+ },
1988
+ {
1989
+ "kind": "field",
1990
+ "name": "ocrText"
1991
+ },
1992
+ {
1993
+ "kind": "field",
1994
+ "name": "ocrConfidence"
1995
+ }
1996
+ ]
1997
+ },
1998
+ {
1999
+ "kind": "class",
2000
+ "description": "Document domain entity.",
2001
+ "name": "Document",
2002
+ "members": [
2003
+ {
2004
+ "kind": "field",
2005
+ "name": "pageCount",
2006
+ "readonly": true
2007
+ },
2008
+ {
2009
+ "kind": "method",
2010
+ "name": "toJSON"
2011
+ },
2012
+ {
2013
+ "kind": "field",
2014
+ "name": "id"
2015
+ },
2016
+ {
2017
+ "kind": "field",
2018
+ "name": "name"
2019
+ },
2020
+ {
2021
+ "kind": "field",
2022
+ "name": "pages"
2023
+ },
2024
+ {
2025
+ "kind": "field",
2026
+ "name": "createdAt"
2027
+ },
2028
+ {
2029
+ "kind": "field",
2030
+ "name": "updatedAt"
2031
+ }
2032
+ ]
2033
+ },
2034
+ {
2035
+ "kind": "class",
2036
+ "description": "ScanSession domain model for ongoing capture workflows (CPO-034).",
2037
+ "name": "ScanSession",
2038
+ "members": [
2039
+ {
2040
+ "kind": "method",
2041
+ "name": "pushHistory",
2042
+ "parameters": [
2043
+ {
2044
+ "name": "entry"
2045
+ }
2046
+ ]
2047
+ },
2048
+ {
2049
+ "kind": "method",
2050
+ "name": "undo"
2051
+ },
2052
+ {
2053
+ "kind": "method",
2054
+ "name": "redo"
2055
+ },
2056
+ {
2057
+ "kind": "field",
2058
+ "name": "mode"
2059
+ },
2060
+ {
2061
+ "kind": "field",
2062
+ "name": "aspect"
2063
+ },
2064
+ {
2065
+ "kind": "field",
2066
+ "name": "docId"
2067
+ },
2068
+ {
2069
+ "kind": "field",
2070
+ "name": "maxPages"
2071
+ },
2072
+ {
2073
+ "kind": "field",
2074
+ "name": "stage",
2075
+ "type": {
2076
+ "text": "string"
2077
+ },
2078
+ "default": "'viewfinder'"
2079
+ },
2080
+ {
2081
+ "kind": "field",
2082
+ "name": "activePageIndex",
2083
+ "type": {
2084
+ "text": "number"
2085
+ },
2086
+ "default": "0"
2087
+ },
2088
+ {
2089
+ "kind": "field",
2090
+ "name": "history",
2091
+ "type": {
2092
+ "text": "array"
2093
+ },
2094
+ "default": "[]"
2095
+ },
2096
+ {
2097
+ "kind": "field",
2098
+ "name": "future",
2099
+ "type": {
2100
+ "text": "array"
2101
+ },
2102
+ "default": "[]"
2103
+ }
2104
+ ]
2105
+ }
2106
+ ],
2107
+ "exports": [
2108
+ {
2109
+ "kind": "js",
2110
+ "name": "normalizeEditStack",
2111
+ "declaration": {
2112
+ "name": "normalizeEditStack",
2113
+ "module": "sdk/models.js"
2114
+ }
2115
+ },
2116
+ {
2117
+ "kind": "js",
2118
+ "name": "hasActiveEdits",
2119
+ "declaration": {
2120
+ "name": "hasActiveEdits",
2121
+ "module": "sdk/models.js"
2122
+ }
2123
+ },
2124
+ {
2125
+ "kind": "js",
2126
+ "name": "Page",
2127
+ "declaration": {
2128
+ "name": "Page",
2129
+ "module": "sdk/models.js"
2130
+ }
2131
+ },
2132
+ {
2133
+ "kind": "js",
2134
+ "name": "Document",
2135
+ "declaration": {
2136
+ "name": "Document",
2137
+ "module": "sdk/models.js"
2138
+ }
2139
+ },
2140
+ {
2141
+ "kind": "js",
2142
+ "name": "ScanSession",
2143
+ "declaration": {
2144
+ "name": "ScanSession",
2145
+ "module": "sdk/models.js"
2146
+ }
2147
+ }
2148
+ ]
2149
+ },
2150
+ {
2151
+ "kind": "javascript-module",
2152
+ "path": "sdk/scanner.js",
2153
+ "declarations": [
2154
+ {
2155
+ "kind": "class",
2156
+ "description": "",
2157
+ "name": "CopioScanner",
2158
+ "members": [
2159
+ {
2160
+ "kind": "field",
2161
+ "name": "#engine",
2162
+ "privacy": "private",
2163
+ "type": {
2164
+ "text": "null"
2165
+ },
2166
+ "default": "null"
2167
+ },
2168
+ {
2169
+ "kind": "field",
2170
+ "name": "#storage",
2171
+ "privacy": "private",
2172
+ "type": {
2173
+ "text": "null"
2174
+ },
2175
+ "default": "null"
2176
+ },
2177
+ {
2178
+ "kind": "field",
2179
+ "name": "#unsubscribeRepo",
2180
+ "privacy": "private",
2181
+ "type": {
2182
+ "text": "null"
2183
+ },
2184
+ "default": "null"
2185
+ },
2186
+ {
2187
+ "kind": "field",
2188
+ "name": "#isOpen",
2189
+ "privacy": "private",
2190
+ "type": {
2191
+ "text": "boolean"
2192
+ },
2193
+ "default": "false"
2194
+ },
2195
+ {
2196
+ "kind": "field",
2197
+ "name": "#stage",
2198
+ "privacy": "private",
2199
+ "type": {
2200
+ "text": "string"
2201
+ },
2202
+ "default": "'viewfinder'"
2203
+ },
2204
+ {
2205
+ "kind": "field",
2206
+ "name": "#activePageIndex",
2207
+ "privacy": "private",
2208
+ "type": {
2209
+ "text": "number"
2210
+ },
2211
+ "default": "0"
2212
+ },
2213
+ {
2214
+ "kind": "field",
2215
+ "name": "#pageCount",
2216
+ "privacy": "private",
2217
+ "type": {
2218
+ "text": "number"
2219
+ },
2220
+ "default": "0"
2221
+ },
2222
+ {
2223
+ "kind": "field",
2224
+ "name": "#retaking",
2225
+ "privacy": "private",
2226
+ "type": {
2227
+ "text": "boolean"
2228
+ },
2229
+ "default": "false"
2230
+ },
2231
+ {
2232
+ "kind": "field",
2233
+ "name": "#cropMode",
2234
+ "privacy": "private",
2235
+ "type": {
2236
+ "text": "boolean"
2237
+ },
2238
+ "default": "false"
2239
+ },
2240
+ {
2241
+ "kind": "field",
2242
+ "name": "#draftCrop",
2243
+ "privacy": "private",
2244
+ "type": {
2245
+ "text": "null"
2246
+ },
2247
+ "default": "null"
2248
+ },
2249
+ {
2250
+ "kind": "field",
2251
+ "name": "#undoTimer",
2252
+ "privacy": "private",
2253
+ "type": {
2254
+ "text": "null"
2255
+ },
2256
+ "default": "null"
2257
+ },
2258
+ {
2259
+ "kind": "field",
2260
+ "name": "#undoRemaining",
2261
+ "privacy": "private",
2262
+ "type": {
2263
+ "text": "number"
2264
+ },
2265
+ "default": "0"
2266
+ },
2267
+ {
2268
+ "kind": "field",
2269
+ "name": "#renderPromise",
2270
+ "privacy": "private",
2271
+ "type": {
2272
+ "text": "null"
2273
+ },
2274
+ "default": "null"
2275
+ },
2276
+ {
2277
+ "kind": "field",
2278
+ "name": "#sessionDocId",
2279
+ "privacy": "private",
2280
+ "type": {
2281
+ "text": "null"
2282
+ },
2283
+ "default": "null"
2284
+ },
2285
+ {
2286
+ "kind": "field",
2287
+ "name": "#cameraStream",
2288
+ "privacy": "private",
2289
+ "type": {
2290
+ "text": "null"
2291
+ },
2292
+ "default": "null"
2293
+ },
2294
+ {
2295
+ "kind": "field",
2296
+ "name": "onShutter",
2297
+ "type": {
2298
+ "text": "null"
2299
+ },
2300
+ "default": "null"
2301
+ },
2302
+ {
2303
+ "kind": "field",
2304
+ "name": "#targetDocId",
2305
+ "privacy": "private",
2306
+ "readonly": true
2307
+ },
2308
+ {
2309
+ "kind": "method",
2310
+ "name": "#initEngine",
2311
+ "privacy": "private"
2312
+ },
2313
+ {
2314
+ "kind": "method",
2315
+ "name": "#updateChildViews",
2316
+ "privacy": "private"
2317
+ },
2318
+ {
2319
+ "kind": "method",
2320
+ "name": "#buildInitialDom",
2321
+ "privacy": "private"
2322
+ },
2323
+ {
2324
+ "kind": "method",
2325
+ "name": "#bindEventListeners",
2326
+ "privacy": "private"
2327
+ },
2328
+ {
2329
+ "kind": "method",
2330
+ "name": "#bindCropHandles",
2331
+ "privacy": "private"
2332
+ },
2333
+ {
2334
+ "kind": "method",
2335
+ "name": "#updateCropBoxUi",
2336
+ "privacy": "private"
2337
+ },
2338
+ {
2339
+ "kind": "method",
2340
+ "name": "#syncView",
2341
+ "privacy": "private"
2342
+ },
2343
+ {
2344
+ "kind": "method",
2345
+ "name": "#doSyncView",
2346
+ "privacy": "private"
2347
+ },
2348
+ {
2349
+ "kind": "method",
2350
+ "name": "#renderFilmstrip",
2351
+ "privacy": "private",
2352
+ "parameters": [
2353
+ {
2354
+ "name": "pages"
2355
+ }
2356
+ ]
2357
+ },
2358
+ {
2359
+ "kind": "method",
2360
+ "name": "#movePage",
2361
+ "privacy": "private",
2362
+ "parameters": [
2363
+ {
2364
+ "name": "fromIdx"
2365
+ },
2366
+ {
2367
+ "name": "toIdx"
2368
+ }
2369
+ ]
2370
+ },
2371
+ {
2372
+ "kind": "method",
2373
+ "name": "#stopCameraStream",
2374
+ "privacy": "private"
2375
+ },
2376
+ {
2377
+ "kind": "method",
2378
+ "name": "#handleShutterClick",
2379
+ "privacy": "private"
2380
+ },
2381
+ {
2382
+ "kind": "method",
2383
+ "name": "#rotateActivePage",
2384
+ "privacy": "private"
2385
+ },
2386
+ {
2387
+ "kind": "method",
2388
+ "name": "#toggleActivePageBw",
2389
+ "privacy": "private"
2390
+ },
2391
+ {
2392
+ "kind": "method",
2393
+ "name": "#toggleCropMode",
2394
+ "privacy": "private"
2395
+ },
2396
+ {
2397
+ "kind": "method",
2398
+ "name": "#deleteActivePageWithUndo",
2399
+ "privacy": "private"
2400
+ },
2401
+ {
2402
+ "kind": "method",
2403
+ "name": "#showUndoToast",
2404
+ "privacy": "private"
2405
+ },
2406
+ {
2407
+ "kind": "method",
2408
+ "name": "#openOcrSheet",
2409
+ "privacy": "private"
2410
+ },
2411
+ {
2412
+ "kind": "method",
2413
+ "name": "#closeOcrSheet",
2414
+ "privacy": "private"
2415
+ },
2416
+ {
2417
+ "kind": "method",
2418
+ "name": "#handlePrimaryCtaClick",
2419
+ "privacy": "private"
2420
+ },
2421
+ {
2422
+ "kind": "field",
2423
+ "name": "theme"
2424
+ },
2425
+ {
2426
+ "kind": "field",
2427
+ "name": "mode"
2428
+ },
2429
+ {
2430
+ "kind": "field",
2431
+ "name": "aspect"
2432
+ },
2433
+ {
2434
+ "kind": "field",
2435
+ "name": "stage"
2436
+ },
2437
+ {
2438
+ "kind": "field",
2439
+ "name": "docId"
2440
+ },
2441
+ {
2442
+ "kind": "method",
2443
+ "name": "rotateActivePage"
2444
+ },
2445
+ {
2446
+ "kind": "method",
2447
+ "name": "toggleActivePageBw"
2448
+ },
2449
+ {
2450
+ "kind": "method",
2451
+ "name": "toggleCropMode"
2452
+ },
2453
+ {
2454
+ "kind": "method",
2455
+ "name": "deleteActivePageWithUndo"
2456
+ },
2457
+ {
2458
+ "kind": "field",
2459
+ "name": "features"
2460
+ },
2461
+ {
2462
+ "kind": "method",
2463
+ "name": "hasFeature",
2464
+ "parameters": [
2465
+ {
2466
+ "name": "featureName"
2467
+ }
2468
+ ]
2469
+ },
2470
+ {
2471
+ "kind": "field",
2472
+ "name": "ocrEnabled"
2473
+ },
2474
+ {
2475
+ "kind": "field",
2476
+ "name": "pdf"
2477
+ },
2478
+ {
2479
+ "kind": "field",
2480
+ "name": "exportFormats"
2481
+ },
2482
+ {
2483
+ "kind": "field",
2484
+ "name": "ocrLanguages"
2485
+ },
2486
+ {
2487
+ "kind": "field",
2488
+ "name": "maxPages"
2489
+ },
2490
+ {
2491
+ "kind": "field",
2492
+ "name": "assetBase"
2493
+ },
2494
+ {
2495
+ "kind": "field",
2496
+ "name": "licenseKey"
2497
+ },
2498
+ {
2499
+ "kind": "field",
2500
+ "name": "storage"
2501
+ },
2502
+ {
2503
+ "kind": "field",
2504
+ "name": "engine"
2505
+ },
2506
+ {
2507
+ "kind": "method",
2508
+ "name": "dispatch",
2509
+ "parameters": [
2510
+ {
2511
+ "name": "eventName"
2512
+ },
2513
+ {
2514
+ "name": "detail",
2515
+ "default": "{}"
2516
+ }
2517
+ ]
2518
+ },
2519
+ {
2520
+ "kind": "method",
2521
+ "name": "open"
2522
+ },
2523
+ {
2524
+ "kind": "method",
2525
+ "name": "close"
2526
+ },
2527
+ {
2528
+ "kind": "field",
2529
+ "name": "isOpen",
2530
+ "readonly": true
2531
+ },
2532
+ {
2533
+ "kind": "method",
2534
+ "name": "capture"
2535
+ },
2536
+ {
2537
+ "kind": "method",
2538
+ "name": "addFiles",
2539
+ "parameters": [
2540
+ {
2541
+ "name": "files"
2542
+ }
2543
+ ]
2544
+ },
2545
+ {
2546
+ "kind": "method",
2547
+ "name": "getPages"
2548
+ },
2549
+ {
2550
+ "kind": "method",
2551
+ "name": "clear"
2552
+ },
2553
+ {
2554
+ "kind": "method",
2555
+ "name": "exportPdf",
2556
+ "parameters": [
2557
+ {
2558
+ "name": "opts",
2559
+ "default": "{}"
2560
+ }
2561
+ ]
2562
+ },
2563
+ {
2564
+ "kind": "method",
2565
+ "name": "exportZip",
2566
+ "parameters": [
2567
+ {
2568
+ "name": "opts",
2569
+ "default": "{}"
2570
+ }
2571
+ ]
2572
+ },
2573
+ {
2574
+ "kind": "method",
2575
+ "name": "ocr",
2576
+ "parameters": [
2577
+ {
2578
+ "name": "pageId",
2579
+ "default": "null"
2580
+ },
2581
+ {
2582
+ "name": "opts",
2583
+ "default": "{}"
2584
+ }
2585
+ ]
2586
+ },
2587
+ {
2588
+ "kind": "method",
2589
+ "name": "runOcr",
2590
+ "parameters": [
2591
+ {
2592
+ "name": "pageId",
2593
+ "default": "null"
2594
+ },
2595
+ {
2596
+ "name": "opts",
2597
+ "default": "{}"
2598
+ }
2599
+ ]
2600
+ },
2601
+ {
2602
+ "kind": "method",
2603
+ "name": "sync",
2604
+ "parameters": [
2605
+ {
2606
+ "name": "opts",
2607
+ "default": "{}"
2608
+ }
2609
+ ]
2610
+ }
2611
+ ],
2612
+ "attributes": [
2613
+ {
2614
+ "name": "mode"
2615
+ },
2616
+ {
2617
+ "name": "aspect"
2618
+ },
2619
+ {
2620
+ "name": "stage"
2621
+ },
2622
+ {
2623
+ "name": "doc-id"
2624
+ },
2625
+ {
2626
+ "name": "features"
2627
+ },
2628
+ {
2629
+ "name": "export-formats"
2630
+ },
2631
+ {
2632
+ "name": "ocr-languages"
2633
+ },
2634
+ {
2635
+ "name": "max-pages"
2636
+ },
2637
+ {
2638
+ "name": "asset-base"
2639
+ },
2640
+ {
2641
+ "name": "license-key"
2642
+ },
2643
+ {
2644
+ "name": "theme"
2645
+ },
2646
+ {
2647
+ "name": "ocr"
2648
+ },
2649
+ {
2650
+ "name": "pdf"
2651
+ }
2652
+ ],
2653
+ "superclass": {
2654
+ "name": "BaseElement",
2655
+ "module": "sdk/scanner.js"
2656
+ },
2657
+ "tagName": "copio-scanner",
2658
+ "customElement": true
2659
+ }
2660
+ ],
2661
+ "exports": [
2662
+ {
2663
+ "kind": "js",
2664
+ "name": "CopioScanner",
2665
+ "declaration": {
2666
+ "name": "CopioScanner",
2667
+ "module": "sdk/scanner.js"
2668
+ }
2669
+ },
2670
+ {
2671
+ "kind": "custom-element-definition",
2672
+ "name": "copio-scanner",
2673
+ "declaration": {
2674
+ "name": "CopioScanner",
2675
+ "module": "sdk/scanner.js"
2676
+ }
2677
+ },
2678
+ {
2679
+ "kind": "js",
2680
+ "name": "CopioImages",
2681
+ "declaration": {
2682
+ "name": "CopioImages",
2683
+ "module": "sdk/scanner.js"
2684
+ }
2685
+ },
2686
+ {
2687
+ "kind": "js",
2688
+ "name": "CopioCarousel",
2689
+ "declaration": {
2690
+ "name": "CopioCarousel",
2691
+ "module": "sdk/scanner.js"
2692
+ }
2693
+ },
2694
+ {
2695
+ "kind": "js",
2696
+ "name": "CopioAddEditDialog",
2697
+ "declaration": {
2698
+ "name": "CopioAddEditDialog",
2699
+ "module": "sdk/scanner.js"
2700
+ }
2701
+ },
2702
+ {
2703
+ "kind": "js",
2704
+ "name": "CopioRow",
2705
+ "declaration": {
2706
+ "name": "CopioRow",
2707
+ "module": "sdk/scanner.js"
2708
+ }
2709
+ },
2710
+ {
2711
+ "kind": "js",
2712
+ "name": "CopioHeader",
2713
+ "declaration": {
2714
+ "name": "CopioHeader",
2715
+ "module": "sdk/scanner.js"
2716
+ }
2717
+ },
2718
+ {
2719
+ "kind": "js",
2720
+ "name": "CopioLoader",
2721
+ "declaration": {
2722
+ "name": "CopioLoader",
2723
+ "module": "sdk/scanner.js"
2724
+ }
2725
+ },
2726
+ {
2727
+ "kind": "js",
2728
+ "name": "COPIO_EVENTS",
2729
+ "declaration": {
2730
+ "name": "COPIO_EVENTS",
2731
+ "module": "sdk/scanner.js"
2732
+ }
2733
+ },
2734
+ {
2735
+ "kind": "js",
2736
+ "name": "dispatchCopioEvent",
2737
+ "declaration": {
2738
+ "name": "dispatchCopioEvent",
2739
+ "module": "sdk/scanner.js"
2740
+ }
2741
+ },
2742
+ {
2743
+ "kind": "js",
2744
+ "name": "scannerCss",
2745
+ "declaration": {
2746
+ "name": "scannerCss",
2747
+ "module": "sdk/scanner.js"
2748
+ }
2749
+ },
2750
+ {
2751
+ "kind": "js",
2752
+ "name": "getScannerStyleSheet",
2753
+ "declaration": {
2754
+ "name": "getScannerStyleSheet",
2755
+ "module": "sdk/scanner.js"
2756
+ }
2757
+ },
2758
+ {
2759
+ "kind": "js",
2760
+ "name": "adoptScannerStyles",
2761
+ "declaration": {
2762
+ "name": "adoptScannerStyles",
2763
+ "module": "sdk/scanner.js"
2764
+ }
2765
+ }
2766
+ ]
2767
+ },
2768
+ {
2769
+ "kind": "javascript-module",
2770
+ "path": "sdk/styles.js",
2771
+ "declarations": [
2772
+ {
2773
+ "kind": "variable",
2774
+ "name": "scannerCss",
2775
+ "default": "` :host { all: initial; display: block; position: relative; width: 100%; height: 100%; min-height: 200px; container-type: size; container-name: copio-scanner; overflow: hidden; contain: layout; box-sizing: border-box; text-align: left; direction: ltr; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; --copio-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --copio-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; --copio-color-bg: #0b0f17; --copio-color-surface: #131b26; --copio-color-surface-elevated: #1c2736; --copio-color-surface-overlay: rgba(15, 22, 32, 0.88); --copio-color-stage-bg: #070a0f; --copio-color-text: #f1f5f9; --copio-color-text-muted: #94a3b8; --copio-color-text-inverse: #090d14; --copio-color-primary: #38bdf8; --copio-color-primary-hover: #7dd3fc; --copio-color-primary-contrast: #06131f; --copio-color-success: #22c55e; --copio-color-warning: #f59e0b; --copio-color-danger: #ef4444; --copio-color-border: rgba(148, 163, 184, 0.18); --copio-color-border-strong: rgba(148, 163, 184, 0.34); --copio-focus-ring: 0 0 0 2px #0b0f17, 0 0 0 4px #38bdf8; --copio-radius-sm: 6px; --copio-radius-md: 10px; --copio-radius-lg: 14px; --copio-radius-pill: 9999px; --copio-spacing-xs: 4px; --copio-spacing-sm: 8px; --copio-spacing-md: 12px; --copio-spacing-lg: 16px; --copio-spacing-xl: 24px; --copio-touch-target-min: 44px; --copio-crop-handle-hit: 48px; --copio-crop-handle-visual: 16px; --copio-shadow-elevated: 0 12px 32px -4px rgba(0, 0, 0, 0.55); --copio-transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1); --copio-transition-normal: 240ms cubic-bezier(0.22, 1, 0.36, 1); --sl-font-sans: var(--copio-font-family); --sl-font-mono: var(--copio-font-mono); --sl-color-primary-50: #f0f9ff; --sl-color-primary-100: #e0f2fe; --sl-color-primary-200: #bae6fd; --sl-color-primary-300: #7dd3fc; --sl-color-primary-400: #38bdf8; --sl-color-primary-500: #0ea5e9; --sl-color-primary-600: var(--copio-color-primary); --sl-color-primary-700: #0369a1; --sl-color-primary-800: #075985; --sl-color-primary-900: #0c4a6e; --sl-color-primary-950: #082f49; font-family: var(--copio-font-family); font-size: 14px; line-height: 1.5; color: var(--copio-color-text); background-color: var(--copio-color-bg); color-scheme: dark; } :host([theme=\"dark\"]), :host(.copio-theme-dark), :host-context([data-theme=\"dark\"]), :host-context(.sl-theme-dark), :host-context(.theme-dark) { color-scheme: dark; } /* Light Theme Override */ :host([theme=\"light\"]), :host(.copio-theme-light), :host-context([data-theme=\"light\"]), :host-context(.sl-theme-light), :host-context(.theme-light) { --copio-color-bg: #f8fafc; --copio-color-surface: #ffffff; --copio-color-surface-elevated: #f1f5f9; --copio-color-surface-overlay: rgba(255, 255, 255, 0.92); --copio-color-stage-bg: #1e293b; --copio-color-text: #0f172a; --copio-color-text-muted: #475569; --copio-color-text-inverse: #ffffff; --copio-color-primary: #0284c7; --copio-color-primary-hover: #0369a1; --copio-color-primary-contrast: #ffffff; --copio-color-success: #16a34a; --copio-color-warning: #d97706; --copio-color-danger: #dc2626; --copio-color-border: rgba(15, 23, 42, 0.12); --copio-color-border-strong: rgba(15, 23, 42, 0.26); --copio-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0284c7; --copio-radius-sm: 6px; --copio-radius-md: 10px; --copio-radius-lg: 14px; --copio-shadow-elevated: 0 12px 28px -4px rgba(15, 23, 42, 0.18); color-scheme: light; } /* Brand Theme Override (Emerald) */ :host([theme=\"brand\"]), :host(.copio-theme-brand), :host-context([data-theme=\"brand\"]), :host-context(.theme-brand) { --copio-color-bg: #0f111a; --copio-color-surface: #181b28; --copio-color-surface-elevated: #23273a; --copio-color-surface-overlay: rgba(24, 27, 40, 0.90); --copio-color-stage-bg: #090a10; --copio-color-text: #f8fafc; --copio-color-text-muted: #9ca3af; --copio-color-text-inverse: #ffffff; --copio-color-primary: #10b981; --copio-color-primary-hover: #34d399; --copio-color-primary-contrast: #042f2e; --copio-color-success: #10b981; --copio-color-warning: #f59e0b; --copio-color-danger: #ef4444; --copio-color-border: rgba(16, 185, 129, 0.22); --copio-color-border-strong: rgba(16, 185, 129, 0.42); --copio-focus-ring: 0 0 0 2px #0f111a, 0 0 0 4px #10b981; --copio-radius-sm: 4px; --copio-radius-md: 8px; --copio-radius-lg: 12px; --copio-shadow-elevated: 0 12px 32px -4px rgba(0, 0, 0, 0.65); color-scheme: dark; } /* Auto Theme: follows prefers-color-scheme when theme is auto */ @media (prefers-color-scheme: light) { :host([theme=\"auto\"]), :host(.copio-theme-auto) { --copio-color-bg: #f8fafc; --copio-color-surface: #ffffff; --copio-color-surface-elevated: #f1f5f9; --copio-color-surface-overlay: rgba(255, 255, 255, 0.92); --copio-color-stage-bg: #1e293b; --copio-color-text: #0f172a; --copio-color-text-muted: #475569; --copio-color-text-inverse: #ffffff; --copio-color-primary: #0284c7; --copio-color-primary-hover: #0369a1; --copio-color-primary-contrast: #ffffff; --copio-color-success: #16a34a; --copio-color-warning: #d97706; --copio-color-danger: #dc2626; --copio-color-border: rgba(15, 23, 42, 0.12); --copio-color-border-strong: rgba(15, 23, 42, 0.26); --copio-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0284c7; --copio-radius-sm: 6px; --copio-radius-md: 10px; --copio-radius-lg: 14px; --copio-shadow-elevated: 0 12px 28px -4px rgba(15, 23, 42, 0.18); color-scheme: light; } } /* ========================================================================== 2. INTERNAL ELEMENT RESET (Scoped to Shadow DOM) ========================================================================== */ *, *::before, *::after { box-sizing: border-box; } ::slotted(*) { box-sizing: border-box; } /* ========================================================================== 3. ROOT CONTAINER & COMPONENT SHELL ========================================================================== */ .copio-scanner-container { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; container-type: size; container-name: copio-scanner; contain: layout; background: var(--copio-color-bg); color: var(--copio-color-text); font-family: var(--copio-font-family); font-size: 14px; line-height: 1.5; text-align: left; direction: ltr; user-select: none; } /* Header (Shadow Part: header) */ .copio-header { display: flex; align-items: center; justify-content: space-between; gap: var(--copio-spacing-sm); padding: var(--copio-spacing-sm) var(--copio-spacing-md); background: var(--copio-color-surface); border-bottom: 1px solid var(--copio-color-border); min-height: 52px; flex-shrink: 0; z-index: 5; box-sizing: border-box; } .copio-header-left { display: flex; align-items: center; gap: var(--copio-spacing-sm); min-width: 0; } .copio-mode-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: var(--copio-radius-pill); background: var(--copio-color-surface-elevated); color: var(--copio-color-primary); border: 1px solid var(--copio-color-border); white-space: nowrap; } .copio-title-group { display: flex; flex-direction: column; min-width: 0; } .copio-title { font-size: 13px; font-weight: 600; color: var(--copio-color-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .copio-subtitle { font-size: 11px; color: var(--copio-color-text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .copio-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } /* Interactive Stage Switcher Pill (Viewfinder vs Workbench) */ .copio-stage-tabs { display: inline-flex; background: var(--copio-color-bg); padding: 2px; border-radius: var(--copio-radius-md); border: 1px solid var(--copio-color-border); } .copio-stage-tab { appearance: none; border: none; background: transparent; color: var(--copio-color-text-muted); font-family: inherit; font-size: 11px; font-weight: 600; padding: 6px 10px; min-height: var(--copio-touch-target-min); min-width: var(--copio-touch-target-min); border-radius: var(--copio-radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background var(--copio-transition-fast), color var(--copio-transition-fast); } .copio-stage-tab[aria-selected=\"true\"] { background: var(--copio-color-surface-elevated); color: var(--copio-color-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); } /* Touch-Safe Interactive Buttons (>=44px touch invariant) */ .copio-btn { appearance: none; border: 1px solid var(--copio-color-border); background: var(--copio-color-surface-elevated); color: var(--copio-color-text); font-family: inherit; font-size: 13px; font-weight: 600; min-height: var(--copio-touch-target-min); min-width: var(--copio-touch-target-min); padding: 0 12px; border-radius: var(--copio-radius-md); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: all var(--copio-transition-fast); white-space: nowrap; text-decoration: none; box-sizing: border-box; } .copio-btn:hover { background: var(--copio-color-primary-hover); color: var(--copio-color-primary-contrast); border-color: var(--copio-color-primary); } .copio-btn-primary { background: var(--copio-color-primary); color: var(--copio-color-primary-contrast); border-color: var(--copio-color-primary); } .copio-btn-danger { background: rgba(239, 68, 68, 0.15); color: var(--copio-color-danger); border-color: rgba(239, 68, 68, 0.35); } .copio-btn-danger:hover { background: var(--copio-color-danger); color: #fff; } /* Viewfinder (Shadow Part: viewfinder) */ .copio-viewfinder, .copio-viewfinder-stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; background: var(--copio-color-stage-bg); overflow: hidden; min-height: 0; width: 100%; } .copio-viewfinder-feed, .copio-camera-feed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 20px 104px 20px; background: radial-gradient(circle at 50% 45%, #1e293b 0%, #090d14 75%); } /* Framing Guide Overlay (receipt | card | a4 | auto) */ .copio-framing-guide { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; border: 1.5px dashed rgba(56, 189, 248, 0.55); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(4, 7, 12, 0.52); transition: all var(--copio-transition-normal); overflow: hidden; } .copio-framing-guide[data-aspect=\"receipt\"] { aspect-ratio: 1 / 2.1; height: 100%; } .copio-framing-guide[data-aspect=\"card\"] { aspect-ratio: 1.586 / 1; width: 92%; max-height: 82%; } .copio-framing-guide[data-aspect=\"a4\"] { aspect-ratio: 1 / 1.414; height: 96%; } .copio-framing-guide[data-aspect=\"auto\"] { width: 94%; height: 94%; } /* Corner Targeting Brackets */ .copio-corner { position: absolute; width: 22px; height: 22px; border-color: var(--copio-color-primary); border-style: solid; border-width: 0; pointer-events: none; z-index: 2; } .copio-corner.tl { top: 6px; left: 6px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; } .copio-corner.tr { top: 6px; right: 6px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; } .copio-corner.bl { bottom: 6px; left: 6px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; } .copio-corner.br { bottom: 6px; right: 6px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; } .copio-edge-quad { position: absolute; inset: 12px; border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 8px; background: rgba(56, 189, 248, 0.04); pointer-events: none; z-index: 1; } .copio-camera-placeholder { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--copio-color-text-muted); font-size: 12px; font-weight: 500; } .copio-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copio-color-primary); box-shadow: 0 0 8px var(--copio-color-primary); flex-shrink: 0; } /* Top Viewfinder HUD Overlay (Step Pill + Privacy Assurance Badge) */ .copio-viewfinder-hud-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: linear-gradient(to bottom, rgba(7, 10, 15, 0.85), transparent); } .copio-step-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--copio-radius-pill); background: rgba(15, 23, 42, 0.88); border: 1px solid rgba(56, 189, 248, 0.45); color: #f8fafc; font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); } .copio-privacy-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--copio-radius-pill); background: rgba(22, 101, 52, 0.35); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; font-size: 11px; font-weight: 500; } /* Shutter Dock (Shadow Part: shutter-dock) */ .copio-shutter-dock { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--copio-color-surface); border-top: 1px solid var(--copio-color-border); min-height: 84px; flex-shrink: 0; } .copio-shutter-side { flex: 1; display: flex; align-items: center; } .copio-shutter-side.right { justify-content: flex-end; } .copio-shutter-btn { appearance: none; width: 64px; height: 64px; border-radius: var(--copio-radius-pill); border: 4px solid var(--copio-color-primary); background: transparent; padding: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--copio-transition-fast), border-color 150ms ease; flex-shrink: 0; } .copio-shutter-btn:hover { transform: scale(1.04); } .copio-shutter-btn:active { transform: scale(0.94); } .copio-shutter-btn-inner, .copio-shutter-inner { width: 100%; height: 100%; border-radius: var(--copio-radius-pill); background: var(--copio-color-primary); display: flex; align-items: center; justify-content: center; color: var(--copio-color-primary-contrast); transition: transform var(--copio-transition-fast); } .copio-shutter-btn:active .copio-shutter-btn-inner, .copio-shutter-btn:active .copio-shutter-inner { transform: scale(0.88); } /* Stacking Thumbnail Counter Pill in Viewfinder */ .copio-stack-pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--copio-touch-target-min); padding: 4px 12px 4px 6px; border-radius: var(--copio-radius-md); background: var(--copio-color-surface-elevated); border: 1px solid var(--copio-color-primary); color: var(--copio-color-text); font-size: 12px; font-weight: 600; cursor: pointer; } .copio-stack-thumb { width: 30px; height: 36px; border-radius: 4px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.35); background: #000; } /* Workbench & Filmstrip (Shadow Part: workbench) */ .copio-workbench, .copio-workbench-stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; background: var(--copio-color-bg); overflow: hidden; min-height: 0; width: 100%; } .copio-workbench-main { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; overflow: hidden; } .copio-stage-canvas, .copio-canvas-viewport { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 16px 20px 44px 20px; background: var(--copio-color-stage-bg); min-height: 180px; } .copio-canvas-viewport.has-card-switcher { padding-top: 66px; } .copio-canvas-viewport.is-cropping { padding: 74px 26px 26px 26px; } /* Card Side Switcher */ .copio-card-side-switcher { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 6; display: inline-flex; gap: 4px; padding: 3px; background: var(--copio-color-surface-overlay, rgba(15, 22, 32, 0.88)); border: 1px solid var(--copio-color-border-strong); border-radius: var(--copio-radius-pill); backdrop-filter: blur(8px); } .copio-side-pill { appearance: none; border: none; background: transparent; color: var(--copio-color-text-muted); font-family: inherit; font-size: 11px; font-weight: 600; padding: 6px 12px; min-height: var(--copio-touch-target-min); min-width: var(--copio-touch-target-min); border-radius: var(--copio-radius-pill); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .copio-side-pill[aria-selected=\"true\"] { background: var(--copio-color-primary); color: var(--copio-color-primary-contrast); } .copio-stage-figure, .copio-canvas-wrapper { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; } .copio-stage-canvas img, .copio-stage-img, .copio-stage-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: var(--copio-shadow-elevated); border-radius: var(--copio-radius-sm); user-select: none; } .copio-crop-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; z-index: 8; touch-action: none; } .copio-crop-box { position: absolute; border: 2px solid var(--copio-color-primary); box-shadow: 0 0 0 9999px rgba(5, 8, 14, 0.68); cursor: move; touch-action: none; box-sizing: border-box; } /* Rule-of-thirds crop grid */ .copio-crop-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(56, 189, 248, 0.28) 1px, transparent 1px), linear-gradient(to bottom, rgba(56, 189, 248, 0.28) 1px, transparent 1px); background-size: 33.333% 33.333%; } /* 48px x 48px Touch Target Handles (exceeds 44px requirement) */ .copio-crop-handle { position: absolute; width: var(--copio-crop-handle-hit); height: var(--copio-crop-handle-hit); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; z-index: 10; touch-action: none; box-sizing: border-box; } .copio-crop-handle::after { content: ''; width: var(--copio-crop-handle-visual); height: var(--copio-crop-handle-visual); border-radius: 50%; background: var(--copio-color-primary); border: 2.5px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); transition: transform 120ms ease; box-sizing: border-box; } .copio-crop-handle:hover::after, .copio-crop-handle:active::after { transform: scale(1.25); background: var(--copio-color-success, #22c55e); } .copio-crop-handle.nw { top: -24px; left: -24px; cursor: nwse-resize; } .copio-crop-handle.ne { top: -24px; right: -24px; cursor: nesw-resize; } .copio-crop-handle.sw { bottom: -24px; left: -24px; cursor: nesw-resize; } .copio-crop-handle.se { bottom: -24px; right: -24px; cursor: nwse-resize; } .copio-crop-handle.n, .copio-crop-handle.edge-n { top: -24px; left: calc(50% - 24px); cursor: ns-resize; } .copio-crop-handle.s, .copio-crop-handle.edge-s { bottom: -24px; left: calc(50% - 24px); cursor: ns-resize; } .copio-crop-handle.w, .copio-crop-handle.edge-w { left: -24px; top: calc(50% - 24px); cursor: ew-resize; } .copio-crop-handle.e, .copio-crop-handle.edge-e { right: -24px; top: calc(50% - 24px); cursor: ew-resize; } /* Filmstrip & Reorder Tray */ .copio-filmstrip, .copio-filmstrip-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--copio-color-surface); border-top: 1px solid var(--copio-color-border); overflow-x: auto; min-height: 80px; flex-shrink: 0; } .copio-filmstrip-scroll { display: flex; align-items: center; gap: 8px; } .copio-filmstrip-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; } .copio-thumb-container { position: relative; width: 56px; height: 70px; border-radius: var(--copio-radius-sm); overflow: hidden; background: #000; border: 2px solid var(--copio-color-border); cursor: pointer; transition: all var(--copio-transition-fast); } .copio-filmstrip-item.is-active .copio-thumb-container { border-color: var(--copio-color-primary); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); } .copio-thumb-num { position: absolute; bottom: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: rgba(15, 23, 42, 0.85); color: #f8fafc; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } .copio-thumb-reorder { display: flex; align-items: center; gap: 4px; } .copio-reorder-btn { appearance: none; border: 1px solid var(--copio-color-border); background: var(--copio-color-surface-elevated); color: var(--copio-color-text-muted); border-radius: 4px; font-size: 9px; padding: 2px 5px; cursor: pointer; } .copio-reorder-btn:disabled { opacity: 0.35; cursor: not-allowed; } .copio-thumb-img { width: 100%; height: 100%; object-fit: cover; } /* Edit Action Toolbar & Primary Completion Dock */ .copio-toolbar, .copio-controls-dock { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--copio-color-surface); border-top: 1px solid var(--copio-color-border); min-height: 56px; flex-shrink: 0; z-index: 6; } .copio-edit-toolbar, .copio-toolbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; } .copio-toolbar-tools .copio-tool-btn { flex: 1 1 56px; } .copio-toolbar-actions { display: flex; align-items: center; gap: 8px; width: 100%; } .copio-toolbar-actions .copio-btn-primary { width: 100%; } .copio-tool-btn { appearance: none; border: 1px solid var(--copio-color-border); background: var(--copio-color-surface-elevated); color: var(--copio-color-text); font-family: inherit; font-size: 11px; font-weight: 600; min-height: var(--copio-touch-target-min); min-width: var(--copio-touch-target-min); padding: 4px 6px; border-radius: var(--copio-radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; transition: all var(--copio-transition-fast); } .copio-tool-btn:hover:not(:disabled) { border-color: var(--copio-color-border-strong); background: rgba(255, 255, 255, 0.06); } .copio-tool-btn[aria-pressed=\"true\"] { background: rgba(56, 189, 248, 0.16); color: var(--copio-color-primary); border-color: var(--copio-color-primary); } .copio-tool-btn.danger { color: #fca5a5; } .copio-tool-btn.danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); } .copio-toast-region { position: absolute; bottom: 124px; left: 12px; right: 12px; z-index: 30; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .copio-toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--copio-radius-md); background: #0f172a; color: #f8fafc; border: 1px solid var(--copio-color-primary); box-shadow: var(--copio-shadow-elevated); font-size: 12px; font-weight: 500; position: relative; overflow: hidden; } .copio-toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--copio-color-primary); transition: width 100ms linear; } .copio-toast-undo-btn, .copio-btn-toast-undo { appearance: none; border: 1px solid rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.16); color: #38bdf8; font-family: inherit; font-size: 12px; font-weight: 700; min-height: var(--copio-touch-target-min); min-width: var(--copio-touch-target-min); padding: 0 12px; border-radius: var(--copio-radius-sm); cursor: pointer; flex-shrink: 0; } .copio-ocr-content { display: flex; flex-direction: column; gap: 8px; } .copio-ocr-text { margin: 0; padding: 10px; max-height: 180px; overflow: auto; background: var(--copio-color-bg); color: var(--copio-color-text); border: 1px solid var(--copio-color-border); border-radius: var(--copio-radius-sm); font-family: var(--copio-font-mono); font-size: 11px; line-height: 1.5; white-space: pre-wrap; } .copio-ocr-meta { font-size: 11px; color: var(--copio-color-text-muted); } /* Slide-up OCR Extraction Sheet */ .copio-ocr-sheet { position: absolute; inset: auto 0 0 0; max-height: 78%; background: var(--copio-color-surface); border-top: 1px solid var(--copio-color-primary); border-radius: 16px 16px 0 0; box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.65); z-index: 25; display: flex; flex-direction: column; padding: 14px; gap: 10px; } .copio-ocr-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .copio-ocr-textarea { width: 100%; min-height: 130px; flex: 1; resize: none; background: var(--copio-color-bg); color: var(--copio-color-text); border: 1px solid var(--copio-color-border); border-radius: var(--copio-radius-sm); padding: 10px; font-family: var(--copio-font-mono); font-size: 11px; line-height: 1.5; } /* Container-Scoped Toast Stack */ .sl-toast-stack, .copio-toast-stack-scoped { position: absolute !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; padding: var(--copio-spacing-md) !important; box-sizing: border-box !important; z-index: 1000 !important; pointer-events: none; } .sl-toast-stack sl-alert, .copio-toast-stack-scoped sl-alert { pointer-events: auto; margin-top: var(--copio-spacing-sm); } /* ========================================================================== 4. @container BREAKPOINTS (Strictly Container Queries) ========================================================================== */ @container copio-scanner (max-width: 400px) { .copio-header { padding: 6px 10px; min-height: 52px; } .copio-header-left { flex-direction: column; align-items: flex-start; gap: 2px; } .copio-mode-badge { font-size: 10px; padding: 2px 6px; } .copio-subtitle { display: none; } .copio-filmstrip, .copio-filmstrip-bar { gap: 6px; padding: 6px 8px; } .copio-tool-btn { font-size: 10px; padding: 3px 4px; } .copio-btn { padding: 0 8px; font-size: 12px; } } @container copio-scanner (min-width: 401px) and (max-width: 767px) { .copio-header { padding: var(--copio-spacing-sm) var(--copio-spacing-md); } .copio-tool-btn { flex-direction: row; font-size: 12px; gap: 6px; } } @container copio-scanner (min-width: 768px) { .copio-header { padding: var(--copio-spacing-md) var(--copio-spacing-lg); } .copio-workbench-main { flex-direction: row; } .copio-filmstrip, .copio-filmstrip-bar { order: -1; flex-direction: column; width: 168px; height: 100%; border-top: none; border-right: 1px solid var(--copio-color-border); overflow-y: auto; overflow-x: hidden; padding: 12px; } .copio-filmstrip-scroll { flex-direction: column; width: 100%; } .copio-thumb-container { width: 112px; height: 84px; } .copio-toolbar, .copio-controls-dock { flex-direction: row; align-items: center; justify-content: space-between; } .copio-toolbar-tools { width: auto; flex: 1; } .copio-toolbar-actions { width: auto; min-width: 200px; } } `",
2776
+ "description": "Copio Scanner Encapsulated Styles & Design Tokens (CPO-032 / CPO-038)\n\nProvides constructable stylesheets and adoptedStyleSheets architecture for <copio-scanner>\nwith complete Shadow DOM style encapsulation, zero global leakage, and hostile host immunity."
2777
+ },
2778
+ {
2779
+ "kind": "function",
2780
+ "name": "getScannerStyleSheet",
2781
+ "description": "Returns a cached constructable CSSStyleSheet instance for <copio-scanner>.\nReturns null if constructable stylesheets are not supported.",
2782
+ "return": {
2783
+ "type": {
2784
+ "text": "CSSStyleSheet|null"
2785
+ }
2786
+ }
2787
+ },
2788
+ {
2789
+ "kind": "function",
2790
+ "name": "adoptScannerStyles",
2791
+ "parameters": [
2792
+ {
2793
+ "name": "shadowRoot",
2794
+ "type": {
2795
+ "text": "ShadowRoot"
2796
+ }
2797
+ }
2798
+ ],
2799
+ "description": "Adopts the encapsulated <copio-scanner> stylesheet into a ShadowRoot.\nUses adoptedStyleSheets when supported, falling back to a scoped <style> element.",
2800
+ "return": {
2801
+ "type": {
2802
+ "text": "void"
2803
+ }
2804
+ }
2805
+ }
2806
+ ],
2807
+ "exports": [
2808
+ {
2809
+ "kind": "js",
2810
+ "name": "scannerCss",
2811
+ "declaration": {
2812
+ "name": "scannerCss",
2813
+ "module": "sdk/styles.js"
2814
+ }
2815
+ },
2816
+ {
2817
+ "kind": "js",
2818
+ "name": "getScannerStyleSheet",
2819
+ "declaration": {
2820
+ "name": "getScannerStyleSheet",
2821
+ "module": "sdk/styles.js"
2822
+ }
2823
+ },
2824
+ {
2825
+ "kind": "js",
2826
+ "name": "adoptScannerStyles",
2827
+ "declaration": {
2828
+ "name": "adoptScannerStyles",
2829
+ "module": "sdk/styles.js"
2830
+ }
2831
+ }
2832
+ ]
2833
+ },
2834
+ {
2835
+ "kind": "javascript-module",
2836
+ "path": "sdk/sync.js",
2837
+ "declarations": [],
2838
+ "exports": [
2839
+ {
2840
+ "kind": "js",
2841
+ "name": "SyncManager",
2842
+ "declaration": {
2843
+ "name": "SyncManager",
2844
+ "module": "sdk/sync.js"
2845
+ }
2846
+ },
2847
+ {
2848
+ "kind": "js",
2849
+ "name": "CopioSyncDialog",
2850
+ "declaration": {
2851
+ "name": "CopioSyncDialog",
2852
+ "module": "sdk/sync.js"
2853
+ }
2854
+ },
2855
+ {
2856
+ "kind": "js",
2857
+ "name": "getIceServers",
2858
+ "declaration": {
2859
+ "name": "getIceServers",
2860
+ "module": "sdk/sync.js"
2861
+ }
2862
+ }
2863
+ ]
2864
+ },
2865
+ {
2866
+ "kind": "javascript-module",
2867
+ "path": "sdk/version.js",
2868
+ "declarations": [
2869
+ {
2870
+ "kind": "variable",
2871
+ "name": "BUILD_DATE"
2872
+ },
2873
+ {
2874
+ "kind": "variable",
2875
+ "name": "VERSION",
2876
+ "type": {
2877
+ "text": "string"
2878
+ },
2879
+ "default": "'0.1.0'"
2880
+ }
2881
+ ],
2882
+ "exports": [
2883
+ {
2884
+ "kind": "js",
2885
+ "name": "BUILD_DATE",
2886
+ "declaration": {
2887
+ "name": "BUILD_DATE",
2888
+ "module": "sdk/version.js"
2889
+ }
2890
+ },
2891
+ {
2892
+ "kind": "js",
2893
+ "name": "VERSION",
2894
+ "declaration": {
2895
+ "name": "VERSION",
2896
+ "module": "sdk/version.js"
2897
+ }
2898
+ }
2899
+ ]
2900
+ },
2901
+ {
2902
+ "kind": "javascript-module",
2903
+ "path": "js/routes/add-edit/copio-add-edit-dialog.js",
2904
+ "declarations": [
2905
+ {
2906
+ "kind": "class",
2907
+ "description": "",
2908
+ "name": "CopioAddEditDialog",
2909
+ "members": [
2910
+ {
2911
+ "kind": "field",
2912
+ "name": "#clearValidation",
2913
+ "privacy": "private"
2914
+ },
2915
+ {
2916
+ "kind": "field",
2917
+ "name": "#handleNameInput",
2918
+ "privacy": "private"
2919
+ },
2920
+ {
2921
+ "kind": "field",
2922
+ "name": "#handleHide",
2923
+ "privacy": "private"
2924
+ },
2925
+ {
2926
+ "kind": "field",
2927
+ "name": "#handleKeydown",
2928
+ "privacy": "private"
2929
+ },
2930
+ {
2931
+ "kind": "method",
2932
+ "name": "open"
2933
+ },
2934
+ {
2935
+ "kind": "method",
2936
+ "name": "openEdit",
2937
+ "parameters": [
2938
+ {
2939
+ "name": "id"
2940
+ },
2941
+ {
2942
+ "name": "name"
2943
+ },
2944
+ {
2945
+ "name": "pages"
2946
+ }
2947
+ ]
2948
+ },
2949
+ {
2950
+ "kind": "field",
2951
+ "name": "#handleSave",
2952
+ "privacy": "private"
2953
+ }
2954
+ ],
2955
+ "superclass": {
2956
+ "name": "LitElement",
2957
+ "module": "/js/lib/lit-core.min.js"
2958
+ },
2959
+ "tagName": "copio-add-edit-dialog",
2960
+ "customElement": true
2961
+ }
2962
+ ],
2963
+ "exports": [
2964
+ {
2965
+ "kind": "js",
2966
+ "name": "CopioAddEditDialog",
2967
+ "declaration": {
2968
+ "name": "CopioAddEditDialog",
2969
+ "module": "js/routes/add-edit/copio-add-edit-dialog.js"
2970
+ }
2971
+ },
2972
+ {
2973
+ "kind": "custom-element-definition",
2974
+ "name": "copio-add-edit-dialog",
2975
+ "declaration": {
2976
+ "name": "CopioAddEditDialog",
2977
+ "module": "js/routes/add-edit/copio-add-edit-dialog.js"
2978
+ }
2979
+ }
2980
+ ]
2981
+ },
2982
+ {
2983
+ "kind": "javascript-module",
2984
+ "path": "js/routes/doc/copio-carousel.js",
2985
+ "declarations": [
2986
+ {
2987
+ "kind": "class",
2988
+ "description": "",
2989
+ "name": "CopioCarousel",
2990
+ "members": [
2991
+ {
2992
+ "kind": "field",
2993
+ "name": "hasImages",
2994
+ "readonly": true
2995
+ },
2996
+ {
2997
+ "kind": "field",
2998
+ "name": "hasMarkdown",
2999
+ "readonly": true
3000
+ },
3001
+ {
3002
+ "kind": "field",
3003
+ "name": "pageCount",
3004
+ "readonly": true
3005
+ },
3006
+ {
3007
+ "kind": "method",
3008
+ "name": "handleBackClick"
3009
+ },
3010
+ {
3011
+ "kind": "method",
3012
+ "name": "handleOcrClick"
3013
+ },
3014
+ {
3015
+ "kind": "method",
3016
+ "name": "handleExportSelect",
3017
+ "parameters": [
3018
+ {
3019
+ "name": "e"
3020
+ }
3021
+ ]
3022
+ },
3023
+ {
3024
+ "kind": "method",
3025
+ "name": "handleSlideChange",
3026
+ "parameters": [
3027
+ {
3028
+ "name": "e"
3029
+ }
3030
+ ]
3031
+ },
3032
+ {
3033
+ "kind": "method",
3034
+ "name": "renderItem",
3035
+ "parameters": [
3036
+ {
3037
+ "name": "img"
3038
+ }
3039
+ ]
3040
+ },
3041
+ {
3042
+ "kind": "field",
3043
+ "name": "docId",
3044
+ "privacy": "public",
3045
+ "type": {
3046
+ "text": "string"
3047
+ },
3048
+ "default": "''",
3049
+ "attribute": "docId"
3050
+ },
3051
+ {
3052
+ "kind": "field",
3053
+ "name": "docName",
3054
+ "privacy": "public",
3055
+ "type": {
3056
+ "text": "string"
3057
+ },
3058
+ "default": "''",
3059
+ "attribute": "docName"
3060
+ },
3061
+ {
3062
+ "kind": "field",
3063
+ "name": "images",
3064
+ "privacy": "public",
3065
+ "type": {
3066
+ "text": "array"
3067
+ },
3068
+ "default": "[]",
3069
+ "attribute": "images"
3070
+ },
3071
+ {
3072
+ "kind": "field",
3073
+ "name": "activeSlideIndex",
3074
+ "privacy": "public",
3075
+ "type": {
3076
+ "text": "number"
3077
+ },
3078
+ "default": "0",
3079
+ "attribute": "activeSlideIndex"
3080
+ },
3081
+ {
3082
+ "kind": "field",
3083
+ "name": "ocr",
3084
+ "privacy": "public",
3085
+ "type": {
3086
+ "text": "boolean"
3087
+ },
3088
+ "default": "true",
3089
+ "attribute": "ocr"
3090
+ },
3091
+ {
3092
+ "kind": "field",
3093
+ "name": "pdf",
3094
+ "privacy": "public",
3095
+ "type": {
3096
+ "text": "boolean"
3097
+ },
3098
+ "default": "true",
3099
+ "attribute": "pdf"
3100
+ }
3101
+ ],
3102
+ "events": [
3103
+ {
3104
+ "name": "dialog:close",
3105
+ "type": {
3106
+ "text": "CustomEvent"
3107
+ }
3108
+ },
3109
+ {
3110
+ "name": "copio:ocr-page",
3111
+ "type": {
3112
+ "text": "CustomEvent"
3113
+ }
3114
+ },
3115
+ {
3116
+ "name": "doc:download-pdf",
3117
+ "type": {
3118
+ "text": "CustomEvent"
3119
+ }
3120
+ },
3121
+ {
3122
+ "name": "doc:download-images",
3123
+ "type": {
3124
+ "text": "CustomEvent"
3125
+ }
3126
+ },
3127
+ {
3128
+ "name": "doc:download-markdown",
3129
+ "type": {
3130
+ "text": "CustomEvent"
3131
+ }
3132
+ }
3133
+ ],
3134
+ "attributes": [
3135
+ {
3136
+ "name": "docId",
3137
+ "type": {
3138
+ "text": "string"
3139
+ },
3140
+ "default": "''",
3141
+ "fieldName": "docId"
3142
+ },
3143
+ {
3144
+ "name": "docName",
3145
+ "type": {
3146
+ "text": "string"
3147
+ },
3148
+ "default": "''",
3149
+ "fieldName": "docName"
3150
+ },
3151
+ {
3152
+ "name": "images",
3153
+ "type": {
3154
+ "text": "array"
3155
+ },
3156
+ "default": "[]",
3157
+ "fieldName": "images"
3158
+ },
3159
+ {
3160
+ "name": "activeSlideIndex",
3161
+ "type": {
3162
+ "text": "number"
3163
+ },
3164
+ "default": "0",
3165
+ "fieldName": "activeSlideIndex"
3166
+ },
3167
+ {
3168
+ "name": "ocr",
3169
+ "type": {
3170
+ "text": "boolean"
3171
+ },
3172
+ "default": "true",
3173
+ "fieldName": "ocr"
3174
+ },
3175
+ {
3176
+ "name": "pdf",
3177
+ "type": {
3178
+ "text": "boolean"
3179
+ },
3180
+ "default": "true",
3181
+ "fieldName": "pdf"
3182
+ }
3183
+ ],
3184
+ "superclass": {
3185
+ "name": "LitElement",
3186
+ "module": "/js/lib/lit-core.min.js"
3187
+ },
3188
+ "tagName": "copio-carousel",
3189
+ "customElement": true
3190
+ }
3191
+ ],
3192
+ "exports": [
3193
+ {
3194
+ "kind": "js",
3195
+ "name": "CopioCarousel",
3196
+ "declaration": {
3197
+ "name": "CopioCarousel",
3198
+ "module": "js/routes/doc/copio-carousel.js"
3199
+ }
3200
+ },
3201
+ {
3202
+ "kind": "custom-element-definition",
3203
+ "name": "copio-carousel",
3204
+ "declaration": {
3205
+ "name": "CopioCarousel",
3206
+ "module": "js/routes/doc/copio-carousel.js"
3207
+ }
3208
+ }
3209
+ ]
3210
+ },
3211
+ {
3212
+ "kind": "javascript-module",
3213
+ "path": "js/routes/doc/copio-images.js",
3214
+ "declarations": [
3215
+ {
3216
+ "kind": "class",
3217
+ "description": "",
3218
+ "name": "CopioImages",
3219
+ "members": [
3220
+ {
3221
+ "kind": "field",
3222
+ "name": "#images",
3223
+ "privacy": "private",
3224
+ "type": {
3225
+ "text": "array"
3226
+ },
3227
+ "default": "[]"
3228
+ },
3229
+ {
3230
+ "kind": "field",
3231
+ "name": "#cropper",
3232
+ "privacy": "private",
3233
+ "type": {
3234
+ "text": "null"
3235
+ },
3236
+ "default": "null"
3237
+ },
3238
+ {
3239
+ "kind": "field",
3240
+ "name": "#sortable",
3241
+ "privacy": "private",
3242
+ "type": {
3243
+ "text": "null"
3244
+ },
3245
+ "default": "null"
3246
+ },
3247
+ {
3248
+ "kind": "field",
3249
+ "name": "#cropIndex",
3250
+ "privacy": "private",
3251
+ "type": {
3252
+ "text": "null"
3253
+ },
3254
+ "default": "null"
3255
+ },
3256
+ {
3257
+ "kind": "field",
3258
+ "name": "#textIndex",
3259
+ "privacy": "private",
3260
+ "type": {
3261
+ "text": "null"
3262
+ },
3263
+ "default": "null"
3264
+ },
3265
+ {
3266
+ "kind": "field",
3267
+ "name": "#isInitialized",
3268
+ "privacy": "private",
3269
+ "type": {
3270
+ "text": "boolean"
3271
+ },
3272
+ "default": "false"
3273
+ },
3274
+ {
3275
+ "kind": "field",
3276
+ "name": "#abortController",
3277
+ "privacy": "private",
3278
+ "type": {
3279
+ "text": "null"
3280
+ },
3281
+ "default": "null"
3282
+ },
3283
+ {
3284
+ "kind": "field",
3285
+ "name": "#createdObjectUrls",
3286
+ "privacy": "private",
3287
+ "default": "new Set()"
3288
+ },
3289
+ {
3290
+ "kind": "field",
3291
+ "name": "#activeCameraStream",
3292
+ "privacy": "private",
3293
+ "type": {
3294
+ "text": "null"
3295
+ },
3296
+ "default": "null"
3297
+ },
3298
+ {
3299
+ "kind": "field",
3300
+ "name": "#ocr",
3301
+ "privacy": "private",
3302
+ "type": {
3303
+ "text": "boolean"
3304
+ },
3305
+ "default": "true"
3306
+ },
3307
+ {
3308
+ "kind": "field",
3309
+ "name": "#pdf",
3310
+ "privacy": "private",
3311
+ "type": {
3312
+ "text": "boolean"
3313
+ },
3314
+ "default": "true"
3315
+ },
3316
+ {
3317
+ "kind": "method",
3318
+ "name": "setCameraStream",
3319
+ "parameters": [
3320
+ {
3321
+ "name": "stream"
3322
+ }
3323
+ ]
3324
+ },
3325
+ {
3326
+ "kind": "method",
3327
+ "name": "stopCamera"
3328
+ },
3329
+ {
3330
+ "kind": "method",
3331
+ "name": "#trackObjectUrl",
3332
+ "privacy": "private",
3333
+ "parameters": [
3334
+ {
3335
+ "name": "url"
3336
+ }
3337
+ ]
3338
+ },
3339
+ {
3340
+ "kind": "method",
3341
+ "name": "#revokeObjectUrl",
3342
+ "privacy": "private",
3343
+ "parameters": [
3344
+ {
3345
+ "name": "url"
3346
+ }
3347
+ ]
3348
+ },
3349
+ {
3350
+ "kind": "method",
3351
+ "name": "#revokeAllObjectUrls",
3352
+ "privacy": "private"
3353
+ },
3354
+ {
3355
+ "kind": "method",
3356
+ "name": "#initShell",
3357
+ "privacy": "private"
3358
+ },
3359
+ {
3360
+ "kind": "method",
3361
+ "name": "#renderGrid",
3362
+ "privacy": "private"
3363
+ },
3364
+ {
3365
+ "kind": "method",
3366
+ "name": "#setupSortable",
3367
+ "privacy": "private",
3368
+ "parameters": [
3369
+ {
3370
+ "name": "container"
3371
+ }
3372
+ ]
3373
+ },
3374
+ {
3375
+ "kind": "method",
3376
+ "name": "openCropDialog",
3377
+ "parameters": [
3378
+ {
3379
+ "name": "index"
3380
+ }
3381
+ ]
3382
+ },
3383
+ {
3384
+ "kind": "method",
3385
+ "name": "closeCropDialog"
3386
+ },
3387
+ {
3388
+ "kind": "method",
3389
+ "name": "applyCrop"
3390
+ },
3391
+ {
3392
+ "kind": "method",
3393
+ "name": "rotateImage",
3394
+ "parameters": [
3395
+ {
3396
+ "name": "index"
3397
+ }
3398
+ ]
3399
+ },
3400
+ {
3401
+ "kind": "method",
3402
+ "name": "thresholdImage",
3403
+ "parameters": [
3404
+ {
3405
+ "name": "index"
3406
+ }
3407
+ ]
3408
+ },
3409
+ {
3410
+ "kind": "method",
3411
+ "name": "resetImage",
3412
+ "parameters": [
3413
+ {
3414
+ "name": "index"
3415
+ }
3416
+ ]
3417
+ },
3418
+ {
3419
+ "kind": "method",
3420
+ "name": "addBlankNote"
3421
+ },
3422
+ {
3423
+ "kind": "method",
3424
+ "name": "downloadImage",
3425
+ "parameters": [
3426
+ {
3427
+ "name": "index"
3428
+ }
3429
+ ]
3430
+ },
3431
+ {
3432
+ "kind": "method",
3433
+ "name": "openTextDialog",
3434
+ "parameters": [
3435
+ {
3436
+ "name": "index"
3437
+ }
3438
+ ]
3439
+ },
3440
+ {
3441
+ "kind": "method",
3442
+ "name": "applyTextEdit"
3443
+ },
3444
+ {
3445
+ "kind": "method",
3446
+ "name": "closeTextDialog"
3447
+ },
3448
+ {
3449
+ "kind": "method",
3450
+ "name": "showImageData",
3451
+ "parameters": [
3452
+ {
3453
+ "name": "index"
3454
+ }
3455
+ ]
3456
+ },
3457
+ {
3458
+ "kind": "method",
3459
+ "name": "pdfToImages",
3460
+ "parameters": [
3461
+ {
3462
+ "name": "file"
3463
+ }
3464
+ ]
3465
+ },
3466
+ {
3467
+ "kind": "method",
3468
+ "name": "addFiles",
3469
+ "parameters": [
3470
+ {
3471
+ "name": "files"
3472
+ }
3473
+ ]
3474
+ },
3475
+ {
3476
+ "kind": "field",
3477
+ "name": "ocr"
3478
+ },
3479
+ {
3480
+ "kind": "field",
3481
+ "name": "pdf"
3482
+ },
3483
+ {
3484
+ "kind": "field",
3485
+ "name": "images"
3486
+ }
3487
+ ],
3488
+ "events": [
3489
+ {
3490
+ "name": "copio:ocr-page",
3491
+ "type": {
3492
+ "text": "CustomEvent"
3493
+ }
3494
+ }
3495
+ ],
3496
+ "superclass": {
3497
+ "name": "HTMLElement"
3498
+ },
3499
+ "tagName": "copio-images",
3500
+ "customElement": true
3501
+ }
3502
+ ],
3503
+ "exports": [
3504
+ {
3505
+ "kind": "js",
3506
+ "name": "CopioImages",
3507
+ "declaration": {
3508
+ "name": "CopioImages",
3509
+ "module": "js/routes/doc/copio-images.js"
3510
+ }
3511
+ },
3512
+ {
3513
+ "kind": "custom-element-definition",
3514
+ "name": "copio-images",
3515
+ "declaration": {
3516
+ "name": "CopioImages",
3517
+ "module": "js/routes/doc/copio-images.js"
3518
+ }
3519
+ }
3520
+ ]
3521
+ },
3522
+ {
3523
+ "kind": "javascript-module",
3524
+ "path": "js/routes/home/copio-row.js",
3525
+ "declarations": [
3526
+ {
3527
+ "kind": "class",
3528
+ "description": "",
3529
+ "name": "CopioRow",
3530
+ "members": [
3531
+ {
3532
+ "kind": "field",
3533
+ "name": "hasImages",
3534
+ "readonly": true
3535
+ },
3536
+ {
3537
+ "kind": "field",
3538
+ "name": "hasMarkdown",
3539
+ "readonly": true
3540
+ },
3541
+ {
3542
+ "kind": "field",
3543
+ "name": "pageCount",
3544
+ "readonly": true
3545
+ },
3546
+ {
3547
+ "kind": "method",
3548
+ "name": "#handleWrapperClick",
3549
+ "privacy": "private",
3550
+ "parameters": [
3551
+ {
3552
+ "name": "e"
3553
+ }
3554
+ ]
3555
+ },
3556
+ {
3557
+ "kind": "method",
3558
+ "name": "#handleMenuSelect",
3559
+ "privacy": "private",
3560
+ "parameters": [
3561
+ {
3562
+ "name": "e"
3563
+ }
3564
+ ]
3565
+ },
3566
+ {
3567
+ "kind": "method",
3568
+ "name": "startRename",
3569
+ "parameters": [
3570
+ {
3571
+ "name": "e"
3572
+ }
3573
+ ]
3574
+ },
3575
+ {
3576
+ "kind": "method",
3577
+ "name": "cancelRename",
3578
+ "parameters": [
3579
+ {
3580
+ "name": "e"
3581
+ }
3582
+ ]
3583
+ },
3584
+ {
3585
+ "kind": "method",
3586
+ "name": "commitRename",
3587
+ "parameters": [
3588
+ {
3589
+ "name": "e"
3590
+ }
3591
+ ]
3592
+ },
3593
+ {
3594
+ "kind": "method",
3595
+ "name": "handleRenameKeyDown",
3596
+ "parameters": [
3597
+ {
3598
+ "name": "e"
3599
+ }
3600
+ ]
3601
+ },
3602
+ {
3603
+ "kind": "method",
3604
+ "name": "handleExtractOcr"
3605
+ },
3606
+ {
3607
+ "kind": "method",
3608
+ "name": "handleView"
3609
+ },
3610
+ {
3611
+ "kind": "method",
3612
+ "name": "handleDelete"
3613
+ },
3614
+ {
3615
+ "kind": "method",
3616
+ "name": "handleEdit"
3617
+ },
3618
+ {
3619
+ "kind": "method",
3620
+ "name": "handleDownload"
3621
+ },
3622
+ {
3623
+ "kind": "method",
3624
+ "name": "handleDownloadImages"
3625
+ },
3626
+ {
3627
+ "kind": "method",
3628
+ "name": "handleDownloadMarkdown"
3629
+ },
3630
+ {
3631
+ "kind": "field",
3632
+ "name": "name",
3633
+ "privacy": "public",
3634
+ "type": {
3635
+ "text": "string"
3636
+ },
3637
+ "default": "''",
3638
+ "attribute": "name"
3639
+ },
3640
+ {
3641
+ "kind": "field",
3642
+ "name": "pages",
3643
+ "privacy": "public",
3644
+ "type": {
3645
+ "text": "array"
3646
+ },
3647
+ "default": "[]",
3648
+ "attribute": "pages"
3649
+ },
3650
+ {
3651
+ "kind": "field",
3652
+ "name": "isRenaming",
3653
+ "privacy": "public",
3654
+ "type": {
3655
+ "text": "boolean"
3656
+ },
3657
+ "default": "false",
3658
+ "attribute": "isRenaming"
3659
+ },
3660
+ {
3661
+ "kind": "field",
3662
+ "name": "renameValue",
3663
+ "privacy": "public",
3664
+ "type": {
3665
+ "text": "string"
3666
+ },
3667
+ "default": "''",
3668
+ "attribute": "renameValue"
3669
+ },
3670
+ {
3671
+ "kind": "field",
3672
+ "name": "ocr",
3673
+ "privacy": "public",
3674
+ "type": {
3675
+ "text": "boolean"
3676
+ },
3677
+ "default": "true",
3678
+ "attribute": "ocr"
3679
+ },
3680
+ {
3681
+ "kind": "field",
3682
+ "name": "pdf",
3683
+ "privacy": "public",
3684
+ "type": {
3685
+ "text": "boolean"
3686
+ },
3687
+ "default": "true",
3688
+ "attribute": "pdf"
3689
+ }
3690
+ ],
3691
+ "events": [
3692
+ {
3693
+ "name": "doc:rename",
3694
+ "type": {
3695
+ "text": "CustomEvent"
3696
+ }
3697
+ },
3698
+ {
3699
+ "name": "doc:extract-ocr",
3700
+ "type": {
3701
+ "text": "CustomEvent"
3702
+ }
3703
+ },
3704
+ {
3705
+ "name": "doc:view",
3706
+ "type": {
3707
+ "text": "CustomEvent"
3708
+ }
3709
+ },
3710
+ {
3711
+ "name": "doc:delete",
3712
+ "type": {
3713
+ "text": "CustomEvent"
3714
+ }
3715
+ },
3716
+ {
3717
+ "name": "doc:edit",
3718
+ "type": {
3719
+ "text": "CustomEvent"
3720
+ }
3721
+ },
3722
+ {
3723
+ "name": "doc:download",
3724
+ "type": {
3725
+ "text": "CustomEvent"
3726
+ }
3727
+ },
3728
+ {
3729
+ "name": "doc:download-images",
3730
+ "type": {
3731
+ "text": "CustomEvent"
3732
+ }
3733
+ },
3734
+ {
3735
+ "name": "doc:download-markdown",
3736
+ "type": {
3737
+ "text": "CustomEvent"
3738
+ }
3739
+ }
3740
+ ],
3741
+ "attributes": [
3742
+ {
3743
+ "name": "name",
3744
+ "type": {
3745
+ "text": "string"
3746
+ },
3747
+ "default": "''",
3748
+ "fieldName": "name"
3749
+ },
3750
+ {
3751
+ "name": "pages",
3752
+ "type": {
3753
+ "text": "array"
3754
+ },
3755
+ "default": "[]",
3756
+ "fieldName": "pages"
3757
+ },
3758
+ {
3759
+ "name": "isRenaming",
3760
+ "type": {
3761
+ "text": "boolean"
3762
+ },
3763
+ "default": "false",
3764
+ "fieldName": "isRenaming"
3765
+ },
3766
+ {
3767
+ "name": "renameValue",
3768
+ "type": {
3769
+ "text": "string"
3770
+ },
3771
+ "default": "''",
3772
+ "fieldName": "renameValue"
3773
+ },
3774
+ {
3775
+ "name": "ocr",
3776
+ "type": {
3777
+ "text": "boolean"
3778
+ },
3779
+ "default": "true",
3780
+ "fieldName": "ocr"
3781
+ },
3782
+ {
3783
+ "name": "pdf",
3784
+ "type": {
3785
+ "text": "boolean"
3786
+ },
3787
+ "default": "true",
3788
+ "fieldName": "pdf"
3789
+ }
3790
+ ],
3791
+ "superclass": {
3792
+ "name": "LitElement",
3793
+ "module": "/js/lib/lit-core.min.js"
3794
+ },
3795
+ "tagName": "copio-row",
3796
+ "customElement": true
3797
+ }
3798
+ ],
3799
+ "exports": [
3800
+ {
3801
+ "kind": "js",
3802
+ "name": "CopioRow",
3803
+ "declaration": {
3804
+ "name": "CopioRow",
3805
+ "module": "js/routes/home/copio-row.js"
3806
+ }
3807
+ },
3808
+ {
3809
+ "kind": "custom-element-definition",
3810
+ "name": "copio-row",
3811
+ "declaration": {
3812
+ "name": "CopioRow",
3813
+ "module": "js/routes/home/copio-row.js"
3814
+ }
3815
+ }
3816
+ ]
3817
+ },
3818
+ {
3819
+ "kind": "javascript-module",
3820
+ "path": "js/routes/sync/copio-sync-dialog.js",
3821
+ "declarations": [
3822
+ {
3823
+ "kind": "class",
3824
+ "description": "",
3825
+ "name": "CopioSyncDialog",
3826
+ "members": [
3827
+ {
3828
+ "kind": "field",
3829
+ "name": "handleCloseClick"
3830
+ },
3831
+ {
3832
+ "kind": "field",
3833
+ "name": "closeSyncDialog"
3834
+ },
3835
+ {
3836
+ "kind": "field",
3837
+ "name": "syncState",
3838
+ "privacy": "public",
3839
+ "type": {
3840
+ "text": "object"
3841
+ },
3842
+ "attribute": "syncState"
3843
+ }
3844
+ ],
3845
+ "attributes": [
3846
+ {
3847
+ "name": "syncState",
3848
+ "type": {
3849
+ "text": "object"
3850
+ },
3851
+ "fieldName": "syncState"
3852
+ }
3853
+ ],
3854
+ "superclass": {
3855
+ "name": "LitElement",
3856
+ "module": "/js/lib/lit-core.min.js"
3857
+ },
3858
+ "tagName": "copio-sync-dialog",
3859
+ "customElement": true
3860
+ }
3861
+ ],
3862
+ "exports": [
3863
+ {
3864
+ "kind": "js",
3865
+ "name": "CopioSyncDialog",
3866
+ "declaration": {
3867
+ "name": "CopioSyncDialog",
3868
+ "module": "js/routes/sync/copio-sync-dialog.js"
3869
+ }
3870
+ },
3871
+ {
3872
+ "kind": "custom-element-definition",
3873
+ "name": "copio-sync-dialog",
3874
+ "declaration": {
3875
+ "name": "CopioSyncDialog",
3876
+ "module": "js/routes/sync/copio-sync-dialog.js"
3877
+ }
3878
+ }
3879
+ ]
3880
+ },
3881
+ {
3882
+ "kind": "javascript-module",
3883
+ "path": "js/routes/ocr/copio-doc-ocr-dialog.js",
3884
+ "declarations": [
3885
+ {
3886
+ "kind": "class",
3887
+ "description": "",
3888
+ "name": "CopioDocOcrDialog",
3889
+ "members": [
3890
+ {
3891
+ "kind": "field",
3892
+ "name": "#abortController",
3893
+ "privacy": "private",
3894
+ "type": {
3895
+ "text": "null"
3896
+ },
3897
+ "default": "null"
3898
+ },
3899
+ {
3900
+ "kind": "method",
3901
+ "name": "open",
3902
+ "parameters": [
3903
+ {
3904
+ "name": "docId",
3905
+ "type": {
3906
+ "text": "string"
3907
+ }
3908
+ },
3909
+ {
3910
+ "name": "docName",
3911
+ "type": {
3912
+ "text": "string"
3913
+ }
3914
+ },
3915
+ {
3916
+ "name": "pages",
3917
+ "type": {
3918
+ "text": "Array"
3919
+ }
3920
+ },
3921
+ {
3922
+ "name": "lang",
3923
+ "default": "'eng'",
3924
+ "optional": true,
3925
+ "type": {
3926
+ "text": "string"
3927
+ }
3928
+ }
3929
+ ],
3930
+ "description": "Open for a full document (all image pages)."
3931
+ },
3932
+ {
3933
+ "kind": "method",
3934
+ "name": "openPage",
3935
+ "parameters": [
3936
+ {
3937
+ "name": "docId",
3938
+ "type": {
3939
+ "text": "string"
3940
+ }
3941
+ },
3942
+ {
3943
+ "name": "docName",
3944
+ "type": {
3945
+ "text": "string"
3946
+ }
3947
+ },
3948
+ {
3949
+ "name": "page",
3950
+ "description": "– the single image page object",
3951
+ "type": {
3952
+ "text": "{ id: string, src: string }"
3953
+ }
3954
+ },
3955
+ {
3956
+ "name": "pageIndex",
3957
+ "description": "– its index in the document pages array",
3958
+ "type": {
3959
+ "text": "number"
3960
+ }
3961
+ },
3962
+ {
3963
+ "name": "lang",
3964
+ "default": "'eng'",
3965
+ "optional": true,
3966
+ "type": {
3967
+ "text": "string"
3968
+ }
3969
+ }
3970
+ ],
3971
+ "description": "Open for a single page (from the page grid or carousel)."
3972
+ },
3973
+ {
3974
+ "kind": "method",
3975
+ "name": "_openInternal",
3976
+ "parameters": [
3977
+ {
3978
+ "name": "docId"
3979
+ },
3980
+ {
3981
+ "name": "docName"
3982
+ },
3983
+ {
3984
+ "name": "pages"
3985
+ },
3986
+ {
3987
+ "name": "lang"
3988
+ }
3989
+ ]
3990
+ },
3991
+ {
3992
+ "kind": "field",
3993
+ "name": "cancel"
3994
+ },
3995
+ {
3996
+ "kind": "field",
3997
+ "name": "close"
3998
+ },
3999
+ {
4000
+ "kind": "method",
4001
+ "name": "startOcr",
4002
+ "parameters": [
4003
+ {
4004
+ "name": "lang",
4005
+ "default": "'eng'"
4006
+ }
4007
+ ]
4008
+ },
4009
+ {
4010
+ "kind": "field",
4011
+ "name": "handleLangChange"
4012
+ },
4013
+ {
4014
+ "kind": "field",
4015
+ "name": "handleTextInput"
4016
+ },
4017
+ {
4018
+ "kind": "field",
4019
+ "name": "copyText"
4020
+ },
4021
+ {
4022
+ "kind": "field",
4023
+ "name": "downloadMarkdown"
4024
+ },
4025
+ {
4026
+ "kind": "field",
4027
+ "name": "downloadText"
4028
+ },
4029
+ {
4030
+ "kind": "field",
4031
+ "name": "saveAsNote"
4032
+ },
4033
+ {
4034
+ "kind": "field",
4035
+ "name": "_isSinglePage",
4036
+ "readonly": true
4037
+ },
4038
+ {
4039
+ "kind": "field",
4040
+ "name": "_dialogLabel",
4041
+ "readonly": true
4042
+ },
4043
+ {
4044
+ "kind": "field",
4045
+ "name": "isOpen",
4046
+ "privacy": "public",
4047
+ "type": {
4048
+ "text": "boolean"
4049
+ },
4050
+ "default": "false",
4051
+ "attribute": "isOpen"
4052
+ },
4053
+ {
4054
+ "kind": "field",
4055
+ "name": "docId",
4056
+ "privacy": "public",
4057
+ "type": {
4058
+ "text": "string"
4059
+ },
4060
+ "default": "''",
4061
+ "attribute": "docId"
4062
+ },
4063
+ {
4064
+ "kind": "field",
4065
+ "name": "docName",
4066
+ "privacy": "public",
4067
+ "type": {
4068
+ "text": "string"
4069
+ },
4070
+ "default": "''",
4071
+ "attribute": "docName"
4072
+ },
4073
+ {
4074
+ "kind": "field",
4075
+ "name": "pages",
4076
+ "privacy": "public",
4077
+ "type": {
4078
+ "text": "array"
4079
+ },
4080
+ "default": "[]",
4081
+ "attribute": "pages"
4082
+ },
4083
+ {
4084
+ "kind": "field",
4085
+ "name": "lang",
4086
+ "privacy": "public",
4087
+ "type": {
4088
+ "text": "string"
4089
+ },
4090
+ "default": "'eng'",
4091
+ "attribute": "lang"
4092
+ },
4093
+ {
4094
+ "kind": "field",
4095
+ "name": "step",
4096
+ "privacy": "public",
4097
+ "type": {
4098
+ "text": "string"
4099
+ },
4100
+ "default": "'processing'",
4101
+ "attribute": "step"
4102
+ },
4103
+ {
4104
+ "kind": "field",
4105
+ "name": "progress",
4106
+ "privacy": "public",
4107
+ "type": {
4108
+ "text": "number"
4109
+ },
4110
+ "default": "0",
4111
+ "attribute": "progress"
4112
+ },
4113
+ {
4114
+ "kind": "field",
4115
+ "name": "statusMessage",
4116
+ "privacy": "public",
4117
+ "type": {
4118
+ "text": "string"
4119
+ },
4120
+ "default": "'Starting OCR engine...'",
4121
+ "attribute": "statusMessage"
4122
+ },
4123
+ {
4124
+ "kind": "field",
4125
+ "name": "resultText",
4126
+ "privacy": "public",
4127
+ "type": {
4128
+ "text": "string"
4129
+ },
4130
+ "default": "''",
4131
+ "attribute": "resultText"
4132
+ },
4133
+ {
4134
+ "kind": "field",
4135
+ "name": "confidence",
4136
+ "privacy": "public",
4137
+ "type": {
4138
+ "text": "number"
4139
+ },
4140
+ "default": "0",
4141
+ "attribute": "confidence"
4142
+ },
4143
+ {
4144
+ "kind": "field",
4145
+ "name": "copied",
4146
+ "privacy": "public",
4147
+ "type": {
4148
+ "text": "boolean"
4149
+ },
4150
+ "default": "false",
4151
+ "attribute": "copied"
4152
+ },
4153
+ {
4154
+ "kind": "field",
4155
+ "name": "_pageIndex",
4156
+ "type": {
4157
+ "text": "null"
4158
+ },
4159
+ "default": "null"
4160
+ }
4161
+ ],
4162
+ "attributes": [
4163
+ {
4164
+ "name": "isOpen",
4165
+ "type": {
4166
+ "text": "boolean"
4167
+ },
4168
+ "default": "false",
4169
+ "fieldName": "isOpen"
4170
+ },
4171
+ {
4172
+ "name": "docId",
4173
+ "type": {
4174
+ "text": "string"
4175
+ },
4176
+ "default": "''",
4177
+ "fieldName": "docId"
4178
+ },
4179
+ {
4180
+ "name": "docName",
4181
+ "type": {
4182
+ "text": "string"
4183
+ },
4184
+ "default": "''",
4185
+ "fieldName": "docName"
4186
+ },
4187
+ {
4188
+ "name": "pages",
4189
+ "type": {
4190
+ "text": "array"
4191
+ },
4192
+ "default": "[]",
4193
+ "fieldName": "pages"
4194
+ },
4195
+ {
4196
+ "name": "lang",
4197
+ "type": {
4198
+ "text": "string"
4199
+ },
4200
+ "default": "'eng'",
4201
+ "fieldName": "lang"
4202
+ },
4203
+ {
4204
+ "name": "step",
4205
+ "type": {
4206
+ "text": "string"
4207
+ },
4208
+ "default": "'processing'",
4209
+ "fieldName": "step"
4210
+ },
4211
+ {
4212
+ "name": "progress",
4213
+ "type": {
4214
+ "text": "number"
4215
+ },
4216
+ "default": "0",
4217
+ "fieldName": "progress"
4218
+ },
4219
+ {
4220
+ "name": "statusMessage",
4221
+ "type": {
4222
+ "text": "string"
4223
+ },
4224
+ "default": "'Starting OCR engine...'",
4225
+ "fieldName": "statusMessage"
4226
+ },
4227
+ {
4228
+ "name": "resultText",
4229
+ "type": {
4230
+ "text": "string"
4231
+ },
4232
+ "default": "''",
4233
+ "fieldName": "resultText"
4234
+ },
4235
+ {
4236
+ "name": "confidence",
4237
+ "type": {
4238
+ "text": "number"
4239
+ },
4240
+ "default": "0",
4241
+ "fieldName": "confidence"
4242
+ },
4243
+ {
4244
+ "name": "copied",
4245
+ "type": {
4246
+ "text": "boolean"
4247
+ },
4248
+ "default": "false",
4249
+ "fieldName": "copied"
4250
+ }
4251
+ ],
4252
+ "superclass": {
4253
+ "name": "LitElement",
4254
+ "module": "/js/lib/lit-core.min.js"
4255
+ },
4256
+ "tagName": "copio-doc-ocr-dialog",
4257
+ "customElement": true
4258
+ }
4259
+ ],
4260
+ "exports": [
4261
+ {
4262
+ "kind": "js",
4263
+ "name": "CopioDocOcrDialog",
4264
+ "declaration": {
4265
+ "name": "CopioDocOcrDialog",
4266
+ "module": "js/routes/ocr/copio-doc-ocr-dialog.js"
4267
+ }
4268
+ },
4269
+ {
4270
+ "kind": "custom-element-definition",
4271
+ "name": "copio-doc-ocr-dialog",
4272
+ "declaration": {
4273
+ "name": "CopioDocOcrDialog",
4274
+ "module": "js/routes/ocr/copio-doc-ocr-dialog.js"
4275
+ }
4276
+ }
4277
+ ]
4278
+ },
4279
+ {
4280
+ "kind": "javascript-module",
4281
+ "path": "js/components/copio-app.js",
4282
+ "declarations": [
4283
+ {
4284
+ "kind": "class",
4285
+ "description": "",
4286
+ "name": "CopioApp",
4287
+ "members": [
4288
+ {
4289
+ "kind": "field",
4290
+ "name": "#syncManager",
4291
+ "privacy": "private",
4292
+ "type": {
4293
+ "text": "null"
4294
+ },
4295
+ "default": "new SyncManager(this.docRepo, (state) => { this.syncState = state; })"
4296
+ },
4297
+ {
4298
+ "kind": "field",
4299
+ "name": "#unsubscribeRouter",
4300
+ "privacy": "private",
4301
+ "type": {
4302
+ "text": "null"
4303
+ },
4304
+ "default": "null"
4305
+ },
4306
+ {
4307
+ "kind": "field",
4308
+ "name": "#repoUnsubscribe",
4309
+ "privacy": "private",
4310
+ "type": {
4311
+ "text": "null"
4312
+ },
4313
+ "default": "null"
4314
+ },
4315
+ {
4316
+ "kind": "field",
4317
+ "name": "store",
4318
+ "readonly": true
4319
+ },
4320
+ {
4321
+ "kind": "field",
4322
+ "name": "persister",
4323
+ "readonly": true
4324
+ },
4325
+ {
4326
+ "kind": "method",
4327
+ "name": "#refreshDocs",
4328
+ "privacy": "private"
4329
+ },
4330
+ {
4331
+ "kind": "method",
4332
+ "name": "hideLoader"
4333
+ },
4334
+ {
4335
+ "kind": "method",
4336
+ "name": "#handleRouteChange",
4337
+ "privacy": "private",
4338
+ "parameters": [
4339
+ {
4340
+ "name": "{ name, params }"
4341
+ }
4342
+ ]
4343
+ },
4344
+ {
4345
+ "kind": "method",
4346
+ "name": "#openAddDialog",
4347
+ "privacy": "private"
4348
+ },
4349
+ {
4350
+ "kind": "method",
4351
+ "name": "handleAddNew"
4352
+ },
4353
+ {
4354
+ "kind": "method",
4355
+ "name": "#requestPersistentStorage",
4356
+ "privacy": "private"
4357
+ },
4358
+ {
4359
+ "kind": "method",
4360
+ "name": "handleAddEditSave",
4361
+ "parameters": [
4362
+ {
4363
+ "name": "e"
4364
+ }
4365
+ ]
4366
+ },
4367
+ {
4368
+ "kind": "method",
4369
+ "name": "handleAddEditHide"
4370
+ },
4371
+ {
4372
+ "kind": "method",
4373
+ "name": "#loadEditDoc",
4374
+ "privacy": "private",
4375
+ "parameters": [
4376
+ {
4377
+ "name": "id"
4378
+ }
4379
+ ]
4380
+ },
4381
+ {
4382
+ "kind": "method",
4383
+ "name": "#startSyncHost",
4384
+ "privacy": "private"
4385
+ },
4386
+ {
4387
+ "kind": "method",
4388
+ "name": "#startSyncJoiner",
4389
+ "privacy": "private",
4390
+ "parameters": [
4391
+ {
4392
+ "name": "peer"
4393
+ }
4394
+ ]
4395
+ },
4396
+ {
4397
+ "kind": "method",
4398
+ "name": "handleRowEdit",
4399
+ "parameters": [
4400
+ {
4401
+ "name": "e"
4402
+ }
4403
+ ]
4404
+ },
4405
+ {
4406
+ "kind": "method",
4407
+ "name": "#loadCarouselDoc",
4408
+ "privacy": "private",
4409
+ "parameters": [
4410
+ {
4411
+ "name": "id"
4412
+ }
4413
+ ]
4414
+ },
4415
+ {
4416
+ "kind": "method",
4417
+ "name": "handleRowView",
4418
+ "parameters": [
4419
+ {
4420
+ "name": "e"
4421
+ }
4422
+ ]
4423
+ },
4424
+ {
4425
+ "kind": "method",
4426
+ "name": "handleRowRename",
4427
+ "parameters": [
4428
+ {
4429
+ "name": "e"
4430
+ }
4431
+ ]
4432
+ },
4433
+ {
4434
+ "kind": "method",
4435
+ "name": "handleRowDelete",
4436
+ "parameters": [
4437
+ {
4438
+ "name": "e"
4439
+ }
4440
+ ]
4441
+ },
4442
+ {
4443
+ "kind": "method",
4444
+ "name": "handleRowDownload",
4445
+ "parameters": [
4446
+ {
4447
+ "name": "e"
4448
+ }
4449
+ ]
4450
+ },
4451
+ {
4452
+ "kind": "method",
4453
+ "name": "handleRowDownloadImages",
4454
+ "parameters": [
4455
+ {
4456
+ "name": "e"
4457
+ }
4458
+ ]
4459
+ },
4460
+ {
4461
+ "kind": "method",
4462
+ "name": "handleRowDownloadMarkdown",
4463
+ "parameters": [
4464
+ {
4465
+ "name": "e"
4466
+ }
4467
+ ]
4468
+ },
4469
+ {
4470
+ "kind": "method",
4471
+ "name": "handleCarouselDownloadPdf",
4472
+ "parameters": [
4473
+ {
4474
+ "name": "e"
4475
+ }
4476
+ ]
4477
+ },
4478
+ {
4479
+ "kind": "method",
4480
+ "name": "handleCarouselDownloadImages",
4481
+ "parameters": [
4482
+ {
4483
+ "name": "e"
4484
+ }
4485
+ ]
4486
+ },
4487
+ {
4488
+ "kind": "method",
4489
+ "name": "handleCarouselDownloadMarkdown",
4490
+ "parameters": [
4491
+ {
4492
+ "name": "e"
4493
+ }
4494
+ ]
4495
+ },
4496
+ {
4497
+ "kind": "method",
4498
+ "name": "handleRowExtractOcr",
4499
+ "parameters": [
4500
+ {
4501
+ "name": "e"
4502
+ }
4503
+ ]
4504
+ },
4505
+ {
4506
+ "kind": "method",
4507
+ "name": "handleOcrPage",
4508
+ "parameters": [
4509
+ {
4510
+ "name": "e"
4511
+ }
4512
+ ],
4513
+ "description": "Handle copio:ocr-page — fired by copio-images (page grid) or copio-carousel.\nDetermines the current document from the active route and opens the shared\nOCR dialog in single-page mode via openPage()."
4514
+ },
4515
+ {
4516
+ "kind": "method",
4517
+ "name": "handleOcrSaveNote",
4518
+ "parameters": [
4519
+ {
4520
+ "name": "e"
4521
+ }
4522
+ ]
4523
+ },
4524
+ {
4525
+ "kind": "method",
4526
+ "name": "handleCarouselClose"
4527
+ },
4528
+ {
4529
+ "kind": "field",
4530
+ "name": "startSyncAsHost"
4531
+ },
4532
+ {
4533
+ "kind": "field",
4534
+ "name": "startSyncAsJoiner"
4535
+ },
4536
+ {
4537
+ "kind": "field",
4538
+ "name": "closeSyncDialog"
4539
+ },
4540
+ {
4541
+ "kind": "field",
4542
+ "name": "handleClearCache"
4543
+ },
4544
+ {
4545
+ "kind": "method",
4546
+ "name": "renderRows"
4547
+ },
4548
+ {
4549
+ "kind": "field",
4550
+ "name": "docsData",
4551
+ "privacy": "public",
4552
+ "type": {
4553
+ "text": "object"
4554
+ },
4555
+ "default": "{}",
4556
+ "attribute": "docsData"
4557
+ },
4558
+ {
4559
+ "kind": "field",
4560
+ "name": "showCarousel",
4561
+ "privacy": "public",
4562
+ "type": {
4563
+ "text": "boolean"
4564
+ },
4565
+ "default": "false",
4566
+ "attribute": "showCarousel"
4567
+ },
4568
+ {
4569
+ "kind": "field",
4570
+ "name": "syncState",
4571
+ "privacy": "public",
4572
+ "type": {
4573
+ "text": "null"
4574
+ },
4575
+ "default": "null",
4576
+ "attribute": "syncState"
4577
+ },
4578
+ {
4579
+ "kind": "field",
4580
+ "name": "hideLoaderTimer",
4581
+ "type": {
4582
+ "text": "null"
4583
+ },
4584
+ "default": "null"
4585
+ },
4586
+ {
4587
+ "kind": "field",
4588
+ "name": "docRepo",
4589
+ "default": "docRepository"
4590
+ }
4591
+ ],
4592
+ "attributes": [
4593
+ {
4594
+ "name": "docsData",
4595
+ "type": {
4596
+ "text": "object"
4597
+ },
4598
+ "default": "{}",
4599
+ "fieldName": "docsData"
4600
+ },
4601
+ {
4602
+ "name": "showCarousel",
4603
+ "type": {
4604
+ "text": "boolean"
4605
+ },
4606
+ "default": "false",
4607
+ "fieldName": "showCarousel"
4608
+ },
4609
+ {
4610
+ "name": "syncState",
4611
+ "type": {
4612
+ "text": "null"
4613
+ },
4614
+ "default": "null",
4615
+ "fieldName": "syncState"
4616
+ }
4617
+ ],
4618
+ "superclass": {
4619
+ "name": "LitElement",
4620
+ "module": "/js/lib/lit-core.min.js"
4621
+ },
4622
+ "tagName": "copio-app",
4623
+ "customElement": true
4624
+ }
4625
+ ],
4626
+ "exports": [
4627
+ {
4628
+ "kind": "js",
4629
+ "name": "CopioApp",
4630
+ "declaration": {
4631
+ "name": "CopioApp",
4632
+ "module": "js/components/copio-app.js"
4633
+ }
4634
+ },
4635
+ {
4636
+ "kind": "custom-element-definition",
4637
+ "name": "copio-app",
4638
+ "declaration": {
4639
+ "name": "CopioApp",
4640
+ "module": "js/components/copio-app.js"
4641
+ }
4642
+ }
4643
+ ]
4644
+ },
4645
+ {
4646
+ "kind": "javascript-module",
4647
+ "path": "js/components/copio-header.js",
4648
+ "declarations": [
4649
+ {
4650
+ "kind": "class",
4651
+ "description": "",
4652
+ "name": "CopioHeader",
4653
+ "members": [
4654
+ {
4655
+ "kind": "method",
4656
+ "name": "#updateStorageInfo",
4657
+ "privacy": "private"
4658
+ },
4659
+ {
4660
+ "kind": "method",
4661
+ "name": "_formatBytes",
4662
+ "parameters": [
4663
+ {
4664
+ "name": "bytes"
4665
+ }
4666
+ ]
4667
+ },
4668
+ {
4669
+ "kind": "method",
4670
+ "name": "#handleSelect",
4671
+ "privacy": "private",
4672
+ "parameters": [
4673
+ {
4674
+ "name": "e"
4675
+ }
4676
+ ]
4677
+ },
4678
+ {
4679
+ "kind": "field",
4680
+ "name": "_storageEstimate",
4681
+ "privacy": "public",
4682
+ "attribute": "_storageEstimate"
4683
+ },
4684
+ {
4685
+ "kind": "field",
4686
+ "name": "_isPersisted",
4687
+ "privacy": "public",
4688
+ "attribute": "_isPersisted"
4689
+ }
4690
+ ],
4691
+ "events": [
4692
+ {
4693
+ "name": "header:link-device",
4694
+ "type": {
4695
+ "text": "CustomEvent"
4696
+ }
4697
+ },
4698
+ {
4699
+ "name": "header:clear-cache",
4700
+ "type": {
4701
+ "text": "CustomEvent"
4702
+ }
4703
+ }
4704
+ ],
4705
+ "attributes": [
4706
+ {
4707
+ "name": "_storageEstimate",
4708
+ "fieldName": "_storageEstimate"
4709
+ },
4710
+ {
4711
+ "name": "_isPersisted",
4712
+ "fieldName": "_isPersisted"
4713
+ }
4714
+ ],
4715
+ "superclass": {
4716
+ "name": "LitElement",
4717
+ "module": "/js/lib/lit-core.min.js"
4718
+ },
4719
+ "tagName": "copio-header",
4720
+ "customElement": true
4721
+ }
4722
+ ],
4723
+ "exports": [
4724
+ {
4725
+ "kind": "js",
4726
+ "name": "CopioHeader",
4727
+ "declaration": {
4728
+ "name": "CopioHeader",
4729
+ "module": "js/components/copio-header.js"
4730
+ }
4731
+ },
4732
+ {
4733
+ "kind": "custom-element-definition",
4734
+ "name": "copio-header",
4735
+ "declaration": {
4736
+ "name": "CopioHeader",
4737
+ "module": "js/components/copio-header.js"
4738
+ }
4739
+ }
4740
+ ]
4741
+ },
4742
+ {
4743
+ "kind": "javascript-module",
4744
+ "path": "js/components/copio-loader.js",
4745
+ "declarations": [
4746
+ {
4747
+ "kind": "class",
4748
+ "description": "",
4749
+ "name": "CopioLoader",
4750
+ "members": [],
4751
+ "superclass": {
4752
+ "name": "LitElement",
4753
+ "module": "/js/lib/lit-core.min.js"
4754
+ },
4755
+ "tagName": "copio-loader",
4756
+ "customElement": true
4757
+ }
4758
+ ],
4759
+ "exports": [
4760
+ {
4761
+ "kind": "js",
4762
+ "name": "CopioLoader",
4763
+ "declaration": {
4764
+ "name": "CopioLoader",
4765
+ "module": "js/components/copio-loader.js"
4766
+ }
4767
+ },
4768
+ {
4769
+ "kind": "custom-element-definition",
4770
+ "name": "copio-loader",
4771
+ "declaration": {
4772
+ "name": "CopioLoader",
4773
+ "module": "js/components/copio-loader.js"
4774
+ }
4775
+ }
4776
+ ]
4777
+ }
4778
+ ]
4779
+ }