@jackuait/blok 0.10.0-beta.2 → 0.10.0-beta.3
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/blok.mjs +2 -2
- package/dist/chunks/{blok-mvtXLxUE.mjs → blok-CrfCy6RQ.mjs} +1 -1
- package/dist/chunks/{constants-20AZAgSJ.mjs → constants-BzBmIAnT.mjs} +1 -1
- package/dist/chunks/{tools-uP-rvRPy.mjs → tools-B6tibTzs.mjs} +1 -1
- package/dist/full.mjs +3 -3
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/package.json +1 -1
- package/types/tools/callout.d.ts +16 -0
- package/types/tools/quote.d.ts +13 -0
- package/types/tools-entry.d.ts +7 -0
package/dist/blok.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Kn as e } from "./chunks/constants-
|
|
2
|
-
import { n as t, t as n } from "./chunks/blok-
|
|
1
|
+
import { Kn as e } from "./chunks/constants-BzBmIAnT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./chunks/blok-CrfCy6RQ.mjs";
|
|
3
3
|
export { n as Blok, e as DATA_ATTR, t as version };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as e, Bn as t, Bt as n, C as r, Cn as i, Dn as a, E as o, En as s, Fn as c, Gn as l, Gt as u, Hn as d, Ht as f, In as p, Jn as m, Jt as h, Kn as g, Kt as _, Ln as v, Lt as ee, Mn as y, Mt as te, Nn as ne, Nt as re, On as ie, Pn as ae, Qt as oe, Rn as se, Rt as ce, S as le, Sn as ue, St as de, T as fe, Tn as pe, Un as me, Ut as he, Vn as b, Vt as ge, Wn as x, Wt as _e, Xt as S, Yt as ve, Zt as C, _ as ye, _n as w, an as be, b as T, bn as E, cn as xe, dn as Se, dt as Ce, en as we, fn as Te, g as Ee, h as De, hn as Oe, in as ke, jn as Ae, k as je, kn as Me, kt as Ne, ln as Pe, lt as Fe, m as Ie, mn as Le, nn as Re, on as ze, p as Be, pn as Ve, pt as He, qn as D, qt as Ue, rn as We, sn as Ge, u as Ke, un as qe, v as Je, vn as Ye, w as Xe, wn as Ze, wt as Qe, x as $e, xn as et, y as tt, yn as nt, zn as rt, zt as it } from "./constants-
|
|
1
|
+
import { An as e, Bn as t, Bt as n, C as r, Cn as i, Dn as a, E as o, En as s, Fn as c, Gn as l, Gt as u, Hn as d, Ht as f, In as p, Jn as m, Jt as h, Kn as g, Kt as _, Ln as v, Lt as ee, Mn as y, Mt as te, Nn as ne, Nt as re, On as ie, Pn as ae, Qt as oe, Rn as se, Rt as ce, S as le, Sn as ue, St as de, T as fe, Tn as pe, Un as me, Ut as he, Vn as b, Vt as ge, Wn as x, Wt as _e, Xt as S, Yt as ve, Zt as C, _ as ye, _n as w, an as be, b as T, bn as E, cn as xe, dn as Se, dt as Ce, en as we, fn as Te, g as Ee, h as De, hn as Oe, in as ke, jn as Ae, k as je, kn as Me, kt as Ne, ln as Pe, lt as Fe, m as Ie, mn as Le, nn as Re, on as ze, p as Be, pn as Ve, pt as He, qn as D, qt as Ue, rn as We, sn as Ge, u as Ke, un as qe, v as Je, vn as Ye, w as Xe, wn as Ze, wt as Qe, x as $e, xn as et, y as tt, yn as nt, zn as rt, zt as it } from "./constants-BzBmIAnT.mjs";
|
|
2
2
|
import { n as at, t as O } from "./objectSpread2-CyPxu8-u.mjs";
|
|
3
3
|
import { n as k, t as ot } from "./tw-DmW6-pCY.mjs";
|
|
4
4
|
import { r as st, t as ct } from "./lightweight-i18n-D1n0OClP.mjs";
|
|
@@ -138,7 +138,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
138
138
|
RIGHT: 2,
|
|
139
139
|
BACKWARD: 3,
|
|
140
140
|
FORWARD: 4
|
|
141
|
-
}, g = () => "0.10.0-beta.
|
|
141
|
+
}, g = () => "0.10.0-beta.3", _ = /* @__PURE__ */ function(e) {
|
|
142
142
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
143
143
|
}({}), v = (e, t, n = "log", r, i = "color: inherit") => {
|
|
144
144
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, B as r, Bn as i, Bt as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, Gt as p, H as m, I as h, It as g, J as ee, K as te, Kn as _, L as ne, Lt as re, M as ie, Mt as ae, N as oe, Nt as se, O as ce, Ot as le, P as ue, Pt as de, Q as fe, R as pe, St as me, Tt as he, U as ge, V as _e, W as ve, Wt as ye, X as be, Xt as v, Y as xe, Z as Se, Zt as y, _t as Ce, a as we, at as Te, bt as Ee, c as De, ct as Oe, d as ke, dt as Ae, en as je, et as Me, f as Ne, ft as Pe, g as Fe, gn as Ie, gt as Le, h as Re, ht as ze, i as Be, it as Ve, j as He, jt as Ue, kt as We, l as Ge, mt as Ke, n as qe, nt as Je, o as Ye, ot as Xe, p as Ze, q as Qe, qn as b, qt as $e, r as et, rt as tt, s as nt, st as rt, t as it, tn as at, tt as ot, u as x, ut as st, v as ct, vt as lt, xt as ut, yt as dt, z as ft } from "./constants-
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, Bn as i, Bt as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, Gt as p, H as m, I as h, It as g, J as ee, K as te, Kn as _, L as ne, Lt as re, M as ie, Mt as ae, N as oe, Nt as se, O as ce, Ot as le, P as ue, Pt as de, Q as fe, R as pe, St as me, Tt as he, U as ge, V as _e, W as ve, Wt as ye, X as be, Xt as v, Y as xe, Z as Se, Zt as y, _t as Ce, a as we, at as Te, bt as Ee, c as De, ct as Oe, d as ke, dt as Ae, en as je, et as Me, f as Ne, ft as Pe, g as Fe, gn as Ie, gt as Le, h as Re, ht as ze, i as Be, it as Ve, j as He, jt as Ue, kt as We, l as Ge, mt as Ke, n as qe, nt as Je, o as Ye, ot as Xe, p as Ze, q as Qe, qn as b, qt as $e, r as et, rt as tt, s as nt, st as rt, t as it, tn as at, tt as ot, u as x, ut as st, v as ct, vt as lt, xt as ut, yt as dt, z as ft } from "./constants-BzBmIAnT.mjs";
|
|
2
2
|
import { t as S } from "./objectSpread2-CyPxu8-u.mjs";
|
|
3
3
|
import { n as C } from "./tw-DmW6-pCY.mjs";
|
|
4
4
|
//#region src/components/utils/html.ts
|
package/dist/full.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Kn as e } from "./chunks/constants-
|
|
2
|
-
import { n as t, t as n } from "./chunks/blok-
|
|
1
|
+
import { Kn as e } from "./chunks/constants-BzBmIAnT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./chunks/blok-CrfCy6RQ.mjs";
|
|
3
3
|
import { t as r } from "./chunks/objectSpread2-CyPxu8-u.mjs";
|
|
4
|
-
import { a as i, c as a, f as o, g as s, h as c, i as l, m as u, n as d, o as f, r as p, s as m, t as h } from "./chunks/tools-
|
|
4
|
+
import { a as i, c as a, f as o, g as s, h as c, i as l, m as u, n as d, o as f, r as p, s as m, t as h } from "./chunks/tools-B6tibTzs.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 "./chunks/constants-
|
|
2
|
-
import { r as e, t } from "./chunks/blok-
|
|
1
|
+
import "./chunks/constants-BzBmIAnT.mjs";
|
|
2
|
+
import { r as e, t } from "./chunks/blok-CrfCy6RQ.mjs";
|
|
3
3
|
import { t as n } from "./chunks/objectSpread2-CyPxu8-u.mjs";
|
|
4
4
|
import { forwardRef as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
5
5
|
import { jsx as c } from "react/jsx-runtime";
|
package/dist/tools.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { m as e } from "./chunks/constants-
|
|
2
|
-
import { a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./chunks/tools-
|
|
1
|
+
import { m as e } from "./chunks/constants-BzBmIAnT.mjs";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./chunks/tools-B6tibTzs.mjs";
|
|
3
3
|
export { n as Bold, r as Callout, e as Convert, g as Divider, o as Header, m as Italic, d as Link, l as List, t as Marker, a as Paragraph, c as Quote, p as Strikethrough, f as Table, i as Toggle, s as Underline, h as defaultBlockTools, u as defaultInlineTools };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackuait/blok",
|
|
3
|
-
"version": "0.10.0-beta.
|
|
3
|
+
"version": "0.10.0-beta.3",
|
|
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",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BlockTool, BlockToolConstructable, BlockToolConstructorOptions, BlockToolData } from './block-tool';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Callout Tool's input and output data format.
|
|
5
|
+
*/
|
|
6
|
+
export interface CalloutData extends BlockToolData {
|
|
7
|
+
emoji: string;
|
|
8
|
+
textColor: string | null;
|
|
9
|
+
backgroundColor: string | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface CalloutConfig {}
|
|
13
|
+
|
|
14
|
+
export interface CalloutConstructable extends BlockToolConstructable {
|
|
15
|
+
new(options: BlockToolConstructorOptions<CalloutData, CalloutConfig>): BlockTool;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BlockTool, BlockToolConstructable, BlockToolConstructorOptions, BlockToolData } from './block-tool';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Quote Tool's input and output data format.
|
|
5
|
+
*/
|
|
6
|
+
export interface QuoteData extends BlockToolData {
|
|
7
|
+
text: string;
|
|
8
|
+
size: 'default' | 'large';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface QuoteConstructable extends BlockToolConstructable {
|
|
12
|
+
new(options: BlockToolConstructorOptions<QuoteData>): BlockTool;
|
|
13
|
+
}
|
package/types/tools-entry.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import { ListConstructable, ListData, ListConfig, ListStyle } from './tools/list
|
|
|
9
9
|
import { TableConstructable, TableData, TableConfig, CellContent } from './tools/table';
|
|
10
10
|
import { ToggleConstructable, ToggleData, ToggleConfig } from './tools/toggle';
|
|
11
11
|
import { DividerConstructable, DividerData } from './tools/divider';
|
|
12
|
+
import { CalloutConstructable, CalloutData, CalloutConfig } from './tools/callout';
|
|
13
|
+
import { QuoteConstructable, QuoteData } from './tools/quote';
|
|
12
14
|
import { InlineToolConstructable } from './tools/inline-tool';
|
|
13
15
|
import { BlockTuneConstructable } from './block-tunes';
|
|
14
16
|
import { ToolSettings } from './tools';
|
|
@@ -20,6 +22,8 @@ export const List: ListConstructable;
|
|
|
20
22
|
export const Table: TableConstructable;
|
|
21
23
|
export const Toggle: ToggleConstructable;
|
|
22
24
|
export const Divider: DividerConstructable;
|
|
25
|
+
export const Callout: CalloutConstructable;
|
|
26
|
+
export const Quote: QuoteConstructable;
|
|
23
27
|
|
|
24
28
|
// Re-export data and config types for convenience
|
|
25
29
|
export { HeaderData, HeaderConfig } from './tools/header';
|
|
@@ -28,6 +32,8 @@ export { ListData, ListConfig, ListStyle } from './tools/list';
|
|
|
28
32
|
export { TableData, TableConfig, CellContent } from './tools/table';
|
|
29
33
|
export { ToggleData, ToggleConfig } from './tools/toggle';
|
|
30
34
|
export { DividerData } from './tools/divider';
|
|
35
|
+
export { CalloutData, CalloutConfig } from './tools/callout';
|
|
36
|
+
export { QuoteData } from './tools/quote';
|
|
31
37
|
|
|
32
38
|
// Inline tools
|
|
33
39
|
export const Bold: InlineToolConstructable;
|
|
@@ -52,6 +58,7 @@ export const defaultBlockTools: {
|
|
|
52
58
|
readonly toggle: {};
|
|
53
59
|
readonly callout: {};
|
|
54
60
|
readonly divider: {};
|
|
61
|
+
readonly quote: {};
|
|
55
62
|
};
|
|
56
63
|
|
|
57
64
|
/**
|