@embedpdf/plugin-annotation 3.0.0 → 3.1.0

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 (31) hide show
  1. package/dist/contract/host.cjs +2 -2
  2. package/dist/contract/host.d.cts +2 -2
  3. package/dist/contract/host.d.ts +2 -2
  4. package/dist/contract/host.js +2 -2
  5. package/dist/{contract-CBYEqnev.d.cts → contract-CimdVhUD.d.cts} +16 -9
  6. package/dist/{contract-BtAl3Yo2.cjs → contract-DlJK3S9O.cjs} +76 -79
  7. package/dist/contract-DlJK3S9O.cjs.map +1 -0
  8. package/dist/{contract-OwgW3JE8.js → contract-nPw63clg.js} +71 -80
  9. package/dist/contract-nPw63clg.js.map +1 -0
  10. package/dist/{contract-BK2g1Rem.d.ts → contract-uV_HOYTW.d.ts} +16 -9
  11. package/dist/contract.cjs +1 -1
  12. package/dist/contract.d.cts +1 -1
  13. package/dist/contract.d.ts +1 -1
  14. package/dist/contract.js +1 -1
  15. package/dist/{host-contract-CxOrR_pp.d.cts → host-contract-Br2Nwfm8.d.ts} +16 -5
  16. package/dist/{host-contract-COF2Prd-.d.ts → host-contract-Ckl6r4Ch.d.cts} +16 -5
  17. package/dist/{host-contract-CSKiuu3g.js → host-contract-DP61yEHS.js} +2 -2
  18. package/dist/host-contract-DP61yEHS.js.map +1 -0
  19. package/dist/{host-contract-BzM2upsA.cjs → host-contract-Os6ryEkJ.cjs} +2 -2
  20. package/dist/host-contract-Os6ryEkJ.cjs.map +1 -0
  21. package/dist/index.cjs +69 -35
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +69 -35
  26. package/dist/index.js.map +1 -1
  27. package/package.json +12 -12
  28. package/dist/contract-BtAl3Yo2.cjs.map +0 -1
  29. package/dist/contract-OwgW3JE8.js.map +0 -1
  30. package/dist/host-contract-BzM2upsA.cjs.map +0 -1
  31. package/dist/host-contract-CSKiuu3g.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { widgetAppearanceOf } from "./authoring.cjs";
2
- import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, Bt as ResolvedGhost, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as AnnotationToolInput, G as ArmedStampInfo, Gt as ToolDefaultsFor, H as AnnotationTransfer, Ht as SelectionAuthoring, I as AnnotationSettings, It as DEFAULT_TOOLS, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, Lt as GhostPolicy, M as AnnotationRotationAnchor, Mt as AnnotationToken, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Pt as AnnotationToolDefinition, Q as ClickCreate, R as AnnotationSubtype, Rt as InkAuthoringOptions, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as StampSourceSpec, V as AnnotationToolsCapability, Vt as ResolvedTool, W as AnnotationWriteFailedEvent, Wt as ToolAuthoringKind, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability, zt as PromptSourceSpec } from "./contract-CBYEqnev.cjs";
3
- import { f as AnnotationModel, n as AnnotationHostCapability } from "./host-contract-CxOrR_pp.cjs";
2
+ import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, Bt as ResolvedGhost, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as AnnotationToolInput, G as ArmedStampInfo, Gt as ToolDefaultsFor, H as AnnotationTransfer, Ht as SelectionAuthoring, I as AnnotationSettings, It as DEFAULT_TOOLS, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, Lt as GhostPolicy, M as AnnotationRotationAnchor, Mt as AnnotationToken, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Pt as AnnotationToolDefinition, Q as ClickCreate, R as AnnotationSubtype, Rt as InkAuthoringOptions, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as StampSourceSpec, V as AnnotationToolsCapability, Vt as ResolvedTool, W as AnnotationWriteFailedEvent, Wt as ToolAuthoringKind, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability, zt as PromptSourceSpec } from "./contract-CimdVhUD.cjs";
3
+ import { f as AnnotationModel, n as AnnotationHostCapability } from "./host-contract-Ckl6r4Ch.cjs";
4
4
  import { MIN_DRAG, Placement, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement } from "@embedpdf/core-annotation";
5
5
  import { annotationKey } from "@embedpdf/core";
