contentbit 0.7.0 → 0.7.1

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/bin.js CHANGED
@@ -21961,7 +21961,7 @@ import { ContentRenderer } from '@/components/content-blocks/content-renderer'`
21961
21961
  return `'use client'
21962
21962
 
21963
21963
  import { genericBlocks } from '@contentbit/blocks'
21964
- import { compileDocument, createBlockRegistry } from '@contentbit/core'
21964
+ import { assertValidDocument, compileDocument, createBlockRegistry } from '@contentbit/core'
21965
21965
  ${reactImport}${mdImport}${rendererImport}
21966
21966
  // Everything block-related lives in the blocks/ folder: definitions in
21967
21967
  // registry.ts (shared with the validate CLI), components in components.tsx.
@@ -21971,10 +21971,10 @@ import { blockComponents } from '${blocksImport}/components'
21971
21971
  const registry = createBlockRegistry().use(genericBlocks()).use(customBlocks)
21972
21972
 
21973
21973
  export function Content({ source }: { source: string }) {
21974
- const result = compileDocument(source, registry)
21974
+ const document = assertValidDocument(compileDocument(source, registry))
21975
21975
  return (
21976
21976
  <${renderer}
21977
- document={result.document}
21977
+ document={document}
21978
21978
  components={blockComponents}${mdProp}
21979
21979
  />
21980
21980
  )
package/dist/run.js CHANGED
@@ -21960,7 +21960,7 @@ import { ContentRenderer } from '@/components/content-blocks/content-renderer'`
21960
21960
  return `'use client'
21961
21961
 
21962
21962
  import { genericBlocks } from '@contentbit/blocks'
21963
- import { compileDocument, createBlockRegistry } from '@contentbit/core'
21963
+ import { assertValidDocument, compileDocument, createBlockRegistry } from '@contentbit/core'
21964
21964
  ${reactImport}${mdImport}${rendererImport}
21965
21965
  // Everything block-related lives in the blocks/ folder: definitions in
21966
21966
  // registry.ts (shared with the validate CLI), components in components.tsx.
@@ -21970,10 +21970,10 @@ import { blockComponents } from '${blocksImport}/components'
21970
21970
  const registry = createBlockRegistry().use(genericBlocks()).use(customBlocks)
21971
21971
 
21972
21972
  export function Content({ source }: { source: string }) {
21973
- const result = compileDocument(source, registry)
21973
+ const document = assertValidDocument(compileDocument(source, registry))
21974
21974
  return (
21975
21975
  <${renderer}
21976
- document={result.document}
21976
+ document={document}
21977
21977
  components={blockComponents}${mdProp}
21978
21978
  />
21979
21979
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentbit",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "CLI for Content Blocks: validate, render, and generate LLM authoring instructions from your registry.",
5
5
  "keywords": [
6
6
  "cli",
@@ -38,15 +38,15 @@
38
38
  "@clack/prompts": "^1.5.1",
39
39
  "commander": "^15.0.0",
40
40
  "tinyglobby": "^0.2.10",
41
- "@contentbit/blocks": "0.7.0",
42
- "@contentbit/core": "0.7.0"
41
+ "@contentbit/blocks": "0.7.1",
42
+ "@contentbit/core": "0.7.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.9",
46
46
  "esbuild": "^0.28.0",
47
47
  "typescript": "^5.9.3",
48
48
  "vitest": "^4.0.17",
49
- "@contentbit/studio": "0.7.0"
49
+ "@contentbit/studio": "0.7.1"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22.18"