@easy-editor/core 0.0.1 → 0.0.3-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @easy-editor/core
2
2
 
3
+ ## 0.0.3-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 3f130ae: test: build alpha
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 9a2c9ae: feat: all packages publish
14
+
3
15
  ## 0.0.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,38 @@
1
1
  # @easy-editor/core
2
2
 
3
3
  Core engine package for EasyEditor.
4
+
5
+ ## Features
6
+
7
+ - **Decoupling Design**:Engine core is framework-independent, supporting multiple framework rendering extensions
8
+ - **Visual Design**:Complete implementation of the designer, drag-and-drop layout, snapping alignment, multi-device preview, undo/redo stack...
9
+ - **Plugin Architecture**:Flexible plugin system design, lifecycle management, hotkey binding, class extension mechanism, dependency injection...
10
+ - **Rendering Engine**:Multi-framework support, real-time preview, Schema driven, component isolation sandbox
11
+ - **Enterprise-level Capabilities**:Data source management, multi-language support, version control, online collaboration
12
+
13
+ ## Usage
14
+
15
+ ### Dashboard + React
16
+
17
+ 1. Install
18
+
19
+ ```bash
20
+ pnpm install @easyeditor/core
21
+ ```
22
+
23
+ 2. Init
24
+
25
+ ```ts
26
+ import { createEditor } from '@easyeditor/core'
27
+
28
+ export const editor = createEasyEditor({
29
+ setters,
30
+ components,
31
+ componentMetas,
32
+ })
33
+
34
+ // get core modules
35
+ export const designer = await editor.onceGot<Designer>('designer')
36
+ export const project = await editor.onceGot<Project>('project')
37
+ export const simulator = await editor.onceGot<Simulator>('simulator')
38
+ ```
@@ -5321,6 +5321,9 @@ class ComponentMeta {
5321
5321
  get isContainer() {
5322
5322
  return this._isContainer;
5323
5323
  }
5324
+ get isMinimalRenderUnit() {
5325
+ return this._isMinimalRenderUnit || false;
5326
+ }
5324
5327
  get descriptor() {
5325
5328
  return this._descriptor;
5326
5329
  }
@@ -5362,6 +5365,7 @@ class ComponentMeta {
5362
5365
  if (component) {
5363
5366
  this._isContainer = !!component.isContainer;
5364
5367
  this._descriptor = component.descriptor;
5368
+ this._isMinimalRenderUnit = component.isMinimalRenderUnit;
5365
5369
  } else {
5366
5370
  this._isContainer = false;
5367
5371
  }