@web-ppt/editor 0.5.0-beta.1 → 0.5.0-beta.2
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 +17 -0
- package/README.md +1 -1
- package/dist/dom-identity.d.ts +2 -0
- package/dist/dom-patch.d.ts +1 -1
- package/dist/editor-keyboard.d.ts +4 -1
- package/dist/editor.js +1582 -1208
- package/dist/framework-adapter-types.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/keyboard-context.d.ts +1 -0
- package/dist/keyboard-document.d.ts +8 -0
- package/dist/keyboard-group.d.ts +7 -0
- package/dist/selection-all.d.ts +3 -0
- package/dist/slide-editor-types.d.ts +2 -0
- package/dist/text-editor-types.d.ts +2 -0
- package/dist/text-editor.d.ts +1 -0
- package/dist/text-font-step.d.ts +5 -0
- package/dist/text-keyboard.d.ts +28 -0
- package/dist/text-list-level.d.ts +4 -0
- package/dist/vertex/index.d.ts +2 -0
- package/dist/vertex/types.d.ts +21 -0
- package/dist/vertex/vertex-editor.d.ts +4 -0
- package/dist/vertex.js +338 -0
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
## 未发布
|
|
6
6
|
|
|
7
|
+
## 0.5.0-beta.2 - 2026-08-30
|
|
8
|
+
|
|
9
|
+
### 新增
|
|
10
|
+
|
|
11
|
+
- 无原包文档现在可确定性生成完整 PPTX;`.ppt` 编辑后可明确另存为 `.pptx`,官网同时贯通空白新建、
|
|
12
|
+
真实版式加页、保存下载与本机恢复。
|
|
13
|
+
- 编辑模型与无框架 DOM 层新增组合/解组、九级文本列表升降级、附录 B 快捷键、上下文工具栏、
|
|
14
|
+
顶点编辑扩展和表格样式应用/写回。
|
|
15
|
+
- 新增可选的 `@web-ppt/collab`:字段级 LWW、分数序与确定性页序重物化把 `Editor` 补丁流接到
|
|
16
|
+
可插拔 provider,支持离线幂等回放、remove-wins、远端历史 rebase 和 BroadcastChannel 双标签页。
|
|
17
|
+
OOXML 元素身份由 provider 分配的副本 slot 精确分区;协同包不进入单机 `editor` 入口。
|
|
18
|
+
|
|
19
|
+
### 改进
|
|
20
|
+
|
|
21
|
+
- 官网延后加载编辑引擎,样本在构建期预渲染并内联关键 CSS,同时补齐 WCAG 对比度与稳定 chunk 命名。
|
|
22
|
+
- 浏览器性能契约将功能失败与预算超标分离,并在检测到并行负载时只允许一次全新 Chrome 重测。
|
|
23
|
+
|
|
7
24
|
## 0.5.0-beta.1 - 2026-08-27
|
|
8
25
|
|
|
9
26
|
### 新增
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ source file once, owns its parsed resources and headless editing model, and moun
|
|
|
7
7
|
slide views without uploading the file.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm i @web-ppt/core @web-ppt/edit-core @web-ppt/viewer-core @web-ppt/editor
|
|
10
|
+
npm i @web-ppt/core@next @web-ppt/edit-core@next @web-ppt/viewer-core@next @web-ppt/editor@next
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```ts
|
package/dist/dom-identity.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { EditDoc, ElementId, SlideId } from '@web-ppt/edit-core';
|
|
2
2
|
export declare function elementIds(doc: EditDoc, roots: readonly ElementId[]): ElementId[];
|
|
3
3
|
export declare function bindElementIdentities(root: ParentNode, doc: EditDoc, roots: readonly ElementId[]): void;
|
|
4
|
+
/** 结构壳尚未挂孩子时只绑定容器本身,孩子沿用原分区身份。 */
|
|
5
|
+
export declare function bindSingleElementIdentity(root: ParentNode, doc: EditDoc, id: ElementId): void;
|
|
4
6
|
export declare function bindSlideIdentities(root: ParentNode, doc: EditDoc, slideId: SlideId): void;
|
|
5
7
|
export declare function findElementPartition(root: ParentNode, id: ElementId): SVGElement | null;
|
|
6
8
|
/**
|
package/dist/dom-patch.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export declare function patchElement(staticLayer: HTMLElement, editor: Editor, i
|
|
|
4
4
|
/** 删除结构节点时只移除其 markup/defs 分区,未触碰兄弟必须保留 DOM 身份。 */
|
|
5
5
|
export declare function removeElementPartition(staticLayer: HTMLElement, id: ElementId): boolean;
|
|
6
6
|
/** 撤销删除时以模型兄弟 z 序寻找稳定锚点;空父容器交给整页回退。 */
|
|
7
|
-
export declare function insertElementPartition(staticLayer: HTMLElement, editor: Editor, id: ElementId, idPrefix: string, textMode: 'html' | 'svg'): boolean;
|
|
7
|
+
export declare function insertElementPartition(staticLayer: HTMLElement, editor: Editor, id: ElementId, idPrefix: string, textMode: 'html' | 'svg', fallbackParent?: Node | null, knownChildren?: readonly SVGElement[]): boolean;
|
|
8
8
|
/** 按模型目标序倒序移动受影响分区;锚点标记保证末元素不会越过非元素装饰节点。 */
|
|
9
9
|
export declare function reorderElementPartitions(staticLayer: HTMLElement, editor: Editor, ids: ReadonlySet<ElementId>): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DocumentKeyboardController } from './keyboard-document';
|
|
1
2
|
import type { KeyboardControllerOptions } from './keyboard-context';
|
|
2
3
|
/** 画布键盘路由只组合命令,元素变换与选择范围仍留在各自模块。 */
|
|
3
4
|
export declare class EditorKeyboardController {
|
|
@@ -5,8 +6,10 @@ export declare class EditorKeyboardController {
|
|
|
5
6
|
private readonly history;
|
|
6
7
|
private readonly deletion;
|
|
7
8
|
private readonly layer;
|
|
9
|
+
private readonly group;
|
|
8
10
|
private readonly nudge;
|
|
9
|
-
|
|
11
|
+
private readonly document;
|
|
12
|
+
constructor(options: KeyboardControllerOptions, document?: DocumentKeyboardController);
|
|
10
13
|
keyDown(event: KeyboardEvent): boolean;
|
|
11
14
|
keyUp(event: KeyboardEvent): boolean;
|
|
12
15
|
breakSequence(): void;
|