noteloom 0.6.0 → 0.7.0

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.
Files changed (62) hide show
  1. package/dist/canvas.cjs +1 -1
  2. package/dist/canvas.js +1 -1
  3. package/dist/comments.cjs +1 -1
  4. package/dist/comments.js +3 -3
  5. package/dist/index.cjs +2 -1
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.ts +6 -0
  8. package/dist/index.js +1529 -1488
  9. package/dist/index.js.map +1 -1
  10. package/dist/shared/{CommentThreadCard-DcCHq2Dy.cjs → CommentThreadCard-CIB6nZEA.cjs} +2 -2
  11. package/dist/shared/{CommentThreadCard-DcCHq2Dy.cjs.map → CommentThreadCard-CIB6nZEA.cjs.map} +1 -1
  12. package/dist/shared/{CommentThreadCard-DwtE85Xx.js → CommentThreadCard-lW_lbI74.js} +2 -2
  13. package/dist/shared/{CommentThreadCard-DwtE85Xx.js.map → CommentThreadCard-lW_lbI74.js.map} +1 -1
  14. package/dist/shared/{CommentsPanel-BRgACUu_.cjs → CommentsPanel-CRxb3RWi.cjs} +2 -2
  15. package/dist/shared/{CommentsPanel-BRgACUu_.cjs.map → CommentsPanel-CRxb3RWi.cjs.map} +1 -1
  16. package/dist/shared/{CommentsPanel-D4eP-K_f.js → CommentsPanel-Dg0k_XNU.js} +3 -3
  17. package/dist/shared/{CommentsPanel-D4eP-K_f.js.map → CommentsPanel-Dg0k_XNU.js.map} +1 -1
  18. package/dist/shared/{VersionHistory-BRBYQgj5.cjs → VersionHistory-BsSwOq_k.cjs} +2 -2
  19. package/dist/shared/{VersionHistory-BRBYQgj5.cjs.map → VersionHistory-BsSwOq_k.cjs.map} +1 -1
  20. package/dist/shared/{VersionHistory-D9sIIAYN.js → VersionHistory-BzMnJpbc.js} +3 -3
  21. package/dist/shared/{VersionHistory-D9sIIAYN.js.map → VersionHistory-BzMnJpbc.js.map} +1 -1
  22. package/dist/shared/{VoiceListeningIndicator-Dw0fggpE.cjs → VoiceListeningIndicator-B_7-6Mq4.cjs} +2 -2
  23. package/dist/shared/{VoiceListeningIndicator-Dw0fggpE.cjs.map → VoiceListeningIndicator-B_7-6Mq4.cjs.map} +1 -1
  24. package/dist/shared/{VoiceListeningIndicator-DgLMmGSP.js → VoiceListeningIndicator-DeA3hb33.js} +4 -4
  25. package/dist/shared/{VoiceListeningIndicator-DgLMmGSP.js.map → VoiceListeningIndicator-DeA3hb33.js.map} +1 -1
  26. package/dist/shared/{icons-Bdptdx1e.js → icons-CmfXmn13.js} +307 -259
  27. package/dist/shared/icons-CmfXmn13.js.map +1 -0
  28. package/dist/shared/{icons-DabR_JDW.cjs → icons-DQ7j_-ZK.cjs} +44 -3
  29. package/dist/shared/icons-DQ7j_-ZK.cjs.map +1 -0
  30. package/dist/shared/{index-DOIEccLM.js → index-DUigqWQn.js} +3 -3
  31. package/dist/shared/{index-DOIEccLM.js.map → index-DUigqWQn.js.map} +1 -1
  32. package/dist/shared/{index-B7_F6NA9.cjs → index-vWtS1iyt.cjs} +2 -2
  33. package/dist/shared/{index-B7_F6NA9.cjs.map → index-vWtS1iyt.cjs.map} +1 -1
  34. package/dist/shared/{leafBlockFactory-D3SCDvzc.cjs → leafBlockFactory-6GFBveaC.cjs} +2 -2
  35. package/dist/shared/{leafBlockFactory-D3SCDvzc.cjs.map → leafBlockFactory-6GFBveaC.cjs.map} +1 -1
  36. package/dist/shared/{leafBlockFactory-ChlzpKIn.js → leafBlockFactory-Dm6cd2NY.js} +5 -5
  37. package/dist/shared/{leafBlockFactory-ChlzpKIn.js.map → leafBlockFactory-Dm6cd2NY.js.map} +1 -1
  38. package/dist/shared/{serialize-C1rjLsIz.js → serialize-R4V4gmHs.js} +2 -2
  39. package/dist/shared/{serialize-C1rjLsIz.js.map → serialize-R4V4gmHs.js.map} +1 -1
  40. package/dist/shared/{serialize-k0zXqwEM.cjs → serialize-vLXz0cze.cjs} +2 -2
  41. package/dist/shared/{serialize-k0zXqwEM.cjs.map → serialize-vLXz0cze.cjs.map} +1 -1
  42. package/dist/shared/starter-kit-BQUaaql0.cjs +29 -0
  43. package/dist/shared/starter-kit-BQUaaql0.cjs.map +1 -0
  44. package/dist/shared/{starter-kit-CJzWMyF8.js → starter-kit-Bp30PiE4.js} +1246 -1188
  45. package/dist/shared/starter-kit-Bp30PiE4.js.map +1 -0
  46. package/dist/shared/{usePopoverEdgeClamp-gRlLQeVG.cjs → usePopoverEdgeClamp-BJLbbANB.cjs} +2 -2
  47. package/dist/shared/{usePopoverEdgeClamp-gRlLQeVG.cjs.map → usePopoverEdgeClamp-BJLbbANB.cjs.map} +1 -1
  48. package/dist/shared/{usePopoverEdgeClamp-B9KNv9SE.js → usePopoverEdgeClamp-DSpz-6xR.js} +2 -2
  49. package/dist/shared/{usePopoverEdgeClamp-B9KNv9SE.js.map → usePopoverEdgeClamp-DSpz-6xR.js.map} +1 -1
  50. package/dist/starter-kit.cjs +1 -1
  51. package/dist/starter-kit.js +2 -2
  52. package/dist/style.css +41 -0
  53. package/dist/versions.cjs +1 -1
  54. package/dist/versions.js +1 -1
  55. package/dist/voice.cjs +1 -1
  56. package/dist/voice.js +1 -1
  57. package/package.json +1 -1
  58. package/dist/shared/icons-Bdptdx1e.js.map +0 -1
  59. package/dist/shared/icons-DabR_JDW.cjs.map +0 -1
  60. package/dist/shared/starter-kit-CJzWMyF8.js.map +0 -1
  61. package/dist/shared/starter-kit-Ch2LEpzF.cjs +0 -27
  62. package/dist/shared/starter-kit-Ch2LEpzF.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),i=require("react"),hn=`/*
1
+ "use strict";const n=require("react/jsx-runtime"),i=require("react"),xn=`/*
2
2
  * noteloom's default theme — minimal, clean, modern SaaS-adjacent.
3
3
  *
4
4
  * Ships as plain CSS custom properties on :root (not scoped to a wrapper
@@ -427,6 +427,7 @@
427
427
  }
428
428
 
429
429
  .be-code-block-pre {
430
+ position: relative;
430
431
  margin: 0;
431
432
  padding: 0.9em 1em;
432
433
  overflow-x: auto;
@@ -440,6 +441,46 @@
440
441
  display: block;
441
442
  }
442
443
 
444
+ /* Syntax-highlight overlay (EditorProvider's \`highlightCode\` prop, see
445
+ useHighlightCode's doc comment) -- a read-only, aria-hidden <code> painted
446
+ directly behind the real editable one, which be-code-block-highlighted
447
+ below makes text-transparent (caret still visible) so only this overlay's
448
+ colors actually show. Matches the editable layer's own box exactly:
449
+ absolutely positioned to be-code-block-pre's padding edges (not inset: 0,
450
+ which would land on the *border* edge and double the padding), same font
451
+ inherited from be-code-block-pre.
452
+
453
+ white-space: pre (NOT pre-wrap) is deliberate and load-bearing, matching
454
+ be-code-block-pre's own overflow-x: auto -- long lines scroll instead of
455
+ wrapping, same as the real editable text underneath, which inherits
456
+ plain \`white-space: pre\` from the <pre> element's UA-default styling
457
+ (nothing here ever set pre-wrap on it). Wrapping the overlay while the
458
+ real text doesn't wrap desyncs the two layers' line breaks the moment a
459
+ line is long enough to wrap -- the overlay's *visible* colored text
460
+ reflows onto a new line while the real (invisible) text, and therefore
461
+ the browser's actual caret, stays on the original unwrapped line,
462
+ landing the caret nowhere near where it visually appears to be. Left
463
+ unset (no clip/overflow:hidden) so the overflowing text is still
464
+ painted -- .be-code-block-pre's own overflow-x: auto is what makes both
465
+ layers scroll together (see the containing-block note below); pre-wrap
466
+ must never be reintroduced here without also adding it to the real
467
+ editable layer's own CSS. */
468
+ .be-code-block-highlight {
469
+ position: absolute;
470
+ top: 0.9em;
471
+ left: 1em;
472
+ bottom: 0.9em;
473
+ display: block;
474
+ margin: 0;
475
+ pointer-events: none;
476
+ white-space: pre;
477
+ }
478
+
479
+ .be-code-block-highlighted code[data-placeholder] .be-editable {
480
+ color: transparent;
481
+ caret-color: var(--noteloom-code-text);
482
+ }
483
+
443
484
  .be-code-block-body {
444
485
  display: flex;
445
486
  align-items: stretch;
@@ -3527,5 +3568,5 @@ tr.be-table-row:hover .be-table-delete-row {
3527
3568
  break-inside: avoid;
3528
3569
  }
3529
3570
  }
