@craftile/core 0.6.1 → 0.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftile/core",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Framework-agnostic block editor engine for Craftile",
5
5
  "keywords": [
6
6
  "craftile",
@@ -26,8 +26,8 @@
26
26
  "src"
27
27
  ],
28
28
  "dependencies": {
29
- "@craftile/event-bus": "0.6.1",
30
- "@craftile/types": "0.6.1"
29
+ "@craftile/event-bus": "0.6.3",
30
+ "@craftile/types": "0.6.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "vitest": "^3.2.4",
@@ -177,11 +177,12 @@ export class InsertBlockFromPresetCommand implements Command {
177
177
  const childBlock: Block = {
178
178
  type: presetChild.type,
179
179
  id: childId,
180
- name: childSchema.meta?.name || presetChild.type, // Use schema name for child blocks
180
+ name: presetChild.name || childSchema.meta?.name || presetChild.type, // Preserve custom name from preset
181
181
  semanticId: presetChild.id, // Preserve semantic ID from preset
182
182
  properties: childProperties,
183
183
  children: [],
184
184
  parentId,
185
+ static: presetChild.static, // Preserve static flag
185
186
  };
186
187
 
187
188
  this.page.blocks[childId] = childBlock;