@blocknote/mantine 0.13.2 → 0.13.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.
@@ -1,4 +1,4 @@
1
- (function(S,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@blocknote/react"),require("@mantine/core"),require("use-prefers-color-scheme"),require("@blocknote/core"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@blocknote/react","@mantine/core","use-prefers-color-scheme","@blocknote/core","@mantine/hooks"],g):(S=typeof globalThis<"u"?globalThis:S||self,g(S["blocknote-mantine"]={},S.React,S.react,S.Mantine,S.usePrefersColorScheme,S.core,S.hooks))})(this,function(S,g,J,ue,He,E,X){"use strict";const ce=r=>r&&typeof r=="object"&&"default"in r?r:{default:r};function Ke(r){if(r&&typeof r=="object"&&"default"in r)return r;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}return t.default=r,Object.freeze(t)}const F=ce(g),f=Ke(ue),Je=ce(He);var Z={exports:{}},B={};/**
1
+ (function(S,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@blocknote/react"),require("@mantine/core"),require("use-prefers-color-scheme"),require("@blocknote/core"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@blocknote/react","@mantine/core","use-prefers-color-scheme","@blocknote/core","@mantine/hooks"],g):(S=typeof globalThis<"u"?globalThis:S||self,g(S["blocknote-mantine"]={},S.React,S.react,S.Mantine,S.usePrefersColorScheme,S.core,S.hooks))})(this,function(S,g,X,ce,Je,E,Z){"use strict";const fe=r=>r&&typeof r=="object"&&"default"in r?r:{default:r};function Xe(r){if(r&&typeof r=="object"&&"default"in r)return r;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return t.default=r,Object.freeze(t)}const F=fe(g),f=Xe(ce),Ze=fe(Je);var Q={exports:{}},B={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var fe;function Xe(){if(fe)return B;fe=1;var r=F.default,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(u,b,m){var T,R={},P=null,Y=null;m!==void 0&&(P=""+m),b.key!==void 0&&(P=""+b.key),b.ref!==void 0&&(Y=b.ref);for(T in b)o.call(b,T)&&!c.hasOwnProperty(T)&&(R[T]=b[T]);if(u&&u.defaultProps)for(T in b=u.defaultProps,b)R[T]===void 0&&(R[T]=b[T]);return{$$typeof:t,type:u,key:P,ref:Y,props:R,_owner:s.current}}return B.Fragment=a,B.jsx=d,B.jsxs=d,B}var $={};/**
9
+ */var de;function Qe(){if(de)return B;de=1;var r=F.default,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(u,b,p){var j,R={},P=null,U=null;p!==void 0&&(P=""+p),b.key!==void 0&&(P=""+b.key),b.ref!==void 0&&(U=b.ref);for(j in b)a.call(b,j)&&!c.hasOwnProperty(j)&&(R[j]=b[j]);if(u&&u.defaultProps)for(j in b=u.defaultProps,b)R[j]===void 0&&(R[j]=b[j]);return{$$typeof:t,type:u,key:P,ref:U,props:R,_owner:s.current}}return B.Fragment=n,B.jsx=d,B.jsxs=d,B}var z={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,15 +14,15 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var de;function Ze(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=F.default,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),u=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ke=Symbol.iterator,Mr="@@iterator";function Nr(e){if(e===null||typeof e!="object")return null;var n=ke&&e[ke]||e[Mr];return typeof n=="function"?n:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),v=1;v<n;v++)i[v-1]=arguments[v];Dr("error",e,i)}}function Dr(e,n,i){{var v=L.ReactDebugCurrentFrame,x=v.getStackAddendum();x!==""&&(n+="%s",i=i.concat([x]));var k=i.map(function(h){return String(h)});k.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,k)}}var Ir=!1,Lr=!1,Ar=!1,zr=!1,Br=!1,je;je=Symbol.for("react.module.reference");function $r(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===c||Br||e===s||e===m||e===T||zr||e===Y||Ir||Lr||Ar||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===R||e.$$typeof===d||e.$$typeof===u||e.$$typeof===b||e.$$typeof===je||e.getModuleId!==void 0))}function Vr(e,n,i){var v=e.displayName;if(v)return v;var x=n.displayName||n.name||"";return x!==""?i+"("+x+")":i}function we(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case a:return"Portal";case c:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case T:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var n=e;return we(n)+".Consumer";case d:var i=e;return we(i._context)+".Provider";case b:return Vr(e,e.render,"ForwardRef");case R:var v=e.displayName||null;return v!==null?v:M(e.type)||"Memo";case P:{var x=e,k=x._payload,h=x._init;try{return M(h(k))}catch{return null}}}return null}var I=Object.assign,V=0,Se,Re,_e,Ce,Pe,Oe,Fe;function Me(){}Me.__reactDisabledLog=!0;function Wr(){{if(V===0){Se=console.log,Re=console.info,_e=console.warn,Ce=console.error,Pe=console.group,Oe=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Yr(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Se}),info:I({},e,{value:Re}),warn:I({},e,{value:_e}),error:I({},e,{value:Ce}),group:I({},e,{value:Pe}),groupCollapsed:I({},e,{value:Oe}),groupEnd:I({},e,{value:Fe})})}V<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=L.ReactCurrentDispatcher,te;function U(e,n,i){{if(te===void 0)try{throw Error()}catch(x){var v=x.stack.trim().match(/\n( *(at )?)/);te=v&&v[1]||""}return`
18
- `+te+e}}var ne=!1,G;{var Ur=typeof WeakMap=="function"?WeakMap:Map;G=new Ur}function Ne(e,n){if(!e||ne)return"";{var i=G.get(e);if(i!==void 0)return i}var v;ne=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=re.current,re.current=null,Wr();try{if(n){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(N){v=N}Reflect.construct(e,[],h)}else{try{h.call()}catch(N){v=N}e.call(h.prototype)}}else{try{throw Error()}catch(N){v=N}e()}}catch(N){if(N&&v&&typeof N.stack=="string"){for(var p=N.stack.split(`
17
+ */var ve;function er(){return ve||(ve=1,process.env.NODE_ENV!=="production"&&function(){var r=F.default,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),u=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ke=Symbol.iterator,zr="@@iterator";function $r(e){if(e===null||typeof e!="object")return null;var o=ke&&e[ke]||e[zr];return typeof o=="function"?o:null}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),v=1;v<o;v++)i[v-1]=arguments[v];Wr("error",e,i)}}function Wr(e,o,i){{var v=I.ReactDebugCurrentFrame,x=v.getStackAddendum();x!==""&&(o+="%s",i=i.concat([x]));var w=i.map(function(h){return String(h)});w.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,w)}}var Vr=!1,Yr=!1,Ur=!1,Gr=!1,qr=!1,Se;Se=Symbol.for("react.module.reference");function Hr(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===c||qr||e===s||e===p||e===j||Gr||e===U||Vr||Yr||Ur||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===R||e.$$typeof===d||e.$$typeof===u||e.$$typeof===b||e.$$typeof===Se||e.getModuleId!==void 0))}function Kr(e,o,i){var v=e.displayName;if(v)return v;var x=o.displayName||o.name||"";return x!==""?i+"("+x+")":i}function Re(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case n:return"Portal";case c:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case j:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var o=e;return Re(o)+".Consumer";case d:var i=e;return Re(i._context)+".Provider";case b:return Kr(e,e.render,"ForwardRef");case R:var v=e.displayName||null;return v!==null?v:M(e.type)||"Memo";case P:{var x=e,w=x._payload,h=x._init;try{return M(h(w))}catch{return null}}}return null}var N=Object.assign,$=0,_e,Ce,Pe,Oe,Fe,Me,De;function Ne(){}Ne.__reactDisabledLog=!0;function Jr(){{if($===0){_e=console.log,Ce=console.info,Pe=console.warn,Oe=console.error,Fe=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Xr(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:_e}),info:N({},e,{value:Ce}),warn:N({},e,{value:Pe}),error:N({},e,{value:Oe}),group:N({},e,{value:Fe}),groupCollapsed:N({},e,{value:Me}),groupEnd:N({},e,{value:De})})}$<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=I.ReactCurrentDispatcher,ne;function G(e,o,i){{if(ne===void 0)try{throw Error()}catch(x){var v=x.stack.trim().match(/\n( *(at )?)/);ne=v&&v[1]||""}return`
18
+ `+ne+e}}var ae=!1,q;{var Zr=typeof WeakMap=="function"?WeakMap:Map;q=new Zr}function Ie(e,o){if(!e||ae)return"";{var i=q.get(e);if(i!==void 0)return i}var v;ae=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=te.current,te.current=null,Jr();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(D){v=D}Reflect.construct(e,[],h)}else{try{h.call()}catch(D){v=D}e.call(h.prototype)}}else{try{throw Error()}catch(D){v=D}e()}}catch(D){if(D&&v&&typeof D.stack=="string"){for(var m=D.stack.split(`
19
19
  `),C=v.stack.split(`
20
- `),j=p.length-1,w=C.length-1;j>=1&&w>=0&&p[j]!==C[w];)w--;for(;j>=1&&w>=0;j--,w--)if(p[j]!==C[w]){if(j!==1||w!==1)do if(j--,w--,w<0||p[j]!==C[w]){var O=`
21
- `+p[j].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,O),O}while(j>=1&&w>=0);break}}}finally{ne=!1,re.current=k,Yr(),Error.prepareStackTrace=x}var z=e?e.displayName||e.name:"",qe=z?U(z):"";return typeof e=="function"&&G.set(e,qe),qe}function Gr(e,n,i){return Ne(e,!1)}function qr(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function q(e,n,i){if(e==null)return"";if(typeof e=="function")return Ne(e,qr(e));if(typeof e=="string")return U(e);switch(e){case m:return U("Suspense");case T:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return Gr(e.render);case R:return q(e.type,n,i);case P:{var v=e,x=v._payload,k=v._init;try{return q(k(x),n,i)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,De={},Ie=L.ReactDebugCurrentFrame;function K(e){if(e){var n=e._owner,i=q(e.type,e._source,n?n.type:null);Ie.setExtraStackFrame(i)}else Ie.setExtraStackFrame(null)}function Hr(e,n,i,v,x){{var k=Function.call.bind(H);for(var h in e)if(k(e,h)){var p=void 0;try{if(typeof e[h]!="function"){var C=Error((v||"React class")+": "+i+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}p=e[h](n,h,v,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){p=j}p&&!(p instanceof Error)&&(K(x),_("%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).",v||"React class",i,h,typeof p),K(null)),p instanceof Error&&!(p.message in De)&&(De[p.message]=!0,K(x),_("Failed %s type: %s",i,p.message),K(null))}}}var Kr=Array.isArray;function ae(e){return Kr(e)}function Jr(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Xr(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function Ae(e){if(Xr(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Jr(e)),Le(e)}var W=L.ReactCurrentOwner,Zr={key:!0,ref:!0,__self:!0,__source:!0},ze,Be,oe;oe={};function Qr(e){if(H.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function et(e){if(H.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function rt(e,n){if(typeof e.ref=="string"&&W.current&&n&&W.current.stateNode!==n){var i=M(W.current.type);oe[i]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(W.current.type),e.ref),oe[i]=!0)}}function tt(e,n){{var i=function(){ze||(ze=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function nt(e,n){{var i=function(){Be||(Be=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var at=function(e,n,i,v,x,k,h){var p={$$typeof:t,type:e,key:n,ref:i,props:h,_owner:k};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function ot(e,n,i,v,x){{var k,h={},p=null,C=null;i!==void 0&&(Ae(i),p=""+i),et(n)&&(Ae(n.key),p=""+n.key),Qr(n)&&(C=n.ref,rt(n,x));for(k in n)H.call(n,k)&&!Zr.hasOwnProperty(k)&&(h[k]=n[k]);if(e&&e.defaultProps){var j=e.defaultProps;for(k in j)h[k]===void 0&&(h[k]=j[k])}if(p||C){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&tt(h,w),C&&nt(h,w)}return at(e,p,C,x,v,W.current,h)}}var se=L.ReactCurrentOwner,$e=L.ReactDebugCurrentFrame;function A(e){if(e){var n=e._owner,i=q(e.type,e._source,n?n.type:null);$e.setExtraStackFrame(i)}else $e.setExtraStackFrame(null)}var ie;ie=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function Ve(){{if(se.current){var e=M(se.current.type);if(e)return`
20
+ `),T=m.length-1,k=C.length-1;T>=1&&k>=0&&m[T]!==C[k];)k--;for(;T>=1&&k>=0;T--,k--)if(m[T]!==C[k]){if(T!==1||k!==1)do if(T--,k--,k<0||m[T]!==C[k]){var O=`
21
+ `+m[T].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&q.set(e,O),O}while(T>=1&&k>=0);break}}}finally{ae=!1,te.current=w,Xr(),Error.prepareStackTrace=x}var A=e?e.displayName||e.name:"",Ke=A?G(A):"";return typeof e=="function"&&q.set(e,Ke),Ke}function Qr(e,o,i){return Ie(e,!1)}function et(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function H(e,o,i){if(e==null)return"";if(typeof e=="function")return Ie(e,et(e));if(typeof e=="string")return G(e);switch(e){case p:return G("Suspense");case j:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return Qr(e.render);case R:return H(e.type,o,i);case P:{var v=e,x=v._payload,w=v._init;try{return H(w(x),o,i)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Le={},Ae=I.ReactDebugCurrentFrame;function J(e){if(e){var o=e._owner,i=H(e.type,e._source,o?o.type:null);Ae.setExtraStackFrame(i)}else Ae.setExtraStackFrame(null)}function rt(e,o,i,v,x){{var w=Function.call.bind(K);for(var h in e)if(w(e,h)){var m=void 0;try{if(typeof e[h]!="function"){var C=Error((v||"React class")+": "+i+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}m=e[h](o,h,v,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){m=T}m&&!(m instanceof Error)&&(J(x),_("%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).",v||"React class",i,h,typeof m),J(null)),m instanceof Error&&!(m.message in Le)&&(Le[m.message]=!0,J(x),_("Failed %s type: %s",i,m.message),J(null))}}}var tt=Array.isArray;function oe(e){return tt(e)}function nt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function at(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function ze(e){if(at(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nt(e)),Be(e)}var W=I.ReactCurrentOwner,ot={key:!0,ref:!0,__self:!0,__source:!0},$e,We,ie;ie={};function it(e){if(K.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function st(e){if(K.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function lt(e,o){if(typeof e.ref=="string"&&W.current&&o&&W.current.stateNode!==o){var i=M(W.current.type);ie[i]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(W.current.type),e.ref),ie[i]=!0)}}function ut(e,o){{var i=function(){$e||($e=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function ct(e,o){{var i=function(){We||(We=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var ft=function(e,o,i,v,x,w,h){var m={$$typeof:t,type:e,key:o,ref:i,props:h,_owner:w};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function dt(e,o,i,v,x){{var w,h={},m=null,C=null;i!==void 0&&(ze(i),m=""+i),st(o)&&(ze(o.key),m=""+o.key),it(o)&&(C=o.ref,lt(o,x));for(w in o)K.call(o,w)&&!ot.hasOwnProperty(w)&&(h[w]=o[w]);if(e&&e.defaultProps){var T=e.defaultProps;for(w in T)h[w]===void 0&&(h[w]=T[w])}if(m||C){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&ut(h,k),C&&ct(h,k)}return ft(e,m,C,x,v,W.current,h)}}var se=I.ReactCurrentOwner,Ve=I.ReactDebugCurrentFrame;function L(e){if(e){var o=e._owner,i=H(e.type,e._source,o?o.type:null);Ve.setExtraStackFrame(i)}else Ve.setExtraStackFrame(null)}var le;le=!1;function ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function Ye(){{if(se.current){var e=M(se.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function st(e){{if(e!==void 0){var n=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function vt(e){{if(e!==void 0){var o=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
24
24
 
25
- Check your code at `+n+":"+i+"."}return""}}var We={};function it(e){{var n=Ve();if(!n){var i=typeof e=="string"?e:e.displayName||e.name;i&&(n=`
25
+ Check your code at `+o+":"+i+"."}return""}}var Ue={};function bt(e){{var o=Ye();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=`
26
26
 
27
- Check the top-level render call using <`+i+">.")}return n}}function Ye(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=it(n);if(We[i])return;We[i]=!0;var v="";e&&e._owner&&e._owner!==se.current&&(v=" It was passed a child from "+M(e._owner.type)+"."),A(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,v),A(null)}}function Ue(e,n){{if(typeof e!="object")return;if(ae(e))for(var i=0;i<e.length;i++){var v=e[i];le(v)&&Ye(v,n)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var x=Nr(e);if(typeof x=="function"&&x!==e.entries)for(var k=x.call(e),h;!(h=k.next()).done;)le(h.value)&&Ye(h.value,n)}}}function lt(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===b||n.$$typeof===R))i=n.propTypes;else return;if(i){var v=M(n);Hr(i,e.props,"prop",v,e)}else if(n.PropTypes!==void 0&&!ie){ie=!0;var x=M(n);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ut(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var v=n[i];if(v!=="children"&&v!=="key"){A(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),A(null);break}}e.ref!==null&&(A(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Ge(e,n,i,v,x,k){{var h=$r(e);if(!h){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=st(x);C?p+=C:p+=Ve();var j;e===null?j="null":ae(e)?j="array":e!==void 0&&e.$$typeof===t?(j="<"+(M(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,p)}var w=ot(e,n,i,x,k);if(w==null)return w;if(h){var O=n.children;if(O!==void 0)if(v)if(ae(O)){for(var z=0;z<O.length;z++)Ue(O[z],e);Object.freeze&&Object.freeze(O)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(O,e)}return e===o?ut(w):lt(w),w}}function ct(e,n,i){return Ge(e,n,i,!0)}function ft(e,n,i){return Ge(e,n,i,!1)}var dt=ft,vt=ct;$.Fragment=o,$.jsx=dt,$.jsxs=vt}()),$}process.env.NODE_ENV==="production"?Z.exports=Xe():Z.exports=Ze();var l=Z.exports;const ve=(r,t,a=!1)=>{const o=[];function s(c,d="--bn"){for(const u in c){const b=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),m=`${d}-${b}`;typeof c[u]!="object"?(typeof c[u]=="number"&&(c[u]=`${c[u]}px`),a?t.style.removeProperty(m):t.style.setProperty(m,c[u].toString())):s(c[u],m)}}return s(r),o},Q=(r,t)=>ve(r,t),Qe={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},be=r=>ve(Qe,r,!0),er=g.forwardRef((r,t)=>{const{className:a,name:o,label:s,icon:c,value:d,autoFocus:u,placeholder:b,onKeyDown:m,onChange:T,onSubmit:R,...P}=r;return E.assertEmpty(P),l.jsx(f.TextInput,{size:"xs",className:a,ref:t,name:o,label:s,leftSection:c,value:d,autoFocus:u,"data-autofocus":u?"true":void 0,placeholder:b,onKeyDown:m,onChange:T,onSubmit:R})});var me={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pe=F.default.createContext&&F.default.createContext(me),D=globalThis&&globalThis.__assign||function(){return D=Object.assign||function(r){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},D.apply(this,arguments)},rr=globalThis&&globalThis.__rest||function(r,t){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&t.indexOf(o)<0&&(a[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(a[o[s]]=r[o[s]]);return a};function ge(r){return r&&r.map(function(t,a){return F.default.createElement(t.tag,D({key:a},t.attr),ge(t.child))})}function he(r){return function(t){return F.default.createElement(tr,D({attr:D({},r.attr)},t),ge(r.child))}}function tr(r){var t=function(a){var o=r.attr,s=r.size,c=r.title,d=rr(r,["attr","size","title"]),u=s||a.size||"1em",b;return a.className&&(b=a.className),r.className&&(b=(b?b+" ":"")+r.className),F.default.createElement("svg",D({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,o,d,{className:b,style:D(D({color:r.color||a.color},a.style),r.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&F.default.createElement("title",null,c),r.children)};return pe!==void 0?F.default.createElement(pe.Consumer,null,function(a){return t(a)}):t(me)}function nr(r){return he({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(r)}function ar(r){return he({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(r)}const ye=g.createContext(void 0),or=g.forwardRef((r,t)=>{const{children:a,onOpenChange:o,position:s,sub:c,...d}=r;E.assertEmpty(d);const[u,b]=g.useState(!1),m=g.useRef(),T=g.useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{b(!1)},250)},[]),R=g.useCallback(()=>{m.current&&clearTimeout(m.current),b(!0)},[]);return l.jsx(ye.Provider,{value:{onMenuMouseOver:R,onMenuMouseLeave:T},children:l.jsx(f.Menu.Item,{className:"bn-menu-item bn-mt-sub-menu-item",ref:t,onMouseOver:R,onMouseLeave:T,children:l.jsx(f.Menu,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},trigger:"hover",opened:u,onClose:()=>o==null?void 0:o(!1),onOpen:()=>o==null?void 0:o(!0),position:s,children:a})})})}),sr=r=>{const{children:t,onOpenChange:a,position:o,sub:s,...c}=r;return E.assertEmpty(c),s?l.jsx(or,{...r}):l.jsx(f.Menu,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onClose:()=>a==null?void 0:a(!1),onOpen:()=>a==null?void 0:a(!0),position:o,children:t})},ir=g.forwardRef((r,t)=>{const{className:a,children:o,icon:s,checked:c,subTrigger:d,onClick:u,...b}=r;return E.assertEmpty(b,!1),d?l.jsxs("div",{ref:t,...b,children:[o,l.jsx(ar,{size:15})]}):l.jsx(f.Menu.Item,{className:a,ref:t,leftSection:s,rightSection:c?l.jsx(f.CheckIcon,{size:10}):c===!1?l.jsx("div",{className:"bn-tick-space"}):null,onClick:u,...b,children:o})}),lr=r=>{const{children:t,sub:a,...o}=r;return E.assertEmpty(o),l.jsx(f.Menu.Target,{children:t})},ur=g.forwardRef((r,t)=>{const{className:a,children:o,sub:s,...c}=r;E.assertEmpty(c);const d=g.useContext(ye);return l.jsx(f.Menu.Dropdown,{className:a,ref:t,onMouseOver:d==null?void 0:d.onMenuMouseOver,onMouseLeave:d==null?void 0:d.onMenuMouseLeave,children:o})}),cr=g.forwardRef((r,t)=>{const{className:a,...o}=r;return E.assertEmpty(o),l.jsx(f.Menu.Divider,{className:a,ref:t})}),fr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Menu.Label,{className:a,ref:t,children:o})}),dr=g.forwardRef((r,t)=>{const{className:a,tabs:o,defaultOpenTab:s,openTab:c,setOpenTab:d,loading:u,...b}=r;return E.assertEmpty(b),l.jsx(f.Group,{className:a,ref:t,children:l.jsxs(f.Tabs,{value:c,defaultValue:s,onChange:d,children:[u&&l.jsx(f.LoadingOverlay,{visible:u}),l.jsx(f.Tabs.List,{children:o.map(m=>l.jsx(f.Tabs.Tab,{"data-test":`${m.name.toLowerCase()}-tab`,value:m.name,children:m.name},m.name))}),o.map(m=>l.jsx(f.Tabs.Panel,{value:m.name,children:m.tabPanel},m.name))]})})}),vr=g.forwardRef((r,t)=>{const{className:a,children:o,onClick:s,label:c,...d}=r;return E.assertEmpty(d),l.jsx(f.Button,{size:"xs","aria-label":c,className:a,ref:t,onClick:s,...d,children:o})}),br=g.forwardRef((r,t)=>{const{className:a,value:o,placeholder:s,onChange:c,...d}=r;return E.assertEmpty(d),l.jsx(f.FileInput,{size:"xs",className:a,ref:t,value:o,placeholder:s,onChange:c,...d})}),mr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx("div",{className:a,ref:t,children:o})}),pr=g.forwardRef((r,t)=>{const{className:a,value:o,placeholder:s,onKeyDown:c,onChange:d,...u}=r;return E.assertEmpty(u),l.jsx(f.TextInput,{size:"xs","data-test":"embed-input",className:a,ref:t,value:o,placeholder:s,onKeyDown:c,onChange:d})}),gr=r=>{const{children:t,opened:a,position:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Popover,{withinPortal:!1,zIndex:1e4,opened:a,position:o,children:t})},hr=r=>{const{children:t,...a}=r;return E.assertEmpty(a),l.jsx(f.PopoverTarget,{children:t})},yr=g.forwardRef((r,t)=>{const{className:a,children:o,variant:s,...c}=r;return E.assertEmpty(c),l.jsx(f.PopoverDropdown,{className:a,ref:t,children:o})}),xr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{align:"center",gap:0,className:a,ref:t,children:o})}),Er=g.forwardRef((r,t)=>{const{className:a,children:o,icon:s,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,label:m,...T}=r;return E.assertEmpty(T,!1),s?l.jsx(f.ActionIcon,{size:24,className:a,ref:t,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,"aria-label":m,...T,children:s}):l.jsx(f.Button,{className:a,ref:t,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,"aria-label":m,...T,children:o})}),Tr=g.forwardRef((r,t)=>{const{className:a,children:o,id:s,...c}=r;return E.assertEmpty(c),l.jsx(f.Stack,{gap:0,className:a,ref:t,id:s,role:"listbox",children:o})}),kr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{className:a,ref:t,children:l.jsx(f.Group,{className:"bn-mt-suggestion-menu-item-label",children:o})})}),jr=g.forwardRef((r,t)=>{const{className:a,isSelected:o,onClick:s,item:c,id:d,...u}=r;return E.assertEmpty(u),l.jsxs(f.Group,{gap:0,className:a,ref:t,id:d,role:"option",onClick:s,"aria-selected":o||void 0,children:[c.icon&&l.jsx(f.Group,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),l.jsxs(f.Stack,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[l.jsx(f.Text,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),l.jsx(f.Text,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&l.jsx(f.Group,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:l.jsx(f.Badge,{size:"xs",children:c.badge})})]})}),wr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{className:a,ref:t,children:o})}),Sr=g.forwardRef((r,t)=>{const{className:a,children:o,...s}=r;return E.assertEmpty(s),l.jsx(f.Loader,{className:a,type:"dots",ref:t})}),Rr=g.forwardRef((r,t)=>{const{className:a,children:o,draggable:s,onDragStart:c,onDragEnd:d,style:u,label:b,...m}=r;return E.assertEmpty(m,!1),l.jsx("button",{className:a,ref:t,"aria-label":b,draggable:s,onDragStart:c,onDragEnd:d,style:u,...m,children:o})}),xe=g.forwardRef((r,t)=>{const{className:a,children:o,onMouseEnter:s,onMouseLeave:c,...d}=r;E.assertEmpty(d);const{ref:u,focused:b}=X.useFocusWithin(),m=X.useFocusTrap(b),T=X.mergeRefs(t,u,m);return l.jsx(f.Group,{className:a,ref:T,role:"toolbar",onMouseEnter:s,onMouseLeave:c,children:o})}),_r=r=>l.jsxs(f.Stack,{gap:0,className:"bn-tooltip",children:[l.jsx(f.Text,{size:"sm",children:r.mainTooltip}),r.secondaryTooltip&&l.jsx(f.Text,{size:"xs",children:r.secondaryTooltip})]}),Ee=g.forwardRef((r,t)=>{const{className:a,children:o,mainTooltip:s,secondaryTooltip:c,icon:d,isSelected:u,isDisabled:b,onClick:m,label:T,...R}=r;return E.assertEmpty(R,!1),l.jsx(f.Tooltip,{withinPortal:!1,label:l.jsx(_r,{mainTooltip:s,secondaryTooltip:c}),children:o?l.jsx(f.Button,{"aria-label":T,className:a,onMouseDown:P=>{E.isSafari()&&P.currentTarget.focus()},onClick:m,"aria-pressed":u,"data-selected":u||void 0,"data-test":s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1),size:"xs",disabled:b||!1,ref:t,...R,children:o}):l.jsx(f.ActionIcon,{className:a,"aria-label":T,onMouseDown:P=>{E.isSafari()&&P.currentTarget.focus()},onClick:m,"aria-pressed":u,"data-selected":u||void 0,"data-test":s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1),size:30,disabled:b||!1,ref:t,...R,children:d})})}),Cr=g.forwardRef((r,t)=>{const{className:a,items:o,isDisabled:s,...c}=r;E.assertEmpty(c);const d=o.filter(u=>u.isSelected)[0];return d?l.jsxs(f.Menu,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[l.jsx(f.Menu.Target,{children:l.jsx(f.Button,{onMouseDown:u=>{E.isSafari()&&u.currentTarget.focus()},leftSection:d.icon,rightSection:l.jsx(nr,{}),size:"xs",variant:"subtle",disabled:s,children:d.text})}),l.jsx(f.Menu.Dropdown,{className:a,ref:t,children:o.map(u=>l.jsx(f.Menu.Item,{onClick:u.onClick,leftSection:u.icon,rightSection:u.isSelected?l.jsx(f.CheckIcon,{size:10,className:"bn-tick-icon"}):l.jsx("div",{className:"bn-tick-space"}),disabled:u.isDisabled,children:u.text},u.text))})]}):null}),bt="",y=["#FFFFFF","#EFEFEF","#CFCFCF","#AFAFAF","#7F7F7F","#3F3F3F","#1F1F1F","#161616","#0F0F0F","#000000"],ee={colors:{editor:{text:y[5],background:y[0]},menu:{text:y[5],background:y[0]},tooltip:{text:y[5],background:y[1]},hovered:{text:y[5],background:y[1]},selected:{text:y[0],background:y[5]},disabled:{text:y[3],background:y[1]},shadow:y[2],border:y[1],sideMenu:y[2],highlights:{gray:{text:"#9b9a97",background:"#ebeced"},brown:{text:"#64473a",background:"#e9e5e3"},red:{text:"#e03e3e",background:"#fbe4e4"},orange:{text:"#d9730d",background:"#f6e9d9"},yellow:{text:"#dfab01",background:"#fbf3db"},green:{text:"#4d6461",background:"#ddedea"},blue:{text:"#0b6e99",background:"#ddebf1"},purple:{text:"#6940a5",background:"#eae4f2"},pink:{text:"#ad1a72",background:"#f4dfeb"}}},borderRadius:6,fontFamily:'"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},Pr={colors:{editor:{text:y[2],background:y[6]},menu:{text:y[2],background:y[6]},tooltip:{text:y[2],background:y[7]},hovered:{text:y[2],background:y[7]},selected:{text:y[2],background:y[8]},disabled:{text:y[5],background:y[7]},shadow:y[8],border:y[7],sideMenu:y[4],highlights:{gray:{text:"#bebdb8",background:"#9b9a97"},brown:{text:"#8e6552",background:"#64473a"},red:{text:"#ec4040",background:"#be3434"},orange:{text:"#e3790d",background:"#b7600a"},yellow:{text:"#dfab01",background:"#b58b00"},green:{text:"#6b8b87",background:"#4d6461"},blue:{text:"#0e87bc",background:"#0b6e99"},purple:{text:"#8552d7",background:"#6940a5"},pink:{text:"#da208f",background:"#ad1a72"}}},borderRadius:ee.borderRadius,fontFamily:ee.fontFamily},Te={FormattingToolbar:{Root:xe,Button:Ee,Select:Cr},ImagePanel:{Root:dr,Button:vr,FileInput:br,TabPanel:mr,TextInput:pr},LinkToolbar:{Root:xe,Button:Ee},SideMenu:{Root:xr,Button:Er},SuggestionMenu:{Root:Tr,Item:jr,EmptyItem:kr,Label:wr,Loader:Sr},TableHandle:{Root:Rr},Generic:{Form:{Root:r=>l.jsx("div",{children:r.children}),TextInput:er},Menu:{Root:sr,Trigger:lr,Dropdown:ur,Divider:cr,Label:fr,Item:ir},Popover:{Root:gr,Trigger:hr,Content:yr}}},Or={activeClassName:""},Fr=r=>{const{theme:t,...a}=r,o=J.useBlockNoteContext(),s=Je.default(),c=(o==null?void 0:o.colorSchemePreference)||s,d=g.useCallback(u=>{if(u&&(be(u),typeof t=="object")){if("light"in t&&"dark"in t){Q(t[c==="dark"?"dark":"light"],u);return}Q(t,u);return}},[c,t]);return l.jsx(J.ComponentsContext.Provider,{value:Te,children:l.jsx(ue.MantineProvider,{theme:Or,cssVariablesSelector:".bn-container",children:l.jsx(J.BlockNoteViewRaw,{theme:typeof t=="object"?void 0:t,...a,ref:d})})})};S.BlockNoteView=Fr,S.applyBlockNoteCSSVariablesFromTheme=Q,S.components=Te,S.darkDefaultTheme=Pr,S.defaultColorScheme=y,S.lightDefaultTheme=ee,S.removeBlockNoteCSSVariables=be,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+i+">.")}return o}}function Ge(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=bt(o);if(Ue[i])return;Ue[i]=!0;var v="";e&&e._owner&&e._owner!==se.current&&(v=" It was passed a child from "+M(e._owner.type)+"."),L(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,v),L(null)}}function qe(e,o){{if(typeof e!="object")return;if(oe(e))for(var i=0;i<e.length;i++){var v=e[i];ue(v)&&Ge(v,o)}else if(ue(e))e._store&&(e._store.validated=!0);else if(e){var x=$r(e);if(typeof x=="function"&&x!==e.entries)for(var w=x.call(e),h;!(h=w.next()).done;)ue(h.value)&&Ge(h.value,o)}}}function pt(e){{var o=e.type;if(o==null||typeof o=="string")return;var i;if(typeof o=="function")i=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===b||o.$$typeof===R))i=o.propTypes;else return;if(i){var v=M(o);rt(i,e.props,"prop",v,e)}else if(o.PropTypes!==void 0&&!le){le=!0;var x=M(o);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(e){{for(var o=Object.keys(e.props),i=0;i<o.length;i++){var v=o[i];if(v!=="children"&&v!=="key"){L(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),L(null);break}}e.ref!==null&&(L(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function He(e,o,i,v,x,w){{var h=Hr(e);if(!h){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=vt(x);C?m+=C:m+=Ye();var T;e===null?T="null":oe(e)?T="array":e!==void 0&&e.$$typeof===t?(T="<"+(M(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,m)}var k=dt(e,o,i,x,w);if(k==null)return k;if(h){var O=o.children;if(O!==void 0)if(v)if(oe(O)){for(var A=0;A<O.length;A++)qe(O[A],e);Object.freeze&&Object.freeze(O)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qe(O,e)}return e===a?mt(k):pt(k),k}}function gt(e,o,i){return He(e,o,i,!0)}function ht(e,o,i){return He(e,o,i,!1)}var yt=ht,xt=gt;z.Fragment=a,z.jsx=yt,z.jsxs=xt}()),z}process.env.NODE_ENV==="production"?Q.exports=Qe():Q.exports=er();var l=Q.exports;const be=(r,t,n=!1)=>{const a=[];function s(c,d="--bn"){for(const u in c){const b=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=`${d}-${b}`;typeof c[u]!="object"?(typeof c[u]=="number"&&(c[u]=`${c[u]}px`),n?t.style.removeProperty(p):t.style.setProperty(p,c[u].toString())):s(c[u],p)}}return s(r),a},ee=(r,t)=>be(r,t),rr={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},pe=r=>be(rr,r,!0),tr=g.forwardRef((r,t)=>{const{className:n,name:a,label:s,icon:c,value:d,autoFocus:u,placeholder:b,onKeyDown:p,onChange:j,onSubmit:R,...P}=r;return E.assertEmpty(P),l.jsx(f.TextInput,{size:"xs",className:n,ref:t,name:a,label:s,leftSection:c,value:d,autoFocus:u,"data-autofocus":u?"true":void 0,placeholder:b,onKeyDown:p,onChange:j,onSubmit:R})});var me={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ge=F.default.createContext&&F.default.createContext(me),nr=["attr","size","title"];function ar(r,t){if(r==null)return{};var n=or(r,t),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(s=0;s<c.length;s++)a=c[s],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(n[a]=r[a])}return n}function or(r,t){if(r==null)return{};var n={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(t.indexOf(a)>=0)continue;n[a]=r[a]}return n}function V(){return V=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},V.apply(this,arguments)}function he(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),n.push.apply(n,a)}return n}function Y(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(a){ir(r,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))})}return r}function ir(r,t,n){return t=sr(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function sr(r){var t=lr(r,"string");return typeof t=="symbol"?t:t+""}function lr(r,t){if(typeof r!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var a=n.call(r,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ye(r){return r&&r.map((t,n)=>F.default.createElement(t.tag,Y({key:n},t.attr),ye(t.child)))}function xe(r){return t=>F.default.createElement(ur,V({attr:Y({},r.attr)},t),ye(r.child))}function ur(r){var t=n=>{var{attr:a,size:s,title:c}=r,d=ar(r,nr),u=s||n.size||"1em",b;return n.className&&(b=n.className),r.className&&(b=(b?b+" ":"")+r.className),F.default.createElement("svg",V({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,d,{className:b,style:Y(Y({color:r.color||n.color},n.style),r.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&F.default.createElement("title",null,c),r.children)};return ge!==void 0?F.default.createElement(ge.Consumer,null,n=>t(n)):t(me)}function cr(r){return xe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(r)}function fr(r){return xe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(r)}const Ee=g.createContext(void 0),dr=g.forwardRef((r,t)=>{const{children:n,onOpenChange:a,position:s,sub:c,...d}=r;E.assertEmpty(d);const[u,b]=g.useState(!1),p=g.useRef(),j=g.useCallback(()=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{b(!1)},250)},[]),R=g.useCallback(()=>{p.current&&clearTimeout(p.current),b(!0)},[]);return l.jsx(Ee.Provider,{value:{onMenuMouseOver:R,onMenuMouseLeave:j},children:l.jsx(f.Menu.Item,{className:"bn-menu-item bn-mt-sub-menu-item",ref:t,onMouseOver:R,onMouseLeave:j,children:l.jsx(f.Menu,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},trigger:"hover",opened:u,onClose:()=>a==null?void 0:a(!1),onOpen:()=>a==null?void 0:a(!0),position:s,children:n})})})}),vr=r=>{const{children:t,onOpenChange:n,position:a,sub:s,...c}=r;return E.assertEmpty(c),s?l.jsx(dr,{...r}):l.jsx(f.Menu,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onClose:()=>n==null?void 0:n(!1),onOpen:()=>n==null?void 0:n(!0),position:a,children:t})},br=g.forwardRef((r,t)=>{const{className:n,children:a,icon:s,checked:c,subTrigger:d,onClick:u,...b}=r;return E.assertEmpty(b,!1),d?l.jsxs("div",{ref:t,...b,children:[a,l.jsx(fr,{size:15})]}):l.jsx(f.Menu.Item,{className:n,ref:t,leftSection:s,rightSection:c?l.jsx(f.CheckIcon,{size:10}):c===!1?l.jsx("div",{className:"bn-tick-space"}):null,onClick:u,...b,children:a})}),pr=r=>{const{children:t,sub:n,...a}=r;return E.assertEmpty(a),l.jsx(f.Menu.Target,{children:t})},mr=g.forwardRef((r,t)=>{const{className:n,children:a,sub:s,...c}=r;E.assertEmpty(c);const d=g.useContext(Ee);return l.jsx(f.Menu.Dropdown,{className:n,ref:t,onMouseOver:d==null?void 0:d.onMenuMouseOver,onMouseLeave:d==null?void 0:d.onMenuMouseLeave,children:a})}),gr=g.forwardRef((r,t)=>{const{className:n,...a}=r;return E.assertEmpty(a),l.jsx(f.Menu.Divider,{className:n,ref:t})}),hr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Menu.Label,{className:n,ref:t,children:a})}),yr=g.forwardRef((r,t)=>{const{className:n,tabs:a,defaultOpenTab:s,openTab:c,setOpenTab:d,loading:u,...b}=r;return E.assertEmpty(b),l.jsx(f.Group,{className:n,ref:t,children:l.jsxs(f.Tabs,{value:c,defaultValue:s,onChange:d,children:[u&&l.jsx(f.LoadingOverlay,{visible:u}),l.jsx(f.Tabs.List,{children:a.map(p=>l.jsx(f.Tabs.Tab,{"data-test":`${p.name.toLowerCase()}-tab`,value:p.name,children:p.name},p.name))}),a.map(p=>l.jsx(f.Tabs.Panel,{value:p.name,children:p.tabPanel},p.name))]})})}),xr=g.forwardRef((r,t)=>{const{className:n,children:a,onClick:s,label:c,...d}=r;return E.assertEmpty(d),l.jsx(f.Button,{size:"xs","aria-label":c,className:n,ref:t,onClick:s,...d,children:a})}),Er=g.forwardRef((r,t)=>{const{className:n,accept:a,value:s,placeholder:c,onChange:d,...u}=r;return E.assertEmpty(u),l.jsx(f.FileInput,{size:"xs",className:n,ref:t,accept:a,value:s,placeholder:c,onChange:d,...u})}),jr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx("div",{className:n,ref:t,children:a})}),wr=g.forwardRef((r,t)=>{const{className:n,value:a,placeholder:s,onKeyDown:c,onChange:d,...u}=r;return E.assertEmpty(u),l.jsx(f.TextInput,{size:"xs","data-test":"embed-input",className:n,ref:t,value:a,placeholder:s,onKeyDown:c,onChange:d})}),Tr=r=>{const{children:t,opened:n,position:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Popover,{withinPortal:!1,zIndex:1e4,opened:n,position:a,children:t})},kr=r=>{const{children:t,...n}=r;return E.assertEmpty(n),l.jsx(f.PopoverTarget,{children:t})},Sr=g.forwardRef((r,t)=>{const{className:n,children:a,variant:s,...c}=r;return E.assertEmpty(c),l.jsx(f.PopoverDropdown,{className:n,ref:t,children:a})}),Rr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{align:"center",gap:0,className:n,ref:t,children:a})}),_r=g.forwardRef((r,t)=>{const{className:n,children:a,icon:s,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,label:p,...j}=r;return E.assertEmpty(j,!1),s?l.jsx(f.ActionIcon,{size:24,className:n,ref:t,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,"aria-label":p,...j,children:s}):l.jsx(f.Button,{className:n,ref:t,onClick:c,onDragEnd:d,onDragStart:u,draggable:b,"aria-label":p,...j,children:a})}),Cr=g.forwardRef((r,t)=>{const{className:n,children:a,id:s,...c}=r;return E.assertEmpty(c),l.jsx(f.Stack,{gap:0,className:n,ref:t,id:s,role:"listbox",children:a})}),Pr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{className:n,ref:t,children:l.jsx(f.Group,{className:"bn-mt-suggestion-menu-item-label",children:a})})}),Or=g.forwardRef((r,t)=>{const{className:n,isSelected:a,onClick:s,item:c,id:d,...u}=r;return E.assertEmpty(u),l.jsxs(f.Group,{gap:0,className:n,ref:t,id:d,role:"option",onClick:s,"aria-selected":a||void 0,children:[c.icon&&l.jsx(f.Group,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),l.jsxs(f.Stack,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[l.jsx(f.Text,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),l.jsx(f.Text,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&l.jsx(f.Group,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:l.jsx(f.Badge,{size:"xs",children:c.badge})})]})}),Fr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Group,{className:n,ref:t,children:a})}),Mr=g.forwardRef((r,t)=>{const{className:n,children:a,...s}=r;return E.assertEmpty(s),l.jsx(f.Loader,{className:n,type:"dots",ref:t})}),Dr=g.forwardRef((r,t)=>{const{className:n,children:a,draggable:s,onDragStart:c,onDragEnd:d,style:u,label:b,...p}=r;return E.assertEmpty(p,!1),l.jsx("button",{className:n,ref:t,"aria-label":b,draggable:s,onDragStart:c,onDragEnd:d,style:u,...p,children:a})}),je=g.forwardRef((r,t)=>{const{className:n,children:a,onMouseEnter:s,onMouseLeave:c,...d}=r;E.assertEmpty(d);const{ref:u,focused:b}=Z.useFocusWithin(),p=Z.useFocusTrap(b),j=Z.mergeRefs(t,u,p);return l.jsx(f.Group,{className:n,ref:j,role:"toolbar",onMouseEnter:s,onMouseLeave:c,children:a})}),Nr=r=>l.jsxs(f.Stack,{gap:0,className:"bn-tooltip",children:[l.jsx(f.Text,{size:"sm",children:r.mainTooltip}),r.secondaryTooltip&&l.jsx(f.Text,{size:"xs",children:r.secondaryTooltip})]}),we=g.forwardRef((r,t)=>{const{className:n,children:a,mainTooltip:s,secondaryTooltip:c,icon:d,isSelected:u,isDisabled:b,onClick:p,label:j,...R}=r;return E.assertEmpty(R,!1),l.jsx(f.Tooltip,{withinPortal:!1,label:l.jsx(Nr,{mainTooltip:s,secondaryTooltip:c}),children:a?l.jsx(f.Button,{"aria-label":j,className:n,onMouseDown:P=>{E.isSafari()&&P.currentTarget.focus()},onClick:p,"aria-pressed":u,"data-selected":u||void 0,"data-test":s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1),size:"xs",disabled:b||!1,ref:t,...R,children:a}):l.jsx(f.ActionIcon,{className:n,"aria-label":j,onMouseDown:P=>{E.isSafari()&&P.currentTarget.focus()},onClick:p,"aria-pressed":u,"data-selected":u||void 0,"data-test":s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1),size:30,disabled:b||!1,ref:t,...R,children:d})})}),Ir=g.forwardRef((r,t)=>{const{className:n,items:a,isDisabled:s,...c}=r;E.assertEmpty(c);const d=a.filter(u=>u.isSelected)[0];return d?l.jsxs(f.Menu,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[l.jsx(f.Menu.Target,{children:l.jsx(f.Button,{onMouseDown:u=>{E.isSafari()&&u.currentTarget.focus()},leftSection:d.icon,rightSection:l.jsx(cr,{}),size:"xs",variant:"subtle",disabled:s,children:d.text})}),l.jsx(f.Menu.Dropdown,{className:n,ref:t,children:a.map(u=>l.jsx(f.Menu.Item,{onClick:u.onClick,leftSection:u.icon,rightSection:u.isSelected?l.jsx(f.CheckIcon,{size:10,className:"bn-tick-icon"}):l.jsx("div",{className:"bn-tick-space"}),disabled:u.isDisabled,children:u.text},u.text))})]}):null}),Et="",y=["#FFFFFF","#EFEFEF","#CFCFCF","#AFAFAF","#7F7F7F","#3F3F3F","#1F1F1F","#161616","#0F0F0F","#000000"],re={colors:{editor:{text:y[5],background:y[0]},menu:{text:y[5],background:y[0]},tooltip:{text:y[5],background:y[1]},hovered:{text:y[5],background:y[1]},selected:{text:y[0],background:y[5]},disabled:{text:y[3],background:y[1]},shadow:y[2],border:y[1],sideMenu:y[2],highlights:{gray:{text:"#9b9a97",background:"#ebeced"},brown:{text:"#64473a",background:"#e9e5e3"},red:{text:"#e03e3e",background:"#fbe4e4"},orange:{text:"#d9730d",background:"#f6e9d9"},yellow:{text:"#dfab01",background:"#fbf3db"},green:{text:"#4d6461",background:"#ddedea"},blue:{text:"#0b6e99",background:"#ddebf1"},purple:{text:"#6940a5",background:"#eae4f2"},pink:{text:"#ad1a72",background:"#f4dfeb"}}},borderRadius:6,fontFamily:'"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},Lr={colors:{editor:{text:y[2],background:y[6]},menu:{text:y[2],background:y[6]},tooltip:{text:y[2],background:y[7]},hovered:{text:y[2],background:y[7]},selected:{text:y[2],background:y[8]},disabled:{text:y[5],background:y[7]},shadow:y[8],border:y[7],sideMenu:y[4],highlights:{gray:{text:"#bebdb8",background:"#9b9a97"},brown:{text:"#8e6552",background:"#64473a"},red:{text:"#ec4040",background:"#be3434"},orange:{text:"#e3790d",background:"#b7600a"},yellow:{text:"#dfab01",background:"#b58b00"},green:{text:"#6b8b87",background:"#4d6461"},blue:{text:"#0e87bc",background:"#0b6e99"},purple:{text:"#8552d7",background:"#6940a5"},pink:{text:"#da208f",background:"#ad1a72"}}},borderRadius:re.borderRadius,fontFamily:re.fontFamily},Te={FormattingToolbar:{Root:je,Button:we,Select:Ir},FilePanel:{Root:yr,Button:xr,FileInput:Er,TabPanel:jr,TextInput:wr},LinkToolbar:{Root:je,Button:we},SideMenu:{Root:Rr,Button:_r},SuggestionMenu:{Root:Cr,Item:Or,EmptyItem:Pr,Label:Fr,Loader:Mr},TableHandle:{Root:Dr},Generic:{Form:{Root:r=>l.jsx("div",{children:r.children}),TextInput:tr},Menu:{Root:vr,Trigger:pr,Dropdown:mr,Divider:gr,Label:hr,Item:br},Popover:{Root:Tr,Trigger:kr,Content:Sr}}},Ar={activeClassName:""},Br=r=>{const{theme:t,...n}=r,a=X.useBlockNoteContext(),s=Ze.default(),c=(a==null?void 0:a.colorSchemePreference)||s,d=g.useCallback(u=>{if(u&&(pe(u),typeof t=="object")){if("light"in t&&"dark"in t){ee(t[c==="dark"?"dark":"light"],u);return}ee(t,u);return}},[c,t]);return l.jsx(X.ComponentsContext.Provider,{value:Te,children:l.jsx(ce.MantineProvider,{theme:Ar,cssVariablesSelector:".bn-container",children:l.jsx(X.BlockNoteViewRaw,{theme:typeof t=="object"?void 0:t,...n,ref:d})})})};S.BlockNoteView=Br,S.applyBlockNoteCSSVariablesFromTheme=ee,S.components=Te,S.darkDefaultTheme=Lr,S.defaultColorScheme=y,S.lightDefaultTheme=re,S.removeBlockNoteCSSVariables=pe,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
28
28
  //# sourceMappingURL=blocknote-mantine.umd.cjs.map