@capyclaw/ppt-workbench 2.4.0 → 2.4.1
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/core/ops/dispatcher.js +2 -2
- package/core/ops/index.js +39 -39
- package/editor/app.js +5366 -5366
- package/package.json +53 -53
- package/server/http-utils.mjs +2 -2
- package/server/infra/tuning.mjs +82 -82
- package/server/routes/bridge.mjs +47 -47
- package/server/runtime/watch.mjs +17 -17
- package/server/shared/editor-host.mjs +125 -125
- package/server/shared/kit/tuning.mjs +82 -82
- package/server/single-instance.mjs +2 -2
- package/server/store/checkpoints.mjs +28 -28
- package/server/store/doc.mjs +52 -52
- package/server/store/index.mjs +34 -34
- package/server/store/lease.mjs +2 -2
- package/server/store/sanitize.mjs +32 -32
- package/server/validate.mjs +1 -1
package/core/ops/dispatcher.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** 兼容层:op 分发器的通用实现位于
|
|
2
|
-
export { createOpDispatcher } from '
|
|
1
|
+
/** 兼容层:op 分发器的通用实现位于 @capyclaw/document-workbench/ops。 */
|
|
2
|
+
export { createOpDispatcher } from '@capyclaw/document-workbench/ops'
|
package/core/ops/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/** op 组装:按域合并为一张表,交给通用 op registry 分发。 */
|
|
2
|
-
import { createOpDispatcher, createOpRegistry } from '
|
|
3
|
-
import { deckOps } from './deck.js'
|
|
4
|
-
import { textOps } from './text.js'
|
|
5
|
-
import { elementOps } from './element.js'
|
|
6
|
-
import { slideOps } from './slide.js'
|
|
7
|
-
import { recolorOps } from './recolor.js'
|
|
8
|
-
import { viewOps } from './view.js'
|
|
9
|
-
import { historyOps } from './history.js'
|
|
10
|
-
import { playbackOps } from './playback.js'
|
|
11
|
-
import { chartOps } from './chart.js'
|
|
12
|
-
import { tableOps } from './table.js'
|
|
13
|
-
import { importOps } from './import.js'
|
|
14
|
-
|
|
15
|
-
export const OP_MODULES = {
|
|
16
|
-
deck: deckOps,
|
|
17
|
-
text: textOps,
|
|
18
|
-
element: elementOps,
|
|
19
|
-
slide: slideOps,
|
|
20
|
-
recolor: recolorOps,
|
|
21
|
-
view: viewOps,
|
|
22
|
-
history: historyOps,
|
|
23
|
-
playback: playbackOps,
|
|
24
|
-
chart: chartOps,
|
|
25
|
-
table: tableOps,
|
|
26
|
-
importer: importOps,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const registry = createOpRegistry({
|
|
30
|
-
modules: OP_MODULES,
|
|
31
|
-
snapshot: (P) => P.snapshot?.(),
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
export const OP_DEFINITIONS = registry.definitions
|
|
35
|
-
export const OP_NAMES = registry.names
|
|
36
|
-
export const VIEW_OP_NAMES = registry.viewNames
|
|
37
|
-
export const applyOp = registry.apply
|
|
38
|
-
|
|
39
|
-
export { createOpDispatcher }
|
|
1
|
+
/** op 组装:按域合并为一张表,交给通用 op registry 分发。 */
|
|
2
|
+
import { createOpDispatcher, createOpRegistry } from '@capyclaw/document-workbench/ops'
|
|
3
|
+
import { deckOps } from './deck.js'
|
|
4
|
+
import { textOps } from './text.js'
|
|
5
|
+
import { elementOps } from './element.js'
|
|
6
|
+
import { slideOps } from './slide.js'
|
|
7
|
+
import { recolorOps } from './recolor.js'
|
|
8
|
+
import { viewOps } from './view.js'
|
|
9
|
+
import { historyOps } from './history.js'
|
|
10
|
+
import { playbackOps } from './playback.js'
|
|
11
|
+
import { chartOps } from './chart.js'
|
|
12
|
+
import { tableOps } from './table.js'
|
|
13
|
+
import { importOps } from './import.js'
|
|
14
|
+
|
|
15
|
+
export const OP_MODULES = {
|
|
16
|
+
deck: deckOps,
|
|
17
|
+
text: textOps,
|
|
18
|
+
element: elementOps,
|
|
19
|
+
slide: slideOps,
|
|
20
|
+
recolor: recolorOps,
|
|
21
|
+
view: viewOps,
|
|
22
|
+
history: historyOps,
|
|
23
|
+
playback: playbackOps,
|
|
24
|
+
chart: chartOps,
|
|
25
|
+
table: tableOps,
|
|
26
|
+
importer: importOps,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const registry = createOpRegistry({
|
|
30
|
+
modules: OP_MODULES,
|
|
31
|
+
snapshot: (P) => P.snapshot?.(),
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
export const OP_DEFINITIONS = registry.definitions
|
|
35
|
+
export const OP_NAMES = registry.names
|
|
36
|
+
export const VIEW_OP_NAMES = registry.viewNames
|
|
37
|
+
export const applyOp = registry.apply
|
|
38
|
+
|
|
39
|
+
export { createOpDispatcher }
|