@jackuait/blok 0.10.0-beta.12 → 0.10.0-beta.13

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.
@@ -130,7 +130,7 @@ var a = {
130
130
  RIGHT: 2,
131
131
  BACKWARD: 3,
132
132
  FORWARD: 4
133
- }, l = () => "0.10.0-beta.12", u = /* @__PURE__ */ function(e) {
133
+ }, l = () => "0.10.0-beta.13", u = /* @__PURE__ */ function(e) {
134
134
  return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
135
135
  }({}), d = (e, t, n = "log", r, i = "color: inherit") => {
136
136
  let a = typeof console > "u" ? void 0 : console;
@@ -1,4 +1,4 @@
1
- import { $ as e, $n as t, A as n, B as r, Bt as i, Cn as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as ee, Mt as x, N as te, Nt as ne, O as re, Ot as ie, P as ae, Pt as oe, Q as se, Qt as S, R as ce, Rt as le, St as ue, Tt as de, U as fe, Ut as pe, V as me, Vt as he, W as ge, Wt as _e, X as ve, Y as ye, Z as be, Zt as xe, _t as Se, a as Ce, at as we, bt as Te, c as Ee, cn as De, ct as Oe, d as ke, dt as Ae, en as je, er as C, et as Me, f as Ne, g as Pe, gt as Fe, h as Ie, ht as Le, i as Re, in as ze, it as Be, j as Ve, jt as He, kt as Ue, l as We, lt as Ge, mt as Ke, n as qe, nt as Je, o as Ye, ot as Xe, p as Ze, pt as Qe, q as $e, qn as et, qt as tt, r as nt, rn as w, rt, s as it, sn as at, st as ot, t as st, tt as ct, u as T, ut as lt, v as ut, wt as dt, xt as ft, yt as pt, z as mt, zt as ht } from "./constants-UyV9cJZk.mjs";
1
+ import { $ as e, $n as t, A as n, B as r, Bt as i, Cn as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as ee, Mt as x, N as te, Nt as ne, O as re, Ot as ie, P as ae, Pt as oe, Q as se, Qt as S, R as ce, Rt as le, St as ue, Tt as de, U as fe, Ut as pe, V as me, Vt as he, W as ge, Wt as _e, X as ve, Y as ye, Z as be, Zt as xe, _t as Se, a as Ce, at as we, bt as Te, c as Ee, cn as De, ct as Oe, d as ke, dt as Ae, en as je, er as C, et as Me, f as Ne, g as Pe, gt as Fe, h as Ie, ht as Le, i as Re, in as ze, it as Be, j as Ve, jt as He, kt as Ue, l as We, lt as Ge, mt as Ke, n as qe, nt as Je, o as Ye, ot as Xe, p as Ze, pt as Qe, q as $e, qn as et, qt as tt, r as nt, rn as w, rt, s as it, sn as at, st as ot, t as st, tt as ct, u as T, ut as lt, v as ut, wt as dt, xt as ft, yt as pt, z as mt, zt as ht } from "./constants-NpHRgdEj.mjs";
2
2
  import { t as E } from "./objectSpread2-CWwMYL_U.mjs";
3
3
  import { n as D } from "./tw-CqxBf-1Y.mjs";
4
4
  //#region src/components/utils/html.ts
package/dist/full.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { n as e, t } from "./chunks/blok-trqaO1wV.mjs";
2
- import { $n as n } from "./chunks/constants-UyV9cJZk.mjs";
1
+ import { n as e, t } from "./chunks/blok-uTkAJyAg.mjs";
2
+ import { $n as n } from "./chunks/constants-NpHRgdEj.mjs";
3
3
  import { t as r } from "./chunks/objectSpread2-CWwMYL_U.mjs";
4
- import { _ as i, a, c as o, g as s, i as c, l, m as u, n as d, o as f, s as p, t as m, v as h } from "./chunks/tools-DJJP1iOU.mjs";
4
+ import { _ as i, a, c as o, g as s, i as c, l, m as u, n as d, o as f, s as p, t as m, v as h } from "./chunks/tools-bN22O_3E.mjs";
5
5
  //#region src/full.ts
6
6
  var g = {
7
7
  paragraph: {
package/dist/react.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./chunks/blok-trqaO1wV.mjs";
2
- import "./chunks/constants-UyV9cJZk.mjs";
1
+ import { t as e } from "./chunks/blok-uTkAJyAg.mjs";
2
+ import "./chunks/constants-NpHRgdEj.mjs";
3
3
  import { t } from "./chunks/objectSpread2-CWwMYL_U.mjs";
4
4
  import { t as n } from "./chunks/objectWithoutProperties-D0XxKB4n.mjs";
5
5
  import { forwardRef as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
package/dist/tools.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { m as e } from "./chunks/constants-UyV9cJZk.mjs";
2
- import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v } from "./chunks/tools-DJJP1iOU.mjs";
1
+ import { m as e } from "./chunks/constants-NpHRgdEj.mjs";
2
+ import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v } from "./chunks/tools-bN22O_3E.mjs";
3
3
  export { l as Bold, p as Callout, _ as Code, e as Convert, a as Divider, t as Header, m as InlineCode, r as Italic, h as Link, o as List, f as Marker, v as Paragraph, i as Quote, c as Strikethrough, s as Table, u as Toggle, n as Underline, g as defaultBlockTools, d as defaultInlineTools };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackuait/blok",
3
- "version": "0.10.0-beta.12",
3
+ "version": "0.10.0-beta.13",
4
4
  "description": "Blok — headless, highly extensible rich text editor built for developers who need to implement a block-based editing experience (similar to Notion) without building it from scratch",
5
5
  "module": "dist/blok.mjs",
6
6
  "types": "./types/index.d.ts",
@@ -511,14 +511,11 @@ export class Toolbar extends Module<ToolbarNodes> {
511
511
  * consumer CSS overrides the block content's margin.
512
512
  *
513
513
  * Runs after open() so the toolbar is visible and actions have correct offsetWidth.
514
- * Clamp to the actions element width so toolbar buttons (plus, settings)
515
- * never overflow off-screen to the left when content is flush-left.
516
514
  */
517
515
  if (blockContentElement && this.nodes.content) {
518
516
  const blockMarginLeft = parseFloat(getComputedStyle(blockContentElement).marginLeft) || 0;
519
- const actionsWidth = this.nodes.actions?.offsetWidth ?? 0;
520
517
 
521
- this.nodes.content.style.marginLeft = `${Math.max(blockMarginLeft, actionsWidth)}px`;
518
+ this.nodes.content.style.marginLeft = `${blockMarginLeft}px`;
522
519
  }
523
520
  }
524
521
 
@@ -641,13 +638,11 @@ export class Toolbar extends Module<ToolbarNodes> {
641
638
  /**
642
639
  * Sync toolbar content wrapper's margin with the block content element.
643
640
  * Runs after open() so the toolbar is visible and actions have correct offsetWidth.
644
- * Clamp to the actions width so buttons never overflow off-screen to the left.
645
641
  */
646
642
  if (blockContentElement && this.nodes.content) {
647
643
  const blockMarginLeft = parseFloat(getComputedStyle(blockContentElement).marginLeft) || 0;
648
- const actionsWidth = this.nodes.actions?.offsetWidth ?? 0;
649
644
 
650
- this.nodes.content.style.marginLeft = `${Math.max(blockMarginLeft, actionsWidth)}px`;
645
+ this.nodes.content.style.marginLeft = `${blockMarginLeft}px`;
651
646
  }
652
647
  }
653
648