@hyebook/vue3-adapter 2.2.6 → 2.3.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.
@@ -1,11 +1,14 @@
1
- import { EditorEngine, PlayerEngine, mountEditorWorkbench, } from "@hyebook/core";
1
+ import { EBookPlayer, EditorEngine, PlayerEngine, mountEditorWorkbench, } from "@hyebook/core";
2
2
  export function createVue3EditorAdapter(options) {
3
3
  const engine = new EditorEngine(options.initialDoc);
4
4
  options.onDocumentChange?.(engine.getDocument());
5
5
  return engine;
6
6
  }
7
7
  export function createVue3PlayerAdapter(options) {
8
- return new PlayerEngine(options.provider);
8
+ return new PlayerEngine(options.provider, options.engineOptions);
9
+ }
10
+ export function createEBookPlayerAdapter(container, options) {
11
+ return new EBookPlayer(container, options);
9
12
  }
10
13
  export function mountVue3EditorWorkbench(container, options = {}) {
11
14
  return mountEditorWorkbench(container, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyebook/vue3-adapter",
3
- "version": "2.2.6",
3
+ "version": "2.3.0",
4
4
  "description": "Vue3 adapter for hy-ebook core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,11 +17,11 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@hyebook/core": "^2.2.6"
20
+ "@hyebook/core": "^2.3.0"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsc -p tsconfig.json",
24
24
  "typecheck": "tsc -p tsconfig.json --noEmit",
25
25
  "lint": "echo 'No lint configured for @hyebook/vue3-adapter'"
26
26
  }
27
- }
27
+ }