@jackuait/blok 0.4.3-beta.7 → 0.4.3-beta.9

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 CHANGED
@@ -45,11 +45,11 @@ import { Header, Paragraph, List, Bold, Italic, Link } from '@jackuait/blok/tool
45
45
  const editor = new Blok({
46
46
  holder: 'editor',
47
47
  tools: {
48
- header: Header,
49
- paragraph: { class: Paragraph, inlineToolbar: true },
50
- list: { class: List, inlineToolbar: true },
51
- },
52
- inlineTools: {
48
+ // Block tools - inlineToolbar is enabled by default
49
+ paragraph: Paragraph,
50
+ header: { class: Header, placeholder: 'Enter a heading' },
51
+ list: List,
52
+ // Inline tools
53
53
  bold: Bold,
54
54
  italic: Italic,
55
55
  link: Link,
@@ -60,6 +60,8 @@ const editor = new Blok({
60
60
  const data = await editor.save();
61
61
  ```
62
62
 
63
+ Tool configuration is flat—no need for nested `config: {}`. Blok automatically extracts known settings (`class`, `inlineToolbar`, `shortcut`, etc.) and passes the rest to the tool.
64
+
63
65
  ### Entry Points
64
66
 
65
67
  | Entry Point | Description |
package/dist/blok.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { B as s, v as a } from "./chunks/blok-B-fFKCc3.mjs";
2
- import { D as A } from "./chunks/inline-tool-convert-BQzo9tk1.mjs";
1
+ import { B as s, v as a } from "./chunks/blok-CU-oiynu.mjs";
2
+ import { D as A } from "./chunks/inline-tool-convert-rak34pCi.mjs";
3
3
  export {
4
4
  s as Blok,
5
5
  A as DATA_ATTR,