@astryxdesign/richtext 0.7.1-canary.4a17409 → 0.7.1-canary.4eaefd4
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 +47 -57
- package/astryx.integration.mjs +1 -1
- package/dist/RichTextEditor.d.ts +5 -10
- package/dist/RichTextEditor.d.ts.map +1 -1
- package/dist/RichTextEditor.js +5 -9
- package/dist/RichTextEditorAutoLinkPlugin.d.ts +3 -3
- package/dist/RichTextEditorAutoLinkPlugin.js +3 -3
- package/dist/RichTextEditorToolbar.d.ts +19 -8
- package/dist/RichTextEditorToolbar.d.ts.map +1 -1
- package/dist/RichTextEditorToolbar.js +16 -9
- package/dist/RichTextView.d.ts +1 -1
- package/dist/RichTextView.js +1 -1
- package/dist/editorTheme.d.ts.map +1 -1
- package/dist/editorTheme.js +15 -4
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/linkUtils.js +1 -1
- package/dist/markdownLink.d.ts.map +1 -1
- package/dist/markdownLink.js +25 -33
- package/dist/markdownListExport.d.ts.map +1 -1
- package/dist/markdownListExport.js +4 -1
- package/dist/markdownSerializers.d.ts.map +1 -1
- package/dist/markdownSerializers.js +2 -3
- package/dist/richtext.css +6 -1
- package/package.json +34 -36
- package/src/RichTextEditor.doc.mjs +3 -3
- package/src/RichTextEditor.test.tsx +36 -2
- package/src/RichTextEditor.tsx +5 -10
- package/src/RichTextEditorAutoLinkPlugin.tsx +3 -3
- package/src/RichTextEditorToolbar.tsx +27 -10
- package/src/RichTextView.tsx +1 -1
- package/src/__tests__/MarkdownParitySandbox.a11y.chromium.spec.ts +40 -23
- package/src/__tests__/MarkdownPlugins.a11y.chromium.spec.ts +2 -2
- package/src/__tests__/MarkdownPluginsImportExport.a11y.chromium.spec.ts +35 -1
- package/src/__tests__/Playground.a11y.chromium.spec.ts +298 -0
- package/src/__tests__/RichTextEditorToolbar.a11y.chromium.spec.ts +1 -1
- package/src/__tests__/RichTextView.a11y.chromium.spec.ts +1 -1
- package/src/__tests__/TableCellSelection.a11y.chromium.spec.ts +379 -0
- package/src/editorTheme.ts +53 -3
- package/src/index.ts +9 -11
- package/src/linkUtils.ts +1 -1
- package/src/markdownAngleDestinations.test.ts +29 -0
- package/src/markdownLink.ts +29 -35
- package/src/markdownListExport.ts +6 -1
- package/src/markdownSerializers.ts +2 -3
- package/src/publicSurface.test.ts +42 -0
package/README.md
CHANGED
|
@@ -12,74 +12,64 @@ import {RichTextEditor, RichTextView} from '@astryxdesign/richtext';
|
|
|
12
12
|
|
|
13
13
|
The editor is deliberately minimal and extensible: pass `nodes` and `plugins` to
|
|
14
14
|
layer richer behaviour (toolbars, mentions, hover cards) on top without forking.
|
|
15
|
-
`RichTextEditorToolbar` is a composable formatting toolbar
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`
|
|
22
|
-
|
|
15
|
+
`RichTextEditorToolbar` is a composable formatting toolbar for the editor's
|
|
16
|
+
`toolbar` slot, and `markdownToEditorStateJSON` / `editorStateJSONToMarkdown`
|
|
17
|
+
convert Markdown to and from serialized editor state headlessly (no mounted
|
|
18
|
+
editor required). The server-safe serializers are also available from
|
|
19
|
+
`@astryxdesign/richtext/markdown`.
|
|
20
|
+
|
|
21
|
+
`RichTextView` and core `Markdown` render the same document the same way, and
|
|
22
|
+
Markdown imported into the editor exports back byte for byte when nothing was
|
|
23
|
+
edited.
|
|
24
|
+
|
|
25
|
+
## Built on Lexical
|
|
26
|
+
|
|
27
|
+
RichText is built on [Lexical](https://lexical.dev) and does not hide it:
|
|
28
|
+
`nodes` and `transformers` take Lexical types, `plugins` takes Lexical React
|
|
29
|
+
plugins, and `onChange(editorState, editor)` and the editor ref's
|
|
30
|
+
`getEditorState()` report Lexical types, so you extend the editor with Lexical
|
|
31
|
+
directly. The value you store is serialized Lexical editor state;
|
|
32
|
+
`markdownToEditorStateJSON` and `editorStateJSONToMarkdown` convert it to and
|
|
33
|
+
from Markdown.
|
|
34
|
+
|
|
35
|
+
RichText supports one Lexical minor at a time, named by its `lexical` and
|
|
36
|
+
`@lexical/*` peer ranges. Those are **optional** peer dependencies, so your
|
|
37
|
+
package manager does not add them: install them at that minor alongside
|
|
38
|
+
richtext. See the RFC:
|
|
23
39
|
[facebook/astryx#3899](https://github.com/facebook/astryx/issues/3899).
|
|
24
40
|
|
|
25
|
-
|
|
26
|
-
(`latest`) release yet.
|
|
41
|
+
## Install
|
|
27
42
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
> rollout.
|
|
32
|
-
|
|
33
|
-
## Status
|
|
43
|
+
```bash
|
|
44
|
+
npm install @astryxdesign/richtext @astryxdesign/core
|
|
45
|
+
```
|
|
34
46
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
Then install every `lexical` and `@lexical/*` package listed in richtext's
|
|
48
|
+
`peerDependencies`, at the range shown there (`npm view @astryxdesign/richtext
|
|
49
|
+
peerDependencies` prints them).
|
|
38
50
|
|
|
39
|
-
|
|
51
|
+
`@astryxdesign/richtext` is released together with `@astryxdesign/core` at the
|
|
52
|
+
same version; install matching versions. `lexical` and the `@lexical/*` packages
|
|
53
|
+
are optional peer dependencies, so a project that only uses the headless
|
|
54
|
+
Markdown serializers installs just those.
|
|
40
55
|
|
|
41
|
-
|
|
56
|
+
RichText ships prebuilt CSS and JS, like `@astryxdesign/core`: import its
|
|
57
|
+
stylesheet beside Core's and your theme's, with no StyleX or Babel setup. Never
|
|
58
|
+
compile richtext's source.
|
|
42
59
|
|
|
43
60
|
```tsx
|
|
44
|
-
import
|
|
61
|
+
import '@astryxdesign/core/reset.css';
|
|
45
62
|
import '@astryxdesign/core/astryx.css';
|
|
63
|
+
import '@astryxdesign/theme-neutral/theme.css'; // or your theme's CSS
|
|
46
64
|
import '@astryxdesign/richtext/richtext.css';
|
|
47
65
|
```
|
|
48
66
|
|
|
49
|
-
|
|
50
|
-
(`
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
`richtext.css` emits into `@layer astryx-base`, the layer `astryx.css` opens,
|
|
68
|
+
so your theme's token overrides (`@layer astryx-theme`) win over it, as long
|
|
69
|
+
as Core's `reset.css` (or a `@layer reset, astryx-base, astryx-theme;` line,
|
|
70
|
+
if your app has its own reset) loads first.
|
|
53
71
|
|
|
54
|
-
|
|
55
|
-
you must request that tag explicitly. There is no `latest` version to install.
|
|
72
|
+
## Examples
|
|
56
73
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# plus the optional lexical peers you use:
|
|
60
|
-
npm install lexical @lexical/react @lexical/markdown @lexical/rich-text
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
> Canary builds track the latest commit on `main` (`0.x.y-canary.<sha>`). They
|
|
64
|
-
> can break between any two versions — pin an exact version if you need
|
|
65
|
-
> stability.
|
|
66
|
-
|
|
67
|
-
## Why no stable release?
|
|
68
|
-
|
|
69
|
-
`package.json` keeps `"private": true` plus an `"astryx": { "canaryOnly": true }`
|
|
70
|
-
marker. The release workflow's stable (`latest`) job skips both private and
|
|
71
|
-
`canaryOnly` packages, while the canary job strips `private` in its ephemeral CI
|
|
72
|
-
checkout only (never in git) to publish the `@canary` tag. The committed
|
|
73
|
-
`private: true` is npm's hard guarantee that no stable publish can ever happen —
|
|
74
|
-
**do not remove it.**
|
|
75
|
-
|
|
76
|
-
## Publishing publicly (when the editor/view are ready)
|
|
77
|
-
|
|
78
|
-
When maintainers are ready to promote richtext to a stable public release:
|
|
79
|
-
|
|
80
|
-
1. Remove `"private": true` **and** the `"astryx": { "canaryOnly": true }`
|
|
81
|
-
marker from `package.json`.
|
|
82
|
-
2. Add a changeset (`pnpm changeset`) selecting `@astryxdesign/richtext` so the
|
|
83
|
-
release workflow versions and publishes it to the `latest` dist-tag.
|
|
84
|
-
3. The stable (`latest`) release job (`.github/workflows/release.yml`) will then
|
|
85
|
-
include richtext on the next release.
|
|
74
|
+
Interactive examples live in Storybook under **RichText/RichTextEditor**
|
|
75
|
+
(`apps/storybook/stories/RichTextEditor.stories.tsx`).
|
package/astryx.integration.mjs
CHANGED
package/dist/RichTextEditor.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* top toolbar slot, configurable editable-surface minimum height, and distinct
|
|
8
8
|
* read-only and disabled states that follow prop changes, RichTextEditorProps,
|
|
9
9
|
* RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize
|
|
10
|
-
* @position
|
|
10
|
+
* @position @astryxdesign/richtext implementation; consumed by the package index.ts and
|
|
11
11
|
* re-exported from @astryxdesign/richtext. Tested by RichTextEditor.test.tsx.
|
|
12
12
|
*
|
|
13
13
|
* SYNC: When modified, update these files to stay in sync:
|
|
@@ -16,11 +16,8 @@
|
|
|
16
16
|
* - /packages/richtext/src/index.ts (exports if types change)
|
|
17
17
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (storybook stories)
|
|
18
18
|
*
|
|
19
|
-
* NOTE:
|
|
20
|
-
*
|
|
21
|
-
* OSS Lexical editor RFC; the goal is graduation to @astryxdesign/core after the
|
|
22
|
-
* Component Specification Protocol. `lexical` and `@lexical/*` are OPTIONAL peer
|
|
23
|
-
* dependencies — install them to use this component.
|
|
19
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them to
|
|
20
|
+
* use this component.
|
|
24
21
|
*/
|
|
25
22
|
import { type ReactNode, type Ref } from 'react';
|
|
26
23
|
import { type FieldStatusVariant } from '@astryxdesign/core/Field';
|
|
@@ -28,7 +25,6 @@ import type { BaseProps } from '@astryxdesign/core';
|
|
|
28
25
|
import { type SizeValue } from '@astryxdesign/core/utils';
|
|
29
26
|
import type { RichTextMarkdownExtension } from './markdownExtensions';
|
|
30
27
|
import { type Transformer } from '@lexical/markdown';
|
|
31
|
-
export type { Transformer } from '@lexical/markdown';
|
|
32
28
|
import { type EditorState, type Klass, type LexicalEditor, type LexicalNode } from 'lexical';
|
|
33
29
|
export type RichTextEditorStatusType = 'warning' | 'error' | 'success';
|
|
34
30
|
export type RichTextEditorSize = 'sm' | 'md' | 'lg';
|
|
@@ -244,9 +240,8 @@ export interface RichTextEditorProps extends Omit<BaseProps, 'onChange' | 'defau
|
|
|
244
240
|
}
|
|
245
241
|
/**
|
|
246
242
|
* A WYSIWYG rich-text editor built on Lexical, styled with Astryx design
|
|
247
|
-
* tokens.
|
|
248
|
-
*
|
|
249
|
-
* component.
|
|
243
|
+
* tokens. Ships from `@astryxdesign/richtext`. `lexical` and `@lexical/*` are
|
|
244
|
+
* optional peer dependencies — install them to use this component.
|
|
250
245
|
*
|
|
251
246
|
* The editor is intentionally minimal and extensible: pass `toolbar`, `nodes`,
|
|
252
247
|
* and `plugins` to layer richer behaviour (formatting, mentions, hover cards)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../src/RichTextEditor.tsx"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../src/RichTextEditor.tsx"],"names":[],"mappings":"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"}
|
package/dist/RichTextEditor.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* top toolbar slot, configurable editable-surface minimum height, and distinct
|
|
12
12
|
* read-only and disabled states that follow prop changes, RichTextEditorProps,
|
|
13
13
|
* RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize
|
|
14
|
-
* @position
|
|
14
|
+
* @position @astryxdesign/richtext implementation; consumed by the package index.ts and
|
|
15
15
|
* re-exported from @astryxdesign/richtext. Tested by RichTextEditor.test.tsx.
|
|
16
16
|
*
|
|
17
17
|
* SYNC: When modified, update these files to stay in sync:
|
|
@@ -20,11 +20,8 @@
|
|
|
20
20
|
* - /packages/richtext/src/index.ts (exports if types change)
|
|
21
21
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (storybook stories)
|
|
22
22
|
*
|
|
23
|
-
* NOTE:
|
|
24
|
-
*
|
|
25
|
-
* OSS Lexical editor RFC; the goal is graduation to @astryxdesign/core after the
|
|
26
|
-
* Component Specification Protocol. `lexical` and `@lexical/*` are OPTIONAL peer
|
|
27
|
-
* dependencies — install them to use this component.
|
|
23
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them to
|
|
24
|
+
* use this component.
|
|
28
25
|
*/
|
|
29
26
|
import { useEffect, useId, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
30
27
|
import * as stylex from '@stylexjs/stylex';
|
|
@@ -144,9 +141,8 @@ const COUNTER_WARNING_THRESHOLD = 0.8;
|
|
|
144
141
|
|
|
145
142
|
/**
|
|
146
143
|
* A WYSIWYG rich-text editor built on Lexical, styled with Astryx design
|
|
147
|
-
* tokens.
|
|
148
|
-
*
|
|
149
|
-
* component.
|
|
144
|
+
* tokens. Ships from `@astryxdesign/richtext`. `lexical` and `@lexical/*` are
|
|
145
|
+
* optional peer dependencies — install them to use this component.
|
|
150
146
|
*
|
|
151
147
|
* The editor is intentionally minimal and extensible: pass `toolbar`, `nodes`,
|
|
152
148
|
* and `plugins` to layer richer behaviour (formatting, mentions, hover cards)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `linkUtils`.
|
|
6
6
|
* @output Exports `RichTextEditorAutoLinkPlugin` and its props type, plus the
|
|
7
7
|
* default `DEFAULT_LINK_MATCHERS`.
|
|
8
|
-
* @position
|
|
8
|
+
* @position @astryxdesign/richtext. Drop into RichTextEditor's `plugins` slot to
|
|
9
9
|
* auto-linkify URLs and emails as they are typed or pasted. Requires
|
|
10
10
|
* `AutoLinkNode` to be registered (it is, by default).
|
|
11
11
|
*
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* - /packages/richtext/src/RichTextEditor.test.tsx (tests)
|
|
16
16
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (story)
|
|
17
17
|
*
|
|
18
|
-
* NOTE:
|
|
19
|
-
*
|
|
18
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them
|
|
19
|
+
* to use this.
|
|
20
20
|
*
|
|
21
21
|
* COMPATIBILITY: the plugin is deliberately a thin pass-through so an
|
|
22
22
|
* application with its own link conventions can adopt it without forking. It
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* `linkUtils`.
|
|
10
10
|
* @output Exports `RichTextEditorAutoLinkPlugin` and its props type, plus the
|
|
11
11
|
* default `DEFAULT_LINK_MATCHERS`.
|
|
12
|
-
* @position
|
|
12
|
+
* @position @astryxdesign/richtext. Drop into RichTextEditor's `plugins` slot to
|
|
13
13
|
* auto-linkify URLs and emails as they are typed or pasted. Requires
|
|
14
14
|
* `AutoLinkNode` to be registered (it is, by default).
|
|
15
15
|
*
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* - /packages/richtext/src/RichTextEditor.test.tsx (tests)
|
|
20
20
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (story)
|
|
21
21
|
*
|
|
22
|
-
* NOTE:
|
|
23
|
-
*
|
|
22
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them
|
|
23
|
+
* to use this.
|
|
24
24
|
*
|
|
25
25
|
* COMPATIBILITY: the plugin is deliberately a thin pass-through so an
|
|
26
26
|
* application with its own link conventions can adopt it without forking. It
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
* @output Exports RichTextEditorToolbar (a compact formatting toolbar with a
|
|
8
8
|
* RichText-owned 4px control gutter and horizontally scrollable action row)
|
|
9
9
|
* and RichTextEditorToolbarProps.
|
|
10
|
-
* @position
|
|
10
|
+
* @position @astryxdesign/richtext. Drop into RichTextEditor's `toolbar` slot to
|
|
11
11
|
* add a flush top formatting toolbar. Themed via Astryx Toolbar, Selector,
|
|
12
|
-
* IconButton, and ToggleButton, so it inherits the active theme.
|
|
12
|
+
* IconButton, and ToggleButton, so it inherits the active theme. Base props
|
|
13
|
+
* pass through to the Astryx Toolbar exactly as Toolbar places them
|
|
14
|
+
* (spec:AST-061/DEC-8).
|
|
13
15
|
*
|
|
14
16
|
* SYNC: When modified, update:
|
|
15
17
|
* - /packages/richtext/src/index.ts (exports)
|
|
@@ -17,8 +19,8 @@
|
|
|
17
19
|
* - /packages/richtext/src/RichTextEditor.test.tsx (tests)
|
|
18
20
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (WithToolbar story)
|
|
19
21
|
*
|
|
20
|
-
* NOTE:
|
|
21
|
-
*
|
|
22
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them
|
|
23
|
+
* to use this.
|
|
22
24
|
* Behavior mirrors the Lexical playground toolbar (selection sync + format
|
|
23
25
|
* commands); the UI is built from Astryx primitives so it matches the theme.
|
|
24
26
|
*
|
|
@@ -30,7 +32,8 @@
|
|
|
30
32
|
* Undo and redo point backward and forward in time, so they mirror under RTL
|
|
31
33
|
* whichever glyph draws them.
|
|
32
34
|
*/
|
|
33
|
-
import { type ReactNode } from 'react';
|
|
35
|
+
import { type ReactNode, type Ref } from 'react';
|
|
36
|
+
import type { BaseProps } from '@astryxdesign/core';
|
|
34
37
|
/**
|
|
35
38
|
* Stable icon-registry keys for the toolbar's controls. A theme overrides any
|
|
36
39
|
* of these by key: `defineTheme({icons: {'richtext:bold': <MyIcon />}})`.
|
|
@@ -54,7 +57,15 @@ export declare const RICHTEXT_ICON_KEYS: {
|
|
|
54
57
|
readonly undo: "richtext:undo";
|
|
55
58
|
readonly redo: "richtext:redo";
|
|
56
59
|
};
|
|
57
|
-
export interface RichTextEditorToolbarProps {
|
|
60
|
+
export interface RichTextEditorToolbarProps extends BaseProps<HTMLDivElement> {
|
|
61
|
+
/**
|
|
62
|
+
* Ref to the toolbar's root element. Base props pass through to the
|
|
63
|
+
* underlying Astryx `Toolbar`: the ref, `className`, `style`, and `xstyle`
|
|
64
|
+
* reach its root, and `data-*`, other `aria-*` attributes, and DOM
|
|
65
|
+
* handlers reach the `role="toolbar"` element inside it. The toolbar names
|
|
66
|
+
* itself, so pass `label` rather than `aria-label`.
|
|
67
|
+
*/
|
|
68
|
+
ref?: Ref<HTMLDivElement>;
|
|
58
69
|
/**
|
|
59
70
|
* Accessible label for the toolbar element.
|
|
60
71
|
* @default 'Text formatting', translated for the active locale
|
|
@@ -98,7 +109,7 @@ export interface RichTextEditorToolbarProps {
|
|
|
98
109
|
* create same-tab links.
|
|
99
110
|
* @default true
|
|
100
111
|
*/
|
|
101
|
-
|
|
112
|
+
hasNewTabLinks?: boolean;
|
|
102
113
|
/**
|
|
103
114
|
* Extra items rendered at the end of the toolbar (after a divider). Use this
|
|
104
115
|
* to compose product-specific controls (e.g. mentions, AI) alongside the
|
|
@@ -126,7 +137,7 @@ export interface RichTextEditorToolbarProps {
|
|
|
126
137
|
* />
|
|
127
138
|
* ```
|
|
128
139
|
*/
|
|
129
|
-
export declare function RichTextEditorToolbar({ label: labelFromProps, headingLevels, size, hasLink, promptForUrl,
|
|
140
|
+
export declare function RichTextEditorToolbar({ label: labelFromProps, headingLevels, size, hasLink, promptForUrl, hasNewTabLinks, endContent, xstyle, ref, ...rest }: RichTextEditorToolbarProps): import("react").JSX.Element;
|
|
130
141
|
export declare namespace RichTextEditorToolbar {
|
|
131
142
|
var displayName: string;
|
|
132
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditorToolbar.d.ts","sourceRoot":"","sources":["../src/RichTextEditorToolbar.tsx"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"RichTextEditorToolbar.d.ts","sourceRoot":"","sources":["../src/RichTextEditorToolbar.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAmBf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AA8HlD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAgBrB,CAAC;AAmPX,MAAM,WAAW,0BAA2B,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC3E;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAClD;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EAAE,cAAc,EACrB,aAAkC,EAClC,IAAW,EACX,OAAc,EACd,YAAY,EACZ,cAAqB,EACrB,UAAU,EACV,MAAM,EACN,GAAG,EACH,GAAG,IAAI,EACR,EAAE,0BAA0B,+BA0gB5B;yBArhBe,qBAAqB"}
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
* @output Exports RichTextEditorToolbar (a compact formatting toolbar with a
|
|
12
12
|
* RichText-owned 4px control gutter and horizontally scrollable action row)
|
|
13
13
|
* and RichTextEditorToolbarProps.
|
|
14
|
-
* @position
|
|
14
|
+
* @position @astryxdesign/richtext. Drop into RichTextEditor's `toolbar` slot to
|
|
15
15
|
* add a flush top formatting toolbar. Themed via Astryx Toolbar, Selector,
|
|
16
|
-
* IconButton, and ToggleButton, so it inherits the active theme.
|
|
16
|
+
* IconButton, and ToggleButton, so it inherits the active theme. Base props
|
|
17
|
+
* pass through to the Astryx Toolbar exactly as Toolbar places them
|
|
18
|
+
* (spec:AST-061/DEC-8).
|
|
17
19
|
*
|
|
18
20
|
* SYNC: When modified, update:
|
|
19
21
|
* - /packages/richtext/src/index.ts (exports)
|
|
@@ -21,8 +23,8 @@
|
|
|
21
23
|
* - /packages/richtext/src/RichTextEditor.test.tsx (tests)
|
|
22
24
|
* - /apps/storybook/stories/RichTextEditor.stories.tsx (WithToolbar story)
|
|
23
25
|
*
|
|
24
|
-
* NOTE:
|
|
25
|
-
*
|
|
26
|
+
* NOTE: `lexical` and `@lexical/*` are OPTIONAL peer dependencies — install them
|
|
27
|
+
* to use this.
|
|
26
28
|
* Behavior mirrors the Lexical playground toolbar (selection sync + format
|
|
27
29
|
* commands); the UI is built from Astryx primitives so it matches the theme.
|
|
28
30
|
*
|
|
@@ -416,8 +418,11 @@ export function RichTextEditorToolbar({
|
|
|
416
418
|
size = 'sm',
|
|
417
419
|
hasLink = true,
|
|
418
420
|
promptForUrl,
|
|
419
|
-
|
|
420
|
-
endContent
|
|
421
|
+
hasNewTabLinks = true,
|
|
422
|
+
endContent,
|
|
423
|
+
xstyle,
|
|
424
|
+
ref,
|
|
425
|
+
...rest
|
|
421
426
|
}) {
|
|
422
427
|
const [editor] = useLexicalComposerContext();
|
|
423
428
|
const themeName = useThemeName();
|
|
@@ -537,7 +542,7 @@ export function RichTextEditorToolbar({
|
|
|
537
542
|
return false;
|
|
538
543
|
}
|
|
539
544
|
restoreLinkSelection();
|
|
540
|
-
const linkAttributes =
|
|
545
|
+
const linkAttributes = hasNewTabLinks ? {
|
|
541
546
|
target: '_blank',
|
|
542
547
|
rel: 'noopener noreferrer'
|
|
543
548
|
} : {};
|
|
@@ -556,7 +561,7 @@ export function RichTextEditorToolbar({
|
|
|
556
561
|
});
|
|
557
562
|
}
|
|
558
563
|
return true;
|
|
559
|
-
}, [editor,
|
|
564
|
+
}, [editor, hasNewTabLinks, restoreLinkSelection]);
|
|
560
565
|
const toggleLink = useCallback(() => {
|
|
561
566
|
if (!editor.isEditable()) {
|
|
562
567
|
return;
|
|
@@ -695,9 +700,11 @@ export function RichTextEditorToolbar({
|
|
|
695
700
|
}];
|
|
696
701
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
697
702
|
children: [/*#__PURE__*/_jsx(Toolbar, {
|
|
703
|
+
...rest,
|
|
704
|
+
ref: ref,
|
|
698
705
|
label: label,
|
|
699
706
|
size: size,
|
|
700
|
-
xstyle: toolbarScrollStyles.compactToolbar,
|
|
707
|
+
xstyle: [toolbarScrollStyles.compactToolbar, xstyle],
|
|
701
708
|
startContent: /*#__PURE__*/_jsxs(HStack, {
|
|
702
709
|
gap: 1,
|
|
703
710
|
role: "group",
|
package/dist/RichTextView.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @output Exports RichTextView component and RichTextViewProps
|
|
7
7
|
* @position Read-only renderer for serialized Lexical editor state, exposed to
|
|
8
8
|
* assistive technology as document content rather than a form field;
|
|
9
|
-
*
|
|
9
|
+
* exported from @astryxdesign/richtext
|
|
10
10
|
*
|
|
11
11
|
* SYNC: When modified, update these files to stay in sync:
|
|
12
12
|
* - /packages/richtext/src/RichTextEditor.test.tsx
|
package/dist/RichTextView.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @output Exports RichTextView component and RichTextViewProps
|
|
11
11
|
* @position Read-only renderer for serialized Lexical editor state, exposed to
|
|
12
12
|
* assistive technology as document content rather than a form field;
|
|
13
|
-
*
|
|
13
|
+
* exported from @astryxdesign/richtext
|
|
14
14
|
*
|
|
15
15
|
* SYNC: When modified, update these files to stay in sync:
|
|
16
16
|
* - /packages/richtext/src/RichTextEditor.test.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorTheme.d.ts","sourceRoot":"","sources":["../src/editorTheme.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"editorTheme.d.ts","sourceRoot":"","sources":["../src/editorTheme.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAwahD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,kBAAkB,CAgEtD"}
|
package/dist/editorTheme.js
CHANGED
|
@@ -48,8 +48,8 @@ const editorTheme = {
|
|
|
48
48
|
$$css: true
|
|
49
49
|
},
|
|
50
50
|
paragraph: {
|
|
51
|
-
keoZOQ: "x1ftnraw xnhvf09",
|
|
52
|
-
k1K539: "x18pneqc xfo59cc",
|
|
51
|
+
keoZOQ: "x1ftnraw xnhvf09 xe66n16",
|
|
52
|
+
k1K539: "x18pneqc xfo59cc x1vugyqv",
|
|
53
53
|
ks0D6T: "x7ep2pv",
|
|
54
54
|
k63SB2: "x1pd3egz",
|
|
55
55
|
kMwMTN: "x1heor9g",
|
|
@@ -201,6 +201,13 @@ const editorTheme = {
|
|
|
201
201
|
kMwMTN: "xv1l7n4",
|
|
202
202
|
$$css: true
|
|
203
203
|
},
|
|
204
|
+
tableCellSelected: {
|
|
205
|
+
kMeerF: "xak0ai5",
|
|
206
|
+
k3XXqK: "x9ssot5",
|
|
207
|
+
kjBf7l: "x19bwoy8",
|
|
208
|
+
kInvED: "x1c097ug",
|
|
209
|
+
$$css: true
|
|
210
|
+
},
|
|
204
211
|
code: {
|
|
205
212
|
k1xSpc: "x1lliihq",
|
|
206
213
|
kMv6JI: "x9m5x89",
|
|
@@ -221,7 +228,8 @@ const editorTheme = {
|
|
|
221
228
|
keoZOQ: "x1w2a574 xnhvf09",
|
|
222
229
|
k1K539: "x1u2y747 xfo59cc",
|
|
223
230
|
khDVqt: "x126k92a",
|
|
224
|
-
|
|
231
|
+
kTgw9: "x1yn0g08",
|
|
232
|
+
kHjlTd: "x1mzt3pk",
|
|
225
233
|
$$css: true
|
|
226
234
|
}
|
|
227
235
|
};
|
|
@@ -286,7 +294,7 @@ export function sharedEditorTheme() {
|
|
|
286
294
|
// The plain class lets CodeSyntaxPlugin's highlight rules find code blocks.
|
|
287
295
|
code: `${block(editorTheme.code)} ${CODE_SYNTAX_CLASS}`,
|
|
288
296
|
hr: {
|
|
289
|
-
className: "xc342km x11xkdxz x13fuv20 x1pc3f07 x13xmvwt xnhvf09 x1qaki06 xfo59cc"
|
|
297
|
+
className: "xc342km x11xkdxz x13fuv20 x1pc3f07 x13xmvwt xnhvf09 xe66n16 x1qaki06 xfo59cc x1vugyqv"
|
|
290
298
|
}.className,
|
|
291
299
|
hrSelected: {
|
|
292
300
|
className: "xak0ai5 x9ssot5 x19bwoy8 x1eqjuhu"
|
|
@@ -301,6 +309,9 @@ export function sharedEditorTheme() {
|
|
|
301
309
|
tableRow: block(editorTheme.tableRow),
|
|
302
310
|
tableCell: block(editorTheme.tableCell),
|
|
303
311
|
tableCellHeader: block(editorTheme.tableCellHeader),
|
|
312
|
+
// Added on top of the cell's own class by Lexical while the cell is in a
|
|
313
|
+
// table selection, so it carries no direction of its own.
|
|
314
|
+
tableCellSelected: className(editorTheme.tableCellSelected),
|
|
304
315
|
tableScrollableWrapper: block(editorTheme.tableScrollableWrapper)
|
|
305
316
|
};
|
|
306
317
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,19 @@
|
|
|
6
6
|
* Lexical-based rich text editor and viewer, promoted out of
|
|
7
7
|
* @astryxdesign/lab so it can be canaried independently.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Exports only what a caller builds with (spec:AST-061/DEC-8): the generated
|
|
10
|
+
* editor theme classes and the autolink regular expressions stay internal,
|
|
11
|
+
* and Lexical's `Transformer` type comes from `@lexical/markdown`.
|
|
12
|
+
* `publicSurface.test.ts` holds the runtime list.
|
|
13
|
+
*
|
|
14
|
+
* SYNC: When modified, update this header, /packages/richtext/README.md,
|
|
15
|
+
* /packages/richtext/src/publicSurface.test.ts, and the editor component doc
|
|
16
|
+
* files.
|
|
11
17
|
*/
|
|
12
18
|
export { RichTextEditor } from './RichTextEditor';
|
|
13
|
-
export type { RichTextEditorProps, RichTextEditorRef, RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize,
|
|
19
|
+
export type { RichTextEditorProps, RichTextEditorRef, RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize, } from './RichTextEditor';
|
|
14
20
|
export { RichTextView } from './RichTextView';
|
|
15
21
|
export type { RichTextViewProps } from './RichTextView';
|
|
16
|
-
export { sharedEditorTheme } from './editorTheme';
|
|
17
22
|
export { markdownToEditorStateJSON, editorStateJSONToMarkdown, } from './markdownSerializers';
|
|
18
23
|
export type { MarkdownSerializerOptions } from './markdownSerializers';
|
|
19
24
|
export { createRichTextExtension, RichTextExtensionError, } from './markdownExtensions';
|
|
@@ -22,5 +27,5 @@ export { RichTextEditorToolbar, RICHTEXT_ICON_KEYS, } from './RichTextEditorTool
|
|
|
22
27
|
export type { RichTextEditorToolbarProps } from './RichTextEditorToolbar';
|
|
23
28
|
export { RichTextEditorAutoLinkPlugin, DEFAULT_LINK_MATCHERS, NEW_TAB_LINK_ATTRIBUTES, } from './RichTextEditorAutoLinkPlugin';
|
|
24
29
|
export type { RichTextEditorAutoLinkPluginProps } from './RichTextEditorAutoLinkPlugin';
|
|
25
|
-
export { sanitizeUrl, validateUrl
|
|
30
|
+
export { sanitizeUrl, validateUrl } from './linkUtils';
|
|
26
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAC,yBAAyB,EAAC,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAExE,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAC,iCAAiC,EAAC,MAAM,gCAAgC,CAAC;AAEtF,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
* Lexical-based rich text editor and viewer, promoted out of
|
|
11
11
|
* @astryxdesign/lab so it can be canaried independently.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Exports only what a caller builds with (spec:AST-061/DEC-8): the generated
|
|
14
|
+
* editor theme classes and the autolink regular expressions stay internal,
|
|
15
|
+
* and Lexical's `Transformer` type comes from `@lexical/markdown`.
|
|
16
|
+
* `publicSurface.test.ts` holds the runtime list.
|
|
17
|
+
*
|
|
18
|
+
* SYNC: When modified, update this header, /packages/richtext/README.md,
|
|
19
|
+
* /packages/richtext/src/publicSurface.test.ts, and the editor component doc
|
|
20
|
+
* files.
|
|
15
21
|
*/
|
|
16
22
|
export { RichTextEditor } from "./RichTextEditor.js";
|
|
17
23
|
export { RichTextView } from "./RichTextView.js";
|
|
18
|
-
export { sharedEditorTheme } from "./editorTheme.js";
|
|
19
24
|
export { markdownToEditorStateJSON, editorStateJSONToMarkdown } from "./markdownSerializers.js";
|
|
20
25
|
export { createRichTextExtension, RichTextExtensionError } from "./markdownExtensions.js";
|
|
21
26
|
export { RichTextEditorToolbar, RICHTEXT_ICON_KEYS } from "./RichTextEditorToolbar.js";
|
|
22
27
|
export { RichTextEditorAutoLinkPlugin, DEFAULT_LINK_MATCHERS, NEW_TAB_LINK_ATTRIBUTES } from "./RichTextEditorAutoLinkPlugin.js";
|
|
23
|
-
export { sanitizeUrl, validateUrl
|
|
28
|
+
export { sanitizeUrl, validateUrl } from "./linkUtils.js";
|
package/dist/linkUtils.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @input Uses only the DOM URL constructor (guarded via try/catch for SSR/edge).
|
|
6
6
|
* @output Exports `sanitizeUrl`, `validateUrl`, and the URL/email matcher regexes
|
|
7
7
|
* used by the AutoLink wiring.
|
|
8
|
-
* @position
|
|
8
|
+
* @position @astryxdesign/richtext helper shared by RichTextEditorToolbar (link
|
|
9
9
|
* button) and the AutoLink matchers in RichTextEditor. Kept dependency-free so
|
|
10
10
|
* both can import it without pulling in extra `@lexical/*` surface.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownLink.d.ts","sourceRoot":"","sources":["../src/markdownLink.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdownLink.d.ts","sourceRoot":"","sources":["../src/markdownLink.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAO,KAAK,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AA6BlE,gEAAgE;AAChE,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUvD;AAED,eAAO,MAAM,yBAAyB,EAAE,oBAoBvC,CAAC"}
|