@embedpdf/viewer-chrome 3.0.0-next.13 → 3.0.0-next.15
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/README.md +175 -132
- package/dist/annotation-fonts-BqoLZ4Mp.js +80 -0
- package/dist/annotation-fonts-BqoLZ4Mp.js.map +1 -0
- package/dist/annotation-fonts-Dt0IQXhz.cjs +91 -0
- package/dist/annotation-fonts-Dt0IQXhz.cjs.map +1 -0
- package/dist/annotation-style--rPIZsuP.js +879 -0
- package/dist/annotation-style--rPIZsuP.js.map +1 -0
- package/dist/annotation-style-Bzvvp8-N.cjs +879 -0
- package/dist/annotation-style-Bzvvp8-N.cjs.map +1 -0
- package/dist/ar-D9XKAmDx.js +567 -0
- package/dist/ar-D9XKAmDx.js.map +1 -0
- package/dist/ar-DnEj5vbP.cjs +567 -0
- package/dist/ar-DnEj5vbP.cjs.map +1 -0
- package/dist/chrome.cjs +378 -221
- package/dist/chrome.cjs.map +1 -1
- package/dist/chrome.d.cts +5 -34
- package/dist/chrome.d.ts +5 -34
- package/dist/chrome.js +377 -218
- package/dist/chrome.js.map +1 -1
- package/dist/commands-BmgxhJ8B.js +953 -0
- package/dist/commands-BmgxhJ8B.js.map +1 -0
- package/dist/commands-CYt4SFUX.cjs +1060 -0
- package/dist/commands-CYt4SFUX.cjs.map +1 -0
- package/dist/commands.cjs +12 -595
- package/dist/commands.d.cts +29 -4
- package/dist/commands.d.ts +29 -4
- package/dist/commands.js +2 -593
- package/dist/comments-panel-MUVgLCBI.js +514 -0
- package/dist/comments-panel-MUVgLCBI.js.map +1 -0
- package/dist/comments-panel-pEcQg4Vs.cjs +514 -0
- package/dist/comments-panel-pEcQg4Vs.cjs.map +1 -0
- package/dist/de-Bdr4aWzm.js +566 -0
- package/dist/de-Bdr4aWzm.js.map +1 -0
- package/dist/de-Dv6zvbnd.cjs +566 -0
- package/dist/de-Dv6zvbnd.cjs.map +1 -0
- package/dist/dialog-B5GBisKv.js +55 -0
- package/dist/dialog-B5GBisKv.js.map +1 -0
- package/dist/dialog-t8F13BL_.cjs +60 -0
- package/dist/dialog-t8F13BL_.cjs.map +1 -0
- package/dist/es-BP09DR9w.cjs +566 -0
- package/dist/es-BP09DR9w.cjs.map +1 -0
- package/dist/es-BSXz5tBv.js +566 -0
- package/dist/es-BSXz5tBv.js.map +1 -0
- package/dist/form-design-panel-B5MXTZ96.cjs +418 -0
- package/dist/form-design-panel-B5MXTZ96.cjs.map +1 -0
- package/dist/form-design-panel-vWWU9uB-.js +418 -0
- package/dist/form-design-panel-vWWU9uB-.js.map +1 -0
- package/dist/fr-BBQQn7tJ.cjs +566 -0
- package/dist/fr-BBQQn7tJ.cjs.map +1 -0
- package/dist/fr-Ckn3K9v1.js +566 -0
- package/dist/fr-Ckn3K9v1.js.map +1 -0
- package/dist/he-DRsG7bH7.cjs +567 -0
- package/dist/he-DRsG7bH7.cjs.map +1 -0
- package/dist/he-wdGU5PkU.js +567 -0
- package/dist/he-wdGU5PkU.js.map +1 -0
- package/dist/icons-BrK5iVL8.js +856 -0
- package/dist/icons-BrK5iVL8.js.map +1 -0
- package/dist/icons-x0Tc05bs.cjs +1010 -0
- package/dist/icons-x0Tc05bs.cjs.map +1 -0
- package/dist/index.cjs +3162 -5106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +636 -143
- package/dist/index.d.ts +636 -143
- package/dist/index.js +3083 -4975
- package/dist/index.js.map +1 -1
- package/dist/it-BuP4o0xQ.cjs +566 -0
- package/dist/it-BuP4o0xQ.cjs.map +1 -0
- package/dist/it-Us-VmvIu.js +566 -0
- package/dist/it-Us-VmvIu.js.map +1 -0
- package/dist/ja-Cizj0-5O.js +566 -0
- package/dist/ja-Cizj0-5O.js.map +1 -0
- package/dist/ja-DovEd6ts.cjs +566 -0
- package/dist/ja-DovEd6ts.cjs.map +1 -0
- package/dist/ko-B-qJEol2.cjs +566 -0
- package/dist/ko-B-qJEol2.cjs.map +1 -0
- package/dist/ko-DlrXliE1.js +566 -0
- package/dist/ko-DlrXliE1.js.map +1 -0
- package/dist/labels-BiM9wp9K.cjs +21 -0
- package/dist/labels-BiM9wp9K.cjs.map +1 -0
- package/dist/labels-C6_i87Oj.js +16 -0
- package/dist/labels-C6_i87Oj.js.map +1 -0
- package/dist/link-editor-CSjqPnj1.cjs +125 -0
- package/dist/link-editor-CSjqPnj1.cjs.map +1 -0
- package/dist/link-editor-SxM1nnJU.js +125 -0
- package/dist/link-editor-SxM1nnJU.js.map +1 -0
- package/dist/measurement-Bs61XWbJ.js +325 -0
- package/dist/measurement-Bs61XWbJ.js.map +1 -0
- package/dist/measurement-CcCsHPOX.cjs +326 -0
- package/dist/measurement-CcCsHPOX.cjs.map +1 -0
- package/dist/nl-0aF7M_0h.js +566 -0
- package/dist/nl-0aF7M_0h.js.map +1 -0
- package/dist/nl-D3KZDDiJ.cjs +566 -0
- package/dist/nl-D3KZDDiJ.cjs.map +1 -0
- package/dist/pl-BW--AaCI.js +566 -0
- package/dist/pl-BW--AaCI.js.map +1 -0
- package/dist/pl-DSFhAUqx.cjs +566 -0
- package/dist/pl-DSFhAUqx.cjs.map +1 -0
- package/dist/pt-C5S-8MC5.cjs +566 -0
- package/dist/pt-C5S-8MC5.cjs.map +1 -0
- package/dist/pt-DIhpU5pT.js +566 -0
- package/dist/pt-DIhpU5pT.js.map +1 -0
- package/dist/redact-confirm-B6j36TPw.js +83 -0
- package/dist/redact-confirm-B6j36TPw.js.map +1 -0
- package/dist/redact-confirm-CX_SY2ZN.cjs +83 -0
- package/dist/redact-confirm-CX_SY2ZN.cjs.map +1 -0
- package/dist/redaction-panel-BmoIl-Ll.cjs +96 -0
- package/dist/redaction-panel-BmoIl-Ll.cjs.map +1 -0
- package/dist/redaction-panel-IJDshSJI.js +96 -0
- package/dist/redaction-panel-IJDshSJI.js.map +1 -0
- package/dist/search-panel-HfIhJm1M.js +249 -0
- package/dist/search-panel-HfIhJm1M.js.map +1 -0
- package/dist/search-panel-s9IoiOtv.cjs +249 -0
- package/dist/search-panel-s9IoiOtv.cjs.map +1 -0
- package/dist/sheet-BDsa_Sup.cjs +442 -0
- package/dist/sheet-BDsa_Sup.cjs.map +1 -0
- package/dist/sheet-R6XDgyEf.js +365 -0
- package/dist/sheet-R6XDgyEf.js.map +1 -0
- package/dist/sign-dialog-CgnR7akj.cjs +155 -0
- package/dist/sign-dialog-CgnR7akj.cjs.map +1 -0
- package/dist/sign-dialog-GDqCoQhA.js +155 -0
- package/dist/sign-dialog-GDqCoQhA.js.map +1 -0
- package/dist/signature-inspector-DyO313Qf.cjs +166 -0
- package/dist/signature-inspector-DyO313Qf.cjs.map +1 -0
- package/dist/signature-inspector-okFz8do6.js +166 -0
- package/dist/signature-inspector-okFz8do6.js.map +1 -0
- package/dist/signature-maker-BhCmYyHD.js +393 -0
- package/dist/signature-maker-BhCmYyHD.js.map +1 -0
- package/dist/signature-maker-BoYa8vgA.cjs +393 -0
- package/dist/signature-maker-BoYa8vgA.cjs.map +1 -0
- package/dist/signatures-panel-B56PC6d9.cjs +300 -0
- package/dist/signatures-panel-B56PC6d9.cjs.map +1 -0
- package/dist/signatures-panel-CgnFfhFm.js +300 -0
- package/dist/signatures-panel-CgnFfhFm.js.map +1 -0
- package/dist/stamp-store-BHvRs-Do.cjs +147 -0
- package/dist/stamp-store-BHvRs-Do.cjs.map +1 -0
- package/dist/stamp-store-WuF-L3Jj.js +112 -0
- package/dist/stamp-store-WuF-L3Jj.js.map +1 -0
- package/dist/stamps-panel-B9NYGayn.cjs +231 -0
- package/dist/stamps-panel-B9NYGayn.cjs.map +1 -0
- package/dist/stamps-panel-CDO0FPyK.js +231 -0
- package/dist/stamps-panel-CDO0FPyK.js.map +1 -0
- package/dist/toolbar-CJu2wKTU.cjs +1659 -0
- package/dist/toolbar-CJu2wKTU.cjs.map +1 -0
- package/dist/toolbar-z9od3tKl.js +1564 -0
- package/dist/toolbar-z9od3tKl.js.map +1 -0
- package/dist/zh-cn-3tmMeHqv.cjs +566 -0
- package/dist/zh-cn-3tmMeHqv.cjs.map +1 -0
- package/dist/zh-cn-CxkUUBct.js +566 -0
- package/dist/zh-cn-CxkUUBct.js.map +1 -0
- package/package.json +6 -4
- package/src/styles.css +153 -89
- package/dist/commands.cjs.map +0 -1
- package/dist/commands.js.map +0 -1
- package/dist/es-DYwzfxyt.cjs +0 -293
- package/dist/es-DYwzfxyt.cjs.map +0 -1
- package/dist/es-sN6uqBgD.js +0 -293
- package/dist/es-sN6uqBgD.js.map +0 -1
package/dist/chrome.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chrome.cjs","names":[],"sources":["../src/config/chrome.ts"],"sourcesContent":["/**\n * The chrome — structure only. No breakpoints, no show/hide lists, no locale\n * overrides, no dividers/spacers, no hand-written overflow menus. What fits is\n * measured and solved at runtime (@embedpdf/core-ui); the overflow menu is\n * derived. Compare to the v2 snippet's 1,950-line ui-schema.ts.\n *\n * `importance` (1 sheds first … 5 pinned) is the only responsive knob.\n */\nimport {\n defineChrome,\n group,\n item,\n custom,\n type BarSchema,\n type ChromeSchema,\n type MenuSchema,\n} from '@embedpdf/react/toolbar';\n\n// Reused across every mode band — plain values, so composition is just a const.\nconst style = group('style', { importance: 4 }, [item('panel:annotation-style')]);\nconst history = group('history', { importance: 3 }, ['history:undo', 'history:redo']);\n\n// ── main toolbar ─────────────────────────────────────────────────────────────\nconst mainBar: BarSchema = {\n id: 'main',\n sections: {\n // v2 layout: everything before the first spacer sits LEFT-aligned —\n // document menu, workspace, zoom strip, pan/pointer. Only the mode tabs\n // are truly centered.\n start: [\n group('document', { importance: 5 }, [item('document:menu')]),\n group('workspace', { importance: 4 }, [\n item('panel:sidebar', { importance: 5 }),\n item('page:settings'),\n ]),\n // The inline zoom strip; when it can't fit it renders its 'button'\n // variant, and in the overflow menu it projects through zoom:menu.\n group('zoom', { importance: 4 }, [\n custom('zoom-controls', { variants: ['inline', 'button'], terminal: 'zoom:menu' }),\n ]),\n group('tools', { importance: 2 }, ['pan:toggle', 'pointer:toggle']),\n ],\n center: [\n group('modes', {\n role: 'tabs',\n // The group ladder: full strip → trailing tabs shed behind a derived\n // in-strip chevron (v2's overflow-tabs-button) → select (v2's\n // mode-select-button) → global overflow. Tab items at importance 1 so\n // the strip is the FIRST thing to compact; the group at 4 so its\n // compact forms survive long.\n shed: true,\n collapse: 'select',\n importance: 4,\n labelKey: 'commands.mode.group',\n items: [\n item('mode:view', { variants: ['label'], importance: 1 }),\n item('mode:annotate', { variants: ['label'], importance: 1 }),\n item('mode:shapes', { variants: ['label'], importance: 1 }),\n item('mode:insert', { variants: ['label'], importance: 1 }),\n item('mode:form', { variants: ['label'], importance: 1 }),\n item('mode:redact', { variants: ['label'], importance: 1 }),\n ],\n }),\n ],\n end: [group('panels', { importance: 5 }, ['panel:search', 'panel:comment'])],\n },\n};\n\n// ── secondary bands (one per mode; which shows is derived from shell) ────────\nconst annotateBar: BarSchema = {\n id: 'annotate',\n sections: {\n center: [\n group('comment', { importance: 4 }, ['annotation:add-note', 'annotation:add-link']),\n group('markup', { importance: 4 }, [\n 'annotation:add-highlight',\n 'annotation:add-strikeout',\n 'annotation:add-underline',\n 'annotation:add-squiggly',\n ]),\n group('draw', { importance: 3 }, ['annotation:add-ink', 'annotation:add-ink-highlight']),\n group('text', { importance: 2 }, [\n 'annotation:add-text',\n 'annotation:add-insert-text',\n 'annotation:add-replace-text',\n 'annotation:add-callout',\n ]),\n style,\n history,\n ],\n },\n};\n\nconst shapesBar: BarSchema = {\n id: 'shapes',\n sections: {\n center: [\n group('shapes', { importance: 4 }, [\n 'annotation:add-rectangle',\n 'annotation:add-circle',\n 'annotation:add-line',\n 'annotation:add-arrow',\n ]),\n group('polygons', { importance: 2 }, ['annotation:add-polygon', 'annotation:add-polyline']),\n style,\n history,\n ],\n },\n};\n\nconst insertBar: BarSchema = {\n id: 'insert',\n sections: {\n center: [\n group('stamps', { importance: 4 }, [\n 'insert:add-stamp',\n // Quick marks (`stamps.toolbar`): thumbnails that arm on click; in a\n // menu the stamps panel stands in for them.\n custom('quick-stamps', { terminal: 'insert:add-stamp', importance: 3 }),\n 'insert:add-attachment',\n 'insert:add-signature',\n 'insert:add-image',\n ]),\n style,\n history,\n ],\n },\n};\n\nconst formBar: BarSchema = {\n id: 'form',\n sections: {\n center: [\n group('fields', { importance: 4 }, [\n 'form:add-textfield',\n 'form:add-checkbox',\n 'form:add-radio',\n ]),\n group('choice-fields', { importance: 2 }, ['form:add-select', 'form:add-listbox']),\n group('signature-fields', { importance: 2 }, ['form:add-signature']),\n history,\n ],\n },\n};\n\nconst redactBar: BarSchema = {\n id: 'redact',\n sections: {\n center: [\n group('redact', { importance: 4 }, ['redaction:redact', 'panel:redaction']),\n style,\n history,\n ],\n },\n};\n\n// ── menus (command trees; separators derive between sections) ────────────────\nconst documentMenu: MenuSchema = {\n id: 'document',\n sections: [\n { items: ['document:download', 'document:print'] },\n { items: ['document:fullscreen'] },\n ],\n};\n\nconst zoomMenu: MenuSchema = {\n id: 'zoom',\n sections: [\n {\n labelKey: 'commands.zoom.level',\n items: ['zoom:50', 'zoom:100', 'zoom:150', 'zoom:200', 'zoom:400'],\n },\n { items: ['zoom:in', 'zoom:out'] },\n { items: ['zoom:fit-page', 'zoom:fit-width', 'zoom:automatic'] },\n ],\n};\n\nconst pageSettingsMenu: MenuSchema = {\n id: 'page-settings',\n sections: [\n { labelKey: 'commands.spread.group', items: ['spread:none', 'spread:odd', 'spread:even'] },\n { labelKey: 'commands.scroll.group', items: ['scroll:vertical', 'scroll:horizontal'] },\n { labelKey: 'commands.rotate.group', items: ['rotate:clockwise', 'rotate:counter-clockwise'] },\n { items: ['document:fullscreen'] },\n ],\n};\n\n// ── contextual strips (anchored to selections; same BarSchema vocabulary) ────\n// WHICH commands actually show is each command's `visible` derivation (group\n// only when groupable, style only when the kind declares editable props…), so\n// one strip serves single AND multi selection — v2 needed two schemas for that.\nconst annotationStrip: BarSchema = {\n id: 'annotation-strip',\n sections: {\n center: [\n group('annotation-actions', { importance: 4 }, [\n 'annotation:comment',\n 'annotation:style',\n 'annotation:stamp-from-selection',\n 'annotation:link',\n 'annotation:goto-link',\n 'annotation:remove-link',\n 'annotation:group',\n 'annotation:ungroup',\n ]),\n // Its own group → a derived separator; delete stands apart.\n group('annotation-danger', { importance: 5 }, ['annotation:delete']),\n ],\n },\n};\n\n// The text-selection strip: appears when a text selection SETTLES (the menu\n// component gates on `isSelecting()`). One command today; \"Highlight\" et al.\n// are one more id here + one command — no component changes.\nconst selectionStrip: BarSchema = {\n id: 'selection-strip',\n sections: {\n center: [group('selection-actions', { importance: 4 }, ['selection:copy'])],\n },\n};\n\n/**\n * The DEFAULT chrome — exported as a VALUE, which is the whole customization\n * model: consumers pass nothing and track this, transform it, or write their\n * own. It is never merged with anything.\n */\nexport const defaultChrome = defineChrome({\n bars: { main: mainBar },\n modeBars: {\n 'mode:annotate': annotateBar,\n 'mode:shapes': shapesBar,\n 'mode:insert': insertBar,\n 'mode:form': formBar,\n 'mode:redact': redactBar,\n },\n menus: { document: documentMenu, zoom: zoomMenu, 'page-settings': pageSettingsMenu },\n strips: { annotation: annotationStrip, selection: selectionStrip },\n});\n\n// Lookups take the RESOLVED schema (the host may have replaced the default) —\n// the typed literal widens to arbitrary string keys here, once.\n\n/** Menu lookup by id (arbitrary string). */\nexport function getMenu(schema: ChromeSchema, id: string): MenuSchema | undefined {\n return (schema.menus as Record<string, MenuSchema> | undefined)?.[id];\n}\n\n/** Secondary band lookup by mode-surface id. */\nexport function getModeBar(schema: ChromeSchema, id: string): BarSchema | undefined {\n return (schema.modeBars as Record<string, BarSchema> | undefined)?.[id];\n}\n\n/** Contextual strip lookup by context id ('annotation', …). */\nexport function getStrip(schema: ChromeSchema, id: string): BarSchema | undefined {\n return (schema.strips as Record<string, BarSchema> | undefined)?.[id];\n}\n"],"mappings":";;;;;;;;;;;AAmBA,MAAM,SAAA,GAAA,wBAAA,MAAA,CAAc,SAAS,EAAE,YAAY,EAAE,GAA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GAAA,wBAAA,MAAA,CACA,sBAAsB,EAAE,YAAY,EAAE,GAAG;EAC7C;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,IAAA,GAAA,wBAAA,MAAA,CAEK,qBAAqB,EAAE,YAAY,EAAE,GAAG,CAAC,mBAAmB,CAAC,CACrE,EACF;AACF;AAKA,MAAM,iBAA4B;CAChC,IAAI;CACJ,UAAU,EACR,QAAQ,EAAA,GAAA,wBAAA,MAAA,CAAO,qBAAqB,EAAE,YAAY,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,EAC5E;AACF;;;;;;AAOA,MAAa,iBAAA,GAAA,wBAAA,aAAA,CAA6B;CACxC,MAAM,EAAE,MAAM,QAAQ;CACtB,UAAU;EACR,iBAAiB;EACjB,eAAe;EACf,eAAe;EACf,aAAa;EACb,eAAe;CACjB;CACA,OAAO;EAAE,UAAU;EAAc,MAAM;EAAU,iBAAiB;CAAiB;CACnF,QAAQ;EAAE,YAAY;EAAiB,WAAW;CAAe;AACnE,CAAC;;AAMD,SAAgB,QAAQ,QAAsB,IAAoC;CAChF,OAAQ,OAAO,QAAmD;AACpE;;AAGA,SAAgB,WAAW,QAAsB,IAAmC;CAClF,OAAQ,OAAO,WAAqD;AACtE;;AAGA,SAAgB,SAAS,QAAsB,IAAmC;CAChF,OAAQ,OAAO,SAAmD;AACpE"}
|
|
1
|
+
{"version":3,"file":"chrome.cjs","names":[],"sources":["../src/config/chrome.ts"],"sourcesContent":["/**\n * The default layout: every bar, menu and panel the viewer ships, as plain\n * data. Structure only: no breakpoints, no show/hide lists, no locale\n * overrides, no dividers or spacers, no hand-written overflow menus. What fits\n * is measured and solved at runtime (@embedpdf/core-ui); the \"More\" menu is\n * derived, and so are the mode tabs (the `modes` group lists one per bar with\n * a `mode`).\n *\n * `importance` (1 makes room first … 5 never leaves the bar) is the only\n * responsive knob. The bar, group and menu ids are API: they don't change\n * between minor versions.\n */\nimport { createLayout, type LayoutData, type LayoutGroupObject } from '@embedpdf/core-ui';\n\n// Shared by the mode bars: plain values, so composition is just a const. Both are dependent:\n// they show beside a mode's tools, and a bar left with only them shows nothing, nor its tab.\nconst style: LayoutGroupObject = {\n id: 'style',\n items: ['panel:style'],\n importance: 4,\n dependent: true,\n};\nconst history: LayoutGroupObject = {\n id: 'history',\n items: ['history:undo', 'history:redo'],\n importance: 3,\n dependent: true,\n};\n\nexport const DEFAULT_LAYOUT: LayoutData = {\n bars: {\n main: {\n place: 'top',\n // The start section sits left-aligned: document menu, view, the zoom\n // field, pan and pointer. Only the mode tabs are truly centered.\n start: [\n { id: 'document', items: ['menu:document'], importance: 5 },\n {\n id: 'view',\n items: [{ command: 'panel:thumbnails', importance: 5 }, 'menu:view'],\n importance: 4,\n },\n // The zoom field; when it can't fit it draws its 'button' variant,\n // and in the \"More\" menu it stands in as menu:zoom.\n {\n id: 'zoom',\n items: [{ custom: 'zoom', command: 'menu:zoom', variants: ['inline', 'button'] }],\n importance: 4,\n },\n { id: 'tools', items: ['tool:pan', 'tool:pointer'], importance: 2 },\n ],\n center: [\n {\n // The tabs: View, then one per mode bar. The group ladder: full strip\n // → trailing tabs shed behind a chevron → select → the \"More\" menu.\n // The tabs sit at importance 1 so the strip compacts first; the group\n // at 4 so its compact forms last.\n id: 'modes',\n items: [],\n shed: true,\n collapse: 'select',\n importance: 4,\n titleKey: 'commands.mode.group',\n },\n ],\n end: [\n {\n id: 'panels',\n items: [\n // The View only label: it shows only while nothing can change the document, and\n // draws its icon alone when there's no room.\n { custom: 'view-only', variants: ['label', 'icon'] },\n 'panel:search',\n 'panel:comments',\n ],\n importance: 5,\n },\n ],\n },\n\n // ── the mode bars: along main, one at a time ──────────────────────────────\n annotate: {\n place: { with: 'main' },\n mode: 'annotate',\n titleKey: 'commands.mode.annotate',\n center: [\n { id: 'comment', items: ['tool:note', 'tool:link'], importance: 4 },\n {\n id: 'markup',\n items: ['tool:highlight', 'tool:strikeout', 'tool:underline', 'tool:squiggly'],\n importance: 4,\n },\n { id: 'draw', items: ['tool:ink', 'tool:ink-highlight'], importance: 3 },\n {\n id: 'text',\n items: ['tool:free-text', 'tool:insert-text', 'tool:replace-text', 'tool:callout'],\n importance: 2,\n },\n style,\n history,\n ],\n },\n shapes: {\n place: { with: 'main' },\n mode: 'shapes',\n titleKey: 'commands.mode.shapes',\n center: [\n {\n id: 'shapes',\n items: ['tool:square', 'tool:circle', 'tool:line', 'tool:arrow'],\n importance: 4,\n },\n { id: 'polygons', items: ['tool:polygon', 'tool:polyline'], importance: 2 },\n style,\n history,\n ],\n },\n insert: {\n place: { with: 'main' },\n mode: 'insert',\n titleKey: 'commands.mode.insert',\n center: [\n {\n id: 'stamps',\n items: [\n 'tool:stamp',\n // Quick marks (`plugins.stamp.quick`): thumbnails that arm on click; in\n // a menu the stamps panel stands in for them.\n { custom: 'quick-stamps', command: 'tool:stamp', importance: 3 },\n 'tool:attachment',\n 'tool:signature',\n 'tool:image',\n ],\n importance: 4,\n },\n style,\n history,\n ],\n },\n form: {\n place: { with: 'main' },\n mode: 'form',\n titleKey: 'commands.mode.form',\n center: [\n // The design switch first: what a field is, in its sidebar; how it looks is Style's.\n { id: 'design', items: ['form:design'], importance: 5 },\n { id: 'fields', items: ['tool:text-field', 'tool:checkbox', 'tool:radio'], importance: 4 },\n { id: 'choices', items: ['tool:combo-box', 'tool:list-box'], importance: 2 },\n { id: 'buttons', items: ['tool:button'], importance: 2 },\n { id: 'signatures', items: ['tool:signature-field'], importance: 2 },\n style,\n history,\n ],\n },\n redact: {\n place: { with: 'main' },\n mode: 'redact',\n titleKey: 'commands.mode.redact',\n center: [\n { id: 'redact', items: ['tool:redact', 'panel:redaction'], importance: 4 },\n style,\n history,\n ],\n },\n measure: {\n place: { with: 'main' },\n mode: 'measure',\n titleKey: 'commands.mode.measure',\n center: [\n {\n id: 'measure',\n items: ['tool:distance', 'tool:perimeter', 'tool:area', 'measurement:calibrate'],\n importance: 5,\n },\n {\n id: 'scale',\n items: [\n { custom: 'measurement-scale', command: 'panel:measurement', variants: ['inline'] },\n ],\n importance: 4,\n },\n style,\n ],\n },\n\n // ── over the pages ────────────────────────────────────────────────────────\n pager: {\n place: { float: 'bottom' },\n center: [{ id: 'pages', items: [{ custom: 'page-number' }] }],\n },\n // Which actions show is each command's `visible` (group only when\n // groupable, style only when the kind has editable properties…), so one\n // bar serves a single and a multiple selection.\n selection: {\n place: { at: 'selection' },\n center: [\n {\n id: 'selection',\n items: [\n 'selection:copy',\n 'selection:highlight',\n 'selection:underline',\n 'selection:strikeout',\n ],\n importance: 4,\n },\n ],\n },\n annotation: {\n place: { at: 'annotation' },\n center: [\n {\n id: 'actions',\n items: [\n 'annotation:comment',\n 'annotation:style',\n 'annotation:stamp-from-selection',\n 'annotation:link',\n 'annotation:goto-link',\n 'annotation:remove-link',\n 'annotation:group',\n 'annotation:ungroup',\n ],\n importance: 4,\n },\n // Its own group, so a line sets delete apart.\n { id: 'danger', items: ['annotation:delete'], importance: 5 },\n ],\n },\n },\n\n menus: {\n document: [['document:open', 'document:download', 'document:print'], ['view:fullscreen']],\n view: [\n {\n titleKey: 'commands.spread.group',\n items: ['view:single-page', 'view:two-pages', 'view:cover-page'],\n },\n {\n titleKey: 'commands.scroll.group',\n items: ['view:scroll-vertical', 'view:scroll-horizontal'],\n },\n {\n titleKey: 'commands.rotate.group',\n items: ['view:rotate-clockwise', 'view:rotate-counterclockwise'],\n },\n ['view:fullscreen'],\n ],\n zoom: [\n {\n titleKey: 'commands.zoom.level',\n items: ['zoom:50', 'zoom:100', 'zoom:150', 'zoom:200', 'zoom:400'],\n },\n ['zoom:in', 'zoom:out'],\n ['zoom:fit-page', 'zoom:fit-width', 'zoom:automatic'],\n ],\n },\n\n // Each panel's button is its `panel:<id>` command, titled and drawn as the panel is\n // (config/panels.ts); the panels on one side take turns.\n panels: {\n thumbnails: { side: 'start', titleKey: 'panels.thumbnails', icon: 'sidebar' },\n outline: { side: 'start', titleKey: 'panels.outline', icon: 'listTree' },\n attachments: { side: 'start', titleKey: 'panels.attachments', icon: 'paperclip' },\n search: { side: 'end', titleKey: 'panels.search', icon: 'search' },\n comments: { side: 'end', titleKey: 'panels.comments', icon: 'comment' },\n style: { side: 'end', titleKey: 'panels.style', icon: 'palette' },\n stamps: { side: 'end', titleKey: 'panels.stamps', icon: 'rubberStamp' },\n signatures: { side: 'end', titleKey: 'panels.signatures', icon: 'signature' },\n redaction: { side: 'end', titleKey: 'panels.redaction', icon: 'redactionSidebar' },\n measurement: { side: 'end', titleKey: 'panels.measurement', icon: 'updateScale' },\n // The form designer's sidebar: the document's fields, and what the selected one is.\n 'form-design': { side: 'end', titleKey: 'panels.formDesign', icon: 'formDesign' },\n },\n};\n\n/** The default layout, which the `layout` function gets. */\nexport const defaultLayout = createLayout(DEFAULT_LAYOUT);\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,QAA2B;CAC/B,IAAI;CACJ,OAAO,CAAC,aAAa;CACrB,YAAY;CACZ,WAAW;AACb;AACA,MAAM,UAA6B;CACjC,IAAI;CACJ,OAAO,CAAC,gBAAgB,cAAc;CACtC,YAAY;CACZ,WAAW;AACb;AAEA,MAAa,iBAA6B;CACxC,MAAM;EACJ,MAAM;GACJ,OAAO;GAGP,OAAO;IACL;KAAE,IAAI;KAAY,OAAO,CAAC,eAAe;KAAG,YAAY;IAAE;IAC1D;KACE,IAAI;KACJ,OAAO,CAAC;MAAE,SAAS;MAAoB,YAAY;KAAE,GAAG,WAAW;KACnE,YAAY;IACd;IAGA;KACE,IAAI;KACJ,OAAO,CAAC;MAAE,QAAQ;MAAQ,SAAS;MAAa,UAAU,CAAC,UAAU,QAAQ;KAAE,CAAC;KAChF,YAAY;IACd;IACA;KAAE,IAAI;KAAS,OAAO,CAAC,YAAY,cAAc;KAAG,YAAY;IAAE;GACpE;GACA,QAAQ,CACN;IAKE,IAAI;IACJ,OAAO,CAAC;IACR,MAAM;IACN,UAAU;IACV,YAAY;IACZ,UAAU;GACZ,CACF;GACA,KAAK,CACH;IACE,IAAI;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GACA;IACE,UAAU;IACV,OAAO,CAAC,wBAAwB,wBAAwB;GAC1D;GACA;IACE,UAAU;IACV,OAAO,CAAC,yBAAyB,8BAA8B;GACjE;GACA,CAAC,iBAAiB;EACpB;EACA,MAAM;GACJ;IACE,UAAU;IACV,OAAO;KAAC;KAAW;KAAY;KAAY;KAAY;IAAU;GACnE;GACA,CAAC,WAAW,UAAU;GACtB;IAAC;IAAiB;IAAkB;GAAgB;EACtD;CACF;CAIA,QAAQ;EACN,YAAY;GAAE,MAAM;GAAS,UAAU;GAAqB,MAAM;EAAU;EAC5E,SAAS;GAAE,MAAM;GAAS,UAAU;GAAkB,MAAM;EAAW;EACvE,aAAa;GAAE,MAAM;GAAS,UAAU;GAAsB,MAAM;EAAY;EAChF,QAAQ;GAAE,MAAM;GAAO,UAAU;GAAiB,MAAM;EAAS;EACjE,UAAU;GAAE,MAAM;GAAO,UAAU;GAAmB,MAAM;EAAU;EACtE,OAAO;GAAE,MAAM;GAAO,UAAU;GAAgB,MAAM;EAAU;EAChE,QAAQ;GAAE,MAAM;GAAO,UAAU;GAAiB,MAAM;EAAc;EACtE,YAAY;GAAE,MAAM;GAAO,UAAU;GAAqB,MAAM;EAAY;EAC5E,WAAW;GAAE,MAAM;GAAO,UAAU;GAAoB,MAAM;EAAmB;EACjF,aAAa;GAAE,MAAM;GAAO,UAAU;GAAsB,MAAM;EAAc;EAEhF,eAAe;GAAE,MAAM;GAAO,UAAU;GAAqB,MAAM;EAAa;CAClF;AACF;;AAGA,MAAa,iBAAA,GAAA,kBAAA,aAAA,CAA6B,cAAc"}
|
package/dist/chrome.d.cts
CHANGED
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayoutData } from "@embedpdf/core-ui";
|
|
2
2
|
//#region src/config/chrome.d.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* own. It is never merged with anything.
|
|
7
|
-
*/
|
|
8
|
-
declare const defaultChrome: {
|
|
9
|
-
bars: {
|
|
10
|
-
main: BarSchema;
|
|
11
|
-
};
|
|
12
|
-
modeBars: {
|
|
13
|
-
'mode:annotate': BarSchema;
|
|
14
|
-
'mode:shapes': BarSchema;
|
|
15
|
-
'mode:insert': BarSchema;
|
|
16
|
-
'mode:form': BarSchema;
|
|
17
|
-
'mode:redact': BarSchema;
|
|
18
|
-
};
|
|
19
|
-
menus: {
|
|
20
|
-
document: MenuSchema;
|
|
21
|
-
zoom: MenuSchema;
|
|
22
|
-
'page-settings': MenuSchema;
|
|
23
|
-
};
|
|
24
|
-
strips: {
|
|
25
|
-
annotation: BarSchema;
|
|
26
|
-
selection: BarSchema;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** Menu lookup by id (arbitrary string). */
|
|
30
|
-
declare function getMenu(schema: ChromeSchema, id: string): MenuSchema | undefined;
|
|
31
|
-
/** Secondary band lookup by mode-surface id. */
|
|
32
|
-
declare function getModeBar(schema: ChromeSchema, id: string): BarSchema | undefined;
|
|
33
|
-
/** Contextual strip lookup by context id ('annotation', …). */
|
|
34
|
-
declare function getStrip(schema: ChromeSchema, id: string): BarSchema | undefined;
|
|
3
|
+
declare const DEFAULT_LAYOUT: LayoutData;
|
|
4
|
+
/** The default layout, which the `layout` function gets. */
|
|
5
|
+
declare const defaultLayout: import("@embedpdf/core-ui").Layout;
|
|
35
6
|
//#endregion
|
|
36
|
-
export {
|
|
7
|
+
export { DEFAULT_LAYOUT, defaultLayout };
|
|
37
8
|
//# sourceMappingURL=chrome.d.cts.map
|
package/dist/chrome.d.ts
CHANGED
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayoutData } from "@embedpdf/core-ui";
|
|
2
2
|
//#region src/config/chrome.d.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* own. It is never merged with anything.
|
|
7
|
-
*/
|
|
8
|
-
declare const defaultChrome: {
|
|
9
|
-
bars: {
|
|
10
|
-
main: BarSchema;
|
|
11
|
-
};
|
|
12
|
-
modeBars: {
|
|
13
|
-
'mode:annotate': BarSchema;
|
|
14
|
-
'mode:shapes': BarSchema;
|
|
15
|
-
'mode:insert': BarSchema;
|
|
16
|
-
'mode:form': BarSchema;
|
|
17
|
-
'mode:redact': BarSchema;
|
|
18
|
-
};
|
|
19
|
-
menus: {
|
|
20
|
-
document: MenuSchema;
|
|
21
|
-
zoom: MenuSchema;
|
|
22
|
-
'page-settings': MenuSchema;
|
|
23
|
-
};
|
|
24
|
-
strips: {
|
|
25
|
-
annotation: BarSchema;
|
|
26
|
-
selection: BarSchema;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** Menu lookup by id (arbitrary string). */
|
|
30
|
-
declare function getMenu(schema: ChromeSchema, id: string): MenuSchema | undefined;
|
|
31
|
-
/** Secondary band lookup by mode-surface id. */
|
|
32
|
-
declare function getModeBar(schema: ChromeSchema, id: string): BarSchema | undefined;
|
|
33
|
-
/** Contextual strip lookup by context id ('annotation', …). */
|
|
34
|
-
declare function getStrip(schema: ChromeSchema, id: string): BarSchema | undefined;
|
|
3
|
+
declare const DEFAULT_LAYOUT: LayoutData;
|
|
4
|
+
/** The default layout, which the `layout` function gets. */
|
|
5
|
+
declare const defaultLayout: import("@embedpdf/core-ui").Layout;
|
|
35
6
|
//#endregion
|
|
36
|
-
export {
|
|
7
|
+
export { DEFAULT_LAYOUT, defaultLayout };
|
|
37
8
|
//# sourceMappingURL=chrome.d.ts.map
|