@embedpdf/vue 0.0.0-stage → 3.0.0-next.15

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 (405) hide show
  1. package/LICENSE +192 -0
  2. package/README.md +258 -2
  3. package/dist/Anchored.vue_vue_type_script_setup_true_lang-BEImlFso.cjs +124 -0
  4. package/dist/Anchored.vue_vue_type_script_setup_true_lang-BEImlFso.cjs.map +1 -0
  5. package/dist/Anchored.vue_vue_type_script_setup_true_lang-Brhh5jyF.js +125 -0
  6. package/dist/Anchored.vue_vue_type_script_setup_true_lang-Brhh5jyF.js.map +1 -0
  7. package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-BwtHXw73.cjs +20 -0
  8. package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-BwtHXw73.cjs.map +1 -0
  9. package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-Ulkr3a6R.js +21 -0
  10. package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-Ulkr3a6R.js.map +1 -0
  11. package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-CtTu1FGX.js +191 -0
  12. package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-CtTu1FGX.js.map +1 -0
  13. package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-loLSm4lV.cjs +190 -0
  14. package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-loLSm4lV.cjs.map +1 -0
  15. package/dist/FormLayer.vue_vue_type_script_setup_true_lang-BA0_VwFc.cjs +682 -0
  16. package/dist/FormLayer.vue_vue_type_script_setup_true_lang-BA0_VwFc.cjs.map +1 -0
  17. package/dist/FormLayer.vue_vue_type_script_setup_true_lang-DUqft-xs.js +683 -0
  18. package/dist/FormLayer.vue_vue_type_script_setup_true_lang-DUqft-xs.js.map +1 -0
  19. package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-C5-eQD34.cjs +174 -0
  20. package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-C5-eQD34.cjs.map +1 -0
  21. package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-EzLaOP3g.js +175 -0
  22. package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-EzLaOP3g.js.map +1 -0
  23. package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js +33 -0
  24. package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js.map +1 -0
  25. package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-Cw29c8Oa.cjs +32 -0
  26. package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-Cw29c8Oa.cjs.map +1 -0
  27. package/dist/PageView.vue_vue_type_script_setup_true_lang-CjrpumX2.cjs +151 -0
  28. package/dist/PageView.vue_vue_type_script_setup_true_lang-CjrpumX2.cjs.map +1 -0
  29. package/dist/PageView.vue_vue_type_script_setup_true_lang-O4AFc0_R.js +152 -0
  30. package/dist/PageView.vue_vue_type_script_setup_true_lang-O4AFc0_R.js.map +1 -0
  31. package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-DrOORC1H.cjs +480 -0
  32. package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-DrOORC1H.cjs.map +1 -0
  33. package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-HbCryx1B.js +481 -0
  34. package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-HbCryx1B.js.map +1 -0
  35. package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-BlLIPH1B.js +118 -0
  36. package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-BlLIPH1B.js.map +1 -0
  37. package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-CQozZCvB.cjs +117 -0
  38. package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-CQozZCvB.cjs.map +1 -0
  39. package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C4TUDuyu.js +302 -0
  40. package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C4TUDuyu.js.map +1 -0
  41. package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C8T9q6Kb.cjs +301 -0
  42. package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C8T9q6Kb.cjs.map +1 -0
  43. package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-D_c-wINF.cjs +38 -0
  44. package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-D_c-wINF.cjs.map +1 -0
  45. package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-fOTs4aqv.js +39 -0
  46. package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-fOTs4aqv.js.map +1 -0
  47. package/dist/actions.cjs +42 -0
  48. package/dist/actions.cjs.map +1 -0
  49. package/dist/actions.d.cts +41 -0
  50. package/dist/actions.d.ts +41 -0
  51. package/dist/actions.js +37 -0
  52. package/dist/actions.js.map +1 -0
  53. package/dist/anchored/Anchored.vue.d.cts +40 -0
  54. package/dist/anchored/Anchored.vue.d.ts +40 -0
  55. package/dist/anchored/AnchoredScope.vue.d.cts +17 -0
  56. package/dist/anchored/AnchoredScope.vue.d.ts +17 -0
  57. package/dist/anchored/PlacedAnchored.vue.d.cts +19 -0
  58. package/dist/anchored/PlacedAnchored.vue.d.ts +19 -0
  59. package/dist/anchored/projector.d.cts +32 -0
  60. package/dist/anchored/projector.d.ts +32 -0
  61. package/dist/anchored.cjs +13 -0
  62. package/dist/anchored.cjs.map +1 -0
  63. package/dist/anchored.d.cts +15 -0
  64. package/dist/anchored.d.ts +15 -0
  65. package/dist/anchored.js +13 -0
  66. package/dist/anchored.js.map +1 -0
  67. package/dist/annotation/AnnotationChrome.vue.d.cts +20 -0
  68. package/dist/annotation/AnnotationChrome.vue.d.ts +20 -0
  69. package/dist/annotation/AnnotationDraftMenu.vue.d.cts +26 -0
  70. package/dist/annotation/AnnotationDraftMenu.vue.d.ts +26 -0
  71. package/dist/annotation/AnnotationFrame.vue.d.cts +25 -0
  72. package/dist/annotation/AnnotationFrame.vue.d.ts +25 -0
  73. package/dist/annotation/AnnotationLayer.vue.d.cts +23 -0
  74. package/dist/annotation/AnnotationLayer.vue.d.ts +23 -0
  75. package/dist/annotation/AnnotationLook.vue.d.cts +21 -0
  76. package/dist/annotation/AnnotationLook.vue.d.ts +21 -0
  77. package/dist/annotation/AnnotationMenu.vue.d.cts +23 -0
  78. package/dist/annotation/AnnotationMenu.vue.d.ts +23 -0
  79. package/dist/annotation/AnnotationRotationBadge.vue.d.cts +26 -0
  80. package/dist/annotation/AnnotationRotationBadge.vue.d.ts +26 -0
  81. package/dist/annotation/AnnotationScene.vue.d.cts +7 -0
  82. package/dist/annotation/AnnotationScene.vue.d.ts +7 -0
  83. package/dist/annotation/FreeTextBox.vue.d.cts +9 -0
  84. package/dist/annotation/FreeTextBox.vue.d.ts +9 -0
  85. package/dist/annotation/NativeDrawing.vue.d.cts +10 -0
  86. package/dist/annotation/NativeDrawing.vue.d.ts +10 -0
  87. package/dist/annotation/StampGhost.vue.d.cts +7 -0
  88. package/dist/annotation/StampGhost.vue.d.ts +7 -0
  89. package/dist/annotation/composables.d.cts +76 -0
  90. package/dist/annotation/composables.d.ts +76 -0
  91. package/dist/annotation/state.d.cts +19 -0
  92. package/dist/annotation/state.d.ts +19 -0
  93. package/dist/annotation/text-box.d.cts +27 -0
  94. package/dist/annotation/text-box.d.ts +27 -0
  95. package/dist/annotation/types.d.cts +154 -0
  96. package/dist/annotation/types.d.ts +154 -0
  97. package/dist/annotation.cjs +29 -0
  98. package/dist/annotation.cjs.map +1 -0
  99. package/dist/annotation.d.cts +35 -0
  100. package/dist/annotation.d.ts +35 -0
  101. package/dist/annotation.js +23 -0
  102. package/dist/annotation.js.map +1 -0
  103. package/dist/capabilities-C7YzgPCX.js +164 -0
  104. package/dist/capabilities-C7YzgPCX.js.map +1 -0
  105. package/dist/capabilities-DVNJmgy7.cjs +163 -0
  106. package/dist/capabilities-DVNJmgy7.cjs.map +1 -0
  107. package/dist/commands.cjs +81 -0
  108. package/dist/commands.cjs.map +1 -0
  109. package/dist/commands.d.cts +61 -0
  110. package/dist/commands.d.ts +61 -0
  111. package/dist/commands.js +76 -0
  112. package/dist/commands.js.map +1 -0
  113. package/dist/composables-BGBsNDf9.cjs +25 -0
  114. package/dist/composables-BGBsNDf9.cjs.map +1 -0
  115. package/dist/composables-BuHvnUlo.cjs +1003 -0
  116. package/dist/composables-BuHvnUlo.cjs.map +1 -0
  117. package/dist/composables-CIkhKwAg.js +1004 -0
  118. package/dist/composables-CIkhKwAg.js.map +1 -0
  119. package/dist/composables-DwsZdg06.js +26 -0
  120. package/dist/composables-DwsZdg06.js.map +1 -0
  121. package/dist/dev-CtMlvxjZ.js +17 -0
  122. package/dist/dev-CtMlvxjZ.js.map +1 -0
  123. package/dist/dev-eeIS2B4c.cjs +16 -0
  124. package/dist/dev-eeIS2B4c.cjs.map +1 -0
  125. package/dist/dev.d.cts +11 -0
  126. package/dist/dev.d.ts +11 -0
  127. package/dist/documents-DUu5H4yH.js +34 -0
  128. package/dist/documents-DUu5H4yH.js.map +1 -0
  129. package/dist/documents-TQ1fMdWI.cjs +33 -0
  130. package/dist/documents-TQ1fMdWI.cjs.map +1 -0
  131. package/dist/form/ButtonControl.vue.d.cts +11 -0
  132. package/dist/form/ButtonControl.vue.d.ts +11 -0
  133. package/dist/form/ComboControl.vue.d.cts +11 -0
  134. package/dist/form/ComboControl.vue.d.ts +11 -0
  135. package/dist/form/FieldPictures.vue.d.cts +3 -0
  136. package/dist/form/FieldPictures.vue.d.ts +3 -0
  137. package/dist/form/FormFocusRing.vue.d.cts +8 -0
  138. package/dist/form/FormFocusRing.vue.d.ts +8 -0
  139. package/dist/form/FormLayer.vue.d.cts +3 -0
  140. package/dist/form/FormLayer.vue.d.ts +3 -0
  141. package/dist/form/ListControl.vue.d.cts +11 -0
  142. package/dist/form/ListControl.vue.d.ts +11 -0
  143. package/dist/form/NativeListBox.vue.d.cts +27 -0
  144. package/dist/form/NativeListBox.vue.d.ts +27 -0
  145. package/dist/form/SignatureControl.vue.d.cts +11 -0
  146. package/dist/form/SignatureControl.vue.d.ts +11 -0
  147. package/dist/form/TextControl.vue.d.cts +11 -0
  148. package/dist/form/TextControl.vue.d.ts +11 -0
  149. package/dist/form/ToggleControl.vue.d.cts +11 -0
  150. package/dist/form/ToggleControl.vue.d.ts +11 -0
  151. package/dist/form/composables.d.cts +52 -0
  152. package/dist/form/composables.d.ts +52 -0
  153. package/dist/form/widget-box.d.cts +34 -0
  154. package/dist/form/widget-box.d.ts +34 -0
  155. package/dist/form.cjs +17 -0
  156. package/dist/form.cjs.map +1 -0
  157. package/dist/form.d.cts +12 -0
  158. package/dist/form.d.ts +12 -0
  159. package/dist/form.js +11 -0
  160. package/dist/form.js.map +1 -0
  161. package/dist/history.cjs +22 -0
  162. package/dist/history.cjs.map +1 -0
  163. package/dist/history.d.cts +31 -0
  164. package/dist/history.d.ts +31 -0
  165. package/dist/history.js +17 -0
  166. package/dist/history.js.map +1 -0
  167. package/dist/i18n.cjs +29 -0
  168. package/dist/i18n.cjs.map +1 -0
  169. package/dist/i18n.d.cts +36 -0
  170. package/dist/i18n.d.ts +36 -0
  171. package/dist/i18n.js +24 -0
  172. package/dist/i18n.js.map +1 -0
  173. package/dist/index.cjs +391 -0
  174. package/dist/index.cjs.map +1 -0
  175. package/dist/index.d.cts +30 -0
  176. package/dist/index.d.ts +30 -0
  177. package/dist/index.js +223 -0
  178. package/dist/index.js.map +1 -0
  179. package/dist/interaction/PagePointerSource.vue.d.cts +3 -0
  180. package/dist/interaction/PagePointerSource.vue.d.ts +3 -0
  181. package/dist/interaction.cjs +63 -0
  182. package/dist/interaction.cjs.map +1 -0
  183. package/dist/interaction.d.cts +40 -0
  184. package/dist/interaction.d.ts +40 -0
  185. package/dist/interaction.js +47 -0
  186. package/dist/interaction.js.map +1 -0
  187. package/dist/link/LinkAnchor.vue.d.cts +9 -0
  188. package/dist/link/LinkAnchor.vue.d.ts +9 -0
  189. package/dist/link/LinkLayer.vue.d.cts +22 -0
  190. package/dist/link/LinkLayer.vue.d.ts +22 -0
  191. package/dist/link/composables.d.cts +29 -0
  192. package/dist/link/composables.d.ts +29 -0
  193. package/dist/link.cjs +14 -0
  194. package/dist/link.cjs.map +1 -0
  195. package/dist/link.d.cts +11 -0
  196. package/dist/link.d.ts +11 -0
  197. package/dist/link.js +8 -0
  198. package/dist/link.js.map +1 -0
  199. package/dist/measurement.cjs +43 -0
  200. package/dist/measurement.cjs.map +1 -0
  201. package/dist/measurement.d.cts +51 -0
  202. package/dist/measurement.d.ts +51 -0
  203. package/dist/measurement.js +38 -0
  204. package/dist/measurement.js.map +1 -0
  205. package/dist/metadata.cjs +22 -0
  206. package/dist/metadata.cjs.map +1 -0
  207. package/dist/metadata.d.cts +31 -0
  208. package/dist/metadata.d.ts +31 -0
  209. package/dist/metadata.js +17 -0
  210. package/dist/metadata.js.map +1 -0
  211. package/dist/page-D9XIuLSj.js +16 -0
  212. package/dist/page-D9XIuLSj.js.map +1 -0
  213. package/dist/page-Doy4_Sdz.cjs +15 -0
  214. package/dist/page-Doy4_Sdz.cjs.map +1 -0
  215. package/dist/page-edit.cjs +15 -0
  216. package/dist/page-edit.cjs.map +1 -0
  217. package/dist/page-edit.d.cts +16 -0
  218. package/dist/page-edit.d.ts +16 -0
  219. package/dist/page-edit.js +10 -0
  220. package/dist/page-edit.js.map +1 -0
  221. package/dist/page-layers-c-CJYAUO.cjs +30 -0
  222. package/dist/page-layers-c-CJYAUO.cjs.map +1 -0
  223. package/dist/page-layers-rlh4-1qr.js +31 -0
  224. package/dist/page-layers-rlh4-1qr.js.map +1 -0
  225. package/dist/page-layers.d.cts +21 -0
  226. package/dist/page-layers.d.ts +21 -0
  227. package/dist/page-view/PageView.vue.d.cts +42 -0
  228. package/dist/page-view/PageView.vue.d.ts +42 -0
  229. package/dist/page-view.cjs +5 -0
  230. package/dist/page-view.cjs.map +1 -0
  231. package/dist/page-view.d.cts +10 -0
  232. package/dist/page-view.d.ts +10 -0
  233. package/dist/page-view.js +5 -0
  234. package/dist/page-view.js.map +1 -0
  235. package/dist/projector-CDZn1kh1.js +32 -0
  236. package/dist/projector-CDZn1kh1.js.map +1 -0
  237. package/dist/projector-Cf7879sx.cjs +31 -0
  238. package/dist/projector-Cf7879sx.cjs.map +1 -0
  239. package/dist/redaction.cjs +34 -0
  240. package/dist/redaction.cjs.map +1 -0
  241. package/dist/redaction.d.cts +44 -0
  242. package/dist/redaction.d.ts +44 -0
  243. package/dist/redaction.js +29 -0
  244. package/dist/redaction.js.map +1 -0
  245. package/dist/render/RenderLayer.vue.d.cts +23 -0
  246. package/dist/render/RenderLayer.vue.d.ts +23 -0
  247. package/dist/render/TileImage.vue.d.cts +13 -0
  248. package/dist/render/TileImage.vue.d.ts +13 -0
  249. package/dist/render/TilePlane.vue.d.cts +7 -0
  250. package/dist/render/TilePlane.vue.d.ts +7 -0
  251. package/dist/render.cjs +262 -0
  252. package/dist/render.cjs.map +1 -0
  253. package/dist/render.d.cts +16 -0
  254. package/dist/render.d.ts +16 -0
  255. package/dist/render.js +257 -0
  256. package/dist/render.js.map +1 -0
  257. package/dist/runtime/DocumentGate.vue.d.cts +24 -0
  258. package/dist/runtime/DocumentGate.vue.d.ts +24 -0
  259. package/dist/runtime/DocumentScope.vue.d.cts +16 -0
  260. package/dist/runtime/DocumentScope.vue.d.ts +16 -0
  261. package/dist/runtime/KernelProvider.vue.d.cts +17 -0
  262. package/dist/runtime/KernelProvider.vue.d.ts +17 -0
  263. package/dist/runtime/SvgShapes.vue.d.cts +7 -0
  264. package/dist/runtime/SvgShapes.vue.d.ts +7 -0
  265. package/dist/runtime/Viewer.vue.d.cts +57 -0
  266. package/dist/runtime/Viewer.vue.d.ts +57 -0
  267. package/dist/runtime/capabilities.d.cts +52 -0
  268. package/dist/runtime/capabilities.d.ts +52 -0
  269. package/dist/runtime/documents.d.cts +42 -0
  270. package/dist/runtime/documents.d.ts +42 -0
  271. package/dist/runtime/kernel.d.cts +36 -0
  272. package/dist/runtime/kernel.d.ts +36 -0
  273. package/dist/runtime/page.d.cts +15 -0
  274. package/dist/runtime/page.d.ts +15 -0
  275. package/dist/runtime/refs.d.cts +12 -0
  276. package/dist/runtime/refs.d.ts +12 -0
  277. package/dist/runtime/surface-box.d.cts +12 -0
  278. package/dist/runtime/surface-box.d.ts +12 -0
  279. package/dist/runtime.cjs +53 -0
  280. package/dist/runtime.cjs.map +1 -0
  281. package/dist/runtime.d.cts +24 -0
  282. package/dist/runtime.d.ts +24 -0
  283. package/dist/runtime.js +38 -0
  284. package/dist/runtime.js.map +1 -0
  285. package/dist/scope-BQA4toWB.cjs +17 -0
  286. package/dist/scope-BQA4toWB.cjs.map +1 -0
  287. package/dist/scope-BgdCqnYb.js +18 -0
  288. package/dist/scope-BgdCqnYb.js.map +1 -0
  289. package/dist/search/SearchLayer.vue.d.cts +17 -0
  290. package/dist/search/SearchLayer.vue.d.ts +17 -0
  291. package/dist/search/composables.d.cts +31 -0
  292. package/dist/search/composables.d.ts +31 -0
  293. package/dist/search.cjs +17 -0
  294. package/dist/search.cjs.map +1 -0
  295. package/dist/search.d.cts +10 -0
  296. package/dist/search.d.ts +10 -0
  297. package/dist/search.js +11 -0
  298. package/dist/search.js.map +1 -0
  299. package/dist/selection/SelectionClipboard.vue.d.cts +24 -0
  300. package/dist/selection/SelectionClipboard.vue.d.ts +24 -0
  301. package/dist/selection/SelectionHandles.vue.d.cts +8 -0
  302. package/dist/selection/SelectionHandles.vue.d.ts +8 -0
  303. package/dist/selection/SelectionLayer.vue.d.cts +3 -0
  304. package/dist/selection/SelectionLayer.vue.d.ts +3 -0
  305. package/dist/selection/SelectionMenu.vue.d.cts +23 -0
  306. package/dist/selection/SelectionMenu.vue.d.ts +23 -0
  307. package/dist/selection/composables.d.cts +24 -0
  308. package/dist/selection/composables.d.ts +24 -0
  309. package/dist/selection.cjs +24 -0
  310. package/dist/selection.cjs.map +1 -0
  311. package/dist/selection.d.cts +16 -0
  312. package/dist/selection.d.ts +16 -0
  313. package/dist/selection.js +15 -0
  314. package/dist/selection.js.map +1 -0
  315. package/dist/shell.cjs +72 -0
  316. package/dist/shell.cjs.map +1 -0
  317. package/dist/shell.d.cts +56 -0
  318. package/dist/shell.d.ts +56 -0
  319. package/dist/shell.js +67 -0
  320. package/dist/shell.js.map +1 -0
  321. package/dist/signature/composables.d.cts +39 -0
  322. package/dist/signature/composables.d.ts +39 -0
  323. package/dist/signature.cjs +16 -0
  324. package/dist/signature.cjs.map +1 -0
  325. package/dist/signature.d.cts +15 -0
  326. package/dist/signature.d.ts +15 -0
  327. package/dist/signature.js +10 -0
  328. package/dist/signature.js.map +1 -0
  329. package/dist/stage/PageSurface.vue.d.cts +29 -0
  330. package/dist/stage/PageSurface.vue.d.ts +29 -0
  331. package/dist/stage/Scrollbar.vue.d.cts +32 -0
  332. package/dist/stage/Scrollbar.vue.d.ts +32 -0
  333. package/dist/stage/Stage.vue.d.cts +44 -0
  334. package/dist/stage/Stage.vue.d.ts +44 -0
  335. package/dist/stage/StageScope.vue.d.cts +17 -0
  336. package/dist/stage/StageScope.vue.d.ts +17 -0
  337. package/dist/stage/composables.d.cts +41 -0
  338. package/dist/stage/composables.d.ts +41 -0
  339. package/dist/stage/scope.d.cts +12 -0
  340. package/dist/stage/scope.d.ts +12 -0
  341. package/dist/stage.cjs +21 -0
  342. package/dist/stage.cjs.map +1 -0
  343. package/dist/stage.d.cts +17 -0
  344. package/dist/stage.d.ts +17 -0
  345. package/dist/stage.js +15 -0
  346. package/dist/stage.js.map +1 -0
  347. package/dist/stamp.cjs +68 -0
  348. package/dist/stamp.cjs.map +1 -0
  349. package/dist/stamp.d.cts +61 -0
  350. package/dist/stamp.d.ts +61 -0
  351. package/dist/stamp.js +61 -0
  352. package/dist/stamp.js.map +1 -0
  353. package/dist/state-DZg8q3v6.js +52 -0
  354. package/dist/state-DZg8q3v6.js.map +1 -0
  355. package/dist/state-M22NDJQo.cjs +51 -0
  356. package/dist/state-M22NDJQo.cjs.map +1 -0
  357. package/dist/state.d.cts +32 -0
  358. package/dist/state.d.ts +32 -0
  359. package/dist/strip-BSDB39Xh.cjs +743 -0
  360. package/dist/strip-BSDB39Xh.cjs.map +1 -0
  361. package/dist/strip-C3wLonKB.js +744 -0
  362. package/dist/strip-C3wLonKB.js.map +1 -0
  363. package/dist/surface-box-B9oa4YoG.js +12 -0
  364. package/dist/surface-box-B9oa4YoG.js.map +1 -0
  365. package/dist/surface-box-C7EvUOXp.cjs +11 -0
  366. package/dist/surface-box-C7EvUOXp.cjs.map +1 -0
  367. package/dist/theme.d.cts +13 -0
  368. package/dist/theme.d.ts +13 -0
  369. package/dist/toolbar/DefaultCollapsed.vue.d.cts +9 -0
  370. package/dist/toolbar/DefaultCollapsed.vue.d.ts +9 -0
  371. package/dist/toolbar/DefaultCommand.vue.d.cts +8 -0
  372. package/dist/toolbar/DefaultCommand.vue.d.ts +8 -0
  373. package/dist/toolbar/DefaultGroupTrigger.vue.d.cts +9 -0
  374. package/dist/toolbar/DefaultGroupTrigger.vue.d.ts +9 -0
  375. package/dist/toolbar/DefaultOverflowMenu.vue.d.cts +9 -0
  376. package/dist/toolbar/DefaultOverflowMenu.vue.d.ts +9 -0
  377. package/dist/toolbar/DefaultOverflowTrigger.vue.d.cts +10 -0
  378. package/dist/toolbar/DefaultOverflowTrigger.vue.d.ts +10 -0
  379. package/dist/toolbar/Measured.vue.d.cts +21 -0
  380. package/dist/toolbar/Measured.vue.d.ts +21 -0
  381. package/dist/toolbar/NativeSlotSocket.vue.d.cts +22 -0
  382. package/dist/toolbar/NativeSlotSocket.vue.d.ts +22 -0
  383. package/dist/toolbar/Toolbar.vue.d.cts +82 -0
  384. package/dist/toolbar/Toolbar.vue.d.ts +82 -0
  385. package/dist/toolbar/ToolbarPart.vue.d.cts +42 -0
  386. package/dist/toolbar/ToolbarPart.vue.d.ts +42 -0
  387. package/dist/toolbar/paint.d.cts +3 -0
  388. package/dist/toolbar/paint.d.ts +3 -0
  389. package/dist/toolbar/strip.d.cts +14 -0
  390. package/dist/toolbar/strip.d.ts +14 -0
  391. package/dist/toolbar/views.d.cts +15 -0
  392. package/dist/toolbar/views.d.ts +15 -0
  393. package/dist/toolbar.cjs +27 -0
  394. package/dist/toolbar.cjs.map +1 -0
  395. package/dist/toolbar.d.cts +14 -0
  396. package/dist/toolbar.d.ts +14 -0
  397. package/dist/toolbar.js +12 -0
  398. package/dist/toolbar.js.map +1 -0
  399. package/dist/view-manager.cjs +22 -0
  400. package/dist/view-manager.cjs.map +1 -0
  401. package/dist/view-manager.d.cts +24 -0
  402. package/dist/view-manager.d.ts +24 -0
  403. package/dist/view-manager.js +17 -0
  404. package/dist/view-manager.js.map +1 -0
  405. package/package.json +169 -3
