@craftile/types 1.1.1 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftile/types",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Shared TypeScript type definitions for Craftile Editor",
5
5
  "keywords": [
6
6
  "craftile",
package/src/index.ts CHANGED
@@ -78,6 +78,7 @@ export interface BlockSchema {
78
78
  type: string;
79
79
  properties: PropertyField[];
80
80
  accepts?: string[];
81
+ rejects?: string[]; // Patterns removed from what accepts allows. Has no effect without accepts. Applies to private blocks too.
81
82
  presets?: BlockPreset[];
82
83
  private?: boolean; // Private blocks can only be children if explicitly listed in parent's accepts array
83
84
  meta?: Record<string, any>; // UI-specific metadata for editors