3530
- `,L="noteloom-default-styles";let N=!1;function xn(){if(N)return;N=!0;const e=typeof process<"u"&&process.env?process.env.NODE_ENV:void 0;e==="production"||e==="test"||typeof console>"u"||console.warn("[noteloom] The default theme is being auto-injected. A future major version will stop doing this — add `import 'noteloom/theme'` to your app (recommended), or pass `theme=\"none\"` to <NoteloomEditor> / <EditorProvider> if you already style the editor yourself. This message shows once, in development only.")}function H({auto:e=!1}={}){if(typeof document>"u"||document.getElementById(L))return;e&&xn();const o=document.createElement("style");o.id=L,o.textContent=hn,document.head.appendChild(o)}const u=i.createContext(null);function fn({store:e,registry:o,inlineRegistry:r=null,history:l=null,className:c,style:h,theme:x="default",getBlockClassName:f,commentAuthorId:v,showLineNumbers:y=!1,uploadFile:w,maxFileSize:k,resolveEmbedSrc:j,onEmbedError:I,children:z}){i.useEffect(()=>{x!=="none"&&H({auto:!0})},[x]);const[C,cn]=i.useState(!1),[E,bn]=i.useState(null),[S,mn]=i.useState([]),[T,pn]=i.useState(!1),[M,b]=i.useState(null),R=i.useCallback(()=>b("new"),[]),P=i.useCallback(s=>b(s),[]),D=i.useCallback(()=>b(null),[]),m=i.useRef(null),_=i.useCallback(()=>m.current,[]),O=i.useCallback(s=>{var B,A;const p=m.current;p!==s&&(p&&((B=document.querySelector(`[data-block-id="${p}"]`))==null||B.classList.remove("be-block-selected")),m.current=s,s&&((A=document.querySelector(`[data-block-id="${s}"]`))==null||A.classList.add("be-block-selected")))},[]),un=i.useMemo(()=>({store:e,registry:o,inlineRegistry:r,history:l,isWholeDocumentSelected:C,setIsWholeDocumentSelected:cn,selectedBlockRange:S,setSelectedBlockRange:mn,getSelectedBlockId:_,setSelectedBlockId:O,isPreviewMode:T,setIsPreviewMode:pn,fieldTypeEditorTarget:M,openCreateFieldType:R,openEditFieldType:P,closeFieldTypeEditor:D,getBlockClassName:f,commentAuthorId:v,hoveredCommentId:E,setHoveredCommentId:bn,showLineNumbers:y,uploadFile:w,maxFileSize:k,resolveEmbedSrc:j,onEmbedError:I}),[e,o,r,l,C,S,_,O,T,M,R,P,D,f,v,E,y,w,k,j,I]),gn=c||h?n.jsx("div",{className:c?`be-root ${c}`:"be-root",style:h,children:z}):z;return n.jsx(u.Provider,{value:un,children:gn})}function d(){const e=i.useContext(u);if(!e)throw new Error("Editor hooks must be used within an <EditorProvider>");return e}function vn(){return d().store}function yn(){var e;return((e=i.useContext(u))==null?void 0:e.store)??null}function wn(){return d().registry}function kn(){return d().inlineRegistry}function jn(){const{isWholeDocumentSelected:e,setIsWholeDocumentSelected:o}=d();return[e,o]}function In(){const{selectedBlockRange:e,setSelectedBlockRange:o}=d();return[e,o]}function zn(){const{getSelectedBlockId:e,setSelectedBlockId:o}=d();return{getSelectedBlockId:e,setSelectedBlockId:o}}function Cn(){const{isPreviewMode:e,setIsPreviewMode:o}=d();return[e,o]}function En(e,o){const{getBlockClassName:r}=d(),l=o&&r?r(o):void 0;return l?`${e} ${l}`:e}function Sn(){return d().commentAuthorId}function Tn(){const{hoveredCommentId:e,setHoveredCommentId:o}=d();return[e,o]}function Mn(){return d().showLineNumbers}function Rn(){const{uploadFile:e,maxFileSize:o,resolveEmbedSrc:r,onEmbedError:l}=d();return{uploadFile:e,maxFileSize:o,resolveEmbedSrc:r??Pn,onEmbedError:l}}function Pn(e){return e}function Dn(){const{fieldTypeEditorTarget:e,openCreateFieldType:o,openEditFieldType:r,closeFieldTypeEditor:l}=d();return{target:e,openCreate:o,openEdit:r,close:l}}const a={INSERT_BLOCK:"insertBlock",REMOVE_BLOCK:"removeBlock",MOVE_BLOCK:"moveBlock",CHANGE_BLOCK_TYPE:"changeBlockType",UPDATE_BLOCK_PROPS:"updateBlockProps",UPDATE_RUN:"updateRun",SET_BLOCK_CONTENT_IDS:"setBlockContentIds",REPLACE_RUN_SPAN:"replaceRunSpan",SET_BLOCK_RUNS:"setBlockRuns",EDIT_RUN_CHARS:"editRunChars",ADD_FIELD_TYPE:"addFieldType",UPDATE_FIELD_TYPE:"updateFieldType",REMOVE_FIELD_TYPE:"removeFieldType",ADD_COMMENT_THREAD:"addCommentThread",REMOVE_COMMENT_THREAD:"removeCommentThread",ADD_COMMENT_REPLY:"addCommentReply",REMOVE_COMMENT_REPLY:"removeCommentReply",RESOLVE_COMMENT:"resolveComment",ADD_PERSON:"addPerson",UPDATE_PERSON:"updatePerson",REMOVE_PERSON:"removePerson",SET_TITLE:"setTitle"};function F(e,o,r,l){return{type:a.INSERT_BLOCK,block:e,parentId:o,index:r,subtree:l}}function U(e){return{type:a.REMOVE_BLOCK,id:e}}function V(e,o,r){return{type:a.MOVE_BLOCK,id:e,toParentId:o,toIndex:r}}function q(e,o){return{type:a.UPDATE_BLOCK_PROPS,id:e,patch:o}}function Y(e,o,r){return{type:a.CHANGE_BLOCK_TYPE,id:e,blockType:o,props:r}}function K(e,o){return{type:a.UPDATE_RUN,id:e,patch:o}}function W(e,o,r,l){return{type:a.EDIT_RUN_CHARS,id:e,tombstoneIds:o,restoreIds:r,previousValue:l}}function $(e,o){return{type:a.SET_BLOCK_CONTENT_IDS,blockId:e,contentIds:o}}function G(e,o,r){return{type:a.REPLACE_RUN_SPAN,blockId:e,oldRunIds:o,newRuns:r}}function Q(e,o){return{type:a.SET_BLOCK_RUNS,blockId:e,runs:o}}function X(e){return{type:a.ADD_FIELD_TYPE,fieldType:e}}function J(e,o){return{type:a.UPDATE_FIELD_TYPE,id:e,patch:o}}function Z(e){return{type:a.REMOVE_FIELD_TYPE,id:e}}function nn(e){return{type:a.ADD_COMMENT_THREAD,thread:e}}function en(e){return{type:a.REMOVE_COMMENT_THREAD,commentId:e}}function on(e,o){return{type:a.ADD_COMMENT_REPLY,commentId:e,message:o}}function tn(e,o){return{type:a.REMOVE_COMMENT_REPLY,commentId:e,messageId:o}}function rn(e,o){return{type:a.RESOLVE_COMMENT,commentId:e,resolved:o}}function an(e){return{type:a.ADD_PERSON,person:e}}function ln(e,o){return{type:a.UPDATE_PERSON,id:e,patch:o}}function dn(e){return{type:a.REMOVE_PERSON,id:e}}function sn(e){return{type:a.SET_TITLE,title:e}}const _n=Object.freeze(Object.defineProperty({__proto__:null,OP:a,addCommentReply:on,addCommentThread:nn,addFieldType:X,addPerson:an,changeBlockType:Y,editRunChars:W,insertBlock:F,moveBlock:V,removeBlock:U,removeCommentReply:tn,removeCommentThread:en,removeFieldType:Z,removePerson:dn,replaceRunSpan:G,resolveComment:rn,setBlockContentIds:$,setBlockRuns:Q,setTitle:sn,updateBlockProps:q,updateFieldType:J,updatePerson:ln,updateRun:K},Symbol.toStringTag,{value:"Module"}));function On(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function t({children:e,size:o=16,strokeWidth:r=2,...l}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",...l,children:e})}function Bn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}function An(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ln(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Nn(e){return n.jsxs(t,{...e,fill:"currentColor",stroke:"none",children:[n.jsx("circle",{cx:"5",cy:"12",r:"1.6"}),n.jsx("circle",{cx:"12",cy:"12",r:"1.6"}),n.jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})}function Hn(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"})})}function Fn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Un(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),n.jsx("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})}function Vn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"19",y1:"4",x2:"10",y2:"4"}),n.jsx("line",{x1:"14",y1:"20",x2:"5",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"9",y2:"20"})]})}function qn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 3v7a6 6 0 0 0 12 0V3"}),n.jsx("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]})}function Yn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 20h9"}),n.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]})}function Kn(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M3 17c2-4 4-4 6 0s4 4 6 0 4-4 6 0"})})}function Wn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),n.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}function $n(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})})}function Gn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7"}),n.jsx("polyline",{points:"3 5 3 10 8 10"}),n.jsx("polyline",{points:"12 7 12 12 16 14"})]})}function Qn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 2.6-6.3"}),n.jsx("polyline",{points:"3 4 3 9 8 9"})]})}function Xn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Jn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),n.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})}function Zn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M16 4H9a3 3 0 0 0-2.83 4"}),n.jsx("path",{d:"M14 12a4 4 0 0 1 0 8H6"}),n.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]})}function ne(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"17",y1:"18",x2:"3",y2:"18"})]})}function ee(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"18",y1:"10",x2:"6",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"18",y1:"18",x2:"6",y2:"18"})]})}function oe(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"21",y1:"10",x2:"7",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"21",y1:"18",x2:"7",y2:"18"})]})}function te(e){return n.jsx(t,{...e,children:[5,12,19].flatMap(o=>[9,15].map(r=>n.jsx("circle",{cx:r,cy:o,r:"1.3",fill:"currentColor",stroke:"none"},`${r}-${o}`)))})}function re(e){return n.jsxs(t,{...e,children:[n.jsx("polyline",{points:"3 6 5 6 21 6"}),n.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),n.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),n.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}function ae(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),n.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function ie(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),n.jsx("polyline",{points:"5 12 12 5 19 12"})]})}function le(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("polyline",{points:"19 12 12 19 5 12"})]})}function de(e){return n.jsx(t,{...e,children:n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"1"})})}function se(e){return n.jsx(t,{...e,children:n.jsx("circle",{cx:"12",cy:"12",r:"8"})})}function ce(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"6",y1:"18",x2:"18",y2:"6"}),n.jsx("polyline",{points:"9 6 18 6 18 15"})]})}function be(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 3 21 12 12 21 3 12"})})}function me(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 4 20 20 4 20"})})}function pe(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 3 14.7 9.4 21.5 9.9 16.3 14.4 17.9 21 12 17.4 6.1 21 7.7 14.4 2.5 9.9 9.3 9.4"})})}function ue(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M5 3l14 8-6 2-2 6-6-16z"})})}function ge(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M19 20H9l-6-6a1.5 1.5 0 0 1 0-2l9-9a1.5 1.5 0 0 1 2 0l7 7a1.5 1.5 0 0 1 0 2l-7 7"}),n.jsx("path",{d:"M6.5 12.5 13 19"})]})}function he(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 3v12"}),n.jsx("path",{d:"M7 10l5 5 5-5"}),n.jsx("path",{d:"M4 19h16"})]})}function xe(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 15V9a6 6 0 0 1 12 0v6"}),n.jsx("path",{d:"M6 15a3 3 0 0 0 6 0v-4"}),n.jsx("path",{d:"M18 15a3 3 0 0 1-6 0v-4"}),n.jsx("line",{x1:"3",y1:"9",x2:"6",y2:"9"}),n.jsx("line",{x1:"3",y1:"15",x2:"6",y2:"15"}),n.jsx("line",{x1:"18",y1:"9",x2:"21",y2:"9"}),n.jsx("line",{x1:"18",y1:"15",x2:"21",y2:"15"})]})}function fe(e){return n.jsxs(t,{...e,children:[n.jsx("circle",{cx:"6",cy:"6",r:"3"}),n.jsx("circle",{cx:"6",cy:"18",r:"3"}),n.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),n.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),n.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}function ve(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"17",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"21",y1:"12",x2:"3",y2:"12"}),n.jsx("line",{x1:"15",y1:"18",x2:"3",y2:"18"})]})}function g({level:e=1,size:o=16,...r}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r,children:n.jsxs("text",{x:"2",y:"18",fontSize:"14",fontWeight:"700",fill:"currentColor",fontFamily:"inherit",children:["H",e]})})}function ye(e){return n.jsx(g,{level:1,...e})}function we(e){return n.jsx(g,{level:2,...e})}function ke(e){return n.jsx(g,{level:3,...e})}function je(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M7 7a3 3 0 0 0-3 3v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1H6a3 3 0 0 1 3-3z"}),n.jsx("path",{d:"M17 7a3 3 0 0 0-3 3v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2a3 3 0 0 1 3-3z"})]})}function Ie(e){return n.jsxs(t,{...e,children:[n.jsx("polyline",{points:"9 8 4 12 9 16"}),n.jsx("polyline",{points:"15 8 20 12 15 16"})]})}function ze(e){return n.jsx(t,{...e,children:n.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"})})}function Ce(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M4 5h16a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 4v-4H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z"}),n.jsx("line",{x1:"7",y1:"9",x2:"17",y2:"9"}),n.jsx("line",{x1:"7",y1:"12.5",x2:"13",y2:"12.5"})]})}function Ee(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"8",width:"18",height:"8",rx:"3"}),n.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]})}function Se(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1"}),n.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),n.jsx("line",{x1:"3",y1:"16",x2:"21",y2:"16"}),n.jsx("line",{x1:"9",y1:"4",x2:"9",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"15",y2:"20"})]})}function Te(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1"}),n.jsx("line",{x1:"9",y1:"4",x2:"9",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"15",y2:"20"})]})}function Me(e){return n.jsxs(t,{...e,children:[n.jsx("circle",{cx:"4.5",cy:"6",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("circle",{cx:"4.5",cy:"12",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("circle",{cx:"4.5",cy:"18",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("line",{x1:"9",y1:"6",x2:"21",y2:"6"}),n.jsx("line",{x1:"9",y1:"12",x2:"21",y2:"12"}),n.jsx("line",{x1:"9",y1:"18",x2:"21",y2:"18"})]})}function Re(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"10",y1:"6",x2:"21",y2:"6"}),n.jsx("line",{x1:"10",y1:"12",x2:"21",y2:"12"}),n.jsx("line",{x1:"10",y1:"18",x2:"21",y2:"18"}),n.jsx("text",{x:"2",y:"8.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"1"}),n.jsx("text",{x:"2",y:"14.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"2"}),n.jsx("text",{x:"2",y:"20.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"3"})]})}function Pe(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3"}),n.jsx("polyline",{points:"8 12 11 15 16 9"})]})}function De(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),n.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),n.jsx("line",{x1:"8",y1:"3",x2:"8",y2:"7"}),n.jsx("line",{x1:"16",y1:"3",x2:"16",y2:"7"})]})}function _e(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 3h7a2 2 0 0 1 2 2v7a2 2 0 0 1-.59 1.41l-8 8a2 2 0 0 1-2.82 0l-7-7a2 2 0 0 1 0-2.82l8-8A2 2 0 0 1 12 3z"}),n.jsx("circle",{cx:"15.5",cy:"8.5",r:"1.2",fill:"currentColor",stroke:"none"})]})}function Oe(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),n.jsx("circle",{cx:"9",cy:"10",r:"1.5",fill:"currentColor",stroke:"none"}),n.jsx("path",{d:"M4 17l5-5 4 4 4-5 4 6"})]})}function Be(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"5",width:"14",height:"14",rx:"2"}),n.jsx("path",{d:"M17 10l4-2.5v9L17 14"})]})}function Ae(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z"}),n.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function Le(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M17.94 17.94A10.94 10.94 0 0 1 12 19c-6.5 0-10-7-10-7a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A10.94 10.94 0 0 1 12 4c6.5 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19"}),n.jsx("path",{d:"M14.12 14.12a3 3 0 1 1-4.24-4.24"}),n.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})}function Ne(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"14"}),n.jsx("line",{x1:"8",y1:"7",x2:"8",y2:"17"}),n.jsx("line",{x1:"12",y1:"4",x2:"12",y2:"20"}),n.jsx("line",{x1:"16",y1:"7",x2:"16",y2:"17"}),n.jsx("line",{x1:"20",y1:"10",x2:"20",y2:"14"})]})}function He(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),n.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),n.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),n.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]})}exports.AlignCenterIcon=ee;exports.AlignLeftIcon=ne;exports.AlignRightIcon=oe;exports.ArrowDiagonalIcon=ce;exports.ArrowDownIcon=le;exports.ArrowUpIcon=ie;exports.AudioIcon=Ne;exports.BoldIcon=Un;exports.BulletedListIcon=Me;exports.ButtonIcon=Ee;exports.CalloutIcon=Ce;exports.CheckIcon=Xn;exports.CheckboxIcon=Pe;exports.ChevronDownIcon=An;exports.ChevronRightIcon=Bn;exports.CircleIcon=se;exports.ClockHistoryIcon=Gn;exports.CodeIcon=Ie;exports.ColumnsIcon=Te;exports.CommentIcon=$n;exports.CopyIcon=ae;exports.CursorIcon=ue;exports.DateIcon=De;exports.DiamondIcon=be;exports.DividerIcon=ze;exports.DownloadIcon=he;exports.EditorProvider=fn;exports.EraserIcon=ge;exports.EyeIcon=Ae;exports.EyeOffIcon=Le;exports.GripVerticalIcon=te;exports.Heading1Icon=ye;exports.Heading2Icon=we;exports.Heading3Icon=ke;exports.ImageIcon=Oe;exports.ItalicIcon=Vn;exports.LinkIcon=Wn;exports.MagnetIcon=xe;exports.MicIcon=He;exports.MoreHorizontalIcon=Nn;exports.NumberedListIcon=Re;exports.OP=a;exports.PaperclipIcon=Hn;exports.PencilIcon=Yn;exports.PlusIcon=Fn;exports.QuoteIcon=je;exports.RestoreIcon=Qn;exports.ScissorsIcon=fe;exports.ScribbleIcon=Kn;exports.SelectIcon=_e;exports.SendIcon=Jn;exports.SquareIcon=de;exports.StarIcon=pe;exports.StrikethroughIcon=Zn;exports.TableIcon=Se;exports.TextIcon=ve;exports.TrashIcon=re;exports.TriangleIcon=me;exports.UnderlineIcon=qn;exports.VideoIcon=Be;exports.XIcon=Ln;exports.addCommentReply=on;exports.addCommentThread=nn;exports.addFieldType=X;exports.addPerson=an;exports.changeBlockType=Y;exports.editRunChars=W;exports.genId=On;exports.injectDefaultStyles=H;exports.insertBlock=F;exports.moveBlock=V;exports.operations=_n;exports.removeBlock=U;exports.removeCommentReply=tn;exports.removeCommentThread=en;exports.removeFieldType=Z;exports.removePerson=dn;exports.replaceRunSpan=G;exports.resolveComment=rn;exports.setBlockContentIds=$;exports.setBlockRuns=Q;exports.setTitle=sn;exports.updateBlockProps=q;exports.updateFieldType=J;exports.updatePerson=ln;exports.updateRun=K;exports.useBlockClassName=En;exports.useBlockRangeSelection=In;exports.useBlockRegistry=wn;exports.useCommentAuthorId=Sn;exports.useEditorContext=d;exports.useEditorStore=vn;exports.useFieldTypeEditor=Dn;exports.useFileUpload=Rn;exports.useHoveredComment=Tn;exports.useInlineRegistry=kn;exports.useOptionalEditorStore=yn;exports.usePreviewMode=Cn;exports.useSelectedBlock=zn;exports.useShowLineNumbers=Mn;exports.useWholeDocumentSelection=jn;
3531
- //# sourceMappingURL=icons-DabR_JDW.cjs.map
3571
+ `,N="noteloom-default-styles";let H=!1;function fn(){if(H)return;H=!0;const e=typeof process<"u"&&process.env?process.env.NODE_ENV:void 0;e==="production"||e==="test"||typeof console>"u"||console.warn("[noteloom] The default theme is being auto-injected. A future major version will stop doing this — add `import 'noteloom/theme'` to your app (recommended), or pass `theme=\"none\"` to <NoteloomEditor> / <EditorProvider> if you already style the editor yourself. This message shows once, in development only.")}function F({auto:e=!1}={}){if(typeof document>"u"||document.getElementById(N))return;e&&fn();const o=document.createElement("style");o.id=N,o.textContent=xn,document.head.appendChild(o)}const u=i.createContext(null);function vn({store:e,registry:o,inlineRegistry:r=null,history:l=null,className:c,style:h,theme:x="default",getBlockClassName:f,commentAuthorId:v,showLineNumbers:y=!1,uploadFile:w,maxFileSize:k,resolveEmbedSrc:j,onEmbedError:I,highlightCode:z,children:C}){i.useEffect(()=>{x!=="none"&&F({auto:!0})},[x]);const[E,bn]=i.useState(!1),[S,pn]=i.useState(null),[T,mn]=i.useState([]),[M,un]=i.useState(!1),[R,b]=i.useState(null),P=i.useCallback(()=>b("new"),[]),D=i.useCallback(s=>b(s),[]),_=i.useCallback(()=>b(null),[]),p=i.useRef(null),O=i.useCallback(()=>p.current,[]),B=i.useCallback(s=>{var A,L;const m=p.current;m!==s&&(m&&((A=document.querySelector(`[data-block-id="${m}"]`))==null||A.classList.remove("be-block-selected")),p.current=s,s&&((L=document.querySelector(`[data-block-id="${s}"]`))==null||L.classList.add("be-block-selected")))},[]),gn=i.useMemo(()=>({store:e,registry:o,inlineRegistry:r,history:l,isWholeDocumentSelected:E,setIsWholeDocumentSelected:bn,selectedBlockRange:T,setSelectedBlockRange:mn,getSelectedBlockId:O,setSelectedBlockId:B,isPreviewMode:M,setIsPreviewMode:un,fieldTypeEditorTarget:R,openCreateFieldType:P,openEditFieldType:D,closeFieldTypeEditor:_,getBlockClassName:f,commentAuthorId:v,hoveredCommentId:S,setHoveredCommentId:pn,showLineNumbers:y,uploadFile:w,maxFileSize:k,resolveEmbedSrc:j,onEmbedError:I,highlightCode:z}),[e,o,r,l,E,T,O,B,M,R,P,D,_,f,v,S,y,w,k,j,I,z]),hn=c||h?n.jsx("div",{className:c?`be-root ${c}`:"be-root",style:h,children:C}):C;return n.jsx(u.Provider,{value:gn,children:hn})}function d(){const e=i.useContext(u);if(!e)throw new Error("Editor hooks must be used within an <EditorProvider>");return e}function yn(){return d().store}function wn(){var e;return((e=i.useContext(u))==null?void 0:e.store)??null}function kn(){return d().registry}function jn(){return d().inlineRegistry}function In(){const{isWholeDocumentSelected:e,setIsWholeDocumentSelected:o}=d();return[e,o]}function zn(){const{selectedBlockRange:e,setSelectedBlockRange:o}=d();return[e,o]}function Cn(){const{getSelectedBlockId:e,setSelectedBlockId:o}=d();return{getSelectedBlockId:e,setSelectedBlockId:o}}function En(){const{isPreviewMode:e,setIsPreviewMode:o}=d();return[e,o]}function Sn(e,o){const{getBlockClassName:r}=d(),l=o&&r?r(o):void 0;return l?`${e} ${l}`:e}function Tn(){return d().commentAuthorId}function Mn(){const{hoveredCommentId:e,setHoveredCommentId:o}=d();return[e,o]}function Rn(){return d().showLineNumbers}function Pn(){return d().highlightCode}function Dn(){const{uploadFile:e,maxFileSize:o,resolveEmbedSrc:r,onEmbedError:l}=d();return{uploadFile:e,maxFileSize:o,resolveEmbedSrc:r??_n,onEmbedError:l}}function _n(e){return e}function On(){const{fieldTypeEditorTarget:e,openCreateFieldType:o,openEditFieldType:r,closeFieldTypeEditor:l}=d();return{target:e,openCreate:o,openEdit:r,close:l}}const a={INSERT_BLOCK:"insertBlock",REMOVE_BLOCK:"removeBlock",MOVE_BLOCK:"moveBlock",CHANGE_BLOCK_TYPE:"changeBlockType",UPDATE_BLOCK_PROPS:"updateBlockProps",UPDATE_RUN:"updateRun",SET_BLOCK_CONTENT_IDS:"setBlockContentIds",REPLACE_RUN_SPAN:"replaceRunSpan",SET_BLOCK_RUNS:"setBlockRuns",EDIT_RUN_CHARS:"editRunChars",ADD_FIELD_TYPE:"addFieldType",UPDATE_FIELD_TYPE:"updateFieldType",REMOVE_FIELD_TYPE:"removeFieldType",ADD_COMMENT_THREAD:"addCommentThread",REMOVE_COMMENT_THREAD:"removeCommentThread",ADD_COMMENT_REPLY:"addCommentReply",REMOVE_COMMENT_REPLY:"removeCommentReply",RESOLVE_COMMENT:"resolveComment",ADD_PERSON:"addPerson",UPDATE_PERSON:"updatePerson",REMOVE_PERSON:"removePerson",SET_TITLE:"setTitle"};function U(e,o,r,l){return{type:a.INSERT_BLOCK,block:e,parentId:o,index:r,subtree:l}}function V(e){return{type:a.REMOVE_BLOCK,id:e}}function q(e,o,r){return{type:a.MOVE_BLOCK,id:e,toParentId:o,toIndex:r}}function Y(e,o){return{type:a.UPDATE_BLOCK_PROPS,id:e,patch:o}}function K(e,o,r){return{type:a.CHANGE_BLOCK_TYPE,id:e,blockType:o,props:r}}function W(e,o){return{type:a.UPDATE_RUN,id:e,patch:o}}function $(e,o,r,l){return{type:a.EDIT_RUN_CHARS,id:e,tombstoneIds:o,restoreIds:r,previousValue:l}}function G(e,o){return{type:a.SET_BLOCK_CONTENT_IDS,blockId:e,contentIds:o}}function Q(e,o,r){return{type:a.REPLACE_RUN_SPAN,blockId:e,oldRunIds:o,newRuns:r}}function X(e,o){return{type:a.SET_BLOCK_RUNS,blockId:e,runs:o}}function J(e){return{type:a.ADD_FIELD_TYPE,fieldType:e}}function Z(e,o){return{type:a.UPDATE_FIELD_TYPE,id:e,patch:o}}function nn(e){return{type:a.REMOVE_FIELD_TYPE,id:e}}function en(e){return{type:a.ADD_COMMENT_THREAD,thread:e}}function on(e){return{type:a.REMOVE_COMMENT_THREAD,commentId:e}}function tn(e,o){return{type:a.ADD_COMMENT_REPLY,commentId:e,message:o}}function rn(e,o){return{type:a.REMOVE_COMMENT_REPLY,commentId:e,messageId:o}}function an(e,o){return{type:a.RESOLVE_COMMENT,commentId:e,resolved:o}}function ln(e){return{type:a.ADD_PERSON,person:e}}function dn(e,o){return{type:a.UPDATE_PERSON,id:e,patch:o}}function sn(e){return{type:a.REMOVE_PERSON,id:e}}function cn(e){return{type:a.SET_TITLE,title:e}}const Bn=Object.freeze(Object.defineProperty({__proto__:null,OP:a,addCommentReply:tn,addCommentThread:en,addFieldType:J,addPerson:ln,changeBlockType:K,editRunChars:$,insertBlock:U,moveBlock:q,removeBlock:V,removeCommentReply:rn,removeCommentThread:on,removeFieldType:nn,removePerson:sn,replaceRunSpan:Q,resolveComment:an,setBlockContentIds:G,setBlockRuns:X,setTitle:cn,updateBlockProps:Y,updateFieldType:Z,updatePerson:dn,updateRun:W},Symbol.toStringTag,{value:"Module"}));function An(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function t({children:e,size:o=16,strokeWidth:r=2,...l}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",...l,children:e})}function Ln(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}function Nn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Hn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Fn(e){return n.jsxs(t,{...e,fill:"currentColor",stroke:"none",children:[n.jsx("circle",{cx:"5",cy:"12",r:"1.6"}),n.jsx("circle",{cx:"12",cy:"12",r:"1.6"}),n.jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})}function Un(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"})})}function Vn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function qn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),n.jsx("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})}function Yn(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"19",y1:"4",x2:"10",y2:"4"}),n.jsx("line",{x1:"14",y1:"20",x2:"5",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"9",y2:"20"})]})}function Kn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 3v7a6 6 0 0 0 12 0V3"}),n.jsx("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]})}function Wn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 20h9"}),n.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]})}function $n(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M3 17c2-4 4-4 6 0s4 4 6 0 4-4 6 0"})})}function Gn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),n.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}function Qn(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})})}function Xn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7"}),n.jsx("polyline",{points:"3 5 3 10 8 10"}),n.jsx("polyline",{points:"12 7 12 12 16 14"})]})}function Jn(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 2.6-6.3"}),n.jsx("polyline",{points:"3 4 3 9 8 9"})]})}function Zn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})}function ne(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),n.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})}function ee(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M16 4H9a3 3 0 0 0-2.83 4"}),n.jsx("path",{d:"M14 12a4 4 0 0 1 0 8H6"}),n.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]})}function oe(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"17",y1:"18",x2:"3",y2:"18"})]})}function te(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"18",y1:"10",x2:"6",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"18",y1:"18",x2:"6",y2:"18"})]})}function re(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"21",y1:"10",x2:"7",y2:"10"}),n.jsx("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),n.jsx("line",{x1:"21",y1:"18",x2:"7",y2:"18"})]})}function ae(e){return n.jsx(t,{...e,children:[5,12,19].flatMap(o=>[9,15].map(r=>n.jsx("circle",{cx:r,cy:o,r:"1.3",fill:"currentColor",stroke:"none"},`${r}-${o}`)))})}function ie(e){return n.jsxs(t,{...e,children:[n.jsx("polyline",{points:"3 6 5 6 21 6"}),n.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),n.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),n.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}function le(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),n.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function de(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),n.jsx("polyline",{points:"5 12 12 5 19 12"})]})}function se(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("polyline",{points:"19 12 12 19 5 12"})]})}function ce(e){return n.jsx(t,{...e,children:n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"1"})})}function be(e){return n.jsx(t,{...e,children:n.jsx("circle",{cx:"12",cy:"12",r:"8"})})}function pe(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"6",y1:"18",x2:"18",y2:"6"}),n.jsx("polyline",{points:"9 6 18 6 18 15"})]})}function me(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 3 21 12 12 21 3 12"})})}function ue(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 4 20 20 4 20"})})}function ge(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 3 14.7 9.4 21.5 9.9 16.3 14.4 17.9 21 12 17.4 6.1 21 7.7 14.4 2.5 9.9 9.3 9.4"})})}function he(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M5 3l14 8-6 2-2 6-6-16z"})})}function xe(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M19 20H9l-6-6a1.5 1.5 0 0 1 0-2l9-9a1.5 1.5 0 0 1 2 0l7 7a1.5 1.5 0 0 1 0 2l-7 7"}),n.jsx("path",{d:"M6.5 12.5 13 19"})]})}function fe(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 3v12"}),n.jsx("path",{d:"M7 10l5 5 5-5"}),n.jsx("path",{d:"M4 19h16"})]})}function ve(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M6 15V9a6 6 0 0 1 12 0v6"}),n.jsx("path",{d:"M6 15a3 3 0 0 0 6 0v-4"}),n.jsx("path",{d:"M18 15a3 3 0 0 1-6 0v-4"}),n.jsx("line",{x1:"3",y1:"9",x2:"6",y2:"9"}),n.jsx("line",{x1:"3",y1:"15",x2:"6",y2:"15"}),n.jsx("line",{x1:"18",y1:"9",x2:"21",y2:"9"}),n.jsx("line",{x1:"18",y1:"15",x2:"21",y2:"15"})]})}function ye(e){return n.jsxs(t,{...e,children:[n.jsx("circle",{cx:"6",cy:"6",r:"3"}),n.jsx("circle",{cx:"6",cy:"18",r:"3"}),n.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),n.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),n.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}function we(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"17",y1:"6",x2:"3",y2:"6"}),n.jsx("line",{x1:"21",y1:"12",x2:"3",y2:"12"}),n.jsx("line",{x1:"15",y1:"18",x2:"3",y2:"18"})]})}function g({level:e=1,size:o=16,...r}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r,children:n.jsxs("text",{x:"2",y:"18",fontSize:"14",fontWeight:"700",fill:"currentColor",fontFamily:"inherit",children:["H",e]})})}function ke(e){return n.jsx(g,{level:1,...e})}function je(e){return n.jsx(g,{level:2,...e})}function Ie(e){return n.jsx(g,{level:3,...e})}function ze(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M7 7a3 3 0 0 0-3 3v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1H6a3 3 0 0 1 3-3z"}),n.jsx("path",{d:"M17 7a3 3 0 0 0-3 3v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2a3 3 0 0 1 3-3z"})]})}function Ce(e){return n.jsxs(t,{...e,children:[n.jsx("polyline",{points:"9 8 4 12 9 16"}),n.jsx("polyline",{points:"15 8 20 12 15 16"})]})}function Ee(e){return n.jsx(t,{...e,children:n.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"})})}function Se(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M4 5h16a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 4v-4H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z"}),n.jsx("line",{x1:"7",y1:"9",x2:"17",y2:"9"}),n.jsx("line",{x1:"7",y1:"12.5",x2:"13",y2:"12.5"})]})}function Te(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"8",width:"18",height:"8",rx:"3"}),n.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]})}function Me(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1"}),n.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),n.jsx("line",{x1:"3",y1:"16",x2:"21",y2:"16"}),n.jsx("line",{x1:"9",y1:"4",x2:"9",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"15",y2:"20"})]})}function Re(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1"}),n.jsx("line",{x1:"9",y1:"4",x2:"9",y2:"20"}),n.jsx("line",{x1:"15",y1:"4",x2:"15",y2:"20"})]})}function Pe(e){return n.jsxs(t,{...e,children:[n.jsx("circle",{cx:"4.5",cy:"6",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("circle",{cx:"4.5",cy:"12",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("circle",{cx:"4.5",cy:"18",r:"1.2",fill:"currentColor",stroke:"none"}),n.jsx("line",{x1:"9",y1:"6",x2:"21",y2:"6"}),n.jsx("line",{x1:"9",y1:"12",x2:"21",y2:"12"}),n.jsx("line",{x1:"9",y1:"18",x2:"21",y2:"18"})]})}function De(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"10",y1:"6",x2:"21",y2:"6"}),n.jsx("line",{x1:"10",y1:"12",x2:"21",y2:"12"}),n.jsx("line",{x1:"10",y1:"18",x2:"21",y2:"18"}),n.jsx("text",{x:"2",y:"8.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"1"}),n.jsx("text",{x:"2",y:"14.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"2"}),n.jsx("text",{x:"2",y:"20.5",fontSize:"7",fontWeight:"700",fill:"currentColor",stroke:"none",children:"3"})]})}function _e(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3"}),n.jsx("polyline",{points:"8 12 11 15 16 9"})]})}function Oe(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),n.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),n.jsx("line",{x1:"8",y1:"3",x2:"8",y2:"7"}),n.jsx("line",{x1:"16",y1:"3",x2:"16",y2:"7"})]})}function Be(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 3h7a2 2 0 0 1 2 2v7a2 2 0 0 1-.59 1.41l-8 8a2 2 0 0 1-2.82 0l-7-7a2 2 0 0 1 0-2.82l8-8A2 2 0 0 1 12 3z"}),n.jsx("circle",{cx:"15.5",cy:"8.5",r:"1.2",fill:"currentColor",stroke:"none"})]})}function Ae(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),n.jsx("circle",{cx:"9",cy:"10",r:"1.5",fill:"currentColor",stroke:"none"}),n.jsx("path",{d:"M4 17l5-5 4 4 4-5 4 6"})]})}function Le(e){return n.jsxs(t,{...e,children:[n.jsx("rect",{x:"3",y:"5",width:"14",height:"14",rx:"2"}),n.jsx("path",{d:"M17 10l4-2.5v9L17 14"})]})}function Ne(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z"}),n.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function He(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M17.94 17.94A10.94 10.94 0 0 1 12 19c-6.5 0-10-7-10-7a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A10.94 10.94 0 0 1 12 4c6.5 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19"}),n.jsx("path",{d:"M14.12 14.12a3 3 0 1 1-4.24-4.24"}),n.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})}function Fe(e){return n.jsxs(t,{...e,children:[n.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"14"}),n.jsx("line",{x1:"8",y1:"7",x2:"8",y2:"17"}),n.jsx("line",{x1:"12",y1:"4",x2:"12",y2:"20"}),n.jsx("line",{x1:"16",y1:"7",x2:"16",y2:"17"}),n.jsx("line",{x1:"20",y1:"10",x2:"20",y2:"14"})]})}function Ue(e){return n.jsxs(t,{...e,children:[n.jsx("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),n.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),n.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),n.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]})}exports.AlignCenterIcon=te;exports.AlignLeftIcon=oe;exports.AlignRightIcon=re;exports.ArrowDiagonalIcon=pe;exports.ArrowDownIcon=se;exports.ArrowUpIcon=de;exports.AudioIcon=Fe;exports.BoldIcon=qn;exports.BulletedListIcon=Pe;exports.ButtonIcon=Te;exports.CalloutIcon=Se;exports.CheckIcon=Zn;exports.CheckboxIcon=_e;exports.ChevronDownIcon=Nn;exports.ChevronRightIcon=Ln;exports.CircleIcon=be;exports.ClockHistoryIcon=Xn;exports.CodeIcon=Ce;exports.ColumnsIcon=Re;exports.CommentIcon=Qn;exports.CopyIcon=le;exports.CursorIcon=he;exports.DateIcon=Oe;exports.DiamondIcon=me;exports.DividerIcon=Ee;exports.DownloadIcon=fe;exports.EditorProvider=vn;exports.EraserIcon=xe;exports.EyeIcon=Ne;exports.EyeOffIcon=He;exports.GripVerticalIcon=ae;exports.Heading1Icon=ke;exports.Heading2Icon=je;exports.Heading3Icon=Ie;exports.ImageIcon=Ae;exports.ItalicIcon=Yn;exports.LinkIcon=Gn;exports.MagnetIcon=ve;exports.MicIcon=Ue;exports.MoreHorizontalIcon=Fn;exports.NumberedListIcon=De;exports.OP=a;exports.PaperclipIcon=Un;exports.PencilIcon=Wn;exports.PlusIcon=Vn;exports.QuoteIcon=ze;exports.RestoreIcon=Jn;exports.ScissorsIcon=ye;exports.ScribbleIcon=$n;exports.SelectIcon=Be;exports.SendIcon=ne;exports.SquareIcon=ce;exports.StarIcon=ge;exports.StrikethroughIcon=ee;exports.TableIcon=Me;exports.TextIcon=we;exports.TrashIcon=ie;exports.TriangleIcon=ue;exports.UnderlineIcon=Kn;exports.VideoIcon=Le;exports.XIcon=Hn;exports.addCommentReply=tn;exports.addCommentThread=en;exports.addFieldType=J;exports.addPerson=ln;exports.changeBlockType=K;exports.editRunChars=$;exports.genId=An;exports.injectDefaultStyles=F;exports.insertBlock=U;exports.moveBlock=q;exports.operations=Bn;exports.removeBlock=V;exports.removeCommentReply=rn;exports.removeCommentThread=on;exports.removeFieldType=nn;exports.removePerson=sn;exports.replaceRunSpan=Q;exports.resolveComment=an;exports.setBlockContentIds=G;exports.setBlockRuns=X;exports.setTitle=cn;exports.updateBlockProps=Y;exports.updateFieldType=Z;exports.updatePerson=dn;exports.updateRun=W;exports.useBlockClassName=Sn;exports.useBlockRangeSelection=zn;exports.useBlockRegistry=kn;exports.useCommentAuthorId=Tn;exports.useEditorContext=d;exports.useEditorStore=yn;exports.useFieldTypeEditor=On;exports.useFileUpload=Dn;exports.useHighlightCode=Pn;exports.useHoveredComment=Mn;exports.useInlineRegistry=jn;exports.useOptionalEditorStore=wn;exports.usePreviewMode=En;exports.useSelectedBlock=Cn;exports.useShowLineNumbers=Rn;exports.useWholeDocumentSelection=In;
3572
+ //# sourceMappingURL=icons-DQ7j_-ZK.cjs.map