@embedpdf/react 3.0.0-next.15 → 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/dist/{AnnotationList-CkijRHet-HEFNUIZe.d.ts → AnnotationList-DcyhF2kU-CiBFOq1z.d.cts} +5 -4
- package/dist/{AnnotationList-CkijRHet-HEFNUIZe.d.cts → AnnotationList-DcyhF2kU-CiBFOq1z.d.ts} +5 -4
- package/dist/actions.cjs +2 -2
- package/dist/actions.js +2 -2
- package/dist/{annotation-C9dVwo9b.d.cts → annotation-3UvABfJm.d.cts} +5 -2
- package/dist/{annotation-Dex5EBda.cjs → annotation-BNHQpMKv.cjs} +11 -35
- package/dist/annotation-BNHQpMKv.cjs.map +1 -0
- package/dist/{annotation-C1ttM8Wj.js → annotation-CDI8CFb3.js} +12 -36
- package/dist/annotation-CDI8CFb3.js.map +1 -0
- package/dist/{annotation-B48UT2ln.d.ts → annotation-DhEfs0pH.d.ts} +5 -2
- package/dist/annotation.cjs +1 -1
- package/dist/annotation.d.cts +1 -1
- package/dist/annotation.d.ts +1 -1
- package/dist/annotation.js +1 -1
- package/dist/attachment.cjs +39 -0
- package/dist/attachment.cjs.map +1 -0
- package/dist/attachment.d.cts +29 -0
- package/dist/attachment.d.ts +29 -0
- package/dist/attachment.js +28 -0
- package/dist/attachment.js.map +1 -0
- package/dist/commands.cjs +2 -2
- package/dist/commands.js +2 -2
- package/dist/{form-55izw0jS.js → form-BSGvjA5D.js} +3 -3
- package/dist/{form-55izw0jS.js.map → form-BSGvjA5D.js.map} +1 -1
- package/dist/{form-BNqQfGGH.cjs → form-BgztZyOK.cjs} +3 -3
- package/dist/{form-BNqQfGGH.cjs.map → form-BgztZyOK.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.d.cts +1 -1
- package/dist/form.d.ts +1 -1
- package/dist/form.js +1 -1
- package/dist/history.cjs +2 -2
- package/dist/history.js +2 -2
- package/dist/i18n.cjs +2 -2
- package/dist/i18n.js +2 -2
- package/dist/index.cjs +32 -5
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +11 -7
- package/dist/interaction.cjs +2 -2
- package/dist/interaction.js +2 -2
- package/dist/link.cjs +1 -1
- package/dist/link.js +1 -1
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/metadata.cjs +2 -2
- package/dist/metadata.js +2 -2
- package/dist/outline.cjs +39 -0
- package/dist/outline.cjs.map +1 -0
- package/dist/outline.d.cts +31 -0
- package/dist/outline.d.ts +31 -0
- package/dist/outline.js +28 -0
- package/dist/outline.js.map +1 -0
- package/dist/page-edit.cjs +9 -1
- package/dist/page-edit.cjs.map +1 -1
- package/dist/page-edit.d.cts +12 -1
- package/dist/page-edit.d.ts +12 -1
- package/dist/page-edit.js +10 -3
- package/dist/page-edit.js.map +1 -1
- package/dist/page-view.cjs +1 -1
- package/dist/page-view.js +1 -1
- package/dist/redaction.cjs +2 -2
- package/dist/redaction.d.cts +1 -1
- package/dist/redaction.d.ts +1 -1
- package/dist/redaction.js +2 -2
- package/dist/render.cjs +2 -2
- package/dist/render.js +2 -2
- package/dist/{runtime-fzpGv78v.cjs → runtime-BfnpyfY0.cjs} +3 -2
- package/dist/runtime-BfnpyfY0.cjs.map +1 -0
- package/dist/{runtime-B6xcPsEb.js → runtime-tD5iJU83.js} +4 -3
- package/dist/runtime-tD5iJU83.js.map +1 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/search.cjs +2 -2
- package/dist/search.d.cts +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.js +2 -2
- package/dist/selection.cjs +2 -2
- package/dist/selection.js +2 -2
- package/dist/shell.cjs +2 -2
- package/dist/shell.js +2 -2
- package/dist/signature.cjs +2 -2
- package/dist/signature.d.cts +1 -1
- package/dist/signature.d.ts +1 -1
- package/dist/signature.js +2 -2
- package/dist/{stage-BIG6aeVd.cjs → stage-B7BG2e8Q.cjs} +2 -2
- package/dist/{stage-BIG6aeVd.cjs.map → stage-B7BG2e8Q.cjs.map} +1 -1
- package/dist/{stage-DoVekb83.js → stage-BqfBjDu6.js} +2 -2
- package/dist/{stage-DoVekb83.js.map → stage-BqfBjDu6.js.map} +1 -1
- package/dist/stage.cjs +1 -1
- package/dist/stage.js +1 -1
- package/dist/stamp.cjs +2 -2
- package/dist/stamp.js +2 -2
- package/dist/{state-CbgxhwLA.js → state-CzI2KlZb.js} +2 -2
- package/dist/{state-CbgxhwLA.js.map → state-CzI2KlZb.js.map} +1 -1
- package/dist/{state-CsfZy_Eq.cjs → state-Dtf8HAue.cjs} +2 -2
- package/dist/{state-CsfZy_Eq.cjs.map → state-Dtf8HAue.cjs.map} +1 -1
- package/dist/toolbar.cjs +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/view-manager.cjs +2 -2
- package/dist/view-manager.js +2 -2
- package/package.json +40 -30
- package/dist/annotation-C1ttM8Wj.js.map +0 -1
- package/dist/annotation-Dex5EBda.cjs.map +0 -1
- package/dist/runtime-B6xcPsEb.js.map +0 -1
- package/dist/runtime-fzpGv78v.cjs.map +0 -1
package/dist/form.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_form = require("./form-
|
|
2
|
+
const require_form = require("./form-BgztZyOK.cjs");
|
|
3
3
|
exports.FormLayer = require_form.FormLayer;
|
|
4
4
|
exports.useForm = require_form.useForm;
|
|
5
5
|
exports.useFormEvent = require_form.useFormEvent;
|
package/dist/form.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as StateHook, t as SettingsHook } from "./state-0K1I5cM4.cjs";
|
|
2
|
-
import { i as FormKind, n as FormFieldDTO } from "./AnnotationList-
|
|
2
|
+
import { i as FormKind, n as FormFieldDTO } from "./AnnotationList-DcyhF2kU-CiBFOq1z.cjs";
|
|
3
3
|
import { EventHook } from "@embedpdf/core";
|
|
4
4
|
import { FormCapability, FormFieldRef, FormFieldValue } from "@embedpdf/plugin-form";
|
|
5
5
|
export * from "@embedpdf/plugin-form";
|
package/dist/form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as StateHook, t as SettingsHook } from "./state-0K1I5cM4.js";
|
|
2
|
-
import { i as FormKind, n as FormFieldDTO } from "./AnnotationList-
|
|
2
|
+
import { i as FormKind, n as FormFieldDTO } from "./AnnotationList-DcyhF2kU-CiBFOq1z.js";
|
|
3
3
|
import { EventHook } from "@embedpdf/core";
|
|
4
4
|
import { FormCapability, FormFieldRef, FormFieldValue } from "@embedpdf/plugin-form";
|
|
5
5
|
export * from "@embedpdf/plugin-form";
|
package/dist/form.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as useFormState, i as useFormSettings, n as useForm, o as useFormValue, r as useFormEvent, t as FormLayer } from "./form-
|
|
1
|
+
import { a as useFormState, i as useFormSettings, n as useForm, o as useFormValue, r as useFormEvent, t as FormLayer } from "./form-BSGvjA5D.js";
|
|
2
2
|
export * from "@embedpdf/plugin-form";
|
|
3
3
|
export { FormLayer, useForm, useFormEvent, useFormSettings, useFormState, useFormValue };
|
package/dist/history.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
let _embedpdf_plugin_history = require("@embedpdf/plugin-history");
|
|
6
6
|
//#region src/history.ts
|
|
7
7
|
/**
|
package/dist/history.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as useCapability, p as useCapabilityEvent } from "./runtime-
|
|
2
|
-
import { n as stateHook } from "./state-
|
|
1
|
+
import { f as useCapability, p as useCapabilityEvent } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { HistoryToken, historyState } from "@embedpdf/plugin-history";
|
|
4
4
|
export * from "@embedpdf/plugin-history";
|
|
5
5
|
//#region src/history.ts
|
package/dist/i18n.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
let _embedpdf_plugin_i18n = require("@embedpdf/plugin-i18n");
|
|
6
6
|
//#region src/i18n.ts
|
|
7
7
|
/** The i18n capability: `t`, `setLocale`, `addTranslations`, `registerLocale`, the settings calls. */
|
package/dist/i18n.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as useSelector, f as useCapability, p as useCapabilityEvent } from "./runtime-
|
|
2
|
-
import { n as stateHook, t as settingsHook } from "./state-
|
|
1
|
+
import { E as useSelector, f as useCapability, p as useCapabilityEvent } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook, t as settingsHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { I18nToken, i18nState } from "@embedpdf/plugin-i18n";
|
|
4
4
|
export * from "@embedpdf/plugin-i18n";
|
|
5
5
|
//#region src/i18n.ts
|
package/dist/index.cjs
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
const require_anchored = require("./anchored.cjs");
|
|
6
6
|
const require_stage_scope = require("./stage-scope-CQgCuf1w.cjs");
|
|
7
|
-
const require_stage = require("./stage-
|
|
7
|
+
const require_stage = require("./stage-B7BG2e8Q.cjs");
|
|
8
8
|
const require_interaction = require("./interaction.cjs");
|
|
9
9
|
const require_page_view = require("./page-view.cjs");
|
|
10
10
|
const require_render = require("./render.cjs");
|
|
11
11
|
const require_selection = require("./selection.cjs");
|
|
12
|
-
const require_annotation = require("./annotation-
|
|
12
|
+
const require_annotation = require("./annotation-BNHQpMKv.cjs");
|
|
13
13
|
const require_link = require("./link.cjs");
|
|
14
14
|
const require_actions = require("./actions.cjs");
|
|
15
15
|
const require_view_manager = require("./view-manager.cjs");
|
|
16
16
|
const require_page_edit = require("./page-edit.cjs");
|
|
17
17
|
const require_metadata = require("./metadata.cjs");
|
|
18
|
+
const require_outline = require("./outline.cjs");
|
|
19
|
+
const require_attachment = require("./attachment.cjs");
|
|
18
20
|
const require_history = require("./history.cjs");
|
|
19
21
|
const require_redaction = require("./redaction.cjs");
|
|
20
22
|
const require_measurement = require("./measurement.cjs");
|
|
21
23
|
const require_stamp = require("./stamp.cjs");
|
|
22
24
|
const require_signature = require("./signature.cjs");
|
|
23
|
-
const require_form = require("./form-
|
|
25
|
+
const require_form = require("./form-BgztZyOK.cjs");
|
|
24
26
|
const require_search = require("./search.cjs");
|
|
25
27
|
const require_i18n = require("./i18n.cjs");
|
|
26
28
|
const require_commands = require("./commands.cjs");
|
|
@@ -147,6 +149,9 @@ exports.useAnnotationList = require_annotation.useAnnotationList;
|
|
|
147
149
|
exports.useAnnotationProperties = require_annotation.useAnnotationProperties;
|
|
148
150
|
exports.useAnnotationSettings = require_annotation.useAnnotationSettings;
|
|
149
151
|
exports.useAnnotationState = require_annotation.useAnnotationState;
|
|
152
|
+
exports.useAttachment = require_attachment.useAttachment;
|
|
153
|
+
exports.useAttachmentEvent = require_attachment.useAttachmentEvent;
|
|
154
|
+
exports.useAttachmentState = require_attachment.useAttachmentState;
|
|
150
155
|
exports.useCapability = require_runtime.useCapability;
|
|
151
156
|
exports.useCapabilityEvent = require_runtime.useCapabilityEvent;
|
|
152
157
|
exports.useCommand = require_commands.useCommand;
|
|
@@ -195,8 +200,12 @@ exports.useMetadataState = require_metadata.useMetadataState;
|
|
|
195
200
|
exports.useOptionalCapability = require_runtime.useOptionalCapability;
|
|
196
201
|
exports.useOptionalProjectorBinding = require_anchored.useOptionalProjectorBinding;
|
|
197
202
|
exports.useOptionalSelector = require_runtime.useOptionalSelector;
|
|
203
|
+
exports.useOutline = require_outline.useOutline;
|
|
204
|
+
exports.useOutlineEvent = require_outline.useOutlineEvent;
|
|
205
|
+
exports.useOutlineState = require_outline.useOutlineState;
|
|
198
206
|
exports.usePage = require_runtime.usePage;
|
|
199
207
|
exports.usePageEdit = require_page_edit.usePageEdit;
|
|
208
|
+
exports.usePageEditState = require_page_edit.usePageEditState;
|
|
200
209
|
exports.usePageList = require_runtime.usePageList;
|
|
201
210
|
exports.usePageScale = require_measurement.usePageScale;
|
|
202
211
|
exports.usePendingRedactions = require_redaction.usePendingRedactions;
|
|
@@ -360,6 +369,24 @@ Object.keys(_embedpdf_plugin_metadata).forEach(function(k) {
|
|
|
360
369
|
}
|
|
361
370
|
});
|
|
362
371
|
});
|
|
372
|
+
var _embedpdf_plugin_outline = require("@embedpdf/plugin-outline");
|
|
373
|
+
Object.keys(_embedpdf_plugin_outline).forEach(function(k) {
|
|
374
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
375
|
+
enumerable: true,
|
|
376
|
+
get: function() {
|
|
377
|
+
return _embedpdf_plugin_outline[k];
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
var _embedpdf_plugin_attachment = require("@embedpdf/plugin-attachment");
|
|
382
|
+
Object.keys(_embedpdf_plugin_attachment).forEach(function(k) {
|
|
383
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
384
|
+
enumerable: true,
|
|
385
|
+
get: function() {
|
|
386
|
+
return _embedpdf_plugin_attachment[k];
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
});
|
|
363
390
|
var _embedpdf_plugin_history = require("@embedpdf/plugin-history");
|
|
364
391
|
Object.keys(_embedpdf_plugin_history).forEach(function(k) {
|
|
365
392
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,8 @@ import { i as stateHook, n as StateHook, r as settingsHook, t as SettingsHook }
|
|
|
2
2
|
import { ActionsUiHandlers, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter } from "./actions.cjs";
|
|
3
3
|
import { a as AnchoredSide, c as ProjectorProvider, d as ViewProjector, f as useOptionalProjectorBinding, i as AnchoredProps, l as ShownPages, n as Anchored, o as PageViewEnv, p as useProjectorBinding, r as AnchoredPlacement, s as ProjectorBinding, t as AnchorTarget, u as ShownPagesProvider } from "./anchored-DzN3JywS.cjs";
|
|
4
4
|
import { A as usePageList, C as useDocumentsEvent, D as useOptionalCapability, E as useKernelValue, M as useViewerSettings, N as EpdfTheme, O as useOptionalSelector, P as epdfTheme, S as useDocuments, T as useKernel, _ as useCapability, a as EmbedPDF, b as useDocumentId, c as PageContextValue, d as ViewerProps, f as makePageContext, g as useActiveDocumentId, h as shallowArray, i as DocumentScopeProps, j as useSelector, k as usePage, l as PageProvider, m as saveFile, n as DocumentGateProps, o as KernelProvider, p as mountWebFont, r as DocumentScope, s as KernelProviderProps, t as DocumentGate, u as Viewer, v as useCapabilityEvent, w as useDocumentsState, x as useDocumentScope, y as useDocument } from "./runtime-DBEBlpQV.cjs";
|
|
5
|
-
import { A as useCommentThreads, B as useAnnotationSettings, C as useAnnotation, D as useAnnotationList, E as useAnnotationEvent, F as AnnotationDraftMenuProps, I as AnnotationMenu, L as AnnotationMenuProps, M as useFilePickerProvider, N as useRichTextEditor, O as useAnnotationProperties, P as AnnotationDraftMenu, R as AnnotationRotationBadge, S as filePickerProvider, T as useAnnotationDefaults, V as useAnnotationState, _ as RichTextEditor, a as AnnotationLayerComponents, b as TextAlign, c as AnnotationRendererProps, d as CreationDraftAnchor, f as FieldValues, g as RenderItem, h as LineEndings, i as AnnotationLayer, j as useComments, k as useCommentThread, l as BehaviorRendererProps, m as LineEnding, n as AnnotationFrame, o as AnnotationLayerProps, p as HandleProps, r as AnnotationInteractiveContext, s as AnnotationRenderer, t as AnnotationFlags, u as CommentThreadView, v as RotationHandleProps, w as useAnnotationAnchor, x as TextStyle, y as Style, z as AnnotationRotationBadgeProps } from "./annotation-
|
|
5
|
+
import { A as useCommentThreads, B as useAnnotationSettings, C as useAnnotation, D as useAnnotationList, E as useAnnotationEvent, F as AnnotationDraftMenuProps, I as AnnotationMenu, L as AnnotationMenuProps, M as useFilePickerProvider, N as useRichTextEditor, O as useAnnotationProperties, P as AnnotationDraftMenu, R as AnnotationRotationBadge, S as filePickerProvider, T as useAnnotationDefaults, V as useAnnotationState, _ as RichTextEditor, a as AnnotationLayerComponents, b as TextAlign, c as AnnotationRendererProps, d as CreationDraftAnchor, f as FieldValues, g as RenderItem, h as LineEndings, i as AnnotationLayer, j as useComments, k as useCommentThread, l as BehaviorRendererProps, m as LineEnding, n as AnnotationFrame, o as AnnotationLayerProps, p as HandleProps, r as AnnotationInteractiveContext, s as AnnotationRenderer, t as AnnotationFlags, u as CommentThreadView, v as RotationHandleProps, w as useAnnotationAnchor, x as TextStyle, y as Style, z as AnnotationRotationBadgeProps } from "./annotation-3UvABfJm.cjs";
|
|
6
|
+
import { useAttachment, useAttachmentEvent, useAttachmentState } from "./attachment.cjs";
|
|
6
7
|
import { formatShortcut, standardCommands, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings } from "./commands.cjs";
|
|
7
8
|
import { FormLayer, useForm, useFormEvent, useFormSettings, useFormState, useFormValue } from "./form.cjs";
|
|
8
9
|
import { useHistory, useHistoryEvent, useHistoryState } from "./history.cjs";
|
|
@@ -14,8 +15,9 @@ import { PagePointerSource, SvgCursorOptions, ToolCursorImage, ToolCursorSpec, c
|
|
|
14
15
|
import { SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, copySelection, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState } from "./selection.cjs";
|
|
15
16
|
import { LinkLayer, LinkLayerProps, LinkRenderProps, useLink, useLinkEvent } from "./link.cjs";
|
|
16
17
|
import { useViewManager, useViewManagerEvent, useViewManagerState } from "./view-manager.cjs";
|
|
17
|
-
import { usePageEdit } from "./page-edit.cjs";
|
|
18
|
+
import { usePageEdit, usePageEditState } from "./page-edit.cjs";
|
|
18
19
|
import { useMetadata, useMetadataEvent, useMetadataState } from "./metadata.cjs";
|
|
20
|
+
import { useOutline, useOutlineEvent, useOutlineState } from "./outline.cjs";
|
|
19
21
|
import { usePendingRedactions, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState } from "./redaction.cjs";
|
|
20
22
|
import { useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, usePageScale } from "./measurement.cjs";
|
|
21
23
|
import { useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows } from "./signature.cjs";
|
|
@@ -26,6 +28,7 @@ import { BarChild, BarGroup, BarItem, BarSchema, BarSections, CollapsedGroupView
|
|
|
26
28
|
export * from "@embedpdf/core";
|
|
27
29
|
export * from "@embedpdf/plugin-actions";
|
|
28
30
|
export * from "@embedpdf/plugin-annotation";
|
|
31
|
+
export * from "@embedpdf/plugin-attachment";
|
|
29
32
|
export * from "@embedpdf/plugin-commands";
|
|
30
33
|
export * from "@embedpdf/plugin-form";
|
|
31
34
|
export * from "@embedpdf/plugin-history";
|
|
@@ -38,10 +41,11 @@ export * from "@embedpdf/plugin-link";
|
|
|
38
41
|
export * from "@embedpdf/plugin-view-manager";
|
|
39
42
|
export * from "@embedpdf/plugin-page-edit";
|
|
40
43
|
export * from "@embedpdf/plugin-metadata";
|
|
44
|
+
export * from "@embedpdf/plugin-outline";
|
|
41
45
|
export * from "@embedpdf/plugin-redaction";
|
|
42
46
|
export * from "@embedpdf/plugin-measurement";
|
|
43
47
|
export * from "@embedpdf/plugin-signature";
|
|
44
48
|
export * from "@embedpdf/plugin-search";
|
|
45
49
|
export * from "@embedpdf/plugin-stamp";
|
|
46
50
|
export * from "@embedpdf/plugin-shell";
|
|
47
|
-
export { ActionsUiHandlers, type AnchorTarget, Anchored, type AnchoredPlacement, AnchoredProps, type AnchoredSide, AnnotationDraftMenu, type AnnotationDraftMenuProps, type AnnotationFlags, AnnotationFrame, AnnotationInteractiveContext, AnnotationLayer, AnnotationLayerComponents, AnnotationLayerProps, AnnotationMenu, type AnnotationMenuProps, AnnotationRenderer, AnnotationRendererProps, AnnotationRotationBadge, type AnnotationRotationBadgeProps, type BarChild, type BarGroup, type BarItem, type BarSchema, type BarSections, BehaviorRendererProps, type ByteStore, CollapsedGroupView, CommentThreadView, type CreationDraftAnchor, type CustomItem, type CustomSlotCtx, DEFAULT_IMPORTANCE, DocumentGate, DocumentGateProps, DocumentScope, DocumentScopeProps, EmbedPDF, type EpdfTheme, type FieldValues, FormLayer, GroupDisclosureView, HandleProps, type Importance, KernelProvider, KernelProviderProps, type LineEnding, type LineEndings, LinkLayer, LinkLayerProps, LinkRenderProps, OverflowMenuView, type OverflowRow, type OverflowSection, PINNED, PageContextValue, PagePointerSource, PageProvider, PageView, type PageViewEnv, PageViewProps, ProjectorBinding, ProjectorProvider, type RenderItem, RenderLayer, RenderLayerProps, RichTextEditor, RotationHandleProps, Scrollbar, type ScrollbarAxis, type ScrollbarProps, SearchLayer, SearchLayerProps, SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, SettingsHook, ShownPages, ShownPagesProvider, Stage, StageProps, StageScope, type StageScopeProps, type StageTokenProp, StateHook, StripView, StripViewGroup, type Style, type SurfaceFocusOptions, SurfaceHandle, type SvgCursorOptions, type TextAlign, type TextStyle, type ToolCursorImage, type ToolCursorSpec, Toolbar, ToolbarProps, type Variant, type ViewProjector, Viewer, ViewerProps, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, usePage, usePageEdit, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
|
51
|
+
export { ActionsUiHandlers, type AnchorTarget, Anchored, type AnchoredPlacement, AnchoredProps, type AnchoredSide, AnnotationDraftMenu, type AnnotationDraftMenuProps, type AnnotationFlags, AnnotationFrame, AnnotationInteractiveContext, AnnotationLayer, AnnotationLayerComponents, AnnotationLayerProps, AnnotationMenu, type AnnotationMenuProps, AnnotationRenderer, AnnotationRendererProps, AnnotationRotationBadge, type AnnotationRotationBadgeProps, type BarChild, type BarGroup, type BarItem, type BarSchema, type BarSections, BehaviorRendererProps, type ByteStore, CollapsedGroupView, CommentThreadView, type CreationDraftAnchor, type CustomItem, type CustomSlotCtx, DEFAULT_IMPORTANCE, DocumentGate, DocumentGateProps, DocumentScope, DocumentScopeProps, EmbedPDF, type EpdfTheme, type FieldValues, FormLayer, GroupDisclosureView, HandleProps, type Importance, KernelProvider, KernelProviderProps, type LineEnding, type LineEndings, LinkLayer, LinkLayerProps, LinkRenderProps, OverflowMenuView, type OverflowRow, type OverflowSection, PINNED, PageContextValue, PagePointerSource, PageProvider, PageView, type PageViewEnv, PageViewProps, ProjectorBinding, ProjectorProvider, type RenderItem, RenderLayer, RenderLayerProps, RichTextEditor, RotationHandleProps, Scrollbar, type ScrollbarAxis, type ScrollbarProps, SearchLayer, SearchLayerProps, SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, SettingsHook, ShownPages, ShownPagesProvider, Stage, StageProps, StageScope, type StageScopeProps, type StageTokenProp, StateHook, StripView, StripViewGroup, type Style, type SurfaceFocusOptions, SurfaceHandle, type SvgCursorOptions, type TextAlign, type TextStyle, type ToolCursorImage, type ToolCursorSpec, Toolbar, ToolbarProps, type Variant, type ViewProjector, Viewer, ViewerProps, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useAttachment, useAttachmentEvent, useAttachmentState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, useOutline, useOutlineEvent, useOutlineState, usePage, usePageEdit, usePageEditState, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { i as stateHook, n as StateHook, r as settingsHook, t as SettingsHook }
|
|
|
2
2
|
import { ActionsUiHandlers, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter } from "./actions.js";
|
|
3
3
|
import { a as AnchoredSide, c as ProjectorProvider, d as ViewProjector, f as useOptionalProjectorBinding, i as AnchoredProps, l as ShownPages, n as Anchored, o as PageViewEnv, p as useProjectorBinding, r as AnchoredPlacement, s as ProjectorBinding, t as AnchorTarget, u as ShownPagesProvider } from "./anchored-DeX95xSd.js";
|
|
4
4
|
import { A as usePageList, C as useDocumentsEvent, D as useOptionalCapability, E as useKernelValue, M as useViewerSettings, N as EpdfTheme, O as useOptionalSelector, P as epdfTheme, S as useDocuments, T as useKernel, _ as useCapability, a as EmbedPDF, b as useDocumentId, c as PageContextValue, d as ViewerProps, f as makePageContext, g as useActiveDocumentId, h as shallowArray, i as DocumentScopeProps, j as useSelector, k as usePage, l as PageProvider, m as saveFile, n as DocumentGateProps, o as KernelProvider, p as mountWebFont, r as DocumentScope, s as KernelProviderProps, t as DocumentGate, u as Viewer, v as useCapabilityEvent, w as useDocumentsState, x as useDocumentScope, y as useDocument } from "./runtime-V3MVMb91.js";
|
|
5
|
-
import { A as useCommentThreads, B as useAnnotationSettings, C as useAnnotation, D as useAnnotationList, E as useAnnotationEvent, F as AnnotationDraftMenuProps, I as AnnotationMenu, L as AnnotationMenuProps, M as useFilePickerProvider, N as useRichTextEditor, O as useAnnotationProperties, P as AnnotationDraftMenu, R as AnnotationRotationBadge, S as filePickerProvider, T as useAnnotationDefaults, V as useAnnotationState, _ as RichTextEditor, a as AnnotationLayerComponents, b as TextAlign, c as AnnotationRendererProps, d as CreationDraftAnchor, f as FieldValues, g as RenderItem, h as LineEndings, i as AnnotationLayer, j as useComments, k as useCommentThread, l as BehaviorRendererProps, m as LineEnding, n as AnnotationFrame, o as AnnotationLayerProps, p as HandleProps, r as AnnotationInteractiveContext, s as AnnotationRenderer, t as AnnotationFlags, u as CommentThreadView, v as RotationHandleProps, w as useAnnotationAnchor, x as TextStyle, y as Style, z as AnnotationRotationBadgeProps } from "./annotation-
|
|
5
|
+
import { A as useCommentThreads, B as useAnnotationSettings, C as useAnnotation, D as useAnnotationList, E as useAnnotationEvent, F as AnnotationDraftMenuProps, I as AnnotationMenu, L as AnnotationMenuProps, M as useFilePickerProvider, N as useRichTextEditor, O as useAnnotationProperties, P as AnnotationDraftMenu, R as AnnotationRotationBadge, S as filePickerProvider, T as useAnnotationDefaults, V as useAnnotationState, _ as RichTextEditor, a as AnnotationLayerComponents, b as TextAlign, c as AnnotationRendererProps, d as CreationDraftAnchor, f as FieldValues, g as RenderItem, h as LineEndings, i as AnnotationLayer, j as useComments, k as useCommentThread, l as BehaviorRendererProps, m as LineEnding, n as AnnotationFrame, o as AnnotationLayerProps, p as HandleProps, r as AnnotationInteractiveContext, s as AnnotationRenderer, t as AnnotationFlags, u as CommentThreadView, v as RotationHandleProps, w as useAnnotationAnchor, x as TextStyle, y as Style, z as AnnotationRotationBadgeProps } from "./annotation-DhEfs0pH.js";
|
|
6
|
+
import { useAttachment, useAttachmentEvent, useAttachmentState } from "./attachment.js";
|
|
6
7
|
import { formatShortcut, standardCommands, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings } from "./commands.js";
|
|
7
8
|
import { FormLayer, useForm, useFormEvent, useFormSettings, useFormState, useFormValue } from "./form.js";
|
|
8
9
|
import { useHistory, useHistoryEvent, useHistoryState } from "./history.js";
|
|
@@ -14,8 +15,9 @@ import { PagePointerSource, SvgCursorOptions, ToolCursorImage, ToolCursorSpec, c
|
|
|
14
15
|
import { SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, copySelection, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState } from "./selection.js";
|
|
15
16
|
import { LinkLayer, LinkLayerProps, LinkRenderProps, useLink, useLinkEvent } from "./link.js";
|
|
16
17
|
import { useViewManager, useViewManagerEvent, useViewManagerState } from "./view-manager.js";
|
|
17
|
-
import { usePageEdit } from "./page-edit.js";
|
|
18
|
+
import { usePageEdit, usePageEditState } from "./page-edit.js";
|
|
18
19
|
import { useMetadata, useMetadataEvent, useMetadataState } from "./metadata.js";
|
|
20
|
+
import { useOutline, useOutlineEvent, useOutlineState } from "./outline.js";
|
|
19
21
|
import { usePendingRedactions, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState } from "./redaction.js";
|
|
20
22
|
import { useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, usePageScale } from "./measurement.js";
|
|
21
23
|
import { useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows } from "./signature.js";
|
|
@@ -34,6 +36,8 @@ export * from "@embedpdf/plugin-actions";
|
|
|
34
36
|
export * from "@embedpdf/plugin-view-manager";
|
|
35
37
|
export * from "@embedpdf/plugin-page-edit";
|
|
36
38
|
export * from "@embedpdf/plugin-metadata";
|
|
39
|
+
export * from "@embedpdf/plugin-outline";
|
|
40
|
+
export * from "@embedpdf/plugin-attachment";
|
|
37
41
|
export * from "@embedpdf/plugin-history";
|
|
38
42
|
export * from "@embedpdf/plugin-redaction";
|
|
39
43
|
export * from "@embedpdf/plugin-measurement";
|
|
@@ -44,4 +48,4 @@ export * from "@embedpdf/plugin-search";
|
|
|
44
48
|
export * from "@embedpdf/plugin-i18n";
|
|
45
49
|
export * from "@embedpdf/plugin-commands";
|
|
46
50
|
export * from "@embedpdf/plugin-shell";
|
|
47
|
-
export { ActionsUiHandlers, type AnchorTarget, Anchored, type AnchoredPlacement, AnchoredProps, type AnchoredSide, AnnotationDraftMenu, type AnnotationDraftMenuProps, type AnnotationFlags, AnnotationFrame, AnnotationInteractiveContext, AnnotationLayer, AnnotationLayerComponents, AnnotationLayerProps, AnnotationMenu, type AnnotationMenuProps, AnnotationRenderer, AnnotationRendererProps, AnnotationRotationBadge, type AnnotationRotationBadgeProps, type BarChild, type BarGroup, type BarItem, type BarSchema, type BarSections, BehaviorRendererProps, type ByteStore, CollapsedGroupView, CommentThreadView, type CreationDraftAnchor, type CustomItem, type CustomSlotCtx, DEFAULT_IMPORTANCE, DocumentGate, DocumentGateProps, DocumentScope, DocumentScopeProps, EmbedPDF, type EpdfTheme, type FieldValues, FormLayer, GroupDisclosureView, HandleProps, type Importance, KernelProvider, KernelProviderProps, type LineEnding, type LineEndings, LinkLayer, LinkLayerProps, LinkRenderProps, OverflowMenuView, type OverflowRow, type OverflowSection, PINNED, PageContextValue, PagePointerSource, PageProvider, PageView, type PageViewEnv, PageViewProps, ProjectorBinding, ProjectorProvider, type RenderItem, RenderLayer, RenderLayerProps, RichTextEditor, RotationHandleProps, Scrollbar, type ScrollbarAxis, type ScrollbarProps, SearchLayer, SearchLayerProps, SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, SettingsHook, ShownPages, ShownPagesProvider, Stage, StageProps, StageScope, type StageScopeProps, type StageTokenProp, StateHook, StripView, StripViewGroup, type Style, type SurfaceFocusOptions, SurfaceHandle, type SvgCursorOptions, type TextAlign, type TextStyle, type ToolCursorImage, type ToolCursorSpec, Toolbar, ToolbarProps, type Variant, type ViewProjector, Viewer, ViewerProps, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, usePage, usePageEdit, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
|
51
|
+
export { ActionsUiHandlers, type AnchorTarget, Anchored, type AnchoredPlacement, AnchoredProps, type AnchoredSide, AnnotationDraftMenu, type AnnotationDraftMenuProps, type AnnotationFlags, AnnotationFrame, AnnotationInteractiveContext, AnnotationLayer, AnnotationLayerComponents, AnnotationLayerProps, AnnotationMenu, type AnnotationMenuProps, AnnotationRenderer, AnnotationRendererProps, AnnotationRotationBadge, type AnnotationRotationBadgeProps, type BarChild, type BarGroup, type BarItem, type BarSchema, type BarSections, BehaviorRendererProps, type ByteStore, CollapsedGroupView, CommentThreadView, type CreationDraftAnchor, type CustomItem, type CustomSlotCtx, DEFAULT_IMPORTANCE, DocumentGate, DocumentGateProps, DocumentScope, DocumentScopeProps, EmbedPDF, type EpdfTheme, type FieldValues, FormLayer, GroupDisclosureView, HandleProps, type Importance, KernelProvider, KernelProviderProps, type LineEnding, type LineEndings, LinkLayer, LinkLayerProps, LinkRenderProps, OverflowMenuView, type OverflowRow, type OverflowSection, PINNED, PageContextValue, PagePointerSource, PageProvider, PageView, type PageViewEnv, PageViewProps, ProjectorBinding, ProjectorProvider, type RenderItem, RenderLayer, RenderLayerProps, RichTextEditor, RotationHandleProps, Scrollbar, type ScrollbarAxis, type ScrollbarProps, SearchLayer, SearchLayerProps, SelectionClipboard, SelectionClipboardProps, SelectionHandles, SelectionHandlesProps, SelectionLayer, SelectionMenu, SelectionMenuProps, SettingsHook, ShownPages, ShownPagesProvider, Stage, StageProps, StageScope, type StageScopeProps, type StageTokenProp, StateHook, StripView, StripViewGroup, type Style, type SurfaceFocusOptions, SurfaceHandle, type SvgCursorOptions, type TextAlign, type TextStyle, type ToolCursorImage, type ToolCursorSpec, Toolbar, ToolbarProps, type Variant, type ViewProjector, Viewer, ViewerProps, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useAttachment, useAttachmentEvent, useAttachmentState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, useOutline, useOutlineEvent, useOutlineState, usePage, usePageEdit, usePageEditState, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { C as useOptionalSelector, D as useViewerSettings, E as useSelector, S as useOptionalCapability, T as usePageList, _ as useDocuments, a as PageProvider, b as useKernel, c as mountWebFont, d as useActiveDocumentId, f as useCapability, g as useDocumentScope, h as useDocumentId, i as KernelProvider, k as epdfTheme, l as saveFile, m as useDocument, n as DocumentScope, o as Viewer, p as useCapabilityEvent, r as EmbedPDF, s as makePageContext, t as DocumentGate, u as shallowArray, v as useDocumentsEvent, w as usePage, x as useKernelValue, y as useDocumentsState } from "./runtime-
|
|
2
|
-
import { n as stateHook, t as settingsHook } from "./state-
|
|
1
|
+
import { C as useOptionalSelector, D as useViewerSettings, E as useSelector, S as useOptionalCapability, T as usePageList, _ as useDocuments, a as PageProvider, b as useKernel, c as mountWebFont, d as useActiveDocumentId, f as useCapability, g as useDocumentScope, h as useDocumentId, i as KernelProvider, k as epdfTheme, l as saveFile, m as useDocument, n as DocumentScope, o as Viewer, p as useCapabilityEvent, r as EmbedPDF, s as makePageContext, t as DocumentGate, u as shallowArray, v as useDocumentsEvent, w as usePage, x as useKernelValue, y as useDocumentsState } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook, t as settingsHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { Anchored, ProjectorProvider, ShownPagesProvider, useOptionalProjectorBinding, useProjectorBinding } from "./anchored.js";
|
|
4
4
|
import { n as useStageToken, t as StageScope } from "./stage-scope-D7ZeNduT.js";
|
|
5
|
-
import { a as useStageState, i as useStageSettings, n as useStage, o as Scrollbar, r as useStageEvent, s as useScrollMetrics, t as Stage } from "./stage-
|
|
5
|
+
import { a as useStageState, i as useStageSettings, n as useStage, o as Scrollbar, r as useStageEvent, s as useScrollMetrics, t as Stage } from "./stage-BqfBjDu6.js";
|
|
6
6
|
import { PagePointerSource, createClickCounter, svgCursor, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useToolCursor, vibrationFeedback, wkFeedback } from "./interaction.js";
|
|
7
7
|
import { PageView } from "./page-view.js";
|
|
8
8
|
import { RenderLayer, useRender, useRenderEvent, useRenderSettings } from "./render.js";
|
|
9
9
|
import { SelectionClipboard, SelectionHandles, SelectionLayer, SelectionMenu, copySelection, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState } from "./selection.js";
|
|
10
|
-
import { _ as useAnnotationSettings, a as useAnnotationDefaults, c as useAnnotationProperties, d as useComments, f as useFilePickerProvider, g as AnnotationRotationBadge, h as AnnotationMenu, i as useAnnotationAnchor, l as useCommentThread, m as AnnotationDraftMenu, n as filePickerProvider, o as useAnnotationEvent, p as useRichTextEditor, r as useAnnotation, s as useAnnotationList, t as AnnotationLayer, u as useCommentThreads, v as useAnnotationState } from "./annotation-
|
|
10
|
+
import { _ as useAnnotationSettings, a as useAnnotationDefaults, c as useAnnotationProperties, d as useComments, f as useFilePickerProvider, g as AnnotationRotationBadge, h as AnnotationMenu, i as useAnnotationAnchor, l as useCommentThread, m as AnnotationDraftMenu, n as filePickerProvider, o as useAnnotationEvent, p as useRichTextEditor, r as useAnnotation, s as useAnnotationList, t as AnnotationLayer, u as useCommentThreads, v as useAnnotationState } from "./annotation-CDI8CFb3.js";
|
|
11
11
|
import { LinkLayer, useLink, useLinkEvent } from "./link.js";
|
|
12
12
|
import { useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter } from "./actions.js";
|
|
13
13
|
import { useViewManager, useViewManagerEvent, useViewManagerState } from "./view-manager.js";
|
|
14
|
-
import { usePageEdit } from "./page-edit.js";
|
|
14
|
+
import { usePageEdit, usePageEditState } from "./page-edit.js";
|
|
15
15
|
import { useMetadata, useMetadataEvent, useMetadataState } from "./metadata.js";
|
|
16
|
+
import { useOutline, useOutlineEvent, useOutlineState } from "./outline.js";
|
|
17
|
+
import { useAttachment, useAttachmentEvent, useAttachmentState } from "./attachment.js";
|
|
16
18
|
import { useHistory, useHistoryEvent, useHistoryState } from "./history.js";
|
|
17
19
|
import { usePendingRedactions, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState } from "./redaction.js";
|
|
18
20
|
import { useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, usePageScale } from "./measurement.js";
|
|
19
21
|
import { indexedDbByteStore, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState } from "./stamp.js";
|
|
20
22
|
import { useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows } from "./signature.js";
|
|
21
|
-
import { a as useFormState, i as useFormSettings, n as useForm, o as useFormValue, r as useFormEvent, t as FormLayer } from "./form-
|
|
23
|
+
import { a as useFormState, i as useFormSettings, n as useForm, o as useFormValue, r as useFormEvent, t as FormLayer } from "./form-BSGvjA5D.js";
|
|
22
24
|
import { SearchLayer, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState } from "./search.js";
|
|
23
25
|
import { useI18n, useI18nEvent, useI18nSettings, useI18nState, useT } from "./i18n.js";
|
|
24
26
|
import { formatShortcut, standardCommands, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings } from "./commands.js";
|
|
@@ -35,6 +37,8 @@ export * from "@embedpdf/plugin-actions";
|
|
|
35
37
|
export * from "@embedpdf/plugin-view-manager";
|
|
36
38
|
export * from "@embedpdf/plugin-page-edit";
|
|
37
39
|
export * from "@embedpdf/plugin-metadata";
|
|
40
|
+
export * from "@embedpdf/plugin-outline";
|
|
41
|
+
export * from "@embedpdf/plugin-attachment";
|
|
38
42
|
export * from "@embedpdf/plugin-history";
|
|
39
43
|
export * from "@embedpdf/plugin-redaction";
|
|
40
44
|
export * from "@embedpdf/plugin-measurement";
|
|
@@ -45,4 +49,4 @@ export * from "@embedpdf/plugin-search";
|
|
|
45
49
|
export * from "@embedpdf/plugin-i18n";
|
|
46
50
|
export * from "@embedpdf/plugin-commands";
|
|
47
51
|
export * from "@embedpdf/plugin-shell";
|
|
48
|
-
export { Anchored, AnnotationDraftMenu, AnnotationLayer, AnnotationMenu, AnnotationRotationBadge, DEFAULT_IMPORTANCE, DocumentGate, DocumentScope, EmbedPDF, FormLayer, KernelProvider, LinkLayer, PINNED, PagePointerSource, PageProvider, PageView, ProjectorProvider, RenderLayer, Scrollbar, SearchLayer, SelectionClipboard, SelectionHandles, SelectionLayer, SelectionMenu, ShownPagesProvider, Stage, StageScope, Toolbar, Viewer, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, usePage, usePageEdit, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
|
52
|
+
export { Anchored, AnnotationDraftMenu, AnnotationLayer, AnnotationMenu, AnnotationRotationBadge, DEFAULT_IMPORTANCE, DocumentGate, DocumentScope, EmbedPDF, FormLayer, KernelProvider, LinkLayer, PINNED, PagePointerSource, PageProvider, PageView, ProjectorProvider, RenderLayer, Scrollbar, SearchLayer, SelectionClipboard, SelectionHandles, SelectionLayer, SelectionMenu, ShownPagesProvider, Stage, StageScope, Toolbar, Viewer, copySelection, createClickCounter, custom, epdfTheme, filePickerProvider, formatShortcut, group, indexedDbByteStore, item, makePageContext, mountWebFont, saveFile, settingsHook, shallowArray, standardCommands, stateHook, svgCursor, useActions, useActionsEvent, useActionsSettings, useActionsUiAdapter, useActiveDocumentId, useAnnotation, useAnnotationAnchor, useAnnotationDefaults, useAnnotationEvent, useAnnotationList, useAnnotationProperties, useAnnotationSettings, useAnnotationState, useAttachment, useAttachmentEvent, useAttachmentState, useCapability, useCapabilityEvent, useCommand, useCommandShortcuts, useCommands, useCommandsEvent, useCommandsSettings, useCommentThread, useCommentThreads, useComments, useDocument, useDocumentId, useDocumentScope, useDocuments, useDocumentsEvent, useDocumentsState, useFilePickerProvider, useForm, useFormEvent, useFormSettings, useFormState, useFormValue, useHistory, useHistoryEvent, useHistoryState, useI18n, useI18nEvent, useI18nSettings, useI18nState, useInteraction, useInteractionEvent, useInteractionSettings, useInteractionState, useKernel, useKernelValue, useLink, useLinkEvent, useMeasurement, useMeasurementEvent, useMeasurementReadout, useMeasurementSettings, useMeasurementState, useMetadata, useMetadataEvent, useMetadataState, useOptionalCapability, useOptionalProjectorBinding, useOptionalSelector, useOutline, useOutlineEvent, useOutlineState, usePage, usePageEdit, usePageEditState, usePageList, usePageScale, usePendingRedactions, useProjectorBinding, useRedaction, useRedactionEvent, useRedactionSettings, useRedactionState, useRender, useRenderEvent, useRenderSettings, useRichTextEditor, useScrollMetrics, useSearch, useSearchEvent, useSearchHits, useSearchSettings, useSearchState, useSelection, useSelectionEvent, useSelectionSettings, useSelectionState, useSelector, useShell, useShellEvent, useShellState, useSignature, useSignatureEvent, useSignatureSettings, useSignatureState, useSignerRows, useStage, useStageEvent, useStageSettings, useStageState, useStageToken, useStamp, useStampAssetPreviewUrl, useStampAssets, useStampEvent, useStampLibraries, useStampSettings, useStampState, useStripView, useSurface, useSurfaceFocus, useT, useToolCursor, useViewManager, useViewManagerEvent, useViewManagerState, useViewerSettings, vibrationFeedback, wkFeedback };
|
package/dist/interaction.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _embedpdf_web = require("@embedpdf/web");
|
|
7
7
|
let react = require("react");
|
package/dist/interaction.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as useSelector, S as useOptionalCapability, f as useCapability, p as useCapabilityEvent, w as usePage } from "./runtime-
|
|
2
|
-
import { n as stateHook, t as settingsHook } from "./state-
|
|
1
|
+
import { E as useSelector, S as useOptionalCapability, f as useCapability, p as useCapabilityEvent, w as usePage } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook, t as settingsHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { attachPagePointer, createClickCounter, svgCursor, toolCursorsOf, vibrationFeedback, wkFeedback } from "@embedpdf/web";
|
|
5
5
|
import { useEffect, useRef } from "react";
|
package/dist/link.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
4
|
const require_stage_scope = require("./stage-scope-CQgCuf1w.cjs");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _embedpdf_web = require("@embedpdf/web");
|
package/dist/link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as useOptionalSelector, E as useSelector, S as useOptionalCapability, f as useCapability, p as useCapabilityEvent, u as shallowArray, w as usePage } from "./runtime-
|
|
1
|
+
import { C as useOptionalSelector, E as useSelector, S as useOptionalCapability, f as useCapability, p as useCapabilityEvent, u as shallowArray, w as usePage } from "./runtime-tD5iJU83.js";
|
|
2
2
|
import { n as useStageToken } from "./stage-scope-D7ZeNduT.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { hoverLink, isModifiedClick, isolatePointerDown, linkActivateContextOf, linkAnchorOf, navigableLinksOf, openExternalUri, sendLinkEvent } from "@embedpdf/web";
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
let _embedpdf_plugin_measurement = require("@embedpdf/plugin-measurement");
|
|
6
6
|
//#region src/measurement.tsx
|
|
7
7
|
/** The measurement capability: scales, calibration, readouts and creating measurements. */
|
package/dist/measurement.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as useCapability, g as useDocumentScope, p as useCapabilityEvent, x as useKernelValue } from "./runtime-
|
|
2
|
-
import { n as stateHook, t as settingsHook } from "./state-
|
|
1
|
+
import { f as useCapability, g as useDocumentScope, p as useCapabilityEvent, x as useKernelValue } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook, t as settingsHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { MeasurementToken, NO_PAGE_SCALE, NO_READOUT, measurementState } from "@embedpdf/plugin-measurement";
|
|
4
4
|
export * from "@embedpdf/plugin-measurement";
|
|
5
5
|
//#region src/measurement.tsx
|
package/dist/metadata.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
4
|
-
const require_state = require("./state-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
5
|
let _embedpdf_plugin_metadata = require("@embedpdf/plugin-metadata");
|
|
6
6
|
//#region src/metadata.ts
|
|
7
7
|
/**
|
package/dist/metadata.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as useCapability, p as useCapabilityEvent } from "./runtime-
|
|
2
|
-
import { n as stateHook } from "./state-
|
|
1
|
+
import { f as useCapability, p as useCapabilityEvent } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook } from "./state-CzI2KlZb.js";
|
|
3
3
|
import { MetadataToken, metadataState } from "@embedpdf/plugin-metadata";
|
|
4
4
|
export * from "@embedpdf/plugin-metadata";
|
|
5
5
|
//#region src/metadata.ts
|
package/dist/outline.cjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
5
|
+
let _embedpdf_plugin_outline = require("@embedpdf/plugin-outline");
|
|
6
|
+
//#region src/outline.ts
|
|
7
|
+
/**
|
|
8
|
+
* The outline capability (expand, select, activate, create, update, move,
|
|
9
|
+
* delete) of the surrounding `<DocumentScope>`'s document, else the active
|
|
10
|
+
* one. Outside a document, every method throws `not-ready`.
|
|
11
|
+
*/
|
|
12
|
+
function useOutline() {
|
|
13
|
+
return require_runtime.useCapability(_embedpdf_plugin_outline.OutlineToken);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The outline's state: its items, the rows a tree view shows, the item for
|
|
17
|
+
* where the view is reading, the selection, the load state and whether you may
|
|
18
|
+
* edit it (the page's State table, declared once in `outlineState`). Takes a
|
|
19
|
+
* selector, and re-renders only when what it returns changes.
|
|
20
|
+
*/
|
|
21
|
+
const useOutlineState = require_state.stateHook(_embedpdf_plugin_outline.outlineState);
|
|
22
|
+
/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */
|
|
23
|
+
function useOutlineEvent(select, handler) {
|
|
24
|
+
require_runtime.useCapabilityEvent(_embedpdf_plugin_outline.OutlineToken, select, handler);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.useOutline = useOutline;
|
|
28
|
+
exports.useOutlineEvent = useOutlineEvent;
|
|
29
|
+
exports.useOutlineState = useOutlineState;
|
|
30
|
+
Object.keys(_embedpdf_plugin_outline).forEach(function(k) {
|
|
31
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function() {
|
|
34
|
+
return _embedpdf_plugin_outline[k];
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=outline.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.cjs","names":["useCapability","OutlineToken","stateHook","outlineState"],"sources":["../src/outline.ts"],"sourcesContent":["/**\n * The React surface for @embedpdf/plugin-outline: the capability, the state\n * declared once in `outlineState`, and its events. Reading the state reads\n * the outline; the plugin keeps it live off the document event stream, and\n * shows your own edits at once.\n *\n * const outline = useOutline();\n * const { rows, current, canEdit } = useOutlineState();\n * outline.activate(row.item.ref); // goes where the item goes, as a click does\n */\n\n// One-line-per-feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-outline';\nimport { OutlineToken, outlineState, type OutlineCapability } from '@embedpdf/plugin-outline';\nimport type { EventHook } from '@embedpdf/core';\nimport { useCapability, useCapabilityEvent } from './runtime';\nimport { stateHook } from './state';\n\n/**\n * The outline capability (expand, select, activate, create, update, move,\n * delete) of the surrounding `<DocumentScope>`'s document, else the active\n * one. Outside a document, every method throws `not-ready`.\n */\nexport function useOutline(): OutlineCapability {\n return useCapability(OutlineToken);\n}\n\n/**\n * The outline's state: its items, the rows a tree view shows, the item for\n * where the view is reading, the selection, the load state and whether you may\n * edit it (the page's State table, declared once in `outlineState`). Takes a\n * selector, and re-renders only when what it returns changes.\n */\nexport const useOutlineState = stateHook(outlineState);\n\n/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */\nexport function useOutlineEvent<T>(\n select: (outline: OutlineCapability) => EventHook<T>,\n handler: (event: T) => void,\n): void {\n useCapabilityEvent(OutlineToken, select, handler);\n}\n"],"mappings":";;;;;;;;;;;AAuBA,SAAgB,aAAgC;CAC9C,OAAOA,gBAAAA,cAAcC,yBAAAA,YAAY;AACnC;;;;;;;AAQA,MAAa,kBAAkBC,cAAAA,UAAUC,yBAAAA,YAAY;;AAGrD,SAAgB,gBACd,QACA,SACM;CACN,gBAAA,mBAAmBF,yBAAAA,cAAc,QAAQ,OAAO;AAClD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as StateHook } from "./state-0K1I5cM4.cjs";
|
|
2
|
+
import { EventHook } from "@embedpdf/core";
|
|
3
|
+
import { OutlineCapability } from "@embedpdf/plugin-outline";
|
|
4
|
+
export * from "@embedpdf/plugin-outline";
|
|
5
|
+
//#region src/outline.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* The outline capability (expand, select, activate, create, update, move,
|
|
8
|
+
* delete) of the surrounding `<DocumentScope>`'s document, else the active
|
|
9
|
+
* one. Outside a document, every method throws `not-ready`.
|
|
10
|
+
*/
|
|
11
|
+
declare function useOutline(): OutlineCapability;
|
|
12
|
+
/**
|
|
13
|
+
* The outline's state: its items, the rows a tree view shows, the item for
|
|
14
|
+
* where the view is reading, the selection, the load state and whether you may
|
|
15
|
+
* edit it (the page's State table, declared once in `outlineState`). Takes a
|
|
16
|
+
* selector, and re-renders only when what it returns changes.
|
|
17
|
+
*/
|
|
18
|
+
declare const useOutlineState: StateHook<{
|
|
19
|
+
items: readonly import("@embedpdf/plugin-outline").OutlineItem<import("@embedpdf/core").PageDestination>[];
|
|
20
|
+
rows: readonly import("@embedpdf/plugin-outline").OutlineRow[];
|
|
21
|
+
current: import("@embedpdf/plugin-outline").OutlineItemRef | null;
|
|
22
|
+
selected: readonly import("@embedpdf/plugin-outline").OutlineItemRef[];
|
|
23
|
+
status: import("@embedpdf/core").ResourceStatus;
|
|
24
|
+
incomplete: boolean;
|
|
25
|
+
canEdit: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */
|
|
28
|
+
declare function useOutlineEvent<T>(select: (outline: OutlineCapability) => EventHook<T>, handler: (event: T) => void): void;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useOutline, useOutlineEvent, useOutlineState };
|
|
31
|
+
//# sourceMappingURL=outline.d.cts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as StateHook } from "./state-0K1I5cM4.js";
|
|
2
|
+
import { EventHook } from "@embedpdf/core";
|
|
3
|
+
import { OutlineCapability } from "@embedpdf/plugin-outline";
|
|
4
|
+
export * from "@embedpdf/plugin-outline";
|
|
5
|
+
//#region src/outline.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* The outline capability (expand, select, activate, create, update, move,
|
|
8
|
+
* delete) of the surrounding `<DocumentScope>`'s document, else the active
|
|
9
|
+
* one. Outside a document, every method throws `not-ready`.
|
|
10
|
+
*/
|
|
11
|
+
declare function useOutline(): OutlineCapability;
|
|
12
|
+
/**
|
|
13
|
+
* The outline's state: its items, the rows a tree view shows, the item for
|
|
14
|
+
* where the view is reading, the selection, the load state and whether you may
|
|
15
|
+
* edit it (the page's State table, declared once in `outlineState`). Takes a
|
|
16
|
+
* selector, and re-renders only when what it returns changes.
|
|
17
|
+
*/
|
|
18
|
+
declare const useOutlineState: StateHook<{
|
|
19
|
+
items: readonly import("@embedpdf/plugin-outline").OutlineItem<import("@embedpdf/core").PageDestination>[];
|
|
20
|
+
rows: readonly import("@embedpdf/plugin-outline").OutlineRow[];
|
|
21
|
+
current: import("@embedpdf/plugin-outline").OutlineItemRef | null;
|
|
22
|
+
selected: readonly import("@embedpdf/plugin-outline").OutlineItemRef[];
|
|
23
|
+
status: import("@embedpdf/core").ResourceStatus;
|
|
24
|
+
incomplete: boolean;
|
|
25
|
+
canEdit: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */
|
|
28
|
+
declare function useOutlineEvent<T>(select: (outline: OutlineCapability) => EventHook<T>, handler: (event: T) => void): void;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useOutline, useOutlineEvent, useOutlineState };
|
|
31
|
+
//# sourceMappingURL=outline.d.ts.map
|
package/dist/outline.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { f as useCapability, p as useCapabilityEvent } from "./runtime-tD5iJU83.js";
|
|
2
|
+
import { n as stateHook } from "./state-CzI2KlZb.js";
|
|
3
|
+
import { OutlineToken, outlineState } from "@embedpdf/plugin-outline";
|
|
4
|
+
export * from "@embedpdf/plugin-outline";
|
|
5
|
+
//#region src/outline.ts
|
|
6
|
+
/**
|
|
7
|
+
* The outline capability (expand, select, activate, create, update, move,
|
|
8
|
+
* delete) of the surrounding `<DocumentScope>`'s document, else the active
|
|
9
|
+
* one. Outside a document, every method throws `not-ready`.
|
|
10
|
+
*/
|
|
11
|
+
function useOutline() {
|
|
12
|
+
return useCapability(OutlineToken);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The outline's state: its items, the rows a tree view shows, the item for
|
|
16
|
+
* where the view is reading, the selection, the load state and whether you may
|
|
17
|
+
* edit it (the page's State table, declared once in `outlineState`). Takes a
|
|
18
|
+
* selector, and re-renders only when what it returns changes.
|
|
19
|
+
*/
|
|
20
|
+
const useOutlineState = stateHook(outlineState);
|
|
21
|
+
/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */
|
|
22
|
+
function useOutlineEvent(select, handler) {
|
|
23
|
+
useCapabilityEvent(OutlineToken, select, handler);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useOutline, useOutlineEvent, useOutlineState };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.js","names":[],"sources":["../src/outline.ts"],"sourcesContent":["/**\n * The React surface for @embedpdf/plugin-outline: the capability, the state\n * declared once in `outlineState`, and its events. Reading the state reads\n * the outline; the plugin keeps it live off the document event stream, and\n * shows your own edits at once.\n *\n * const outline = useOutline();\n * const { rows, current, canEdit } = useOutlineState();\n * outline.activate(row.item.ref); // goes where the item goes, as a click does\n */\n\n// One-line-per-feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-outline';\nimport { OutlineToken, outlineState, type OutlineCapability } from '@embedpdf/plugin-outline';\nimport type { EventHook } from '@embedpdf/core';\nimport { useCapability, useCapabilityEvent } from './runtime';\nimport { stateHook } from './state';\n\n/**\n * The outline capability (expand, select, activate, create, update, move,\n * delete) of the surrounding `<DocumentScope>`'s document, else the active\n * one. Outside a document, every method throws `not-ready`.\n */\nexport function useOutline(): OutlineCapability {\n return useCapability(OutlineToken);\n}\n\n/**\n * The outline's state: its items, the rows a tree view shows, the item for\n * where the view is reading, the selection, the load state and whether you may\n * edit it (the page's State table, declared once in `outlineState`). Takes a\n * selector, and re-renders only when what it returns changes.\n */\nexport const useOutlineState = stateHook(outlineState);\n\n/** Subscribe to one outline event for the mounted lifetime: `useOutlineEvent((outline) => outline.onChanged, handler)`. */\nexport function useOutlineEvent<T>(\n select: (outline: OutlineCapability) => EventHook<T>,\n handler: (event: T) => void,\n): void {\n useCapabilityEvent(OutlineToken, select, handler);\n}\n"],"mappings":";;;;;;;;;;AAuBA,SAAgB,aAAgC;CAC9C,OAAO,cAAc,YAAY;AACnC;;;;;;;AAQA,MAAa,kBAAkB,UAAU,YAAY;;AAGrD,SAAgB,gBACd,QACA,SACM;CACN,mBAAmB,cAAc,QAAQ,OAAO;AAClD"}
|
package/dist/page-edit.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./rolldown-runtime-DDXJien1.cjs");
|
|
3
|
-
const require_runtime = require("./runtime-
|
|
3
|
+
const require_runtime = require("./runtime-BfnpyfY0.cjs");
|
|
4
|
+
const require_state = require("./state-Dtf8HAue.cjs");
|
|
4
5
|
let _embedpdf_plugin_page_edit = require("@embedpdf/plugin-page-edit");
|
|
5
6
|
//#region src/page-edit.ts
|
|
6
7
|
/**
|
|
@@ -10,8 +11,15 @@ let _embedpdf_plugin_page_edit = require("@embedpdf/plugin-page-edit");
|
|
|
10
11
|
function usePageEdit() {
|
|
11
12
|
return require_runtime.useCapability(_embedpdf_plugin_page_edit.PageEditToken);
|
|
12
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* The page edits' state: the selected pages and whether you may edit and copy
|
|
16
|
+
* pages (the page's State table, declared once in `pageEditState`). Takes a
|
|
17
|
+
* selector, and re-renders only when what it returns changes.
|
|
18
|
+
*/
|
|
19
|
+
const usePageEditState = require_state.stateHook(_embedpdf_plugin_page_edit.pageEditState);
|
|
13
20
|
//#endregion
|
|
14
21
|
exports.usePageEdit = usePageEdit;
|
|
22
|
+
exports.usePageEditState = usePageEditState;
|
|
15
23
|
Object.keys(_embedpdf_plugin_page_edit).forEach(function(k) {
|
|
16
24
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
25
|
enumerable: true,
|
package/dist/page-edit.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-edit.cjs","names":["useCapability","PageEditToken"],"sources":["../src/page-edit.ts"],"sourcesContent":["/**\n * The React surface for @embedpdf/plugin-page-edit
|
|
1
|
+
{"version":3,"file":"page-edit.cjs","names":["useCapability","PageEditToken","stateHook","pageEditState"],"sources":["../src/page-edit.ts"],"sourcesContent":["/**\n * The React surface for @embedpdf/plugin-page-edit: the capability and the\n * state declared once in `pageEditState`. The plugin turns a page relative to\n * its rotation and resolves positions, so this file is binding only:\n *\n * const pageEdit = usePageEdit();\n * const { selected, canEdit } = usePageEditState();\n * await pageEdit.rotateBy(selected, 90);\n */\n\n// One-line-per-feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-page-edit';\nimport { PageEditToken, pageEditState, type PageEditCapability } from '@embedpdf/plugin-page-edit';\nimport { useCapability } from './runtime';\nimport { stateHook } from './state';\n\n/**\n * The page edits of the surrounding `<DocumentScope>`'s document, else the\n * active one. Outside a document, every method throws `not-ready`.\n */\nexport function usePageEdit(): PageEditCapability {\n return useCapability(PageEditToken);\n}\n\n/**\n * The page edits' state: the selected pages and whether you may edit and copy\n * pages (the page's State table, declared once in `pageEditState`). Takes a\n * selector, and re-renders only when what it returns changes.\n */\nexport const usePageEditState = stateHook(pageEditState);\n"],"mappings":";;;;;;;;;;AAoBA,SAAgB,cAAkC;CAChD,OAAOA,gBAAAA,cAAcC,2BAAAA,aAAa;AACpC;;;;;;AAOA,MAAa,mBAAmBC,cAAAA,UAAUC,2BAAAA,aAAa"}
|