@alauda/react-code-editor 0.1.0-next.20260903.1788425608 → 0.1.0-next.20261021.1792553055
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/chunks/CodeEditor-DhYaoBaC.js +892 -0
- package/chunks/CodeEditor-DhYaoBaC.js.map +1 -0
- package/chunks/yaml/yaml.worker.js +49870 -1
- package/index.d.ts +38 -2
- package/index.js +48 -30
- package/index.js.map +1 -1
- package/package.json +2 -1
- package/yaml/index.d.ts +31 -1
- package/yaml/index.js +7 -3
- package/yaml/index.js.map +1 -1
- package/chunks/CodeEditor-BI8PAcmS.js +0 -478
- package/chunks/CodeEditor-BI8PAcmS.js.map +0 -1
package/README.md
CHANGED
|
@@ -28,6 +28,10 @@ import { ResourceYamlEditor } from '@alauda/react-code-editor/yaml';
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
- 根入口:受控编辑器、Diff 编辑器、语义 handle、diagnostics、toolbar actions 和 labels。
|
|
31
|
+
- `CodeEditor` 提供 `codeEditorActionPresets`,对应 Angular 的 create/view/update/logs action 组合;Import、Export、Recover、Clear、Theme 等通用 action 通过受控 props 与回调接入,资源语义仍由调用方负责。
|
|
32
|
+
- `onFullscreenChange` 只报告编辑器自己的 fullscreen 状态;`sidebar`、`toolbarActions` 和 `toolbarEnd` 是调用方插槽,不获取 Kubernetes 数据。
|
|
33
|
+
- `diffMode` 是受控比较视图,配合 `originalValue` 使用;工具栏、modified model、诊断和 fullscreen 生命周期与普通编辑器共用。它不决定业务草稿的初始快照或提交语义。
|
|
34
|
+
- `minimap` 默认 `false`,YAML 工作面可显式启用代码缩略图。局部 `themeMode` 同时作用于代码区、工具栏和边框;`sidebar` 继续使用 Host 主题,不会被编辑器的局部主题覆盖。编辑器不渲染旧的独立状态栏,diagnostics 通过回调交给调用方。
|
|
31
35
|
- `./yaml`:调用方提供 JSON-compatible Schema、稳定 `modelPath` 和可选 Kubernetes mode;本包管理
|
|
32
36
|
YAML language service、Schema owner 和 worker 生命周期。
|
|
33
37
|
- 不要从 `src/**` 或 `dist/**` 深层导入。
|
|
@@ -47,9 +51,10 @@ yarn install
|
|
|
47
51
|
yarn dev
|
|
48
52
|
```
|
|
49
53
|
|
|
50
|
-
打开 `http://localhost:9001`,可以切换 YAML、JSON、Markdown、纯文本和 Diff
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
打开 `http://localhost:9001`,可以切换 YAML、JSON、Markdown、纯文本和 Diff 场景。YAML 场景使用与
|
|
55
|
+
Console YAML workflow 对齐的 create/view/update action presets、Import/Export/Recover/Clear/Theme/Fullscreen、
|
|
56
|
+
Schema/Samples sidebar 和 Try it;Sidebar 是 demo 内的独立 fixture,不依赖 `@alauda/console-ui` 或 Kubernetes SDK。
|
|
57
|
+
也可以验证只读模式与 light/dark theme。`yarn build:demo` 用于验证 playground 的生产构建和 worker 产物;demo 不进入 npm 发布包。
|
|
53
58
|
|
|
54
59
|
完整检查:
|
|
55
60
|
|