Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocknote/ariakit

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocknote/ariakit - npm Package Compare versions

Comparing version 0.13.2 to 0.13.3

299

dist/blocknote-ariakit.js
import we, { forwardRef as E } from "react";
import { ComponentsContext as vr, BlockNoteViewRaw as mr } from "@blocknote/react";
import * as f from "@ariakit/react";
import * as u from "@ariakit/react";
import { assertEmpty as y, mergeCSSClasses as _, isSafari as pr } from "@blocknote/core";

@@ -20,8 +20,8 @@ var re = { exports: {} }, $ = {};

Se = 1;
var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
function p(g, d, h) {
var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
function m(g, d, h) {
var R, k = {}, N = null, W = null;
h !== void 0 && (N = "" + h), d.key !== void 0 && (N = "" + d.key), d.ref !== void 0 && (W = d.ref);
for (R in d)
n.call(d, R) && !u.hasOwnProperty(R) && (k[R] = d[R]);
n.call(d, R) && !f.hasOwnProperty(R) && (k[R] = d[R]);
if (g && g.defaultProps)

@@ -32,3 +32,3 @@ for (R in d = g.defaultProps, d)

}
return $.Fragment = i, $.jsx = p, $.jsxs = p, $;
return $.Fragment = i, $.jsx = m, $.jsxs = m, $;
}

@@ -48,4 +48,4 @@ var B = {};

