@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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ResolvedCommand } from '@embedpdf/plugin-commands/contract';
|
|
2
|
+
import type { Orientation } from '@embedpdf/web';
|
|
3
|
+
import type { CollapsedGroupView, GroupDisclosureView, ToolbarPart } from './views.js';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
part: ToolbarPart;
|
|
6
|
+
/** `'live'` in the visible row, `'measure'` in the hidden measurement layer. */
|
|
7
|
+
layer: 'live' | 'measure';
|
|
8
|
+
/** Which way the toolbar runs: what a socket measures along, and where a default menu opens. */
|
|
9
|
+
orientation: Orientation;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {
|
|
12
|
+
command?(props: {
|
|
13
|
+
command: ResolvedCommand;
|
|
14
|
+
variant: string;
|
|
15
|
+
run: () => void;
|
|
16
|
+
}): unknown;
|
|
17
|
+
custom?(props: {
|
|
18
|
+
name: string;
|
|
19
|
+
variant: string;
|
|
20
|
+
layer: 'live' | 'measure';
|
|
21
|
+
measure: (length: number) => void;
|
|
22
|
+
}): unknown;
|
|
23
|
+
collapsed?(props: {
|
|
24
|
+
view: CollapsedGroupView;
|
|
25
|
+
}): unknown;
|
|
26
|
+
'group-trigger'?(props: {
|
|
27
|
+
view: GroupDisclosureView;
|
|
28
|
+
}): unknown;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
length: (key: string, length: number) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
onLength?: ((key: string, length: number) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import type { BarSchema, StripView as StripViewOf, StripViewGroup as StripViewGroupOf } from '@embedpdf/core-ui';
|
|
3
|
+
import type { ResolvedCommand } from '@embedpdf/plugin-commands/contract';
|
|
4
|
+
/** A group of a strip: its visible commands, in bar order. Groups are separator boundaries. */
|
|
5
|
+
export type StripViewGroup = StripViewGroupOf<ResolvedCommand>;
|
|
6
|
+
/** A strip, resolved: only visible commands, only groups with one; `execute` runs one for this subtree's document. */
|
|
7
|
+
export type StripView = StripViewOf<ResolvedCommand>;
|
|
8
|
+
/**
|
|
9
|
+
* The strip a bar shows now, as a ref: the schema says what could appear, each
|
|
10
|
+
* command's `visible` decides what does. `null` while nothing applies, so
|
|
11
|
+
* `v-if="strip"` is all the show-and-hide logic a strip needs. The ref changes
|
|
12
|
+
* only when a command in it changes. Pass a getter for a bar that changes.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useStripView(bar: MaybeRefOrGetter<BarSchema | undefined>): Readonly<Ref<StripView | null>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import type { BarSchema, StripView as StripViewOf, StripViewGroup as StripViewGroupOf } from '@embedpdf/core-ui';
|
|
3
|
+
import type { ResolvedCommand } from '@embedpdf/plugin-commands/contract';
|
|
4
|
+
/** A group of a strip: its visible commands, in bar order. Groups are separator boundaries. */
|
|
5
|
+
export type StripViewGroup = StripViewGroupOf<ResolvedCommand>;
|
|
6
|
+
/** A strip, resolved: only visible commands, only groups with one; `execute` runs one for this subtree's document. */
|
|
7
|
+
export type StripView = StripViewOf<ResolvedCommand>;
|
|
8
|
+
/**
|
|
9
|
+
* The strip a bar shows now, as a ref: the schema says what could appear, each
|
|
10
|
+
* command's `visible` decides what does. `null` while nothing applies, so
|
|
11
|
+
* `v-if="strip"` is all the show-and-hide logic a strip needs. The ref changes
|
|
12
|
+
* only when a command in it changes. Pass a getter for a bar that changes.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useStripView(bar: MaybeRefOrGetter<BarSchema | undefined>): Readonly<Ref<StripView | null>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The views `<Toolbar>`'s slots receive and the parts it draws: core-ui's
|
|
3
|
+
* (`layoutToolbar`, `groupMenuView`), over the commands plugin's resolved
|
|
4
|
+
* command.
|
|
5
|
+
*/
|
|
6
|
+
import type { CollapsedGroupView as CollapsedGroupViewOf, GroupDisclosureView as GroupDisclosureViewOf, OverflowMenuView as OverflowMenuViewOf, ToolbarPart as ToolbarPartOf } from '@embedpdf/core-ui';
|
|
7
|
+
import type { ResolvedCommand } from '@embedpdf/plugin-commands/contract';
|
|
8
|
+
/** What the `#collapsed` slot draws: a group folded into one control. */
|
|
9
|
+
export type CollapsedGroupView = CollapsedGroupViewOf<ResolvedCommand>;
|
|
10
|
+
/** What the `#group-trigger` slot draws: the button inside a group that shed some of its items. */
|
|
11
|
+
export type GroupDisclosureView = GroupDisclosureViewOf<ResolvedCommand>;
|
|
12
|
+
/** What the `#overflow-menu` slot draws: the "More" menu. */
|
|
13
|
+
export type OverflowMenuView = OverflowMenuViewOf<ResolvedCommand>;
|
|
14
|
+
/** One thing in the toolbar, as `<ToolbarPart>` draws it. */
|
|
15
|
+
export type ToolbarPart = ToolbarPartOf<ResolvedCommand>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The views `<Toolbar>`'s slots receive and the parts it draws: core-ui's
|
|
3
|
+
* (`layoutToolbar`, `groupMenuView`), over the commands plugin's resolved
|
|
4
|
+
* command.
|
|
5
|
+
*/
|
|
6
|
+
import type { CollapsedGroupView as CollapsedGroupViewOf, GroupDisclosureView as GroupDisclosureViewOf, OverflowMenuView as OverflowMenuViewOf, ToolbarPart as ToolbarPartOf } from '@embedpdf/core-ui';
|
|
7
|
+
import type { ResolvedCommand } from '@embedpdf/plugin-commands/contract';
|
|
8
|
+
/** What the `#collapsed` slot draws: a group folded into one control. */
|
|
9
|
+
export type CollapsedGroupView = CollapsedGroupViewOf<ResolvedCommand>;
|
|
10
|
+
/** What the `#group-trigger` slot draws: the button inside a group that shed some of its items. */
|
|
11
|
+
export type GroupDisclosureView = GroupDisclosureViewOf<ResolvedCommand>;
|
|
12
|
+
/** What the `#overflow-menu` slot draws: the "More" menu. */
|
|
13
|
+
export type OverflowMenuView = OverflowMenuViewOf<ResolvedCommand>;
|
|
14
|
+
/** One thing in the toolbar, as `<ToolbarPart>` draws it. */
|
|
15
|
+
export type ToolbarPart = ToolbarPartOf<ResolvedCommand>;
|
package/dist/toolbar.cjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const coreUi = require("@embedpdf/core-ui");
|
|
4
|
+
const strip = require("./strip-BSDB39Xh.cjs");
|
|
5
|
+
Object.defineProperty(exports, "DEFAULT_IMPORTANCE", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: () => coreUi.DEFAULT_IMPORTANCE
|
|
8
|
+
});
|
|
9
|
+
Object.defineProperty(exports, "PINNED", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => coreUi.PINNED
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "custom", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => coreUi.custom
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "group", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => coreUi.group
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "item", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: () => coreUi.item
|
|
24
|
+
});
|
|
25
|
+
exports.Toolbar = strip._sfc_main;
|
|
26
|
+
exports.useStripView = strip.useStripView;
|
|
27
|
+
//# sourceMappingURL=toolbar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/toolbar: `<Toolbar>`, which fits a bar of commands into the
|
|
3
|
+
* room it has, across or down (labels become icons, groups fold, the rest goes
|
|
4
|
+
* into a "More" menu), is one tab stop with arrow keys along it, and lets you
|
|
5
|
+
* draw every part through its slots; `useStripView()` for a strip that doesn't
|
|
6
|
+
* fit itself; and the schema a bar is written in.
|
|
7
|
+
*/
|
|
8
|
+
export { DEFAULT_IMPORTANCE, PINNED, custom, group, item } from '@embedpdf/core-ui';
|
|
9
|
+
export type { BarChild, BarGroup, BarItem, BarSchema, BarSections, CustomItem, Importance, OverflowRow, OverflowSection, Variant, } from '@embedpdf/core-ui';
|
|
10
|
+
export { default as Toolbar } from './toolbar/Toolbar.vue.cjs';
|
|
11
|
+
export { useStripView } from './toolbar/strip.cjs';
|
|
12
|
+
export type { StripView, StripViewGroup } from './toolbar/strip.cjs';
|
|
13
|
+
export type { CustomSlotCtx } from '@embedpdf/core-ui';
|
|
14
|
+
export type { CollapsedGroupView, GroupDisclosureView, OverflowMenuView } from './toolbar/views.cjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/toolbar: `<Toolbar>`, which fits a bar of commands into the
|
|
3
|
+
* room it has, across or down (labels become icons, groups fold, the rest goes
|
|
4
|
+
* into a "More" menu), is one tab stop with arrow keys along it, and lets you
|
|
5
|
+
* draw every part through its slots; `useStripView()` for a strip that doesn't
|
|
6
|
+
* fit itself; and the schema a bar is written in.
|
|
7
|
+
*/
|
|
8
|
+
export { DEFAULT_IMPORTANCE, PINNED, custom, group, item } from '@embedpdf/core-ui';
|
|
9
|
+
export type { BarChild, BarGroup, BarItem, BarSchema, BarSections, CustomItem, Importance, OverflowRow, OverflowSection, Variant, } from '@embedpdf/core-ui';
|
|
10
|
+
export { default as Toolbar } from './toolbar/Toolbar.vue.js';
|
|
11
|
+
export { useStripView } from './toolbar/strip.js';
|
|
12
|
+
export type { StripView, StripViewGroup } from './toolbar/strip.js';
|
|
13
|
+
export type { CustomSlotCtx } from '@embedpdf/core-ui';
|
|
14
|
+
export type { CollapsedGroupView, GroupDisclosureView, OverflowMenuView } from './toolbar/views.js';
|
package/dist/toolbar.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DEFAULT_IMPORTANCE, PINNED, custom, group, item } from "@embedpdf/core-ui";
|
|
2
|
+
import { _, u } from "./strip-C3wLonKB.js";
|
|
3
|
+
export {
|
|
4
|
+
DEFAULT_IMPORTANCE,
|
|
5
|
+
PINNED,
|
|
6
|
+
_ as Toolbar,
|
|
7
|
+
custom,
|
|
8
|
+
group,
|
|
9
|
+
item,
|
|
10
|
+
u as useStripView
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pluginViewManager = require("@embedpdf/plugin-view-manager");
|
|
4
|
+
const capabilities = require("./capabilities-DVNJmgy7.cjs");
|
|
5
|
+
const state = require("./state-M22NDJQo.cjs");
|
|
6
|
+
function useViewManager() {
|
|
7
|
+
return capabilities.useCapability(pluginViewManager.ViewManagerToken);
|
|
8
|
+
}
|
|
9
|
+
const useViewManagerState = state.stateComposable(pluginViewManager.viewManagerState);
|
|
10
|
+
function useViewManagerEvent(select, handler) {
|
|
11
|
+
capabilities.useCapabilityEvent(pluginViewManager.ViewManagerToken, select, handler);
|
|
12
|
+
}
|
|
13
|
+
exports.useViewManager = useViewManager;
|
|
14
|
+
exports.useViewManagerEvent = useViewManagerEvent;
|
|
15
|
+
exports.useViewManagerState = useViewManagerState;
|
|
16
|
+
Object.keys(pluginViewManager).forEach((k) => {
|
|
17
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => pluginViewManager[k]
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=view-manager.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-manager.cjs","sources":["../src/view-manager.ts"],"sourcesContent":["/**\n * @embedpdf/vue/view-manager: the Vue view of `@embedpdf/plugin-view-manager`,\n * panes that each hold their own tabs. It stays headless: it gives you the\n * panes, and you lay them out (split, grid, stacked), draw each pane's tab\n * strip over `pane.documentIds`, and wrap its body in\n * `<DocumentScope :id=\"pane.activeDocumentId\">` so its Stage shows that\n * pane's document.\n */\n\n// One line per feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-view-manager';\nimport { ViewManagerToken, viewManagerState } from '@embedpdf/plugin-view-manager';\nimport type { ViewManagerCapability } from '@embedpdf/plugin-view-manager';\nimport type { EventHook } from '@embedpdf/core';\nimport { useCapability, useCapabilityEvent } from './runtime/capabilities';\nimport { stateComposable } from './state';\n\n/** The view manager's API (panes and their tabs) for app code. The object never changes. */\nexport function useViewManager(): ViewManagerCapability {\n return useCapability(ViewManagerToken);\n}\n\n/**\n * The panes, in order, and the focused one's id, as refs (the page's State\n * table, declared once in `viewManagerState`). With a selector, one ref for\n * the value it picks, which updates only when that value changes.\n */\nexport const useViewManagerState = stateComposable(viewManagerState);\n\n/** Subscribe to one view-manager event while the component lives: `useViewManagerEvent((viewManager) => viewManager.onDocumentMoved, handler)`. */\nexport function useViewManagerEvent<Event>(\n select: (viewManager: ViewManagerCapability) => EventHook<Event>,\n handler: (event: Event) => void,\n): void {\n useCapabilityEvent(ViewManagerToken, select, handler);\n}\n"],"names":["useCapability","ViewManagerToken","stateComposable","viewManagerState","useCapabilityEvent"],"mappings":";;;;;AAkBO,SAAS,iBAAwC;AACtD,SAAOA,aAAAA,cAAcC,kBAAAA,gBAAgB;AACvC;AAOO,MAAM,sBAAsBC,MAAAA,gBAAgBC,kBAAAA,gBAAgB;AAG5D,SAAS,oBACd,QACA,SACM;AACNC,kCAAmBH,kBAAAA,kBAAkB,QAAQ,OAAO;AACtD;;;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/view-manager: the Vue view of `@embedpdf/plugin-view-manager`,
|
|
3
|
+
* panes that each hold their own tabs. It stays headless: it gives you the
|
|
4
|
+
* panes, and you lay them out (split, grid, stacked), draw each pane's tab
|
|
5
|
+
* strip over `pane.documentIds`, and wrap its body in
|
|
6
|
+
* `<DocumentScope :id="pane.activeDocumentId">` so its Stage shows that
|
|
7
|
+
* pane's document.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@embedpdf/plugin-view-manager';
|
|
10
|
+
import type { ViewManagerCapability } from '@embedpdf/plugin-view-manager';
|
|
11
|
+
import type { EventHook } from '@embedpdf/core';
|
|
12
|
+
/** The view manager's API (panes and their tabs) for app code. The object never changes. */
|
|
13
|
+
export declare function useViewManager(): ViewManagerCapability;
|
|
14
|
+
/**
|
|
15
|
+
* The panes, in order, and the focused one's id, as refs (the page's State
|
|
16
|
+
* table, declared once in `viewManagerState`). With a selector, one ref for
|
|
17
|
+
* the value it picks, which updates only when that value changes.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useViewManagerState: import("./state.cjs").StateComposable<{
|
|
20
|
+
panes: readonly import("@embedpdf/plugin-view-manager").PaneInfo[];
|
|
21
|
+
focusedPaneId: string | null;
|
|
22
|
+
}>;
|
|
23
|
+
/** Subscribe to one view-manager event while the component lives: `useViewManagerEvent((viewManager) => viewManager.onDocumentMoved, handler)`. */
|
|
24
|
+
export declare function useViewManagerEvent<Event>(select: (viewManager: ViewManagerCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @embedpdf/vue/view-manager: the Vue view of `@embedpdf/plugin-view-manager`,
|
|
3
|
+
* panes that each hold their own tabs. It stays headless: it gives you the
|
|
4
|
+
* panes, and you lay them out (split, grid, stacked), draw each pane's tab
|
|
5
|
+
* strip over `pane.documentIds`, and wrap its body in
|
|
6
|
+
* `<DocumentScope :id="pane.activeDocumentId">` so its Stage shows that
|
|
7
|
+
* pane's document.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@embedpdf/plugin-view-manager';
|
|
10
|
+
import type { ViewManagerCapability } from '@embedpdf/plugin-view-manager';
|
|
11
|
+
import type { EventHook } from '@embedpdf/core';
|
|
12
|
+
/** The view manager's API (panes and their tabs) for app code. The object never changes. */
|
|
13
|
+
export declare function useViewManager(): ViewManagerCapability;
|
|
14
|
+
/**
|
|
15
|
+
* The panes, in order, and the focused one's id, as refs (the page's State
|
|
16
|
+
* table, declared once in `viewManagerState`). With a selector, one ref for
|
|
17
|
+
* the value it picks, which updates only when that value changes.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useViewManagerState: import("./state.js").StateComposable<{
|
|
20
|
+
panes: readonly import("@embedpdf/plugin-view-manager").PaneInfo[];
|
|
21
|
+
focusedPaneId: string | null;
|
|
22
|
+
}>;
|
|
23
|
+
/** Subscribe to one view-manager event while the component lives: `useViewManagerEvent((viewManager) => viewManager.onDocumentMoved, handler)`. */
|
|
24
|
+
export declare function useViewManagerEvent<Event>(select: (viewManager: ViewManagerCapability) => EventHook<Event>, handler: (event: Event) => void): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ViewManagerToken, viewManagerState } from "@embedpdf/plugin-view-manager";
|
|
2
|
+
export * from "@embedpdf/plugin-view-manager";
|
|
3
|
+
import { a as useCapability, b as useCapabilityEvent } from "./capabilities-C7YzgPCX.js";
|
|
4
|
+
import { a as stateComposable } from "./state-DZg8q3v6.js";
|
|
5
|
+
function useViewManager() {
|
|
6
|
+
return useCapability(ViewManagerToken);
|
|
7
|
+
}
|
|
8
|
+
const useViewManagerState = stateComposable(viewManagerState);
|
|
9
|
+
function useViewManagerEvent(select, handler) {
|
|
10
|
+
useCapabilityEvent(ViewManagerToken, select, handler);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
useViewManager,
|
|
14
|
+
useViewManagerEvent,
|
|
15
|
+
useViewManagerState
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=view-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-manager.js","sources":["../src/view-manager.ts"],"sourcesContent":["/**\n * @embedpdf/vue/view-manager: the Vue view of `@embedpdf/plugin-view-manager`,\n * panes that each hold their own tabs. It stays headless: it gives you the\n * panes, and you lay them out (split, grid, stacked), draw each pane's tab\n * strip over `pane.documentIds`, and wrap its body in\n * `<DocumentScope :id=\"pane.activeDocumentId\">` so its Stage shows that\n * pane's document.\n */\n\n// One line per feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-view-manager';\nimport { ViewManagerToken, viewManagerState } from '@embedpdf/plugin-view-manager';\nimport type { ViewManagerCapability } from '@embedpdf/plugin-view-manager';\nimport type { EventHook } from '@embedpdf/core';\nimport { useCapability, useCapabilityEvent } from './runtime/capabilities';\nimport { stateComposable } from './state';\n\n/** The view manager's API (panes and their tabs) for app code. The object never changes. */\nexport function useViewManager(): ViewManagerCapability {\n return useCapability(ViewManagerToken);\n}\n\n/**\n * The panes, in order, and the focused one's id, as refs (the page's State\n * table, declared once in `viewManagerState`). With a selector, one ref for\n * the value it picks, which updates only when that value changes.\n */\nexport const useViewManagerState = stateComposable(viewManagerState);\n\n/** Subscribe to one view-manager event while the component lives: `useViewManagerEvent((viewManager) => viewManager.onDocumentMoved, handler)`. */\nexport function useViewManagerEvent<Event>(\n select: (viewManager: ViewManagerCapability) => EventHook<Event>,\n handler: (event: Event) => void,\n): void {\n useCapabilityEvent(ViewManagerToken, select, handler);\n}\n"],"names":[],"mappings":";;;;AAkBO,SAAS,iBAAwC;AACtD,SAAO,cAAc,gBAAgB;AACvC;AAOO,MAAM,sBAAsB,gBAAgB,gBAAgB;AAG5D,SAAS,oBACd,QACA,SACM;AACN,qBAAmB,kBAAkB,QAAQ,OAAO;AACtD;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,182 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/vue",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "3.0.0-next.16",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Vue adapter for EmbedPDF v3: composables, components with v-model and scoped slots, headless layers. The whole framework surface, one entry point per feature.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/embedpdf/embed-pdf-viewer.git",
|
|
12
|
+
"directory": "packages/framework/vue"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"require": "./dist/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./actions": {
|
|
26
|
+
"import": "./dist/actions.js",
|
|
27
|
+
"require": "./dist/actions.cjs"
|
|
28
|
+
},
|
|
29
|
+
"./anchored": {
|
|
30
|
+
"import": "./dist/anchored.js",
|
|
31
|
+
"require": "./dist/anchored.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./annotation": {
|
|
34
|
+
"import": "./dist/annotation.js",
|
|
35
|
+
"require": "./dist/annotation.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./attachment": {
|
|
38
|
+
"import": "./dist/attachment.js",
|
|
39
|
+
"require": "./dist/attachment.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./commands": {
|
|
42
|
+
"import": "./dist/commands.js",
|
|
43
|
+
"require": "./dist/commands.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./form": {
|
|
46
|
+
"import": "./dist/form.js",
|
|
47
|
+
"require": "./dist/form.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./i18n": {
|
|
50
|
+
"import": "./dist/i18n.js",
|
|
51
|
+
"require": "./dist/i18n.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./interaction": {
|
|
54
|
+
"import": "./dist/interaction.js",
|
|
55
|
+
"require": "./dist/interaction.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./link": {
|
|
58
|
+
"import": "./dist/link.js",
|
|
59
|
+
"require": "./dist/link.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./measurement": {
|
|
62
|
+
"import": "./dist/measurement.js",
|
|
63
|
+
"require": "./dist/measurement.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./metadata": {
|
|
66
|
+
"import": "./dist/metadata.js",
|
|
67
|
+
"require": "./dist/metadata.cjs"
|
|
68
|
+
},
|
|
69
|
+
"./outline": {
|
|
70
|
+
"import": "./dist/outline.js",
|
|
71
|
+
"require": "./dist/outline.cjs"
|
|
72
|
+
},
|
|
73
|
+
"./history": {
|
|
74
|
+
"import": "./dist/history.js",
|
|
75
|
+
"require": "./dist/history.cjs"
|
|
76
|
+
},
|
|
77
|
+
"./page-edit": {
|
|
78
|
+
"import": "./dist/page-edit.js",
|
|
79
|
+
"require": "./dist/page-edit.cjs"
|
|
80
|
+
},
|
|
81
|
+
"./page-view": {
|
|
82
|
+
"import": "./dist/page-view.js",
|
|
83
|
+
"require": "./dist/page-view.cjs"
|
|
84
|
+
},
|
|
85
|
+
"./redaction": {
|
|
86
|
+
"import": "./dist/redaction.js",
|
|
87
|
+
"require": "./dist/redaction.cjs"
|
|
88
|
+
},
|
|
89
|
+
"./render": {
|
|
90
|
+
"import": "./dist/render.js",
|
|
91
|
+
"require": "./dist/render.cjs"
|
|
92
|
+
},
|
|
93
|
+
"./runtime": {
|
|
94
|
+
"import": "./dist/runtime.js",
|
|
95
|
+
"require": "./dist/runtime.cjs"
|
|
96
|
+
},
|
|
97
|
+
"./search": {
|
|
98
|
+
"import": "./dist/search.js",
|
|
99
|
+
"require": "./dist/search.cjs"
|
|
100
|
+
},
|
|
101
|
+
"./selection": {
|
|
102
|
+
"import": "./dist/selection.js",
|
|
103
|
+
"require": "./dist/selection.cjs"
|
|
104
|
+
},
|
|
105
|
+
"./shell": {
|
|
106
|
+
"import": "./dist/shell.js",
|
|
107
|
+
"require": "./dist/shell.cjs"
|
|
108
|
+
},
|
|
109
|
+
"./signature": {
|
|
110
|
+
"import": "./dist/signature.js",
|
|
111
|
+
"require": "./dist/signature.cjs"
|
|
112
|
+
},
|
|
113
|
+
"./stage": {
|
|
114
|
+
"import": "./dist/stage.js",
|
|
115
|
+
"require": "./dist/stage.cjs"
|
|
116
|
+
},
|
|
117
|
+
"./stamp": {
|
|
118
|
+
"import": "./dist/stamp.js",
|
|
119
|
+
"require": "./dist/stamp.cjs"
|
|
120
|
+
},
|
|
121
|
+
"./toolbar": {
|
|
122
|
+
"import": "./dist/toolbar.js",
|
|
123
|
+
"require": "./dist/toolbar.cjs"
|
|
124
|
+
},
|
|
125
|
+
"./view-manager": {
|
|
126
|
+
"import": "./dist/view-manager.js",
|
|
127
|
+
"require": "./dist/view-manager.cjs"
|
|
128
|
+
},
|
|
129
|
+
"./package.json": "./package.json"
|
|
130
|
+
},
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"@embedpdf/core-annotation": "3.0.0-next.16",
|
|
133
|
+
"@embedpdf/core-geometry": "3.0.0-next.16",
|
|
134
|
+
"@embedpdf/core": "3.0.0-next.16",
|
|
135
|
+
"@embedpdf/plugin-annotation": "3.0.0-next.16",
|
|
136
|
+
"@embedpdf/plugin-commands": "3.0.0-next.16",
|
|
137
|
+
"@embedpdf/plugin-attachment": "3.0.0-next.16",
|
|
138
|
+
"@embedpdf/plugin-i18n": "3.0.0-next.16",
|
|
139
|
+
"@embedpdf/plugin-interaction": "3.0.0-next.16",
|
|
140
|
+
"@embedpdf/plugin-form": "3.0.0-next.16",
|
|
141
|
+
"@embedpdf/plugin-metadata": "3.0.0-next.16",
|
|
142
|
+
"@embedpdf/plugin-link": "3.0.0-next.16",
|
|
143
|
+
"@embedpdf/plugin-outline": "3.0.0-next.16",
|
|
144
|
+
"@embedpdf/plugin-history": "3.0.0-next.16",
|
|
145
|
+
"@embedpdf/plugin-redaction": "3.0.0-next.16",
|
|
146
|
+
"@embedpdf/plugin-page-edit": "3.0.0-next.16",
|
|
147
|
+
"@embedpdf/plugin-search": "3.0.0-next.16",
|
|
148
|
+
"@embedpdf/plugin-selection": "3.0.0-next.16",
|
|
149
|
+
"@embedpdf/plugin-render": "3.0.0-next.16",
|
|
150
|
+
"@embedpdf/plugin-signature": "3.0.0-next.16",
|
|
151
|
+
"@embedpdf/plugin-shell": "3.0.0-next.16",
|
|
152
|
+
"@embedpdf/plugin-stage": "3.0.0-next.16",
|
|
153
|
+
"@embedpdf/plugin-stamp": "3.0.0-next.16",
|
|
154
|
+
"@embedpdf/plugin-view-manager": "3.0.0-next.16",
|
|
155
|
+
"@embedpdf/core-signature": "3.0.0-next.16",
|
|
156
|
+
"@embedpdf/core-stage": "3.0.0-next.16",
|
|
157
|
+
"@embedpdf/core-ui": "3.0.0-next.16",
|
|
158
|
+
"@embedpdf/web": "3.0.0-next.16",
|
|
159
|
+
"@embedpdf/plugin-actions": "3.0.0-next.16",
|
|
160
|
+
"@embedpdf/plugin-measurement": "3.0.0-next.16"
|
|
161
|
+
},
|
|
162
|
+
"peerDependencies": {
|
|
163
|
+
"vue": ">=3.4"
|
|
164
|
+
},
|
|
165
|
+
"devDependencies": {
|
|
166
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
167
|
+
"@vue/test-utils": "^2.4.6",
|
|
168
|
+
"happy-dom": "^20.11.0",
|
|
169
|
+
"typescript": "~5.8.3",
|
|
170
|
+
"vite": "^6.3.5",
|
|
171
|
+
"vitest": "^2.1.9",
|
|
172
|
+
"vue": "^3.5.13",
|
|
173
|
+
"vue-tsc": "^3.2.4",
|
|
174
|
+
"@embedpdf/tooling-build": "0.0.0",
|
|
175
|
+
"@embedpdf/engine": "3.0.0-next.16"
|
|
176
|
+
},
|
|
177
|
+
"scripts": {
|
|
178
|
+
"build": "vite build && vue-tsc -p tsconfig.build.json && node ../../../tooling/build/src/fully-specify-imports.mjs --cjs-types && node ../../../tooling/build/src/check-framework-package.mjs",
|
|
179
|
+
"typecheck": "vue-tsc -p tsconfig.json --noEmit",
|
|
180
|
+
"test": "vitest run"
|
|
181
|
+
}
|
|
6
182
|
}
|