@astryxdesign/richtext 0.5.2-canary.fbfe729 → 0.5.3-canary.ea5705c
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Astryx CLI integration for the canary-only Rich Text package.
|
|
5
|
+
* Package identity and version come from package.json.
|
|
6
|
+
*/
|
|
7
|
+
export default {
|
|
8
|
+
components: './src',
|
|
9
|
+
templates: './blocks',
|
|
10
|
+
issuesUrl: 'https://github.com/facebook/astryx/issues',
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
+
export default {
|
|
5
|
+
type: 'block',
|
|
6
|
+
name: 'RichTextEditor',
|
|
7
|
+
displayName: 'Rich Text Editor',
|
|
8
|
+
description: 'A rich text field with its formatting toolbar.',
|
|
9
|
+
exampleFor: 'RichTextEditor',
|
|
10
|
+
aspectRatio: 16 / 10,
|
|
11
|
+
isShowcase: true,
|
|
12
|
+
componentsUsed: ['RichTextEditor', 'RichTextEditorToolbar'],
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import {RichTextEditor, RichTextEditorToolbar} from '@astryxdesign/richtext';
|
|
6
|
+
|
|
7
|
+
export default function RichTextEditorShowcase() {
|
|
8
|
+
return (
|
|
9
|
+
<div style={{width: 480, maxWidth: '100%'}}>
|
|
10
|
+
<RichTextEditor
|
|
11
|
+
label="Release notes"
|
|
12
|
+
description="Capture formatted context for your team."
|
|
13
|
+
placeholder="Write an update…"
|
|
14
|
+
toolbar={<RichTextEditorToolbar />}
|
|
15
|
+
minHeight={112}
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/richtext",
|
|
3
|
-
"
|
|
3
|
+
"displayName": "Rich Text",
|
|
4
|
+
"version": "0.5.3-canary.ea5705c",
|
|
4
5
|
"description": "Astryx rich text — a Lexical-based rich text editor and viewer. Published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
6
|
"author": "Meta Open Source",
|
|
6
7
|
"license": "MIT",
|
|
@@ -30,6 +31,8 @@
|
|
|
30
31
|
"types": "./dist/index.d.ts",
|
|
31
32
|
"sideEffects": false,
|
|
32
33
|
"files": [
|
|
34
|
+
"astryx.integration.mjs",
|
|
35
|
+
"blocks",
|
|
33
36
|
"dist",
|
|
34
37
|
"src",
|
|
35
38
|
"README.md",
|
|
@@ -47,7 +50,7 @@
|
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|
|
49
52
|
"@stylexjs/stylex": ">=0.10.0",
|
|
50
|
-
"@astryxdesign/core": "0.5.
|
|
53
|
+
"@astryxdesign/core": "0.5.3-canary.ea5705c",
|
|
51
54
|
"react": ">=19.0.0",
|
|
52
55
|
"react-dom": ">=19.0.0",
|
|
53
56
|
"lexical": "^0.46.0",
|
|
@@ -98,7 +101,7 @@
|
|
|
98
101
|
}
|
|
99
102
|
},
|
|
100
103
|
"devDependencies": {
|
|
101
|
-
"@astryxdesign/cli": "0.5.
|
|
104
|
+
"@astryxdesign/cli": "0.5.3-canary.ea5705c",
|
|
102
105
|
"@lexical/code": "^0.46.0",
|
|
103
106
|
"@lexical/headless": "^0.46.0",
|
|
104
107
|
"@lexical/html": "^0.46.0",
|