@embedpdf/viewer-chrome 3.0.0-next.11 → 3.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands.js CHANGED
@@ -3,13 +3,18 @@ import { StageToken, ZoomMode } from "@embedpdf/react/stage";
3
3
  import { InteractionToken } from "@embedpdf/react/interaction";
4
4
  import { SelectionToken, copySelection } from "@embedpdf/react/selection";
5
5
  import { AnnotationToken } from "@embedpdf/react/annotation";
6
+ import { StampToken } from "@embedpdf/react/stamp";
6
7
  import { RedactionToken } from "@embedpdf/react/redaction";
7
8
  import { ActionsToken } from "@embedpdf/react/actions";
8
9
  import { FormToken, fieldKeyOf } from "@embedpdf/react/form";
10
+ import { SignatureToken } from "@embedpdf/react/signature";
9
11
  import { LinkToken, openLinkTarget } from "@embedpdf/react/link";
10
12
  import { SearchToken } from "@embedpdf/react/search";
13
+ import { I18nToken } from "@embedpdf/react/i18n";
11
14
  import { ShellToken } from "@embedpdf/react/shell";
12
15
  //#region src/config/commands.ts
16
+ /** Where selection-made stamps go: the user's own library, persisted. */
17
+ const CUSTOM_LIBRARY_ID = "embedpdf-custom";
13
18
  const stage = (c) => c.tryGet(StageToken);
14
19
  const interaction = (c) => c.tryGet(InteractionToken);
15
20
  const anno = (c) => c.tryGet(AnnotationToken);