@@ -0,0 +1,52 @@
1
+ import type { MaybeRefOrGetter, Ref } from 'vue';
2
+ import type { CapabilityToken, EventHook } from '@embedpdf/core';
3
+ /**
4
+ * Like {@link useCapability}, but a ref that is null while the token can't
5
+ * resolve: no plugin, no document, or a document that isn't ready yet. It
6
+ * changes when the subtree's document does, so a `watch` on it rebinds.
7
+ */
8
+ export declare function useOptionalCapability<Capability>(token: MaybeRefOrGetter<CapabilityToken<Capability>>): Readonly<Ref<Capability | null>>;
9
+ /**
10
+ * The capability a subtree resolves to, as a ref: the document's while one is
11
+ * ready, else the stand-in for a document plugin. A token no plugin provides
12
+ * throws here, at setup: that is a setup mistake.
13
+ */
14
+ export declare function useCapabilityRef<Capability>(token: MaybeRefOrGetter<CapabilityToken<Capability>>): Readonly<Ref<Capability>>;
15
+ /**
16
+ * A plugin's API for this subtree: `const stage = useCapability(StageToken)`,
17
+ * then `stage.zoomIn()` in a handler or a template. The object stays the same
18
+ * for the component's life and always calls the capability of the document in
19
+ * scope, so it is safe to keep in a closure. A read (`stage.getZoomLevel()`)
20
+ * in a template or a computed updates when its answer changes.
21
+ *
22
+ * Outside a document (none open, not ready yet, or none in scope), a document
23
+ * plugin's members belong to its stand-in: reading one never throws, so chrome
24
+ * renders before the first document opens, and calling one refuses with
25
+ * `PluginError('not-ready')`: a method that returns a promise rejects, the
26
+ * others throw.
27
+ */
28
+ export declare function useCapability<Capability>(token: MaybeRefOrGetter<CapabilityToken<Capability>>): Capability;
29
+ /**
30
+ * A value read from a capability, as a ref. Strict: while the token can't
31
+ * resolve, reading it throws the kernel's reason (`no document`, `document is
32
+ * loading`), for code that knows a document exists, such as anything inside a
33
+ * `<DocumentGate>`. {@link useOptionalSelector} is its total twin.
34
+ */
35
+ export declare function useSelector<Capability, Value>(token: MaybeRefOrGetter<CapabilityToken<Capability>>, select: (capability: Capability) => Value, isEqual?: (left: Value, right: Value) => boolean): Readonly<Ref<Value>>;
36
+ /**
37
+ * Null-safe {@link useSelector}: `fallback` whenever the token can't resolve
38
+ * (no provider, or a document-scoped token with no document). For chrome that
39
+ * stays mounted across the empty workspace (a zoom readout, a mode band). A
40
+ * read through a capability whose document closed a moment ago is `fallback`
41
+ * too.
42
+ */
43
+ export declare function useOptionalSelector<Capability, Value>(token: MaybeRefOrGetter<CapabilityToken<Capability>>, select: (capability: Capability) => Value, fallback: Value, isEqual?: (left: Value, right: Value) => boolean): Readonly<Ref<Value>>;
44
+ /**
45
+ * Subscribe to a capability's {@link EventHook} while the component lives:
46
+ * `useCapabilityEvent(ActionsToken, (actions) => actions.onExecuted, handler)`.
47
+ * Events carry occurrences, never state (a late subscriber that needs the
48
+ * current value uses a selector). It subscribes to the document in scope, again
49
+ * when that document changes, and ends with the component. Null-safe: with no
50
+ * plugin or no document there is no subscription.
51
+ */
52
+ export declare function useCapabilityEvent<Capability, Event>(token: MaybeRefOrGetter<CapabilityToken<Capability>>, select: (capability: Capability) => EventHook<Event>, handler: (event: Event) => void): void;
@@ -0,0 +1,42 @@
1
+ import type { DocumentsCapability, EventHook, PageInfo, ViewerSettings } from '@embedpdf/core';
2
+ import type { Ref } from 'vue';
3
+ import type { FieldRefs } from './refs.cjs';
4
+ /**
5
+ * The documents API: open, close, unlock, download, and the tabs. Inside a
6
+ * `<DocumentScope>`, the calls that leave out the document use that one, so
7
+ * `download()` without an id downloads the document in scope. The object never
8
+ * changes, so it's safe to keep in a closure. What to show comes from
9
+ * `useDocument()` and `useDocumentsState()`.
10
+ */
11
+ export declare function useDocuments(): DocumentsCapability;
12
+ /**
13
+ * The document this component talks to: the one its `<DocumentScope>` names,
14
+ * or else the active one. Its `id`, `name`, `status`, `pageCount`,
15
+ * `hasUnsavedChanges`, and why it's locked or failed, as refs. With no
16
+ * document, an empty one that reads as still opening. With a selector, one ref
17
+ * for the value it picks.
18
+ */
19
+ export declare const useDocument: import("../index.cjs").StateComposable<import("@embedpdf/core").DocumentInfo>;
20
+ /**
21
+ * Every open document, in tab order (loading, locked and failed ones too), and
22
+ * the active one's id, as refs. With a selector, one ref for the value it picks.
23
+ */
24
+ export declare const useDocumentsState: import("../index.cjs").StateComposable<import("@embedpdf/core").DocumentsState>;
25
+ /** Subscribe to one documents event while the component lives: `useDocumentsEvent((documents) => documents.onOpened, handler)`. */
26
+ export declare function useDocumentsEvent<Event>(select: (documents: DocumentsCapability) => EventHook<Event>, handler: (event: Event) => void): void;
27
+ /**
28
+ * The pages of the document this component talks to, in order: each with its
29
+ * `ref`, `index`, `label`, size and rotation. Needs no Stage, so a thumbnail
30
+ * list or a page picker works anywhere. The same array until a page is added,
31
+ * removed, moved or rotated; empty with no document.
32
+ */
33
+ export declare function usePageList(): Readonly<Ref<readonly PageInfo[]>>;
34
+ /**
35
+ * The viewer's own settings (`<Viewer :identity :scope :accent :page>`), as
36
+ * refs, or one ref for the value `select` picks: the accent every part without
37
+ * a color of its own follows, and how pages look. What paints a page or an
38
+ * accent reads it here, through `paint()` from `@embedpdf/web`, so a CSS
39
+ * variable still wins.
40
+ */
41
+ export declare function useViewerSettings(): FieldRefs<ViewerSettings>;
42
+ export declare function useViewerSettings<Selected>(select: (settings: ViewerSettings) => Selected): Readonly<Ref<Selected>>;
@@ -0,0 +1,42 @@
1
+ import type { DocumentsCapability, EventHook, PageInfo, ViewerSettings } from '@embedpdf/core';
2
+ import type { Ref } from 'vue';
3
+ import type { FieldRefs } from './refs.js';
4
+ /**
5
+ * The documents API: open, close, unlock, download, and the tabs. Inside a
6
+ * `<DocumentScope>`, the calls that leave out the document use that one, so
7
+ * `download()` without an id downloads the document in scope. The object never
8
+ * changes, so it's safe to keep in a closure. What to show comes from
9
+ * `useDocument()` and `useDocumentsState()`.
10
+ */
11
+ export declare function useDocuments(): DocumentsCapability;
12
+ /**
13
+ * The document this component talks to: the one its `<DocumentScope>` names,
14
+ * or else the active one. Its `id`, `name`, `status`, `pageCount`,
15
+ * `hasUnsavedChanges`, and why it's locked or failed, as refs. With no
16
+ * document, an empty one that reads as still opening. With a selector, one ref
17
+ * for the value it picks.
18
+ */
19
+ export declare const useDocument: import("../index.js").StateComposable<import("@embedpdf/core").DocumentInfo>;
20
+ /**
21
+ * Every open document, in tab order (loading, locked and failed ones too), and
22
+ * the active one's id, as refs. With a selector, one ref for the value it picks.
23
+ */
24
+ export declare const useDocumentsState: import("../index.js").StateComposable<import("@embedpdf/core").DocumentsState>;
25
+ /** Subscribe to one documents event while the component lives: `useDocumentsEvent((documents) => documents.onOpened, handler)`. */
26
+ export declare function useDocumentsEvent<Event>(select: (documents: DocumentsCapability) => EventHook<Event>, handler: (event: Event) => void): void;
27
+ /**
28
+ * The pages of the document this component talks to, in order: each with its
29
+ * `ref`, `index`, `label`, size and rotation. Needs no Stage, so a thumbnail
30
+ * list or a page picker works anywhere. The same array until a page is added,
31
+ * removed, moved or rotated; empty with no document.
32
+ */
33
+ export declare function usePageList(): Readonly<Ref<readonly PageInfo[]>>;
34
+ /**
35
+ * The viewer's own settings (`<Viewer :identity :scope :accent :page>`), as
36
+ * refs, or one ref for the value `select` picks: the accent every part without
37
+ * a color of its own follows, and how pages look. What paints a page or an
38
+ * accent reads it here, through `paint()` from `@embedpdf/web`, so a CSS
39
+ * variable still wins.
40
+ */
41
+ export declare function useViewerSettings(): FieldRefs<ViewerSettings>;
42
+ export declare function useViewerSettings<Selected>(select: (settings: ViewerSettings) => Selected): Readonly<Ref<Selected>>;
@@ -0,0 +1,36 @@
1
+ import type { MaybeRefOrGetter, Ref } from 'vue';
2
+ import type { Kernel } from '@embedpdf/core';
3
+ /** What `<Viewer>` gives the components inside it. */
4
+ export interface ViewerBinding {
5
+ /** The kernel, from the moment `<Viewer>` creates it; null before that. */
6
+ readonly kernel: Kernel | null;
7
+ /** Read inside a computed: the computed runs again on every change the kernel announces. */
8
+ track(): void;
9
+ }
10
+ /** Installed by `<Viewer>`, not by app code. */
11
+ export declare function provideViewer(binding: ViewerBinding): void;
12
+ /** The binding of the nearest `<Viewer>`, with its kernel. */
13
+ export declare function useViewerBinding(): ViewerBinding & {
14
+ readonly kernel: Kernel;
15
+ };
16
+ /** The kernel of the nearest `<Viewer>`. */
17
+ export declare function useKernel(): Kernel;
18
+ /**
19
+ * A value derived from the kernel, as a ref. `select` runs again on every
20
+ * kernel change and on a change to any ref it reads; the ref keeps its value
21
+ * while `isEqual` says the new one is the same, so nothing that reads it
22
+ * updates.
23
+ */
24
+ export declare function useKernelValue<Value>(select: (kernel: Kernel) => Value, isEqual?: (left: Value, right: Value) => boolean): Readonly<Ref<Value>>;
25
+ /** Installed by `<DocumentScope>`: the document the subtree talks to. */
26
+ export declare function provideDocumentScope(id: MaybeRefOrGetter<string | null>): void;
27
+ /**
28
+ * The document the nearest `<DocumentScope>` binds this subtree to, or null
29
+ * when it follows the active document. For readers that pass it to
30
+ * `kernel.tryCapability`; UI that needs the id itself uses {@link useDocumentId}.
31
+ */
32
+ export declare function useDocumentScope(): Readonly<Ref<string | null>>;
33
+ /** The active document's id, or null with none open. */
34
+ export declare function useActiveDocumentId(): Readonly<Ref<string | null>>;
35
+ /** The document id for this subtree: the nearest `<DocumentScope>`, else the active document. */
36
+ export declare function useDocumentId(): Readonly<Ref<string | null>>;
@@ -0,0 +1,36 @@
1
+ import type { MaybeRefOrGetter, Ref } from 'vue';
2
+ import type { Kernel } from '@embedpdf/core';
3
+ /** What `<Viewer>` gives the components inside it. */
4
+ export interface ViewerBinding {
5
+ /** The kernel, from the moment `<Viewer>` creates it; null before that. */
6
+ readonly kernel: Kernel | null;
7
+ /** Read inside a computed: the computed runs again on every change the kernel announces. */
8
+ track(): void;
9
+ }
10
+ /** Installed by `<Viewer>`, not by app code. */
11
+ export declare function provideViewer(binding: ViewerBinding): void;
12
+ /** The binding of the nearest `<Viewer>`, with its kernel. */
13
+ export declare function useViewerBinding(): ViewerBinding & {
14
+ readonly kernel: Kernel;
15
+ };
16
+ /** The kernel of the nearest `<Viewer>`. */
17
+ export declare function useKernel(): Kernel;
18
+ /**
19
+ * A value derived from the kernel, as a ref. `select` runs again on every
20
+ * kernel change and on a change to any ref it reads; the ref keeps its value
21
+ * while `isEqual` says the new one is the same, so nothing that reads it
22
+ * updates.
23
+ */
24
+ export declare function useKernelValue<Value>(select: (kernel: Kernel) => Value, isEqual?: (left: Value, right: Value) => boolean): Readonly<Ref<Value>>;
25
+ /** Installed by `<DocumentScope>`: the document the subtree talks to. */
26
+ export declare function provideDocumentScope(id: MaybeRefOrGetter<string | null>): void;
27
+ /**
28
+ * The document the nearest `<DocumentScope>` binds this subtree to, or null
29
+ * when it follows the active document. For readers that pass it to
30
+ * `kernel.tryCapability`; UI that needs the id itself uses {@link useDocumentId}.
31
+ */
32
+ export declare function useDocumentScope(): Readonly<Ref<string | null>>;
33
+ /** The active document's id, or null with none open. */
34
+ export declare function useActiveDocumentId(): Readonly<Ref<string | null>>;
35
+ /** The document id for this subtree: the nearest `<DocumentScope>`, else the active document. */
36
+ export declare function useDocumentId(): Readonly<Ref<string | null>>;
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'vue';
2
+ import type { PageTransform } from '@embedpdf/core-geometry';
3
+ import type { PageViewDemand } from '@embedpdf/plugin-render/contract';
4
+ import type { PageContext } from '@embedpdf/web';
5
+ export { makePageContext } from '@embedpdf/web';
6
+ /** The page context. Its members are documented on `PageContext` in `@embedpdf/web`. */
7
+ export type PageContextValue = PageContext<PageTransform, PageViewDemand>;
8
+ /** Installed by page surfaces (`<Stage>` pages), not by app code. */
9
+ export declare function providePage(page: Readonly<Ref<PageContextValue>>): void;
10
+ /**
11
+ * The page this component is drawn on, as a ref: inside a `<Stage>`'s
12
+ * `#page` or `#page-chrome` slot. The ref is the same for the page's life;
13
+ * its value changes when the page's geometry does (a zoom, a rotation).
14
+ */
15
+ export declare function usePage(): Readonly<Ref<PageContextValue>>;
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'vue';
2
+ import type { PageTransform } from '@embedpdf/core-geometry';
3
+ import type { PageViewDemand } from '@embedpdf/plugin-render/contract';
4
+ import type { PageContext } from '@embedpdf/web';
5
+ export { makePageContext } from '@embedpdf/web';
6
+ /** The page context. Its members are documented on `PageContext` in `@embedpdf/web`. */
7
+ export type PageContextValue = PageContext<PageTransform, PageViewDemand>;
8
+ /** Installed by page surfaces (`<Stage>` pages), not by app code. */
9
+ export declare function providePage(page: Readonly<Ref<PageContextValue>>): void;
10
+ /**
11
+ * The page this component is drawn on, as a ref: inside a `<Stage>`'s
12
+ * `#page` or `#page-chrome` slot. The ref is the same for the page's life;
13
+ * its value changes when the page's geometry does (a zoom, a rotation).
14
+ */
15
+ export declare function usePage(): Readonly<Ref<PageContextValue>>;
@@ -0,0 +1,12 @@
1
+ import type { Ref } from 'vue';
2
+ /** One read-only ref per field of `Value`. */
3
+ export type FieldRefs<Value extends object> = {
4
+ readonly [Key in keyof Value]-?: Readonly<Ref<Value[Key]>>;
5
+ };
6
+ /**
7
+ * One computed ref per field of `whole`. Each field updates only when its own
8
+ * value changes. The fields are the ones `whole` has now (`keys` names them
9
+ * when they are known without a value): records read this way keep their
10
+ * fields.
11
+ */
12
+ export declare function fieldRefs<Value extends object>(whole: Readonly<Ref<Value>>, keys?: readonly string[]): FieldRefs<Value>;
@@ -0,0 +1,12 @@
1
+ import type { Ref } from 'vue';
2
+ /** One read-only ref per field of `Value`. */
3
+ export type FieldRefs<Value extends object> = {
4
+ readonly [Key in keyof Value]-?: Readonly<Ref<Value[Key]>>;
5
+ };
6
+ /**
7
+ * One computed ref per field of `whole`. Each field updates only when its own
8
+ * value changes. The fields are the ones `whole` has now (`keys` names them
9
+ * when they are known without a value): records read this way keep their
10
+ * fields.
11
+ */
12
+ export declare function fieldRefs<Value extends object>(whole: Readonly<Ref<Value>>, keys?: readonly string[]): FieldRefs<Value>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A page surface's boxes (`pageSurfaceLayout` from `@embedpdf/web`) as Vue style values, for
3
+ * the Stage's pages and `<PageView>`: Vue adds no unit to a number, so each is in pixels here.
4
+ */
5
+ import type { SurfaceBox } from '@embedpdf/web';
6
+ /** `left`, `top`, `width` and `height` in pixels. */
7
+ export declare function pixelBox(box: SurfaceBox): {
8
+ left: string;
9
+ top: string;
10
+ width: string;
11
+ height: string;
12
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A page surface's boxes (`pageSurfaceLayout` from `@embedpdf/web`) as Vue style values, for
3
+ * the Stage's pages and `<PageView>`: Vue adds no unit to a number, so each is in pixels here.
4
+ */
5
+ import type { SurfaceBox } from '@embedpdf/web';
6
+ /** `left`, `top`, `width` and `height` in pixels. */
7
+ export declare function pixelBox(box: SurfaceBox): {
8
+ left: string;
9
+ top: string;
10
+ width: string;
11
+ height: string;
12
+ };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const core = require("@embedpdf/core");
4
+ const web = require("@embedpdf/web");
5
+ const DocumentScope_vue_vue_type_script_setup_true_lang = require("./DocumentScope.vue_vue_type_script_setup_true_lang-loLSm4lV.cjs");
6
+ const capabilities = require("./capabilities-DVNJmgy7.cjs");
7
+ const documents = require("./documents-TQ1fMdWI.cjs");
8
+ const page = require("./page-Doy4_Sdz.cjs");
9
+ const state = require("./state-M22NDJQo.cjs");
10
+ Object.defineProperty(exports, "makePageContext", {
11
+ enumerable: true,
12
+ get: () => web.makePageContext
13
+ });
14
+ Object.defineProperty(exports, "mountWebFont", {
15
+ enumerable: true,
16
+ get: () => web.mountWebFont
17
+ });
18
+ Object.defineProperty(exports, "saveFile", {
19
+ enumerable: true,
20
+ get: () => web.saveFile
21
+ });
22
+ exports.DocumentGate = DocumentScope_vue_vue_type_script_setup_true_lang._sfc_main;
23
+ exports.DocumentScope = DocumentScope_vue_vue_type_script_setup_true_lang._sfc_main$1;
24
+ exports.KernelProvider = DocumentScope_vue_vue_type_script_setup_true_lang._sfc_main$2;
25
+ exports.Viewer = DocumentScope_vue_vue_type_script_setup_true_lang._sfc_main$3;
26
+ exports.epdfTheme = DocumentScope_vue_vue_type_script_setup_true_lang.epdfTheme;
27
+ exports.useActiveDocumentId = capabilities.useActiveDocumentId;
28
+ exports.useCapability = capabilities.useCapability;
29
+ exports.useCapabilityEvent = capabilities.useCapabilityEvent;
30
+ exports.useCapabilityRef = capabilities.useCapabilityRef;
31
+ exports.useDocumentId = capabilities.useDocumentId;
32
+ exports.useDocumentScope = capabilities.useDocumentScope;
33
+ exports.useKernel = capabilities.useKernel;
34
+ exports.useKernelValue = capabilities.useKernelValue;
35
+ exports.useOptionalCapability = capabilities.useOptionalCapability;
36
+ exports.useOptionalSelector = capabilities.useOptionalSelector;
37
+ exports.useSelector = capabilities.useSelector;
38
+ exports.useDocument = documents.useDocument;
39
+ exports.useDocuments = documents.useDocuments;
40
+ exports.useDocumentsEvent = documents.useDocumentsEvent;
41
+ exports.useDocumentsState = documents.useDocumentsState;
42
+ exports.usePageList = documents.usePageList;
43
+ exports.useViewerSettings = documents.useViewerSettings;
44
+ exports.providePage = page.providePage;
45
+ exports.usePage = page.usePage;
46
+ exports.fieldRefs = state.fieldRefs;
47
+ Object.keys(core).forEach((k) => {
48
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
49
+ enumerable: true,
50
+ get: () => core[k]
51
+ });
52
+ });
53
+ //# sourceMappingURL=runtime.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @embedpdf/vue/runtime: the generic binding.
3
+ *
4
+ * `<Viewer>` owns the kernel and binds its one change stream to Vue; the
5
+ * composables resolve capabilities (document-scoped ones against the active
6
+ * or `<DocumentScope>`-given document, with a stand-in while there is none) and
7
+ * read state as refs; the page context is the seam every layer draws through.
8
+ * Every plugin binding rides on this.
9
+ */
10
+ export * from '@embedpdf/core';
11
+ export { mountWebFont, saveFile } from '@embedpdf/web';
12
+ export { epdfTheme } from './theme.cjs';
13
+ export type { EpdfTheme } from './theme.cjs';
14
+ export { default as Viewer } from './runtime/Viewer.vue.cjs';
15
+ export { default as KernelProvider } from './runtime/KernelProvider.vue.cjs';
16
+ export { default as DocumentGate } from './runtime/DocumentGate.vue.cjs';
17
+ export { default as DocumentScope } from './runtime/DocumentScope.vue.cjs';
18
+ export { useActiveDocumentId, useDocumentId, useDocumentScope, useKernel, useKernelValue, } from './runtime/kernel.cjs';
19
+ export { useCapability, useCapabilityEvent, useCapabilityRef, useOptionalCapability, useOptionalSelector, useSelector, } from './runtime/capabilities.cjs';
20
+ export { useDocument, useDocuments, useDocumentsEvent, useDocumentsState, usePageList, useViewerSettings, } from './runtime/documents.cjs';
21
+ export { makePageContext, providePage, usePage } from './runtime/page.cjs';
22
+ export type { PageContextValue } from './runtime/page.cjs';
23
+ export { fieldRefs } from './runtime/refs.cjs';
24
+ export type { FieldRefs } from './runtime/refs.cjs';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @embedpdf/vue/runtime: the generic binding.
3
+ *
4
+ * `<Viewer>` owns the kernel and binds its one change stream to Vue; the
5
+ * composables resolve capabilities (document-scoped ones against the active
6
+ * or `<DocumentScope>`-given document, with a stand-in while there is none) and
7
+ * read state as refs; the page context is the seam every layer draws through.
8
+ * Every plugin binding rides on this.
9
+ */
10
+ export * from '@embedpdf/core';
11
+ export { mountWebFont, saveFile } from '@embedpdf/web';
12
+ export { epdfTheme } from './theme.js';
13
+ export type { EpdfTheme } from './theme.js';
14
+ export { default as Viewer } from './runtime/Viewer.vue.js';
15
+ export { default as KernelProvider } from './runtime/KernelProvider.vue.js';
16
+ export { default as DocumentGate } from './runtime/DocumentGate.vue.js';
17
+ export { default as DocumentScope } from './runtime/DocumentScope.vue.js';
18
+ export { useActiveDocumentId, useDocumentId, useDocumentScope, useKernel, useKernelValue, } from './runtime/kernel.js';
19
+ export { useCapability, useCapabilityEvent, useCapabilityRef, useOptionalCapability, useOptionalSelector, useSelector, } from './runtime/capabilities.js';
20
+ export { useDocument, useDocuments, useDocumentsEvent, useDocumentsState, usePageList, useViewerSettings, } from './runtime/documents.js';
21
+ export { makePageContext, providePage, usePage } from './runtime/page.js';
22
+ export type { PageContextValue } from './runtime/page.js';
23
+ export { fieldRefs } from './runtime/refs.js';
24
+ export type { FieldRefs } from './runtime/refs.js';
@@ -0,0 +1,38 @@
1
+ export * from "@embedpdf/core";
2
+ import { makePageContext, mountWebFont, saveFile } from "@embedpdf/web";
3
+ import { _, a, b, c, e } from "./DocumentScope.vue_vue_type_script_setup_true_lang-CtTu1FGX.js";
4
+ import { u, a as a2, b as b2, c as c2, d, e as e2, f, g, h, i, j } from "./capabilities-C7YzgPCX.js";
5
+ import { u as u2, a as a3, b as b3, c as c3, d as d2, e as e3 } from "./documents-DUu5H4yH.js";
6
+ import { p, u as u3 } from "./page-D9XIuLSj.js";
7
+ import { f as f2 } from "./state-DZg8q3v6.js";
8
+ export {
9
+ _ as DocumentGate,
10
+ a as DocumentScope,
11
+ b as KernelProvider,
12
+ c as Viewer,
13
+ e as epdfTheme,
14
+ f2 as fieldRefs,
15
+ makePageContext,
16
+ mountWebFont,
17
+ p as providePage,
18
+ saveFile,
19
+ u as useActiveDocumentId,
20
+ a2 as useCapability,
21
+ b2 as useCapabilityEvent,
22
+ c2 as useCapabilityRef,
23
+ u2 as useDocument,
24
+ d as useDocumentId,
25
+ e2 as useDocumentScope,
26
+ a3 as useDocuments,
27
+ b3 as useDocumentsEvent,
28
+ c3 as useDocumentsState,
29
+ f as useKernel,
30
+ g as useKernelValue,
31
+ h as useOptionalCapability,
32
+ i as useOptionalSelector,
33
+ u3 as usePage,
34
+ d2 as usePageList,
35
+ j as useSelector,
36
+ e3 as useViewerSettings
37
+ };
38
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const contract = require("@embedpdf/plugin-stage/contract");
4
+ const StageTokenKey = Symbol("embedpdf stage token");
5
+ function provideStageToken(token) {
6
+ vue.provide(
7
+ StageTokenKey,
8
+ vue.computed(() => vue.toValue(token))
9
+ );
10
+ }
11
+ function useStageToken(explicit) {
12
+ const scoped = vue.inject(StageTokenKey, null);
13
+ return vue.computed(() => vue.toValue(explicit) ?? (scoped == null ? void 0 : scoped.value) ?? contract.StageToken);
14
+ }
15
+ exports.provideStageToken = provideStageToken;
16
+ exports.useStageToken = useStageToken;
17
+ //# sourceMappingURL=scope-BQA4toWB.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-BQA4toWB.cjs","sources":["../src/stage/scope.ts"],"sourcesContent":["/**\n * Which stage lens a subtree binds to, so the stage composables and the\n * stage-bound chrome (`<Scrollbar>`, selection handles) need no token argument.\n * `<Stage>` provides its own lens to its pages and overlay; an app wraps a\n * second lens (a thumbnail rail) in `<StageScope :token>`. An explicit token\n * argument still wins everywhere.\n */\nimport { computed, inject, provide, toValue } from 'vue';\nimport type { InjectionKey, MaybeRefOrGetter, Ref } from 'vue';\nimport type { CapabilityToken } from '@embedpdf/core';\nimport { StageToken } from '@embedpdf/plugin-stage/contract';\nimport type { StageCapability } from '@embedpdf/plugin-stage/contract';\n\n/** Which stage lens to bind to: the main `StageToken`, or the token of a second view. */\nexport type StageTokenProp = CapabilityToken<StageCapability>;\n\nconst StageTokenKey: InjectionKey<Readonly<Ref<StageTokenProp>>> = Symbol('embedpdf stage token');\n\n/** Bind this subtree to a stage lens: what `<Stage>` and `<StageScope>` do. */\nexport function provideStageToken(token: MaybeRefOrGetter<StageTokenProp>): void {\n provide(\n StageTokenKey,\n computed(() => toValue(token)),\n );\n}\n\n/**\n * The lens a stage composable binds to: the explicit argument, else the\n * nearest `<StageScope>` / `<Stage>`, else the main lens.\n */\nexport function useStageToken(\n explicit?: MaybeRefOrGetter<StageTokenProp | undefined>,\n): Readonly<Ref<StageTokenProp>> {\n const scoped = inject(StageTokenKey, null);\n return computed(() => toValue(explicit) ?? scoped?.value ?? StageToken);\n}\n"],"names":["provide","computed","toValue","inject","StageToken"],"mappings":";;;AAgBA,MAAM,gBAA6D,OAAO,sBAAsB;AAGzF,SAAS,kBAAkB,OAA+C;AAC/EA,MAAAA;AAAAA,IACE;AAAA,IACAC,aAAS,MAAMC,IAAAA,QAAQ,KAAK,CAAC;AAAA,EAAA;AAEjC;AAMO,SAAS,cACd,UAC+B;AAC/B,QAAM,SAASC,IAAAA,OAAO,eAAe,IAAI;AACzC,SAAOF,IAAAA,SAAS,MAAMC,YAAQ,QAAQ,MAAK,iCAAQ,UAASE,mBAAU;AACxE;;;"}
@@ -0,0 +1,18 @@
1
+ import { inject, computed, toValue, provide } from "vue";
2
+ import { StageToken } from "@embedpdf/plugin-stage/contract";
3
+ const StageTokenKey = Symbol("embedpdf stage token");
4
+ function provideStageToken(token) {
5
+ provide(
6
+ StageTokenKey,
7
+ computed(() => toValue(token))
8
+ );
9
+ }
10
+ function useStageToken(explicit) {
11
+ const scoped = inject(StageTokenKey, null);
12
+ return computed(() => toValue(explicit) ?? (scoped == null ? void 0 : scoped.value) ?? StageToken);
13
+ }
14
+ export {
15
+ provideStageToken as p,
16
+ useStageToken as u
17
+ };
18
+ //# sourceMappingURL=scope-BgdCqnYb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-BgdCqnYb.js","sources":["../src/stage/scope.ts"],"sourcesContent":["/**\n * Which stage lens a subtree binds to, so the stage composables and the\n * stage-bound chrome (`<Scrollbar>`, selection handles) need no token argument.\n * `<Stage>` provides its own lens to its pages and overlay; an app wraps a\n * second lens (a thumbnail rail) in `<StageScope :token>`. An explicit token\n * argument still wins everywhere.\n */\nimport { computed, inject, provide, toValue } from 'vue';\nimport type { InjectionKey, MaybeRefOrGetter, Ref } from 'vue';\nimport type { CapabilityToken } from '@embedpdf/core';\nimport { StageToken } from '@embedpdf/plugin-stage/contract';\nimport type { StageCapability } from '@embedpdf/plugin-stage/contract';\n\n/** Which stage lens to bind to: the main `StageToken`, or the token of a second view. */\nexport type StageTokenProp = CapabilityToken<StageCapability>;\n\nconst StageTokenKey: InjectionKey<Readonly<Ref<StageTokenProp>>> = Symbol('embedpdf stage token');\n\n/** Bind this subtree to a stage lens: what `<Stage>` and `<StageScope>` do. */\nexport function provideStageToken(token: MaybeRefOrGetter<StageTokenProp>): void {\n provide(\n StageTokenKey,\n computed(() => toValue(token)),\n );\n}\n\n/**\n * The lens a stage composable binds to: the explicit argument, else the\n * nearest `<StageScope>` / `<Stage>`, else the main lens.\n */\nexport function useStageToken(\n explicit?: MaybeRefOrGetter<StageTokenProp | undefined>,\n): Readonly<Ref<StageTokenProp>> {\n const scoped = inject(StageTokenKey, null);\n return computed(() => toValue(explicit) ?? scoped?.value ?? StageToken);\n}\n"],"names":[],"mappings":";;AAgBA,MAAM,gBAA6D,OAAO,sBAAsB;AAGzF,SAAS,kBAAkB,OAA+C;AAC/E;AAAA,IACE;AAAA,IACA,SAAS,MAAM,QAAQ,KAAK,CAAC;AAAA,EAAA;AAEjC;AAMO,SAAS,cACd,UAC+B;AAC/B,QAAM,SAAS,OAAO,eAAe,IAAI;AACzC,SAAO,SAAS,MAAM,QAAQ,QAAQ,MAAK,iCAAQ,UAAS,UAAU;AACxE;"}
@@ -0,0 +1,17 @@
1
+ import type { SearchHit } from '@embedpdf/plugin-search';
2
+ type __VLS_Props = {
3
+ /**
4
+ * `@hit-click`: makes the matches clickable, and is called with the match
5
+ * someone clicks, for example to make it the active one with
6
+ * `search.goToHit(hit)`. The press still reaches the page, so a drag that
7
+ * starts on a match selects text, and only a click calls it. Without it,
8
+ * matches are only paint and the pointer goes straight through.
9
+ *
10
+ * A prop rather than an emitted event, so the layer knows whether you
11
+ * listen: only then do the matches take the pointer.
12
+ */
13
+ onHitClick?: (hit: SearchHit) => void;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { SearchHit } from '@embedpdf/plugin-search';
2
+ type __VLS_Props = {
3
+ /**
4
+ * `@hit-click`: makes the matches clickable, and is called with the match
5
+ * someone clicks, for example to make it the active one with
6
+ * `search.goToHit(hit)`. The press still reaches the page, so a drag that
7
+ * starts on a match selects text, and only a click calls it. Without it,
8
+ * matches are only paint and the pointer goes straight through.
9
+ *
10
+ * A prop rather than an emitted event, so the layer knows whether you
11
+ * listen: only then do the matches take the pointer.
12
+ */
13
+ onHitClick?: (hit: SearchHit) => void;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import type { MaybeRefOrGetter, Ref } from 'vue';
2
+ import type { SearchCapability, SearchHit } from '@embedpdf/plugin-search';
3
+ import type { EventHook, PageRef } from '@embedpdf/core';
4
+ /** The search API (`search`, `clear`, `nextHit`, `goToHit`, …) for your chrome. The object never changes. */
5
+ export declare function useSearch(): SearchCapability;
6
+ /** Subscribe to one search event while the component lives: `useSearchEvent((search) => search.onCompleted, handler)`. */
7
+ export declare function useSearchEvent<Event>(select: (search: SearchCapability) => EventHook<Event>, handler: (event: Event) => void): void;
8
+ /**
9
+ * The search's state as refs: the query, status, count, active match, progress
10
+ * and error (the page's State table, declared once in `searchState`). With a
11
+ * selector, one ref that updates only when the value it picks changes.
12
+ */
13
+ export declare const useSearchState: import("../index.cjs").StateComposable<{
14
+ query: import("@embedpdf/plugin-search").SearchQuery | null;
15
+ status: import("@embedpdf/plugin-search").SearchStatus;
16
+ hitCount: number;
17
+ activeHitIndex: number;
18
+ activeHit: SearchHit | null;
19
+ progress: import("@embedpdf/plugin-search").SearchProgress;
20
+ error: import("@embedpdf/core").PluginErrorInfo | null;
21
+ }>;
22
+ /** The search settings (`reveal`, `highlight`), with or without a document, as refs. Takes a selector. */
23
+ export declare const useSearchSettings: import("../index.cjs").SettingsComposable<import("@embedpdf/plugin-search").SearchSettings & object>;
24
+ /**
25
+ * Every match found so far, or one page's (its ref or index; a getter to
26
+ * follow a prop), as a ref: for a results list or a count per thumbnail. The
27
+ * plugin hands out the same array until matches land on what it covers, so
28
+ * the ref updates only then. Empty without a document, and for a page that
29
+ * isn't in the document.
30
+ */
31
+ export declare function useSearchHits(page?: MaybeRefOrGetter<PageRef | number | undefined>): Readonly<Ref<readonly SearchHit[]>>;
@@ -0,0 +1,31 @@
1
+ import type { MaybeRefOrGetter, Ref } from 'vue';
2
+ import type { SearchCapability, SearchHit } from '@embedpdf/plugin-search';
3
+ import type { EventHook, PageRef } from '@embedpdf/core';
4
+ /** The search API (`search`, `clear`, `nextHit`, `goToHit`, …) for your chrome. The object never changes. */
5
+ export declare function useSearch(): SearchCapability;
6
+ /** Subscribe to one search event while the component lives: `useSearchEvent((search) => search.onCompleted, handler)`. */
7
+ export declare function useSearchEvent<Event>(select: (search: SearchCapability) => EventHook<Event>, handler: (event: Event) => void): void;
8
+ /**
9
+ * The search's state as refs: the query, status, count, active match, progress
10
+ * and error (the page's State table, declared once in `searchState`). With a
11
+ * selector, one ref that updates only when the value it picks changes.
12
+ */
13
+ export declare const useSearchState: import("../index.js").StateComposable<{
14
+ query: import("@embedpdf/plugin-search").SearchQuery | null;
15
+ status: import("@embedpdf/plugin-search").SearchStatus;
16
+ hitCount: number;
17
+ activeHitIndex: number;
18
+ activeHit: SearchHit | null;
19
+ progress: import("@embedpdf/plugin-search").SearchProgress;
20
+ error: import("@embedpdf/core").PluginErrorInfo | null;
21
+ }>;
22
+ /** The search settings (`reveal`, `highlight`), with or without a document, as refs. Takes a selector. */
23
+ export declare const useSearchSettings: import("../index.js").SettingsComposable<import("@embedpdf/plugin-search").SearchSettings & object>;
24
+ /**
25
+ * Every match found so far, or one page's (its ref or index; a getter to
26
+ * follow a prop), as a ref: for a results list or a count per thumbnail. The
27
+ * plugin hands out the same array until matches land on what it covers, so
28
+ * the ref updates only then. Empty without a document, and for a page that
29
+ * isn't in the document.
30
+ */
31
+ export declare function useSearchHits(page?: MaybeRefOrGetter<PageRef | number | undefined>): Readonly<Ref<readonly SearchHit[]>>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const pluginSearch = require("@embedpdf/plugin-search");
4
+ const SearchLayer_vue_vue_type_script_setup_true_lang = require("./SearchLayer.vue_vue_type_script_setup_true_lang-CQozZCvB.cjs");
5
+ exports.SearchLayer = SearchLayer_vue_vue_type_script_setup_true_lang._sfc_main;
6
+ exports.useSearch = SearchLayer_vue_vue_type_script_setup_true_lang.useSearch;
7
+ exports.useSearchEvent = SearchLayer_vue_vue_type_script_setup_true_lang.useSearchEvent;
8
+ exports.useSearchHits = SearchLayer_vue_vue_type_script_setup_true_lang.useSearchHits;
9
+ exports.useSearchSettings = SearchLayer_vue_vue_type_script_setup_true_lang.useSearchSettings;
10
+ exports.useSearchState = SearchLayer_vue_vue_type_script_setup_true_lang.useSearchState;
11
+ Object.keys(pluginSearch).forEach((k) => {
12
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
13
+ enumerable: true,
14
+ get: () => pluginSearch[k]
15
+ });
16
+ });
17
+ //# sourceMappingURL=search.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}