@astryxdesign/richtext 0.7.1-canary.ff40b78 → 0.7.1
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 +23 -0
- package/README.md +47 -57
- package/astryx.integration.mjs +1 -1
- package/dist/RichTextEditor.d.ts +16 -12
- package/dist/RichTextEditor.d.ts.map +1 -1
- package/dist/RichTextEditor.js +40 -45
- 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 +54 -54
- 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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
1
|
# @astryxdesign/richtext
|
|
2
2
|
|
|
3
|
+
# 0.7.1
|
|
4
|
+
|
|
5
|
+
#### New Features
|
|
6
|
+
|
|
7
|
+
- `@astryxdesign/richtext` is now a stable package, released together with `@astryxdesign/core` at the same version. Install it without the `@canary` tag: `npm install @astryxdesign/richtext`. It provides `RichTextEditor`, `RichTextView`, `RichTextEditorToolbar`, `RichTextEditorAutoLinkPlugin`, the headless Markdown serializers (also at `@astryxdesign/richtext/markdown`), and Markdown plugin support through `createRichTextExtension`. `RichTextView` and core `Markdown` render the same document the same way, and Markdown that is imported and exported without edits comes back byte for byte. `lexical` and the `@lexical/*` packages remain optional peer dependencies. (#7224)
|
|
8
|
+
|
|
9
|
+
#### Fixes
|
|
10
|
+
|
|
11
|
+
- `@astryxdesign/richtext` (and the Lab and Charts packages) now declare their stylesheet as a side effect, so a bundler that removes side-effect-free imports keeps `import '@astryxdesign/richtext/richtext.css'` instead of dropping it and leaving the editor unstyled. JavaScript modules stay tree-shakable. (#7586)
|
|
12
|
+
- `astryx.css`, `reset.css`, and every other package stylesheet (`richtext.css`, `lab.css`, `charts.css`) now open with `@layer reset, astryx-base, astryx-theme;`, the same line theme stylesheets carry. The Astryx layer order holds whichever Astryx stylesheet loads first: loading `reset.css` after `astryx.css` no longer lets the reset override component styles, and theme overrides keep winning. Setups that already declare the order on their own first line are unchanged. (#7585)
|
|
13
|
+
|
|
14
|
+
#### Documentation
|
|
15
|
+
|
|
16
|
+
- The `@astryxdesign/richtext` README shows the full stylesheet setup: Core's `reset.css` and `astryx.css`, your theme's CSS, and `richtext.css`. It says the package ships prebuilt CSS, so you never compile its source, and that `richtext.css` sits in `@layer astryx-base`, so theme overrides win once `reset.css` (or the layer-order line) loads first. (#7582)
|
|
17
|
+
|
|
18
|
+
#### Contributors
|
|
19
|
+
|
|
20
|
+
Thanks to everyone who contributed to this release:
|
|
21
|
+
|
|
22
|
+
- @cixzhang
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
3
26
|
# 0.1.9
|
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,19 +16,15 @@
|
|
|
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
|
-
import { type ReactNode } from 'react';
|
|
22
|
+
import { type ReactNode, type Ref } from 'react';
|
|
26
23
|
import { type FieldStatusVariant } from '@astryxdesign/core/Field';
|
|
27
24
|
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';
|
|
@@ -77,6 +73,12 @@ export interface RichTextEditorRef {
|
|
|
77
73
|
getEditor: () => LexicalEditor;
|
|
78
74
|
}
|
|
79
75
|
export interface RichTextEditorProps extends Omit<BaseProps, 'onChange' | 'defaultValue'> {
|
|
76
|
+
/**
|
|
77
|
+
* Imperative handle for callers that manage the editor from outside. In
|
|
78
|
+
* React 19 `ref` is an ordinary prop, so it is declared here rather than
|
|
79
|
+
* supplied by a `forwardRef` wrapper.
|
|
80
|
+
*/
|
|
81
|
+
ref?: Ref<RichTextEditorRef>;
|
|
80
82
|
/** Label text for the editor (always rendered for accessibility). */
|
|
81
83
|
label: string;
|
|
82
84
|
/**
|
|
@@ -238,9 +240,8 @@ export interface RichTextEditorProps extends Omit<BaseProps, 'onChange' | 'defau
|
|
|
238
240
|
}
|
|
239
241
|
/**
|
|
240
242
|
* A WYSIWYG rich-text editor built on Lexical, styled with Astryx design
|
|
241
|
-
* tokens.
|
|
242
|
-
*
|
|
243
|
-
* component.
|
|
243
|
+
* tokens. Ships from `@astryxdesign/richtext`. `lexical` and `@lexical/*` are
|
|
244
|
+
* optional peer dependencies — install them to use this component.
|
|
244
245
|
*
|
|
245
246
|
* The editor is intentionally minimal and extensible: pass `toolbar`, `nodes`,
|
|
246
247
|
* and `plugins` to layer richer behaviour (formatting, mentions, hover cards)
|
|
@@ -261,5 +262,8 @@ export interface RichTextEditorProps extends Omit<BaseProps, 'onChange' | 'defau
|
|
|
261
262
|
* />
|
|
262
263
|
* ```
|
|
263
264
|
*/
|
|
264
|
-
export declare const RichTextEditor:
|
|
265
|
+
export declare const RichTextEditor: {
|
|
266
|
+
({ label, isLabelHidden, description, isOptional, isRequired, defaultValue, onChange, placeholder, isReadOnly, isDisabled, status, statusVariant, width, minHeight, labelTooltip, size: sizeProp, nodes, toolbar, plugins, hasMarkdownShortcuts, transformers, markdownExtensions, hasAutoFocus, tabEscapeHint: tabEscapeHintFromProps, maxLength, namespace, xstyle, className, style, ref, ...rest }: RichTextEditorProps): import("react").JSX.Element;
|
|
267
|
+
displayName: string;
|
|
268
|
+
};
|
|
265
269
|
//# sourceMappingURL=RichTextEditor.d.ts.map
|
|
@@ -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,13 +20,10 @@
|
|
|
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
|
-
import { useEffect, useId, useImperativeHandle, useMemo, useRef, useState
|
|
26
|
+
import { useEffect, useId, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
30
27
|
import * as stylex from '@stylexjs/stylex';
|
|
31
28
|
import '@astryxdesign/core/theme/tokens.stylex';
|
|
32
29
|
import { colorVars, spacingVars, typographyVars, typeScaleVars } from '@astryxdesign/core/theme/tokens.stylex';
|
|
@@ -108,24 +105,6 @@ const styles = {
|
|
|
108
105
|
kAzted: "x65nank",
|
|
109
106
|
$$css: true
|
|
110
107
|
},
|
|
111
|
-
editorBody: {
|
|
112
|
-
kVAEAm: "x1n2onr6",
|
|
113
|
-
kB7OPa: "x9f619",
|
|
114
|
-
kzqmXN: "xh8yej3",
|
|
115
|
-
k8WAf4: "xu0wf1k",
|
|
116
|
-
kg3NbH: "xf314gf",
|
|
117
|
-
$$css: true
|
|
118
|
-
},
|
|
119
|
-
editorBodyWithToolbar: {
|
|
120
|
-
kEafiO: "x178xt8z",
|
|
121
|
-
kPef9Z: "x13fuv20",
|
|
122
|
-
kLZC3w: "x1pc3f07",
|
|
123
|
-
$$css: true
|
|
124
|
-
},
|
|
125
|
-
editorBodyWithStatus: {
|
|
126
|
-
kwRFfy: "xp74n0j",
|
|
127
|
-
$$css: true
|
|
128
|
-
},
|
|
129
108
|
contentEditable: {
|
|
130
109
|
k1xSpc: "x1lliihq",
|
|
131
110
|
kzqmXN: "xh8yej3",
|
|
@@ -149,19 +128,6 @@ const dynamicStyles = {
|
|
|
149
128
|
"--x-minHeight": (val => typeof val === "number" ? val + "px" : val != null ? val : undefined)(minHeight)
|
|
150
129
|
}]
|
|
151
130
|
};
|
|
152
|
-
const editorBodySizeStyles = {
|
|
153
|
-
sm: {
|
|
154
|
-
$$css: true
|
|
155
|
-
},
|
|
156
|
-
md: {
|
|
157
|
-
$$css: true
|
|
158
|
-
},
|
|
159
|
-
lg: {
|
|
160
|
-
k8WAf4: "xce4md1",
|
|
161
|
-
$$css: true
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
131
|
/**
|
|
166
132
|
* Fraction of `maxLength` at which the character counter begins announcing
|
|
167
133
|
* remaining/over-limit characters to screen readers. Matches TextArea.
|
|
@@ -175,9 +141,8 @@ const COUNTER_WARNING_THRESHOLD = 0.8;
|
|
|
175
141
|
|
|
176
142
|
/**
|
|
177
143
|
* A WYSIWYG rich-text editor built on Lexical, styled with Astryx design
|
|
178
|
-
* tokens.
|
|
179
|
-
*
|
|
180
|
-
* component.
|
|
144
|
+
* tokens. Ships from `@astryxdesign/richtext`. `lexical` and `@lexical/*` are
|
|
145
|
+
* optional peer dependencies — install them to use this component.
|
|
181
146
|
*
|
|
182
147
|
* The editor is intentionally minimal and extensible: pass `toolbar`, `nodes`,
|
|
183
148
|
* and `plugins` to layer richer behaviour (formatting, mentions, hover cards)
|
|
@@ -198,7 +163,7 @@ const COUNTER_WARNING_THRESHOLD = 0.8;
|
|
|
198
163
|
* />
|
|
199
164
|
* ```
|
|
200
165
|
*/
|
|
201
|
-
export const RichTextEditor =
|
|
166
|
+
export const RichTextEditor = function RichTextEditor({
|
|
202
167
|
label,
|
|
203
168
|
isLabelHidden = false,
|
|
204
169
|
description,
|
|
@@ -228,8 +193,9 @@ export const RichTextEditor = /*#__PURE__*/forwardRef(function RichTextEditor({
|
|
|
228
193
|
xstyle,
|
|
229
194
|
className,
|
|
230
195
|
style,
|
|
196
|
+
ref,
|
|
231
197
|
...rest
|
|
232
|
-
}
|
|
198
|
+
}) {
|
|
233
199
|
const size = useSize(sizeProp, 'md');
|
|
234
200
|
const t = useTranslator();
|
|
235
201
|
const tabEscapeHint = tabEscapeHintFromProps ?? t('@astryx.richTextEditor.tabEscapeHint');
|
|
@@ -333,7 +299,32 @@ export const RichTextEditor = /*#__PURE__*/forwardRef(function RichTextEditor({
|
|
|
333
299
|
extension: extensionRef.current,
|
|
334
300
|
contentEditable: null,
|
|
335
301
|
children: [hasToolbar ? toolbar : null, /*#__PURE__*/_jsxs("div", {
|
|
336
|
-
...
|
|
302
|
+
...{
|
|
303
|
+
0: {
|
|
304
|
+
className: "x1n2onr6 x9f619 xh8yej3 xu0wf1k xf314gf"
|
|
305
|
+
},
|
|
306
|
+
4: {
|
|
307
|
+
className: "x1n2onr6 x9f619 xh8yej3 xu0wf1k xf314gf x178xt8z x13fuv20 x1pc3f07"
|
|
308
|
+
},
|
|
309
|
+
2: {
|
|
310
|
+
className: "x1n2onr6 x9f619 xh8yej3 xu0wf1k xf314gf xp74n0j"
|
|
311
|
+
},
|
|
312
|
+
6: {
|
|
313
|
+
className: "x1n2onr6 x9f619 xh8yej3 xu0wf1k xf314gf x178xt8z x13fuv20 x1pc3f07 xp74n0j"
|
|
314
|
+
},
|
|
315
|
+
1: {
|
|
316
|
+
className: "x1n2onr6 x9f619 xh8yej3 xf314gf xce4md1"
|
|
317
|
+
},
|
|
318
|
+
5: {
|
|
319
|
+
className: "x1n2onr6 x9f619 xh8yej3 xf314gf x178xt8z x13fuv20 x1pc3f07 xce4md1"
|
|
320
|
+
},
|
|
321
|
+
3: {
|
|
322
|
+
className: "x1n2onr6 x9f619 xh8yej3 xf314gf xp74n0j xce4md1"
|
|
323
|
+
},
|
|
324
|
+
7: {
|
|
325
|
+
className: "x1n2onr6 x9f619 xh8yej3 xf314gf x178xt8z x13fuv20 x1pc3f07 xp74n0j xce4md1"
|
|
326
|
+
}
|
|
327
|
+
}[!!hasToolbar << 2 | !!!!statusIcon << 1 | !!(size === 'lg') << 0],
|
|
337
328
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
338
329
|
...{
|
|
339
330
|
className: "x1n2onr6 xh8yej3 x9ynric xjm74w1 xf9zqsd xw6l6zx"
|
|
@@ -409,7 +400,11 @@ export const RichTextEditor = /*#__PURE__*/forwardRef(function RichTextEditor({
|
|
|
409
400
|
})]
|
|
410
401
|
})]
|
|
411
402
|
});
|
|
412
|
-
}
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
// Keeps the editor inside `@astryx/require-baseprops-passthrough`, which only
|
|
406
|
+
// checks components that assign a top-level `displayName`. Without it, a
|
|
407
|
+
// dropped `className`, `style` or `xstyle` on the root stops warning.
|
|
413
408
|
RichTextEditor.displayName = 'RichTextEditor';
|
|
414
409
|
|
|
415
410
|
/**
|
|
@@ -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"}
|