@@ -36,6 +41,7 @@ const selectionLink = (c) => {
36
41
  * drift apart.
37
42
  */
38
43
  const TOOL_ICONS = {};
44
+ TOOL_ICONS["stamp"] = { icon: "rubberStamp" };
39
45
  const toolAccent = (c, toolId, accent) => {
40
46
  if (!accent) return null;
41
47
  const anno = c.tryGet(AnnotationToken);
@@ -349,15 +355,38 @@ const defaultCommands = [
349
355
  secondary: "interiorColor"
350
356
  }),
351
357
  tool("annotation:add-polyline", "polyline", "commands.shapes.polyline", "zigzag", { primary: "color" }),
352
- tool("insert:add-stamp", "stamp", "commands.insert.stamp", "rubberStamp"),
358
+ {
359
+ id: "insert:add-stamp",
360
+ labelKey: "commands.insert.stamp",
361
+ icon: "rubberStamp",
362
+ visible: (c) => c.tryGet(StampToken) != null,
363
+ enabled: (c) => anno(c)?.canCreate() ?? true,
364
+ categories: ["panel"],
365
+ panel: {
366
+ id: "stamps",
367
+ exclusive: "right"
368
+ }
369
+ },
353
370
  tool("insert:add-attachment", "attachment", "commands.insert.attachment", "paperclip"),
354
- tool("insert:add-signature", "signature", "commands.insert.signature", "signature"),
371
+ {
372
+ id: "insert:add-signature",
373
+ labelKey: "commands.insert.signature",
374
+ icon: "signature",
375
+ visible: (c) => c.tryGet(StampToken) != null && c.tryGet(SignatureToken) != null,
376
+ enabled: (c) => anno(c)?.canCreate() ?? true,
377
+ categories: ["panel"],
378
+ panel: {
379
+ id: "signatures",
380
+ exclusive: "right"
381
+ }
382
+ },
355
383
  tool("insert:add-image", "image", "commands.insert.image", "photo"),
356
384
  tool("form:add-textfield", "form-text", "commands.form.textfield", "formTextfield"),
357
385
  tool("form:add-checkbox", "form-checkbox", "commands.form.checkbox", "formCheckbox"),
358
386
  tool("form:add-radio", "form-radio", "commands.form.radio", "formRadio"),
359
387
  tool("form:add-select", "form-combobox", "commands.form.select", "formSelect"),
360
388
  tool("form:add-listbox", "form-listbox", "commands.form.listbox", "formListbox"),
389
+ tool("form:add-signature", "form-signature", "commands.form.signature", "signature"),
361
390
  tool("redaction:redact", "redact", "commands.redact.mark", "redactArea"),
362
391
  {
363
392
  id: "panel:redaction",
@@ -427,6 +456,37 @@ const defaultCommands = [
427
456
  },
428
457
  visible: (c) => (anno(c)?.getSelectionProps().specs.length ?? 0) > 0
429
458
  },
459
+ {
460
+ id: "annotation:stamp-from-selection",
461
+ labelKey: "commands.annotate.stampFromSelection",
462
+ icon: "rubberStampPlus",
463
+ categories: ["annotation"],
464
+ run: (c) => {
465
+ const a = anno(c);
466
+ const stamp = c.tryGet(StampToken);
467
+ const documentId = c.documentId;
468
+ if (!a || !stamp || documentId == null) return;
469
+ const dtos = a.getSelected();
470
+ const pon = dtos[0]?.ref.pageObjectNumber;
471
+ if (pon === void 0) return;
472
+ const i18n = c.tryGet(I18nToken);
473
+ const label = i18n?.t("demo.stampsCustomLabel") ?? "Custom stamp";
474
+ const libraryName = i18n?.t("demo.stampsCustomLibrary") ?? "My stamps";
475
+ const libraryId = CUSTOM_LIBRARY_ID;
476
+ (stamp.library(libraryId) ? Promise.resolve(libraryId) : stamp.createLibrary(libraryName, {
477
+ id: libraryId,
478
+ categories: ["custom"]
479
+ })).then((id) => stamp.addAssetFromAnnotations(documentId, pon, dtos.map((d) => d.ref), {
480
+ libraryId: id,
481
+ label: `${label} ${stamp.assets(id).length + 1}`
482
+ })).then(() => c.tryGet(ShellToken)?.open("stamps", {
483
+ exclusive: "right",
484
+ props: { libraryId }
485
+ })).catch((e) => console.warn("[embedpdf] stamp from selection failed", e));
486
+ },
487
+ visible: (c) => c.tryGet(StampToken) != null && hasAnnotationSelection(c) && !selectionSubtypes(c).has("widget") && !selectionSubtypes(c).has("redact") && new Set((anno(c)?.getSelected() ?? []).map((d) => d.ref.pageObjectNumber)).size === 1,
488
+ enabled: (c) => c.tryGet(DocumentsToken)?.allows("doc.download") ?? true
489
+ },
430
490
  {
431
491
  id: "annotation:group",
432
492
  labelKey: "commands.annotate.group",
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","names":[],"sources":["../src/config/commands.ts"],"sourcesContent":["/**\n * The command vocabulary — the semantic layer. Ported in spirit from the v2\n * snippet's commands.ts, but every command is a pure value: label key, icon,\n * shortcut, derivations, and a `run` (or a declarative surface target). The\n * v2 `registry.getPlugin<T>(id)?.provides()` string-and-cast dance becomes a\n * typed `ctx.get(Token)`.\n *\n * Wiring reality (chrome-parity scope):\n * zoom/pan/pointer/spread/scroll/rotate → real Stage / Interaction / PageEdit\n * modes → shell exclusive surfaces ('mode')\n * panels / menus / modals → declarative shell targets\n * annotate + shape tools → real interaction tools\n * form tools → real form plugin palette (draw-to-place)\n * insert/redact tools → inert interaction tools (demo-tools)\n * history undo/redo → disabled (no history plugin in v3 yet)\n */\nimport type { CommandDef, IconAccent } from '@embedpdf/react/commands';\nimport { DocumentsToken } from '@embedpdf/react/runtime';\nimport { StageToken, ZoomMode } from '@embedpdf/react/stage';\nimport type { SpreadMode } from '@embedpdf/react/stage';\nimport { InteractionToken } from '@embedpdf/react/interaction';\nimport { ShellToken } from '@embedpdf/react/shell';\nimport { AnnotationToken } from '@embedpdf/react/annotation';\nimport { copySelection, SelectionToken, type TextRange } from '@embedpdf/react/selection';\nimport { fieldKeyOf, FormToken } from '@embedpdf/react/form';\nimport { ActionsToken } from '@embedpdf/react/actions';\nimport { LinkToken, openLinkTarget, type PdfLinkTarget } from '@embedpdf/react/link';\nimport { SearchToken } from '@embedpdf/react/search';\nimport { RedactionToken } from '@embedpdf/react/redaction';\n\n// ── helpers ────────────────────────────────────────────────────────────────\ntype Ctx = Parameters<NonNullable<CommandDef['run']>>[0];\n\nconst stage = (c: Ctx) => c.tryGet(StageToken);\nconst interaction = (c: Ctx) => c.tryGet(InteractionToken);\nconst anno = (c: Ctx) => c.tryGet(AnnotationToken);\nconst textSelection = (c: Ctx) => c.tryGet(SelectionToken);\nconst sameTextRange = (a: TextRange | null, b: TextRange | null): boolean =>\n a === b ||\n (!!a &&\n !!b &&\n a.start.pon === b.start.pon &&\n a.start.index === b.start.index &&\n a.end.pon === b.end.pon &&\n a.end.index === b.end.index);\n\n// ── annotation-selection predicates (drive the floating strip's contents) ────\nconst hasAnnotationSelection = (c: Ctx) => (anno(c)?.selection().length ?? 0) > 0;\n/** v2 gated strip items per subtype (comment hidden on links/widgets) — here\n * it's one derivation over the selected DTOs instead of per-command lookups. */\nconst selectionSubtypes = (c: Ctx) => new Set((anno(c)?.getSelected() ?? []).map((a) => a.subtype));\n/**\n * The selection's `link` value: a target, `null` (linkable but none set), or\n * `undefined` when the selection cannot carry a link at all (widgets, mixed\n * link states) — the schema decides, never a subtype blocklist.\n */\nconst selectionLink = (c: Ctx): PdfLinkTarget | null | undefined => {\n const p = anno(c)?.getSelectionProps();\n if (!p || !p.specs.some((s) => s.key === 'link') || p.mixed.includes('link')) return undefined;\n return (p.values.link ?? null) as PdfLinkTarget | null;\n};\n\n// ── tool icon accents: THIS viewer's design decision ─────────────────────────\n// A tool declares which drawing default each colored part of its glyph previews.\n// This is intentionally explicit at the command definition: property-panel order\n// does not determine icon meaning, and another viewer may make a different choice.\ntype ColorKey = 'color' | 'interiorColor' | 'fontColor';\nexport interface ToolAccentDefinition {\n primary: ColorKey;\n secondary?: ColorKey;\n}\n\n/**\n * toolId → the SAME icon + accent definition its toolbar button uses, recorded\n * as a side effect of the `tool()` command definitions below — ONE source of\n * truth, so the tool cursor (ui/tool-cursor.tsx) and the button can never\n * drift apart.\n */\nexport const TOOL_ICONS: Record<string, { icon: string; accent?: ToolAccentDefinition }> = {};\n\nconst toolAccent = (\n c: Ctx,\n toolId: string,\n accent: ToolAccentDefinition | undefined,\n): IconAccent | null => {\n if (!accent) return null;\n const anno = c.tryGet(AnnotationToken);\n if (!anno) return null;\n const d = anno.currentDefaults(toolId);\n return {\n primary: d[accent.primary] ?? undefined,\n secondary: accent.secondary ? (d[accent.secondary] ?? undefined) : undefined,\n };\n};\n\n/** A tool command: activates a real interaction tool; active = it's the tool.\n * The icon previews the tool's current defaults — keyed by the SAME toolId\n * as run/active, so the accent can't drift to another tool's colors. */\nconst tool = (\n id: string,\n toolId: string,\n labelKey: string,\n icon: string,\n accent?: ToolAccentDefinition,\n): CommandDef => {\n TOOL_ICONS[toolId] = { icon, ...(accent ? { accent } : {}) };\n // Authoring tools grey out without their family's authority — the SAME\n // twin the owning plugin's gesture gate consults (permissions.md), so a\n // button can never offer a doomed paint: annotation/insert tools ask\n // annotation create authority, form-design tools ask `form.canDesign()`,\n // the redact marker asks `redaction.canMark()`. Absent plugin → ungated\n // (a build without the plugin has no authority question to ask).\n const authority: ((c: Ctx) => boolean) | null =\n id.startsWith('annotation:add') || id.startsWith('insert:add')\n ? (c) => anno(c)?.canCreate() ?? true\n : id.startsWith('form:add')\n ? (c) => c.tryGet(FormToken)?.canDesign() ?? true\n : id === 'redaction:redact'\n ? (c) => c.tryGet(RedactionToken)?.canMark() ?? true\n : null;\n return {\n id,\n labelKey,\n icon,\n categories: ['tool'],\n run: (c) => interaction(c)?.activateTool(toolId),\n active: (c) => interaction(c)?.activeToolId() === toolId,\n enabled: (c) => interaction(c) != null && (authority?.(c) ?? true),\n iconAccent: (c) => toolAccent(c, toolId, accent),\n };\n};\n\n/** A fixed zoom level (fraction), e.g. 1 = 100%. */\nconst zoomLevel = (id: string, level: number, label: string): CommandDef => ({\n id,\n labelKey: label,\n categories: ['zoom', 'zoom-level'],\n run: (c) => stage(c)?.zoomTo({ level }),\n enabled: (c) => stage(c) != null,\n});\n\nconst spread = (id: string, mode: SpreadMode, labelKey: string, icon: string): CommandDef => ({\n id,\n labelKey,\n icon,\n categories: ['page', 'spread'],\n run: (c) => stage(c)?.setSpread(mode),\n active: (c) => stage(c)?.spread() === mode,\n enabled: (c) => stage(c) != null,\n});\n\nexport const defaultCommands: CommandDef[] = [\n // ── zoom ───────────────────────────────────────────────────────────────\n {\n id: 'zoom:in',\n labelKey: 'commands.zoom.in',\n icon: 'zoomIn',\n shortcut: ['Mod+=', 'Mod+NumpadAdd'],\n categories: ['zoom'],\n run: (c) => stage(c)?.zoomIn(),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:out',\n labelKey: 'commands.zoom.out',\n icon: 'zoomOut',\n shortcut: ['Mod+-', 'Mod+NumpadSubtract'],\n categories: ['zoom'],\n run: (c) => stage(c)?.zoomOut(),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:fit-page',\n labelKey: 'commands.zoom.fitPage',\n icon: 'fitToPage',\n shortcut: 'Mod+0',\n categories: ['zoom'],\n run: (c) => stage(c)?.fitPage(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.FitPage,\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:fit-width',\n labelKey: 'commands.zoom.fitWidth',\n icon: 'fitToWidth',\n shortcut: 'Mod+1',\n categories: ['zoom'],\n run: (c) => stage(c)?.fitWidth(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.FitWidth,\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:automatic',\n labelKey: 'commands.zoom.automatic',\n categories: ['zoom'],\n run: (c) => stage(c)?.automatic(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.Automatic,\n enabled: (c) => stage(c) != null,\n },\n zoomLevel('zoom:50', 0.5, 'commands.zoom.p50'),\n zoomLevel('zoom:100', 1, 'commands.zoom.p100'),\n zoomLevel('zoom:150', 1.5, 'commands.zoom.p150'),\n zoomLevel('zoom:200', 2, 'commands.zoom.p200'),\n zoomLevel('zoom:400', 4, 'commands.zoom.p400'),\n {\n id: 'zoom:menu',\n labelKey: 'commands.zoom.menu',\n icon: 'zoomIn',\n categories: ['zoom'],\n menu: 'zoom',\n },\n\n // ── tools ──────────────────────────────────────────────────────────────\n {\n id: 'pan:toggle',\n labelKey: 'commands.pan',\n icon: 'hand',\n categories: ['tools'],\n run: (c) => interaction(c)?.activateTool('pan'),\n active: (c) => interaction(c)?.activeToolId() === 'pan',\n enabled: (c) => interaction(c) != null,\n },\n {\n id: 'pointer:toggle',\n labelKey: 'commands.pointer',\n icon: 'pointer',\n categories: ['tools'],\n run: (c) => interaction(c)?.activateTool('pointer'),\n active: (c) => interaction(c)?.activeToolId() === 'pointer',\n enabled: (c) => interaction(c) != null,\n },\n\n // ── panels (declarative shell targets) ──────────────────────────────────\n {\n id: 'panel:sidebar',\n labelKey: 'commands.sidebar',\n icon: 'sidebar',\n categories: ['panel'],\n panel: { id: 'sidebar', exclusive: 'left' },\n },\n {\n id: 'panel:search',\n labelKey: 'commands.search',\n icon: 'search',\n // No doc.text.search → every query would 403; the panel has no job.\n visible: (c) => c.tryGet(SearchToken)?.canSearch() ?? true,\n categories: ['panel'],\n panel: { id: 'search', exclusive: 'right' },\n },\n {\n id: 'panel:comment',\n labelKey: 'commands.comment',\n icon: 'comment',\n // No doc.annotate.read → there is nothing this panel could show.\n visible: (c) => anno(c)?.canRead() ?? true,\n categories: ['panel'],\n panel: { id: 'comment', exclusive: 'right' },\n },\n {\n id: 'panel:annotation-style',\n labelKey: 'commands.style',\n icon: 'palette',\n categories: ['panel'],\n panel: { id: 'annotation-style', exclusive: 'right' },\n },\n\n // ── menus (declarative) ─────────────────────────────────────────────────\n {\n id: 'document:menu',\n labelKey: 'commands.menu',\n icon: 'menu',\n categories: ['document'],\n menu: 'document',\n },\n {\n id: 'page:settings',\n labelKey: 'commands.viewControls',\n icon: 'viewSettings',\n categories: ['page'],\n menu: 'page-settings',\n },\n\n // ── document actions ────────────────────────────────────────────────────\n {\n id: 'document:download',\n labelKey: 'commands.download',\n icon: 'download',\n categories: ['document'],\n run: (c) => {\n const id = c.documentId ?? undefined;\n const documents = c.tryGet(DocumentsToken);\n if (!documents) return;\n const pull = () => documents.download(id);\n // The Phase-4 verb-owner contract: WS → serialize → DS as ONE queued\n // operation, so the WillSave mutations are IN the downloaded bytes\n // and two rapid saves can never interleave. Without the actions\n // plugin this degrades to a plain download.\n const actions = c.tryGet(ActionsToken);\n (actions ? actions.runDocumentVerb('save', pull) : pull())\n .then((bytes) => {\n const blob = new Blob([bytes as BlobPart], { type: 'application/pdf' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = 'document.pdf';\n a.click();\n URL.revokeObjectURL(url);\n })\n .catch((e) => console.warn('[snippet-react] download failed', e));\n },\n // The permissions.md chrome exception: a kernel verb with a 1:1\n // capability reads the kernel's `allows` directly — no owning plugin.\n enabled: (c) =>\n c.documentId != null && (c.tryGet(DocumentsToken)?.allows('doc.download') ?? false),\n },\n {\n id: 'document:print',\n labelKey: 'commands.print',\n icon: 'print',\n shortcut: 'Mod+p',\n categories: ['document'],\n // WP → window.print() → DP through the one serialized verb op (the\n // latch suppresses any nested script print); documentless chrome (or\n // no actions plugin) keeps today's direct dialog.\n run: (c) => {\n const actions = c.documentId != null ? c.tryGet(ActionsToken) : null;\n if (actions) void actions.runDocumentVerb('print', () => window.print());\n else window.print();\n },\n // Same exception; documentless chrome (no doc open) keeps print enabled\n // for whatever the host page shows.\n enabled: (c) => c.documentId == null || (c.tryGet(DocumentsToken)?.allows('doc.print') ?? true),\n },\n {\n id: 'document:fullscreen',\n labelKey: 'commands.fullscreen',\n icon: 'externalLink',\n categories: ['document'],\n run: () => {\n if (document.fullscreenElement) document.exitFullscreen();\n else document.documentElement.requestFullscreen().catch(() => {});\n },\n active: () => Boolean(document.fullscreenElement),\n },\n\n // ── page settings (spread / scroll / rotate) ────────────────────────────\n spread('spread:none', 'none', 'commands.spread.none', 'singlePage'),\n spread('spread:odd', 'odd', 'commands.spread.odd', 'doublePage'),\n spread('spread:even', 'even', 'commands.spread.even', 'book2'),\n {\n id: 'scroll:vertical',\n labelKey: 'commands.scroll.vertical',\n icon: 'vertical',\n categories: ['page', 'scroll'],\n run: (c) => stage(c)?.setLayout('vertical'),\n active: (c) => stage(c)?.layout() === 'vertical',\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'scroll:horizontal',\n labelKey: 'commands.scroll.horizontal',\n icon: 'horizontal',\n categories: ['page', 'scroll'],\n run: (c) => stage(c)?.setLayout('horizontal'),\n active: (c) => stage(c)?.layout() === 'horizontal',\n enabled: (c) => stage(c) != null,\n },\n // VIEW rotation (Adobe's \"Rotate View\"): rotates how every page displays in\n // the main stage lens — non-persistent, nothing written to the PDF. The\n // PERMANENT per-page rotation (PageEditToken.rotateBy) belongs in a\n // page-organize surface, not behind the view-settings buttons.\n {\n id: 'rotate:clockwise',\n labelKey: 'commands.rotate.clockwise',\n icon: 'rotateClockwise',\n categories: ['page', 'rotate'],\n run: (c) => stage(c)?.rotateView(90),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'rotate:counter-clockwise',\n labelKey: 'commands.rotate.counterclockwise',\n icon: 'rotateCounterClockwise',\n categories: ['page', 'rotate'],\n run: (c) => stage(c)?.rotateView(-90),\n enabled: (c) => stage(c) != null,\n },\n\n // ── modes (shell exclusive surfaces, tag 'mode') ────────────────────────\n {\n id: 'mode:view',\n labelKey: 'commands.mode.view',\n categories: ['mode'],\n // View = no mode band. Close any open mode surface and drop to pointer.\n run: (c) => {\n const shell = c.tryGet(ShellToken);\n for (const m of MODE_SURFACES) shell?.close(m);\n interaction(c)?.activateTool('pointer');\n },\n active: (c) => {\n const shell = c.tryGet(ShellToken);\n return shell ? MODE_SURFACES.every((m) => !shell.isOpen(m)) : true;\n },\n },\n modeCommand('mode:annotate', 'commands.mode.annotate'),\n modeCommand('mode:shapes', 'commands.mode.shapes'),\n modeCommand('mode:insert', 'commands.mode.insert'),\n modeCommand('mode:form', 'commands.mode.form', 'form-edit'),\n modeCommand('mode:redact', 'commands.mode.redact'),\n\n // ── annotate tools (real interaction tools) ─────────────────────────────\n tool('annotation:add-highlight', 'highlight', 'commands.annotate.highlight', 'highlight', {\n primary: 'color',\n }),\n tool('annotation:add-strikeout', 'strikeout', 'commands.annotate.strikeout', 'strikethrough', {\n primary: 'color',\n }),\n tool('annotation:add-underline', 'underline', 'commands.annotate.underline', 'underline', {\n primary: 'color',\n }),\n tool('annotation:add-squiggly', 'squiggly', 'commands.annotate.squiggly', 'squiggly', {\n primary: 'color',\n }),\n tool('annotation:add-ink', 'ink', 'commands.annotate.ink', 'pencilMarker', {\n primary: 'color',\n }),\n tool(\n 'annotation:add-ink-highlight',\n 'ink-highlight',\n 'commands.annotate.inkHighlight',\n 'inkHighlighter',\n { primary: 'color' },\n ),\n tool('annotation:add-text', 'free-text', 'commands.annotate.text', 'freeText', {\n primary: 'fontColor',\n }),\n tool('annotation:add-insert-text', 'insert-text', 'commands.annotate.insertText', 'insertText', {\n primary: 'color',\n }),\n tool(\n 'annotation:add-replace-text',\n 'replace-text',\n 'commands.annotate.replaceText',\n 'replaceText',\n { primary: 'color' },\n ),\n tool('annotation:add-callout', 'free-text-callout', 'commands.annotate.callout', 'callout', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n // Sticky note (\"comment\") — click-to-place; the icon renders from the\n // engine-baked /AP in the tool's current color.\n tool('annotation:add-note', 'note', 'commands.annotate.note', 'message'),\n // Link — drag an invisible hit rectangle, then set the target in the style\n // panel's Link control (create-then-edit). While active, existing links\n // become editable rects instead of navigating.\n tool('annotation:add-link', 'link', 'commands.annotate.link', 'link'),\n\n // ── shape tools (real interaction tools) ────────────────────────────────\n tool('annotation:add-rectangle', 'square', 'commands.shapes.rectangle', 'square', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-circle', 'circle', 'commands.shapes.circle', 'circle', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-line', 'line', 'commands.shapes.line', 'line', { primary: 'color' }),\n // The arrow tool is a `line` preset (a line with an arrowhead) — registered by\n // the annotationPlugin `tools` config in App.tsx, activated like any other tool.\n tool('annotation:add-arrow', 'arrow', 'commands.shapes.arrow', 'lineArrow', {\n primary: 'color',\n }),\n tool('annotation:add-polygon', 'polygon', 'commands.shapes.polygon', 'polygon', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-polyline', 'polyline', 'commands.shapes.polyline', 'zigzag', {\n primary: 'color',\n }),\n\n // ── insert tools (stamp/attachment real; signature/image inert) ─────────\n tool('insert:add-stamp', 'stamp', 'commands.insert.stamp', 'rubberStamp'),\n // File attachment — click the spot, pick the file (the attachment provider).\n tool('insert:add-attachment', 'attachment', 'commands.insert.attachment', 'paperclip'),\n tool('insert:add-signature', 'signature', 'commands.insert.signature', 'signature'),\n tool('insert:add-image', 'image', 'commands.insert.image', 'photo'),\n\n // ── form tools (the form plugin's draw-to-place palette) ────────────────\n tool('form:add-textfield', 'form-text', 'commands.form.textfield', 'formTextfield'),\n tool('form:add-checkbox', 'form-checkbox', 'commands.form.checkbox', 'formCheckbox'),\n tool('form:add-radio', 'form-radio', 'commands.form.radio', 'formRadio'),\n tool('form:add-select', 'form-combobox', 'commands.form.select', 'formSelect'),\n tool('form:add-listbox', 'form-listbox', 'commands.form.listbox', 'formListbox'),\n\n // ── redaction (v2 parity: the toolbar arms the tool; the panel owns the\n // destructive verbs — Apply All / Clear live in the redaction sidebar) ────\n tool('redaction:redact', 'redact', 'commands.redact.mark', 'redactArea'),\n {\n id: 'panel:redaction',\n labelKey: 'commands.redact.panel',\n icon: 'redactionSidebar',\n // Useful to a session that can propose marks OR apply them; with neither\n // power the panel could only display other people's pending marks.\n visible: (c) => {\n const r = c.tryGet(RedactionToken);\n return r ? r.canMark() || r.canApply() : true;\n },\n categories: ['panel'],\n panel: { id: 'redaction', exclusive: 'right' },\n },\n\n // ── annotation selection (the floating strip's verbs) ──────────────────\n {\n id: 'annotation:delete',\n labelKey: 'commands.annotate.delete',\n icon: 'trash',\n categories: ['annotation'],\n run: (c) => {\n const a = anno(c);\n if (!a) return;\n const form = c.tryGet(FormToken);\n const dtos = a.getSelected();\n const widgets = form ? dtos.filter((d) => d.subtype === 'widget') : [];\n if (widgets.length === 0) {\n a.deleteSelection();\n return;\n }\n // Widgets are FIELD-plane citizens: deleting one goes through doc.forms\n // (the field and every widget of it cascade), never the raw annotation —\n // otherwise the /AcroForm entry would be orphaned.\n const keys = new Set<string>();\n for (const w of widgets) {\n const objnum = w.ref.kind === 'objectNumber' ? w.ref.annotObjectNumber : 0;\n const field = objnum > 0 ? form!.fieldForWidget(objnum) : null;\n if (field) keys.add(fieldKeyOf(field));\n }\n for (const key of keys) void form!.deleteField(key);\n for (const d of dtos) if (d.subtype !== 'widget') void a.delete(d.ref);\n a.deselect();\n },\n visible: hasAnnotationSelection,\n // Mirrors the engine's own authorization: locked/unauthorized annotations\n // keep the button visible but disabled (the engine still enforces).\n enabled: (c) => {\n const a = anno(c);\n const refs = a?.getSelection() ?? [];\n return refs.length > 0 && refs.every((r) => a!.canDelete(r));\n },\n },\n {\n id: 'annotation:comment',\n labelKey: 'commands.comment',\n icon: 'comment',\n categories: ['annotation'],\n // Same 'comment' surface panel:comment toggles — `active` derives from it.\n panel: { id: 'comment', exclusive: 'right' },\n visible: (c) => hasAnnotationSelection(c) && !selectionSubtypes(c).has('widget'),\n },\n {\n id: 'annotation:style',\n labelKey: 'commands.style',\n icon: 'palette',\n categories: ['annotation'],\n panel: { id: 'annotation-style', exclusive: 'right' },\n // The kind table decides: no declared editable props → no style button\n // (v2 hardcoded a subtype blocklist for this).\n visible: (c) => (anno(c)?.getSelectionProps().specs.length ?? 0) > 0,\n },\n {\n id: 'annotation:group',\n labelKey: 'commands.annotate.group',\n icon: 'group',\n categories: ['annotation'],\n run: (c) => void anno(c)?.group(),\n visible: (c) => anno(c)?.canGroup() ?? false,\n },\n {\n id: 'annotation:ungroup',\n labelKey: 'commands.annotate.ungroup',\n icon: 'ungroup',\n categories: ['annotation'],\n run: (c) => void anno(c)?.ungroup(),\n visible: (c) => anno(c)?.canUngroup() ?? false,\n },\n\n // ── text selection (the selection strip's verbs) ────────────────────────\n {\n id: 'selection:copy',\n labelKey: 'commands.selection.copy',\n icon: 'copy',\n categories: ['selection'],\n // The permission story rides `visible`: a deployment denying\n // doc.text.copy shows no Copy at all — and with zero visible commands\n // the strip renders nothing, so there is never an empty bubble.\n visible: (c) => {\n const s = textSelection(c);\n return !!s && s.hasSelection() && s.canCopy();\n },\n // Async Clipboard write inside the click's activation window; instant\n // when <SelectionClipboard>'s commit prefetch already fetched the text.\n // A successful copy consumes the selection, which also dismisses its strip.\n run: (c) => {\n const s = textSelection(c);\n if (!s) return;\n const copiedRange = s.snapshot().range;\n void copySelection(s).then(\n (text) => {\n // Clipboard writes can outlive the click. Never let an older copy\n // completion clear a newer selection the user made in the meantime.\n if (text !== '' && sameTextRange(s.snapshot().range, copiedRange)) s.clear();\n },\n () => {}, // Copy failed: preserve the selection so the user can retry.\n );\n },\n },\n\n // ── link strip items (v2's \"Link / Go to link / Remove link\") ───────────\n {\n // Make the selection a link: opens the anchored POPOVER (v2's popup —\n // a link is a verb on the selection, not a style), whose editor sets\n // the target through `updateSelection({ link })`; the plugin's\n // reconciler materializes the attached child annotations.\n id: 'annotation:link',\n labelKey: 'commands.annotate.link',\n icon: 'link',\n categories: ['annotation'],\n run: (c) => c.tryGet(ShellToken)?.toggle('link-editor'),\n active: (c) => c.tryGet(ShellToken)?.isOpen('link-editor') ?? false,\n visible: (c) => selectionLink(c) === null,\n },\n {\n id: 'annotation:goto-link',\n labelKey: 'commands.annotate.gotoLink',\n icon: 'externalLink',\n categories: ['annotation'],\n run: (c) => {\n const target = selectionLink(c);\n const link = c.tryGet(LinkToken);\n // The opener PERFORMS the uri outcome (window.open) — bare `activate`\n // resolves but opens nothing for URL targets.\n if (target && link) openLinkTarget(link, target);\n },\n visible: (c) => selectionLink(c) != null,\n },\n {\n id: 'annotation:remove-link',\n labelKey: 'commands.annotate.removeLink',\n icon: 'linkOff',\n categories: ['annotation'],\n run: (c) => anno(c)?.updateSelection({ link: null }),\n visible: (c) => selectionLink(c) != null,\n },\n\n // ── history (no plugin yet → disabled, shows the disabled styling) ──────\n {\n id: 'history:undo',\n labelKey: 'commands.undo',\n icon: 'arrowBackUp',\n categories: ['history'],\n run: () => {},\n enabled: () => false,\n },\n {\n id: 'history:redo',\n labelKey: 'commands.redo',\n icon: 'arrowForwardUp',\n categories: ['history'],\n run: () => {},\n enabled: () => false,\n },\n];\n\n// ── mode helpers ─────────────────────────────────────────────────────────────\n// Modes are exclusive shell surfaces tagged 'mode'; the secondary band renders\n// whichever one is open. Kept below the array to keep the list readable.\nexport const MODE_SURFACES = [\n 'mode:annotate',\n 'mode:shapes',\n 'mode:insert',\n 'mode:form',\n 'mode:redact',\n] as const;\n\nfunction modeCommand(\n id: (typeof MODE_SURFACES)[number],\n labelKey: string,\n toolId: string = 'pointer',\n): CommandDef {\n return {\n id,\n labelKey,\n categories: ['mode'],\n // A mode tab is a shell surface AND a tool policy: the Form tab flips the\n // pointer into form design ('form-edit' — widgets select/move/resize like\n // annotations); every other tab (and closing one) drops back to the\n // default pointer, where widgets are fill controls again.\n run: (c) => {\n const shell = c.tryGet(ShellToken);\n shell?.toggle(id, { exclusive: 'mode' });\n interaction(c)?.activateTool(shell?.isOpen(id) ? toolId : 'pointer');\n },\n active: (c) => c.tryGet(ShellToken)?.isOpen(id) ?? false,\n };\n}\n"],"mappings":";;;;;;;;;;;;AAiCA,MAAM,SAAS,MAAW,EAAE,OAAO,UAAU;AAC7C,MAAM,eAAe,MAAW,EAAE,OAAO,gBAAgB;AACzD,MAAM,QAAQ,MAAW,EAAE,OAAO,eAAe;AACjD,MAAM,iBAAiB,MAAW,EAAE,OAAO,cAAc;AACzD,MAAM,iBAAiB,GAAqB,MAC1C,MAAM,KACL,CAAC,CAAC,KACD,CAAC,CAAC,KACF,EAAE,MAAM,QAAQ,EAAE,MAAM,OACxB,EAAE,MAAM,UAAU,EAAE,MAAM,SAC1B,EAAE,IAAI,QAAQ,EAAE,IAAI,OACpB,EAAE,IAAI,UAAU,EAAE,IAAI;AAG1B,MAAM,0BAA0B,OAAY,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,UAAU,KAAK;;;AAGhF,MAAM,qBAAqB,MAAW,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,YAAY,KAAK,CAAC,EAAA,CAAG,KAAK,MAAM,EAAE,OAAO,CAAC;;;;;;AAMlG,MAAM,iBAAiB,MAA6C;CAClE,MAAM,IAAI,KAAK,CAAC,CAAC,EAAE,kBAAkB;CACrC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,MAAM,MAAM,EAAE,QAAQ,MAAM,KAAK,EAAE,MAAM,SAAS,MAAM,GAAG,OAAO,KAAA;CACrF,OAAQ,EAAE,OAAO,QAAQ;AAC3B;;;;;;;AAkBA,MAAa,aAA8E,CAAC;AAE5F,MAAM,cACJ,GACA,QACA,WACsB;CACtB,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,OAAO,EAAE,OAAO,eAAe;CACrC,IAAI,CAAC,MAAM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Z,eAAe;CACjB;AACF;AAKA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;AACF;AAEA,SAAS,YACP,IACA,UACA,SAAiB,WACL;CACZ,OAAO;EACL;EACA;EACA,YAAY,CAAC,MAAM;EAKnB,MAAM,MAAM;GACV,MAAM,QAAQ,EAAE,OAAO,UAAU;GACjC,OAAO,OAAO,IAAI,EAAE,WAAW,OAAO,CAAC;GACvC,YAAY,CAAC,CAAC,EAAE,aAAa,OAAO,OAAO,EAAE,IAAI,SAAS,SAAS;EACrE;EACA,SAAS,MAAM,EAAE,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,KAAK;CACrD;AACF"}
1
+ {"version":3,"file":"commands.js","names":[],"sources":["../src/config/commands.ts"],"sourcesContent":["/**\n * The command vocabulary — the semantic layer. Ported in spirit from the v2\n * snippet's commands.ts, but every command is a pure value: label key, icon,\n * shortcut, derivations, and a `run` (or a declarative surface target). The\n * v2 `registry.getPlugin<T>(id)?.provides()` string-and-cast dance becomes a\n * typed `ctx.get(Token)`.\n *\n * Wiring reality (chrome-parity scope):\n * zoom/pan/pointer/spread/scroll/rotate → real Stage / Interaction / PageEdit\n * modes → shell exclusive surfaces ('mode')\n * panels / menus / modals → declarative shell targets\n * annotate + shape tools → real interaction tools\n * form tools → real form plugin palette (draw-to-place)\n * insert tools → real stamp library panel + image/\n * attachment click-then-pick (signature\n * still inert, via demo-tools)\n * history undo/redo → disabled (no history plugin in v3 yet)\n */\nimport type { CommandDef, IconAccent } from '@embedpdf/react/commands';\nimport { DocumentsToken } from '@embedpdf/react/runtime';\nimport { StageToken, ZoomMode } from '@embedpdf/react/stage';\nimport type { SpreadMode } from '@embedpdf/react/stage';\nimport { InteractionToken } from '@embedpdf/react/interaction';\nimport { ShellToken } from '@embedpdf/react/shell';\nimport { AnnotationToken } from '@embedpdf/react/annotation';\nimport { copySelection, SelectionToken, type TextRange } from '@embedpdf/react/selection';\nimport { fieldKeyOf, FormToken } from '@embedpdf/react/form';\nimport { ActionsToken } from '@embedpdf/react/actions';\nimport { LinkToken, openLinkTarget, type PdfLinkTarget } from '@embedpdf/react/link';\nimport { SearchToken } from '@embedpdf/react/search';\nimport { RedactionToken } from '@embedpdf/react/redaction';\nimport { StampToken } from '@embedpdf/react/stamp';\nimport { SignatureToken } from '@embedpdf/react/signature';\nimport { I18nToken } from '@embedpdf/react/i18n';\n\n// ── helpers ────────────────────────────────────────────────────────────────\ntype Ctx = Parameters<NonNullable<CommandDef['run']>>[0];\n\n/** Where selection-made stamps go: the user's own library, persisted. */\nconst CUSTOM_LIBRARY_ID = 'embedpdf-custom';\n\nconst stage = (c: Ctx) => c.tryGet(StageToken);\nconst interaction = (c: Ctx) => c.tryGet(InteractionToken);\nconst anno = (c: Ctx) => c.tryGet(AnnotationToken);\nconst textSelection = (c: Ctx) => c.tryGet(SelectionToken);\nconst sameTextRange = (a: TextRange | null, b: TextRange | null): boolean =>\n a === b ||\n (!!a &&\n !!b &&\n a.start.pon === b.start.pon &&\n a.start.index === b.start.index &&\n a.end.pon === b.end.pon &&\n a.end.index === b.end.index);\n\n// ── annotation-selection predicates (drive the floating strip's contents) ────\nconst hasAnnotationSelection = (c: Ctx) => (anno(c)?.selection().length ?? 0) > 0;\n/** v2 gated strip items per subtype (comment hidden on links/widgets) — here\n * it's one derivation over the selected DTOs instead of per-command lookups. */\nconst selectionSubtypes = (c: Ctx) => new Set((anno(c)?.getSelected() ?? []).map((a) => a.subtype));\n/**\n * The selection's `link` value: a target, `null` (linkable but none set), or\n * `undefined` when the selection cannot carry a link at all (widgets, mixed\n * link states) — the schema decides, never a subtype blocklist.\n */\nconst selectionLink = (c: Ctx): PdfLinkTarget | null | undefined => {\n const p = anno(c)?.getSelectionProps();\n if (!p || !p.specs.some((s) => s.key === 'link') || p.mixed.includes('link')) return undefined;\n return (p.values.link ?? null) as PdfLinkTarget | null;\n};\n\n// ── tool icon accents: THIS viewer's design decision ─────────────────────────\n// A tool declares which drawing default each colored part of its glyph previews.\n// This is intentionally explicit at the command definition: property-panel order\n// does not determine icon meaning, and another viewer may make a different choice.\ntype ColorKey = 'color' | 'interiorColor' | 'fontColor';\nexport interface ToolAccentDefinition {\n primary: ColorKey;\n secondary?: ColorKey;\n}\n\n/**\n * toolId → the SAME icon + accent definition its toolbar button uses, recorded\n * as a side effect of the `tool()` command definitions below — ONE source of\n * truth, so the tool cursor (ui/tool-cursor.tsx) and the button can never\n * drift apart.\n */\nexport const TOOL_ICONS: Record<string, { icon: string; accent?: ToolAccentDefinition }> = {};\n\n// The `stamp` tool has no toolbar button of its own: it is ARMED by the stamps\n// panel (picking a library asset), never activated directly — so its cursor\n// skin is recorded here rather than as a side effect of a `tool()` definition.\nTOOL_ICONS['stamp'] = { icon: 'rubberStamp' };\n\nconst toolAccent = (\n c: Ctx,\n toolId: string,\n accent: ToolAccentDefinition | undefined,\n): IconAccent | null => {\n if (!accent) return null;\n const anno = c.tryGet(AnnotationToken);\n if (!anno) return null;\n const d = anno.currentDefaults(toolId);\n return {\n primary: d[accent.primary] ?? undefined,\n secondary: accent.secondary ? (d[accent.secondary] ?? undefined) : undefined,\n };\n};\n\n/** A tool command: activates a real interaction tool; active = it's the tool.\n * The icon previews the tool's current defaults — keyed by the SAME toolId\n * as run/active, so the accent can't drift to another tool's colors. */\nconst tool = (\n id: string,\n toolId: string,\n labelKey: string,\n icon: string,\n accent?: ToolAccentDefinition,\n): CommandDef => {\n TOOL_ICONS[toolId] = { icon, ...(accent ? { accent } : {}) };\n // Authoring tools grey out without their family's authority — the SAME\n // twin the owning plugin's gesture gate consults (permissions.md), so a\n // button can never offer a doomed paint: annotation/insert tools ask\n // annotation create authority, form-design tools ask `form.canDesign()`,\n // the redact marker asks `redaction.canMark()`. Absent plugin → ungated\n // (a build without the plugin has no authority question to ask).\n const authority: ((c: Ctx) => boolean) | null =\n id.startsWith('annotation:add') || id.startsWith('insert:add')\n ? (c) => anno(c)?.canCreate() ?? true\n : id.startsWith('form:add')\n ? (c) => c.tryGet(FormToken)?.canDesign() ?? true\n : id === 'redaction:redact'\n ? (c) => c.tryGet(RedactionToken)?.canMark() ?? true\n : null;\n return {\n id,\n labelKey,\n icon,\n categories: ['tool'],\n run: (c) => interaction(c)?.activateTool(toolId),\n active: (c) => interaction(c)?.activeToolId() === toolId,\n enabled: (c) => interaction(c) != null && (authority?.(c) ?? true),\n iconAccent: (c) => toolAccent(c, toolId, accent),\n };\n};\n\n/** A fixed zoom level (fraction), e.g. 1 = 100%. */\nconst zoomLevel = (id: string, level: number, label: string): CommandDef => ({\n id,\n labelKey: label,\n categories: ['zoom', 'zoom-level'],\n run: (c) => stage(c)?.zoomTo({ level }),\n enabled: (c) => stage(c) != null,\n});\n\nconst spread = (id: string, mode: SpreadMode, labelKey: string, icon: string): CommandDef => ({\n id,\n labelKey,\n icon,\n categories: ['page', 'spread'],\n run: (c) => stage(c)?.setSpread(mode),\n active: (c) => stage(c)?.spread() === mode,\n enabled: (c) => stage(c) != null,\n});\n\nexport const defaultCommands: CommandDef[] = [\n // ── zoom ───────────────────────────────────────────────────────────────\n {\n id: 'zoom:in',\n labelKey: 'commands.zoom.in',\n icon: 'zoomIn',\n shortcut: ['Mod+=', 'Mod+NumpadAdd'],\n categories: ['zoom'],\n run: (c) => stage(c)?.zoomIn(),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:out',\n labelKey: 'commands.zoom.out',\n icon: 'zoomOut',\n shortcut: ['Mod+-', 'Mod+NumpadSubtract'],\n categories: ['zoom'],\n run: (c) => stage(c)?.zoomOut(),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:fit-page',\n labelKey: 'commands.zoom.fitPage',\n icon: 'fitToPage',\n shortcut: 'Mod+0',\n categories: ['zoom'],\n run: (c) => stage(c)?.fitPage(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.FitPage,\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:fit-width',\n labelKey: 'commands.zoom.fitWidth',\n icon: 'fitToWidth',\n shortcut: 'Mod+1',\n categories: ['zoom'],\n run: (c) => stage(c)?.fitWidth(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.FitWidth,\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'zoom:automatic',\n labelKey: 'commands.zoom.automatic',\n categories: ['zoom'],\n run: (c) => stage(c)?.automatic(),\n active: (c) => stage(c)?.zoomMode() === ZoomMode.Automatic,\n enabled: (c) => stage(c) != null,\n },\n zoomLevel('zoom:50', 0.5, 'commands.zoom.p50'),\n zoomLevel('zoom:100', 1, 'commands.zoom.p100'),\n zoomLevel('zoom:150', 1.5, 'commands.zoom.p150'),\n zoomLevel('zoom:200', 2, 'commands.zoom.p200'),\n zoomLevel('zoom:400', 4, 'commands.zoom.p400'),\n {\n id: 'zoom:menu',\n labelKey: 'commands.zoom.menu',\n icon: 'zoomIn',\n categories: ['zoom'],\n menu: 'zoom',\n },\n\n // ── tools ──────────────────────────────────────────────────────────────\n {\n id: 'pan:toggle',\n labelKey: 'commands.pan',\n icon: 'hand',\n categories: ['tools'],\n run: (c) => interaction(c)?.activateTool('pan'),\n active: (c) => interaction(c)?.activeToolId() === 'pan',\n enabled: (c) => interaction(c) != null,\n },\n {\n id: 'pointer:toggle',\n labelKey: 'commands.pointer',\n icon: 'pointer',\n categories: ['tools'],\n run: (c) => interaction(c)?.activateTool('pointer'),\n active: (c) => interaction(c)?.activeToolId() === 'pointer',\n enabled: (c) => interaction(c) != null,\n },\n\n // ── panels (declarative shell targets) ──────────────────────────────────\n {\n id: 'panel:sidebar',\n labelKey: 'commands.sidebar',\n icon: 'sidebar',\n categories: ['panel'],\n panel: { id: 'sidebar', exclusive: 'left' },\n },\n {\n id: 'panel:search',\n labelKey: 'commands.search',\n icon: 'search',\n // No doc.text.search → every query would 403; the panel has no job.\n visible: (c) => c.tryGet(SearchToken)?.canSearch() ?? true,\n categories: ['panel'],\n panel: { id: 'search', exclusive: 'right' },\n },\n {\n id: 'panel:comment',\n labelKey: 'commands.comment',\n icon: 'comment',\n // No doc.annotate.read → there is nothing this panel could show.\n visible: (c) => anno(c)?.canRead() ?? true,\n categories: ['panel'],\n panel: { id: 'comment', exclusive: 'right' },\n },\n {\n id: 'panel:annotation-style',\n labelKey: 'commands.style',\n icon: 'palette',\n categories: ['panel'],\n panel: { id: 'annotation-style', exclusive: 'right' },\n },\n\n // ── menus (declarative) ─────────────────────────────────────────────────\n {\n id: 'document:menu',\n labelKey: 'commands.menu',\n icon: 'menu',\n categories: ['document'],\n menu: 'document',\n },\n {\n id: 'page:settings',\n labelKey: 'commands.viewControls',\n icon: 'viewSettings',\n categories: ['page'],\n menu: 'page-settings',\n },\n\n // ── document actions ────────────────────────────────────────────────────\n {\n id: 'document:download',\n labelKey: 'commands.download',\n icon: 'download',\n categories: ['document'],\n run: (c) => {\n const id = c.documentId ?? undefined;\n const documents = c.tryGet(DocumentsToken);\n if (!documents) return;\n const pull = () => documents.download(id);\n // The Phase-4 verb-owner contract: WS → serialize → DS as ONE queued\n // operation, so the WillSave mutations are IN the downloaded bytes\n // and two rapid saves can never interleave. Without the actions\n // plugin this degrades to a plain download.\n const actions = c.tryGet(ActionsToken);\n (actions ? actions.runDocumentVerb('save', pull) : pull())\n .then((bytes) => {\n const blob = new Blob([bytes as BlobPart], { type: 'application/pdf' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = 'document.pdf';\n a.click();\n URL.revokeObjectURL(url);\n })\n .catch((e) => console.warn('[snippet-react] download failed', e));\n },\n // The permissions.md chrome exception: a kernel verb with a 1:1\n // capability reads the kernel's `allows` directly — no owning plugin.\n enabled: (c) =>\n c.documentId != null && (c.tryGet(DocumentsToken)?.allows('doc.download') ?? false),\n },\n {\n id: 'document:print',\n labelKey: 'commands.print',\n icon: 'print',\n shortcut: 'Mod+p',\n categories: ['document'],\n // WP → window.print() → DP through the one serialized verb op (the\n // latch suppresses any nested script print); documentless chrome (or\n // no actions plugin) keeps today's direct dialog.\n run: (c) => {\n const actions = c.documentId != null ? c.tryGet(ActionsToken) : null;\n if (actions) void actions.runDocumentVerb('print', () => window.print());\n else window.print();\n },\n // Same exception; documentless chrome (no doc open) keeps print enabled\n // for whatever the host page shows.\n enabled: (c) => c.documentId == null || (c.tryGet(DocumentsToken)?.allows('doc.print') ?? true),\n },\n {\n id: 'document:fullscreen',\n labelKey: 'commands.fullscreen',\n icon: 'externalLink',\n categories: ['document'],\n run: () => {\n if (document.fullscreenElement) document.exitFullscreen();\n else document.documentElement.requestFullscreen().catch(() => {});\n },\n active: () => Boolean(document.fullscreenElement),\n },\n\n // ── page settings (spread / scroll / rotate) ────────────────────────────\n spread('spread:none', 'none', 'commands.spread.none', 'singlePage'),\n spread('spread:odd', 'odd', 'commands.spread.odd', 'doublePage'),\n spread('spread:even', 'even', 'commands.spread.even', 'book2'),\n {\n id: 'scroll:vertical',\n labelKey: 'commands.scroll.vertical',\n icon: 'vertical',\n categories: ['page', 'scroll'],\n run: (c) => stage(c)?.setLayout('vertical'),\n active: (c) => stage(c)?.layout() === 'vertical',\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'scroll:horizontal',\n labelKey: 'commands.scroll.horizontal',\n icon: 'horizontal',\n categories: ['page', 'scroll'],\n run: (c) => stage(c)?.setLayout('horizontal'),\n active: (c) => stage(c)?.layout() === 'horizontal',\n enabled: (c) => stage(c) != null,\n },\n // VIEW rotation (Adobe's \"Rotate View\"): rotates how every page displays in\n // the main stage lens — non-persistent, nothing written to the PDF. The\n // PERMANENT per-page rotation (PageEditToken.rotateBy) belongs in a\n // page-organize surface, not behind the view-settings buttons.\n {\n id: 'rotate:clockwise',\n labelKey: 'commands.rotate.clockwise',\n icon: 'rotateClockwise',\n categories: ['page', 'rotate'],\n run: (c) => stage(c)?.rotateView(90),\n enabled: (c) => stage(c) != null,\n },\n {\n id: 'rotate:counter-clockwise',\n labelKey: 'commands.rotate.counterclockwise',\n icon: 'rotateCounterClockwise',\n categories: ['page', 'rotate'],\n run: (c) => stage(c)?.rotateView(-90),\n enabled: (c) => stage(c) != null,\n },\n\n // ── modes (shell exclusive surfaces, tag 'mode') ────────────────────────\n {\n id: 'mode:view',\n labelKey: 'commands.mode.view',\n categories: ['mode'],\n // View = no mode band. Close any open mode surface and drop to pointer.\n run: (c) => {\n const shell = c.tryGet(ShellToken);\n for (const m of MODE_SURFACES) shell?.close(m);\n interaction(c)?.activateTool('pointer');\n },\n active: (c) => {\n const shell = c.tryGet(ShellToken);\n return shell ? MODE_SURFACES.every((m) => !shell.isOpen(m)) : true;\n },\n },\n modeCommand('mode:annotate', 'commands.mode.annotate'),\n modeCommand('mode:shapes', 'commands.mode.shapes'),\n modeCommand('mode:insert', 'commands.mode.insert'),\n modeCommand('mode:form', 'commands.mode.form', 'form-edit'),\n modeCommand('mode:redact', 'commands.mode.redact'),\n\n // ── annotate tools (real interaction tools) ─────────────────────────────\n tool('annotation:add-highlight', 'highlight', 'commands.annotate.highlight', 'highlight', {\n primary: 'color',\n }),\n tool('annotation:add-strikeout', 'strikeout', 'commands.annotate.strikeout', 'strikethrough', {\n primary: 'color',\n }),\n tool('annotation:add-underline', 'underline', 'commands.annotate.underline', 'underline', {\n primary: 'color',\n }),\n tool('annotation:add-squiggly', 'squiggly', 'commands.annotate.squiggly', 'squiggly', {\n primary: 'color',\n }),\n tool('annotation:add-ink', 'ink', 'commands.annotate.ink', 'pencilMarker', {\n primary: 'color',\n }),\n tool(\n 'annotation:add-ink-highlight',\n 'ink-highlight',\n 'commands.annotate.inkHighlight',\n 'inkHighlighter',\n { primary: 'color' },\n ),\n tool('annotation:add-text', 'free-text', 'commands.annotate.text', 'freeText', {\n primary: 'fontColor',\n }),\n tool('annotation:add-insert-text', 'insert-text', 'commands.annotate.insertText', 'insertText', {\n primary: 'color',\n }),\n tool(\n 'annotation:add-replace-text',\n 'replace-text',\n 'commands.annotate.replaceText',\n 'replaceText',\n { primary: 'color' },\n ),\n tool('annotation:add-callout', 'free-text-callout', 'commands.annotate.callout', 'callout', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n // Sticky note (\"comment\") — click-to-place; the icon renders from the\n // engine-baked /AP in the tool's current color.\n tool('annotation:add-note', 'note', 'commands.annotate.note', 'message'),\n // Link — drag an invisible hit rectangle, then set the target in the style\n // panel's Link control (create-then-edit). While active, existing links\n // become editable rects instead of navigating.\n tool('annotation:add-link', 'link', 'commands.annotate.link', 'link'),\n\n // ── shape tools (real interaction tools) ────────────────────────────────\n tool('annotation:add-rectangle', 'square', 'commands.shapes.rectangle', 'square', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-circle', 'circle', 'commands.shapes.circle', 'circle', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-line', 'line', 'commands.shapes.line', 'line', { primary: 'color' }),\n // The arrow tool is a `line` preset (a line with an arrowhead) — registered by\n // the annotationPlugin `tools` config in App.tsx, activated like any other tool.\n tool('annotation:add-arrow', 'arrow', 'commands.shapes.arrow', 'lineArrow', {\n primary: 'color',\n }),\n tool('annotation:add-polygon', 'polygon', 'commands.shapes.polygon', 'polygon', {\n primary: 'color',\n secondary: 'interiorColor',\n }),\n tool('annotation:add-polyline', 'polyline', 'commands.shapes.polyline', 'zigzag', {\n primary: 'color',\n }),\n\n // ── insert tools (stamp/image/attachment real; signature inert) ─────────\n // Stamps open a LIBRARY, they are not a file dialog: the panel lists the\n // reusable named assets the stamp plugin holds, and picking one arms the\n // annotation plugin's stamp tool with that asset's bytes (stamps-panel.tsx).\n // Arbitrary image bytes are `insert:add-image` below — a different gesture,\n // so a different button.\n {\n id: 'insert:add-stamp',\n labelKey: 'commands.insert.stamp',\n icon: 'rubberStamp',\n // No stamp plugin → no library to show. No create authority → nothing the\n // picker could place (the same twin every insert tool's button asks).\n visible: (c) => c.tryGet(StampToken) != null,\n enabled: (c) => anno(c)?.canCreate() ?? true,\n categories: ['panel'],\n panel: { id: 'stamps', exclusive: 'right' },\n },\n // File attachment — click the spot, pick the file (the attachment provider).\n tool('insert:add-attachment', 'attachment', 'commands.insert.attachment', 'paperclip'),\n // Signatures open the PEOPLE panel (libraries of kind 'signatures'): pick a\n // mark → with a target field it signs (or fills) it, else it arms — a click\n // on a signature field signs, anywhere else drops a stamp (Preview).\n {\n id: 'insert:add-signature',\n labelKey: 'commands.insert.signature',\n icon: 'signature',\n visible: (c) => c.tryGet(StampToken) != null && c.tryGet(SignatureToken) != null,\n enabled: (c) => anno(c)?.canCreate() ?? true,\n categories: ['panel'],\n panel: { id: 'signatures', exclusive: 'right' },\n },\n // Image — the click-then-pick placement: click the spot, the file dialog\n // opens (narrowed to rasters), the picture lands where you clicked. The\n // tool itself is a `stamp` preset registered in viewer.tsx.\n tool('insert:add-image', 'image', 'commands.insert.image', 'photo'),\n\n // ── form tools (the form plugin's draw-to-place palette) ────────────────\n tool('form:add-textfield', 'form-text', 'commands.form.textfield', 'formTextfield'),\n tool('form:add-checkbox', 'form-checkbox', 'commands.form.checkbox', 'formCheckbox'),\n tool('form:add-radio', 'form-radio', 'commands.form.radio', 'formRadio'),\n tool('form:add-select', 'form-combobox', 'commands.form.select', 'formSelect'),\n tool('form:add-listbox', 'form-listbox', 'commands.form.listbox', 'formListbox'),\n tool('form:add-signature', 'form-signature', 'commands.form.signature', 'signature'),\n\n // ── redaction (v2 parity: the toolbar arms the tool; the panel owns the\n // destructive verbs — Apply All / Clear live in the redaction sidebar) ────\n tool('redaction:redact', 'redact', 'commands.redact.mark', 'redactArea'),\n {\n id: 'panel:redaction',\n labelKey: 'commands.redact.panel',\n icon: 'redactionSidebar',\n // Useful to a session that can propose marks OR apply them; with neither\n // power the panel could only display other people's pending marks.\n visible: (c) => {\n const r = c.tryGet(RedactionToken);\n return r ? r.canMark() || r.canApply() : true;\n },\n categories: ['panel'],\n panel: { id: 'redaction', exclusive: 'right' },\n },\n\n // ── annotation selection (the floating strip's verbs) ──────────────────\n {\n id: 'annotation:delete',\n labelKey: 'commands.annotate.delete',\n icon: 'trash',\n categories: ['annotation'],\n run: (c) => {\n const a = anno(c);\n if (!a) return;\n const form = c.tryGet(FormToken);\n const dtos = a.getSelected();\n const widgets = form ? dtos.filter((d) => d.subtype === 'widget') : [];\n if (widgets.length === 0) {\n a.deleteSelection();\n return;\n }\n // Widgets are FIELD-plane citizens: deleting one goes through doc.forms\n // (the field and every widget of it cascade), never the raw annotation —\n // otherwise the /AcroForm entry would be orphaned.\n const keys = new Set<string>();\n for (const w of widgets) {\n const objnum = w.ref.kind === 'objectNumber' ? w.ref.annotObjectNumber : 0;\n const field = objnum > 0 ? form!.fieldForWidget(objnum) : null;\n if (field) keys.add(fieldKeyOf(field));\n }\n for (const key of keys) void form!.deleteField(key);\n for (const d of dtos) if (d.subtype !== 'widget') void a.delete(d.ref);\n a.deselect();\n },\n visible: hasAnnotationSelection,\n // Mirrors the engine's own authorization: locked/unauthorized annotations\n // keep the button visible but disabled (the engine still enforces).\n enabled: (c) => {\n const a = anno(c);\n const refs = a?.getSelection() ?? [];\n return refs.length > 0 && refs.every((r) => a!.canDelete(r));\n },\n },\n {\n id: 'annotation:comment',\n labelKey: 'commands.comment',\n icon: 'comment',\n categories: ['annotation'],\n // Same 'comment' surface panel:comment toggles — `active` derives from it.\n panel: { id: 'comment', exclusive: 'right' },\n visible: (c) => hasAnnotationSelection(c) && !selectionSubtypes(c).has('widget'),\n },\n {\n id: 'annotation:style',\n labelKey: 'commands.style',\n icon: 'palette',\n categories: ['annotation'],\n panel: { id: 'annotation-style', exclusive: 'right' },\n // The kind table decides: no declared editable props → no style button\n // (v2 hardcoded a subtype blocklist for this).\n visible: (c) => (anno(c)?.getSelectionProps().specs.length ?? 0) > 0,\n },\n {\n // The selection becomes a reusable stamp: the engine flattens the\n // selected appearances into one page (vector, positions kept) and the\n // stamp plugin files it under the user's own library — persisted like\n // any library, exportable as a PDF Acrobat reads.\n id: 'annotation:stamp-from-selection',\n labelKey: 'commands.annotate.stampFromSelection',\n icon: 'rubberStampPlus',\n categories: ['annotation'],\n run: (c) => {\n const a = anno(c);\n const stamp = c.tryGet(StampToken);\n const documentId = c.documentId;\n if (!a || !stamp || documentId == null) return;\n const dtos = a.getSelected();\n const pon = dtos[0]?.ref.pageObjectNumber;\n if (pon === undefined) return;\n const i18n = c.tryGet(I18nToken);\n const label = i18n?.t('demo.stampsCustomLabel') ?? 'Custom stamp';\n const libraryName = i18n?.t('demo.stampsCustomLibrary') ?? 'My stamps';\n const libraryId = CUSTOM_LIBRARY_ID;\n const ensureLibrary = stamp.library(libraryId)\n ? Promise.resolve(libraryId)\n : stamp.createLibrary(libraryName, { id: libraryId, categories: ['custom'] });\n ensureLibrary\n .then((id) =>\n stamp.addAssetFromAnnotations(\n documentId,\n pon,\n dtos.map((d) => d.ref),\n { libraryId: id, label: `${label} ${stamp.assets(id).length + 1}` },\n ),\n )\n // v2 jumped the sidebar to the custom library; the panel reads the\n // surface's open props for its picker.\n .then(() =>\n c.tryGet(ShellToken)?.open('stamps', {\n exclusive: 'right',\n props: { libraryId },\n }),\n )\n .catch((e) => console.warn('[embedpdf] stamp from selection failed', e));\n },\n // One page, no widgets (a form field is not artwork), no pending\n // redaction marks, and a library to put it in. The engine refuses hidden\n // or appearance-less annotations itself — all-or-nothing, never a stamp\n // missing a part.\n visible: (c) =>\n c.tryGet(StampToken) != null &&\n hasAnnotationSelection(c) &&\n !selectionSubtypes(c).has('widget') &&\n !selectionSubtypes(c).has('redact') &&\n new Set((anno(c)?.getSelected() ?? []).map((d) => d.ref.pageObjectNumber)).size === 1,\n enabled: (c) => c.tryGet(DocumentsToken)?.allows('doc.download') ?? true,\n },\n {\n id: 'annotation:group',\n labelKey: 'commands.annotate.group',\n icon: 'group',\n categories: ['annotation'],\n run: (c) => void anno(c)?.group(),\n visible: (c) => anno(c)?.canGroup() ?? false,\n },\n {\n id: 'annotation:ungroup',\n labelKey: 'commands.annotate.ungroup',\n icon: 'ungroup',\n categories: ['annotation'],\n run: (c) => void anno(c)?.ungroup(),\n visible: (c) => anno(c)?.canUngroup() ?? false,\n },\n\n // ── text selection (the selection strip's verbs) ────────────────────────\n {\n id: 'selection:copy',\n labelKey: 'commands.selection.copy',\n icon: 'copy',\n categories: ['selection'],\n // The permission story rides `visible`: a deployment denying\n // doc.text.copy shows no Copy at all — and with zero visible commands\n // the strip renders nothing, so there is never an empty bubble.\n visible: (c) => {\n const s = textSelection(c);\n return !!s && s.hasSelection() && s.canCopy();\n },\n // Async Clipboard write inside the click's activation window; instant\n // when <SelectionClipboard>'s commit prefetch already fetched the text.\n // A successful copy consumes the selection, which also dismisses its strip.\n run: (c) => {\n const s = textSelection(c);\n if (!s) return;\n const copiedRange = s.snapshot().range;\n void copySelection(s).then(\n (text) => {\n // Clipboard writes can outlive the click. Never let an older copy\n // completion clear a newer selection the user made in the meantime.\n if (text !== '' && sameTextRange(s.snapshot().range, copiedRange)) s.clear();\n },\n () => {}, // Copy failed: preserve the selection so the user can retry.\n );\n },\n },\n\n // ── link strip items (v2's \"Link / Go to link / Remove link\") ───────────\n {\n // Make the selection a link: opens the anchored POPOVER (v2's popup —\n // a link is a verb on the selection, not a style), whose editor sets\n // the target through `updateSelection({ link })`; the plugin's\n // reconciler materializes the attached child annotations.\n id: 'annotation:link',\n labelKey: 'commands.annotate.link',\n icon: 'link',\n categories: ['annotation'],\n run: (c) => c.tryGet(ShellToken)?.toggle('link-editor'),\n active: (c) => c.tryGet(ShellToken)?.isOpen('link-editor') ?? false,\n visible: (c) => selectionLink(c) === null,\n },\n {\n id: 'annotation:goto-link',\n labelKey: 'commands.annotate.gotoLink',\n icon: 'externalLink',\n categories: ['annotation'],\n run: (c) => {\n const target = selectionLink(c);\n const link = c.tryGet(LinkToken);\n // The opener PERFORMS the uri outcome (window.open) — bare `activate`\n // resolves but opens nothing for URL targets.\n if (target && link) openLinkTarget(link, target);\n },\n visible: (c) => selectionLink(c) != null,\n },\n {\n id: 'annotation:remove-link',\n labelKey: 'commands.annotate.removeLink',\n icon: 'linkOff',\n categories: ['annotation'],\n run: (c) => anno(c)?.updateSelection({ link: null }),\n visible: (c) => selectionLink(c) != null,\n },\n\n // ── history (no plugin yet → disabled, shows the disabled styling) ──────\n {\n id: 'history:undo',\n labelKey: 'commands.undo',\n icon: 'arrowBackUp',\n categories: ['history'],\n run: () => {},\n enabled: () => false,\n },\n {\n id: 'history:redo',\n labelKey: 'commands.redo',\n icon: 'arrowForwardUp',\n categories: ['history'],\n run: () => {},\n enabled: () => false,\n },\n];\n\n// ── mode helpers ─────────────────────────────────────────────────────────────\n// Modes are exclusive shell surfaces tagged 'mode'; the secondary band renders\n// whichever one is open. Kept below the array to keep the list readable.\nexport const MODE_SURFACES = [\n 'mode:annotate',\n 'mode:shapes',\n 'mode:insert',\n 'mode:form',\n 'mode:redact',\n] as const;\n\nfunction modeCommand(\n id: (typeof MODE_SURFACES)[number],\n labelKey: string,\n toolId: string = 'pointer',\n): CommandDef {\n return {\n id,\n labelKey,\n categories: ['mode'],\n // A mode tab is a shell surface AND a tool policy: the Form tab flips the\n // pointer into form design ('form-edit' — widgets select/move/resize like\n // annotations); every other tab (and closing one) drops back to the\n // default pointer, where widgets are fill controls again.\n run: (c) => {\n const shell = c.tryGet(ShellToken);\n shell?.toggle(id, { exclusive: 'mode' });\n interaction(c)?.activateTool(shell?.isOpen(id) ? toolId : 'pointer');\n },\n active: (c) => c.tryGet(ShellToken)?.isOpen(id) ?? false,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuCA,MAAM,oBAAoB;AAE1B,MAAM,SAAS,MAAW,EAAE,OAAO,UAAU;AAC7C,MAAM,eAAe,MAAW,EAAE,OAAO,gBAAgB;AACzD,MAAM,QAAQ,MAAW,EAAE,OAAO,eAAe;AACjD,MAAM,iBAAiB,MAAW,EAAE,OAAO,cAAc;AACzD,MAAM,iBAAiB,GAAqB,MAC1C,MAAM,KACL,CAAC,CAAC,KACD,CAAC,CAAC,KACF,EAAE,MAAM,QAAQ,EAAE,MAAM,OACxB,EAAE,MAAM,UAAU,EAAE,MAAM,SAC1B,EAAE,IAAI,QAAQ,EAAE,IAAI,O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AC3B;CACA;CACA;CACA;CACA;AACF;AAEA,SAAS,YACP,IACA,UACA,SAAiB,WACL;CACZ,OAAO;EACL;EACA;EACA,YAAY,CAAC,MAAM;EAKnB,MAAM,MAAM;GACV,MAAM,QAAQ,EAAE,OAAO,UAAU;GACjC,OAAO,OAAO,IAAI,EAAE,WAAW,OAAO,CAAC;GACvC,YAAY,CAAC,CAAC,EAAE,aAAa,OAAO,OAAO,EAAE,IAAI,SAAS,SAAS;EACrE;EACA,SAAS,MAAM,EAAE,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,KAAK;CACrD;AACF"}
@@ -75,6 +75,7 @@ const es = {
75
75
  delete: "Eliminar",
76
76
  group: "Agrupar",
77
77
  ungroup: "Desagrupar",
78
+ stampFromSelection: "Crear sello",
78
79
  strip: "Acciones de anotación"
79
80
  },
80
81
  selection: {
@@ -100,7 +101,8 @@ const es = {
100
101
  checkbox: "Casilla",
101
102
  radio: "Botón de opción",
102
103
  select: "Desplegable",
103
- listbox: "Lista"
104
+ listbox: "Lista",
105
+ signature: "Campo de firma"
104
106
  },
105
107
  redact: {
106
108
  mark: "Marcar para redacción",
@@ -197,13 +199,95 @@ const es = {
197
199
  redactConfirmCollateral: "También se eliminarán {count} otras anotaciones.",
198
200
  redactApply: "Aplicar",
199
201
  redactApplying: "Aplicando…",
202
+ formatLabel: "Formato",
200
203
  redactLabelTitle: "Etiqueta de redacción",
201
204
  redactLabelPlaceholder: "p. ej. REDACTADO",
202
- redactLabelRepeat: "Repetir etiqueta en toda la región"
205
+ redactLabelRepeat: "Repetir etiqueta en toda la región",
206
+ stampsTitle: "Sellos",
207
+ stampsAll: "Todos los sellos",
208
+ stampsLoading: "Cargando sellos…",
209
+ stampsEmpty: "Aún no hay sellos. Importa un PDF para convertir cada página en un sello.",
210
+ stampsRemoveStamp: "Quitar sello",
211
+ stampsArmedHint: "Haz clic en una página para colocar el sello.",
212
+ stampsImport: "Importar PDF…",
213
+ stampsImporting: "Importando…",
214
+ stampsImportHint: "Importa un PDF como biblioteca de sellos: cada página se convierte en un sello.",
215
+ stampsRemoveLibrary: "Quitar biblioteca",
216
+ stampsExportLibrary: "Exportar biblioteca como PDF",
217
+ stampsCustomLibrary: "Mis sellos",
218
+ stampsCustomLabel: "Sello personalizado",
219
+ stampsError: "No se pudieron cargar los sellos integrados.",
220
+ stampsArmError: "No se pudo activar ese sello.",
221
+ stampsImportError: "No se pudo importar ese PDF como biblioteca de sellos.",
222
+ quickStampsLabel: "Sellos rápidos",
223
+ signaturesTitle: "Firmas",
224
+ signaturesEmpty: "Aún no hay firmas. Crea una para firmar.",
225
+ signaturesNew: "Nueva firma…",
226
+ signaturesArmedHint: "Haz clic en un campo de firma para firmarlo, o en cualquier parte de una página para colocar la marca.",
227
+ signaturesTargetHint: "Elige una marca para el campo seleccionado.",
228
+ signaturesInDocument: "En este documento",
229
+ signaturesNone: "Este documento no tiene campos de firma.",
230
+ signaturesValidate: "Validar",
231
+ signaturesValidating: "Validando…",
232
+ signaturesSigned: "Firmado",
233
+ signaturesUnsigned: "Sin firmar",
234
+ signaturesRename: "Renombrar",
235
+ signaturesRemove: "Quitar",
236
+ signaturesExport: "Exportar como PDF",
237
+ signaturesAddInitials: "Añadir iniciales",
238
+ signatureLabel: "Firma",
239
+ initialsLabel: "Iniciales",
240
+ makerTitle: "Nueva firma",
241
+ makerName: "Nombre",
242
+ makerNamePlaceholder: "Tu nombre",
243
+ makerDraw: "Dibujar",
244
+ makerType: "Escribir",
245
+ makerUpload: "Subir",
246
+ makerTypePlaceholder: "Escribe tu nombre",
247
+ makerFont: "Fuente",
248
+ makerUploadHint: "Elige un PNG, JPEG o PDF de una página",
249
+ makerClear: "Borrar",
250
+ makerOptional: "(opcional)",
251
+ makerSave: "Guardar",
252
+ makerSaving: "Guardando…",
253
+ makerError: "No se pudo guardar la firma.",
254
+ signTitle: "Firmar este campo",
255
+ signReason: "Motivo",
256
+ signLocation: "Lugar",
257
+ signKind: "Qué puede cambiar después",
258
+ signKindApproval: "Firma de aprobación: rellenar formularios y más firmas siguen siendo válidos",
259
+ signKindCertifyAnnotate: "Certificar: permitir comentarios, rellenar formularios y firmas",
260
+ signKindCertifyFill: "Certificar: permitir solo rellenar formularios y firmas",
261
+ signKindCertifyLocked: "Certificar: no permitir cambios",
262
+ signButton: "Firmar",
263
+ signSigning: "Firmando…",
264
+ signFill: "Colocar sin firmar",
265
+ signError: "No se pudo firmar el campo.",
266
+ inspectTitle: "Firma",
267
+ inspectSigner: "Firmado por",
268
+ inspectReason: "Motivo",
269
+ inspectLocation: "Lugar",
270
+ inspectTime: "Fecha",
271
+ inspectIntegrity: "Documento",
272
+ inspectCryptography: "Firma",
273
+ inspectTrust: "Firmante",
274
+ inspectChanges: "Cambios posteriores",
275
+ inspectDownload: "Descargar versión firmada",
276
+ verdictValid: "Válida",
277
+ verdictValidUntrusted: "Válida, firmante no confiable",
278
+ verdictInvalid: "No válida: modificado después de firmar",
279
+ verdictWillInvalidate: "Válida, no válida al guardar",
280
+ signaturesInvalidating: "Este cambio invalidará {field} al guardar el documento. Deshazlo para conservar la firma.",
281
+ verdictIndeterminate: "No se pudo verificar",
282
+ verdictUnchanged: "Ninguno",
283
+ verdictRestored: "Modificado y luego restaurado",
284
+ inspectLaterRevisions: "Revisiones tras la firma",
285
+ verdictPermitted: "Permitidos",
286
+ verdictForbidden: "No permitidos"
203
287
  }
204
288
  }
205
289
  };
206
290
  //#endregion
207
291
  exports.es = es;
208
292
 
209
- //# sourceMappingURL=es-B7b8KjR3.cjs.map
293
+ //# sourceMappingURL=es-DYwzfxyt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es-DYwzfxyt.cjs","names":[],"sources":["../src/locales/es.ts"],"sourcesContent":["import type { Locale } from '@embedpdf/react/i18n';\n\n/** Spanish pack — loaded lazily (see the i18n `loaders` config in App). The\n * longer Spanish labels are exactly what makes the measured toolbar re-solve\n * on locale switch, with zero configuration. */\nexport const es: Locale = {\n code: 'es',\n name: 'Español',\n translations: {\n commands: {\n zoom: {\n in: 'Acercar',\n out: 'Alejar',\n fitPage: 'Ajustar a la página',\n fitWidth: 'Ajustar al ancho',\n automatic: 'Automático',\n menu: 'Zoom',\n level: 'Nivel de zoom',\n p50: '50 %',\n p100: '100 %',\n p150: '150 %',\n p200: '200 %',\n p400: '400 %',\n },\n pan: 'Desplazar',\n pointer: 'Puntero',\n sidebar: 'Barra lateral',\n search: 'Buscar',\n comment: 'Comentario',\n style: 'Estilo',\n menu: 'Menú',\n viewControls: 'Controles de vista',\n download: 'Descargar',\n print: 'Imprimir',\n fullscreen: 'Pantalla completa',\n spread: {\n group: 'Diseño de página',\n none: 'Una página',\n odd: 'Dos páginas',\n even: 'Portada',\n },\n scroll: { group: 'Desplazamiento', vertical: 'Vertical', horizontal: 'Horizontal' },\n rotate: {\n group: 'Girar',\n clockwise: 'Girar a la derecha',\n counterclockwise: 'Girar a la izquierda',\n },\n mode: {\n group: 'Modo',\n view: 'Ver',\n annotate: 'Anotar',\n shapes: 'Formas',\n insert: 'Insertar',\n form: 'Formulario',\n redact: 'Redactar',\n },\n annotate: {\n highlight: 'Resaltar',\n strikeout: 'Tachar',\n underline: 'Subrayar',\n squiggly: 'Ondulado',\n ink: 'Dibujar',\n inkHighlight: 'Resaltador a mano alzada',\n text: 'Texto',\n insertText: 'Insertar texto',\n replaceText: 'Reemplazar texto',\n callout: 'Llamada',\n note: 'Comentario',\n link: 'Enlace',\n gotoLink: 'Ir al enlace',\n removeLink: 'Quitar enlace',\n delete: 'Eliminar',\n group: 'Agrupar',\n ungroup: 'Desagrupar',\n stampFromSelection: 'Crear sello',\n strip: 'Acciones de anotación',\n },\n selection: {\n copy: 'Copiar',\n strip: 'Acciones de selección de texto',\n },\n shapes: {\n rectangle: 'Rectángulo',\n circle: 'Círculo',\n line: 'Línea',\n arrow: 'Flecha',\n polygon: 'Polígono',\n polyline: 'Polilínea',\n },\n insert: {\n attachment: 'Adjuntar archivo',\n stamp: 'Sello',\n signature: 'Firma',\n image: 'Imagen',\n },\n form: {\n textfield: 'Campo de texto',\n checkbox: 'Casilla',\n radio: 'Botón de opción',\n select: 'Desplegable',\n listbox: 'Lista',\n signature: 'Campo de firma',\n },\n redact: {\n mark: 'Marcar para redacción',\n applyAll: 'Aplicar redacciones',\n clearAll: 'Borrar marcas',\n panel: 'Redacciones',\n },\n undo: 'Deshacer',\n redo: 'Rehacer',\n },\n passwordPrompt: {\n title: 'Contraseña requerida',\n required: 'Este documento está protegido con contraseña. Introdúcela para abrirlo.',\n incorrect: 'La contraseña es incorrecta. Inténtalo de nuevo.',\n incorrectWarning: 'Contraseña incorrecta',\n label: 'Contraseña',\n placeholder: 'Introduce la contraseña',\n cancel: 'Cancelar',\n open: 'Abrir',\n opening: 'Abriendo…',\n },\n documentError: {\n title: 'No se pudo abrir el documento',\n unknown: 'El documento no se pudo abrir.',\n close: 'Cerrar documento',\n },\n annotation: {\n comment: 'Comentario',\n highlight: 'Resaltado',\n underline: 'Subrayado',\n squiggly: 'Ondulado',\n strikeout: 'Tachado',\n square: 'Cuadrado',\n circle: 'Círculo',\n line: 'Línea',\n polygon: 'Polígono',\n polyline: 'Polilínea',\n ink: 'Tinta',\n freeText: 'Texto',\n stamp: 'Sello',\n caret: 'Intercalación',\n redact: 'Redacción',\n fileAttachment: 'Adjunto',\n },\n demo: {\n starting: 'Iniciando el visor…',\n opening: 'Abriendo el documento…',\n more: 'Más',\n thumbnails: 'Miniaturas',\n outline: 'Esquema',\n searchPlaceholder: 'Buscar en el documento…',\n searchTitle: 'Buscar',\n searchCaseSensitive: 'Distinguir mayúsculas',\n searchWholeWord: 'Palabra completa',\n searchRegex: 'Expresión regular',\n searchSearching: 'Buscando…',\n searchResults: '{count} resultados encontrados',\n searchNoResults: 'Sin resultados',\n searchPage: 'Página {page}',\n commentsTitle: 'Comentarios',\n commentsForbidden: 'No tienes acceso a los comentarios de este documento.',\n commentsLoading: 'Cargando comentarios…',\n commentsError: 'No se pudieron cargar los comentarios.',\n commentsRetry: 'Reintentar',\n commentsEmpty: 'Aún no hay comentarios. Usa la herramienta de nota para iniciar un hilo.',\n commentsAnonymous: 'Desconocido',\n commentsPage: 'Página {page}',\n commentCount: '{count} comentario',\n commentCountPlural: '{count} comentarios',\n commentsReply: 'Responder',\n commentsReplyPlaceholder: 'Responder…',\n commentsAddPlaceholder: 'Añadir un comentario…',\n commentsDelete: 'Eliminar comentario',\n commentsDeleteThread: 'Eliminar hilo',\n commentsEdit: 'Editar comentario',\n commentsStatus: 'Estado',\n commentsStatusNone: 'Sin estado',\n commentsStatusAccepted: 'Aceptado',\n commentsStatusRejected: 'Rechazado',\n commentsStatusCancelled: 'Cancelado',\n commentsStatusCompleted: 'Completado',\n styleTitle: 'Estilo',\n empty: 'Aquí todavía no hay nada en este panel de demostración.',\n page: 'Página {current} de {total}',\n cancel: 'Cancelar',\n pageBadge: 'pág. {page}',\n redactionTitle: 'Redacciones',\n redactionEmpty:\n 'No hay redacciones pendientes. Usa la herramienta Redactar para marcar texto o áreas.',\n redactionArea: 'Marca de área',\n redactionText: 'Marca de texto',\n redactionRemove: 'Quitar marca',\n redactConfirmTitle: '¿Aplicar redacciones?',\n redactConfirmBody:\n 'Eliminar permanentemente el contenido bajo {count} marcas de redacción. No se puede deshacer.',\n redactConfirmCollateral: 'También se eliminarán {count} otras anotaciones.',\n redactApply: 'Aplicar',\n redactApplying: 'Aplicando…',\n formatLabel: 'Formato',\n redactLabelTitle: 'Etiqueta de redacción',\n redactLabelPlaceholder: 'p. ej. REDACTADO',\n redactLabelRepeat: 'Repetir etiqueta en toda la región',\n stampsTitle: 'Sellos',\n stampsAll: 'Todos los sellos',\n stampsLoading: 'Cargando sellos…',\n stampsEmpty: 'Aún no hay sellos. Importa un PDF para convertir cada página en un sello.',\n stampsRemoveStamp: 'Quitar sello',\n stampsArmedHint: 'Haz clic en una página para colocar el sello.',\n stampsImport: 'Importar PDF…',\n stampsImporting: 'Importando…',\n stampsImportHint:\n 'Importa un PDF como biblioteca de sellos: cada página se convierte en un sello.',\n stampsRemoveLibrary: 'Quitar biblioteca',\n stampsExportLibrary: 'Exportar biblioteca como PDF',\n stampsCustomLibrary: 'Mis sellos',\n stampsCustomLabel: 'Sello personalizado',\n stampsError: 'No se pudieron cargar los sellos integrados.',\n stampsArmError: 'No se pudo activar ese sello.',\n stampsImportError: 'No se pudo importar ese PDF como biblioteca de sellos.',\n quickStampsLabel: 'Sellos rápidos',\n signaturesTitle: 'Firmas',\n signaturesEmpty: 'Aún no hay firmas. Crea una para firmar.',\n signaturesNew: 'Nueva firma…',\n signaturesArmedHint:\n 'Haz clic en un campo de firma para firmarlo, o en cualquier parte de una página para colocar la marca.',\n signaturesTargetHint: 'Elige una marca para el campo seleccionado.',\n signaturesInDocument: 'En este documento',\n signaturesNone: 'Este documento no tiene campos de firma.',\n signaturesValidate: 'Validar',\n signaturesValidating: 'Validando…',\n signaturesSigned: 'Firmado',\n signaturesUnsigned: 'Sin firmar',\n signaturesRename: 'Renombrar',\n signaturesRemove: 'Quitar',\n signaturesExport: 'Exportar como PDF',\n signaturesAddInitials: 'Añadir iniciales',\n signatureLabel: 'Firma',\n initialsLabel: 'Iniciales',\n makerTitle: 'Nueva firma',\n makerName: 'Nombre',\n makerNamePlaceholder: 'Tu nombre',\n makerDraw: 'Dibujar',\n makerType: 'Escribir',\n makerUpload: 'Subir',\n makerTypePlaceholder: 'Escribe tu nombre',\n makerFont: 'Fuente',\n makerUploadHint: 'Elige un PNG, JPEG o PDF de una página',\n makerClear: 'Borrar',\n makerOptional: '(opcional)',\n makerSave: 'Guardar',\n makerSaving: 'Guardando…',\n makerError: 'No se pudo guardar la firma.',\n signTitle: 'Firmar este campo',\n signReason: 'Motivo',\n signLocation: 'Lugar',\n signKind: 'Qué puede cambiar después',\n signKindApproval:\n 'Firma de aprobación: rellenar formularios y más firmas siguen siendo válidos',\n signKindCertifyAnnotate: 'Certificar: permitir comentarios, rellenar formularios y firmas',\n signKindCertifyFill: 'Certificar: permitir solo rellenar formularios y firmas',\n signKindCertifyLocked: 'Certificar: no permitir cambios',\n signButton: 'Firmar',\n signSigning: 'Firmando…',\n signFill: 'Colocar sin firmar',\n signError: 'No se pudo firmar el campo.',\n inspectTitle: 'Firma',\n inspectSigner: 'Firmado por',\n inspectReason: 'Motivo',\n inspectLocation: 'Lugar',\n inspectTime: 'Fecha',\n inspectIntegrity: 'Documento',\n inspectCryptography: 'Firma',\n inspectTrust: 'Firmante',\n inspectChanges: 'Cambios posteriores',\n inspectDownload: 'Descargar versión firmada',\n verdictValid: 'Válida',\n verdictValidUntrusted: 'Válida, firmante no confiable',\n verdictInvalid: 'No válida: modificado después de firmar',\n verdictWillInvalidate: 'Válida, no válida al guardar',\n signaturesInvalidating:\n 'Este cambio invalidará {field} al guardar el documento. Deshazlo para conservar la firma.',\n verdictIndeterminate: 'No se pudo verificar',\n verdictUnchanged: 'Ninguno',\n verdictRestored: 'Modificado y luego restaurado',\n inspectLaterRevisions: 'Revisiones tras la firma',\n verdictPermitted: 'Permitidos',\n verdictForbidden: 'No permitidos',\n },\n },\n};\n"],"mappings":";;;;AAKA,MAAa,KAAa;CACxB,MAAM;CACN,MAAM;CACN,cAAc;EACZ,UAAU;GACR,MAAM;IACJ,IAAI;IACJ,KAAK;IACL,SAAS;IACT,UAAU;IACV,WAAW;IACX,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;GACR;GACA,KAAK;GACL,SAAS;GACT,SAAS;GACT,QAAQ;GACR,SAAS;GACT,OAAO;GACP,MAAM;GACN,cAAc;GACd,UAAU;GACV,OAAO;GACP,YAAY;GACZ,QAAQ;IACN,OAAO;IACP,MAAM;IACN,KAAK;IACL,MAAM;GACR;GACA,QAAQ;IAAE,OAAO;IAAkB,UAAU;IAAY,YAAY;GAAa;GAClF,QAAQ;IACN,OAAO;IACP,WAAW;IACX,kBAAkB;GACpB;GACA,MAAM;IACJ,OAAO;IACP,MAAM;IACN,UAAU;IACV,QAAQ;IAC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AAc;GACd,eAAe;GACf,eAAe;GACf,iBAAiB;GACjB,aAAa;GACb,kBAAkB;GAClB,qBAAqB;GACrB,cAAc;GACd,gBAAgB;GAChB,iBAAiB;GACjB,cAAc;GACd,uBAAuB;GACvB,gBAAgB;GAChB,uBAAuB;GACvB,wBACE;GACF,sBAAsB;GACtB,kBAAkB;GAClB,iBAAiB;GACjB,uBAAuB;GACvB,kBAAkB;GAClB,kBAAkB;EACpB;CACF;AACF"}
@@ -75,6 +75,7 @@ const es = {
75
75
  delete: "Eliminar",
76
76
  group: "Agrupar",
77
77
  ungroup: "Desagrupar",
78
+ stampFromSelection: "Crear sello",
78
79
  strip: "Acciones de anotación"
79
80
  },
80
81
  selection: {
@@ -100,7 +101,8 @@ const es = {
100
101
  checkbox: "Casilla",
101
102
  radio: "Botón de opción",
102
103
  select: "Desplegable",
103
- listbox: "Lista"
104
+ listbox: "Lista",
105
+ signature: "Campo de firma"
104
106
  },
105
107
  redact: {
106
108
  mark: "Marcar para redacción",
@@ -197,13 +199,95 @@ const es = {
197
199
  redactConfirmCollateral: "También se eliminarán {count} otras anotaciones.",
198
200
  redactApply: "Aplicar",
199
201
  redactApplying: "Aplicando…",
202
+ formatLabel: "Formato",
200
203
  redactLabelTitle: "Etiqueta de redacción",
201
204
  redactLabelPlaceholder: "p. ej. REDACTADO",
202
- redactLabelRepeat: "Repetir etiqueta en toda la región"
205
+ redactLabelRepeat: "Repetir etiqueta en toda la región",
206
+ stampsTitle: "Sellos",
207
+ stampsAll: "Todos los sellos",
208
+ stampsLoading: "Cargando sellos…",
209
+ stampsEmpty: "Aún no hay sellos. Importa un PDF para convertir cada página en un sello.",
210
+ stampsRemoveStamp: "Quitar sello",
211
+ stampsArmedHint: "Haz clic en una página para colocar el sello.",
212
+ stampsImport: "Importar PDF…",
213
+ stampsImporting: "Importando…",
214
+ stampsImportHint: "Importa un PDF como biblioteca de sellos: cada página se convierte en un sello.",
215
+ stampsRemoveLibrary: "Quitar biblioteca",
216
+ stampsExportLibrary: "Exportar biblioteca como PDF",
217
+ stampsCustomLibrary: "Mis sellos",
218
+ stampsCustomLabel: "Sello personalizado",
219
+ stampsError: "No se pudieron cargar los sellos integrados.",
220
+ stampsArmError: "No se pudo activar ese sello.",
221
+ stampsImportError: "No se pudo importar ese PDF como biblioteca de sellos.",
222
+ quickStampsLabel: "Sellos rápidos",
223
+ signaturesTitle: "Firmas",
224
+ signaturesEmpty: "Aún no hay firmas. Crea una para firmar.",
225
+ signaturesNew: "Nueva firma…",
226
+ signaturesArmedHint: "Haz clic en un campo de firma para firmarlo, o en cualquier parte de una página para colocar la marca.",
227
+ signaturesTargetHint: "Elige una marca para el campo seleccionado.",
228
+ signaturesInDocument: "En este documento",
229
+ signaturesNone: "Este documento no tiene campos de firma.",
230
+ signaturesValidate: "Validar",
231
+ signaturesValidating: "Validando…",
232
+ signaturesSigned: "Firmado",
233
+ signaturesUnsigned: "Sin firmar",
234
+ signaturesRename: "Renombrar",
235
+ signaturesRemove: "Quitar",
236
+ signaturesExport: "Exportar como PDF",
237
+ signaturesAddInitials: "Añadir iniciales",
238
+ signatureLabel: "Firma",
239
+ initialsLabel: "Iniciales",
240
+ makerTitle: "Nueva firma",
241
+ makerName: "Nombre",
242
+ makerNamePlaceholder: "Tu nombre",
243
+ makerDraw: "Dibujar",
244
+ makerType: "Escribir",
245
+ makerUpload: "Subir",
246
+ makerTypePlaceholder: "Escribe tu nombre",
247
+ makerFont: "Fuente",
248
+ makerUploadHint: "Elige un PNG, JPEG o PDF de una página",
249
+ makerClear: "Borrar",
250
+ makerOptional: "(opcional)",
251
+ makerSave: "Guardar",
252
+ makerSaving: "Guardando…",
253
+ makerError: "No se pudo guardar la firma.",
254
+ signTitle: "Firmar este campo",
255
+ signReason: "Motivo",
256
+ signLocation: "Lugar",
257
+ signKind: "Qué puede cambiar después",
258
+ signKindApproval: "Firma de aprobación: rellenar formularios y más firmas siguen siendo válidos",
259
+ signKindCertifyAnnotate: "Certificar: permitir comentarios, rellenar formularios y firmas",
260
+ signKindCertifyFill: "Certificar: permitir solo rellenar formularios y firmas",
261
+ signKindCertifyLocked: "Certificar: no permitir cambios",
262
+ signButton: "Firmar",
263
+ signSigning: "Firmando…",
264
+ signFill: "Colocar sin firmar",
265
+ signError: "No se pudo firmar el campo.",
266
+ inspectTitle: "Firma",
267
+ inspectSigner: "Firmado por",
268
+ inspectReason: "Motivo",
269
+ inspectLocation: "Lugar",
270
+ inspectTime: "Fecha",
271
+ inspectIntegrity: "Documento",
272
+ inspectCryptography: "Firma",
273
+ inspectTrust: "Firmante",
274
+ inspectChanges: "Cambios posteriores",
275
+ inspectDownload: "Descargar versión firmada",
276
+ verdictValid: "Válida",
277
+ verdictValidUntrusted: "Válida, firmante no confiable",
278
+ verdictInvalid: "No válida: modificado después de firmar",
279
+ verdictWillInvalidate: "Válida, no válida al guardar",
280
+ signaturesInvalidating: "Este cambio invalidará {field} al guardar el documento. Deshazlo para conservar la firma.",
281
+ verdictIndeterminate: "No se pudo verificar",
282
+ verdictUnchanged: "Ninguno",
283
+ verdictRestored: "Modificado y luego restaurado",
284
+ inspectLaterRevisions: "Revisiones tras la firma",
285
+ verdictPermitted: "Permitidos",
286
+ verdictForbidden: "No permitidos"
203
287
  }
204
288
  }
205
289
  };
206
290
  //#endregion
207
291
  export { es };
208
292
 
209
- //# sourceMappingURL=es-aQlZ3hcL.js.map
293
+ //# sourceMappingURL=es-sN6uqBgD.js.map