@embedpdf/vue 0.0.0-stage → 3.0.0-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +192 -0
- package/README.md +258 -2
- package/dist/Anchored.vue_vue_type_script_setup_true_lang-BEImlFso.cjs +124 -0
- package/dist/Anchored.vue_vue_type_script_setup_true_lang-BEImlFso.cjs.map +1 -0
- package/dist/Anchored.vue_vue_type_script_setup_true_lang-Brhh5jyF.js +125 -0
- package/dist/Anchored.vue_vue_type_script_setup_true_lang-Brhh5jyF.js.map +1 -0
- package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-BwtHXw73.cjs +20 -0
- package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-BwtHXw73.cjs.map +1 -0
- package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-Ulkr3a6R.js +21 -0
- package/dist/AnchoredScope.vue_vue_type_script_setup_true_lang-Ulkr3a6R.js.map +1 -0
- package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-C-7yeEGh.js +192 -0
- package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-C-7yeEGh.js.map +1 -0
- package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-czzeUzPl.cjs +191 -0
- package/dist/DocumentScope.vue_vue_type_script_setup_true_lang-czzeUzPl.cjs.map +1 -0
- package/dist/FormLayer.vue_vue_type_script_setup_true_lang-BA0_VwFc.cjs +682 -0
- package/dist/FormLayer.vue_vue_type_script_setup_true_lang-BA0_VwFc.cjs.map +1 -0
- package/dist/FormLayer.vue_vue_type_script_setup_true_lang-DUqft-xs.js +683 -0
- package/dist/FormLayer.vue_vue_type_script_setup_true_lang-DUqft-xs.js.map +1 -0
- package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-C5-eQD34.cjs +174 -0
- package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-C5-eQD34.cjs.map +1 -0
- package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-EzLaOP3g.js +175 -0
- package/dist/LinkLayer.vue_vue_type_script_setup_true_lang-EzLaOP3g.js.map +1 -0
- package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js +33 -0
- package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js.map +1 -0
- package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-Cw29c8Oa.cjs +32 -0
- package/dist/PagePointerSource.vue_vue_type_script_setup_true_lang-Cw29c8Oa.cjs.map +1 -0
- package/dist/PageView.vue_vue_type_script_setup_true_lang-CjrpumX2.cjs +151 -0
- package/dist/PageView.vue_vue_type_script_setup_true_lang-CjrpumX2.cjs.map +1 -0
- package/dist/PageView.vue_vue_type_script_setup_true_lang-O4AFc0_R.js +152 -0
- package/dist/PageView.vue_vue_type_script_setup_true_lang-O4AFc0_R.js.map +1 -0
- package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-DrOORC1H.cjs +480 -0
- package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-DrOORC1H.cjs.map +1 -0
- package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-HbCryx1B.js +481 -0
- package/dist/Scrollbar.vue_vue_type_script_setup_true_lang-HbCryx1B.js.map +1 -0
- package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-BlLIPH1B.js +118 -0
- package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-BlLIPH1B.js.map +1 -0
- package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-CQozZCvB.cjs +117 -0
- package/dist/SearchLayer.vue_vue_type_script_setup_true_lang-CQozZCvB.cjs.map +1 -0
- package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C4TUDuyu.js +302 -0
- package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C4TUDuyu.js.map +1 -0
- package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C8T9q6Kb.cjs +301 -0
- package/dist/SelectionClipboard.vue_vue_type_script_setup_true_lang-C8T9q6Kb.cjs.map +1 -0
- package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-D_c-wINF.cjs +38 -0
- package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-D_c-wINF.cjs.map +1 -0
- package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-fOTs4aqv.js +39 -0
- package/dist/SvgShapes.vue_vue_type_script_setup_true_lang-fOTs4aqv.js.map +1 -0
- package/dist/actions.cjs +42 -0
- package/dist/actions.cjs.map +1 -0
- package/dist/actions.d.cts +41 -0
- package/dist/actions.d.ts +41 -0
- package/dist/actions.js +37 -0
- package/dist/actions.js.map +1 -0
- package/dist/anchored/Anchored.vue.d.cts +40 -0
- package/dist/anchored/Anchored.vue.d.ts +40 -0
- package/dist/anchored/AnchoredScope.vue.d.cts +17 -0
- package/dist/anchored/AnchoredScope.vue.d.ts +17 -0
- package/dist/anchored/PlacedAnchored.vue.d.cts +19 -0
- package/dist/anchored/PlacedAnchored.vue.d.ts +19 -0
- package/dist/anchored/projector.d.cts +32 -0
- package/dist/anchored/projector.d.ts +32 -0
- package/dist/anchored.cjs +13 -0
- package/dist/anchored.cjs.map +1 -0
- package/dist/anchored.d.cts +15 -0
- package/dist/anchored.d.ts +15 -0
- package/dist/anchored.js +13 -0
- package/dist/anchored.js.map +1 -0
- package/dist/annotation/AnnotationChrome.vue.d.cts +20 -0
- package/dist/annotation/AnnotationChrome.vue.d.ts +20 -0
- package/dist/annotation/AnnotationDraftMenu.vue.d.cts +26 -0
- package/dist/annotation/AnnotationDraftMenu.vue.d.ts +26 -0
- package/dist/annotation/AnnotationFrame.vue.d.cts +25 -0
- package/dist/annotation/AnnotationFrame.vue.d.ts +25 -0
- package/dist/annotation/AnnotationLayer.vue.d.cts +23 -0
- package/dist/annotation/AnnotationLayer.vue.d.ts +23 -0
- package/dist/annotation/AnnotationLook.vue.d.cts +21 -0
- package/dist/annotation/AnnotationLook.vue.d.ts +21 -0
- package/dist/annotation/AnnotationMenu.vue.d.cts +23 -0
- package/dist/annotation/AnnotationMenu.vue.d.ts +23 -0
- package/dist/annotation/AnnotationRotationBadge.vue.d.cts +26 -0
- package/dist/annotation/AnnotationRotationBadge.vue.d.ts +26 -0
- package/dist/annotation/AnnotationScene.vue.d.cts +7 -0
- package/dist/annotation/AnnotationScene.vue.d.ts +7 -0
- package/dist/annotation/FreeTextBox.vue.d.cts +9 -0
- package/dist/annotation/FreeTextBox.vue.d.ts +9 -0
- package/dist/annotation/NativeDrawing.vue.d.cts +10 -0
- package/dist/annotation/NativeDrawing.vue.d.ts +10 -0
- package/dist/annotation/StampGhost.vue.d.cts +7 -0
- package/dist/annotation/StampGhost.vue.d.ts +7 -0
- package/dist/annotation/composables.d.cts +76 -0
- package/dist/annotation/composables.d.ts +76 -0
- package/dist/annotation/state.d.cts +19 -0
- package/dist/annotation/state.d.ts +19 -0
- package/dist/annotation/text-box.d.cts +28 -0
- package/dist/annotation/text-box.d.ts +28 -0
- package/dist/annotation/types.d.cts +154 -0
- package/dist/annotation/types.d.ts +154 -0
- package/dist/annotation.cjs +29 -0
- package/dist/annotation.cjs.map +1 -0
- package/dist/annotation.d.cts +35 -0
- package/dist/annotation.d.ts +35 -0
- package/dist/annotation.js +23 -0
- package/dist/annotation.js.map +1 -0
- package/dist/attachment.cjs +22 -0
- package/dist/attachment.cjs.map +1 -0
- package/dist/attachment.d.cts +34 -0
- package/dist/attachment.d.ts +34 -0
- package/dist/attachment.js +17 -0
- package/dist/attachment.js.map +1 -0
- package/dist/capabilities-C7YzgPCX.js +164 -0
- package/dist/capabilities-C7YzgPCX.js.map +1 -0
- package/dist/capabilities-DVNJmgy7.cjs +163 -0
- package/dist/capabilities-DVNJmgy7.cjs.map +1 -0
- package/dist/commands.cjs +81 -0
- package/dist/commands.cjs.map +1 -0
- package/dist/commands.d.cts +61 -0
- package/dist/commands.d.ts +61 -0
- package/dist/commands.js +76 -0
- package/dist/commands.js.map +1 -0
- package/dist/composables-BGBsNDf9.cjs +25 -0
- package/dist/composables-BGBsNDf9.cjs.map +1 -0
- package/dist/composables-Bi6QvJpj.cjs +978 -0
- package/dist/composables-Bi6QvJpj.cjs.map +1 -0
- package/dist/composables-DK3lwh38.js +979 -0
- package/dist/composables-DK3lwh38.js.map +1 -0
- package/dist/composables-DwsZdg06.js +26 -0
- package/dist/composables-DwsZdg06.js.map +1 -0
- package/dist/dev-CtMlvxjZ.js +17 -0
- package/dist/dev-CtMlvxjZ.js.map +1 -0
- package/dist/dev-eeIS2B4c.cjs +16 -0
- package/dist/dev-eeIS2B4c.cjs.map +1 -0
- package/dist/dev.d.cts +11 -0
- package/dist/dev.d.ts +11 -0
- package/dist/documents-DUu5H4yH.js +34 -0
- package/dist/documents-DUu5H4yH.js.map +1 -0
- package/dist/documents-TQ1fMdWI.cjs +33 -0
- package/dist/documents-TQ1fMdWI.cjs.map +1 -0
- package/dist/form/ButtonControl.vue.d.cts +11 -0
- package/dist/form/ButtonControl.vue.d.ts +11 -0
- package/dist/form/ComboControl.vue.d.cts +11 -0
- package/dist/form/ComboControl.vue.d.ts +11 -0
- package/dist/form/FieldPictures.vue.d.cts +3 -0
- package/dist/form/FieldPictures.vue.d.ts +3 -0
- package/dist/form/FormFocusRing.vue.d.cts +8 -0
- package/dist/form/FormFocusRing.vue.d.ts +8 -0
- package/dist/form/FormLayer.vue.d.cts +3 -0
- package/dist/form/FormLayer.vue.d.ts +3 -0
- package/dist/form/ListControl.vue.d.cts +11 -0
- package/dist/form/ListControl.vue.d.ts +11 -0
- package/dist/form/NativeListBox.vue.d.cts +27 -0
- package/dist/form/NativeListBox.vue.d.ts +27 -0
- package/dist/form/SignatureControl.vue.d.cts +11 -0
- package/dist/form/SignatureControl.vue.d.ts +11 -0
- package/dist/form/TextControl.vue.d.cts +11 -0
- package/dist/form/TextControl.vue.d.ts +11 -0
- package/dist/form/ToggleControl.vue.d.cts +11 -0
- package/dist/form/ToggleControl.vue.d.ts +11 -0
- package/dist/form/composables.d.cts +52 -0
- package/dist/form/composables.d.ts +52 -0
- package/dist/form/widget-box.d.cts +34 -0
- package/dist/form/widget-box.d.ts +34 -0
- package/dist/form.cjs +17 -0
- package/dist/form.cjs.map +1 -0
- package/dist/form.d.cts +12 -0
- package/dist/form.d.ts +12 -0
- package/dist/form.js +11 -0
- package/dist/form.js.map +1 -0
- package/dist/history.cjs +22 -0
- package/dist/history.cjs.map +1 -0
- package/dist/history.d.cts +31 -0
- package/dist/history.d.ts +31 -0
- package/dist/history.js +17 -0
- package/dist/history.js.map +1 -0
- package/dist/i18n.cjs +29 -0
- package/dist/i18n.cjs.map +1 -0
- package/dist/i18n.d.cts +36 -0
- package/dist/i18n.d.ts +36 -0
- package/dist/i18n.js +24 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.cjs +414 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +234 -0
- package/dist/index.js.map +1 -0
- package/dist/interaction/PagePointerSource.vue.d.cts +3 -0
- package/dist/interaction/PagePointerSource.vue.d.ts +3 -0
- package/dist/interaction.cjs +63 -0
- package/dist/interaction.cjs.map +1 -0
- package/dist/interaction.d.cts +40 -0
- package/dist/interaction.d.ts +40 -0
- package/dist/interaction.js +47 -0
- package/dist/interaction.js.map +1 -0
- package/dist/link/LinkAnchor.vue.d.cts +9 -0
- package/dist/link/LinkAnchor.vue.d.ts +9 -0
- package/dist/link/LinkLayer.vue.d.cts +22 -0
- package/dist/link/LinkLayer.vue.d.ts +22 -0
- package/dist/link/composables.d.cts +29 -0
- package/dist/link/composables.d.ts +29 -0
- package/dist/link.cjs +14 -0
- package/dist/link.cjs.map +1 -0
- package/dist/link.d.cts +11 -0
- package/dist/link.d.ts +11 -0
- package/dist/link.js +8 -0
- package/dist/link.js.map +1 -0
- package/dist/measurement.cjs +43 -0
- package/dist/measurement.cjs.map +1 -0
- package/dist/measurement.d.cts +51 -0
- package/dist/measurement.d.ts +51 -0
- package/dist/measurement.js +38 -0
- package/dist/measurement.js.map +1 -0
- package/dist/metadata.cjs +22 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.cts +31 -0
- package/dist/metadata.d.ts +31 -0
- package/dist/metadata.js +17 -0
- package/dist/metadata.js.map +1 -0
- package/dist/outline.cjs +22 -0
- package/dist/outline.cjs.map +1 -0
- package/dist/outline.d.cts +36 -0
- package/dist/outline.d.ts +36 -0
- package/dist/outline.js +17 -0
- package/dist/outline.js.map +1 -0
- package/dist/page-D9XIuLSj.js +16 -0
- package/dist/page-D9XIuLSj.js.map +1 -0
- package/dist/page-Doy4_Sdz.cjs +15 -0
- package/dist/page-Doy4_Sdz.cjs.map +1 -0
- package/dist/page-edit.cjs +18 -0
- package/dist/page-edit.cjs.map +1 -0
- package/dist/page-edit.d.cts +28 -0
- package/dist/page-edit.d.ts +28 -0
- package/dist/page-edit.js +13 -0
- package/dist/page-edit.js.map +1 -0
- package/dist/page-layers-c-CJYAUO.cjs +30 -0
- package/dist/page-layers-c-CJYAUO.cjs.map +1 -0
- package/dist/page-layers-rlh4-1qr.js +31 -0
- package/dist/page-layers-rlh4-1qr.js.map +1 -0
- package/dist/page-layers.d.cts +21 -0
- package/dist/page-layers.d.ts +21 -0
- package/dist/page-view/PageView.vue.d.cts +42 -0
- package/dist/page-view/PageView.vue.d.ts +42 -0
- package/dist/page-view.cjs +5 -0
- package/dist/page-view.cjs.map +1 -0
- package/dist/page-view.d.cts +10 -0
- package/dist/page-view.d.ts +10 -0
- package/dist/page-view.js +5 -0
- package/dist/page-view.js.map +1 -0
- package/dist/projector-CDZn1kh1.js +32 -0
- package/dist/projector-CDZn1kh1.js.map +1 -0
- package/dist/projector-Cf7879sx.cjs +31 -0
- package/dist/projector-Cf7879sx.cjs.map +1 -0
- package/dist/redaction.cjs +34 -0
- package/dist/redaction.cjs.map +1 -0
- package/dist/redaction.d.cts +44 -0
- package/dist/redaction.d.ts +44 -0
- package/dist/redaction.js +29 -0
- package/dist/redaction.js.map +1 -0
- package/dist/render/RenderLayer.vue.d.cts +23 -0
- package/dist/render/RenderLayer.vue.d.ts +23 -0
- package/dist/render/TileImage.vue.d.cts +13 -0
- package/dist/render/TileImage.vue.d.ts +13 -0
- package/dist/render/TilePlane.vue.d.cts +7 -0
- package/dist/render/TilePlane.vue.d.ts +7 -0
- package/dist/render.cjs +262 -0
- package/dist/render.cjs.map +1 -0
- package/dist/render.d.cts +16 -0
- package/dist/render.d.ts +16 -0
- package/dist/render.js +257 -0
- package/dist/render.js.map +1 -0
- package/dist/runtime/DocumentGate.vue.d.cts +24 -0
- package/dist/runtime/DocumentGate.vue.d.ts +24 -0
- package/dist/runtime/DocumentScope.vue.d.cts +16 -0
- package/dist/runtime/DocumentScope.vue.d.ts +16 -0
- package/dist/runtime/KernelProvider.vue.d.cts +17 -0
- package/dist/runtime/KernelProvider.vue.d.ts +17 -0
- package/dist/runtime/SvgShapes.vue.d.cts +7 -0
- package/dist/runtime/SvgShapes.vue.d.ts +7 -0
- package/dist/runtime/Viewer.vue.d.cts +57 -0
- package/dist/runtime/Viewer.vue.d.ts +57 -0
- package/dist/runtime/capabilities.d.cts +52 -0
- package/dist/runtime/capabilities.d.ts +52 -0
- package/dist/runtime/documents.d.cts +42 -0
- package/dist/runtime/documents.d.ts +42 -0
- package/dist/runtime/kernel.d.cts +36 -0
- package/dist/runtime/kernel.d.ts +36 -0
- package/dist/runtime/page.d.cts +15 -0
- package/dist/runtime/page.d.ts +15 -0
- package/dist/runtime/refs.d.cts +12 -0
- package/dist/runtime/refs.d.ts +12 -0
- package/dist/runtime/surface-box.d.cts +12 -0
- package/dist/runtime/surface-box.d.ts +12 -0
- package/dist/runtime.cjs +53 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +24 -0
- package/dist/runtime.d.ts +24 -0
- package/dist/runtime.js +38 -0
- package/dist/runtime.js.map +1 -0
- package/dist/scope-BQA4toWB.cjs +17 -0
- package/dist/scope-BQA4toWB.cjs.map +1 -0
- package/dist/scope-BgdCqnYb.js +18 -0
- package/dist/scope-BgdCqnYb.js.map +1 -0
- package/dist/search/SearchLayer.vue.d.cts +17 -0
- package/dist/search/SearchLayer.vue.d.ts +17 -0
- package/dist/search/composables.d.cts +31 -0
- package/dist/search/composables.d.ts +31 -0
- package/dist/search.cjs +17 -0
- package/dist/search.cjs.map +1 -0
- package/dist/search.d.cts +10 -0
- package/dist/search.d.ts +10 -0
- package/dist/search.js +11 -0
- package/dist/search.js.map +1 -0
- package/dist/selection/SelectionClipboard.vue.d.cts +24 -0
- package/dist/selection/SelectionClipboard.vue.d.ts +24 -0
- package/dist/selection/SelectionHandles.vue.d.cts +8 -0
- package/dist/selection/SelectionHandles.vue.d.ts +8 -0
- package/dist/selection/SelectionLayer.vue.d.cts +3 -0
- package/dist/selection/SelectionLayer.vue.d.ts +3 -0
- package/dist/selection/SelectionMenu.vue.d.cts +23 -0
- package/dist/selection/SelectionMenu.vue.d.ts +23 -0
- package/dist/selection/composables.d.cts +24 -0
- package/dist/selection/composables.d.ts +24 -0
- package/dist/selection.cjs +24 -0
- package/dist/selection.cjs.map +1 -0
- package/dist/selection.d.cts +16 -0
- package/dist/selection.d.ts +16 -0
- package/dist/selection.js +15 -0
- package/dist/selection.js.map +1 -0
- package/dist/shell.cjs +72 -0
- package/dist/shell.cjs.map +1 -0
- package/dist/shell.d.cts +56 -0
- package/dist/shell.d.ts +56 -0
- package/dist/shell.js +67 -0
- package/dist/shell.js.map +1 -0
- package/dist/signature/composables.d.cts +39 -0
- package/dist/signature/composables.d.ts +39 -0
- package/dist/signature.cjs +16 -0
- package/dist/signature.cjs.map +1 -0
- package/dist/signature.d.cts +15 -0
- package/dist/signature.d.ts +15 -0
- package/dist/signature.js +10 -0
- package/dist/signature.js.map +1 -0
- package/dist/stage/PageSurface.vue.d.cts +29 -0
- package/dist/stage/PageSurface.vue.d.ts +29 -0
- package/dist/stage/Scrollbar.vue.d.cts +32 -0
- package/dist/stage/Scrollbar.vue.d.ts +32 -0
- package/dist/stage/Stage.vue.d.cts +44 -0
- package/dist/stage/Stage.vue.d.ts +44 -0
- package/dist/stage/StageScope.vue.d.cts +17 -0
- package/dist/stage/StageScope.vue.d.ts +17 -0
- package/dist/stage/composables.d.cts +41 -0
- package/dist/stage/composables.d.ts +41 -0
- package/dist/stage/scope.d.cts +12 -0
- package/dist/stage/scope.d.ts +12 -0
- package/dist/stage.cjs +21 -0
- package/dist/stage.cjs.map +1 -0
- package/dist/stage.d.cts +17 -0
- package/dist/stage.d.ts +17 -0
- package/dist/stage.js +15 -0
- package/dist/stage.js.map +1 -0
- package/dist/stamp.cjs +68 -0
- package/dist/stamp.cjs.map +1 -0
- package/dist/stamp.d.cts +61 -0
- package/dist/stamp.d.ts +61 -0
- package/dist/stamp.js +61 -0
- package/dist/stamp.js.map +1 -0
- package/dist/state-DZg8q3v6.js +52 -0
- package/dist/state-DZg8q3v6.js.map +1 -0
- package/dist/state-M22NDJQo.cjs +51 -0
- package/dist/state-M22NDJQo.cjs.map +1 -0
- package/dist/state.d.cts +32 -0
- package/dist/state.d.ts +32 -0
- package/dist/strip-BSDB39Xh.cjs +743 -0
- package/dist/strip-BSDB39Xh.cjs.map +1 -0
- package/dist/strip-C3wLonKB.js +744 -0
- package/dist/strip-C3wLonKB.js.map +1 -0
- package/dist/surface-box-B9oa4YoG.js +12 -0
- package/dist/surface-box-B9oa4YoG.js.map +1 -0
- package/dist/surface-box-C7EvUOXp.cjs +11 -0
- package/dist/surface-box-C7EvUOXp.cjs.map +1 -0
- package/dist/theme.d.cts +13 -0
- package/dist/theme.d.ts +13 -0
- package/dist/toolbar/DefaultCollapsed.vue.d.cts +9 -0
- package/dist/toolbar/DefaultCollapsed.vue.d.ts +9 -0
- package/dist/toolbar/DefaultCommand.vue.d.cts +8 -0
- package/dist/toolbar/DefaultCommand.vue.d.ts +8 -0
- package/dist/toolbar/DefaultGroupTrigger.vue.d.cts +9 -0
- package/dist/toolbar/DefaultGroupTrigger.vue.d.ts +9 -0
- package/dist/toolbar/DefaultOverflowMenu.vue.d.cts +9 -0
- package/dist/toolbar/DefaultOverflowMenu.vue.d.ts +9 -0
- package/dist/toolbar/DefaultOverflowTrigger.vue.d.cts +10 -0
- package/dist/toolbar/DefaultOverflowTrigger.vue.d.ts +10 -0
- package/dist/toolbar/Measured.vue.d.cts +21 -0
- package/dist/toolbar/Measured.vue.d.ts +21 -0
- package/dist/toolbar/NativeSlotSocket.vue.d.cts +22 -0
- package/dist/toolbar/NativeSlotSocket.vue.d.ts +22 -0
- package/dist/toolbar/Toolbar.vue.d.cts +82 -0
- package/dist/toolbar/Toolbar.vue.d.ts +82 -0
- package/dist/toolbar/ToolbarPart.vue.d.cts +42 -0
- package/dist/toolbar/ToolbarPart.vue.d.ts +42 -0
- package/dist/toolbar/paint.d.cts +3 -0
- package/dist/toolbar/paint.d.ts +3 -0
- package/dist/toolbar/strip.d.cts +14 -0
- package/dist/toolbar/strip.d.ts +14 -0
- package/dist/toolbar/views.d.cts +15 -0
- package/dist/toolbar/views.d.ts +15 -0
- package/dist/toolbar.cjs +27 -0
- package/dist/toolbar.cjs.map +1 -0
- package/dist/toolbar.d.cts +14 -0
- package/dist/toolbar.d.ts +14 -0
- package/dist/toolbar.js +12 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/view-manager.cjs +22 -0
- package/dist/view-manager.cjs.map +1 -0
- package/dist/view-manager.d.cts +24 -0
- package/dist/view-manager.d.ts +24 -0
- package/dist/view-manager.js +17 -0
- package/dist/view-manager.js.map +1 -0
- package/package.json +179 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
export * from "@embedpdf/core";
|
|
2
|
+
import { copySelection, createClickCounter, indexedDbByteStore, makePageContext, mountWebFont, saveFile, svgCursor, vibrationFeedback, wkFeedback } from "@embedpdf/web";
|
|
3
|
+
import { _, a, b, c, e } from "./DocumentScope.vue_vue_type_script_setup_true_lang-C-7yeEGh.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, s, a as a4 } from "./state-DZg8q3v6.js";
|
|
8
|
+
import { _ as _2 } from "./Anchored.vue_vue_type_script_setup_true_lang-Brhh5jyF.js";
|
|
9
|
+
import { _ as _3 } from "./AnchoredScope.vue_vue_type_script_setup_true_lang-Ulkr3a6R.js";
|
|
10
|
+
import { p as p2, a as a5, u as u4, b as b4, c as c4 } from "./projector-CDZn1kh1.js";
|
|
11
|
+
export * from "@embedpdf/plugin-annotation";
|
|
12
|
+
import { _ as _4, a as a6, b as b5, c as c5, f as f3, u as u5, d as d3, e as e4, g as g2, h as h2, i as i2, j as j2, k, l, m, n, o, p as p3 } from "./composables-DK3lwh38.js";
|
|
13
|
+
export * from "@embedpdf/plugin-stage";
|
|
14
|
+
import { _ as _5, a as a7, b as b6, u as u6, c as c6, d as d4, e as e5, f as f4 } from "./Scrollbar.vue_vue_type_script_setup_true_lang-HbCryx1B.js";
|
|
15
|
+
import { u as u7 } from "./scope-BgdCqnYb.js";
|
|
16
|
+
import { _ as _6 } from "./PageView.vue_vue_type_script_setup_true_lang-O4AFc0_R.js";
|
|
17
|
+
import { RenderLayer, useRender, useRenderEvent, useRenderSettings } from "./render.js";
|
|
18
|
+
import { useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useToolCursor } from "./interaction.js";
|
|
19
|
+
export * from "@embedpdf/plugin-selection";
|
|
20
|
+
import { _ as _7, a as a8, b as b7, c as c7, u as u8, d as d5, e as e6, f as f5 } from "./SelectionClipboard.vue_vue_type_script_setup_true_lang-C4TUDuyu.js";
|
|
21
|
+
export * from "@embedpdf/plugin-link";
|
|
22
|
+
import { _ as _8, u as u9, a as a9 } from "./LinkLayer.vue_vue_type_script_setup_true_lang-EzLaOP3g.js";
|
|
23
|
+
export * from "@embedpdf/plugin-search";
|
|
24
|
+
import { _ as _9, u as u10, a as a10, b as b8, c as c8, d as d6 } from "./SearchLayer.vue_vue_type_script_setup_true_lang-BlLIPH1B.js";
|
|
25
|
+
import { useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter } from "./actions.js";
|
|
26
|
+
import { useViewManager, useViewManagerEvent, useViewManagerState } from "./view-manager.js";
|
|
27
|
+
import { usePageEdit, usePageEditState } from "./page-edit.js";
|
|
28
|
+
import { useMetadata, useMetadataEvent, useMetadataState } from "./metadata.js";
|
|
29
|
+
import { useOutline, useOutlineEvent, useOutlineState } from "./outline.js";
|
|
30
|
+
import { useAttachment, useAttachmentEvent, useAttachmentState } from "./attachment.js";
|
|
31
|
+
import { useHistory, useHistoryEvent, useHistoryState } from "./history.js";
|
|
32
|
+
import { usePendingRedactions, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState } from "./redaction.js";
|
|
33
|
+
import { useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, usePageScale } from "./measurement.js";
|
|
34
|
+
import { useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState } from "./stamp.js";
|
|
35
|
+
export * from "@embedpdf/plugin-form";
|
|
36
|
+
import { _ as _10, u as u11, a as a11, b as b9, c as c9, d as d7 } from "./FormLayer.vue_vue_type_script_setup_true_lang-DUqft-xs.js";
|
|
37
|
+
export * from "@embedpdf/plugin-signature";
|
|
38
|
+
import { u as u12, a as a12, b as b10, c as c10, d as d8 } from "./composables-DwsZdg06.js";
|
|
39
|
+
import { useI18n, useI18nEvent, useI18nSettings, useI18nState, useT } from "./i18n.js";
|
|
40
|
+
import { formatShortcut, standardCommands, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings } from "./commands.js";
|
|
41
|
+
import { useShell, useShellEvent, useShellState, useSurface, useSurfaceFocus } from "./shell.js";
|
|
42
|
+
import { DEFAULT_IMPORTANCE, PINNED, custom, group, item } from "@embedpdf/core-ui";
|
|
43
|
+
import { _ as _11, u as u13 } from "./strip-C3wLonKB.js";
|
|
44
|
+
import { _ as _12 } from "./PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js";
|
|
45
|
+
export * from "@embedpdf/plugin-actions";
|
|
46
|
+
export * from "@embedpdf/plugin-attachment";
|
|
47
|
+
export * from "@embedpdf/plugin-commands";
|
|
48
|
+
export * from "@embedpdf/plugin-history";
|
|
49
|
+
export * from "@embedpdf/plugin-i18n";
|
|
50
|
+
export * from "@embedpdf/plugin-interaction";
|
|
51
|
+
export * from "@embedpdf/plugin-measurement";
|
|
52
|
+
export * from "@embedpdf/plugin-metadata";
|
|
53
|
+
export * from "@embedpdf/plugin-outline";
|
|
54
|
+
export * from "@embedpdf/plugin-page-edit";
|
|
55
|
+
export * from "@embedpdf/plugin-redaction";
|
|
56
|
+
export * from "@embedpdf/plugin-render";
|
|
57
|
+
export * from "@embedpdf/plugin-shell";
|
|
58
|
+
export * from "@embedpdf/plugin-stamp";
|
|
59
|
+
export * from "@embedpdf/plugin-view-manager";
|
|
60
|
+
export {
|
|
61
|
+
_2 as Anchored,
|
|
62
|
+
_3 as AnchoredScope,
|
|
63
|
+
_4 as AnnotationDraftMenu,
|
|
64
|
+
a6 as AnnotationLayer,
|
|
65
|
+
b5 as AnnotationMenu,
|
|
66
|
+
c5 as AnnotationRotationBadge,
|
|
67
|
+
DEFAULT_IMPORTANCE,
|
|
68
|
+
_ as DocumentGate,
|
|
69
|
+
a as DocumentScope,
|
|
70
|
+
_10 as FormLayer,
|
|
71
|
+
b as KernelProvider,
|
|
72
|
+
_8 as LinkLayer,
|
|
73
|
+
PINNED,
|
|
74
|
+
_12 as PagePointerSource,
|
|
75
|
+
_6 as PageView,
|
|
76
|
+
RenderLayer,
|
|
77
|
+
_5 as Scrollbar,
|
|
78
|
+
_9 as SearchLayer,
|
|
79
|
+
_7 as SelectionClipboard,
|
|
80
|
+
a8 as SelectionHandles,
|
|
81
|
+
b7 as SelectionLayer,
|
|
82
|
+
c7 as SelectionMenu,
|
|
83
|
+
a7 as Stage,
|
|
84
|
+
b6 as StageScope,
|
|
85
|
+
_11 as Toolbar,
|
|
86
|
+
c as Viewer,
|
|
87
|
+
copySelection,
|
|
88
|
+
createClickCounter,
|
|
89
|
+
custom,
|
|
90
|
+
e as epdfTheme,
|
|
91
|
+
f2 as fieldRefs,
|
|
92
|
+
f3 as filePickerProvider,
|
|
93
|
+
formatShortcut,
|
|
94
|
+
group,
|
|
95
|
+
indexedDbByteStore,
|
|
96
|
+
item,
|
|
97
|
+
makePageContext,
|
|
98
|
+
mountWebFont,
|
|
99
|
+
p as providePage,
|
|
100
|
+
p2 as provideProjector,
|
|
101
|
+
a5 as provideShownPages,
|
|
102
|
+
saveFile,
|
|
103
|
+
s as settingsComposable,
|
|
104
|
+
standardCommands,
|
|
105
|
+
a4 as stateComposable,
|
|
106
|
+
svgCursor,
|
|
107
|
+
useActions,
|
|
108
|
+
useActionsEvent,
|
|
109
|
+
useActionsSettings,
|
|
110
|
+
useActionsUiAdapter,
|
|
111
|
+
u as useActiveDocumentId,
|
|
112
|
+
u5 as useAnnotation,
|
|
113
|
+
d3 as useAnnotationAnchor,
|
|
114
|
+
e4 as useAnnotationDefaults,
|
|
115
|
+
g2 as useAnnotationEvent,
|
|
116
|
+
h2 as useAnnotationList,
|
|
117
|
+
i2 as useAnnotationProperties,
|
|
118
|
+
j2 as useAnnotationSettings,
|
|
119
|
+
k as useAnnotationState,
|
|
120
|
+
useAttachment,
|
|
121
|
+
useAttachmentEvent,
|
|
122
|
+
useAttachmentState,
|
|
123
|
+
a2 as useCapability,
|
|
124
|
+
b2 as useCapabilityEvent,
|
|
125
|
+
c2 as useCapabilityRef,
|
|
126
|
+
useCommand,
|
|
127
|
+
useCommandShortcuts,
|
|
128
|
+
useCommands,
|
|
129
|
+
useCommandsEvent,
|
|
130
|
+
useCommandsSettings,
|
|
131
|
+
l as useCommentThread,
|
|
132
|
+
m as useCommentThreads,
|
|
133
|
+
n as useComments,
|
|
134
|
+
u2 as useDocument,
|
|
135
|
+
d as useDocumentId,
|
|
136
|
+
e2 as useDocumentScope,
|
|
137
|
+
a3 as useDocuments,
|
|
138
|
+
b3 as useDocumentsEvent,
|
|
139
|
+
c3 as useDocumentsState,
|
|
140
|
+
o as useFilePickerProvider,
|
|
141
|
+
u11 as useForm,
|
|
142
|
+
a11 as useFormEvent,
|
|
143
|
+
b9 as useFormSettings,
|
|
144
|
+
c9 as useFormState,
|
|
145
|
+
d7 as useFormValue,
|
|
146
|
+
useHistory,
|
|
147
|
+
useHistoryEvent,
|
|
148
|
+
useHistoryState,
|
|
149
|
+
useI18n,
|
|
150
|
+
useI18nEvent,
|
|
151
|
+
useI18nSettings,
|
|
152
|
+
useI18nState,
|
|
153
|
+
useInteraction,
|
|
154
|
+
useInteractionEvent,
|
|
155
|
+
useInteractionSettings,
|
|
156
|
+
useInteractionState,
|
|
157
|
+
f as useKernel,
|
|
158
|
+
g as useKernelValue,
|
|
159
|
+
u9 as useLink,
|
|
160
|
+
a9 as useLinkEvent,
|
|
161
|
+
useMeasurement,
|
|
162
|
+
useMeasurementEvent,
|
|
163
|
+
useMeasurementReadout,
|
|
164
|
+
useMeasurementSettings,
|
|
165
|
+
useMeasurementState,
|
|
166
|
+
useMetadata,
|
|
167
|
+
useMetadataEvent,
|
|
168
|
+
useMetadataState,
|
|
169
|
+
h as useOptionalCapability,
|
|
170
|
+
u4 as useOptionalProjectorBinding,
|
|
171
|
+
i as useOptionalSelector,
|
|
172
|
+
useOutline,
|
|
173
|
+
useOutlineEvent,
|
|
174
|
+
useOutlineState,
|
|
175
|
+
u3 as usePage,
|
|
176
|
+
usePageEdit,
|
|
177
|
+
usePageEditState,
|
|
178
|
+
d2 as usePageList,
|
|
179
|
+
usePageScale,
|
|
180
|
+
usePendingRedactions,
|
|
181
|
+
b4 as useProjectorBinding,
|
|
182
|
+
useRedaction,
|
|
183
|
+
useRedactionEvent,
|
|
184
|
+
useRedactionSettings,
|
|
185
|
+
useRedactionState,
|
|
186
|
+
useRender,
|
|
187
|
+
useRenderEvent,
|
|
188
|
+
useRenderSettings,
|
|
189
|
+
p3 as useRichTextEditor,
|
|
190
|
+
u6 as useScrollMetrics,
|
|
191
|
+
u10 as useSearch,
|
|
192
|
+
a10 as useSearchEvent,
|
|
193
|
+
b8 as useSearchHits,
|
|
194
|
+
c8 as useSearchSettings,
|
|
195
|
+
d6 as useSearchState,
|
|
196
|
+
u8 as useSelection,
|
|
197
|
+
d5 as useSelectionEvent,
|
|
198
|
+
e6 as useSelectionSettings,
|
|
199
|
+
f5 as useSelectionState,
|
|
200
|
+
j as useSelector,
|
|
201
|
+
useShell,
|
|
202
|
+
useShellEvent,
|
|
203
|
+
useShellState,
|
|
204
|
+
c4 as useShownPages,
|
|
205
|
+
u12 as useSignature,
|
|
206
|
+
a12 as useSignatureEvent,
|
|
207
|
+
b10 as useSignatureSettings,
|
|
208
|
+
c10 as useSignatureState,
|
|
209
|
+
d8 as useSignerRows,
|
|
210
|
+
c6 as useStage,
|
|
211
|
+
d4 as useStageEvent,
|
|
212
|
+
e5 as useStageSettings,
|
|
213
|
+
f4 as useStageState,
|
|
214
|
+
u7 as useStageToken,
|
|
215
|
+
useStamp,
|
|
216
|
+
useStampAssetPreviewUrl,
|
|
217
|
+
useStampAssets,
|
|
218
|
+
useStampEvent,
|
|
219
|
+
useStampLibraries,
|
|
220
|
+
useStampSettings,
|
|
221
|
+
useStampState,
|
|
222
|
+
u13 as useStripView,
|
|
223
|
+
useSurface,
|
|
224
|
+
useSurfaceFocus,
|
|
225
|
+
useT,
|
|
226
|
+
useToolCursor,
|
|
227
|
+
useViewManager,
|
|
228
|
+
useViewManagerEvent,
|
|
229
|
+
useViewManagerState,
|
|
230
|
+
e3 as useViewerSettings,
|
|
231
|
+
vibrationFeedback,
|
|
232
|
+
wkFeedback
|
|
233
|
+
};
|
|
234
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pluginInteraction = require("@embedpdf/plugin-interaction");
|
|
4
|
+
const web = require("@embedpdf/web");
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
const host = require("@embedpdf/plugin-interaction/contract/host");
|
|
7
|
+
const capabilities = require("./capabilities-DVNJmgy7.cjs");
|
|
8
|
+
const state = require("./state-M22NDJQo.cjs");
|
|
9
|
+
const PagePointerSource_vue_vue_type_script_setup_true_lang = require("./PagePointerSource.vue_vue_type_script_setup_true_lang-Cw29c8Oa.cjs");
|
|
10
|
+
function useInteraction() {
|
|
11
|
+
return capabilities.useCapability(pluginInteraction.InteractionToken);
|
|
12
|
+
}
|
|
13
|
+
function useInteractionEvent(select, handler) {
|
|
14
|
+
capabilities.useCapabilityEvent(pluginInteraction.InteractionToken, select, handler);
|
|
15
|
+
}
|
|
16
|
+
const useInteractionState = state.stateComposable(pluginInteraction.interactionState);
|
|
17
|
+
const useInteractionSettings = state.settingsComposable(pluginInteraction.InteractionToken);
|
|
18
|
+
function useToolCursor(spec) {
|
|
19
|
+
const interaction = capabilities.useOptionalCapability(host.InteractionToken);
|
|
20
|
+
const key = vue.computed(() => {
|
|
21
|
+
const current = vue.toValue(spec);
|
|
22
|
+
return current ? JSON.stringify(current) : null;
|
|
23
|
+
});
|
|
24
|
+
vue.watch(
|
|
25
|
+
[interaction, key],
|
|
26
|
+
([hub, json], _previous, onCleanup) => {
|
|
27
|
+
if (!hub || !json) return;
|
|
28
|
+
const { toolId, cursors } = JSON.parse(json);
|
|
29
|
+
hub.setToolCursor(toolId, web.toolCursorsOf(cursors));
|
|
30
|
+
onCleanup(() => hub.setToolCursor(toolId, null));
|
|
31
|
+
},
|
|
32
|
+
{ immediate: true }
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
Object.defineProperty(exports, "createClickCounter", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: () => web.createClickCounter
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "svgCursor", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: () => web.svgCursor
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "vibrationFeedback", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: () => web.vibrationFeedback
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "wkFeedback", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: () => web.wkFeedback
|
|
50
|
+
});
|
|
51
|
+
exports.PagePointerSource = PagePointerSource_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
52
|
+
exports.useInteraction = useInteraction;
|
|
53
|
+
exports.useInteractionEvent = useInteractionEvent;
|
|
54
|
+
exports.useInteractionSettings = useInteractionSettings;
|
|
55
|
+
exports.useInteractionState = useInteractionState;
|
|
56
|
+
exports.useToolCursor = useToolCursor;
|
|
57
|
+
Object.keys(pluginInteraction).forEach((k) => {
|
|
58
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: () => pluginInteraction[k]
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=interaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction.cjs","sources":["../src/interaction.ts"],"sourcesContent":["/**\n * @embedpdf/vue/interaction: the Vue surface of `@embedpdf/plugin-interaction`.\n * `<PagePointerSource>` is a page's one pointer listener; the composables switch\n * tools, read the tools' state and settings, follow the hub's events, and give\n * a tool its own cursor.\n */\n\n// One line per feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-interaction';\n// The browser helpers live in @embedpdf/web (the plugin is DOM-free); they are\n// re-exported here so app code has one import for the feature.\nexport { createClickCounter, svgCursor, vibrationFeedback, wkFeedback } from '@embedpdf/web';\nexport type { SvgCursorOptions, ToolCursorImage, ToolCursorSpec } from '@embedpdf/web';\nimport { computed, toValue, watch } from 'vue';\nimport type { MaybeRefOrGetter } from 'vue';\nimport { InteractionToken as InteractionHostToken } from '@embedpdf/plugin-interaction/contract/host';\nimport { InteractionToken, interactionState } from '@embedpdf/plugin-interaction';\nimport type { InteractionCapability } from '@embedpdf/plugin-interaction';\nimport type { EventHook } from '@embedpdf/core';\nimport { toolCursorsOf } from '@embedpdf/web';\nimport type { ToolCursorSpec } from '@embedpdf/web';\nimport { useCapability, useCapabilityEvent, useOptionalCapability } from './runtime/capabilities';\nimport { settingsComposable, stateComposable } from './state';\n\nexport { default as PagePointerSource } from './interaction/PagePointerSource.vue';\n\n/** The interaction API: switch tools, add your own, set their cursors. The object never changes. */\nexport function useInteraction(): InteractionCapability {\n return useCapability(InteractionToken);\n}\n\n/** Subscribe to one interaction event while the component lives: `useInteractionEvent((interaction) => interaction.onGestureStarted, handler)`. */\nexport function useInteractionEvent<Event>(\n select: (interaction: InteractionCapability) => EventHook<Event>,\n handler: (event: Event) => void,\n): void {\n useCapabilityEvent(InteractionToken, select, handler);\n}\n\n/**\n * The tools' state as refs: the active tool's id and every tool you can\n * switch to (the page's State table, declared once in `interactionState`).\n * With a selector, one ref. Without a document there is no active tool\n * (`null`) and no tool.\n */\nexport const useInteractionState = stateComposable(interactionState);\n\n/** The interaction settings (`defaultTool`, `tools`), with or without a document, as refs. Takes a selector. */\nexport const useInteractionSettings = settingsComposable(InteractionToken);\n\n/**\n * Give a tool image cursors: the armed-tool indicator. The hub already decides\n * which cursor shows (hover claims over annotations and text win, the gaps\n * between pages show the tool's `gapCursor`), so nothing chases the pointer in\n * the DOM. Pass a getter to follow your values: a new spec rebuilds the cursor\n * (a color picked in your toolbar), and the component's unmount restores the\n * tool's own cursors. `null` installs nothing; without a document it installs\n * nothing until one is ready.\n */\nexport function useToolCursor(spec: MaybeRefOrGetter<ToolCursorSpec | null>): void {\n const interaction = useOptionalCapability(InteractionHostToken);\n // By value: a getter builds a new object each time, and an equal one must\n // not rebuild the cursor.\n const key = computed(() => {\n const current = toValue(spec);\n return current ? JSON.stringify(current) : null;\n });\n watch(\n [interaction, key],\n ([hub, json], _previous, onCleanup) => {\n if (!hub || !json) return;\n const { toolId, cursors } = JSON.parse(json) as ToolCursorSpec;\n hub.setToolCursor(toolId, toolCursorsOf(cursors));\n onCleanup(() => hub.setToolCursor(toolId, null));\n },\n { immediate: true },\n );\n}\n"],"names":["useCapability","InteractionToken","useCapabilityEvent","stateComposable","interactionState","settingsComposable","useOptionalCapability","InteractionHostToken","computed","toValue","watch","toolCursorsOf"],"mappings":";;;;;;;;;AA2BO,SAAS,iBAAwC;AACtD,SAAOA,aAAAA,cAAcC,kBAAAA,gBAAgB;AACvC;AAGO,SAAS,oBACd,QACA,SACM;AACNC,kCAAmBD,kBAAAA,kBAAkB,QAAQ,OAAO;AACtD;AAQO,MAAM,sBAAsBE,MAAAA,gBAAgBC,kBAAAA,gBAAgB;AAG5D,MAAM,yBAAyBC,MAAAA,mBAAmBJ,kBAAAA,gBAAgB;AAWlE,SAAS,cAAc,MAAqD;AACjF,QAAM,cAAcK,aAAAA,sBAAsBC,qBAAoB;AAG9D,QAAM,MAAMC,IAAAA,SAAS,MAAM;AACzB,UAAM,UAAUC,IAAAA,QAAQ,IAAI;AAC5B,WAAO,UAAU,KAAK,UAAU,OAAO,IAAI;AAAA,EAC7C,CAAC;AACDC,MAAAA;AAAAA,IACE,CAAC,aAAa,GAAG;AAAA,IACjB,CAAC,CAAC,KAAK,IAAI,GAAG,WAAW,cAAc;AACrC,UAAI,CAAC,OAAO,CAAC,KAAM;AACnB,YAAM,EAAE,QAAQ,QAAA,IAAY,KAAK,MAAM,IAAI;AAC3C,UAAI,cAAc,QAAQC,IAAAA,cAAc,OAAO,CAAC;AAChD,gBAAU,MAAM,IAAI,cAAc,QAAQ,IAAI,CAAC;AAAA,IACjD;AAAA,IACA,EAAE,WAAW,KAAA;AAAA,EAAK;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/interaction: the Vue surface of `@embedpdf/plugin-interaction`.
|
|
3
|
+
* `<PagePointerSource>` is a page's one pointer listener; the composables switch
|
|
4
|
+
* tools, read the tools' state and settings, follow the hub's events, and give
|
|
5
|
+
* a tool its own cursor.
|
|
6
|
+
*/
|
|
7
|
+
export * from '@embedpdf/plugin-interaction';
|
|
8
|
+
export { createClickCounter, svgCursor, vibrationFeedback, wkFeedback } from '@embedpdf/web';
|
|
9
|
+
export type { SvgCursorOptions, ToolCursorImage, ToolCursorSpec } from '@embedpdf/web';
|
|
10
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
11
|
+
import type { InteractionCapability } from '@embedpdf/plugin-interaction';
|
|
12
|
+
import type { EventHook } from '@embedpdf/core';
|
|
13
|
+
import type { ToolCursorSpec } from '@embedpdf/web';
|
|
14
|
+
export { default as PagePointerSource } from './interaction/PagePointerSource.vue.cjs';
|
|
15
|
+
/** The interaction API: switch tools, add your own, set their cursors. The object never changes. */
|
|
16
|
+
export declare function useInteraction(): InteractionCapability;
|
|
17
|
+
/** Subscribe to one interaction event while the component lives: `useInteractionEvent((interaction) => interaction.onGestureStarted, handler)`. */
|
|
18
|
+
export declare function useInteractionEvent<Event>(select: (interaction: InteractionCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* The tools' state as refs: the active tool's id and every tool you can
|
|
21
|
+
* switch to (the page's State table, declared once in `interactionState`).
|
|
22
|
+
* With a selector, one ref. Without a document there is no active tool
|
|
23
|
+
* (`null`) and no tool.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useInteractionState: import("./state.cjs").StateComposable<{
|
|
26
|
+
activeToolId: import("@embedpdf/plugin-interaction").ToolId | null;
|
|
27
|
+
tools: readonly import("@embedpdf/plugin-interaction").Tool[];
|
|
28
|
+
}>;
|
|
29
|
+
/** The interaction settings (`defaultTool`, `tools`), with or without a document, as refs. Takes a selector. */
|
|
30
|
+
export declare const useInteractionSettings: import("./state.cjs").SettingsComposable<import("@embedpdf/plugin-interaction").InteractionSettings & object>;
|
|
31
|
+
/**
|
|
32
|
+
* Give a tool image cursors: the armed-tool indicator. The hub already decides
|
|
33
|
+
* which cursor shows (hover claims over annotations and text win, the gaps
|
|
34
|
+
* between pages show the tool's `gapCursor`), so nothing chases the pointer in
|
|
35
|
+
* the DOM. Pass a getter to follow your values: a new spec rebuilds the cursor
|
|
36
|
+
* (a color picked in your toolbar), and the component's unmount restores the
|
|
37
|
+
* tool's own cursors. `null` installs nothing; without a document it installs
|
|
38
|
+
* nothing until one is ready.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useToolCursor(spec: MaybeRefOrGetter<ToolCursorSpec | null>): void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/interaction: the Vue surface of `@embedpdf/plugin-interaction`.
|
|
3
|
+
* `<PagePointerSource>` is a page's one pointer listener; the composables switch
|
|
4
|
+
* tools, read the tools' state and settings, follow the hub's events, and give
|
|
5
|
+
* a tool its own cursor.
|
|
6
|
+
*/
|
|
7
|
+
export * from '@embedpdf/plugin-interaction';
|
|
8
|
+
export { createClickCounter, svgCursor, vibrationFeedback, wkFeedback } from '@embedpdf/web';
|
|
9
|
+
export type { SvgCursorOptions, ToolCursorImage, ToolCursorSpec } from '@embedpdf/web';
|
|
10
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
11
|
+
import type { InteractionCapability } from '@embedpdf/plugin-interaction';
|
|
12
|
+
import type { EventHook } from '@embedpdf/core';
|
|
13
|
+
import type { ToolCursorSpec } from '@embedpdf/web';
|
|
14
|
+
export { default as PagePointerSource } from './interaction/PagePointerSource.vue.js';
|
|
15
|
+
/** The interaction API: switch tools, add your own, set their cursors. The object never changes. */
|
|
16
|
+
export declare function useInteraction(): InteractionCapability;
|
|
17
|
+
/** Subscribe to one interaction event while the component lives: `useInteractionEvent((interaction) => interaction.onGestureStarted, handler)`. */
|
|
18
|
+
export declare function useInteractionEvent<Event>(select: (interaction: InteractionCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* The tools' state as refs: the active tool's id and every tool you can
|
|
21
|
+
* switch to (the page's State table, declared once in `interactionState`).
|
|
22
|
+
* With a selector, one ref. Without a document there is no active tool
|
|
23
|
+
* (`null`) and no tool.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useInteractionState: import("./state.js").StateComposable<{
|
|
26
|
+
activeToolId: import("@embedpdf/plugin-interaction").ToolId | null;
|
|
27
|
+
tools: readonly import("@embedpdf/plugin-interaction").Tool[];
|
|
28
|
+
}>;
|
|
29
|
+
/** The interaction settings (`defaultTool`, `tools`), with or without a document, as refs. Takes a selector. */
|
|
30
|
+
export declare const useInteractionSettings: import("./state.js").SettingsComposable<import("@embedpdf/plugin-interaction").InteractionSettings & object>;
|
|
31
|
+
/**
|
|
32
|
+
* Give a tool image cursors: the armed-tool indicator. The hub already decides
|
|
33
|
+
* which cursor shows (hover claims over annotations and text win, the gaps
|
|
34
|
+
* between pages show the tool's `gapCursor`), so nothing chases the pointer in
|
|
35
|
+
* the DOM. Pass a getter to follow your values: a new spec rebuilds the cursor
|
|
36
|
+
* (a color picked in your toolbar), and the component's unmount restores the
|
|
37
|
+
* tool's own cursors. `null` installs nothing; without a document it installs
|
|
38
|
+
* nothing until one is ready.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useToolCursor(spec: MaybeRefOrGetter<ToolCursorSpec | null>): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { InteractionToken, interactionState } from "@embedpdf/plugin-interaction";
|
|
2
|
+
export * from "@embedpdf/plugin-interaction";
|
|
3
|
+
import { toolCursorsOf } from "@embedpdf/web";
|
|
4
|
+
import { createClickCounter, svgCursor, vibrationFeedback, wkFeedback } from "@embedpdf/web";
|
|
5
|
+
import { computed, toValue, watch } from "vue";
|
|
6
|
+
import { InteractionToken as InteractionToken$1 } from "@embedpdf/plugin-interaction/contract/host";
|
|
7
|
+
import { a as useCapability, b as useCapabilityEvent, h as useOptionalCapability } from "./capabilities-C7YzgPCX.js";
|
|
8
|
+
import { s as settingsComposable, a as stateComposable } from "./state-DZg8q3v6.js";
|
|
9
|
+
import { _ } from "./PagePointerSource.vue_vue_type_script_setup_true_lang-CJt3vdBW.js";
|
|
10
|
+
function useInteraction() {
|
|
11
|
+
return useCapability(InteractionToken);
|
|
12
|
+
}
|
|
13
|
+
function useInteractionEvent(select, handler) {
|
|
14
|
+
useCapabilityEvent(InteractionToken, select, handler);
|
|
15
|
+
}
|
|
16
|
+
const useInteractionState = stateComposable(interactionState);
|
|
17
|
+
const useInteractionSettings = settingsComposable(InteractionToken);
|
|
18
|
+
function useToolCursor(spec) {
|
|
19
|
+
const interaction = useOptionalCapability(InteractionToken$1);
|
|
20
|
+
const key = computed(() => {
|
|
21
|
+
const current = toValue(spec);
|
|
22
|
+
return current ? JSON.stringify(current) : null;
|
|
23
|
+
});
|
|
24
|
+
watch(
|
|
25
|
+
[interaction, key],
|
|
26
|
+
([hub, json], _previous, onCleanup) => {
|
|
27
|
+
if (!hub || !json) return;
|
|
28
|
+
const { toolId, cursors } = JSON.parse(json);
|
|
29
|
+
hub.setToolCursor(toolId, toolCursorsOf(cursors));
|
|
30
|
+
onCleanup(() => hub.setToolCursor(toolId, null));
|
|
31
|
+
},
|
|
32
|
+
{ immediate: true }
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
_ as PagePointerSource,
|
|
37
|
+
createClickCounter,
|
|
38
|
+
svgCursor,
|
|
39
|
+
useInteraction,
|
|
40
|
+
useInteractionEvent,
|
|
41
|
+
useInteractionSettings,
|
|
42
|
+
useInteractionState,
|
|
43
|
+
useToolCursor,
|
|
44
|
+
vibrationFeedback,
|
|
45
|
+
wkFeedback
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=interaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction.js","sources":["../src/interaction.ts"],"sourcesContent":["/**\n * @embedpdf/vue/interaction: the Vue surface of `@embedpdf/plugin-interaction`.\n * `<PagePointerSource>` is a page's one pointer listener; the composables switch\n * tools, read the tools' state and settings, follow the hub's events, and give\n * a tool its own cursor.\n */\n\n// One line per feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-interaction';\n// The browser helpers live in @embedpdf/web (the plugin is DOM-free); they are\n// re-exported here so app code has one import for the feature.\nexport { createClickCounter, svgCursor, vibrationFeedback, wkFeedback } from '@embedpdf/web';\nexport type { SvgCursorOptions, ToolCursorImage, ToolCursorSpec } from '@embedpdf/web';\nimport { computed, toValue, watch } from 'vue';\nimport type { MaybeRefOrGetter } from 'vue';\nimport { InteractionToken as InteractionHostToken } from '@embedpdf/plugin-interaction/contract/host';\nimport { InteractionToken, interactionState } from '@embedpdf/plugin-interaction';\nimport type { InteractionCapability } from '@embedpdf/plugin-interaction';\nimport type { EventHook } from '@embedpdf/core';\nimport { toolCursorsOf } from '@embedpdf/web';\nimport type { ToolCursorSpec } from '@embedpdf/web';\nimport { useCapability, useCapabilityEvent, useOptionalCapability } from './runtime/capabilities';\nimport { settingsComposable, stateComposable } from './state';\n\nexport { default as PagePointerSource } from './interaction/PagePointerSource.vue';\n\n/** The interaction API: switch tools, add your own, set their cursors. The object never changes. */\nexport function useInteraction(): InteractionCapability {\n return useCapability(InteractionToken);\n}\n\n/** Subscribe to one interaction event while the component lives: `useInteractionEvent((interaction) => interaction.onGestureStarted, handler)`. */\nexport function useInteractionEvent<Event>(\n select: (interaction: InteractionCapability) => EventHook<Event>,\n handler: (event: Event) => void,\n): void {\n useCapabilityEvent(InteractionToken, select, handler);\n}\n\n/**\n * The tools' state as refs: the active tool's id and every tool you can\n * switch to (the page's State table, declared once in `interactionState`).\n * With a selector, one ref. Without a document there is no active tool\n * (`null`) and no tool.\n */\nexport const useInteractionState = stateComposable(interactionState);\n\n/** The interaction settings (`defaultTool`, `tools`), with or without a document, as refs. Takes a selector. */\nexport const useInteractionSettings = settingsComposable(InteractionToken);\n\n/**\n * Give a tool image cursors: the armed-tool indicator. The hub already decides\n * which cursor shows (hover claims over annotations and text win, the gaps\n * between pages show the tool's `gapCursor`), so nothing chases the pointer in\n * the DOM. Pass a getter to follow your values: a new spec rebuilds the cursor\n * (a color picked in your toolbar), and the component's unmount restores the\n * tool's own cursors. `null` installs nothing; without a document it installs\n * nothing until one is ready.\n */\nexport function useToolCursor(spec: MaybeRefOrGetter<ToolCursorSpec | null>): void {\n const interaction = useOptionalCapability(InteractionHostToken);\n // By value: a getter builds a new object each time, and an equal one must\n // not rebuild the cursor.\n const key = computed(() => {\n const current = toValue(spec);\n return current ? JSON.stringify(current) : null;\n });\n watch(\n [interaction, key],\n ([hub, json], _previous, onCleanup) => {\n if (!hub || !json) return;\n const { toolId, cursors } = JSON.parse(json) as ToolCursorSpec;\n hub.setToolCursor(toolId, toolCursorsOf(cursors));\n onCleanup(() => hub.setToolCursor(toolId, null));\n },\n { immediate: true },\n );\n}\n"],"names":["InteractionHostToken"],"mappings":";;;;;;;;;AA2BO,SAAS,iBAAwC;AACtD,SAAO,cAAc,gBAAgB;AACvC;AAGO,SAAS,oBACd,QACA,SACM;AACN,qBAAmB,kBAAkB,QAAQ,OAAO;AACtD;AAQO,MAAM,sBAAsB,gBAAgB,gBAAgB;AAG5D,MAAM,yBAAyB,mBAAmB,gBAAgB;AAWlE,SAAS,cAAc,MAAqD;AACjF,QAAM,cAAc,sBAAsBA,kBAAoB;AAG9D,QAAM,MAAM,SAAS,MAAM;AACzB,UAAM,UAAU,QAAQ,IAAI;AAC5B,WAAO,UAAU,KAAK,UAAU,OAAO,IAAI;AAAA,EAC7C,CAAC;AACD;AAAA,IACE,CAAC,aAAa,GAAG;AAAA,IACjB,CAAC,CAAC,KAAK,IAAI,GAAG,WAAW,cAAc;AACrC,UAAI,CAAC,OAAO,CAAC,KAAM;AACnB,YAAM,EAAE,QAAQ,QAAA,IAAY,KAAK,MAAM,IAAI;AAC3C,UAAI,cAAc,QAAQ,cAAc,OAAO,CAAC;AAChD,gBAAU,MAAM,IAAI,cAAc,QAAQ,IAAI,CAAC;AAAA,IACjD;AAAA,IACA,EAAE,WAAW,KAAA;AAAA,EAAK;AAEtB;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Link } from '@embedpdf/plugin-link';
|
|
2
|
+
import type { LinkLayerContext } from './composables.cjs';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
item: Link;
|
|
5
|
+
layer: LinkLayerContext;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Link } from '@embedpdf/plugin-link';
|
|
2
|
+
import type { LinkLayerContext } from './composables.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
item: Link;
|
|
5
|
+
layer: LinkLayerContext;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FunctionalComponent } from 'vue';
|
|
2
|
+
import type { Link } from '@embedpdf/plugin-link';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/**
|
|
5
|
+
* Draw a link yourself, usually around `native`, the layer's own clickable
|
|
6
|
+
* area: `<component :is="native" />` keeps what a click does. For a link you
|
|
7
|
+
* don't want to change, show `native` alone.
|
|
8
|
+
*/
|
|
9
|
+
link?(props: {
|
|
10
|
+
link: Link;
|
|
11
|
+
native: FunctionalComponent;
|
|
12
|
+
}): unknown;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FunctionalComponent } from 'vue';
|
|
2
|
+
import type { Link } from '@embedpdf/plugin-link';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/**
|
|
5
|
+
* Draw a link yourself, usually around `native`, the layer's own clickable
|
|
6
|
+
* area: `<component :is="native" />` keeps what a click does. For a link you
|
|
7
|
+
* don't want to change, show `native` alone.
|
|
8
|
+
*/
|
|
9
|
+
link?(props: {
|
|
10
|
+
link: Link;
|
|
11
|
+
native: FunctionalComponent;
|
|
12
|
+
}): unknown;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { EventHook } from '@embedpdf/core';
|
|
2
|
+
import type { ActionsCapability, HoverPump } from '@embedpdf/plugin-actions/contract';
|
|
3
|
+
import type { LinkCapability } from '@embedpdf/plugin-link';
|
|
4
|
+
import type { StageCapability } from '@embedpdf/plugin-stage/contract';
|
|
5
|
+
/** What every anchor of one `<LinkLayer>` shares. */
|
|
6
|
+
export interface LinkLayerContext {
|
|
7
|
+
link: LinkCapability;
|
|
8
|
+
/** The view a page destination moves, when the page is on a Stage. */
|
|
9
|
+
stage: StageCapability | null;
|
|
10
|
+
/** The actions plugin, for the links' own PDF events; null without it. */
|
|
11
|
+
actions: ActionsCapability | null;
|
|
12
|
+
/** One per layer, so leaving one link and entering the next stay in order. */
|
|
13
|
+
pump: HoverPump | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Hand the link plugin this binding's website opener (`openExternalUri`)
|
|
17
|
+
* while the component lives: an allowed address opens in a new tab, anything
|
|
18
|
+
* else is refused and the plugin reports it. Registered again for another
|
|
19
|
+
* document.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useUriOpener(): void;
|
|
22
|
+
/**
|
|
23
|
+
* The link API (`listLinks`, `activate`, …) for app code. The object never
|
|
24
|
+
* changes. While a component uses it, `activate()` opens a website in a new
|
|
25
|
+
* tab.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useLink(): LinkCapability;
|
|
28
|
+
/** Subscribe to one link event while the component lives: `useLinkEvent((link) => link.onActivated, handler)`. */
|
|
29
|
+
export declare function useLinkEvent<Event>(select: (link: LinkCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { EventHook } from '@embedpdf/core';
|
|
2
|
+
import type { ActionsCapability, HoverPump } from '@embedpdf/plugin-actions/contract';
|
|
3
|
+
import type { LinkCapability } from '@embedpdf/plugin-link';
|
|
4
|
+
import type { StageCapability } from '@embedpdf/plugin-stage/contract';
|
|
5
|
+
/** What every anchor of one `<LinkLayer>` shares. */
|
|
6
|
+
export interface LinkLayerContext {
|
|
7
|
+
link: LinkCapability;
|
|
8
|
+
/** The view a page destination moves, when the page is on a Stage. */
|
|
9
|
+
stage: StageCapability | null;
|
|
10
|
+
/** The actions plugin, for the links' own PDF events; null without it. */
|
|
11
|
+
actions: ActionsCapability | null;
|
|
12
|
+
/** One per layer, so leaving one link and entering the next stay in order. */
|
|
13
|
+
pump: HoverPump | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Hand the link plugin this binding's website opener (`openExternalUri`)
|
|
17
|
+
* while the component lives: an allowed address opens in a new tab, anything
|
|
18
|
+
* else is refused and the plugin reports it. Registered again for another
|
|
19
|
+
* document.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useUriOpener(): void;
|
|
22
|
+
/**
|
|
23
|
+
* The link API (`listLinks`, `activate`, …) for app code. The object never
|
|
24
|
+
* changes. While a component uses it, `activate()` opens a website in a new
|
|
25
|
+
* tab.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useLink(): LinkCapability;
|
|
28
|
+
/** Subscribe to one link event while the component lives: `useLinkEvent((link) => link.onActivated, handler)`. */
|
|
29
|
+
export declare function useLinkEvent<Event>(select: (link: LinkCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
package/dist/link.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pluginLink = require("@embedpdf/plugin-link");
|
|
4
|
+
const LinkLayer_vue_vue_type_script_setup_true_lang = require("./LinkLayer.vue_vue_type_script_setup_true_lang-C5-eQD34.cjs");
|
|
5
|
+
exports.LinkLayer = LinkLayer_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
6
|
+
exports.useLink = LinkLayer_vue_vue_type_script_setup_true_lang.useLink;
|
|
7
|
+
exports.useLinkEvent = LinkLayer_vue_vue_type_script_setup_true_lang.useLinkEvent;
|
|
8
|
+
Object.keys(pluginLink).forEach((k) => {
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => pluginLink[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=link.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/link.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/link: the Vue surface of `@embedpdf/plugin-link`.
|
|
3
|
+
*
|
|
4
|
+
* `<LinkLayer>` makes a page's links clickable while a navigation tool is
|
|
5
|
+
* active, with a `#link` slot to draw them yourself; `useLink()` follows links
|
|
6
|
+
* from code (and opens websites while a component uses it), and
|
|
7
|
+
* `useLinkEvent()` follows the plugin's events.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@embedpdf/plugin-link';
|
|
10
|
+
export { default as LinkLayer } from './link/LinkLayer.vue.cjs';
|
|
11
|
+
export { useLink, useLinkEvent } from './link/composables.cjs';
|
package/dist/link.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/link: the Vue surface of `@embedpdf/plugin-link`.
|
|
3
|
+
*
|
|
4
|
+
* `<LinkLayer>` makes a page's links clickable while a navigation tool is
|
|
5
|
+
* active, with a `#link` slot to draw them yourself; `useLink()` follows links
|
|
6
|
+
* from code (and opens websites while a component uses it), and
|
|
7
|
+
* `useLinkEvent()` follows the plugin's events.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@embedpdf/plugin-link';
|
|
10
|
+
export { default as LinkLayer } from './link/LinkLayer.vue.js';
|
|
11
|
+
export { useLink, useLinkEvent } from './link/composables.js';
|
package/dist/link.js
ADDED
package/dist/link.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|