@folijs/react 0.1.0 → 0.3.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/CHANGELOG.md +56 -0
- package/README.md +3 -2
- package/dist/FoliEditor.d.ts +7 -4
- package/dist/FoliEditor.d.ts.map +1 -1
- package/dist/FoliEditor.js +5 -3
- package/dist/FoliEditor.js.map +1 -1
- package/dist/FoliToolbar.d.ts +4 -2
- package/dist/FoliToolbar.d.ts.map +1 -1
- package/dist/FoliToolbar.js +420 -52
- package/dist/FoliToolbar.js.map +1 -1
- package/dist/editor.d.ts +10 -5
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +3 -2
- package/dist/editor.js.map +1 -1
- package/package.json +3 -3
- package/src/FoliEditor.tsx +12 -7
- package/src/FoliToolbar.tsx +684 -81
- package/src/editor.tsx +10 -5
- package/styles.css +144 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @folijs/react
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8da5b98: Word documents (schema v3): Foli opens a `.docx`, shows it with the file's own styles on real pages, edits it, and saves it back without losing what it does not edit.
|
|
8
|
+
- **Model** (`@folijs/core`, schema v3, Word-shaped): paragraph properties as attributes (style, justification, indentation, spacing, keep and widow rules, page break before, outline level, numbering, tab stops, borders, shading); run properties as marks (character style, bold, italic, underline styles, strike, font, size, color, highlight, shading, vertical alignment, caps); headings as Word's heading styles; lists as Word's numbering (formats, starts, restarts, levels, legal numbering); sections with their own page size, orientation and margins; styles with `basedOn`, document defaults and the theme in the envelope; tracked insertions and deletions and comment anchors, with the comments; content the model does not hold kept as opaque nodes. Effective formatting and list numbers resolved as Word resolves them. Documents saved by 0.1.0 and 0.2.0 load through a migration without content loss.
|
|
9
|
+
- **DOCX** (`@folijs/docx`, new; browser, worker and Node, no third-party dependencies): `importDocx` to schema v3 with a report of what stayed opaque; `exportDocx` rewriting only the parts the editor owns, so a document saved without edits is the original under a canonical comparison, and parts the editor does not own are written back byte for byte. Checked with Word: every corpus document, exported unchanged and edited, opens without a repair prompt.
|
|
10
|
+
- **View** (`@folijs/view`): `renderDocument` lays a document out read-only on Word-like pages (tracked changes as markup or final); `EditorView` edits on the same pages, each section on pages of its own size and margins, and prints one sheet per page with each section's size. A font the machine lacks falls back to a metric-compatible substitute when one is installed (Carlito, Caladea, Liberation…).
|
|
11
|
+
- **React** (`@folijs/react`): `FoliEditor` and `useFoliEditor` take a document of any version and edit and report it as v3; the toolbar has a style box (the document's paragraph styles, headings included), font, size, line spacing and a page break, with Word-numbered bulleted and numbered lists.
|
|
12
|
+
- **Fidelity with Word** (corpus of five Word-written documents; `corpus/README.md`): 106 of 106 paragraphs start on Word's page and 103 on Word's line; pages scored against Word's PDF at 0.544.
|
|
13
|
+
|
|
14
|
+
Known risks, besides those of 0.2.0 (manual IME, screen-reader and real-paste checks not run): headers, footers, footnotes and floating pictures are kept and exported but not shown; tables are shown from their XML but are not editable or split across pages; page setups and section breaks cannot be edited yet; tracked changes are shown but not recorded, accepted or rejected (Phase 9). See [Known limitations](https://github.com/josep-audenis/foli/blob/main/docs/limitations.md).
|
|
15
|
+
|
|
16
|
+
Breaking (pre-1.0 minor): upgrade every app that reads your documents before saving with 0.3.0, since 0.2.0 cannot read version 3.
|
|
17
|
+
- Documents persist as v3: `FoliChange.document`, `getDocument()` and `useFoliEditor` give v3; `createEditor`, `setDocument` and `FoliEditor`'s `initialContent` take a document of any version (`EditorDocument`) and migrate it.
|
|
18
|
+
- Names: schema v3 takes the plain ones (`FoliDocument`, `parseDocument`, `parseContent`, `schema`, `SCHEMA_VERSION` 3). `createDocument(content?, section?)` makes a v3 document: its content is v3 and its second argument a section in twips (0.2.0's took v2 content and settings in millimetres; both still type-check, so a 0.2.0 call such as `createDocument(htmlToDoc(html))` fails in `createEditor` or gives a wrong page size). v2's are `FoliDocumentV2` and `parseContentV2`, and `htmlToDoc` still returns v2 content; v2's `schema`, `parseDocument` and `SCHEMA_VERSION` are no longer exported (`parseDocument` reads v1 and v2 documents and migrates them). `MARK_TYPES`, `HEADING_LEVELS` and the JSON types such as `DocJSON` still describe v2.
|
|
19
|
+
- Marks follow Word: text color is the `color` mark (`value`), and `highlight` takes a Word color name (the palette is Word's); there is no `textColor` mark. Use `setTextColor`, `setHighlight` and `colorAt(state, "textColor" | "highlight")` rather than `toggleMark` or `isMarkActive` with these marks.
|
|
20
|
+
- Links: `parseDocument` keeps any link target a file has (a `.docx` may hold `file:` links, say), where 0.2.0 rejected unsafe ones. Foli's view only makes a link of a safe target (`isSafeHref`); check it too wherever you turn a document's links into HTML yourself. Commands still refuse an unsafe href.
|
|
21
|
+
- Keyboard: Tab types a tab outside lists, as in Word (in 0.2.0 it moved the focus); Escape, then Tab, moves the focus out of the editor.
|
|
22
|
+
- Lists: `toggleList(kind)` and `wrapInList(kind)` take no attributes; `splitListItem`, `sinkListItem`, `liftListItem` and `liftListItemAtStart` are commands, not factories.
|
|
23
|
+
- On a state without a v3 envelope, `setBlockType` and the list and format commands do not apply.
|
|
24
|
+
- Removed: `insertHorizontalRule` (and `commands.insertHorizontalRule`), `listTypeAt`, the ¶, H1–H3 and rule toolbar buttons (the style box replaces them), and the CSS variables `--foli-font-family`, `--foli-font-size`, `--foli-line-height`, `--foli-link-color`, `--foli-marker-color`, `--foli-rule-color` and `--foli-rule-thickness` (the document's styles set them now).
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [8da5b98]
|
|
29
|
+
- @folijs/core@0.3.0
|
|
30
|
+
- @folijs/view@0.3.0
|
|
31
|
+
|
|
32
|
+
## 0.2.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- Rich content (schema v2): bulleted and numbered lists (nested, across pages), links, text color, highlight, alignment and horizontal rules, with toolbar controls and keyboard shortcuts; HTML paste from Word, Google Docs and web pages keeps them. Documents saved by 0.1.0 load unchanged; 0.1.0 cannot read documents saved by 0.2.0.
|
|
37
|
+
|
|
38
|
+
Known risks, besides those of 0.1.0 (manual IME, screen-reader and real-paste checks not run): Word and Google Docs lists are read from hand-written fixtures; long documents made of lists miss the editing-speed targets (Enter near the top, first layout, full re-flow). See [Known limitations](https://github.com/josep-audenis/foli/blob/main/docs/limitations.md).
|
|
39
|
+
|
|
40
|
+
Breaking (pre-1.0 minor): upgrade every app that reads your documents before saving with 0.2.0, since 0.1.0 cannot read version 2. `Transform.split(pos, after)` is now `split(pos, depth, typesAfter)` (`split(pos, 1, [after])`); `StepMap.side` is now `sides`; `MARK_TYPES` now lists every mark, `link`, `textColor` and `highlight` included (for attribute-free toggles use `SIMPLE_MARK_TYPES`); JSON no longer writes attributes equal to their default; `setBlockType` returns false when nothing changes, and `toggleMark` with invalid attributes returns false instead of throwing.
|
|
41
|
+
|
|
42
|
+
- 069f986: Alignment, colors and horizontal rules. Core: `setAlign`, `setTextColor`, `setHighlight` (null removes; at a caret, for the next typed text), `insertHorizontalRule`, `alignAt`, `colorAt`, `Transform.setBlockAttrs`, and `editor.commands` for each; typing over a selected rule replaces it with a paragraph, Enter adds one after it; arrow keys select a rule from the text beside it and leave it again (`arrowAcrossLeaf`). View: Up/Down onto a rule from a textblock's first or last line. React: toolbar alignment group, text color and highlight menu buttons (accessible menus, fixed palette), horizontal rule button; CSS variables `--foli-link-color`, `--foli-marker-color`, `--foli-rule-color`, `--foli-rule-thickness`; a rule is a taller box (easier to click) with its line in the middle.
|
|
43
|
+
- c0290aa: Links. Core: `setLink(href)`, `removeLink`, `insertLink(href, text?)`, `linkAt(state)`, `normalizeHref` (trim, `\` to `/`, spaces percent-encoded, `mailto:` for an email address and `https://` for a host name) and `autolinkHref`; the commands, the dialog and plain-text paste normalize the href, and every entry (including document load and paste) validates it, so unsafe protocols never apply; `editor.commands.setLink` and `removeLink`. Mod-K runs `openLinkEditor`, a request (`linkEditorRequest` transaction metadata, `requestsLinkEditor(tr)`) that a link UI answers. View: Ctrl+click (Cmd+click on Apple platforms) opens a link in a new tab with `noopener,noreferrer`; pasting plain text that is one URL makes a link (over selected text, links it), except paste as plain text; `view.paste(data, autolink?)`. React: a Link toolbar button (pressed in a link) and Mod-K open an accessible link dialog (URL field, Apply, Remove link, Cancel, Escape; an invalid URL is announced and not applied); new CSS variable `--foli-error-color`.
|
|
44
|
+
- ed66e43: List editing. Core: `toggleList`, `wrapInList`, `splitListItem`, `sinkListItem`, `liftListItem`, `liftListItemAtStart`, `listTypeAt` and `listKeymap()` (in every editor): Enter splits an item and leaves the list on an empty one, Tab and Shift+Tab nest and lift items (outside a list Tab is left to the browser), Backspace at an item's start lifts it, Ctrl/Cmd+Shift+7 and +8 toggle numbered and bulleted lists; `editor.commands.toggleList`, `wrapInList`, `indentListItem`, `outdentListItem`. Backspace after a list and Delete before one join into it; Delete at the end of a list item pulls in the next item's text (or what follows the list). Toggling a list off takes the selected items out of every list of that type they are in, leaving unselected items of outer lists; a numbered list split by lifting items goes on counting. Enter over a range across items deletes it, then splits. Each list change is its own undo step. View: Ctrl/Cmd+Shift+digit shortcuts work on every layout; `insertParagraph` and one-character delete inputs (keyboards without keydown) go through the same key bindings. React: toolbar buttons for bulleted and numbered lists (pressed inside one, disabled where no list can be made), decrease and increase indent.
|
|
45
|
+
- a034e62: The view renders document format v2: bulleted and numbered lists (nested, rebuilt on each page they are on, numbering continued across pages, no repeated marker on an item continued from the previous page), horizontal rules (a click selects one; shown with the class `foli-selected-node`, outlined by the default theme), links (`<a href>` that does not navigate on click), text color, highlight and alignment. Copy writes real nested lists.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [cb92eb4]
|
|
50
|
+
- Updated dependencies [069f986]
|
|
51
|
+
- Updated dependencies [c0290aa]
|
|
52
|
+
- Updated dependencies [ed66e43]
|
|
53
|
+
- Updated dependencies [ef157b2]
|
|
54
|
+
- Updated dependencies [f09aefe]
|
|
55
|
+
- Updated dependencies [a034e62]
|
|
56
|
+
- @folijs/view@0.2.0
|
|
57
|
+
- @folijs/core@0.2.0
|
|
58
|
+
|
|
3
59
|
## 0.1.0
|
|
4
60
|
|
|
5
61
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -17,7 +17,8 @@ import { createDocument, parseDocument } from "@folijs/core";
|
|
|
17
17
|
import { type FoliChange, FoliEditor } from "@folijs/react";
|
|
18
18
|
import "@folijs/react/styles.css";
|
|
19
19
|
|
|
20
|
-
// Load: parseDocument validates the saved JSON
|
|
20
|
+
// Load: parseDocument validates the saved JSON, migrating an older document (throws
|
|
21
|
+
// FoliDocumentError when invalid).
|
|
21
22
|
const saved = localStorage.getItem("doc");
|
|
22
23
|
const initial = saved ? parseDocument(JSON.parse(saved)) : createDocument();
|
|
23
24
|
|
|
@@ -42,7 +43,7 @@ Browser-only as written; for server rendering (Next.js) and saving on page close
|
|
|
42
43
|
document appears on hydration.
|
|
43
44
|
|
|
44
45
|
- [Getting started](https://github.com/josep-audenis/foli/blob/main/docs/getting-started.md): loading and saving, read-only, Next.js, your own toolbar
|
|
45
|
-
- [API reference](https://github.com/josep-audenis/foli/blob/main/docs/api.md#
|
|
46
|
+
- [API reference](https://github.com/josep-audenis/foli/blob/main/docs/api.md#folijsreact)
|
|
46
47
|
- [Styling](https://github.com/josep-audenis/foli/blob/main/docs/styling.md): CSS variables, dark theme, print
|
|
47
48
|
- [Known limitations](https://github.com/josep-audenis/foli/blob/main/docs/limitations.md)
|
|
48
49
|
|
package/dist/FoliEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Editor, type FoliDocument, type Plugin, type Transaction } from "@folijs/core";
|
|
1
|
+
import { type Editor, type EditorDocument, type FoliDocument, type Plugin, type Transaction } from "@folijs/core";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
import { type FoliCanvasHandle, type FoliCanvasProps } from "./FoliCanvas.js";
|
|
4
4
|
/**
|
|
@@ -11,13 +11,16 @@ export interface FoliChange {
|
|
|
11
11
|
readonly transactions: readonly Transaction[];
|
|
12
12
|
/**
|
|
13
13
|
* The whole document right after this change, serialized on first read (keep reads out of
|
|
14
|
-
* the hot path of typing: a debounced save reads only the last change's).
|
|
14
|
+
* the hot path of typing: a debounced save reads only the last change's). Schema v3.
|
|
15
15
|
*/
|
|
16
16
|
readonly document: FoliDocument;
|
|
17
17
|
}
|
|
18
18
|
export interface FoliEditorProps extends Omit<FoliCanvasProps, "editor"> {
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Read once on mount: a document of any version (0.1.0 and 0.2.0 documents are migrated to
|
|
21
|
+
* schema v3). To load another document later: `editor.setDocument()` or a new `key`.
|
|
22
|
+
*/
|
|
23
|
+
initialContent?: EditorDocument | undefined;
|
|
21
24
|
/** Read once on mount. */
|
|
22
25
|
plugins?: readonly Plugin[] | undefined;
|
|
23
26
|
/**
|
package/dist/FoliEditor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoliEditor.d.ts","sourceRoot":"","sources":["../src/FoliEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FoliEditor.d.ts","sourceRoot":"","sources":["../src/FoliEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,WAAW,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAc,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAc,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAG1F;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CACjC;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;IACtE;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,0BAA0B;IAC1B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACtD,qEAAqE;IACrE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAClC;AAED,2FAA2F;AAC3F,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,8GAiDrB,CAAC"}
|
package/dist/FoliEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { wordContext, } from "@folijs/core";
|
|
3
3
|
import { forwardRef, useImperativeHandle, useRef } from "react";
|
|
4
4
|
import { FoliEditorProvider, useFoliEditor, useIsomorphicLayoutEffect } from "./editor.js";
|
|
5
5
|
import { FoliCanvas } from "./FoliCanvas.js";
|
|
@@ -22,13 +22,15 @@ export const FoliEditor = forwardRef(function FoliEditor({ initialContent, plugi
|
|
|
22
22
|
if (!listener || !transactions.some((tr) => tr.docChanged))
|
|
23
23
|
return;
|
|
24
24
|
// The state is immutable: keeping it makes a later read give this change's document.
|
|
25
|
-
const { settings } = editor;
|
|
26
25
|
let document;
|
|
27
26
|
listener({
|
|
28
27
|
editor,
|
|
29
28
|
transactions,
|
|
30
29
|
get document() {
|
|
31
|
-
document ??=
|
|
30
|
+
document ??= {
|
|
31
|
+
...structuredClone(wordContext(state)?.envelope),
|
|
32
|
+
content: state.doc.toJSON(),
|
|
33
|
+
};
|
|
32
34
|
return document;
|
|
33
35
|
},
|
|
34
36
|
});
|
package/dist/FoliEditor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoliEditor.js","sourceRoot":"","sources":["../src/FoliEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FoliEditor.js","sourceRoot":"","sources":["../src/FoliEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAML,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAkB,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC3F,OAAO,EAAE,UAAU,EAA+C,MAAM,iBAAiB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA0C/C;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAoC,SAAS,UAAU,CACzF,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,EAC1E,GAAG;IAEH,MAAM,MAAM,GAAG,aAAa,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAEjD,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEhG,yBAAyB,CAAC,GAAG,EAAE;QAC7B,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,yBAAyB,CACvB,GAAG,EAAE,CACH,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;QACvC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC;QACrC,IAAI,CAAC,QAAQ,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC;YAAE,OAAO;QACnE,qFAAqF;QACrF,IAAI,QAAkC,CAAC;QACvC,QAAQ,CAAC;YACP,MAAM;YACN,YAAY;YACZ,IAAI,QAAQ;gBACV,QAAQ,KAAK;oBACX,GAAI,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAmC;oBACnF,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE;iBAC5B,CAAC;gBACF,OAAO,QAAQ,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,EACJ,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO,CACL,MAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,aAC/B,OAAO,IAAI,CACV,KAAC,WAAW,IACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,cAAc,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,EAAE,GAChD,CACH,EACA,QAAQ,EACT,KAAC,UAAU,IAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,KAAM,MAAM,GAAI,IACvC,CACtB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/dist/FoliToolbar.d.ts
CHANGED
|
@@ -17,8 +17,10 @@ export interface FoliToolbarProps {
|
|
|
17
17
|
className?: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Word's formatting controls for an editor: paragraph style, font and size boxes, marks, link (a
|
|
21
|
+
* dialog, also on Mod-K in the document), text color and highlight menus, alignment and line
|
|
22
|
+
* spacing, lists (bulleted, numbered, decrease and increase indent), undo, redo, page break.
|
|
23
|
+
* One tab stop (arrow keys, Home and End move between buttons); toggles carry
|
|
22
24
|
* `aria-pressed`; a button whose command cannot run now is `aria-disabled` (still focusable).
|
|
23
25
|
* Clicks leave the focus and selection in the document.
|
|
24
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoliToolbar.d.ts","sourceRoot":"","sources":["../src/FoliToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FoliToolbar.d.ts","sourceRoot":"","sources":["../src/FoliToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,MAAM,EA8BZ,MAAM,cAAc,CAAC;AActB,MAAM,WAAW,gBAAgB;IAC/B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC1C,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAuVD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EAAE,KAAK,EACb,QAAgB,EAChB,cAAc,EACd,KAAoB,EACpB,SAAS,GACV,EAAE,gBAAgB,+BAsOlB"}
|