@reiwuzen/blocky 1.3.1 → 1.3.2

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/dist/index.d.cts CHANGED
@@ -242,7 +242,7 @@ declare function generateId(fn?: () => string): string;
242
242
  * @param type - the block type to create
243
243
  * @param idFn - optional custom id generator (defaults to uuid v7)
244
244
  */
245
- declare function createBlock<T extends BlockType>(type: T, idFn?: () => string): Result<Block<T>, unknown>;
245
+ declare function createBlock<T extends BlockType>(type: T, idFn?: () => string): Result<AnyBlock, unknown>;
246
246
  declare function createBlockAfter<T extends BlockType>(blocks: AnyBlock[], afterId: string, type: T, idFn?: () => string): Result<{
247
247
  blocks: AnyBlock[];
248
248
  newId: string;
package/dist/index.d.ts CHANGED
@@ -242,7 +242,7 @@ declare function generateId(fn?: () => string): string;
242
242
  * @param type - the block type to create
243
243
  * @param idFn - optional custom id generator (defaults to uuid v7)
244
244
  */
245
- declare function createBlock<T extends BlockType>(type: T, idFn?: () => string): Result<Block<T>, unknown>;
245
+ declare function createBlock<T extends BlockType>(type: T, idFn?: () => string): Result<AnyBlock, unknown>;
246
246
  declare function createBlockAfter<T extends BlockType>(blocks: AnyBlock[], afterId: string, type: T, idFn?: () => string): Result<{
247
247
  blocks: AnyBlock[];
248
248
  newId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reiwuzen/blocky",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Pure TypeScript block editor engine. Headless, framework-agnostic — content mutation, formatting, transforms, serialization, and history.",
5
5
  "author": "Rei WuZen",
6
6
  "license": "ISC",