reactive-md 0.4.0 → 0.5.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-ch.md +33 -1
- package/CHANGELOG.md +33 -1
- package/README-ch.md +36 -6
- package/README-en.md +37 -7
- package/README.md +37 -7
- package/THIRD_PARTY_NOTICES.md +94 -1
- package/dist-library/reactive-md-editor.css +2 -0
- package/dist-library/reactive-md-editor.js +3710 -0
- package/dist-library/reactive-md-react.js +9179 -1606
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +98 -97
- package/dist-library/{runtime-DtjdPXxJ.js → runtime-DPuMxM_y.js} +1856 -1461
- package/dist-library/types/editor/ReactiveMarkdownEditor.d.ts +7 -0
- package/dist-library/types/editor/editor-commands.d.ts +50 -0
- package/dist-library/types/editor/editor-i18n.d.ts +102 -0
- package/dist-library/types/editor/editor-toolbar.d.ts +24 -0
- package/dist-library/types/editor/extended-native-components.d.ts +58 -0
- package/dist-library/types/editor/index.d.ts +9 -0
- package/dist-library/types/editor/locale.d.ts +13 -0
- package/dist-library/types/editor/native-components.d.ts +47 -0
- package/dist-library/types/editor/source-authoring.d.ts +57 -0
- package/dist-library/types/editor/types.d.ts +44 -0
- package/dist-library/types/editor/use-gutter-metrics.d.ts +5 -0
- package/dist-library/types/editor/use-source-history.d.ts +16 -0
- package/dist-library/types/local/code-block.d.ts +24 -0
- package/dist-library/types/local/footnotes.d.ts +51 -0
- package/dist-library/types/local/image-view.d.ts +21 -0
- package/dist-library/types/local/types.d.ts +7 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +47 -36
- package/docs/compatibility-ch.md +12 -8
- package/docs/compatibility-en.md +12 -8
- package/docs/component-protocol-ch.md +2 -2
- package/docs/component-protocol-en.md +2 -2
- package/docs/editor-ch.md +216 -0
- package/docs/editor-en.md +216 -0
- package/docs/local-guide-ch.md +11 -5
- package/docs/local-guide-en.md +11 -5
- package/docs/local-interaction-syntax-ch.md +7 -2
- package/docs/local-interaction-syntax-en.md +7 -2
- package/docs/release-0.4.0-ch.md +4 -4
- package/docs/release-0.4.0-en.md +4 -4
- package/docs/release-0.4.1-ch.md +23 -0
- package/docs/release-0.4.1-en.md +23 -0
- package/docs/release-0.5.0-ch.md +41 -0
- package/docs/release-0.5.0-en.md +41 -0
- package/docs/releasing-ch.md +18 -11
- package/docs/releasing-en.md +18 -11
- package/docs/shareable-export-ch.md +4 -2
- package/docs/shareable-export-en.md +4 -2
- package/examples/integration/react-editor.tsx +74 -0
- package/package.json +54 -11
package/CHANGELOG-ch.md
CHANGED
|
@@ -2,9 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录用户可见变更。项目处于 0.x 预览阶段,版本与迁移规则见[版本与兼容性](docs/compatibility-ch.md)。
|
|
4
4
|
|
|
5
|
+
## 0.5.0(2026-10-25,next 渠道)
|
|
6
|
+
|
|
7
|
+
兼容 0.4.1。语法仍为 `local-draft-2`,组块协议为 `component-protocol-1`,主题协议为 `reactive-md-theme-1`。现有 `reactive-md`、`reactive-md/react` 和 `reactive-md/styles.css` 导入保持不变,渲染器入口 API 不变。见[0.5.0 发布说明](docs/release-0.5.0-ch.md)。
|
|
8
|
+
|
|
9
|
+
### 新增
|
|
10
|
+
|
|
11
|
+
- 新增 `reactive-md/editor`,这是从 Playground 抽出的受控 React 19 源码编辑器,并提供独立样式入口 `reactive-md/editor/styles.css`。它包含高亮、格式与插入工具、补全、绑定导航、重命名、格式化、撤销重做、行号和滚动同步。语言与主题按实例设置;`diagnostics` 和 `document` 用于行号标记与绑定值类型。预览、持久化和导出由宿主负责。
|
|
12
|
+
- 支持无属性的 `<b>`、`<i>`、`<u>`、`<s>`、`<mark>` 和 `<br>` 基础格式。
|
|
13
|
+
- 脚注支持 Markdown 正文排版、编号、重复引用及返回链接。
|
|
14
|
+
- 代码围栏支持常见语言高亮和原文复制,并提供中英文结果反馈。获准加载的图片可点击放大,支持键盘操作与关闭后焦点恢复。
|
|
15
|
+
|
|
16
|
+
### 修复
|
|
17
|
+
|
|
18
|
+
- 泛型、比较式和货币按普通正文显示,避免误识别为组件标签或公式。
|
|
19
|
+
|
|
20
|
+
## 0.4.1(2026-10-25)
|
|
21
|
+
|
|
22
|
+
兼容 0.4.0;语法仍为 `local-draft-2`,组块协议为 `component-protocol-1`,主题协议为 `reactive-md-theme-1`。见[0.4.1 发布说明](docs/release-0.4.1-ch.md)。
|
|
23
|
+
|
|
24
|
+
### 调整
|
|
25
|
+
|
|
26
|
+
- 改进深浅色文档底色、视觉层级、低饱和图表配色和控件切换动效。
|
|
27
|
+
- 输入框与按钮采用气泡圆角,滑块与圆形选择控件采用统一样式;滑块 `color` 可设置轨道背景色。
|
|
28
|
+
- 表格占满容器并均衡分配列宽,用三角形表示排序方向,增大环形图。
|
|
29
|
+
- 坐标控件增加网格、箭头轴、虚线投影和可拖动的坐标标注点,保留键盘与数字输入操作。
|
|
30
|
+
- quiz 输入框适应容器宽度,题目与操作区整体垂直居中。
|
|
31
|
+
|
|
32
|
+
### 修复
|
|
33
|
+
|
|
34
|
+
- LaTeX 使用正文字号和黑白文字颜色,分段函数的表达式与条件不再重叠。
|
|
35
|
+
- 工具栏插入内容后保留源码编辑器滚动位置,日期输入框适应窄屏。
|
|
36
|
+
|
|
5
37
|
## 0.4.0(2026-10-24,next 渠道)
|
|
6
38
|
|
|
7
|
-
`0.4.0`
|
|
39
|
+
`0.4.0` 是同时提供于 `latest` 和 `next` 渠道的 0.x 预览版,语法修订为 `local-draft-2`,从 `0.3.1` / `local-draft-1` 升级;包版本、语法修订、`component-protocol-1` 组块协议和 `reactive-md-theme-1` 主题协议是彼此独立的版本轴。完整升级清单见[0.4.0 发布与迁移](docs/release-0.4.0-ch.md)。
|
|
8
40
|
|
|
9
41
|
### 修复
|
|
10
42
|
|
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
This file records user-visible changes. The project is in a 0.x preview; version and migration rules are in [Versions and compatibility](docs/compatibility-en.md).
|
|
4
4
|
|
|
5
|
+
## 0.5.0 (2026-10-25, next channel)
|
|
6
|
+
|
|
7
|
+
Compatible with 0.4.1. Syntax remains `local-draft-2`, with `component-protocol-1` and `reactive-md-theme-1`. Existing `reactive-md`, `reactive-md/react` and `reactive-md/styles.css` imports are unchanged, and the renderer entry keeps its API. See [0.5.0 release notes](docs/release-0.5.0-en.md).
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Add `reactive-md/editor`, a controlled React 19 source editor extracted from the Playground, with the independent style entry `reactive-md/editor/styles.css`. It provides highlighting, formatting and insertion tools, completion, binding navigation, rename, format, undo and redo, line numbers and scroll synchronization. Locale and theme are set per instance; `diagnostics` and `document` add gutter markers and binding value types. The host owns preview, persistence and export.
|
|
12
|
+
- Support attribute-free `<b>`, `<i>`, `<u>`, `<s>`, `<mark>` and `<br>` formatting.
|
|
13
|
+
- Render Markdown footnotes with rich definitions, numbering, repeated references and return links.
|
|
14
|
+
- Highlight fenced code in common languages and copy its exact source with localized feedback. Approved images open in a keyboard-accessible modal viewer.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Preserve ordinary generic/comparison text and currency without misreading them as component tags or formulas.
|
|
19
|
+
|
|
20
|
+
## 0.4.1 (2026-10-25)
|
|
21
|
+
|
|
22
|
+
Compatible with 0.4.0; syntax remains `local-draft-2`, with `component-protocol-1` and `reactive-md-theme-1`. See [0.4.1 release notes](docs/release-0.4.1-en.md).
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Refine light/dark document surfaces, visual hierarchy, muted chart colors and control transitions.
|
|
27
|
+
- Use rounded fields and buttons, custom slider tracks and circular selection controls. Slider `color` now colors the track.
|
|
28
|
+
- Balance full-width table columns, show triangle sort indicators and enlarge donut charts.
|
|
29
|
+
- Draw coordinate controls with a grid, arrow axes, dashed projections and a labeled draggable point. Keep keyboard and numeric input alternatives.
|
|
30
|
+
- Let quiz inputs fill their container and vertically center quiz content.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Render LaTeX at the document body size, with black/white ink and non-overlapping piecewise conditions.
|
|
35
|
+
- Preserve source editor scroll after toolbar insertion and keep date inputs within narrow layouts.
|
|
36
|
+
|
|
5
37
|
## 0.4.0 (2026-10-24, next channel)
|
|
6
38
|
|
|
7
|
-
`0.4.0` is a preview
|
|
39
|
+
`0.4.0` is a 0.x preview available on both `latest` and `next`. It uses syntax revision `local-draft-2` and upgrades from `0.3.1` / `local-draft-1`; the package version, syntax revision, `component-protocol-1` component protocol and `reactive-md-theme-1` theme protocol are independent version axes. See [0.4.0 release and migration](docs/release-0.4.0-en.md) for the complete upgrade checklist.
|
|
8
40
|
|
|
9
41
|
### Fixed
|
|
10
42
|
|
package/README-ch.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
用 Markdown 写本地交互文档。放入输入控件,用 `bind` 命名参数,用 `{{ 表达式 }}` 连接文字、公式、图表和图解。文档作者无需编写 JavaScript 或 CSS。
|
|
6
6
|
|
|
7
|
-
本地模式采用 HTML 风格标签,参数和表格数据直接写在正文中,LaTeX 公式可用于函数绘图。TypeScript 核心和 React 渲染器可独立集成。`0.
|
|
7
|
+
本地模式采用 HTML 风格标签,参数和表格数据直接写在正文中,LaTeX 公式可用于函数绘图。TypeScript 核心和 React 渲染器可独立集成。`0.5.0` 是面向 `next` 渠道的预览版,新增 `reactive-md/editor` 源码编辑器;`latest` 仍为 `0.4.0`。语法修订继续为 `local-draft-2`。
|
|
8
8
|
|
|
9
9
|
## 从这里开始
|
|
10
10
|
|
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
- [可分享文档与静态导出](docs/shareable-export-ch.md):单文件交互 HTML、静态输出、版本化状态文件、图片资源、CLI 与独立浏览器 API。
|
|
15
15
|
- [主题协议](docs/theme-protocol-ch.md):文档主题选择、自定义 CSS 与深浅模式。
|
|
16
16
|
- [作者工具](docs/author-tools-ch.md):源码高亮、补全、绑定定位、重命名、格式化与命令行检查。
|
|
17
|
+
- [React 源码编辑器](docs/editor-ch.md):受控编辑器、属性、ref 句柄、诊断、语言、主题与历史。
|
|
17
18
|
- [独立接入示例](examples/integration/README.md):可复制到仓库外运行的 Node 核心和 React 页面。
|
|
18
19
|
- [版本与兼容性](docs/compatibility-ch.md):0.x 规则、迁移、诊断契约和平台范围。
|
|
19
20
|
- [组块协议](docs/component-protocol-ch.md) · [组块开发指南](docs/component-development-ch.md):新增组件的声明、行为契约和兼容性验收。
|
|
20
|
-
- [0.
|
|
21
|
+
- [0.5.0 发布说明](docs/release-0.5.0-ch.md):编辑器入口与文档渲染修复。
|
|
22
|
+
- [0.4.1 发布说明](docs/release-0.4.1-ch.md):界面与交互修复,兼容 0.4.0。
|
|
23
|
+
- [0.4.0 发布与迁移](docs/release-0.4.0-ch.md):本 minor 系列包含的能力,以及从 `0.3.1` / `local-draft-1` 升级的方法。
|
|
21
24
|
|
|
22
25
|
## 写一份文档
|
|
23
26
|
|
|
@@ -32,19 +35,27 @@
|
|
|
32
35
|
|
|
33
36
|
输入立即更新结果,面板自带“恢复默认”。独立使用的计数器只需一行 `<counter label="人数">`。
|
|
34
37
|
|
|
35
|
-
`0.4.0` 新增 `local-draft-2`、命名计算、校验、集合、主题和离线 HTML
|
|
38
|
+
`0.4.0` 新增 `local-draft-2`、命名计算、校验、集合、主题和离线 HTML 导出;旧版 `0.3.1` 使用 `local-draft-1`。见[0.4.0 发布与迁移](docs/release-0.4.0-ch.md)。
|
|
36
39
|
|
|
37
40
|
## 安装
|
|
38
41
|
|
|
39
42
|
需要 Node.js 22.12 或更新版本,包提供 ESM 入口:
|
|
40
43
|
|
|
44
|
+
```sh
|
|
45
|
+
npm install reactive-md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`latest` 当前为 `0.4.0`。0.5.0 预览版面向 `next` 渠道:
|
|
49
|
+
|
|
41
50
|
```sh
|
|
42
51
|
npm install reactive-md@next
|
|
52
|
+
# 或固定预览版
|
|
53
|
+
npm install reactive-md@0.5.0
|
|
43
54
|
```
|
|
44
55
|
|
|
45
|
-
|
|
56
|
+
使用预览版前请阅读[0.5.0 发布说明](docs/release-0.5.0-ch.md);从 `0.3.1` / `local-draft-1` 升级前请阅读[迁移说明](docs/release-0.4.0-ch.md)。
|
|
46
57
|
|
|
47
|
-
`reactive-md` 入口提供本地编译器、表达式和运行时,`reactive-md/react` 提供 React 渲染器。组件样式通过 `reactive-md/styles.css`
|
|
58
|
+
`reactive-md` 入口提供本地编译器、表达式和运行时,`reactive-md/react` 提供 React 渲染器。组件样式通过 `reactive-md/styles.css` 引入。`reactive-md/editor` 提供源码编辑器,并使用独立样式 `reactive-md/editor/styles.css`。现有渲染器和样式导入在 0.5.0 中保持不变。
|
|
48
59
|
|
|
49
60
|
React 入口需要 React 19:
|
|
50
61
|
|
|
@@ -63,6 +74,23 @@ export function Article({ source }: { source: string }) {
|
|
|
63
74
|
|
|
64
75
|
`reactive-md` 核心入口不依赖 React。完整的编译与运行时 API、宿主 URL 策略、生命周期和样式覆盖见[本地模式集成](docs/local-integration-ch.md)。
|
|
65
76
|
|
|
77
|
+
## 用 React 编辑源码
|
|
78
|
+
|
|
79
|
+
0.5.0 预览版在 `reactive-md/editor` 提供可复用的源码编辑器,样式位于 `reactive-md/editor/styles.css`。组件是受控的,需要 React 19:
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
import { useState } from 'react';
|
|
83
|
+
import { ReactiveMarkdownEditor } from 'reactive-md/editor';
|
|
84
|
+
import 'reactive-md/editor/styles.css';
|
|
85
|
+
|
|
86
|
+
export function Editor() {
|
|
87
|
+
const [source, setSource] = useState('# 笔记');
|
|
88
|
+
return <ReactiveMarkdownEditor value={source} onChange={setSource} />;
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
编辑器处理高亮、格式与插入工具、补全、绑定工具、撤销重做及行号。它不编译、不渲染预览;源码由应用保存,并用 `reactive-md/react` 渲染。属性、ref 句柄、诊断、主题、语言和历史规则见 [React 源码编辑器](docs/editor-ch.md)。
|
|
93
|
+
|
|
66
94
|
0.x 次版本可能包含破坏性变更。升级前阅读[变更记录](CHANGELOG-ch.md)与[兼容规则](docs/compatibility-ch.md),并保存原始 `.reactive.md` 源码。
|
|
67
95
|
|
|
68
96
|
## 分享文档
|
|
@@ -104,7 +132,9 @@ demo/ 独立的 Playground 应用
|
|
|
104
132
|
- [本地模式集成](docs/local-integration-ch.md):核心与 React API、URL 策略、生命周期、样式和版本固定。
|
|
105
133
|
- [可分享文档与静态导出](docs/shareable-export-ch.md):CLI build/lint、状态文件、本地图片内联、打印与独立浏览器运行时。
|
|
106
134
|
- [功能演示与示例](examples/local/README.md)与[独立接入示例](examples/integration/README.md)。
|
|
107
|
-
- [
|
|
135
|
+
- [React 源码编辑器](docs/editor-ch.md):编辑 `.reactive.md` 源码的受控组件,使用独立样式表。
|
|
136
|
+
- [版本与兼容性](docs/compatibility-ch.md)与[0.5.0 发布说明](docs/release-0.5.0-ch.md)。
|
|
137
|
+
- [0.4.0 发布与迁移](docs/release-0.4.0-ch.md)。
|
|
108
138
|
- [组块协议](docs/component-protocol-ch.md)与[组块开发指南](docs/component-development-ch.md)。
|
|
109
139
|
- [性能说明](docs/performance-ch.md)与[发布清单](docs/releasing-ch.md)。
|
|
110
140
|
|
package/README-en.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Write local interactive documents in Markdown. Add input controls, name parameters with `bind`, and connect prose, formulas, charts and diagrams with `{{ expressions }}`. Document authors do not write JavaScript or CSS.
|
|
6
6
|
|
|
7
|
-
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.
|
|
7
|
+
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.0` is the preview for the `next` channel and adds the `reactive-md/editor` source editor; `latest` remains `0.4.0`. Syntax revision stays `local-draft-2`. See [README-ch.md](README-ch.md) for the Chinese overview.
|
|
8
8
|
|
|
9
9
|
## Start here
|
|
10
10
|
|
|
@@ -14,10 +14,13 @@ Local mode uses HTML-style tags, with parameters and table data written directly
|
|
|
14
14
|
- [Shareable documents and static export](docs/shareable-export-en.md): single-file interactive HTML, static output, versioned state files, assets, the CLI and the standalone browser API.
|
|
15
15
|
- [Theme protocol](docs/theme-protocol-en.md): document theme selection, custom CSS and light/dark modes.
|
|
16
16
|
- [Author tools](docs/author-tools-en.md): source highlighting, completion, binding navigation, rename, formatting and command-line lint.
|
|
17
|
+
- [React source editor](docs/editor-en.md): controlled editor, props, ref handle, diagnostics, locale, theme and history.
|
|
17
18
|
- [Standalone integration examples](examples/integration/README.md): Node core and React pages you can copy and run outside the repository.
|
|
18
19
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, the diagnostics contract and supported platforms.
|
|
19
20
|
- [Component protocol](docs/component-protocol-en.md) · [Component development guide](docs/component-development-en.md): declarations, behavior contracts and compatibility acceptance for new components.
|
|
20
|
-
- [0.
|
|
21
|
+
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
22
|
+
- [0.4.1 release notes](docs/release-0.4.1-en.md): visual and interaction fixes, compatible with 0.4.0.
|
|
23
|
+
- [0.4.0 release and migration](docs/release-0.4.0-en.md): what the minor series adds and how to upgrade from `0.3.1` / `local-draft-1`.
|
|
21
24
|
|
|
22
25
|
## Write a document
|
|
23
26
|
|
|
@@ -32,19 +35,27 @@ Monthly cost: **{{ people * (annual ? 80 : 100) }} USD**.
|
|
|
32
35
|
|
|
33
36
|
Inputs update the result immediately, and the panel includes a restore-defaults action. A standalone counter is a single line: `<counter label="People">`.
|
|
34
37
|
|
|
35
|
-
`0.4.0` adds `local-draft-2`, named calculations, validation, collections, themes and offline HTML export. `0.3.1
|
|
38
|
+
`0.4.0` adds `local-draft-2`, named calculations, validation, collections, themes and offline HTML export. The earlier `0.3.1` release uses `local-draft-1`. See [0.4.0 release and migration](docs/release-0.4.0-en.md).
|
|
36
39
|
|
|
37
40
|
## Install
|
|
38
41
|
|
|
39
42
|
Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
|
|
40
43
|
|
|
44
|
+
```sh
|
|
45
|
+
npm install reactive-md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`latest` resolves to `0.4.0`. The 0.5.0 preview targets `next`:
|
|
49
|
+
|
|
41
50
|
```sh
|
|
42
51
|
npm install reactive-md@next
|
|
52
|
+
# or pin the preview
|
|
53
|
+
npm install reactive-md@0.5.0
|
|
43
54
|
```
|
|
44
55
|
|
|
45
|
-
|
|
56
|
+
Read the [0.5.0 release notes](docs/release-0.5.0-en.md) before using the preview, and the [migration guide](docs/release-0.4.0-en.md) before upgrading from `0.3.1` / `local-draft-1`.
|
|
46
57
|
|
|
47
|
-
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`.
|
|
58
|
+
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.0.
|
|
48
59
|
|
|
49
60
|
The core `reactive-md` entry does not depend on React:
|
|
50
61
|
|
|
@@ -82,6 +93,23 @@ export function Article({ source }: { source: string }) {
|
|
|
82
93
|
|
|
83
94
|
`LocalReactiveDocument` compiles and manages the runtime for you. To control compilation, lifecycle or URL policy yourself, use `LocalDocumentView` as described in [Local mode integration](docs/local-integration-en.md).
|
|
84
95
|
|
|
96
|
+
## Edit source with React
|
|
97
|
+
|
|
98
|
+
The 0.5.0 preview adds a reusable source editor at `reactive-md/editor`, with its own stylesheet at `reactive-md/editor/styles.css`. The component is controlled and requires React 19:
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
import { useState } from 'react';
|
|
102
|
+
import { ReactiveMarkdownEditor } from 'reactive-md/editor';
|
|
103
|
+
import 'reactive-md/editor/styles.css';
|
|
104
|
+
|
|
105
|
+
export function Editor() {
|
|
106
|
+
const [source, setSource] = useState('# Notes');
|
|
107
|
+
return <ReactiveMarkdownEditor value={source} onChange={setSource} />;
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The editor handles highlighting, formatting and insertion tools, completion, binding tools, undo and redo, and line numbers. It does not compile or render a preview; keep the source in your app and render it with `reactive-md/react`. See [React source editor](docs/editor-en.md) for the props, ref handle, diagnostics, themes, locales and history.
|
|
112
|
+
|
|
85
113
|
## Share documents
|
|
86
114
|
|
|
87
115
|
Build a self-contained HTML file that readers can open offline, or a script-free static snapshot:
|
|
@@ -121,8 +149,10 @@ demo/ Standalone Playground app
|
|
|
121
149
|
- [Local mode integration](docs/local-integration-en.md): core and React API, URL policy, lifecycle, styling and version pinning.
|
|
122
150
|
- [Shareable documents and static export](docs/shareable-export-en.md): CLI build/lint, state files, local image inlining, printing and the standalone browser runtime.
|
|
123
151
|
- [Feature tours and examples](examples/local/README.md) and [standalone integrations](examples/integration/README.md).
|
|
152
|
+
- [React source editor](docs/editor-en.md): controlled editor for `.reactive.md` source, with its own stylesheet.
|
|
124
153
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, diagnostics and supported platforms.
|
|
125
|
-
- [0.
|
|
154
|
+
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
155
|
+
- [0.4.0 release and migration](docs/release-0.4.0-en.md): the upgrade checklist for that minor series.
|
|
126
156
|
- [Component protocol](docs/component-protocol-en.md) and [component development guide](docs/component-development-en.md): contribution contracts, a proposal template and acceptance cases.
|
|
127
157
|
- [Performance measurements](docs/performance-en.md) and [release checklist](docs/releasing-en.md).
|
|
128
158
|
|
|
@@ -132,7 +162,7 @@ See the [contributing guide](CONTRIBUTING.md) for development and test commands.
|
|
|
132
162
|
|
|
133
163
|
- CI targets Node 22.12 and Node 24 with Playwright Chromium; local browser checks use Microsoft Edge. The packed check covers static SSR, and `npm run test:shareable` covers the single-file export's static-first hydration. General SSR hydration outside that path, Firefox and WebKit remain unverified.
|
|
134
164
|
- 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
|
|
135
|
-
- `0.4.0
|
|
165
|
+
- `latest` is `0.4.0`; the `0.5.0` preview targets `next`. Security fixes may ship in minor releases.
|
|
136
166
|
|
|
137
167
|
## Contributing and security
|
|
138
168
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Write local interactive documents in Markdown. Add input controls, name parameters with `bind`, and connect prose, formulas, charts and diagrams with `{{ expressions }}`. Document authors do not write JavaScript or CSS.
|
|
6
6
|
|
|
7
|
-
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.
|
|
7
|
+
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.0` is the preview for the `next` channel and adds the `reactive-md/editor` source editor; `latest` remains `0.4.0`. Syntax revision stays `local-draft-2`. See [README-ch.md](README-ch.md) for the Chinese overview.
|
|
8
8
|
|
|
9
9
|
## Start here
|
|
10
10
|
|
|
@@ -14,10 +14,13 @@ Local mode uses HTML-style tags, with parameters and table data written directly
|
|
|
14
14
|
- [Shareable documents and static export](docs/shareable-export-en.md): single-file interactive HTML, static output, versioned state files, assets, the CLI and the standalone browser API.
|
|
15
15
|
- [Theme protocol](docs/theme-protocol-en.md): document theme selection, custom CSS and light/dark modes.
|
|
16
16
|
- [Author tools](docs/author-tools-en.md): source highlighting, completion, binding navigation, rename, formatting and command-line lint.
|
|
17
|
+
- [React source editor](docs/editor-en.md): controlled editor, props, ref handle, diagnostics, locale, theme and history.
|
|
17
18
|
- [Standalone integration examples](examples/integration/README.md): Node core and React pages you can copy and run outside the repository.
|
|
18
19
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, the diagnostics contract and supported platforms.
|
|
19
20
|
- [Component protocol](docs/component-protocol-en.md) · [Component development guide](docs/component-development-en.md): declarations, behavior contracts and compatibility acceptance for new components.
|
|
20
|
-
- [0.
|
|
21
|
+
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
22
|
+
- [0.4.1 release notes](docs/release-0.4.1-en.md): visual and interaction fixes, compatible with 0.4.0.
|
|
23
|
+
- [0.4.0 release and migration](docs/release-0.4.0-en.md): what the minor series adds and how to upgrade from `0.3.1` / `local-draft-1`.
|
|
21
24
|
|
|
22
25
|
## Write a document
|
|
23
26
|
|
|
@@ -32,19 +35,27 @@ Monthly cost: **{{ people * (annual ? 80 : 100) }} USD**.
|
|
|
32
35
|
|
|
33
36
|
Inputs update the result immediately, and the panel includes a restore-defaults action. A standalone counter is a single line: `<counter label="People">`.
|
|
34
37
|
|
|
35
|
-
`0.4.0` adds `local-draft-2`, named calculations, validation, collections, themes and offline HTML export. `0.3.1
|
|
38
|
+
`0.4.0` adds `local-draft-2`, named calculations, validation, collections, themes and offline HTML export. The earlier `0.3.1` release uses `local-draft-1`. See [0.4.0 release and migration](docs/release-0.4.0-en.md).
|
|
36
39
|
|
|
37
40
|
## Install
|
|
38
41
|
|
|
39
42
|
Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
|
|
40
43
|
|
|
44
|
+
```sh
|
|
45
|
+
npm install reactive-md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`latest` resolves to `0.4.0`. The 0.5.0 preview targets `next`:
|
|
49
|
+
|
|
41
50
|
```sh
|
|
42
51
|
npm install reactive-md@next
|
|
52
|
+
# or pin the preview
|
|
53
|
+
npm install reactive-md@0.5.0
|
|
43
54
|
```
|
|
44
55
|
|
|
45
|
-
|
|
56
|
+
Read the [0.5.0 release notes](docs/release-0.5.0-en.md) before using the preview, and the [migration guide](docs/release-0.4.0-en.md) before upgrading from `0.3.1` / `local-draft-1`.
|
|
46
57
|
|
|
47
|
-
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`.
|
|
58
|
+
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.0.
|
|
48
59
|
|
|
49
60
|
The core `reactive-md` entry does not depend on React:
|
|
50
61
|
|
|
@@ -82,6 +93,23 @@ export function Article({ source }: { source: string }) {
|
|
|
82
93
|
|
|
83
94
|
`LocalReactiveDocument` compiles and manages the runtime for you. To control compilation, lifecycle or URL policy yourself, use `LocalDocumentView` as described in [Local mode integration](docs/local-integration-en.md).
|
|
84
95
|
|
|
96
|
+
## Edit source with React
|
|
97
|
+
|
|
98
|
+
The 0.5.0 preview adds a reusable source editor at `reactive-md/editor`, with its own stylesheet at `reactive-md/editor/styles.css`. The component is controlled and requires React 19:
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
import { useState } from 'react';
|
|
102
|
+
import { ReactiveMarkdownEditor } from 'reactive-md/editor';
|
|
103
|
+
import 'reactive-md/editor/styles.css';
|
|
104
|
+
|
|
105
|
+
export function Editor() {
|
|
106
|
+
const [source, setSource] = useState('# Notes');
|
|
107
|
+
return <ReactiveMarkdownEditor value={source} onChange={setSource} />;
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The editor handles highlighting, formatting and insertion tools, completion, binding tools, undo and redo, and line numbers. It does not compile or render a preview; keep the source in your app and render it with `reactive-md/react`. See [React source editor](docs/editor-en.md) for the props, ref handle, diagnostics, themes, locales and history.
|
|
112
|
+
|
|
85
113
|
## Share documents
|
|
86
114
|
|
|
87
115
|
Build a self-contained HTML file that readers can open offline, or a script-free static snapshot:
|
|
@@ -121,8 +149,10 @@ demo/ Standalone Playground app
|
|
|
121
149
|
- [Local mode integration](docs/local-integration-en.md): core and React API, URL policy, lifecycle, styling and version pinning.
|
|
122
150
|
- [Shareable documents and static export](docs/shareable-export-en.md): CLI build/lint, state files, local image inlining, printing and the standalone browser runtime.
|
|
123
151
|
- [Feature tours and examples](examples/local/README.md) and [standalone integrations](examples/integration/README.md).
|
|
152
|
+
- [React source editor](docs/editor-en.md): controlled editor for `.reactive.md` source, with its own stylesheet.
|
|
124
153
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, diagnostics and supported platforms.
|
|
125
|
-
- [0.
|
|
154
|
+
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
155
|
+
- [0.4.0 release and migration](docs/release-0.4.0-en.md): the upgrade checklist for that minor series.
|
|
126
156
|
- [Component protocol](docs/component-protocol-en.md) and [component development guide](docs/component-development-en.md): contribution contracts, a proposal template and acceptance cases.
|
|
127
157
|
- [Performance measurements](docs/performance-en.md) and [release checklist](docs/releasing-en.md).
|
|
128
158
|
|
|
@@ -132,7 +162,7 @@ See the [contributing guide](CONTRIBUTING.md) for development and test commands.
|
|
|
132
162
|
|
|
133
163
|
- CI targets Node 22.12 and Node 24 with Playwright Chromium; local browser checks use Microsoft Edge. The packed check covers static SSR, and `npm run test:shareable` covers the single-file export's static-first hydration. General SSR hydration outside that path, Firefox and WebKit remain unverified.
|
|
134
164
|
- 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
|
|
135
|
-
- `0.4.0
|
|
165
|
+
- `latest` is `0.4.0`; the `0.5.0` preview targets `next`. Security fixes may ship in minor releases.
|
|
136
166
|
|
|
137
167
|
## Contributing and security
|
|
138
168
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
Reactive MD bundles its Markdown dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler. This file preserves license texts for those installed dependency trees, including supporting type packages. The library React entry uses host-provided React and React DOM peers.
|
|
3
|
+
Reactive MD bundles its Markdown and syntax-highlighting dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler. This file preserves license texts for those installed dependency trees, including supporting type packages. The library React entry uses host-provided React and React DOM peers.
|
|
4
4
|
|
|
5
5
|
Regenerate after dependency updates with `node scripts/generate-notices.mjs`.
|
|
6
6
|
|
|
@@ -32,6 +32,34 @@ MIT License
|
|
|
32
32
|
SOFTWARE
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
## @types/hast@3.0.5
|
|
36
|
+
|
|
37
|
+
Declared license: MIT
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
MIT License
|
|
41
|
+
|
|
42
|
+
Copyright (c) Microsoft Corporation.
|
|
43
|
+
|
|
44
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
45
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
46
|
+
in the Software without restriction, including without limitation the rights
|
|
47
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
48
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
49
|
+
furnished to do so, subject to the following conditions:
|
|
50
|
+
|
|
51
|
+
The above copyright notice and this permission notice shall be included in all
|
|
52
|
+
copies or substantial portions of the Software.
|
|
53
|
+
|
|
54
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
55
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
56
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
57
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
58
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
59
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
60
|
+
SOFTWARE
|
|
61
|
+
```
|
|
62
|
+
|
|
35
63
|
## @types/mdast@4.0.4
|
|
36
64
|
|
|
37
65
|
Declared license: MIT
|
|
@@ -360,6 +388,42 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
360
388
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
361
389
|
```
|
|
362
390
|
|
|
391
|
+
## highlight.js@11.11.2
|
|
392
|
+
|
|
393
|
+
Declared license: BSD-3-Clause
|
|
394
|
+
|
|
395
|
+
```text
|
|
396
|
+
BSD 3-Clause License
|
|
397
|
+
|
|
398
|
+
Copyright (c) 2006, Ivan Sagalaev.
|
|
399
|
+
All rights reserved.
|
|
400
|
+
|
|
401
|
+
Redistribution and use in source and binary forms, with or without
|
|
402
|
+
modification, are permitted provided that the following conditions are met:
|
|
403
|
+
|
|
404
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
405
|
+
list of conditions and the following disclaimer.
|
|
406
|
+
|
|
407
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
408
|
+
this list of conditions and the following disclaimer in the documentation
|
|
409
|
+
and/or other materials provided with the distribution.
|
|
410
|
+
|
|
411
|
+
* Neither the name of the copyright holder nor the names of its
|
|
412
|
+
contributors may be used to endorse or promote products derived from
|
|
413
|
+
this software without specific prior written permission.
|
|
414
|
+
|
|
415
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
416
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
417
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
418
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
419
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
420
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
421
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
422
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
423
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
424
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
425
|
+
```
|
|
426
|
+
|
|
363
427
|
## is-plain-obj@4.1.0
|
|
364
428
|
|
|
365
429
|
Declared license: MIT
|
|
@@ -405,6 +469,35 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
405
469
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
406
470
|
```
|
|
407
471
|
|
|
472
|
+
## lowlight@3.3.0
|
|
473
|
+
|
|
474
|
+
Declared license: MIT
|
|
475
|
+
|
|
476
|
+
```text
|
|
477
|
+
(The MIT License)
|
|
478
|
+
|
|
479
|
+
Copyright (c) Titus Wormer <tituswormer@gmail.com>
|
|
480
|
+
|
|
481
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
482
|
+
a copy of this software and associated documentation files (the
|
|
483
|
+
'Software'), to deal in the Software without restriction, including
|
|
484
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
485
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
486
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
487
|
+
the following conditions:
|
|
488
|
+
|
|
489
|
+
The above copyright notice and this permission notice shall be
|
|
490
|
+
included in all copies or substantial portions of the Software.
|
|
491
|
+
|
|
492
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
493
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
494
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
495
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
496
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
497
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
498
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
499
|
+
```
|
|
500
|
+
|
|
408
501
|
## markdown-table@3.0.4
|
|
409
502
|
|
|
410
503
|
Declared license: MIT
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.reactive-md-editor .editor-toolbar{--editor-toolbar-bg:#161d29;--editor-toolbar-bg-deep:#101722;--editor-toolbar-border:#ffffff14;--editor-toolbar-line:#ffffff24;--editor-toolbar-ink:#b9c3d2;--editor-toolbar-ink-strong:#fff;--editor-toolbar-muted:#8b99ad;--editor-toolbar-hover:#ffffff14;--editor-toolbar-focus:#7aa2ff;--editor-toolbar-accent:#8fe3d4;z-index:20;width:100%;color:var(--editor-toolbar-ink);background:linear-gradient(180deg, #ffffff09, transparent 45%), linear-gradient(180deg, var(--editor-toolbar-bg), var(--editor-toolbar-bg-deep));border:0;border-bottom:1px solid var(--editor-toolbar-border);border-radius:calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;box-shadow:none;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);flex-wrap:wrap;align-items:center;gap:2px;margin:0;padding:6px 8px;line-height:1;display:flex;position:relative}.reactive-md-editor .editor-toolbar,.reactive-md-editor .editor-toolbar *,.reactive-md-editor .editor-toolbar :before,.reactive-md-editor .editor-toolbar :after{box-sizing:border-box}.reactive-md-editor .editor-toolbar-slot{flex:none;align-items:center;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-slot-native{margin-left:4px}.reactive-md-editor .editor-toolbar-mobile-only{display:none}.reactive-md-editor .editor-toolbar-button{appearance:none;width:30px;height:30px;color:var(--editor-toolbar-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:2px;padding:0;transition:background-color .15s,color .15s,transform .1s,opacity .15s;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-button:active:not(:disabled){background:#ffffff1f;transform:translateY(1px)scale(.97)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]{color:var(--editor-toolbar-ink-strong);background:#ffffff1f}.reactive-md-editor .editor-toolbar-button.is-active{color:#dbe7ff;background:#7aa2ff29;box-shadow:inset 0 0 0 1px #7aa2ff3d}.reactive-md-editor .editor-toolbar-button:disabled{opacity:.34;cursor:not-allowed}.reactive-md-editor .editor-toolbar-icon{flex:none;width:18px;height:18px;display:block}.reactive-md-editor .editor-toolbar-glyph{width:18px;height:18px;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);justify-content:center;align-items:center;font-size:14px;font-weight:650;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-glyph.is-bold{letter-spacing:-.03em;font-size:15px;font-weight:850}.reactive-md-editor .editor-toolbar-glyph.is-italic{padding-right:1px;font-family:Georgia,Times New Roman,serif;font-size:16px;font-style:italic;font-weight:700}.reactive-md-editor .editor-toolbar-heading-trigger{gap:4px;width:auto;min-width:76px;padding:0 8px}.reactive-md-editor .editor-toolbar-heading-label{letter-spacing:.005em;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12.5px;font-weight:650;overflow:hidden}.reactive-md-editor .editor-toolbar-heading-label-compact{display:none}.reactive-md-editor .editor-toolbar-list-trigger{gap:0;width:auto;padding:0 4px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:4px;width:auto;padding:0 7px 0 6px}.reactive-md-editor .editor-toolbar-insert-label{letter-spacing:.005em;white-space:nowrap;font-size:12px;font-weight:600}.reactive-md-editor .editor-toolbar-chevron{opacity:.55;width:9px;height:9px;margin-left:-1px;transition:opacity .15s}.reactive-md-editor .editor-toolbar-button:hover .editor-toolbar-chevron,.reactive-md-editor .editor-toolbar-button[aria-expanded=true] .editor-toolbar-chevron{opacity:.95}.reactive-md-editor .editor-toolbar-components-trigger{color:#d6e3ff;letter-spacing:.01em;background:linear-gradient(135deg,#4a80ff38,#2dd4bf26);border:1px solid #7aa2ff42;border-radius:999px;gap:5px;width:auto;min-width:94px;padding:0 10px 0 8px;font-size:12px;font-weight:650}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:16px;height:16px;color:var(--editor-toolbar-accent)}.reactive-md-editor .editor-toolbar-components-label{white-space:nowrap}.reactive-md-editor .editor-toolbar-components-label-compact{display:none}.reactive-md-editor .editor-toolbar-components-trigger[aria-expanded=true]{color:#fff;background:linear-gradient(135deg,#548bff57,#2dd4bf3d);border-color:#8fe3d47a}.reactive-md-editor .editor-toolbar-history{align-items:center;gap:1px;margin-left:auto;display:flex}@container editor-frame (width<=500px){.reactive-md-editor .editor-toolbar{gap:1px}.reactive-md-editor .editor-toolbar-heading-trigger{padding-inline:5px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding-inline:4px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;padding-inline:5px}.reactive-md-editor .editor-toolbar-history>.editor-toolbar-desktop-only{display:none}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:none}}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button[data-tooltip]:after{content:attr(data-tooltip);z-index:90;color:#e6edf7;font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:0;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;background:#0b111c;border:1px solid #ffffff1f;border-radius:6px;padding:4px 7px;font-size:11.5px;font-weight:500;line-height:1.4;transition:opacity .12s,transform .12s,visibility .12s;position:absolute;top:calc(100% + 7px);left:50%;transform:translate(-50%,-2px);box-shadow:0 8px 20px -10px #000000e6}.reactive-md-editor .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-button[data-tooltip]:focus-visible:after{opacity:1;visibility:visible;transform:translate(-50%)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]:after,.reactive-md-editor .editor-toolbar.is-menu-open .editor-toolbar-button[data-tooltip]:after{display:none}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:after{left:auto;right:0;transform:translateY(-2px)}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:focus-visible:after{transform:translateY(0)}}.reactive-md-editor .editor-toolbar-popover{z-index:50;color:#dbe4f0;transform-origin:0 0;background:linear-gradient(#ffffff06,#0000 40%),linear-gradient(#151d2a,#101722 72%);border:1px solid #ffffff1a;border-radius:12px;animation:.13s ease-out editor-toolbar-pop-in;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 24px 50px -20px #000000e6,0 8px 22px -12px #0009,inset 0 1px #ffffff0d}.reactive-md-editor .editor-toolbar-heading-menu{width:min(204px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-list-menu{width:min(220px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-insert-menu{width:min(228px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 0;width:min(188px,100vw - 24px);padding:6px;left:auto;right:0}.reactive-md-editor .editor-toolbar-menu-item{appearance:none;color:#c8d3e2;width:100%;min-height:32px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:9px;padding:6px 9px;font-size:12.5px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-menu-item:disabled{opacity:.36;cursor:not-allowed}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]{color:#eef4ff;background:#548bff24}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]:after{content:"✓";color:#9dbcff;margin-left:auto;font-size:12px;font-weight:700}.reactive-md-editor .editor-toolbar-menu-icon{color:#8fa2ba;width:16px;height:16px}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true] .editor-toolbar-menu-icon,.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled) .editor-toolbar-menu-icon{color:#b9cff6}.reactive-md-editor .editor-toolbar-menu-divider{background:#ffffff14;height:1px;margin:4px 6px}.reactive-md-editor .editor-toolbar-heading-item{gap:9px;padding:5px 8px}.reactive-md-editor .editor-toolbar-list-item,.reactive-md-editor .editor-toolbar-insert-item,.reactive-md-editor .editor-toolbar-more-item{gap:9px}.reactive-md-editor .editor-toolbar-heading-sample{color:#93a4bb;flex:0 0 26px;justify-content:center;align-items:center;font-family:Georgia,Times New Roman,serif;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-heading-sample.is-level-0{font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:.06em;font-size:10px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-1{color:#c9d9fa;font-size:15px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-2{color:#c2d2f1;font-size:14px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-3{color:#b8c8e4;font-size:13px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-4{color:#aebdd6;font-size:12px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-5{color:#a3b1c8;font-size:11.5px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-6{color:#98a6bb;font-size:11px}.reactive-md-editor .editor-toolbar-emoji-menu{width:min(300px,100vw - 24px);padding:8px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;display:grid}.reactive-md-editor .editor-toolbar-emoji{appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;width:100%;height:30px;padding:0;font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:17px;line-height:1;transition:background-color .12s,transform .1s;display:inline-flex}.reactive-md-editor .editor-toolbar-emoji:active{transform:scale(.92)}.reactive-md-editor .editor-toolbar-native-menu{transform-origin:100% 0;flex-direction:column;width:min(364px,100vw - 24px);max-height:min(430px,72vh);padding:8px;display:flex;left:auto;right:0;overflow:hidden}.reactive-md-editor .editor-toolbar-native-head{flex:none;justify-content:space-between;align-items:center;gap:8px;padding:2px 2px 8px;display:flex}.reactive-md-editor .editor-toolbar-native-title{color:#eef4ff;letter-spacing:.01em;font-size:13px;font-weight:700}.reactive-md-editor .editor-toolbar-close{appearance:none;color:#9aa9bd;cursor:pointer;background:0 0;border:0;border-radius:7px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background-color .12s,color .12s;display:inline-flex}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-search{background:#ffffff0b;border:1px solid #ffffff17;border-radius:8px;flex:none;align-items:center;gap:7px;margin-bottom:6px;padding:6px 9px;transition:background-color .15s,border-color .15s,box-shadow .15s;display:flex}.reactive-md-editor .editor-toolbar-search:focus-within{background:#ffffff0f;border-color:#7aa2ffa6;box-shadow:0 0 0 2px #548bff2e}.reactive-md-editor .editor-toolbar-search-icon{color:#7f8fa6;width:15px;height:15px}.reactive-md-editor .editor-toolbar-search-input{appearance:none;color:#e6edf7;width:100%;min-width:0;font:inherit;background:0 0;border:0;outline:none;flex:auto;margin:0;padding:0;font-size:12.5px;line-height:1.4}.reactive-md-editor .editor-toolbar-search-input::placeholder{color:#718096}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-decoration{appearance:none}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-cancel-button{appearance:none}.reactive-md-editor .editor-toolbar-native-scroll{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff2e transparent;flex:auto;min-height:0;max-height:300px;padding-right:3px;overflow-y:auto}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar{width:6px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-track{background:0 0}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb{background:#ffffff29;border-radius:999px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb:hover{background:#ffffff42}.reactive-md-editor .editor-toolbar-native-group{padding:2px 0 4px}.reactive-md-editor .editor-toolbar-native-group+.editor-toolbar-native-group{border-top:1px solid #ffffff0f;margin-top:3px;padding-top:6px}.reactive-md-editor .editor-toolbar-native-group-title{color:#8595ac;letter-spacing:.09em;text-transform:uppercase;margin:2px 8px 5px;font-size:11px;font-weight:700}.reactive-md-editor .editor-toolbar-native-item{appearance:none;color:#c9d4e3;width:100%;min-height:42px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:7px 8px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-native-copy{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.reactive-md-editor .editor-toolbar-native-label{color:#e5ecf7;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.reactive-md-editor .editor-toolbar-native-description{color:#95a4b9;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.5;display:block;overflow:hidden}.reactive-md-editor .editor-toolbar-native-badge{color:var(--editor-toolbar-accent);letter-spacing:.04em;border:1px solid #8fe3d447;border-radius:4px;flex:none;padding:0 4px;font-size:9px;font-weight:650;line-height:1.55}.reactive-md-editor .editor-toolbar-native-add{color:#7f93ad;opacity:.35;flex:none;width:14px;height:14px;transition:color .12s,opacity .12s}.reactive-md-editor .editor-toolbar-menu-empty{color:var(--editor-toolbar-muted);text-align:center;margin:16px 8px;font-size:12px;line-height:1.6}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button:hover:not(:disabled){color:var(--editor-toolbar-ink-strong);background:var(--editor-toolbar-hover)}.reactive-md-editor .editor-toolbar-button.is-active:hover:not(:disabled){color:#eef4ff;background:#7aa2ff3b}.reactive-md-editor .editor-toolbar-components-trigger:hover:not(:disabled){color:#fff;background:linear-gradient(135deg,#548bff52,#2dd4bf3d);border-color:#7aa2ff80}.reactive-md-editor .editor-toolbar-emoji:hover{background:#ffffff17}.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled),.reactive-md-editor .editor-toolbar-native-item:hover{color:#fff;background:#ffffff14}.reactive-md-editor .editor-toolbar-native-item:hover .editor-toolbar-native-add{color:#93b6ff;opacity:1}.reactive-md-editor .editor-toolbar-close:hover{color:#fff;background:#ffffff14}}.reactive-md-editor .editor-toolbar-button:focus-visible,.reactive-md-editor .editor-toolbar-emoji:focus-visible,.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible,.reactive-md-editor .editor-toolbar-close:focus-visible{outline:2px solid var(--editor-toolbar-focus);outline-offset:2px}.reactive-md-editor .editor-toolbar-emoji:focus-visible{outline-offset:1px}.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible{outline-offset:-2px}@media (width<=640px){.reactive-md-editor .editor-toolbar{gap:0;padding:4px 2px}.reactive-md-editor .editor-toolbar-desktop-only{display:none!important}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-slot-native{margin-left:1px}.reactive-md-editor .editor-toolbar-heading-trigger{gap:2px;min-width:44px;padding:0 4px}.reactive-md-editor .editor-toolbar-heading-label{font-size:12px}.reactive-md-editor .editor-toolbar-heading-label-full{display:none}.reactive-md-editor .editor-toolbar-heading-label-compact{display:inline}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:flex}.reactive-md-editor .editor-toolbar-list-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding:0 3px}.reactive-md-editor .editor-toolbar-insert-trigger .editor-toolbar-chevron{display:none}.reactive-md-editor .editor-toolbar-insert-label{font-size:11.5px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;min-width:0;padding:0 6px 0 5px;font-size:11px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-components-label-full{display:none}.reactive-md-editor .editor-toolbar-components-label-compact{display:inline}.reactive-md-editor .editor-toolbar-history{gap:0}.reactive-md-editor .editor-toolbar-heading-menu{width:min(200px,100vw - 24px)}.reactive-md-editor .editor-toolbar-list-menu{width:min(208px,100vw - 48px)}.reactive-md-editor .editor-toolbar-insert-menu{transform-origin:100% 100%;width:min(216px,100vw - 24px);left:auto;right:0}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 100%;width:min(188px,100vw - 24px)}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu,.reactive-md-editor .editor-toolbar-insert-menu,.reactive-md-editor .editor-toolbar-more-menu{overscroll-behavior:contain;animation-name:editor-toolbar-pop-up;position:fixed;top:auto;bottom:calc(100% + 6px);overflow-y:auto}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu{transform-origin:0 100%}.reactive-md-editor .editor-toolbar-emoji-menu{z-index:80;overscroll-behavior:contain;transform-origin:bottom;width:auto;max-width:380px;margin:0 auto;position:fixed;inset:auto 8px 12px;overflow-x:auto}.reactive-md-editor .editor-toolbar-native-menu{z-index:80;transform-origin:bottom;width:auto;max-height:min(68vh,460px);position:fixed;inset:auto 10px 10px}.reactive-md-editor .editor-toolbar-native-scroll{max-height:none}}@media (width<=400px){.reactive-md-editor .editor-toolbar-heading-trigger{padding:0 2px}.reactive-md-editor .editor-toolbar-insert-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-components-trigger{gap:1px;padding:0 3px;font-size:10.5px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:13px;height:13px}}@media (pointer:coarse){.reactive-md-editor .editor-toolbar-button{border-radius:10px;width:44px;height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger,.reactive-md-editor .editor-toolbar-insert-trigger,.reactive-md-editor .editor-toolbar-components-trigger{width:auto;min-height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger{min-width:44px}.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-search{min-height:44px}.reactive-md-editor .editor-toolbar-emoji-menu{width:auto;padding:6px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,44px);justify-content:center;gap:1px}.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-close{width:44px;height:44px}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:18px;height:18px}.reactive-md-editor .editor-toolbar-native-item{padding:8px}}@media (prefers-reduced-motion:reduce){.reactive-md-editor .editor-toolbar-popover{animation:none}.reactive-md-editor .editor-toolbar-button,.reactive-md-editor .editor-toolbar-button[data-tooltip]:after,.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-native-add,.reactive-md-editor .editor-toolbar-close{transition-duration:.01ms}.reactive-md-editor .editor-toolbar-button:active:not(:disabled),.reactive-md-editor .editor-toolbar-emoji:active{transform:none}}@keyframes editor-toolbar-pop-in{0%{opacity:0;transform:translateY(-4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes editor-toolbar-pop-up{0%{opacity:0;transform:translateY(4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.reactive-md-editor .editor-input-wrap{flex:auto;min-width:0;min-height:0;display:flex;position:relative}.reactive-md-editor .editor-input-wrap>.editor-input{color:#0000;-webkit-text-fill-color:transparent;width:100%;height:100%;caret-color:var(--blue);flex:none;position:absolute;inset:0}.reactive-md-editor .editor-input-wrap>.editor-input::selection{background:color-mix(in srgb, var(--blue) 30%, transparent);color:#0000;-webkit-text-fill-color:transparent}.reactive-md-editor .author-highlight{height:100%;padding:var(--space-3) var(--space-4);color:var(--code-ink);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;right:0;overflow:hidden}.reactive-md-editor .author-highlight-content{will-change:transform;contain:layout style paint;transform:translate(0,0)}.reactive-md-editor .author-token-tag{color:color-mix(in srgb, var(--blue) 82%, var(--code-ink))}.reactive-md-editor .author-token-attribute{color:color-mix(in srgb, var(--teal) 72%, var(--code-ink))}.reactive-md-editor .author-token-string{color:color-mix(in srgb, var(--success) 78%, var(--code-ink))}.reactive-md-editor .author-token-expression{color:color-mix(in srgb, var(--warning) 74%, var(--code-ink))}.reactive-md-editor .author-token-binding{color:color-mix(in srgb, var(--blue-deep) 70%, var(--code-ink));text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-underline-offset:2px}.reactive-md-editor .author-token-markdown{color:color-mix(in srgb, var(--code-ink) 78%, var(--code-bg))}.reactive-md-editor .author-token-math{color:color-mix(in srgb, var(--warning) 60%, var(--code-ink))}.reactive-md-editor .author-token-code{color:color-mix(in srgb, var(--code-ink) 62%, var(--code-bg))}.reactive-md-editor .author-token-comment{color:color-mix(in srgb, var(--code-ink) 52%, var(--code-bg))}.reactive-md-editor .editor-shell.is-composing .author-highlight{visibility:hidden}.reactive-md-editor .editor-shell.is-composing .editor-input-wrap>.editor-input{color:var(--code-ink);-webkit-text-fill-color:currentColor}@media (width<=620px){.reactive-md-editor .author-highlight{padding:var(--space-3);font-size:var(--text-xs)}}.reactive-md-editor .source-authoring{margin-top:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);position:relative;overflow:hidden}.reactive-md-editor .authoring-bar{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3);background:var(--surface-subtle);border-bottom:1px solid var(--line);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-title{color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.04em;text-transform:uppercase}.reactive-md-editor .authoring-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-button{min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);line-height:1}.reactive-md-editor .authoring-button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.reactive-md-editor .authoring-button:active:not(:disabled){background:var(--surface-active)}.reactive-md-editor .authoring-button:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-button:disabled{opacity:var(--disabled-opacity);cursor:not-allowed}.reactive-md-editor .authoring-button.authoring-primary{background:var(--blue);border-color:var(--blue);color:var(--surface)}.reactive-md-editor .authoring-button.authoring-primary:hover:not(:disabled){background:var(--blue-deep);border-color:var(--blue-deep)}.reactive-md-editor .authoring-body{gap:var(--space-3);padding:var(--space-3);display:grid}.reactive-md-editor .authoring-caret{align-items:center;gap:var(--space-1) var(--space-2);color:var(--ink);font-size:var(--text-sm);flex-wrap:wrap;margin:0;display:flex}.reactive-md-editor .authoring-caret-value{align-items:center;gap:var(--space-1) var(--space-3);flex-wrap:wrap;min-width:0;display:flex}.reactive-md-editor .authoring-caret-value>strong{font-family:var(--font-mono);font-size:var(--text-sm);overflow-wrap:anywhere}.reactive-md-editor .authoring-type{padding:1px var(--space-2);background:var(--neutral-soft);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-size:var(--text-xs)}.reactive-md-editor .authoring-label{color:var(--ink-muted);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.02em}.reactive-md-editor .authoring-muted,.reactive-md-editor .authoring-empty{color:var(--ink-muted);font-size:var(--text-sm);margin:0}.reactive-md-editor .authoring-row{gap:var(--space-1);min-width:0;display:grid}.reactive-md-editor .authoring-binding-list{gap:var(--space-1);flex-wrap:wrap;max-height:108px;display:flex;overflow:auto}.reactive-md-editor .authoring-binding-chip{align-items:center;gap:var(--space-1);max-width:100%;min-height:var(--control-height-sm);padding:0 var(--space-2);overflow-wrap:anywhere;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-family:var(--font-mono);font-size:var(--text-xs);cursor:pointer;display:inline-flex}.reactive-md-editor .authoring-binding-chip:hover{background:var(--surface-hover);color:var(--ink)}.reactive-md-editor .authoring-binding-chip[aria-pressed=true]{background:color-mix(in srgb, var(--blue) 12%, var(--surface));border-color:var(--blue);color:var(--ink);box-shadow:inset 0 -2px 0 var(--blue)}.reactive-md-editor .authoring-binding-chip:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-binding-count{color:var(--ink-muted);font-size:10px}.reactive-md-editor .authoring-locations{gap:var(--space-1);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-location{align-items:center;gap:var(--space-1);min-height:var(--control-height-sm);padding:0 var(--space-2);background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-control);color:var(--ink-soft);font-size:var(--text-xs);cursor:pointer;flex-wrap:wrap;display:inline-flex}.reactive-md-editor .authoring-location:hover{background:var(--surface-hover);border-color:var(--line-strong);color:var(--ink)}.reactive-md-editor .authoring-location:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-location.is-declaration{border-left:2px solid var(--blue)}.reactive-md-editor .authoring-location.is-reference{border-left:2px solid var(--success)}.reactive-md-editor .authoring-location-position{color:var(--ink-muted);font-family:var(--font-mono);font-size:10px}.reactive-md-editor .authoring-rename{gap:var(--space-1);padding-top:var(--space-3);border-top:1px solid var(--line);display:grid}.reactive-md-editor .authoring-rename-row{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-rename-input{min-width:0;min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-family:var(--font-mono);font-size:var(--text-sm);flex:180px}.reactive-md-editor .authoring-rename-input:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-rename-input:disabled{opacity:var(--disabled-opacity)}.reactive-md-editor .authoring-error{color:var(--danger);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-hint{color:var(--ink-muted);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-status{color:var(--success);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-completion{border-bottom:1px solid var(--line);background:var(--surface)}.reactive-md-editor .authoring-completion-head{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);display:flex}.reactive-md-editor .authoring-completion-count{color:var(--ink-muted);font-weight:var(--weight-regular)}.reactive-md-editor .authoring-completion-list{max-height:220px;padding:0 var(--space-2) var(--space-2);overflow:auto}.reactive-md-editor .authoring-completion-item{align-items:baseline;gap:2px var(--space-2);width:100%;min-height:var(--control-height-sm);padding:var(--space-1) var(--space-2);border-radius:var(--radius-control);color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:auto minmax(0,1fr);display:grid}.reactive-md-editor .authoring-completion-item:hover,.reactive-md-editor .authoring-completion-item.is-active{background:color-mix(in srgb, var(--blue) 10%, var(--surface));border-color:var(--blue-line)}.reactive-md-editor .authoring-completion-item:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-kind{padding:1px var(--space-1);background:var(--neutral-soft);border-radius:var(--radius-control);color:var(--ink-muted);font-size:10px;font-weight:var(--weight-semibold);text-transform:uppercase;white-space:nowrap}.reactive-md-editor .authoring-kind.is-tag{color:var(--blue-deep)}.reactive-md-editor .authoring-kind.is-attribute{color:var(--teal)}.reactive-md-editor .authoring-kind.is-binding{color:var(--warning)}.reactive-md-editor .authoring-completion-label{min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reactive-md-editor .authoring-completion-detail{min-width:0;color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;grid-column:2;font-size:10px;overflow:hidden}@media (width<=640px){.reactive-md-editor .authoring-bar,.reactive-md-editor .authoring-body{padding:var(--space-2)}.reactive-md-editor .authoring-button,.reactive-md-editor .authoring-binding-chip,.reactive-md-editor .authoring-location,.reactive-md-editor .authoring-rename-input,.reactive-md-editor .authoring-completion-item{min-height:var(--control-height-lg)}.reactive-md-editor .authoring-rename-input{flex-basis:100%}.reactive-md-editor .authoring-completion-list{max-height:180px}}.reactive-md-editor{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--surface:#fff;--surface-subtle:#f7f7f5;--surface-hover:color-mix(in srgb, var(--ink) 5%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 8%, var(--surface));--ink:#232323;--ink-soft:#4f4f4d;--ink-muted:#6f6f6c;--line:#e4e3df;--line-strong:#d0cfc9;--blue:#3f5f8f;--blue-deep:#33507a;--blue-soft:#eef1f6;--blue-line:#d8dfe9;--teal:#167875;--success:var(--teal);--warning:#8a5a10;--danger:#a2273a;--neutral-soft:#f1f0ed;--focus:var(--blue);--focus-outline:2px solid var(--focus);--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent);--code-bg:#0f172a;--code-bg-deep:#0b1220;--code-ink:#dce6ff;--text-xs:12.5px;--text-sm:14px;--text-md:16px;--leading-tight:1.3;--leading-snug:1.5;--leading-normal:1.6;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-control:6px;--radius-card:12px;--radius-pill:999px;--radius-md:var(--radius-card);--control-height-sm:32px;--control-height-lg:44px;--control-inset-x:19px;--disabled-opacity:.45;--motion-fast:.16s;--ease-standard:cubic-bezier(.22, .61, .36, 1);--font-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--font-mono:"Cascadia Code", "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;min-width:0;color:var(--ink);font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-normal);flex-direction:column;display:flex}.reactive-md-editor,.reactive-md-editor *,.reactive-md-editor :before,.reactive-md-editor :after{box-sizing:border-box}.reactive-md-editor button,.reactive-md-editor input,.reactive-md-editor textarea{font:inherit}.reactive-md-editor[data-editor-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}@media (prefers-color-scheme:dark){.reactive-md-editor[data-editor-theme=auto]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}}.reactive-md-editor .reactive-md-editor-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.reactive-md-editor .editor-frame{background:var(--code-bg);border:1px solid color-mix(in srgb, var(--code-ink) 12%, var(--code-bg));border-radius:var(--radius-card);min-width:0;height:560px;min-height:280px;transition:border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);flex-direction:column;display:flex;position:relative;overflow:visible;container:editor-frame/inline-size}.reactive-md-editor .editor-frame:focus-within{border-color:var(--focus);box-shadow:var(--focus-ring)}.reactive-md-editor .editor-shell{background:var(--code-bg);border-radius:0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);border:0;flex:auto;height:auto;min-height:0;display:flex;position:relative;overflow:hidden}.reactive-md-editor .editor-gutter{flex:0 0 var(--space-7);padding:var(--space-3) 0;background:var(--code-bg-deep);border-right:1px solid color-mix(in srgb, var(--code-ink) 10%, var(--code-bg-deep));color:color-mix(in srgb, var(--code-ink) 48%, var(--code-bg-deep));font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);text-align:right;-webkit-user-select:none;user-select:none;overflow:hidden}.reactive-md-editor .gutter-line{padding-right:var(--space-2);white-space:nowrap;border-left:2px solid #0000;display:block}.reactive-md-editor .gutter-line.is-active{background:color-mix(in srgb, var(--blue) 18%, transparent);border-left-color:var(--blue);color:var(--code-ink)}.reactive-md-editor .gutter-line.is-diagnostic{border-left-color:color-mix(in srgb, var(--danger) 80%, var(--code-ink));color:color-mix(in srgb, var(--danger) 58%, var(--code-ink))}.reactive-md-editor .editor-input{min-width:0;padding:var(--space-3) var(--space-4);color:var(--code-ink);caret-color:var(--blue);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;resize:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;background:0 0;border:0;outline:none;flex:auto;overflow:auto}.reactive-md-editor .editor-mirror{visibility:hidden;pointer-events:none;padding:var(--space-3) var(--space-4);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;position:absolute;top:0;left:0}.reactive-md-editor .editor-input::placeholder{color:color-mix(in srgb, var(--code-ink) 40%, var(--code-bg))}.reactive-md-editor .editor-input:disabled{opacity:.72;cursor:not-allowed}@media (width<=620px){.reactive-md-editor .editor-gutter{font-size:var(--text-xs);flex-basis:40px}.reactive-md-editor .editor-input,.reactive-md-editor .editor-mirror{padding:var(--space-3);font-size:var(--text-xs)}}
|
|
2
|
+
/*$vite$:1*/
|