6
6
  //#region src/annotation.plugin.d.ts
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { widgetAppearanceOf } from "./authoring.js";
2
- import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, Bt as ResolvedGhost, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as AnnotationToolInput, G as ArmedStampInfo, Gt as ToolDefaultsFor, H as AnnotationTransfer, Ht as SelectionAuthoring, I as AnnotationSettings, It as DEFAULT_TOOLS, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, Lt as GhostPolicy, M as AnnotationRotationAnchor, Mt as AnnotationToken, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Pt as AnnotationToolDefinition, Q as ClickCreate, R as AnnotationSubtype, Rt as InkAuthoringOptions, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as StampSourceSpec, V as AnnotationToolsCapability, Vt as ResolvedTool, W as AnnotationWriteFailedEvent, Wt as ToolAuthoringKind, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability, zt as PromptSourceSpec } from "./contract-BK2g1Rem.js";
3
- import { f as AnnotationModel, n as AnnotationHostCapability } from "./host-contract-COF2Prd-.js";
2
+ import { $ as Color, A as AnnotationResources, At as AnnotationState, B as AnnotationTool, Bt as ResolvedGhost, C as AnnotationPatch, Ct as StampPlacement, D as AnnotationRef, Dt as ThreadDeleteResult, E as AnnotationProperty, Et as TextItem, F as AnnotationSelectionChangedEvent, Ft as AnnotationToolInput, G as ArmedStampInfo, Gt as ToolDefaultsFor, H as AnnotationTransfer, Ht as SelectionAuthoring, I as AnnotationSettings, It as DEFAULT_TOOLS, J as AttachmentFileSource, Jt as TextFormat, K as ArmedStampPreview, L as AnnotationStampsCapability, Lt as GhostPolicy, M as AnnotationRotationAnchor, Mt as AnnotationToken, N as AnnotationSelectionAnchor, Nt as ARMED_STAMP_TOOL_ID, O as AnnotationReorderedEvent, Ot as ToolDefaults, P as AnnotationSelectionCapability, Pt as AnnotationToolDefinition, Q as ClickCreate, R as AnnotationSubtype, Rt as InkAuthoringOptions, S as AnnotationOption, St as StampInput, T as AnnotationProperties, Tt as TextAlign, U as AnnotationUpdatedEvent, Ut as StampSourceSpec, V as AnnotationToolsCapability, Vt as ResolvedTool, W as AnnotationWriteFailedEvent, Wt as ToolAuthoringKind, X as BlendMode, Y as Behavior, Yt as TextSelection, Z as ChromeSettings, _ as AnnotationHoverChangedEvent, _t as MarkupSubtype, a as AnnotationBundle, at as EditableKind, b as AnnotationImportResult, bt as ReviewStatus, c as AnnotationCreatedEvent, ct as FilePickerProvider, d as AnnotationDraftCapability, dt as HandleRole, et as CommentThread, f as AnnotationDraftChangedEvent, ft as ImageGhost, g as AnnotationFlags, gt as LinkNavItem, h as AnnotationFilter, ht as LineStyle, i as AnnotationAnchor, it as CreationDraft, j as AnnotationResyncedEvent, jt as annotationState, k as AnnotationResourceRole, kt as ToolDefaultsChangedEvent, l as AnnotationDeletedEvent, lt as FilePromptRequest, m as AnnotationExportSelection, mt as LineEndings, n as AfterCreateSettings, nt as CommentThreadReview, o as AnnotationCapability, ot as EditableKinds, p as AnnotationEditingChangedEvent, pt as LineEnding, q as AttachmentContent, qt as Face, r as Annotation, rt as CommentsCapability, s as AnnotationConfig, st as FieldValues, t as ANNOTATION_DEFAULTS, tt as CommentThreadChangedEvent, u as AnnotationDraft, ut as FlagKey, v as AnnotationImportDrop, vt as MeasurementIntent, w as AnnotationPosition, wt as StampPreviewProvider, x as AnnotationLinksCapability, xt as SnapSettings, y as AnnotationImportOptions, yt as PdfLinkTarget, z as AnnotationTextCapability, zt as PromptSourceSpec } from "./contract-uV_HOYTW.js";
3
+ import { f as AnnotationModel, n as AnnotationHostCapability } from "./host-contract-Br2Nwfm8.js";
4
4
  import { annotationKey } from "@embedpdf/core";
5
5
  import { MIN_DRAG, Placement, gesturePlacement, kindNamed, propertiesOf, resolveClickPlacement } from "@embedpdf/core-annotation";
