@astryxdesign/richtext 0.7.5-canary.f2dafed → 0.7.5-canary.fccd771
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/dist/MarkdownExtensionsPlugin.d.ts +2 -2
- package/dist/RichTextEditor.d.ts +1 -1
- package/dist/RichTextView.d.ts +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/markdown.d.ts +4 -4
- package/dist/markdownExtensions.d.ts +1 -1
- package/dist/markdownSerializers.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Transformer } from '@lexical/markdown';
|
|
2
2
|
import type { MarkdownExtensionNode, MarkdownPluginEntry } from '@astryxdesign/core/Markdown/plugins';
|
|
3
|
-
import { type RichTextMarkdownExtension } from './markdownExtensions';
|
|
4
|
-
import { type RichTextExtensionNodeFacts } from './markdownExtensionNode';
|
|
3
|
+
import { type RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
4
|
+
import { type RichTextExtensionNodeFacts } from './markdownExtensionNode.js';
|
|
5
5
|
/**
|
|
6
6
|
* The node core derives from a stored node's source with `plugins`, or null
|
|
7
7
|
* when no adopted plugin of the same protocol version reads that exact source
|
package/dist/RichTextEditor.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { type ReactNode, type Ref } from 'react';
|
|
|
23
23
|
import { type FieldStatusVariant } from '@astryxdesign/core/Field';
|
|
24
24
|
import type { BaseProps } from '@astryxdesign/core';
|
|
25
25
|
import { type SizeValue } from '@astryxdesign/core/utils';
|
|
26
|
-
import type { RichTextMarkdownExtension } from './markdownExtensions';
|
|
26
|
+
import type { RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
27
27
|
import { type Transformer } from '@lexical/markdown';
|
|
28
28
|
import { type EditorState, type Klass, type LexicalEditor, type LexicalNode } from 'lexical';
|
|
29
29
|
export type RichTextEditorStatusType = 'warning' | 'error' | 'success';
|
package/dist/RichTextView.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type ReactNode } from 'react';
|
|
17
17
|
import type { BaseProps } from '@astryxdesign/core';
|
|
18
|
-
import type { RichTextMarkdownExtension } from './markdownExtensions';
|
|
18
|
+
import type { RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
19
19
|
import type { Klass, LexicalNode } from 'lexical';
|
|
20
20
|
export interface RichTextViewProps extends BaseProps {
|
|
21
21
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
* /packages/richtext/src/publicSurface.test.ts, and the editor component doc
|
|
16
16
|
* files.
|
|
17
17
|
*/
|
|
18
|
-
export { RichTextEditor } from './RichTextEditor';
|
|
19
|
-
export type { RichTextEditorProps, RichTextEditorRef, RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize, } from './RichTextEditor';
|
|
20
|
-
export { RichTextView } from './RichTextView';
|
|
21
|
-
export type { RichTextViewProps } from './RichTextView';
|
|
22
|
-
export { markdownToEditorStateJSON, editorStateJSONToMarkdown, } from './markdownSerializers';
|
|
23
|
-
export type { MarkdownSerializerOptions } from './markdownSerializers';
|
|
24
|
-
export { createRichTextExtension, RichTextExtensionError, } from './markdownExtensions';
|
|
25
|
-
export type { RichTextMarkdownExtension } from './markdownExtensions';
|
|
26
|
-
export { RichTextEditorToolbar, RICHTEXT_ICON_KEYS, } from './RichTextEditorToolbar';
|
|
27
|
-
export type { RichTextEditorToolbarProps } from './RichTextEditorToolbar';
|
|
28
|
-
export { RichTextEditorAutoLinkPlugin, DEFAULT_LINK_MATCHERS, NEW_TAB_LINK_ATTRIBUTES, } from './RichTextEditorAutoLinkPlugin';
|
|
29
|
-
export type { RichTextEditorAutoLinkPluginProps } from './RichTextEditorAutoLinkPlugin';
|
|
30
|
-
export { sanitizeUrl, validateUrl } from './linkUtils';
|
|
18
|
+
export { RichTextEditor } from './RichTextEditor.js';
|
|
19
|
+
export type { RichTextEditorProps, RichTextEditorRef, RichTextEditorStatus, RichTextEditorStatusType, RichTextEditorSize, } from './RichTextEditor.js';
|
|
20
|
+
export { RichTextView } from './RichTextView.js';
|
|
21
|
+
export type { RichTextViewProps } from './RichTextView.js';
|
|
22
|
+
export { markdownToEditorStateJSON, editorStateJSONToMarkdown, } from './markdownSerializers.js';
|
|
23
|
+
export type { MarkdownSerializerOptions } from './markdownSerializers.js';
|
|
24
|
+
export { createRichTextExtension, RichTextExtensionError, } from './markdownExtensions.js';
|
|
25
|
+
export type { RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
26
|
+
export { RichTextEditorToolbar, RICHTEXT_ICON_KEYS, } from './RichTextEditorToolbar.js';
|
|
27
|
+
export type { RichTextEditorToolbarProps } from './RichTextEditorToolbar.js';
|
|
28
|
+
export { RichTextEditorAutoLinkPlugin, DEFAULT_LINK_MATCHERS, NEW_TAB_LINK_ATTRIBUTES, } from './RichTextEditorAutoLinkPlugin.js';
|
|
29
|
+
export type { RichTextEditorAutoLinkPluginProps } from './RichTextEditorAutoLinkPlugin.js';
|
|
30
|
+
export { sanitizeUrl, validateUrl } from './linkUtils.js';
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/markdown.d.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* serializable: create the extensions a page passes to the surfaces in a
|
|
11
11
|
* client module, and create your own for headless use.
|
|
12
12
|
*/
|
|
13
|
-
export { markdownToEditorStateJSON, editorStateJSONToMarkdown, } from './markdownSerializers';
|
|
14
|
-
export type { MarkdownSerializerOptions } from './markdownSerializers';
|
|
15
|
-
export { createRichTextExtension, RichTextExtensionError, } from './markdownExtensions';
|
|
16
|
-
export type { RichTextMarkdownExtension } from './markdownExtensions';
|
|
13
|
+
export { markdownToEditorStateJSON, editorStateJSONToMarkdown, } from './markdownSerializers.js';
|
|
14
|
+
export type { MarkdownSerializerOptions } from './markdownSerializers.js';
|
|
15
|
+
export { createRichTextExtension, RichTextExtensionError, } from './markdownExtensions.js';
|
|
16
|
+
export type { RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
17
17
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import type { Transformer } from '@lexical/markdown';
|
|
25
25
|
import { TextNode, type ElementNode } from 'lexical';
|
|
26
26
|
import { type MarkdownExtensionNode, type MarkdownPluginEntry } from '@astryxdesign/core/Markdown/plugins';
|
|
27
|
-
import { RichTextExtensionNode } from './markdownExtensionNode';
|
|
27
|
+
import { RichTextExtensionNode } from './markdownExtensionNode.js';
|
|
28
28
|
declare const extensionPlugin: unique symbol;
|
|
29
29
|
/**
|
|
30
30
|
* One Markdown plugin adopted by RichText. Opaque: create it with
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Transformer } from '@lexical/markdown';
|
|
2
|
-
import { type RichTextMarkdownExtension } from './markdownExtensions';
|
|
2
|
+
import { type RichTextMarkdownExtension } from './markdownExtensions.js';
|
|
3
3
|
import type { Klass, LexicalNode } from 'lexical';
|
|
4
4
|
/** Options shared by the Markdown serializer helpers. */
|
|
5
5
|
export interface MarkdownSerializerOptions {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/richtext",
|
|
3
3
|
"displayName": "Rich Text",
|
|
4
|
-
"version": "0.7.5-canary.
|
|
4
|
+
"version": "0.7.5-canary.fccd771",
|
|
5
5
|
"description": "Astryx rich text — a Lexical-based rich text editor and viewer, styled with Astryx design tokens.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@stylexjs/stylex": ">=0.10.0",
|
|
56
|
-
"@astryxdesign/core": "0.7.5-canary.
|
|
56
|
+
"@astryxdesign/core": "0.7.5-canary.fccd771",
|
|
57
57
|
"react": ">=19.0.0",
|
|
58
58
|
"react-dom": ">=19.0.0",
|
|
59
59
|
"lexical": "^0.52.0",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@astryxdesign/a11y-spec": "0.7.5-canary.
|
|
116
|
-
"@astryxdesign/cli": "0.7.5-canary.
|
|
115
|
+
"@astryxdesign/a11y-spec": "0.7.5-canary.fccd771",
|
|
116
|
+
"@astryxdesign/cli": "0.7.5-canary.fccd771",
|
|
117
117
|
"@babel/cli": "^7.29.7",
|
|
118
118
|
"@babel/core": "^7.29.7",
|
|
119
119
|
"@babel/preset-react": "^7.29.7",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"lexical": "^0.52.0"
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
|
-
"build": "node ../../scripts/clean-dist.mjs && pnpm build:esm && tsc --project tsconfig.build.json && pnpm build:css && node ../../scripts/check-no-dev-jsx.mjs && node ../../scripts/check-fully-specified.mjs",
|
|
138
|
+
"build": "node ../../scripts/clean-dist.mjs && pnpm build:esm && tsc --project tsconfig.build.json && node ../../scripts/add-declaration-extensions.mjs && pnpm build:css && node ../../scripts/check-no-dev-jsx.mjs && node ../../scripts/check-fully-specified.mjs",
|
|
139
139
|
"build:esm": "babel src --out-dir dist --extensions \".ts,.tsx\" --out-file-extension \".js\" --ignore \"**/*.test.ts,**/*.test.tsx,**/__tests__/**,**/*.perf.test.*,**/*.doc.mjs,**/*.d.ts,**/*.css,**/*.css.d.ts\" --config-file ./babel.config.json",
|
|
140
140
|
"build:css": "node ../../scripts/build-css.mjs --package richtext",
|
|
141
141
|
"dev": "babel src --watch --out-dir dist --extensions \".ts,.tsx\" --out-file-extension \".js\" --ignore \"**/*.test.*,**/*.doc.mjs,**/*.d.ts,**/*.css*\" --config-file ./babel.config.json",
|