@burger-editor/client 4.0.0-alpha.74 → 4.0.0-alpha.75

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 CHANGED
@@ -7,9 +7,11 @@ BurgerEditor をブラウザ上の DOM に組み込むための UI レイヤー
7
7
  ## Installation
8
8
 
9
9
  ```sh
10
- yarn add @burger-editor/client @burger-editor/core @burger-editor/blocks
10
+ yarn add @burger-editor/client @burger-editor/core @burger-editor/blocks react@19.3.0 react-dom@19.3.0
11
11
  ```
12
12
 
13
+ `react` と `react-dom` は peerDependencies のため、利用側でインストールする(client は React を同梱しない)。アプリのバンドルには React が 1 つだけ含まれるようにする。標準アイテムを使う場合、`items` は `@burger-editor/blocks/editor` から import する(`@burger-editor/blocks` のルートは `Editor` を含まない)。
14
+
13
15
  ## Related Packages
14
16
 
15
17
  | パッケージ | 関係 | このパッケージとの使い分け |
package/dist/client.js CHANGED
@@ -28069,7 +28069,7 @@ function parseConfig(config) {
28069
28069
  }
28070
28070
  //#endregion
28071
28071
  //#region src/index.tsx
28072
- var version = "4.0.0-alpha.74";
28072
+ var version = "4.0.0-alpha.75";
28073
28073
  /**
28074
28074
  * 本稿⇄下書き切替UIをビューエリアの直前にマウントする
28075
28075
  *
@@ -28111,13 +28111,14 @@ function attachDraftSwitcher(engine) {
28111
28111
  * @example
28112
28112
  * ```ts
28113
28113
  * import { createBurgerEditorClient, attachDraftSwitcher } from '@burger-editor/client';
28114
- * import itemSeeds from '@burger-editor/blocks';
28114
+ * import { generalCSS } from '@burger-editor/blocks';
28115
+ * import { items } from '@burger-editor/blocks/editor';
28115
28116
  *
28116
28117
  * const { engine } = await createBurgerEditorClient({
28117
28118
  * root: '#editor',
28118
28119
  * config,
28119
28120
  * catalog,
28120
- * items: itemSeeds,
28121
+ * items,
28121
28122
  * initialContents: { main, draft },
28122
28123
  * generalCSS,
28123
28124
  * fileIO: serverAPI,