return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), te = Symbol.iterator, Oe = "@@iterator";
function Ie(e) {
var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), te = Symbol.iterator, Oe = "@@iterator";
function Fe(e) {
if (e === null || typeof e != "object")

@@ -68,4 +68,4 @@ return null;

b !== "" && (r += "%s", t = t.concat([b]));
var x = t.map(function(m) {
return String(m);
var x = t.map(function(p) {
return String(p);
});

@@ -75,6 +75,6 @@ x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);

}
var Fe = !1, Me = !1, Ae = !1, Le = !1, $e = !1, ne;
var Ie = !1, Me = !1, Ae = !1, Le = !1, $e = !1, ne;
ne = Symbol.for("react.module.reference");
function Be(e) {
return !!(typeof e == "string" || typeof e == "function" || e === n || e === u || $e || e === l || e === h || e === R || Le || e === W || Fe || Me || Ae || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === k || e.$$typeof === p || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === n || e === f || $e || e === l || e === h || e === R || Le || e === W || Ie || Me || Ae || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === k || e.$$typeof === m || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -107,3 +107,3 @@ // we don't know which Flight build this will end up being used

return "Portal";
case u:
case f:
return "Profiler";

@@ -122,3 +122,3 @@ case l:

return ae(r) + ".Consumer";
case p:
case m:
var t = e;

@@ -132,5 +132,5 @@ return ae(t._context) + ".Provider";

case N: {
var b = e, x = b._payload, m = b._init;
var b = e, x = b._payload, p = b._init;
try {
return w(m(x));
return w(p(x));
} catch {

@@ -143,3 +143,3 @@ return null;

}
var I = Object.assign, A = 0, oe, se, ie, le, ce, ue, fe;
var F = Object.assign, A = 0, oe, se, ie, le, ce, ue, fe;
function de() {

@@ -180,21 +180,21 @@ }

Object.defineProperties(console, {
log: I({}, e, {
log: F({}, e, {
value: oe
}),
info: I({}, e, {
info: F({}, e, {
value: se
}),
warn: I({}, e, {
warn: F({}, e, {
value: ie
}),
error: I({}, e, {
error: F({}, e, {
value: le
}),
group: I({}, e, {
group: F({}, e, {
value: ce
}),
groupCollapsed: I({}, e, {
groupCollapsed: F({}, e, {
value: ue
}),
groupEnd: I({}, e, {
groupEnd: F({}, e, {
value: fe

@@ -242,6 +242,6 @@ })

if (r) {
var m = function() {
var p = function() {
throw Error();
};
if (Object.defineProperty(m.prototype, "props", {
if (Object.defineProperty(p.prototype, "props", {
set: function() {

@@ -252,14 +252,14 @@ throw Error();

try {
Reflect.construct(m, []);
Reflect.construct(p, []);
} catch (O) {
c = O;
}
Reflect.construct(e, [], m);
Reflect.construct(e, [], p);
} else {
try {
m.call();
p.call();
} catch (O) {
c = O;
}
e.call(m.prototype);
e.call(p.prototype);
}

@@ -346,15 +346,15 @@ } else {

var x = Function.call.bind(G);
for (var m in e)
if (x(e, m)) {
for (var p in e)
if (x(e, p)) {
var v = void 0;
try {
if (typeof e[m] != "function") {
var P = Error((c || "React class") + ": " + t + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
if (typeof e[p] != "function") {
var P = Error((c || "React class") + ": " + t + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw P.name = "Invariant Violation", P;
}
v = e[m](r, m, c, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
v = e[p](r, p, c, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (j) {
v = j;
}
v && !(v instanceof Error) && (q(b), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", t, m, typeof v), q(null)), v instanceof Error && !(v.message in me) && (me[v.message] = !0, q(b), S("Failed %s type: %s", t, v.message), q(null));
v && !(v instanceof Error) && (q(b), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", t, p, typeof v), q(null)), v instanceof Error && !(v.message in me) && (me[v.message] = !0, q(b), S("Failed %s type: %s", t, v.message), q(null));
}

@@ -438,3 +438,3 @@ }

}
var nr = function(e, r, t, c, b, x, m) {
var nr = function(e, r, t, c, b, x, p) {
var v = {

@@ -447,3 +447,3 @@ // This tag allows us to uniquely identify this as a React Element

ref: t,
props: m,
props: p,
// Record the component responsible for creating this element.

@@ -471,20 +471,20 @@ _owner: x

{
var x, m = {}, v = null, P = null;
var x, p = {}, v = null, P = null;
t !== void 0 && (he(t), v = "" + t), Qe(r) && (he(r.key), v = "" + r.key), Ze(r) && (P = r.ref, er(r, b));
for (x in r)
G.call(r, x) && !Xe.hasOwnProperty(x) && (m[x] = r[x]);
G.call(r, x) && !Xe.hasOwnProperty(x) && (p[x] = r[x]);
if (e && e.defaultProps) {
var j = e.defaultProps;
for (x in j)
m[x] === void 0 && (m[x] = j[x]);
p[x] === void 0 && (p[x] = j[x]);
}
if (v || P) {
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
v && rr(m, T), P && tr(m, T);
v && rr(p, T), P && tr(p, T);
}
return nr(e, v, P, b, c, L.current, m);
return nr(e, v, P, b, c, L.current, p);
}
}
var Z = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
function F(e) {
function I(e) {
if (e) {

@@ -547,3 +547,3 @@ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);

var c = "";
e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + w(e._owner.type) + "."), F(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, c), F(null);
e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + w(e._owner.type) + "."), I(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, c), I(null);
}

@@ -563,6 +563,6 @@ }

else if (e) {
var b = Ie(e);
var b = Fe(e);
if (typeof b == "function" && b !== e.entries)
for (var x = b.call(e), m; !(m = x.next()).done; )
ee(m.value) && je(m.value, r);
for (var x = b.call(e), p; !(p = x.next()).done; )
ee(p.value) && je(p.value, r);
}

@@ -601,7 +601,7 @@ }

if (c !== "children" && c !== "key") {
F(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
I(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), I(null);
break;
}
}
e.ref !== null && (F(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
e.ref !== null && (I(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
}

@@ -611,4 +611,4 @@ }

{
var m = Be(e);
if (!m) {
var p = Be(e);
if (!p) {
var v = "";

@@ -624,3 +624,3 @@ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");

return T;
if (m) {
if (p) {
var C = r.children;

@@ -655,3 +655,3 @@ if (C !== void 0)

const { children: s, ...i } = a;
return y(i), /* @__PURE__ */ o.jsx(f.FormProvider, { children: s });
return y(i), /* @__PURE__ */ o.jsx(u.FormProvider, { children: s });
}, xr = E((a, s) => {

@@ -662,4 +662,4 @@ const {

label: l,
icon: u,
value: p,
icon: f,
value: m,
autoFocus: g,

@@ -673,7 +673,7 @@ placeholder: d,

return y(N), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
a.label && /* @__PURE__ */ o.jsx(f.FormLabel, { name: n, children: l }),
a.label && /* @__PURE__ */ o.jsx(u.FormLabel, { name: n, children: l }),
/* @__PURE__ */ o.jsxs("div", { className: "bn-ak-input-wrapper", children: [
u,
f,
/* @__PURE__ */ o.jsx(
f.FormInput,
u.FormInput,
{

@@ -683,3 +683,3 @@ className: _("bn-ak-input", i || ""),

name: n,
value: p,
value: m,
autoFocus: g,

@@ -701,6 +701,6 @@ placeholder: d,

// unused
...u
...f
} = a;
return y(u), /* @__PURE__ */ o.jsx(
f.MenuProvider,
return y(f), /* @__PURE__ */ o.jsx(
u.MenuProvider,
{

@@ -719,6 +719,6 @@ placement: n,

// unused
...u
...f
} = a;
return y(u), /* @__PURE__ */ o.jsx(
f.Menu,
return y(f), /* @__PURE__ */ o.jsx(
u.Menu,
{

@@ -731,7 +731,7 @@ className: _("bn-ak-menu", i || ""),

}), Er = E((a, s) => {
const { className: i, children: n, icon: l, checked: u, subTrigger: p, onClick: g, ...d } = a;
return y(d), p ? /* @__PURE__ */ o.jsxs(
f.MenuButton,
const { className: i, children: n, icon: l, checked: f, subTrigger: m, onClick: g, ...d } = a;
return y(d), m ? /* @__PURE__ */ o.jsxs(
u.MenuButton,
{
render: /* @__PURE__ */ o.jsx(f.MenuItem, {}),
render: /* @__PURE__ */ o.jsx(u.MenuItem, {}),
className: _("bn-ak-menu-item", i || ""),

@@ -743,8 +743,8 @@ ref: s,

n,
/* @__PURE__ */ o.jsx(f.MenuButtonArrow, {}),
u !== void 0 && /* @__PURE__ */ o.jsx(f.CheckboxCheck, { checked: u })
/* @__PURE__ */ o.jsx(u.MenuButtonArrow, {}),
f !== void 0 && /* @__PURE__ */ o.jsx(u.CheckboxCheck, { checked: f })
]
}
) : /* @__PURE__ */ o.jsxs(
f.MenuItem,
u.MenuItem,
{

@@ -757,3 +757,3 @@ className: _("bn-ak-menu-item", i || ""),

n,
u !== void 0 && /* @__PURE__ */ o.jsx(f.CheckboxCheck, { checked: u })
f !== void 0 && /* @__PURE__ */ o.jsx(u.CheckboxCheck, { checked: f })
]

@@ -765,3 +765,3 @@ }

return y(l), /* @__PURE__ */ o.jsx(
f.MenuGroupLabel,
u.MenuGroupLabel,
{

@@ -775,7 +775,7 @@ className: _("bn-ak-group-label", i || ""),

const { children: s, sub: i, ...n } = a;
return y(n), i ? s : /* @__PURE__ */ o.jsx(f.MenuButton, { render: s });
return y(n), i ? s : /* @__PURE__ */ o.jsx(u.MenuButton, { render: s });
}, _r = E((a, s) => {
const { className: i, ...n } = a;
return y(n), /* @__PURE__ */ o.jsx(
f.MenuSeparator,
u.MenuSeparator,
{

@@ -791,4 +791,4 @@ className: _("bn-ak-separator", i || ""),

defaultOpenTab: l,
openTab: u,
setOpenTab: p,
openTab: f,
setOpenTab: m,
loading: g,

@@ -804,12 +804,12 @@ // TODO: implement loading

children: /* @__PURE__ */ o.jsxs(
f.TabProvider,
u.TabProvider,
{
defaultSelectedId: l,
selectedId: u,
selectedId: f,
setActiveId: (h) => {
h && p(h);
h && m(h);
},
children: [
/* @__PURE__ */ o.jsx(f.TabList, { className: "bn-ak-tab-list", children: n.map((h) => /* @__PURE__ */ o.jsx(f.Tab, { className: "bn-ak-tab", id: h.name, children: h.name }, h.name)) }),
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children: n.map((h) => /* @__PURE__ */ o.jsx(f.TabPanel, { tabId: h.name, children: h.tabPanel }, h.name)) })
/* @__PURE__ */ o.jsx(u.TabList, { className: "bn-ak-tab-list", children: n.map((h) => /* @__PURE__ */ o.jsx(u.Tab, { className: "bn-ak-tab", id: h.name, children: h.name }, h.name)) }),
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children: n.map((h) => /* @__PURE__ */ o.jsx(u.TabPanel, { tabId: h.name, children: h.tabPanel }, h.name)) })
]

@@ -821,9 +821,9 @@ }

}), Sr = E((a, s) => {
const { className: i, children: n, onClick: l, label: u, ...p } = a;
return y(p), /* @__PURE__ */ o.jsx(
f.Button,
const { className: i, children: n, onClick: l, label: f, ...m } = a;
return y(m), /* @__PURE__ */ o.jsx(
u.Button,
{
className: _("bn-ak-button", i || ""),
onClick: l,
"aria-label": u,
"aria-label": f,
ref: s,

@@ -834,5 +834,5 @@ children: n

}), Pr = E((a, s) => {
const { className: i, value: n, placeholder: l, onChange: u, ...p } = a;
return y(p), /* @__PURE__ */ o.jsx(f.FormProvider, { children: /* @__PURE__ */ o.jsx(
f.FormInput,
const { className: i, accept: n, value: l, placeholder: f, onChange: m, ...g } = a;
return y(g), /* @__PURE__ */ o.jsx(u.FormProvider, { children: /* @__PURE__ */ o.jsx(
u.FormInput,
{

@@ -843,5 +843,6 @@ className: i,

type: "file",
value: n ? n.name : void 0,
onChange: async (g) => u == null ? void 0 : u(g.target.files[0]),
placeholder: l
accept: n,
value: l ? l.name : void 0,
onChange: async (d) => m == null ? void 0 : m(d.target.files[0]),
placeholder: f
}

@@ -853,5 +854,5 @@ ) });

}), Nr = E((a, s) => {
const { className: i, value: n, placeholder: l, onKeyDown: u, onChange: p, ...g } = a;
return y(g), /* @__PURE__ */ o.jsx(f.FormProvider, { children: /* @__PURE__ */ o.jsx(
f.FormInput,
const { className: i, value: n, placeholder: l, onKeyDown: f, onChange: m, ...g } = a;
return y(g), /* @__PURE__ */ o.jsx(u.FormProvider, { children: /* @__PURE__ */ o.jsx(
u.FormInput,
{

@@ -862,4 +863,4 @@ className: _("bn-ak-input", i || ""),

placeholder: l,
onChange: p,
onKeyDown: u,
onChange: m,
onKeyDown: f,
"data-test": "embed-input",

@@ -871,7 +872,7 @@ ref: s

const { children: i, ...n } = a;
return y(n), /* @__PURE__ */ o.jsx(f.PopoverDisclosure, { render: i, ref: s });
return y(n), /* @__PURE__ */ o.jsx(u.PopoverDisclosure, { render: i, ref: s });
}), Or = E((a, s) => {
const { className: i, children: n, variant: l, ...u } = a;
return y(u), /* @__PURE__ */ o.jsx(
f.Popover,
const { className: i, children: n, variant: l, ...f } = a;
return y(f), /* @__PURE__ */ o.jsx(
u.Popover,
{

@@ -883,9 +884,9 @@ className: _("bn-ak-popover", i || ""),

);
}), Ir = (a) => {
}), Fr = (a) => {
const { children: s, opened: i, position: n, ...l } = a;
return y(l), /* @__PURE__ */ o.jsx(f.PopoverProvider, { open: i, placement: n, children: s });
return y(l), /* @__PURE__ */ o.jsx(u.PopoverProvider, { open: i, placement: n, children: s });
}, Dr = E((a, s) => {
const { className: i, children: n, ...l } = a;
return y(l), /* @__PURE__ */ o.jsx(f.Group, { className: i, ref: s, children: n });
}), Fr = E((a, s) => {
return y(l), /* @__PURE__ */ o.jsx(u.Group, { className: i, ref: s, children: n });
}), Ir = E((a, s) => {
const {

@@ -895,4 +896,4 @@ className: i,

icon: l,
onClick: u,
label: p,
onClick: f,
label: m,
onDragEnd: g,

@@ -904,3 +905,3 @@ onDragStart: d,

return y(R, !1), /* @__PURE__ */ o.jsxs(
f.Button,
u.Button,
{

@@ -910,3 +911,3 @@ onDragEnd: g,

draggable: h,
"aria-label": p,
"aria-label": m,
className: _(

@@ -917,3 +918,3 @@ "bn-ak-button bn-ak-secondary",

ref: s,
onClick: u,
onClick: f,
...R,

@@ -927,5 +928,5 @@ children: [

}), Mr = E((a, s) => {
const { className: i, children: n, id: l, ...u } = a;
return y(u), /* @__PURE__ */ o.jsx(
f.Group,
const { className: i, children: n, id: l, ...f } = a;
return y(f), /* @__PURE__ */ o.jsx(
u.Group,
{

@@ -940,3 +941,3 @@ className: _("bn-ak-menu", i || ""),

}), Ar = E((a, s) => {
const { className: i, item: n, isSelected: l, onClick: u, id: p, ...g } = a;
const { className: i, item: n, isSelected: l, onClick: f, id: m, ...g } = a;
return y(g), /* @__PURE__ */ o.jsxs(

@@ -947,4 +948,4 @@ "div",

ref: s,
id: p,
onClick: u,
id: m,
onClick: f,
role: "option",

@@ -1004,4 +1005,4 @@ "aria-selected": l || void 0,

draggable: l,
onDragStart: u,
onDragEnd: p,
onDragStart: f,
onDragEnd: m,
style: g,

@@ -1012,3 +1013,3 @@ label: d,

return y(h, !1), /* @__PURE__ */ o.jsx(
f.Button,
u.Button,
{

@@ -1022,4 +1023,4 @@ className: _(

draggable: l,
onDragStart: u,
onDragEnd: p,
onDragStart: f,
onDragEnd: m,
style: g,

@@ -1032,5 +1033,5 @@ ...h,

(a, s) => {
const { className: i, children: n, onMouseEnter: l, onMouseLeave: u, ...p } = a;
return y(p), /* @__PURE__ */ o.jsx(
f.Toolbar,
const { className: i, children: n, onMouseEnter: l, onMouseLeave: f, ...m } = a;
return y(m), /* @__PURE__ */ o.jsx(
u.Toolbar,
{

@@ -1040,3 +1041,3 @@ className: _("bn-ak-toolbar", i || ""),

onMouseEnter: l,
onMouseLeave: u,
onMouseLeave: f,
children: n

@@ -1052,4 +1053,4 @@ }

mainTooltip: l,
secondaryTooltip: u,
icon: p,
secondaryTooltip: f,
icon: m,
isSelected: g,

@@ -1061,9 +1062,9 @@ isDisabled: d,

} = a;
return y(k, !1), /* @__PURE__ */ o.jsxs(f.TooltipProvider, { children: [
return y(k, !1), /* @__PURE__ */ o.jsxs(u.TooltipProvider, { children: [
/* @__PURE__ */ o.jsx(
f.TooltipAnchor,
u.TooltipAnchor,
{
className: "link",
render: /* @__PURE__ */ o.jsxs(
f.ToolbarItem,
u.ToolbarItem,
{

@@ -1086,3 +1087,3 @@ "aria-label": R,

children: [
p,
m,
n

@@ -1094,5 +1095,5 @@ ]

),
/* @__PURE__ */ o.jsxs(f.Tooltip, { className: "bn-ak-tooltip", children: [
/* @__PURE__ */ o.jsxs(u.Tooltip, { className: "bn-ak-tooltip", children: [
/* @__PURE__ */ o.jsx("span", { children: l }),
u && /* @__PURE__ */ o.jsx("span", { children: u })
f && /* @__PURE__ */ o.jsx("span", { children: f })
] })

@@ -1102,11 +1103,11 @@ ] });

), Yr = E((a, s) => {
const { className: i, items: n, isDisabled: l, ...u } = a;
y(u);
const p = a.items.filter((d) => d.isSelected)[0], g = (d) => {
const { className: i, items: n, isDisabled: l, ...f } = a;
y(f);
const m = a.items.filter((d) => d.isSelected)[0], g = (d) => {
var h, R;
(R = (h = n.find((k) => k.text === d)).onClick) == null || R.call(h);
};
return /* @__PURE__ */ o.jsxs(f.SelectProvider, { value: p.text, setValue: g, children: [
return /* @__PURE__ */ o.jsxs(u.SelectProvider, { value: m.text, setValue: g, children: [
/* @__PURE__ */ o.jsxs(
f.Select,
u.Select,
{

@@ -1116,9 +1117,9 @@ className: "bn-ak-button bn-ak-secondary",

"aria-label": "Text alignment",
render: /* @__PURE__ */ o.jsx(f.ToolbarItem, {}),
render: /* @__PURE__ */ o.jsx(u.ToolbarItem, {}),
children: [
p.icon,
m.icon,
" ",
p.text,
m.text,
" ",
/* @__PURE__ */ o.jsx(f.SelectArrow, {})
/* @__PURE__ */ o.jsx(u.SelectArrow, {})
]

@@ -1128,3 +1129,3 @@ }

/* @__PURE__ */ o.jsx(
f.SelectPopover,
u.SelectPopover,
{

@@ -1135,3 +1136,3 @@ className: _("bn-ak-popover", i || ""),

children: n.map((d) => /* @__PURE__ */ o.jsxs(
f.SelectItem,
u.SelectItem,
{

@@ -1143,3 +1144,3 @@ className: "bn-ak-select-item",

d.text,
d.text === p.text && /* @__PURE__ */ o.jsx(f.SelectItemCheck, {})
d.text === m.text && /* @__PURE__ */ o.jsx(u.SelectItemCheck, {})
]

@@ -1159,3 +1160,3 @@ },

},
ImagePanel: {
FilePanel: {
Root: kr,

@@ -1173,3 +1174,3 @@ Button: Sr,

Root: Dr,
Button: Fr
Button: Ir
},

@@ -1200,3 +1201,3 @@ SuggestionMenu: {

Popover: {
Root: Ir,
Root: Fr,
Trigger: wr,

@@ -1203,0 +1204,0 @@ Content: Or

@@ -1,1 +0,1 @@

{"builtAt":1715360272243,"assets":[{"name":"blocknote-ariakit.umd.cjs","size":22755},{"name":"blocknote-ariakit.umd.cjs.map","size":98621}],"chunks":[{"id":"ec22802","entry":true,"initial":true,"files":["blocknote-ariakit.umd.cjs"],"names":["index"]}],"modules":[{"name":"../../node_modules/react/jsx-runtime.js?commonjs-module","size":31,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","size":40,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js","size":1205,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","size":37,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js","size":43109,"chunks":["ec22802"]},{"name":"../../node_modules/react/jsx-runtime.js","size":225,"chunks":["ec22802"]},{"name":"./src/input/Form.tsx","size":188,"chunks":["ec22802"]},{"name":"./src/input/TextInput.tsx","size":924,"chunks":["ec22802"]},{"name":"./src/menu/Menu.tsx","size":2781,"chunks":["ec22802"]},{"name":"./src/panel/Panel.tsx","size":1276,"chunks":["ec22802"]},{"name":"./src/panel/PanelButton.tsx","size":391,"chunks":["ec22802"]},{"name":"./src/panel/PanelFileInput.tsx","size":542,"chunks":["ec22802"]},{"name":"./src/panel/PanelTab.tsx","size":221,"chunks":["ec22802"]},{"name":"./src/panel/PanelTextInput.tsx","size":565,"chunks":["ec22802"]},{"name":"./src/popover/Popover.tsx","size":840,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenu.tsx","size":240,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenuButton.tsx","size":631,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenu.tsx","size":370,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1384,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":435,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLabel.tsx","size":326,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLoader.tsx","size":233,"chunks":["ec22802"]},{"name":"./src/tableHandle/TableHandle.tsx","size":571,"chunks":["ec22802"]},{"name":"./src/toolbar/Toolbar.tsx","size":429,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarButton.tsx","size":1765,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarSelect.tsx","size":1656,"chunks":["ec22802"]},{"name":"./src/style.css","size":17,"chunks":["ec22802"]},{"name":"./src/index.tsx","size":1205,"chunks":["ec22802"]}]}
{"builtAt":1716323940054,"assets":[{"name":"blocknote-ariakit.umd.cjs","size":22772},{"name":"blocknote-ariakit.umd.cjs.map","size":98680}],"chunks":[{"id":"ec22802","entry":true,"initial":true,"files":["blocknote-ariakit.umd.cjs"],"names":["index"]}],"modules":[{"name":"../../node_modules/react/jsx-runtime.js?commonjs-module","size":31,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","size":40,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js","size":1205,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","size":37,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js","size":43109,"chunks":["ec22802"]},{"name":"../../node_modules/react/jsx-runtime.js","size":225,"chunks":["ec22802"]},{"name":"./src/input/Form.tsx","size":188,"chunks":["ec22802"]},{"name":"./src/input/TextInput.tsx","size":924,"chunks":["ec22802"]},{"name":"./src/menu/Menu.tsx","size":2781,"chunks":["ec22802"]},{"name":"./src/panel/Panel.tsx","size":1276,"chunks":["ec22802"]},{"name":"./src/panel/PanelButton.tsx","size":391,"chunks":["ec22802"]},{"name":"./src/panel/PanelFileInput.tsx","size":564,"chunks":["ec22802"]},{"name":"./src/panel/PanelTab.tsx","size":221,"chunks":["ec22802"]},{"name":"./src/panel/PanelTextInput.tsx","size":565,"chunks":["ec22802"]},{"name":"./src/popover/Popover.tsx","size":840,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenu.tsx","size":240,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenuButton.tsx","size":631,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenu.tsx","size":370,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1384,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":435,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLabel.tsx","size":326,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLoader.tsx","size":233,"chunks":["ec22802"]},{"name":"./src/tableHandle/TableHandle.tsx","size":571,"chunks":["ec22802"]},{"name":"./src/toolbar/Toolbar.tsx","size":429,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarButton.tsx","size":1765,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarSelect.tsx","size":1656,"chunks":["ec22802"]},{"name":"./src/style.css","size":17,"chunks":["ec22802"]},{"name":"./src/index.tsx","size":1204,"chunks":["ec22802"]}]}

@@ -6,3 +6,3 @@ {

"license": "MPL-2.0",
"version": "0.13.2",
"version": "0.13.3",
"files": [

@@ -53,4 +53,4 @@ "dist",

"@ariakit/react": "^0.4.3",
"@blocknote/core": "^0.13.2",
"@blocknote/react": "^0.13.2",
"@blocknote/core": "^0.13.3",
"@blocknote/react": "^0.13.3",
"react": "^18",

@@ -85,3 +85,3 @@ "react-dom": "^18"

},
"gitHead": "fe1c634f65b842d9adcd735cbf2b8cb0d659cf5b"
"gitHead": "79d2dd25ee6c414d433673384f494573cf915469"
}
/// <reference types="react" />
export declare const PanelFileInput: import("react").ForwardRefExoticComponent<{
className?: string | undefined;
accept: string;
value: File | null;

@@ -5,0 +6,0 @@ placeholder: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc