@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.
Files changed (105) hide show
  1. package/dist/{AnnotationList-CkijRHet-HEFNUIZe.d.ts → AnnotationList-DcyhF2kU-CiBFOq1z.d.cts} +5 -4
  2. package/dist/{AnnotationList-CkijRHet-HEFNUIZe.d.cts → AnnotationList-DcyhF2kU-CiBFOq1z.d.ts} +5 -4
  3. package/dist/actions.cjs +2 -2
  4. package/dist/actions.js +2 -2
  5. package/dist/{annotation-C9dVwo9b.d.cts → annotation-3UvABfJm.d.cts} +5 -2
  6. package/dist/{annotation-Dex5EBda.cjs → annotation-BNHQpMKv.cjs} +11 -35
  7. package/dist/annotation-BNHQpMKv.cjs.map +1 -0
  8. package/dist/{annotation-C1ttM8Wj.js → annotation-CDI8CFb3.js} +12 -36
  9. package/dist/annotation-CDI8CFb3.js.map +1 -0
  10. package/dist/{annotation-B48UT2ln.d.ts → annotation-DhEfs0pH.d.ts} +5 -2
  11. package/dist/annotation.cjs +1 -1
  12. package/dist/annotation.d.cts +1 -1
  13. package/dist/annotation.d.ts +1 -1
  14. package/dist/annotation.js +1 -1
  15. package/dist/attachment.cjs +39 -0
  16. package/dist/attachment.cjs.map +1 -0
  17. package/dist/attachment.d.cts +29 -0
  18. package/dist/attachment.d.ts +29 -0
  19. package/dist/attachment.js +28 -0
  20. package/dist/attachment.js.map +1 -0
  21. package/dist/commands.cjs +2 -2
  22. package/dist/commands.js +2 -2
  23. package/dist/{form-55izw0jS.js → form-BSGvjA5D.js} +3 -3
  24. package/dist/{form-55izw0jS.js.map → form-BSGvjA5D.js.map} +1 -1
  25. package/dist/{form-BNqQfGGH.cjs → form-BgztZyOK.cjs} +3 -3
  26. package/dist/{form-BNqQfGGH.cjs.map → form-BgztZyOK.cjs.map} +1 -1
  27. package/dist/form.cjs +1 -1
  28. package/dist/form.d.cts +1 -1
  29. package/dist/form.d.ts +1 -1
  30. package/dist/form.js +1 -1
  31. package/dist/history.cjs +2 -2
  32. package/dist/history.js +2 -2
  33. package/dist/i18n.cjs +2 -2
  34. package/dist/i18n.js +2 -2
  35. package/dist/index.cjs +32 -5
  36. package/dist/index.d.cts +7 -3
  37. package/dist/index.d.ts +7 -3
  38. package/dist/index.js +11 -7
  39. package/dist/interaction.cjs +2 -2
  40. package/dist/interaction.js +2 -2
  41. package/dist/link.cjs +1 -1
  42. package/dist/link.js +1 -1
  43. package/dist/measurement.cjs +2 -2
  44. package/dist/measurement.js +2 -2
  45. package/dist/metadata.cjs +2 -2
  46. package/dist/metadata.js +2 -2
  47. package/dist/outline.cjs +39 -0
  48. package/dist/outline.cjs.map +1 -0
  49. package/dist/outline.d.cts +31 -0
  50. package/dist/outline.d.ts +31 -0
  51. package/dist/outline.js +28 -0
  52. package/dist/outline.js.map +1 -0
  53. package/dist/page-edit.cjs +9 -1
  54. package/dist/page-edit.cjs.map +1 -1
  55. package/dist/page-edit.d.cts +12 -1
  56. package/dist/page-edit.d.ts +12 -1
  57. package/dist/page-edit.js +10 -3
  58. package/dist/page-edit.js.map +1 -1
  59. package/dist/page-view.cjs +1 -1
  60. package/dist/page-view.js +1 -1
  61. package/dist/redaction.cjs +2 -2
  62. package/dist/redaction.d.cts +1 -1
  63. package/dist/redaction.d.ts +1 -1
  64. package/dist/redaction.js +2 -2
  65. package/dist/render.cjs +2 -2
  66. package/dist/render.js +2 -2
  67. package/dist/{runtime-fzpGv78v.cjs → runtime-BfnpyfY0.cjs} +3 -2
  68. package/dist/runtime-BfnpyfY0.cjs.map +1 -0
  69. package/dist/{runtime-B6xcPsEb.js → runtime-tD5iJU83.js} +4 -3
  70. package/dist/runtime-tD5iJU83.js.map +1 -0
  71. package/dist/runtime.cjs +1 -1
  72. package/dist/runtime.js +1 -1
  73. package/dist/search.cjs +2 -2
  74. package/dist/search.d.cts +1 -1
  75. package/dist/search.d.ts +1 -1
  76. package/dist/search.js +2 -2
  77. package/dist/selection.cjs +2 -2
  78. package/dist/selection.js +2 -2
  79. package/dist/shell.cjs +2 -2
  80. package/dist/shell.js +2 -2
  81. package/dist/signature.cjs +2 -2
  82. package/dist/signature.d.cts +1 -1
  83. package/dist/signature.d.ts +1 -1
  84. package/dist/signature.js +2 -2
  85. package/dist/{stage-BIG6aeVd.cjs → stage-B7BG2e8Q.cjs} +2 -2
  86. package/dist/{stage-BIG6aeVd.cjs.map → stage-B7BG2e8Q.cjs.map} +1 -1
  87. package/dist/{stage-DoVekb83.js → stage-BqfBjDu6.js} +2 -2
  88. package/dist/{stage-DoVekb83.js.map → stage-BqfBjDu6.js.map} +1 -1
  89. package/dist/stage.cjs +1 -1
  90. package/dist/stage.js +1 -1
  91. package/dist/stamp.cjs +2 -2
  92. package/dist/stamp.js +2 -2
  93. package/dist/{state-CbgxhwLA.js → state-CzI2KlZb.js} +2 -2
  94. package/dist/{state-CbgxhwLA.js.map → state-CzI2KlZb.js.map} +1 -1
  95. package/dist/{state-CsfZy_Eq.cjs → state-Dtf8HAue.cjs} +2 -2
  96. package/dist/{state-CsfZy_Eq.cjs.map → state-Dtf8HAue.cjs.map} +1 -1
  97. package/dist/toolbar.cjs +1 -1
  98. package/dist/toolbar.js +1 -1
  99. package/dist/view-manager.cjs +2 -2
  100. package/dist/view-manager.js +2 -2
  101. package/package.json +40 -30
  102. package/dist/annotation-C1ttM8Wj.js.map +0 -1
  103. package/dist/annotation-Dex5EBda.cjs.map +0 -1
  104. package/dist/runtime-B6xcPsEb.js.map +0 -1
  105. 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-BNqQfGGH.cjs");
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-CkijRHet-HEFNUIZe.cjs";
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-CkijRHet-HEFNUIZe.js";
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-55izw0jS.js";
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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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-B6xcPsEb.js";
2
- import { n as stateHook } from "./state-CbgxhwLA.js";
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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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-B6xcPsEb.js";
2
- import { n as stateHook, t as settingsHook } from "./state-CbgxhwLA.js";
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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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-BIG6aeVd.cjs");
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-Dex5EBda.cjs");
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-BNqQfGGH.cjs");
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-C9dVwo9b.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-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-B48UT2ln.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-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-B6xcPsEb.js";
2
- import { n as stateHook, t as settingsHook } from "./state-CbgxhwLA.js";
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-DoVekb83.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-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-C1ttM8Wj.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-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-55izw0jS.js";
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 };
@@ -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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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");
@@ -1,5 +1,5 @@
1
- import { E as useSelector, S as useOptionalCapability, f as useCapability, p as useCapabilityEvent, w as usePage } from "./runtime-B6xcPsEb.js";
2
- import { n as stateHook, t as settingsHook } from "./state-CbgxhwLA.js";
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-fzpGv78v.cjs");
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-B6xcPsEb.js";
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";
@@ -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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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. */
@@ -1,5 +1,5 @@
1
- import { f as useCapability, g as useDocumentScope, p as useCapabilityEvent, x as useKernelValue } from "./runtime-B6xcPsEb.js";
2
- import { n as stateHook, t as settingsHook } from "./state-CbgxhwLA.js";
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-fzpGv78v.cjs");
4
- const require_state = require("./state-CsfZy_Eq.cjs");
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-B6xcPsEb.js";
2
- import { n as stateHook } from "./state-CbgxhwLA.js";
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
@@ -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
@@ -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"}
@@ -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-fzpGv78v.cjs");
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,
@@ -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. The plugin turns a page\n * relative to its rotation and resolves placements, so this file is binding\n * only:\n *\n * const pageEdit = usePageEdit();\n * await pageEdit.rotateBy([page.ref], 90);\n */\n\n// One-line-per-feature: registration travels with the UI.\nexport * from '@embedpdf/plugin-page-edit';\nimport { PageEditToken, type PageEditCapability } from '@embedpdf/plugin-page-edit';\nimport { useCapability } from './runtime';\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"],"mappings":";;;;;;;;;AAkBA,SAAgB,cAAkC;CAChD,OAAOA,gBAAAA,cAAcC,2BAAAA,aAAa;AACpC"}
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"}