@jackuait/blok 0.14.0 → 0.14.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/blok.cjs +1 -1
- package/dist/blok.iife.js +2 -2
- package/dist/blok.mjs +2 -2
- package/dist/chunks/{blok-Da-GaWJ8.cjs → blok-DbYIZS7_.cjs} +2 -2
- package/dist/chunks/{blok-PpFnlqXZ.mjs → blok-DuYqYpF7.mjs} +18 -2
- package/dist/chunks/{constants-DdfiMdC1.mjs → constants-DMVxzgHf.mjs} +1 -1
- package/dist/chunks/{constants-C-OQpSwB.cjs → constants-DPty7Dc7.cjs} +1 -1
- package/dist/chunks/{tools-DeTgjuIK.cjs → tools-BuCT1-J0.cjs} +3 -3
- package/dist/chunks/{tools-omGeunql.mjs → tools-BwY9bTlg.mjs} +1556 -1549
- package/dist/full.cjs +1 -1
- package/dist/full.mjs +12 -12
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/tools.cjs +1 -1
- package/dist/tools.mjs +3 -3
- package/package.json +1 -1
- package/src/components/modules/tools.ts +57 -1
- package/src/tools/columns/index.ts +21 -0
- package/src/tools/index.ts +1 -0
- package/types/tools/tool.d.ts +12 -0
- package/types/tools-entry.d.ts +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./chunk-Bbb9LtOc.mjs";
|
|
2
|
-
import { $n as t, Ar as n, Bn as r, Br as i, C as a, Dr as o, E as s, Er as c, Fn as l, Fr as u, Gn as d, Gr as f, H as p, Hn as m, Hr as h, I as g, Ir as _, Jn as v, Jr as ee, Kr as y, Kt as te, Ln as b, Lr as ne, Lt as re, Mn as ie, Mr as ae, Nn as oe, Nr as se, On as ce, Or as le, Ot as ue, Pn as de, Pr as fe, Qn as x, Rn as pe, Rr as S, S as me, Sn as he, Sr as C, T as ge, Tn as _e, Tr as ve, Un as ye, Ur as w, Ut as be, Vn as xe, Vr as Se, Wn as Ce, Wr as T, Xn as we, Xr as E, Yn as Te, Yr as D, Zn as O, _ as Ee, _n as De, _r as Oe, ar as ke, b as k, bn as Ae, br as je, cr as Me, dr as Ne, fr as Pe, g as Fe, gr as Ie, h as Le, hr as Re, in as ze, ir as Be, jn as Ve, jr as He, kn as Ue, kr as We, ln as Ge, lr as Ke, m as qe, mr as Je, or as Ye, p as Xe, pr as Ze, qr as A, rr as Qe, sr as $e, tr as et, u as tt, ur as nt, v as rt, w as it, wn as at, wr as ot, x as st, xr as ct, y as lt, yr as j, zn as ut, zr as M } from "./constants-
|
|
2
|
+
import { $n as t, Ar as n, Bn as r, Br as i, C as a, Dr as o, E as s, Er as c, Fn as l, Fr as u, Gn as d, Gr as f, H as p, Hn as m, Hr as h, I as g, Ir as _, Jn as v, Jr as ee, Kr as y, Kt as te, Ln as b, Lr as ne, Lt as re, Mn as ie, Mr as ae, Nn as oe, Nr as se, On as ce, Or as le, Ot as ue, Pn as de, Pr as fe, Qn as x, Rn as pe, Rr as S, S as me, Sn as he, Sr as C, T as ge, Tn as _e, Tr as ve, Un as ye, Ur as w, Ut as be, Vn as xe, Vr as Se, Wn as Ce, Wr as T, Xn as we, Xr as E, Yn as Te, Yr as D, Zn as O, _ as Ee, _n as De, _r as Oe, ar as ke, b as k, bn as Ae, br as je, cr as Me, dr as Ne, fr as Pe, g as Fe, gr as Ie, h as Le, hr as Re, in as ze, ir as Be, jn as Ve, jr as He, kn as Ue, kr as We, ln as Ge, lr as Ke, m as qe, mr as Je, or as Ye, p as Xe, pr as Ze, qr as A, rr as Qe, sr as $e, tr as et, u as tt, ur as nt, v as rt, w as it, wn as at, wr as ot, x as st, xr as ct, y as lt, yr as j, zn as ut, zr as M } from "./constants-DMVxzgHf.mjs";
|
|
3
3
|
import { n as dt, t as N } from "./objectSpread2-jlBcdYeb.mjs";
|
|
4
4
|
import { n as P, t as ft } from "./tw-CqxBf-1Y.mjs";
|
|
5
5
|
import { t as pt } from "./types-DrdCPGbk.mjs";
|
|
@@ -13049,7 +13049,7 @@ var $f = class e extends Map {
|
|
|
13049
13049
|
async prepare() {
|
|
13050
13050
|
var e = this, t;
|
|
13051
13051
|
let n = (t = e.config.tools) == null ? {} : t;
|
|
13052
|
-
e.config.tools = ot({}, e.internalTools, n), e.validateTools();
|
|
13052
|
+
e.config.tools = e.expandToolGroups(ot({}, e.internalTools, n)), e.validateTools();
|
|
13053
13053
|
let r = e.config.tools;
|
|
13054
13054
|
if (!r || Object.keys(r).length === 0) throw Error("Can't start without tools");
|
|
13055
13055
|
let i = e.prepareConfig(r);
|
|
@@ -13114,6 +13114,22 @@ var $f = class e extends Map {
|
|
|
13114
13114
|
}
|
|
13115
13115
|
};
|
|
13116
13116
|
}
|
|
13117
|
+
expandToolGroups(e) {
|
|
13118
|
+
let t = {};
|
|
13119
|
+
for (let n in e) {
|
|
13120
|
+
if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
|
|
13121
|
+
let r = e[n], i = M(r) ? r.class : r, a = i == null ? void 0 : i.provides;
|
|
13122
|
+
if (!a) {
|
|
13123
|
+
t[n] = r;
|
|
13124
|
+
continue;
|
|
13125
|
+
}
|
|
13126
|
+
let o = M(r) ? Object.fromEntries(Object.entries(r).filter(([e]) => e !== "class" && e !== "isInternal")) : {}, s = Object.keys(o).length > 0;
|
|
13127
|
+
Object.entries(a).forEach(([e, n]) => {
|
|
13128
|
+
e in t || (t[e] = s ? N({ class: n }, o) : n);
|
|
13129
|
+
});
|
|
13130
|
+
}
|
|
13131
|
+
return t;
|
|
13132
|
+
}
|
|
13117
13133
|
toolPrepareMethodSuccess(e) {
|
|
13118
13134
|
let t = this.getFactory().get(e.toolName);
|
|
13119
13135
|
if (!t.isInline()) {
|
|
@@ -131,7 +131,7 @@ var a = {
|
|
|
131
131
|
RIGHT: 2,
|
|
132
132
|
BACKWARD: 3,
|
|
133
133
|
FORWARD: 4
|
|
134
|
-
}, l = () => "0.14.
|
|
134
|
+
}, l = () => "0.14.1", u = /* @__PURE__ */ function(e) {
|
|
135
135
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
136
136
|
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
137
137
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require(`./chunk-CZKdLM9-.cjs`),t=require(`./objectSpread2-iNkE6aJh.cjs`),n=require(`./tw-CjHZc17C.cjs`);var r={interface:`data-blok-interface`,element:`data-blok-element`,elementContent:`data-blok-element-content`,editor:`data-blok-editor`,redactor:`data-blok-redactor`,id:`data-blok-id`,component:`data-blok-component`,tool:`data-blok-tool`,depth:`data-blok-depth`,hidden:`data-blok-hidden`,disabled:`data-blok-disabled`,focused:`data-blok-focused`,selected:`data-blok-selected`,stretched:`data-blok-stretched`,empty:`data-blok-empty`,contentAlign:`data-blok-content-align`,rtl:`data-blok-rtl`,dragging:`data-blok-dragging`,draggingMulti:`data-blok-dragging-multi`,duplicating:`data-blok-duplicating`,dragHandle:`data-blok-drag-handle`,toolbar:`data-blok-toolbar`,settingsToggler:`data-blok-settings-toggler`,toolboxOpened:`data-blok-toolbox-opened`,blockSettingsOpened:`data-blok-block-settings-opened`,opened:`data-blok-opened`,popover:`data-blok-popover`,popoverContainer:`data-blok-popover-container`,popoverItems:`data-blok-popover-items`,popoverOverlay:`data-blok-popover-overlay`,popoverCustomContent:`data-blok-popover-custom-content`,popoverCustomClass:`data-blok-popover-custom-class`,popoverInline:`data-blok-popover-inline`,popoverOpened:`data-blok-popover-opened`,popoverOpenTop:`data-blok-popover-open-top`,popoverOpenLeft:`data-blok-popover-open-left`,nested:`data-blok-nested`,nestedLevel:`data-blok-nested-level`,promotedGroupLabel:`data-blok-promoted-group-label`,topLevelGroupLabel:`data-blok-top-level-group-label`,popoverHeader:`data-blok-popover-header`,popoverHeaderText:`data-blok-popover-header-text`,popoverHeaderBackButton:`data-blok-popover-header-back-button`,popoverItem:`data-blok-popover-item`,popoverItemIcon:`data-blok-popover-item-icon`,popoverItemIconChevronRight:`data-blok-popover-item-icon-chevron-right`,popoverItemTitle:`data-blok-popover-item-title`,popoverItemSecondaryTitle:`data-blok-popover-item-secondary-title`,popoverItemActive:`data-blok-popover-item-active`,popoverItemConfirmation:`data-blok-popover-item-confirmation`,popoverItemNoHover:`data-blok-popover-item-no-hover`,popoverItemNoFocus:`data-blok-popover-item-no-focus`,popoverItemDestructive:`data-blok-popover-item-destructive`,popoverItemSeparator:`data-blok-popover-item-separator`,popoverItemSeparatorLine:`data-blok-popover-item-separator-line`,popoverItemHtml:`data-blok-popover-item-html`,hasChildren:`data-blok-has-children`,itemName:`data-blok-item-name`,nothingFoundDisplayed:`data-blok-nothing-found-displayed`,overlay:`data-blok-overlay`,overlayContainer:`data-blok-overlay-container`,overlayRectangle:`data-blok-overlay-rectangle`,overlayHidden:`data-blok-overlay-hidden`,fakeCursor:`data-blok-fake-cursor`,fakeBackground:`data-blok-fake-background`,scrollZone:`data-blok-scroll-zone`,scrollLocked:`data-blok-scroll-locked`,scrollLockedHard:`data-blok-scroll-locked-hard`,shadowCaret:`data-blok-shadow-caret`,placeholder:`data-blok-placeholder`,placeholderActive:`data-blok-placeholder-active`,nestedBlocks:`data-blok-nested-blocks`,mutationFree:`data-blok-mutation-free`,navigationFocused:`data-blok-navigation-focused`,flipperNavigationTarget:`data-blok-flipper-navigation-target`,inlineToolbar:`data-blok-inline-toolbar`,linkToolActive:`data-blok-link-tool-active`,linkToolUnlink:`data-blok-link-tool-unlink`,linkToolInputOpened:`data-blok-link-tool-input-opened`,boldCollapsedLength:`data-blok-bold-collapsed-length`,boldCollapsedActive:`data-blok-bold-collapsed-active`,boldPrevLength:`data-blok-bold-prev-length`,boldLeadingWs:`data-blok-bold-leading-ws`,boldMarker:`data-blok-bold-marker`,shown:`data-blok-shown`,placement:`data-blok-placement`,bounceIn:`data-blok-bounce-in`,announcer:`data-blok-announcer`,stub:`data-blok-stub`,stubInfo:`data-blok-stub-info`,stubTitle:`data-blok-stub-title`,stubSubtitle:`data-blok-stub-subtitle`,slashSearch:`data-blok-slash-search`,testid:`data-blok-testid`,forceHover:`data-blok-force-hover`},i=(e,t)=>t===void 0?`[${e}]`:`[${e}="${t}"]`,a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,NUMBER_KEY_MIN:47,NUMBER_KEY_MAX:58,LETTER_KEY_MIN:64,LETTER_KEY_MAX:91,META:91,NUMPAD_KEY_MIN:95,NUMPAD_KEY_MAX:112,PUNCTUATION_KEY_MIN:185,PUNCTUATION_KEY_MAX:193,BRACKET_KEY_MIN:218,BRACKET_KEY_MAX:223,PROCESSING_KEY:229,SLASH:191},o={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4},s=()=>`0.14.
|
|
1
|
+
const e=require(`./chunk-CZKdLM9-.cjs`),t=require(`./objectSpread2-iNkE6aJh.cjs`),n=require(`./tw-CjHZc17C.cjs`);var r={interface:`data-blok-interface`,element:`data-blok-element`,elementContent:`data-blok-element-content`,editor:`data-blok-editor`,redactor:`data-blok-redactor`,id:`data-blok-id`,component:`data-blok-component`,tool:`data-blok-tool`,depth:`data-blok-depth`,hidden:`data-blok-hidden`,disabled:`data-blok-disabled`,focused:`data-blok-focused`,selected:`data-blok-selected`,stretched:`data-blok-stretched`,empty:`data-blok-empty`,contentAlign:`data-blok-content-align`,rtl:`data-blok-rtl`,dragging:`data-blok-dragging`,draggingMulti:`data-blok-dragging-multi`,duplicating:`data-blok-duplicating`,dragHandle:`data-blok-drag-handle`,toolbar:`data-blok-toolbar`,settingsToggler:`data-blok-settings-toggler`,toolboxOpened:`data-blok-toolbox-opened`,blockSettingsOpened:`data-blok-block-settings-opened`,opened:`data-blok-opened`,popover:`data-blok-popover`,popoverContainer:`data-blok-popover-container`,popoverItems:`data-blok-popover-items`,popoverOverlay:`data-blok-popover-overlay`,popoverCustomContent:`data-blok-popover-custom-content`,popoverCustomClass:`data-blok-popover-custom-class`,popoverInline:`data-blok-popover-inline`,popoverOpened:`data-blok-popover-opened`,popoverOpenTop:`data-blok-popover-open-top`,popoverOpenLeft:`data-blok-popover-open-left`,nested:`data-blok-nested`,nestedLevel:`data-blok-nested-level`,promotedGroupLabel:`data-blok-promoted-group-label`,topLevelGroupLabel:`data-blok-top-level-group-label`,popoverHeader:`data-blok-popover-header`,popoverHeaderText:`data-blok-popover-header-text`,popoverHeaderBackButton:`data-blok-popover-header-back-button`,popoverItem:`data-blok-popover-item`,popoverItemIcon:`data-blok-popover-item-icon`,popoverItemIconChevronRight:`data-blok-popover-item-icon-chevron-right`,popoverItemTitle:`data-blok-popover-item-title`,popoverItemSecondaryTitle:`data-blok-popover-item-secondary-title`,popoverItemActive:`data-blok-popover-item-active`,popoverItemConfirmation:`data-blok-popover-item-confirmation`,popoverItemNoHover:`data-blok-popover-item-no-hover`,popoverItemNoFocus:`data-blok-popover-item-no-focus`,popoverItemDestructive:`data-blok-popover-item-destructive`,popoverItemSeparator:`data-blok-popover-item-separator`,popoverItemSeparatorLine:`data-blok-popover-item-separator-line`,popoverItemHtml:`data-blok-popover-item-html`,hasChildren:`data-blok-has-children`,itemName:`data-blok-item-name`,nothingFoundDisplayed:`data-blok-nothing-found-displayed`,overlay:`data-blok-overlay`,overlayContainer:`data-blok-overlay-container`,overlayRectangle:`data-blok-overlay-rectangle`,overlayHidden:`data-blok-overlay-hidden`,fakeCursor:`data-blok-fake-cursor`,fakeBackground:`data-blok-fake-background`,scrollZone:`data-blok-scroll-zone`,scrollLocked:`data-blok-scroll-locked`,scrollLockedHard:`data-blok-scroll-locked-hard`,shadowCaret:`data-blok-shadow-caret`,placeholder:`data-blok-placeholder`,placeholderActive:`data-blok-placeholder-active`,nestedBlocks:`data-blok-nested-blocks`,mutationFree:`data-blok-mutation-free`,navigationFocused:`data-blok-navigation-focused`,flipperNavigationTarget:`data-blok-flipper-navigation-target`,inlineToolbar:`data-blok-inline-toolbar`,linkToolActive:`data-blok-link-tool-active`,linkToolUnlink:`data-blok-link-tool-unlink`,linkToolInputOpened:`data-blok-link-tool-input-opened`,boldCollapsedLength:`data-blok-bold-collapsed-length`,boldCollapsedActive:`data-blok-bold-collapsed-active`,boldPrevLength:`data-blok-bold-prev-length`,boldLeadingWs:`data-blok-bold-leading-ws`,boldMarker:`data-blok-bold-marker`,shown:`data-blok-shown`,placement:`data-blok-placement`,bounceIn:`data-blok-bounce-in`,announcer:`data-blok-announcer`,stub:`data-blok-stub`,stubInfo:`data-blok-stub-info`,stubTitle:`data-blok-stub-title`,stubSubtitle:`data-blok-stub-subtitle`,slashSearch:`data-blok-slash-search`,testid:`data-blok-testid`,forceHover:`data-blok-force-hover`},i=(e,t)=>t===void 0?`[${e}]`:`[${e}="${t}"]`,a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,NUMBER_KEY_MIN:47,NUMBER_KEY_MAX:58,LETTER_KEY_MIN:64,LETTER_KEY_MAX:91,META:91,NUMPAD_KEY_MIN:95,NUMPAD_KEY_MAX:112,PUNCTUATION_KEY_MIN:185,PUNCTUATION_KEY_MAX:193,BRACKET_KEY_MIN:218,BRACKET_KEY_MAX:223,PROCESSING_KEY:229,SLASH:191},o={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4},s=()=>`0.14.1`,c=function(e){return e.VERBOSE=`VERBOSE`,e.INFO=`INFO`,e.WARN=`WARN`,e.ERROR=`ERROR`,e}({}),l=(e,t,n=`log`,r,i=`color: inherit`)=>{let a=typeof console>`u`?void 0:console;if(!a||typeof a[n]!=`function`)return;let o=[`info`,`log`,`warn`,`error`].includes(n),u=[];switch(l.logLevel){case c.VERBOSE:break;case c.ERROR:if(n!==`error`)return;break;case c.WARN:if(![`error`,`warn`].includes(n))return;break;case c.INFO:if(!o||e)return;break}r&&u.push(r);let d=`Blok ${s()}`,f=e?o?(u.unshift(`line-height: 1em;
|
|
2
2
|
color: #006FEA;
|
|
3
3
|
display: inline-block;
|
|
4
4
|
font-size: 11px;
|