@inkbar/react 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -11
- package/dist/index.d.mts +97 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +284 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -73,6 +73,7 @@ export function Review({
|
|
|
73
73
|
tools={tools}
|
|
74
74
|
annotations={annotations}
|
|
75
75
|
onAnnotationsChange={setAnnotations}
|
|
76
|
+
history
|
|
76
77
|
>
|
|
77
78
|
<InkToolbar>
|
|
78
79
|
<InkToolButton tool="select-text" />
|
|
@@ -98,11 +99,23 @@ export function Review({
|
|
|
98
99
|
}
|
|
99
100
|
```
|
|
100
101
|
|
|
101
|
-
`select-text` and `select` are always there. Every other tool is opt-in: pass the ones you offer through `tools`, from the tool factories in `@inkbar/core/dom`, or `allTools()` for all of them. A button for a tool you did not pass renders disabled and hidden,
|
|
102
|
+
`select-text` and `select` are always there. Every other tool is opt-in: pass the ones you offer through `tools`, from the tool factories in `@inkbar/core/dom`, or `allTools()` for all of them. A button for a tool you did not pass renders empty, disabled and hidden from assistive technology, though it still takes up its place in the layout. `InkHighlightMenu`, `InkShapeMenu` and `InkSignatureMenu` render nothing without their tool. Each logs an `InkError('UnknownTool')` to the console once. If the active tool leaves `tools`, the viewer switches to `select-text` and reports it through `onToolChange`.
|
|
102
103
|
|
|
103
104
|
Each control is a separate component, so put them in any order or leave some out. Buttons show icons from `@inkbar/icons`. Pass your own as `children` to replace one, and use `InkIcon` to put the same icons on your own buttons. For a button of your own, such as `<InkToolbarButton onClick={download}>Download</InkToolbarButton>`, use `InkToolbarButton`: it joins the toolbar's arrow-key focus and looks like the other buttons.
|
|
104
105
|
|
|
105
|
-
`annotations` with `onAnnotationsChange` makes your list the source of truth. Leave them off and Inkbar keeps the state itself, with undo and redo.
|
|
106
|
+
`annotations` with `onAnnotationsChange` makes your list the source of truth. Leave them off and Inkbar keeps the state itself, with undo and redo. The example passes `history` so that `InkUndo` and `InkRedo` work with your list; see below.
|
|
107
|
+
|
|
108
|
+
`InkRoot` takes a few more props. `password` opens an encrypted file. `storage` sets what the viewer keeps between visits (see [Storage](#storage)). `defaults` sets the colour defaults for new annotations. `fonts` sets the font families the text style menu offers. `decorateAnnotation` adds `data-*` attributes, classes and a screen-reader description to each annotation's element. `page` with `onPageChange`, `zoom` with `onZoomChange` and `tool` with `onToolChange` control those values from your own state. `onChange` gets each annotation change. `onError` hears open failures, form script errors and refused signatures, and `onActivate` gets the id of an activated annotation. `children` can be a function of `{ status, document }`.
|
|
109
|
+
|
|
110
|
+
## Viewport
|
|
111
|
+
|
|
112
|
+
`InkViewport` takes `mode` and `rotation`, plus `gap` (CSS px between pages, 16 by default), `buffer` (pages kept mounted either side of the visible ones, 2 by default) and `pinchZoom` (`true` by default; `false` leaves pinches to the browser, which zooms the whole page). A change to `gap`, `buffer` or `pinchZoom` rebuilds the engine.
|
|
113
|
+
|
|
114
|
+
On a touch screen, two fingers pinch to zoom the document and scroll it. With `draw`, `sketch`, `shape`, `redact-area` and `freetext`, one finger draws; a finger tap draws nothing, and a pen that lands while a palm rests on the screen takes over. A shape, area redaction or text box gives one-finger scrolling back once it has made something.
|
|
115
|
+
|
|
116
|
+
## Style menus
|
|
117
|
+
|
|
118
|
+
`InkColorMenu` (its `property` is `border`, `fill` or `text`), `InkLineStyleMenu` (weight, dashes, arrowheads) and `InkTextStyleMenu` (font, size, colour, bold, italic, underline, alignment) edit the selection, or the active tool's style when nothing is selected. They disable when nothing supports their properties. `InkShapeMenu` is a split button for the `shape` tool and renders nothing unless `shapeTool` is in `tools`.
|
|
106
119
|
|
|
107
120
|
## Controlled mode
|
|
108
121
|
|
|
@@ -147,7 +160,7 @@ Inside `InkRoot`, `useHistory()` returns the same object. Its `batch(fn)` runs `
|
|
|
147
160
|
|
|
148
161
|
## Forms
|
|
149
162
|
|
|
150
|
-
`InkViewport` fills the PDF's form fields and runs the form's scripts. `useForm()` returns the fields, their values, and `set` and `reset`. Pass `fields` with `onFieldsChange` to hold the values in your own state. The form never submits, opens a link, sends mail or prints: `
|
|
163
|
+
`InkViewport` fills the PDF's form fields and runs the form's scripts. `useForm()` returns the fields, their values, and `set` and `reset`. Pass `fields` with `onFieldsChange` to hold the values in your own state. The form never submits, opens a link, sends mail or prints: `onAction` hands each request to you; so does a link to a URL. `onFormAction` still works until 0.13.0. `formHighlight={false}` turns off the field tint, and a change applies to the open document in place.
|
|
151
164
|
|
|
152
165
|
The [forms guide](https://inkbar.dev/docs/guides/forms/) covers controlled fields, form actions, scripts, signature fields and saving values as Gloss.
|
|
153
166
|
|
|
@@ -161,7 +174,21 @@ The highlight tool leaves `contents` free for the comment. `doc.text(page)` retu
|
|
|
161
174
|
|
|
162
175
|
## Signatures
|
|
163
176
|
|
|
164
|
-
`InkSignatureMenu` lists saved signatures, picks one for the `signature` tool, removes them, and opens `InkSignatureDialog` to draw, type or upload a new one. The menu needs `signatureTool()` in `tools`. The dialog and signature form fields work without it; the dialog then only saves the signature. These are marks on the page, not cryptographic signatures.
|
|
177
|
+
`InkSignatureMenu` lists saved signatures, picks one for the `signature` tool, removes them, and opens `InkSignatureDialog` to draw, type or upload a new one. The menu needs `signatureTool()` in `tools`. The dialog and signature form fields work without it; the dialog then only saves the signature. These are marks on the page, not cryptographic signatures. `InkRoot` keeps them in its `storage` under the key `signatures`, so without a store they last until reload. A `signatures` store of your own still works and wins over `storage` until 0.13.0, which removes it. `signatureFonts` lists the handwriting fonts the Type tab offers; load them with `@font-face`. A placed signature keeps its aspect ratio when resized.
|
|
178
|
+
|
|
179
|
+
To open the dialog from your own button, render `<InkSignatureDialog open={open} onOpenChange={setOpen} />`. `onSave` receives the new template, and `select={false}` stops it selecting the template for the `signature` tool. `InkSignatureMenu` and the dialog take `fonts` to override `signatureFonts`.
|
|
180
|
+
|
|
181
|
+
## Storage
|
|
182
|
+
|
|
183
|
+
`InkRoot` keeps a few small things between visits: saved signatures, sidebar widths and plugin settings. Pass `storage` to choose where. `createLocalStorage()` from `@inkbar/core` keeps them in `localStorage`, and any `InkStorage` works, including an async one that talks to your server. The default is `createMemoryStorage()`, which forgets everything on reload. Inkbar never touches `localStorage`, cookies or the network unless the store you pass does. The root reads `storage` once, when it is created. See the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#storage) for the keys.
|
|
184
|
+
|
|
185
|
+
```tsx
|
|
186
|
+
import { createLocalStorage } from '@inkbar/core'
|
|
187
|
+
|
|
188
|
+
const storage = createLocalStorage()
|
|
189
|
+
|
|
190
|
+
<InkRoot src={src} assets={assets} storage={storage}>
|
|
191
|
+
```
|
|
165
192
|
|
|
166
193
|
## Plugins
|
|
167
194
|
|
|
@@ -183,7 +210,7 @@ Plugin stores undo with annotations. In controlled mode with `history`, each und
|
|
|
183
210
|
|
|
184
211
|
## Search
|
|
185
212
|
|
|
186
|
-
`InkFindBar` is the find bar and `InkSearchButton` opens it. Place the bar anywhere inside `InkRoot`, once `InkViewport` is there; Ctrl/Cmd+F opens it while it is mounted. `useSearch()` returns the search `state` and its actions (`open`, `setQuery`, `setMatchCase`, `next`, `previous`, `close`) for your own control. See the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#search) for the API.
|
|
213
|
+
`InkFindBar` is the find bar and `InkSearchButton` opens it. Place the bar anywhere inside `InkRoot`, once `InkViewport` is there; Ctrl/Cmd+F opens it while it is mounted. `useSearch()` returns the search `state` and its actions (`open(query?)`, `setQuery`, `setMatchCase`, `next`, `previous`, `select(index)`, `close`) for your own control. See the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#search) for the API.
|
|
187
214
|
|
|
188
215
|
The bar handles Escape itself and stops it there, so an `onKeyDown` you pass to `InkFindBar` never sees Escape.
|
|
189
216
|
|
|
@@ -209,7 +236,13 @@ The bar handles Escape itself and stops it there, so an `onKeyDown` you pass to
|
|
|
209
236
|
|
|
210
237
|
`layout` is `rail` (default: icon buttons beside the document, and activating the open panel's button closes it), `tabs` (labelled tabs, one panel open) or `stack` (a header per panel, any number expanded). `side` (`left` by default) decides which edge the rail and border sit on. `open` is the open panel's id, or `null`, for rail and tabs, and the expanded ids for stack. Pass it with `onOpenChange` to control the sidebar, or pass `defaultOpen` to set only where it starts. With neither, the first panel starts open. When the open panel goes (rendered conditionally), rail and tabs open the first one left and stack drops it, and `onOpenChange` receives the new value. In the rail, the open panel shows its label as a title above its content. `visible` (default `true`) shows or hides the whole sidebar; it keeps the open panel, its content and its scroll for when it shows again. Your code decides when: `visible={hits > 0}` keeps a results sidebar out of the way until a search finds something.
|
|
211
238
|
|
|
212
|
-
Panels take their place in the order they appear in the DOM, including one rendered later. A closed panel stays mounted and hidden, so its content keeps its state and scroll position, across layout changes too. The keys and ARIA are core's: see the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#sidebars). The sidebar needs no document and works outside `InkRoot`. On the server it renders its frame with the open panel showing, and the
|
|
239
|
+
Panels take their place in the order they appear in the DOM, including one rendered later. A closed panel stays mounted and hidden, so its content keeps its state and scroll position, across layout changes too. The keys and ARIA are core's: see the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#sidebars). The sidebar needs no document and works outside `InkRoot`. On the server it renders its frame at its width with the open panel showing, the stack headers and the resize handle; rail and tab buttons follow once it has mounted.
|
|
240
|
+
|
|
241
|
+
Each sidebar has a resize handle on its inner edge. Drag it, or focus it and use the arrow keys (16px a step), Home and End. Enter or a double-click resets the width. The width starts at `defaultWidth` (320) and stays between `minWidth` (240) and `maxWidth` (480), and never past half of the sidebar's container. The sidebar sets `--ink-sidebar-width` inline, so a CSS override of it no longer applies. Pass `defaultWidth` instead. Inside `InkRoot` the sidebar saves its width in the root's `storage` under `sidebar.<name>.width`, where `name` defaults to the side; give two sidebars on one side different names. Pass `storage` to the sidebar to use another store, or to save its width outside `InkRoot`. The sidebar reads `storage` and `name` once, when it is created. `width` hands you the width: bind it to a number and update it from `onWidthChange`. The handle then only reports, and the sidebar neither reads nor writes storage. A `width` that starts `undefined` keeps saving until you store the first reported width.
|
|
242
|
+
|
|
243
|
+
```tsx
|
|
244
|
+
<InkSidebar name="tools" side="right" defaultWidth={360} width={toolsWidth} onWidthChange={setToolsWidth}>
|
|
245
|
+
```
|
|
213
246
|
|
|
214
247
|
## Thumbnails
|
|
215
248
|
|
|
@@ -225,6 +258,20 @@ Panels take their place in the order they appear in the DOM, including one rende
|
|
|
225
258
|
|
|
226
259
|
An item's height is worked out from its page alone, so position what you add absolutely. What `renderItem` returns renders inside the item's `<button>`: keep it non-interactive, with no links, buttons or inputs. Both need `InkRoot` and render empty on the server.
|
|
227
260
|
|
|
261
|
+
## Outline and Back
|
|
262
|
+
|
|
263
|
+
`InkOutline` shows the document's outline as a tree. Clicking an item, or Enter on it, follows it: a destination scrolls there (without changing the zoom), a web address goes to the host as an `open-url` action. The chevron expands and collapses an item without following it. The item the reader has reached is marked `aria-current="location"` and kept in view. It fills its parent's height and scrolls, so put it in a panel:
|
|
264
|
+
|
|
265
|
+
```tsx
|
|
266
|
+
<InkPanel id="outline" label="Outline" icon={List}>
|
|
267
|
+
<InkOutline emptyText="No outline" />
|
|
268
|
+
</InkPanel>
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
`emptyText` is shown when the document has no outline. `renderItem`, given the item and `{ current, expanded }`, replaces an item's title. The keys and ARIA are core's, as in the thumbnails. Needs `InkRoot`; the tree renders empty on the server.
|
|
272
|
+
|
|
273
|
+
`InkBack` and `InkForward` return to where the view was before a jump (a link, an outline item) and undo that. Each is disabled until there is somewhere to go, and takes `asChild`. Put them in an `InkToolbar`.
|
|
274
|
+
|
|
228
275
|
## Record lists
|
|
229
276
|
|
|
230
277
|
`InkRecordList` lists a plugin's records as cards, the same cards their marks open, with the same actions. Name the records `<plugin>.<name>`:
|
|
@@ -247,11 +294,11 @@ To build your own, `useRecords<T>(name)` returns the live `records` and the `han
|
|
|
247
294
|
|
|
248
295
|
## Custom rendering
|
|
249
296
|
|
|
250
|
-
Slots are render props. `InkViewport` takes `loading`, `empty`, `error`, `renderAnnotation` and `renderPageError`; `InkThreadPopover` takes a function as `children`; `InkToolButton` takes a node or a function of `{ active, label }`; `InkCommand` a node or a function of `{ label, busy }`; `InkThumbnails`
|
|
297
|
+
Slots are render props. `InkViewport` takes `loading`, `empty`, `error`, `renderAnnotation` and `renderPageError`; `InkThreadPopover` takes a function as `children`; `InkToolButton` takes a node or a function of `{ active, label }`; `InkCommand` a node or a function of `{ label, busy }`; `InkThumbnails` and `InkOutline` take `renderItem`; `InkRecordList` takes `empty`. The props each receives are typed as `AnnotationSlotProps` and `ThreadPopoverSlotProps`, the same types the Vue package exports.
|
|
251
298
|
|
|
252
|
-
`InkDownloadButton` and `InkPrintButton` download and print the open PDF; `filename` names the download (the opened `File`'s name, else the URL's last segment, else `document.pdf`). Printing loads the file into a hidden frame and opens the browser's print dialog for it; on iOS the PDF opens in a new tab instead. Until saving into the PDF ships, both give the file as it was opened, without this session's annotations.
|
|
299
|
+
`InkDownloadButton` and `InkPrintButton` download and print the open PDF; `filename` names the download (the opened `File`'s name, else the URL's last segment, else `document.pdf`; `.pdf` is added to a name without it). Printing loads the file into a hidden frame and opens the browser's print dialog for it; on iOS the PDF opens in a new tab instead. Until saving into the PDF ships, both give the file as it was opened, without this session's annotations.
|
|
253
300
|
|
|
254
|
-
`InkRoot`, `InkToolbar`, `InkToolButton`, `InkCommand`, `InkUndo`, `InkRedo`, `InkDownloadButton`, `InkPrintButton`, `InkPrevPage`, `InkNextPage`, `InkZoomIn` and `InkZoomOut` take `asChild` to render your own element in place of theirs, such as a button from your design system. Pass that element as the only child. The control keeps its behaviour and accessible name.
|
|
301
|
+
`InkRoot`, `InkToolbar`, `InkToolButton`, `InkToolbarButton`, `InkSearchButton`, `InkCommand`, `InkUndo`, `InkRedo`, `InkDownloadButton`, `InkPrintButton`, `InkPrevPage`, `InkNextPage`, `InkBack`, `InkForward`, `InkZoomIn` and `InkZoomOut` take `asChild` to render your own element in place of theirs, such as a button from your design system. Pass that element as the only child. The control keeps its behaviour and accessible name.
|
|
255
302
|
|
|
256
303
|
## Keyboard
|
|
257
304
|
|
|
@@ -265,11 +312,12 @@ The scroll area takes focus. From there:
|
|
|
265
312
|
|
|
266
313
|
On a focused annotation:
|
|
267
314
|
|
|
268
|
-
- `Enter` or `Space` selects and activates it. A note or text markup opens its thread; other types are only selected.
|
|
315
|
+
- `Enter` or `Space` selects and activates it. A note or text markup opens its thread; other types are only selected. `Enter` on an editable text box opens its editor instead.
|
|
269
316
|
- `ArrowUp` and `ArrowDown` move to the previous or next annotation on the page.
|
|
270
317
|
- `Shift` + arrow moves it by 1 pt, or by 10 pt with `Alt` as well.
|
|
271
318
|
- `Ctrl` or `Cmd` + `Shift` + arrow resizes an area redaction, text box or shape.
|
|
272
319
|
- `Delete` or `Backspace` removes it.
|
|
320
|
+
- `Escape` clears the selection.
|
|
273
321
|
|
|
274
322
|
The full table, with the zoom and page keys, is in the [`@inkbar/core` README](https://github.com/inkbar/inkbar/tree/main/packages/core#tools-and-keyboard).
|
|
275
323
|
|
|
@@ -279,7 +327,7 @@ Components carry state on data attributes, for example `[data-annotation][data-s
|
|
|
279
327
|
|
|
280
328
|
## Hooks
|
|
281
329
|
|
|
282
|
-
`useDocument`, `useAnnotations`, `useTool`, `useSelection`, `useZoom`, `usePage`, `useHistory`, `useEmbedded`, `useCommand`, `useRecords` and `useRecordSelection` read the state of the nearest `InkRoot`. Build your own toolbar or side panel from them.
|
|
330
|
+
`useDocument`, `useAnnotations`, `useTool`, `useToolOptions`, `useToolStyle`, `useSelection`, `useZoom`, `usePage`, `useHistory`, `useSearch`, `useForm`, `useEmbedded`, `useCommand`, `useRecords` and `useRecordSelection` read the state of the nearest `InkRoot`. Build your own toolbar or side panel from them. `useToolOptions` reads and sets a tool's options, such as the shape kind; they last as long as `InkRoot`. The tool style that `useToolStyle` reads and sets (colours, line style, text style) belongs to the document: opening another one starts again from the theme's defaults.
|
|
283
331
|
|
|
284
332
|
## Licence
|
|
285
333
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
2
|
-
import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, AnnotationPatch, CurrentStyle, DocumentSource, FieldValues, FieldsChange,
|
|
3
|
-
import { AnnotationDecoration, AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, CardSpec, CardSpec as CardSpec$1, ColorProperty, DecorateAnnotation, DecorateAnnotation as DecorateAnnotation$1, HostRecords, HostRecords as HostRecords$1, InkPlugin, InkPlugin as InkPlugin$1, LayoutMode, PageMount, PluginHost, RecordListSource, SearchController, SearchState, SidebarLayout, SidebarLayout as SidebarLayout$1, SidebarOpen, SidebarOpen as SidebarOpen$1, SidebarSide, SidebarSide as SidebarSide$1, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, ViewerSearch, Viewport, ZoomValue } from "@inkbar/core/dom";
|
|
2
|
+
import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, AnnotationPatch, CurrentStyle, DocumentSource, FieldValues, FieldsChange, FormField, FormSetResult, ImportOptions, InkDocument, InkError, InkStatus, InkStorage, OutlineItem, PageInfo, PdfAssets, PluginHistory, Readable, RecordBase, SignatureLibrary, SignatureStore, SignatureTemplate, StyleGroup, StyleKey, StyleProps, ViewerAction, Writable } from "@inkbar/core";
|
|
3
|
+
import { AnnotationDecoration, AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, CardSpec, CardSpec as CardSpec$1, ColorProperty, DecorateAnnotation, DecorateAnnotation as DecorateAnnotation$1, HostRecords, HostRecords as HostRecords$1, InkPlugin, InkPlugin as InkPlugin$1, LayoutMode, Navigation, PageMount, PluginHost, RecordListSource, SearchController, SearchState, SidebarLayout, SidebarLayout as SidebarLayout$1, SidebarOpen, SidebarOpen as SidebarOpen$1, SidebarSide, SidebarSide as SidebarSide$1, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, ViewerSearch, Viewport, ZoomValue } from "@inkbar/core/dom";
|
|
4
4
|
import { Select, Toolbar } from "radix-ui";
|
|
5
5
|
import { IconNode } from "@inkbar/icons";
|
|
6
6
|
//#region src/context.d.ts
|
|
@@ -46,6 +46,12 @@ interface InkContext {
|
|
|
46
46
|
/** Set by InkViewport once it has built its viewport and tool controller. */
|
|
47
47
|
viewport: Viewport | null;
|
|
48
48
|
tools: ToolController | null;
|
|
49
|
+
/**
|
|
50
|
+
* The engine's navigation (jumps with Back and Forward), set by InkViewport when it builds
|
|
51
|
+
* the engine and cleared when it is torn down; `null` before that, and on the server.
|
|
52
|
+
*/
|
|
53
|
+
navigation: Navigation | null;
|
|
54
|
+
setNavigation: (navigation: Navigation | null) => void;
|
|
49
55
|
/** Desired tool; InkViewport applies it to the controller. */
|
|
50
56
|
tool: ToolId;
|
|
51
57
|
setTool: (id: ToolId) => void;
|
|
@@ -72,7 +78,12 @@ interface InkContext {
|
|
|
72
78
|
fonts: readonly string[];
|
|
73
79
|
/** The tools' options for InkRoot's life, so they persist across documents. */
|
|
74
80
|
toolOptions: ToolOptions;
|
|
75
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* InkRoot's `storage` (memory by default), fixed for the root's life. The signatures, the
|
|
83
|
+
* plugins' settings and each `InkSidebar`'s width are kept in it.
|
|
84
|
+
*/
|
|
85
|
+
storage: InkStorage;
|
|
86
|
+
/** The saved signatures: InkRoot's `signatures` store, else kept in `storage`. */
|
|
76
87
|
signatures: SignatureLibrary;
|
|
77
88
|
/** The fonts a typed signature offers: InkRoot's `signatureFonts`, else `SIGNATURE_FONTS`. */
|
|
78
89
|
signatureFonts: readonly string[];
|
|
@@ -96,8 +107,8 @@ interface InkContext {
|
|
|
96
107
|
setViewport: (viewport: Viewport | null, tools: ToolController | null) => void;
|
|
97
108
|
/** InkRoot's `formHighlight`; InkViewport reads it when it builds the viewer. */
|
|
98
109
|
formHighlight: boolean | undefined;
|
|
99
|
-
/** Calls InkRoot's `onFormAction`, one microtask later. */
|
|
100
|
-
|
|
110
|
+
/** Calls InkRoot's `onAction`, or the deprecated `onFormAction`, one microtask later. */
|
|
111
|
+
reportAction: (action: ViewerAction) => void;
|
|
101
112
|
/** Calls InkRoot's `onError`, for failures after the document opened (a refused signing). */
|
|
102
113
|
reportError: (error: InkError) => void;
|
|
103
114
|
}
|
|
@@ -2835,8 +2846,13 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2835
2846
|
* Called only while the fields are controlled.
|
|
2836
2847
|
*/
|
|
2837
2848
|
onFieldsChange?: ((next: FieldValues, change: FieldsChange) => void) | undefined;
|
|
2838
|
-
/**
|
|
2839
|
-
|
|
2849
|
+
/**
|
|
2850
|
+
* The viewer asked the host to submit a form, open a link, send mail, print or prompt. Inkbar
|
|
2851
|
+
* does none of these.
|
|
2852
|
+
*/
|
|
2853
|
+
onAction?: ((action: ViewerAction) => void) | undefined;
|
|
2854
|
+
/** @deprecated Use `onAction`. Removed in 0.13.0. Ignored when `onAction` is given. */
|
|
2855
|
+
onFormAction?: ((action: ViewerAction) => void) | undefined;
|
|
2840
2856
|
/** Tints fillable form fields. Default true. A change applies to the open document in place. */
|
|
2841
2857
|
formHighlight?: boolean | undefined;
|
|
2842
2858
|
tool?: ToolId | undefined;
|
|
@@ -2870,9 +2886,16 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2870
2886
|
*/
|
|
2871
2887
|
fonts?: string[] | undefined;
|
|
2872
2888
|
/**
|
|
2873
|
-
* Where
|
|
2874
|
-
*
|
|
2875
|
-
*
|
|
2889
|
+
* Where the viewer keeps what lasts between visits: saved signatures, each `InkSidebar`'s
|
|
2890
|
+
* width and the plugins' settings. Default: memory, gone on reload. `createLocalStorage`
|
|
2891
|
+
* keeps them in the browser; a host can keep them anywhere. Read once, when the root is
|
|
2892
|
+
* created.
|
|
2893
|
+
*/
|
|
2894
|
+
storage?: InkStorage | undefined;
|
|
2895
|
+
/**
|
|
2896
|
+
* Where saved signatures live, in place of `storage`. A new store takes effect at once, for
|
|
2897
|
+
* the menus and the `signature` tool alike.
|
|
2898
|
+
* @deprecated Pass `storage`; signatures are kept in it under `signatures`. Removed in 0.13.0.
|
|
2876
2899
|
*/
|
|
2877
2900
|
signatures?: SignatureStore | undefined;
|
|
2878
2901
|
/** The handwriting fonts a typed signature offers; the host loads them. */
|
|
@@ -2899,7 +2922,7 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2899
2922
|
}) => ReactNode);
|
|
2900
2923
|
ref?: Ref<InkRootHandle>;
|
|
2901
2924
|
}
|
|
2902
|
-
export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, fields, onFieldsChange, onFormAction, formHighlight, tool, onToolChange, tools: hostTools, plugins: pluginsProp, decorateAnnotation, fonts: fontsProp, signatures: signatureStore, signatureFonts: signatureFontsProp, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
|
|
2925
|
+
export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, fields, onFieldsChange, onAction, onFormAction, formHighlight, tool, onToolChange, tools: hostTools, plugins: pluginsProp, decorateAnnotation, fonts: fontsProp, storage: storageProp, signatures: signatureStore, signatureFonts: signatureFontsProp, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
|
|
2903
2926
|
//#endregion
|
|
2904
2927
|
//#region src/components/InkViewport.d.ts
|
|
2905
2928
|
interface InkViewportProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -3107,6 +3130,37 @@ export declare function InkPrevPage({ asChild, className, children, disabled, on
|
|
|
3107
3130
|
//#region src/components/InkNextPage.d.ts
|
|
3108
3131
|
export declare function InkNextPage({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
3109
3132
|
//#endregion
|
|
3133
|
+
//#region src/components/InkBack.d.ts
|
|
3134
|
+
/** Returns to where the view was before the last jump; disabled while there is nowhere to go. */
|
|
3135
|
+
export declare function InkBack({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
3136
|
+
//#endregion
|
|
3137
|
+
//#region src/components/InkForward.d.ts
|
|
3138
|
+
/** Goes forward again after Back; disabled until Back is used. */
|
|
3139
|
+
export declare function InkForward({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
3140
|
+
//#endregion
|
|
3141
|
+
//#region src/components/InkOutline.d.ts
|
|
3142
|
+
interface InkOutlineProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3143
|
+
/** Shown when the document has no outline. Default: "This document has no outline". */
|
|
3144
|
+
emptyText?: string | undefined;
|
|
3145
|
+
/**
|
|
3146
|
+
* Replaces an item's title, given the item and whether it is the current one and whether it
|
|
3147
|
+
* is expanded. Keep what it returns non-interactive.
|
|
3148
|
+
*/
|
|
3149
|
+
renderItem?: ((item: OutlineItem, state: {
|
|
3150
|
+
current: boolean;
|
|
3151
|
+
expanded: boolean;
|
|
3152
|
+
}) => ReactNode) | undefined;
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* The open document's outline as a tree: `createOutline`'s markup on core's outline
|
|
3156
|
+
* controller, which holds what is expanded, the Tab stop, the keys, the current item and
|
|
3157
|
+
* Back's history. Clicking an item, or Enter on it, follows it; its chevron expands and
|
|
3158
|
+
* collapses it. It fills its parent's height and scrolls, and keeps the item the reader has
|
|
3159
|
+
* reached in view. `renderItem` replaces an item's title. Inside `InkRoot`; the tree is empty
|
|
3160
|
+
* on the server.
|
|
3161
|
+
*/
|
|
3162
|
+
export declare function InkOutline({ emptyText, renderItem, className, ...rest }: InkOutlineProps): import("react").JSX.Element;
|
|
3163
|
+
//#endregion
|
|
3110
3164
|
//#region src/components/InkColorMenu.d.ts
|
|
3111
3165
|
interface InkColorMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
3112
3166
|
/** The colour this menu sets. */
|
|
@@ -3211,6 +3265,29 @@ interface InkSidebarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'childre
|
|
|
3211
3265
|
defaultOpen?: SidebarOpen$1 | undefined;
|
|
3212
3266
|
/** Called with the new value when a trigger is activated or the open panel goes. */
|
|
3213
3267
|
onOpenChange?: ((open: SidebarOpen$1) => void) | undefined;
|
|
3268
|
+
/**
|
|
3269
|
+
* Where the width is saved. Default: InkRoot's `storage` inside InkRoot, else none, and the
|
|
3270
|
+
* width lasts until unmount. Read once, when the sidebar is created.
|
|
3271
|
+
*/
|
|
3272
|
+
storage?: InkStorage | undefined;
|
|
3273
|
+
/**
|
|
3274
|
+
* The middle of the saved key, `sidebar.<name>.width`. Default: the side. Give two sidebars
|
|
3275
|
+
* on one side different names. Read once, when the sidebar is created.
|
|
3276
|
+
*/
|
|
3277
|
+
name?: string | undefined;
|
|
3278
|
+
/** In CSS px. Default 320; Enter or a double-click on the handle goes back to it. */
|
|
3279
|
+
defaultWidth?: number | undefined;
|
|
3280
|
+
/** Default 240. */
|
|
3281
|
+
minWidth?: number | undefined;
|
|
3282
|
+
/** Default 480. The shown width also stays within half the sidebar's container. */
|
|
3283
|
+
maxWidth?: number | undefined;
|
|
3284
|
+
/**
|
|
3285
|
+
* Controlled, in CSS px: bind it to a number and update it from `onWidthChange`. Left out,
|
|
3286
|
+
* the sidebar keeps its own width, saved in `storage`.
|
|
3287
|
+
*/
|
|
3288
|
+
width?: number | undefined;
|
|
3289
|
+
/** Called with the new width when the handle is dragged or used by key. */
|
|
3290
|
+
onWidthChange?: ((width: number) => void) | undefined;
|
|
3214
3291
|
/** The `InkPanel`s. */
|
|
3215
3292
|
children?: ReactNode;
|
|
3216
3293
|
}
|
|
@@ -3223,10 +3300,15 @@ interface InkSidebarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'childre
|
|
|
3223
3300
|
*
|
|
3224
3301
|
* `open` with `onOpenChange` controls it; `defaultOpen` starts it uncontrolled; with neither,
|
|
3225
3302
|
* the first panel starts open. It needs no document, so it works outside `InkRoot`. The server
|
|
3226
|
-
* renders the root, the panels (the open one shown)
|
|
3227
|
-
* buttons follow once mounted.
|
|
3303
|
+
* renders the root, the panels (the open one shown), the stack headers and the resize handle;
|
|
3304
|
+
* rail and tab buttons follow once mounted.
|
|
3305
|
+
*
|
|
3306
|
+
* The handle on the inner edge resizes the sidebar. Its width is saved in `storage`, under
|
|
3307
|
+
* `sidebar.<name>.width`; inside `InkRoot` the root's storage is the default. `width` with
|
|
3308
|
+
* `onWidthChange` makes the width the host's: drags and keys then only report, and storage is
|
|
3309
|
+
* not read or written.
|
|
3228
3310
|
*/
|
|
3229
|
-
export declare function InkSidebar({ side, layout, visible, open, defaultOpen, onOpenChange, className, children, ...rest }: InkSidebarProps): import("react").JSX.Element;
|
|
3311
|
+
export declare function InkSidebar({ side, layout, visible, open, defaultOpen, onOpenChange, storage: storageProp, name, defaultWidth, minWidth, maxWidth, width, onWidthChange, className, style, children, ...rest }: InkSidebarProps): import("react").JSX.Element;
|
|
3230
3312
|
//#endregion
|
|
3231
3313
|
//#region src/components/InkPanel.d.ts
|
|
3232
3314
|
interface InkPanelProps {
|
|
@@ -3357,5 +3439,5 @@ interface InkSearchResultsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'c
|
|
|
3357
3439
|
*/
|
|
3358
3440
|
export declare function InkSearchResults({ field, className, ...rest }: InkSearchResultsProps): import("react").JSX.Element;
|
|
3359
3441
|
//#endregion
|
|
3360
|
-
export type { AnnotationDecoration, AnnotationSlotProps, AnnotationState, CardSpec, CommandHandle, DecorateAnnotation, FormHandle, HostRecords, InkAnnotationProps, InkColorMenuProps, InkCommandProps, InkContext, InkDownloadButtonProps, InkFindBarProps, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkPanelProps, InkPlugin, InkPrintButtonProps, InkRecordListProps, InkRootHandle, InkRootProps, InkSearchButtonProps, InkSearchResultsProps, InkShapeMenuProps, InkSidebarProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkTextStyleMenuProps, InkThreadPopoverProps, InkThumbnailProps, InkThumbnailsProps, InkToolButtonProps, InkToolbarButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, SidebarLayout, SidebarOpen, SidebarSide, ThreadPopoverSlotProps, ToolStyleHandle };
|
|
3442
|
+
export type { AnnotationDecoration, AnnotationSlotProps, AnnotationState, CardSpec, CommandHandle, DecorateAnnotation, FormHandle, HostRecords, InkAnnotationProps, InkColorMenuProps, InkCommandProps, InkContext, InkDownloadButtonProps, InkFindBarProps, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkOutlineProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkPanelProps, InkPlugin, InkPrintButtonProps, InkRecordListProps, InkRootHandle, InkRootProps, InkSearchButtonProps, InkSearchResultsProps, InkShapeMenuProps, InkSidebarProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkTextStyleMenuProps, InkThreadPopoverProps, InkThumbnailProps, InkThumbnailsProps, InkToolButtonProps, InkToolbarButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, SidebarLayout, SidebarOpen, SidebarSide, ThreadPopoverSlotProps, ToolStyleHandle };
|
|
3361
3443
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["DecorateAnnotation","HostRecords","InkPlugin","DecorateAnnotation","AnnotationSlotProps","AnnotationSlotProps","AnnotationSlotProps","ThreadPopoverSlotProps","SidebarSide","SidebarLayout","SidebarOpen","CardSpec"],"sources":["../src/context.ts","../src/use-readable.ts","../src/hooks/useDocument.ts","../src/hooks/useAnnotations.ts","../src/hooks/useTool.ts","../src/hooks/useToolStyle.ts","../src/hooks/useToolOptions.ts","../src/hooks/useSelection.ts","../src/hooks/useZoom.ts","../src/hooks/useSearch.ts","../src/hooks/usePage.ts","../src/hooks/useHistory.ts","../src/hooks/useEmbedded.ts","../src/hooks/useCommand.ts","../src/hooks/useForm.ts","../src/hooks/useRecords.ts","../src/hooks/useRecordSelection.ts","../src/components/InkRoot.tsx","../src/components/InkViewport.tsx","../src/components/InkPage.tsx","../src/components/InkAnnotation.tsx","../src/components/InkToolbar.tsx","../src/components/InkIcon.tsx","../src/components/InkToolButton.tsx","../src/components/InkCommand.tsx","../src/components/InkToolbarButton.tsx","../src/components/InkToolbarSeparator.tsx","../src/components/history-button.ts","../src/components/InkUndo.tsx","../src/components/InkDownloadButton.tsx","../src/components/InkPrintButton.tsx","../src/components/InkRedo.tsx","../src/components/InkSearchButton.tsx","../src/components/InkFindBar.tsx","../src/components/zoom-button.ts","../src/components/InkZoomIn.tsx","../src/components/InkZoomOut.tsx","../src/components/InkZoomSelect.tsx","../src/components/InkPageInput.tsx","../src/components/InkPageCount.tsx","../src/components/page-button.ts","../src/components/InkPrevPage.tsx","../src/components/InkNextPage.tsx","../src/components/InkColorMenu.tsx","../src/components/InkShapeMenu.tsx","../src/components/InkSignatureMenu.tsx","../src/components/InkSignatureDialog.tsx","../src/components/InkHighlightMenu.tsx","../src/components/InkTextStyleMenu.tsx","../src/components/InkLineStyleMenu.tsx","../src/components/InkThreadPopover.tsx","../src/components/InkSidebar.tsx","../src/components/InkPanel.tsx","../src/components/InkThumbnail.tsx","../src/components/InkThumbnails.tsx","../src/components/InkRecordList.tsx","../src/components/InkSearchResults.tsx"],"mappings":";;;;;;;;;;UAgCiB,mBAAmB;EAClC;EACA;EACA;EACA;EACA;;;;;;;EAOA,QAAQ;;UAGO;EACf,QAAQ;EACR,UAAU;;EAEV,QAAQ;EACR,sBAAsB;EACtB;;;;;;EAMA,YAAY;;;;;;EAMZ,QAAQ;;EAER,YAAY,SAAS;;EAErB,UAAU;EACV,OAAO;;EAEP,MAAM;EACN,UAAU,IAAI;;EAEd,WAAW;;;;;;EAMX,wBAAwB;EACxB,mBAAmB,cAAc;;;;;EAKjC,oBAAoBA;;;;;EAKpB,6BAA6B;;EAE7B;;EAEA,aAAa;;EAEb,YAAY;;EAEZ;;EAEA,WAAW;;EAEX,WAAW;EACX;EACA,aAAa,GAAG;EAChB,aAAa;;EAEb;;;;;;EAMA,eAAe;EACf,SAAS;EACT,QAAQ;EACR,cAAc,UAAU,iBAAiB,OAAO;;EAEhD;;EAEA,mBAAmB,QAAQ;;EAE3B,cAAc,OAAO;;;;;;wBASP,cAAc,mBAAmB;;;;;;;;wBC1HjC,YAAY,GAAG,UAAU,SAAS,uBAAuB,UAAU,IAAI;;;wBCHvE;;;;;;;;EAYgB,oBAAA,MAAA,6BAA2B,OAAS,yCAAa;;;;wBCbjE;EAcG,MAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAEd,iBAAiB,MAAMA;;EAEvB,WAAW;;;;;;;;;;;;;;wBAkFG,aACd,MACA,QACA,SACA,MACA,aACA,cACA,WACA,aACG,QACF,kCAAe,IAAA;;;UC9HD;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;EACA,WAAW;;;;;;wBAOG,WAAW,IAAI,OAAO,MAAM,OAAO,YAAY,gCAAa,IAAA;;;UCvB3D,0BAA0B,KACzC;;EAIA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;wBASc,eACd,MACA,OACA,QACA,aACA,OACA,OACA,cACG,QACF,oCAAiB,IAAA;;;UCjBH,2BAA2B,KAC1C;;EAIA;;EAEA;;EAEA;;EAEA;;;;;EAKA,eAAe;IAAQ;IAAc;QAAuB;;;;;;;;;;wBAoB9C,gBACd,OACA,OACA,aACA,OACA,YACA,cACG,QACF,qCAAkB,IAAA;;;UCrDJ,mBACf,UAAU;EAAe;IAAiB;EAAe;WACjD,KAAK;;EAEb;;;;;EAKA,SAAS;;EAET,SAAS,QAAQ,MAAMC;;EAEvB,UAAU,QAAQ;;EAElB,SAAS,GAAG,GAAG,GAAG;;EAElB,kBAAkB;;EAElB,QAAQ;;;;;;;;;;;;;;;wBAyBM,cACd,UAAU;EAAe;IAAiB;EAAe;KAEzD,SACA,QACA,MACA,OACA,MACA,eACA,UACG,QACF,mBAAmB,qBAAE,IAAA;;;UCtDP,8BAA8B,KAC7C;;EAIA;;;;;;;;;;;wBAYc,mBACd,OACA,cACG,QACF,wCAAqB,IAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["DecorateAnnotation","HostRecords","InkPlugin","DecorateAnnotation","AnnotationSlotProps","AnnotationSlotProps","AnnotationSlotProps","ThreadPopoverSlotProps","SidebarSide","SidebarLayout","SidebarOpen","CardSpec"],"sources":["../src/context.ts","../src/use-readable.ts","../src/hooks/useDocument.ts","../src/hooks/useAnnotations.ts","../src/hooks/useTool.ts","../src/hooks/useToolStyle.ts","../src/hooks/useToolOptions.ts","../src/hooks/useSelection.ts","../src/hooks/useZoom.ts","../src/hooks/useSearch.ts","../src/hooks/usePage.ts","../src/hooks/useHistory.ts","../src/hooks/useEmbedded.ts","../src/hooks/useCommand.ts","../src/hooks/useForm.ts","../src/hooks/useRecords.ts","../src/hooks/useRecordSelection.ts","../src/components/InkRoot.tsx","../src/components/InkViewport.tsx","../src/components/InkPage.tsx","../src/components/InkAnnotation.tsx","../src/components/InkToolbar.tsx","../src/components/InkIcon.tsx","../src/components/InkToolButton.tsx","../src/components/InkCommand.tsx","../src/components/InkToolbarButton.tsx","../src/components/InkToolbarSeparator.tsx","../src/components/history-button.ts","../src/components/InkUndo.tsx","../src/components/InkDownloadButton.tsx","../src/components/InkPrintButton.tsx","../src/components/InkRedo.tsx","../src/components/InkSearchButton.tsx","../src/components/InkFindBar.tsx","../src/components/zoom-button.ts","../src/components/InkZoomIn.tsx","../src/components/InkZoomOut.tsx","../src/components/InkZoomSelect.tsx","../src/components/InkPageInput.tsx","../src/components/InkPageCount.tsx","../src/components/page-button.ts","../src/components/InkPrevPage.tsx","../src/components/InkNextPage.tsx","../src/components/InkBack.tsx","../src/components/InkForward.tsx","../src/components/InkOutline.tsx","../src/components/InkColorMenu.tsx","../src/components/InkShapeMenu.tsx","../src/components/InkSignatureMenu.tsx","../src/components/InkSignatureDialog.tsx","../src/components/InkHighlightMenu.tsx","../src/components/InkTextStyleMenu.tsx","../src/components/InkLineStyleMenu.tsx","../src/components/InkThreadPopover.tsx","../src/components/InkSidebar.tsx","../src/components/InkPanel.tsx","../src/components/InkThumbnail.tsx","../src/components/InkThumbnails.tsx","../src/components/InkRecordList.tsx","../src/components/InkSearchResults.tsx"],"mappings":";;;;;;;;;;UAkCiB,mBAAmB;EAClC;EACA;EACA;EACA;EACA;;;;;;;EAOA,QAAQ;;UAGO;EACf,QAAQ;EACR,UAAU;;EAEV,QAAQ;EACR,sBAAsB;EACtB;;;;;;EAMA,YAAY;;;;;;EAMZ,QAAQ;;EAER,YA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