6
6
  //#region src/annotation.plugin.d.ts
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as buildToolRegistry, c as AnnotationToken, i as DEFAULT_TOOLS, n as AnnotationTransfer, o as toolTouchOf, r as ARMED_STAMP_TOOL_ID, s as annotationState, t as ANNOTATION_DEFAULTS } from "./contract-OwgW3JE8.js";
2
- import { n as previewBucket, t as AnnotationToken$1 } from "./host-contract-CSKiuu3g.js";
1
+ import { a as applyTool, c as annotationState, i as DEFAULT_TOOLS, l as AnnotationToken, n as AnnotationTransfer, o as buildToolRegistry, r as ARMED_STAMP_TOOL_ID, s as toolTouchOf, t as ANNOTATION_DEFAULTS } from "./contract-nPw63clg.js";
2
+ import { n as previewBucket, t as AnnotationToken$1 } from "./host-contract-DP61yEHS.js";
3
3
  import { widgetAppearanceOf } from "./authoring.js";
4
4
  import { PluginError, annotationKey, composeApi, definePlugin, memo, pageRefsEqual, reload, toPluginError, toPluginErrorInfo } from "@embedpdf/core";
5
5
  import { ActionsToken, createHoverPump } from "@embedpdf/plugin-actions/contract";
@@ -3396,12 +3396,10 @@ function createBehaviors(store) {
3396
3396
  * The resolved tool table (built-ins + the `tools` setting). A tool is a named
3397
3397
  * authoring preset: it maps its id → a routing subtype, a `defaults` key
3398
3398
  * (`preset`), the kind whose properties it shows, and, for stamps, a source
3399
- * spec. The setting's tools are kept so `tools.register` can re-resolve
3400
- * `extends` against the same base pool.
3399
+ * spec. `tools.register` applies one more entry to the same table.
3401
3400
  */
3402
3401
  function createToolRegistry(ctx, settingTools, store, events) {
3403
- const configTools = [...settingTools];
3404
- const registry = buildToolRegistry(configTools);
3402
+ const registry = buildToolRegistry(settingTools);
3405
3403
  for (const tool of registry.values()) if (tool.defaults) store.commit({
3406
3404
  type: "setDefaults",
3407
3405
  preset: tool.preset,
@@ -3484,24 +3482,60 @@ function createToolRegistry(ctx, settingTools, store, events) {
3484
3482
  }
3485
3483
  return hit;
3486
3484
  };
3485
+ /** Put `tool` on the hub, in place of any tool with its id. */
3486
+ const registerOnHub = (tool) => {
3487
+ const { id, cursor, enables } = tool;
3488
+ const hubTool = {
3489
+ id,
3490
+ cursor,
3491
+ enables,
3492
+ touch: toolTouchOf(enables)
3493
+ };
3494
+ return ctx.tryGet(InteractionToken)?.registerTool(hubTool, { replace: true });
3495
+ };
3496
+ /**
3497
+ * The registrations in place, per tool id, oldest first, each with the tool
3498
+ * it replaced. Removing the newest puts that tool back; removing an older one
3499
+ * hands what it replaced to the one after it. So removals in any order end
3500
+ * with the tool the first registration replaced.
3501
+ */
3502
+ const registrations = /* @__PURE__ */ new Map();
3487
3503
  const register = (definition) => {
3488
- const resolved = buildToolRegistry([...configTools, definition]).get(definition.id);
3489
- if (!resolved) throw new Error(`[annotation] could not resolve tool '${definition.id}'`);
3490
- registry.set(resolved.id, resolved);
3491
- const un = ctx.tryGet(InteractionToken)?.registerTool({
3492
- id: resolved.id,
3493
- cursor: resolved.cursor,
3494
- enables: resolved.enables,
3495
- touch: toolTouchOf(resolved.enables)
3496
- }, { replace: true });
3497
- if (resolved.defaults) store.commit({
3504
+ const replaced = registry.get(definition.id);
3505
+ const tool = applyTool(registry, definition);
3506
+ const unregister = registerOnHub(tool);
3507
+ if (tool.defaults) store.commit({
3498
3508
  type: "setDefaults",
3499
- preset: resolved.preset,
3500
- patch: resolved.defaults
3509
+ preset: tool.preset,
3510
+ patch: tool.defaults
3501
3511
  });
3512
+ const registration = { replaced };
3513
+ registrations.set(tool.id, [...registrations.get(tool.id) ?? [], registration]);
3502
3514
  return () => {
3503
- registry.delete(resolved.id);
3504
- un?.();
3515
+ const stack = registrations.get(tool.id) ?? [];
3516
+ const at = stack.indexOf(registration);
3517
+ if (at < 0) return;
3518
+ const rest = stack.filter((other) => other !== registration);
3519
+ if (rest.length) registrations.set(tool.id, rest);
3520
+ else registrations.delete(tool.id);
3521
+ const newer = stack[at + 1];
3522
+ if (newer) {
3523
+ newer.replaced = registration.replaced;
3524
+ return;
3525
+ }
3526
+ const previous = registration.replaced;
3527
+ if (!previous) {
3528
+ registry.delete(tool.id);
3529
+ unregister?.();
3530
+ return;
3531
+ }
3532
+ registry.set(previous.id, previous);
3533
+ registerOnHub(previous);
3534
+ store.commit({
3535
+ type: "replaceDefaults",
3536
+ preset: previous.preset,
3537
+ defaults: previous.defaults ?? {}
3538
+ });
3505
3539
  };
3506
3540
  };
3507
3541
  return {
@@ -4434,7 +4468,7 @@ function createMarkupWrites(ctx, { store, authority, tools, afterCreate }, annot
4434
4468
  * measurement plugin supplies for dimension drafts, and recalibration of a
4435
4469
  * page's dimensions to a new scale.
4436
4470
  */
4437
- function createMeasurement(ctx, { store, records }, crud) {
4471
+ function createMeasurement(ctx, { store, records }) {
4438
4472
  const pageViewports = /* @__PURE__ */ new Map();
4439
4473
  ctx.cleanup(() => {
4440
4474
  pageViewports.clear();
@@ -4448,10 +4482,11 @@ function createMeasurement(ctx, { store, records }, crud) {
4448
4482
  fallback
4449
4483
  });
4450
4484
  },
4451
- remeasurePage: async (page, scale) => {
4452
- const pageObjectNumber = page.objectNumber;
4485
+ whenRemeasurable: async () => {
4453
4486
  if (records.getStatus() !== "ready") await records.refresh().catch(() => {});
4454
4487
  await records.settled();
4488
+ },
4489
+ stageRemeasure: (page, scale) => {
4455
4490
  const report = {
4456
4491
  page,
4457
4492
  scale,
@@ -4466,11 +4501,12 @@ function createMeasurement(ctx, { store, records }, crud) {
4466
4501
  const model = store.model();
4467
4502
  const candidates = Object.values(records.get().byKey).flatMap(({ dto }) => {
4468
4503
  const record = model.byId[annotationKey$1(dto.ref)];
4469
- return record && dto.page.objectNumber === pageObjectNumber && isDimension(dto) ? [{
4504
+ return record && dto.page.objectNumber === page.objectNumber && isDimension(dto) ? [{
4470
4505
  dto,
4471
4506
  annotation: record
4472
4507
  }] : [];
4473
4508
  });
4509
+ const updates = [];
4474
4510
  for (const { dto, annotation } of candidates) {
4475
4511
  const ref = dto.ref;
4476
4512
  const reason = annotation.authority?.update === false ? "no-authority" : !annotTransformable(annotation) || !annotContentsEditable(annotation) ? "locked" : "measure" in dto && dto.measure && dto.measure.subtype !== "rectilinear" ? "foreign-measure" : !isReadout(measurementReadout({
@@ -4484,19 +4520,17 @@ function createMeasurement(ctx, { store, records }, crud) {
4484
4520
  });
4485
4521
  continue;
4486
4522
  }
4487
- try {
4488
- await crud.update(ref, {
4523
+ updates.push({
4524
+ type: "update",
4525
+ ref,
4526
+ patch: {
4489
4527
  subtype: dto.subtype,
4490
4528
  measure: scale
4491
- });
4492
- report.updated.push(ref);
4493
- } catch (error) {
4494
- report.failed.push({
4495
- ref,
4496
- error: serializeError(error)
4497
- });
4498
- }
4529
+ }
4530
+ });
4531
+ report.updated.push(ref);
4499
4532
  }
4533
+ if (updates.length > 0) store.apply(updates);
4500
4534
  return report;
4501
4535
  }
4502
4536
  }
@@ -5488,7 +5522,7 @@ function createAnnotationController(ctx) {
5488
5522
  const render = createRenderReads(ctx, services, ghost, stamps);
5489
5523
  const icons = createIcons(ctx, services, stamps);
5490
5524
  const selection = createSelectionWrites(ctx, services, annotations, properties, chrome, text);
5491
- const measurement = createMeasurement(ctx, services, crud);
5525
+ const measurement = createMeasurement(ctx, services);
5492
5526
  const pointer = createPointer(ctx, services, chrome, measurement);
5493
5527
  const drafts = createDrafts(ctx, services, annotations);
5494
5528
  const markup = createMarkupWrites(ctx, services, annotations);