noteloom 0.5.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.
- package/README.md +1 -1
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.js +1 -1
- package/dist/collab.cjs +1 -1
- package/dist/collab.cjs.map +1 -1
- package/dist/collab.js +157 -102
- package/dist/collab.js.map +1 -1
- package/dist/comments.cjs +1 -1
- package/dist/comments.js +3 -3
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1691 -1592
- package/dist/index.js.map +1 -1
- package/dist/shared/{CommentThreadCard-YziIa8My.cjs → CommentThreadCard-CIB6nZEA.cjs} +2 -2
- package/dist/shared/{CommentThreadCard-YziIa8My.cjs.map → CommentThreadCard-CIB6nZEA.cjs.map} +1 -1
- package/dist/shared/{CommentThreadCard-CwKd6fp3.js → CommentThreadCard-lW_lbI74.js} +2 -2
- package/dist/shared/{CommentThreadCard-CwKd6fp3.js.map → CommentThreadCard-lW_lbI74.js.map} +1 -1
- package/dist/shared/{CommentsPanel-DezejDdE.cjs → CommentsPanel-CRxb3RWi.cjs} +2 -2
- package/dist/shared/{CommentsPanel-DezejDdE.cjs.map → CommentsPanel-CRxb3RWi.cjs.map} +1 -1
- package/dist/shared/{CommentsPanel-dx7IaoqS.js → CommentsPanel-Dg0k_XNU.js} +3 -3
- package/dist/shared/{CommentsPanel-dx7IaoqS.js.map → CommentsPanel-Dg0k_XNU.js.map} +1 -1
- package/dist/shared/VersionHistory-BsSwOq_k.cjs +12 -0
- package/dist/shared/VersionHistory-BsSwOq_k.cjs.map +1 -0
- package/dist/shared/{VersionHistory-DhYb8C2e.js → VersionHistory-BzMnJpbc.js} +221 -206
- package/dist/shared/VersionHistory-BzMnJpbc.js.map +1 -0
- package/dist/shared/VoiceListeningIndicator-B_7-6Mq4.cjs +2 -0
- package/dist/shared/VoiceListeningIndicator-B_7-6Mq4.cjs.map +1 -0
- package/dist/shared/VoiceListeningIndicator-DeA3hb33.js +342 -0
- package/dist/shared/VoiceListeningIndicator-DeA3hb33.js.map +1 -0
- package/dist/shared/{icons-D5Ctow8R.js → icons-CmfXmn13.js} +350 -282
- package/dist/shared/icons-CmfXmn13.js.map +1 -0
- package/dist/shared/{icons-BCseh2pt.cjs → icons-DQ7j_-ZK.cjs} +44 -3
- package/dist/shared/icons-DQ7j_-ZK.cjs.map +1 -0
- package/dist/shared/{index-D_8hJpI7.js → index-DUigqWQn.js} +52 -52
- package/dist/shared/{index-D_8hJpI7.js.map → index-DUigqWQn.js.map} +1 -1
- package/dist/shared/{index-CbIBsFmI.cjs → index-vWtS1iyt.cjs} +2 -2
- package/dist/shared/{index-CbIBsFmI.cjs.map → index-vWtS1iyt.cjs.map} +1 -1
- package/dist/shared/{leafBlockFactory-CaLWUcfa.cjs → leafBlockFactory-6GFBveaC.cjs} +2 -2
- package/dist/shared/{leafBlockFactory-CaLWUcfa.cjs.map → leafBlockFactory-6GFBveaC.cjs.map} +1 -1
- package/dist/shared/{leafBlockFactory-DSa1XCox.js → leafBlockFactory-Dm6cd2NY.js} +5 -5
- package/dist/shared/{leafBlockFactory-DSa1XCox.js.map → leafBlockFactory-Dm6cd2NY.js.map} +1 -1
- package/dist/shared/{serialize-BqKU9EZy.js → serialize-R4V4gmHs.js} +2 -2
- package/dist/shared/{serialize-BqKU9EZy.js.map → serialize-R4V4gmHs.js.map} +1 -1
- package/dist/shared/{serialize-CqwX55uK.cjs → serialize-vLXz0cze.cjs} +2 -2
- package/dist/shared/{serialize-CqwX55uK.cjs.map → serialize-vLXz0cze.cjs.map} +1 -1
- package/dist/shared/starter-kit-BQUaaql0.cjs +29 -0
- package/dist/shared/starter-kit-BQUaaql0.cjs.map +1 -0
- package/dist/shared/{starter-kit-mfeNxqFn.js → starter-kit-Bp30PiE4.js} +1545 -1477
- package/dist/shared/starter-kit-Bp30PiE4.js.map +1 -0
- package/dist/shared/{usePopoverEdgeClamp-CPRWQtZV.cjs → usePopoverEdgeClamp-BJLbbANB.cjs} +2 -2
- package/dist/shared/{usePopoverEdgeClamp-CPRWQtZV.cjs.map → usePopoverEdgeClamp-BJLbbANB.cjs.map} +1 -1
- package/dist/shared/{usePopoverEdgeClamp-D_hB5t60.js → usePopoverEdgeClamp-DSpz-6xR.js} +2 -2
- package/dist/shared/{usePopoverEdgeClamp-D_hB5t60.js.map → usePopoverEdgeClamp-DSpz-6xR.js.map} +1 -1
- package/dist/starter-kit.cjs +1 -1
- package/dist/starter-kit.js +2 -2
- package/dist/style.css +41 -0
- package/dist/versions.cjs +1 -1
- package/dist/versions.js +1 -1
- package/dist/voice.cjs +1 -1
- package/dist/voice.js +1 -1
- package/package.json +2 -2
- package/dist/shared/VersionHistory-DhYb8C2e.js.map +0 -1
- package/dist/shared/VersionHistory-DuSxis_7.cjs +0 -12
- package/dist/shared/VersionHistory-DuSxis_7.cjs.map +0 -1
- package/dist/shared/VoiceListeningIndicator-BXByLZwO.cjs +0 -2
- package/dist/shared/VoiceListeningIndicator-BXByLZwO.cjs.map +0 -1
- package/dist/shared/VoiceListeningIndicator-bv285FSY.js +0 -338
- package/dist/shared/VoiceListeningIndicator-bv285FSY.js.map +0 -1
- package/dist/shared/icons-BCseh2pt.cjs.map +0 -1
- package/dist/shared/icons-D5Ctow8R.js.map +0 -1
- package/dist/shared/starter-kit-DyX1U84W.cjs +0 -27
- package/dist/shared/starter-kit-DyX1U84W.cjs.map +0 -1
- package/dist/shared/starter-kit-mfeNxqFn.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("react"),
|
|
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
|
-
`,B="noteloom-default-styles";let O=!1;function un(){if(O)return;O=!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 A({auto:e=!1}={}){if(typeof document>"u"||document.getElementById(B))return;e&&un();const o=document.createElement("style");o.id=B,o.textContent=pn,document.head.appendChild(o)}const L=i.createContext(null);function gn({store:e,registry:o,inlineRegistry:r=null,history:d=null,className:c,style:g,theme:h="default",getBlockClassName:x,commentAuthorId:f,showLineNumbers:v=!1,uploadFile:y,maxFileSize:w,children:k}){i.useEffect(()=>{h!=="none"&&A({auto:!0})},[h]);const[j,ln]=i.useState(!1),[z,dn]=i.useState(null),[I,sn]=i.useState([]),[C,cn]=i.useState(!1),[E,b]=i.useState(null),S=i.useCallback(()=>b("new"),[]),M=i.useCallback(s=>b(s),[]),T=i.useCallback(()=>b(null),[]),m=i.useRef(null),R=i.useCallback(()=>m.current,[]),P=i.useCallback(s=>{var D,_;const p=m.current;p!==s&&(p&&((D=document.querySelector(`[data-block-id="${p}"]`))==null||D.classList.remove("be-block-selected")),m.current=s,s&&((_=document.querySelector(`[data-block-id="${s}"]`))==null||_.classList.add("be-block-selected")))},[]),bn=i.useMemo(()=>({store:e,registry:o,inlineRegistry:r,history:d,isWholeDocumentSelected:j,setIsWholeDocumentSelected:ln,selectedBlockRange:I,setSelectedBlockRange:sn,getSelectedBlockId:R,setSelectedBlockId:P,isPreviewMode:C,setIsPreviewMode:cn,fieldTypeEditorTarget:E,openCreateFieldType:S,openEditFieldType:M,closeFieldTypeEditor:T,getBlockClassName:x,commentAuthorId:f,hoveredCommentId:z,setHoveredCommentId:dn,showLineNumbers:v,uploadFile:y,maxFileSize:w}),[e,o,r,d,j,I,R,P,C,E,S,M,T,x,f,z,v,y,w]),mn=c||g?n.jsx("div",{className:c?`be-root ${c}`:"be-root",style:g,children:k}):k;return n.jsx(L.Provider,{value:bn,children:mn})}function l(){const e=i.useContext(L);if(!e)throw new Error("Editor hooks must be used within an <EditorProvider>");return e}function hn(){return l().store}function xn(){return l().registry}function fn(){return l().inlineRegistry}function vn(){const{isWholeDocumentSelected:e,setIsWholeDocumentSelected:o}=l();return[e,o]}function yn(){const{selectedBlockRange:e,setSelectedBlockRange:o}=l();return[e,o]}function wn(){const{getSelectedBlockId:e,setSelectedBlockId:o}=l();return{getSelectedBlockId:e,setSelectedBlockId:o}}function kn(){const{isPreviewMode:e,setIsPreviewMode:o}=l();return[e,o]}function jn(e,o){const{getBlockClassName:r}=l(),d=o&&r?r(o):void 0;return d?`${e} ${d}`:e}function zn(){return l().commentAuthorId}function In(){const{hoveredCommentId:e,setHoveredCommentId:o}=l();return[e,o]}function Cn(){return l().showLineNumbers}function En(){const{uploadFile:e,maxFileSize:o}=l();return{uploadFile:e,maxFileSize:o}}function Sn(){const{fieldTypeEditorTarget:e,openCreateFieldType:o,openEditFieldType:r,closeFieldTypeEditor:d}=l();return{target:e,openCreate:o,openEdit:r,close:d}}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"};function N(e,o,r,d){return{type:a.INSERT_BLOCK,block:e,parentId:o,index:r,subtree:d}}function H(e){return{type:a.REMOVE_BLOCK,id:e}}function F(e,o,r){return{type:a.MOVE_BLOCK,id:e,toParentId:o,toIndex:r}}function U(e,o){return{type:a.UPDATE_BLOCK_PROPS,id:e,patch:o}}function V(e,o,r){return{type:a.CHANGE_BLOCK_TYPE,id:e,blockType:o,props:r}}function q(e,o){return{type:a.UPDATE_RUN,id:e,patch:o}}function Y(e,o,r,d){return{type:a.EDIT_RUN_CHARS,id:e,tombstoneIds:o,restoreIds:r,previousValue:d}}function K(e,o){return{type:a.SET_BLOCK_CONTENT_IDS,blockId:e,contentIds:o}}function W(e,o,r){return{type:a.REPLACE_RUN_SPAN,blockId:e,oldRunIds:o,newRuns:r}}function $(e,o){return{type:a.SET_BLOCK_RUNS,blockId:e,runs:o}}function G(e){return{type:a.ADD_FIELD_TYPE,fieldType:e}}function Q(e,o){return{type:a.UPDATE_FIELD_TYPE,id:e,patch:o}}function X(e){return{type:a.REMOVE_FIELD_TYPE,id:e}}function J(e){return{type:a.ADD_COMMENT_THREAD,thread:e}}function Z(e){return{type:a.REMOVE_COMMENT_THREAD,commentId:e}}function nn(e,o){return{type:a.ADD_COMMENT_REPLY,commentId:e,message:o}}function en(e,o){return{type:a.REMOVE_COMMENT_REPLY,commentId:e,messageId:o}}function on(e,o){return{type:a.RESOLVE_COMMENT,commentId:e,resolved:o}}function tn(e){return{type:a.ADD_PERSON,person:e}}function rn(e,o){return{type:a.UPDATE_PERSON,id:e,patch:o}}function an(e){return{type:a.REMOVE_PERSON,id:e}}const Mn=Object.freeze(Object.defineProperty({__proto__:null,OP:a,addCommentReply:nn,addCommentThread:J,addFieldType:G,addPerson:tn,changeBlockType:V,editRunChars:Y,insertBlock:N,moveBlock:F,removeBlock:H,removeCommentReply:en,removeCommentThread:Z,removeFieldType:X,removePerson:an,replaceRunSpan:W,resolveComment:on,setBlockContentIds:K,setBlockRuns:$,updateBlockProps:U,updateFieldType:Q,updatePerson:rn,updateRun:q},Symbol.toStringTag,{value:"Module"}));function Tn(){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,...d}){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",...d,children:e})}function Rn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}function Pn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Dn(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 _n(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 Bn(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 On(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 An(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 Ln(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 Nn(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 Hn(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 Fn(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 Un(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 Vn(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 qn(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 Yn(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 Kn(e){return n.jsx(t,{...e,children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Wn(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 $n(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 Gn(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 Qn(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 Xn(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 Jn(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 Zn(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 ne(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 ee(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 oe(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 te(e){return n.jsx(t,{...e,children:n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"1"})})}function re(e){return n.jsx(t,{...e,children:n.jsx("circle",{cx:"12",cy:"12",r:"8"})})}function ae(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 ie(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 3 21 12 12 21 3 12"})})}function le(e){return n.jsx(t,{...e,children:n.jsx("polygon",{points:"12 4 20 20 4 20"})})}function de(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 se(e){return n.jsx(t,{...e,children:n.jsx("path",{d:"M5 3l14 8-6 2-2 6-6-16z"})})}function ce(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 be(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 me(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 pe(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 ue(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 u({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 ge(e){return n.jsx(u,{level:1,...e})}function he(e){return n.jsx(u,{level:2,...e})}function xe(e){return n.jsx(u,{level:3,...e})}function fe(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 ve(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 ye(e){return n.jsx(t,{...e,children:n.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"})})}function we(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 ke(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 je(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 ze(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 Ie(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 Ce(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 Ee(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 Se(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 Me(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 Te(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 Re(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 Pe(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 De(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 _e(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 Be(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=Qn;exports.AlignLeftIcon=Gn;exports.AlignRightIcon=Xn;exports.ArrowDiagonalIcon=ae;exports.ArrowDownIcon=oe;exports.ArrowUpIcon=ee;exports.AudioIcon=_e;exports.BoldIcon=An;exports.BulletedListIcon=Ie;exports.ButtonIcon=ke;exports.CalloutIcon=we;exports.CheckIcon=Kn;exports.CheckboxIcon=Ee;exports.ChevronDownIcon=Pn;exports.ChevronRightIcon=Rn;exports.CircleIcon=re;exports.ClockHistoryIcon=qn;exports.CodeIcon=ve;exports.ColumnsIcon=ze;exports.CommentIcon=Vn;exports.CopyIcon=ne;exports.CursorIcon=se;exports.DateIcon=Se;exports.DiamondIcon=ie;exports.DividerIcon=ye;exports.DownloadIcon=be;exports.EditorProvider=gn;exports.EraserIcon=ce;exports.EyeIcon=Pe;exports.EyeOffIcon=De;exports.GripVerticalIcon=Jn;exports.Heading1Icon=ge;exports.Heading2Icon=he;exports.Heading3Icon=xe;exports.ImageIcon=Te;exports.ItalicIcon=Ln;exports.LinkIcon=Un;exports.MagnetIcon=me;exports.MicIcon=Be;exports.MoreHorizontalIcon=_n;exports.NumberedListIcon=Ce;exports.OP=a;exports.PaperclipIcon=Bn;exports.PencilIcon=Hn;exports.PlusIcon=On;exports.QuoteIcon=fe;exports.RestoreIcon=Yn;exports.ScissorsIcon=pe;exports.ScribbleIcon=Fn;exports.SelectIcon=Me;exports.SendIcon=Wn;exports.SquareIcon=te;exports.StarIcon=de;exports.StrikethroughIcon=$n;exports.TableIcon=je;exports.TextIcon=ue;exports.TrashIcon=Zn;exports.TriangleIcon=le;exports.UnderlineIcon=Nn;exports.VideoIcon=Re;exports.XIcon=Dn;exports.addCommentReply=nn;exports.addCommentThread=J;exports.addFieldType=G;exports.addPerson=tn;exports.changeBlockType=V;exports.editRunChars=Y;exports.genId=Tn;exports.injectDefaultStyles=A;exports.insertBlock=N;exports.moveBlock=F;exports.operations=Mn;exports.removeBlock=H;exports.removeCommentReply=en;exports.removeCommentThread=Z;exports.removeFieldType=X;exports.removePerson=an;exports.replaceRunSpan=W;exports.resolveComment=on;exports.setBlockContentIds=K;exports.setBlockRuns=$;exports.updateBlockProps=U;exports.updateFieldType=Q;exports.updatePerson=rn;exports.updateRun=q;exports.useBlockClassName=jn;exports.useBlockRangeSelection=yn;exports.useBlockRegistry=xn;exports.useCommentAuthorId=zn;exports.useEditorContext=l;exports.useEditorStore=hn;exports.useFieldTypeEditor=Sn;exports.useFileUpload=En;exports.useHoveredComment=In;exports.useInlineRegistry=fn;exports.usePreviewMode=kn;exports.useSelectedBlock=wn;exports.useShowLineNumbers=Cn;exports.useWholeDocumentSelection=vn;
|
|
3531
|
-
//# sourceMappingURL=icons-
|
|
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
|