@contentbit/blocks 1.0.0-rc.2 → 2.0.0-next.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/README.md +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +10 -8
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @contentbit/blocks
|
|
2
2
|
|
|
3
|
-
The generic
|
|
3
|
+
The generic typed Markdown blocks of [contentbit](https://contentbit.dev), the
|
|
4
|
+
SEO content check for agents: `callout`, `steps`, `key-metrics`, `quick-ref`,
|
|
5
|
+
`comparison`, `pros-cons`, `tabs`, and `faq`. Typed blocks are opt-in.
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
import { createBlockRegistry } from '@contentbit/core'
|
|
@@ -11,4 +13,5 @@ const registry = createBlockRegistry().use(genericBlocks())
|
|
|
11
13
|
|
|
12
14
|
Each block ships its schema, content model, authoring guidance, and a plain-Markdown fallback renderer.
|
|
13
15
|
|
|
14
|
-
Reference: [contentbit.dev/blocks](https://contentbit.dev/blocks)
|
|
16
|
+
Reference: [contentbit.dev/blocks](https://contentbit.dev/blocks) ·
|
|
17
|
+
[typed blocks](https://contentbit.dev/docs/guides/typed-blocks)
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const genericBlockDefinitions: readonly [BlockDefinition<import("
|
|
|
19
19
|
}, "tab">, BlockDefinition<import("@contentbit/core").ChildBlocksData, Record<string, never>, "faq">, BlockDefinition<import("@contentbit/core").MarkdownBodyData, {
|
|
20
20
|
question: string;
|
|
21
21
|
}, "faq-item">];
|
|
22
|
-
export declare function genericBlocks(): BlockDefinition
|
|
22
|
+
export declare function genericBlocks(): BlockDefinition[];
|
|
23
23
|
/** Markdown fallback renderers for the generic pack. */
|
|
24
24
|
export declare const genericMarkdownRenderers: Record<string, import("@contentbit/core").MarkdownBlockRenderer>;
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAWhF,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAEhC,iEAAiE;AACjE,eAAO,MAAM,uBAAuB;;;;;;;;;;eAW1B,CAAA;AAEV,wBAAgB,aAAa,IAAI,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAWhF,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAEhC,iEAAiE;AACjE,eAAO,MAAM,uBAAuB;;;;;;;;;;eAW1B,CAAA;AAEV,wBAAgB,aAAa,IAAI,eAAe,EAAE,CAEjD;AAED,wDAAwD;AACxD,eAAO,MAAM,wBAAwB,kEASnC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentbit/blocks",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0-next.0",
|
|
4
|
+
"description": "Generic typed Markdown blocks for contentbit: callout, steps, comparison, tabs, faq, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"contentbit",
|
|
8
|
+
"directives",
|
|
9
|
+
"faq",
|
|
10
|
+
"markdown",
|
|
11
|
+
"seo"
|
|
10
12
|
],
|
|
11
13
|
"homepage": "https://contentbit.dev",
|
|
12
14
|
"bugs": "https://github.com/agonist/contentbit/issues",
|
|
@@ -31,12 +33,12 @@
|
|
|
31
33
|
"access": "public"
|
|
32
34
|
},
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"@contentbit/core": "
|
|
36
|
+
"@contentbit/core": "2.0.0-next.0"
|
|
35
37
|
},
|
|
36
38
|
"devDependencies": {
|
|
37
39
|
"typescript": "^5.9.3",
|
|
38
|
-
"vitest": "^
|
|
39
|
-
"zod": "^4.
|
|
40
|
+
"vitest": "^5.1.2",
|
|
41
|
+
"zod": "^4.6.7"
|
|
40
42
|
},
|
|
41
43
|
"peerDependencies": {
|
|
42
44
|
"zod": "^4.0.0"
|