@things-factory/lexical-editor 6.0.22
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/CHANGELOG.md +8 -0
- package/assets/EquationComponent.2ae445bf.css +1 -0
- package/assets/EquationComponent.6db6bfa0.js +1 -0
- package/assets/ExcalidrawComponent.09670137.css +1 -0
- package/assets/ExcalidrawComponent.c66e3028.js +1 -0
- package/assets/ImageComponent.00db88d9.js +1 -0
- package/assets/ImageComponent.faf47ab5.css +1 -0
- package/assets/ImageResizer.9cd447ab.js +1 -0
- package/assets/KaTeX_AMS-Regular.0cdd387c.woff2 +0 -0
- package/assets/KaTeX_AMS-Regular.30da91e8.woff +0 -0
- package/assets/KaTeX_AMS-Regular.68534840.ttf +0 -0
- package/assets/KaTeX_Caligraphic-Bold.07d8e303.ttf +0 -0
- package/assets/KaTeX_Caligraphic-Bold.1ae6bd74.woff +0 -0
- package/assets/KaTeX_Caligraphic-Bold.de7701e4.woff2 +0 -0
- package/assets/KaTeX_Caligraphic-Regular.3398dd02.woff +0 -0
- package/assets/KaTeX_Caligraphic-Regular.5d53e70a.woff2 +0 -0
- package/assets/KaTeX_Caligraphic-Regular.ed0b7437.ttf +0 -0
- package/assets/KaTeX_Fraktur-Bold.74444efd.woff2 +0 -0
- package/assets/KaTeX_Fraktur-Bold.9163df9c.ttf +0 -0
- package/assets/KaTeX_Fraktur-Bold.9be7ceb8.woff +0 -0
- package/assets/KaTeX_Fraktur-Regular.1e6f9579.ttf +0 -0
- package/assets/KaTeX_Fraktur-Regular.51814d27.woff2 +0 -0
- package/assets/KaTeX_Fraktur-Regular.5e28753b.woff +0 -0
- package/assets/KaTeX_Main-Bold.0f60d1b8.woff2 +0 -0
- package/assets/KaTeX_Main-Bold.138ac28d.ttf +0 -0
- package/assets/KaTeX_Main-Bold.c76c5d69.woff +0 -0
- package/assets/KaTeX_Main-BoldItalic.70ee1f64.ttf +0 -0
- package/assets/KaTeX_Main-BoldItalic.99cd42a3.woff2 +0 -0
- package/assets/KaTeX_Main-BoldItalic.a6f7ec0d.woff +0 -0
- package/assets/KaTeX_Main-Italic.0d85ae7c.ttf +0 -0
- package/assets/KaTeX_Main-Italic.97479ca6.woff2 +0 -0
- package/assets/KaTeX_Main-Italic.f1d6ef86.woff +0 -0
- package/assets/KaTeX_Main-Regular.c2342cd8.woff2 +0 -0
- package/assets/KaTeX_Main-Regular.c6368d87.woff +0 -0
- package/assets/KaTeX_Main-Regular.d0332f52.ttf +0 -0
- package/assets/KaTeX_Math-BoldItalic.850c0af5.woff +0 -0
- package/assets/KaTeX_Math-BoldItalic.dc47344d.woff2 +0 -0
- package/assets/KaTeX_Math-BoldItalic.f9377ab0.ttf +0 -0
- package/assets/KaTeX_Math-Italic.08ce98e5.ttf +0 -0
- package/assets/KaTeX_Math-Italic.7af58c5e.woff2 +0 -0
- package/assets/KaTeX_Math-Italic.8a8d2445.woff +0 -0
- package/assets/KaTeX_SansSerif-Bold.1ece03f7.ttf +0 -0
- package/assets/KaTeX_SansSerif-Bold.e99ae511.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Bold.ece03cfd.woff +0 -0
- package/assets/KaTeX_SansSerif-Italic.00b26ac8.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Italic.3931dd81.ttf +0 -0
- package/assets/KaTeX_SansSerif-Italic.91ee6750.woff +0 -0
- package/assets/KaTeX_SansSerif-Regular.11e4dc8a.woff +0 -0
- package/assets/KaTeX_SansSerif-Regular.68e8c73e.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Regular.f36ea897.ttf +0 -0
- package/assets/KaTeX_Script-Regular.036d4e95.woff2 +0 -0
- package/assets/KaTeX_Script-Regular.1c67f068.ttf +0 -0
- package/assets/KaTeX_Script-Regular.d96cdf2b.woff +0 -0
- package/assets/KaTeX_Size1-Regular.6b47c401.woff2 +0 -0
- package/assets/KaTeX_Size1-Regular.95b6d2f1.ttf +0 -0
- package/assets/KaTeX_Size1-Regular.c943cc98.woff +0 -0
- package/assets/KaTeX_Size2-Regular.2014c523.woff +0 -0
- package/assets/KaTeX_Size2-Regular.a6b2099f.ttf +0 -0
- package/assets/KaTeX_Size2-Regular.d04c5421.woff2 +0 -0
- package/assets/KaTeX_Size3-Regular.500e04d5.ttf +0 -0
- package/assets/KaTeX_Size3-Regular.6ab6b62e.woff +0 -0
- package/assets/KaTeX_Size4-Regular.99f9c675.woff +0 -0
- package/assets/KaTeX_Size4-Regular.a4af7d41.woff2 +0 -0
- package/assets/KaTeX_Size4-Regular.c647367d.ttf +0 -0
- package/assets/KaTeX_Typewriter-Regular.71d517d6.woff2 +0 -0
- package/assets/KaTeX_Typewriter-Regular.e14fed02.woff +0 -0
- package/assets/KaTeX_Typewriter-Regular.f01f3e87.ttf +0 -0
- package/assets/LexicalNestedComposer.412b5854.js +1 -0
- package/assets/PollComponent.7b32c9d1.js +1 -0
- package/assets/PollComponent.e519dbaf.css +1 -0
- package/assets/StickyComponent.64376704.css +1 -0
- package/assets/StickyComponent.821e162d.js +1 -0
- package/assets/TableComponent.b31a076f.js +1 -0
- package/assets/arrow-clockwise.2a5cb240.svg +1 -0
- package/assets/arrow-counterclockwise.7bfcc198.svg +1 -0
- package/assets/bg-color.507cd4d9.svg +1 -0
- package/assets/camera.30598594.svg +1 -0
- package/assets/card-checklist.4b2c9bb6.svg +1 -0
- package/assets/caret-right-fill.a00c19e8.svg +1 -0
- package/assets/cat-typing.29244fe9.gif +0 -0
- package/assets/chat-left-text.6b95a11e.svg +1 -0
- package/assets/chat-square-quote.11c47cee.svg +1 -0
- package/assets/chevron-down.7ab1bec2.svg +1 -0
- package/assets/clipboard.af70d3df.svg +1 -0
- package/assets/close.5a175ff6.svg +1 -0
- package/assets/code.211c00f3.svg +1 -0
- package/assets/comments.832aaea0.svg +1 -0
- package/assets/copy.0a348586.svg +1 -0
- package/assets/diagram-2.109ff72d.svg +1 -0
- package/assets/download.86c52f35.svg +1 -0
- package/assets/draggable-block-menu.a5121e96.svg +1 -0
- package/assets/dropdown-more.e77cf0f5.svg +1 -0
- package/assets/emoji-list.81a5609c.js +1 -0
- package/assets/figma.73378f91.svg +1 -0
- package/assets/file-earmark-text.ca11f66a.svg +4 -0
- package/assets/file-image.92c4290c.svg +1 -0
- package/assets/filetype-gif.6c82f677.svg +1 -0
- package/assets/font-color.babef7e0.svg +1 -0
- package/assets/font-family.6d11828a.svg +1 -0
- package/assets/gear.9752af63.svg +1 -0
- package/assets/horizontal-rule.f2611cd6.svg +1 -0
- package/assets/indent.9b11e20c.svg +1 -0
- package/assets/journal-code.281f8e59.svg +1 -0
- package/assets/justify.e3d375bb.svg +1 -0
- package/assets/landscape.21352c66.jpg +0 -0
- package/assets/link.dabc7da5.svg +1 -0
- package/assets/list-ol.03c2349b.svg +1 -0
- package/assets/list-ul.d6a7f4ba.svg +1 -0
- package/assets/lock-fill.b10c3357.svg +1 -0
- package/assets/lock.9d41d1f2.svg +1 -0
- package/assets/main.0e0c1acb.css +1 -0
- package/assets/main.df10c180.js +21 -0
- package/assets/markdown.5082cb8f.svg +1 -0
- package/assets/mic.507b1f72.svg +1 -0
- package/assets/outdent.b795c01f.svg +1 -0
- package/assets/paint-bucket.407066ee.svg +1 -0
- package/assets/palette.a72cd2c3.svg +1 -0
- package/assets/parser-babel.6f804a7c.js +1 -0
- package/assets/parser-html.66e60782.js +22 -0
- package/assets/parser-markdown.3f44829c.js +22 -0
- package/assets/parser-postcss.16fcf3bd.js +1 -0
- package/assets/pencil-fill.633b2c8d.svg +1 -0
- package/assets/plug-fill.0098ed23.svg +1 -0
- package/assets/plug.d8731872.svg +1 -0
- package/assets/plus-slash-minus.6e1f16e9.svg +1 -0
- package/assets/plus.cc33d039.svg +1 -0
- package/assets/prettier-error.0ed0d492.svg +1 -0
- package/assets/prettier.6c905155.svg +1 -0
- package/assets/send.3616a219.svg +1 -0
- package/assets/square-check.f4543561.svg +1 -0
- package/assets/standalone.07cb14af.js +22 -0
- package/assets/sticky.35cbc445.svg +1 -0
- package/assets/success-alt.33b01110.svg +1 -0
- package/assets/success.e7e6caa5.svg +1 -0
- package/assets/table.5b346097.svg +1 -0
- package/assets/text-center.3b97a1ce.svg +1 -0
- package/assets/text-left.37eb3c07.svg +1 -0
- package/assets/text-paragraph.f17ec370.svg +1 -0
- package/assets/text-right.69b7b3bf.svg +1 -0
- package/assets/trash.e93c6b1b.svg +1 -0
- package/assets/trash3.0a864fe5.svg +1 -0
- package/assets/tweet.9fbf1564.svg +1 -0
- package/assets/type-bold.1f17e5da.svg +1 -0
- package/assets/type-h1.83dd5e3b.svg +1 -0
- package/assets/type-h2.bb6b6d69.svg +1 -0
- package/assets/type-h3.27eb870e.svg +1 -0
- package/assets/type-h4.b9ba31db.svg +1 -0
- package/assets/type-h5.f6d2d205.svg +1 -0
- package/assets/type-h6.34dc2c46.svg +1 -0
- package/assets/type-italic.f9cdcec5.svg +1 -0
- package/assets/type-strikethrough.ea22e2f6.svg +1 -0
- package/assets/type-subscript.84ecc6bb.svg +1 -0
- package/assets/type-superscript.fd5795bc.svg +1 -0
- package/assets/type-underline.9639e1cd.svg +1 -0
- package/assets/upload.0365f49c.svg +1 -0
- package/assets/user.085d4653.svg +1 -0
- package/assets/yellow-flower.a2a7c7a2.jpg +0 -0
- package/assets/youtube.42d173dd.svg +1 -0
- package/client/bootstrap.ts +1 -0
- package/client/index.ts +0 -0
- package/client/tsconfig.json +11 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +2 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-server/index.js +4 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/routes.js +28 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +32 -0
- package/server/index.ts +1 -0
- package/server/routes.ts +31 -0
- package/server/tsconfig.json +10 -0
- package/things-factory.config.js +1 -0
- package/views/public/html-editor-lexical.html +34 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,g as t,o as a,u as s,d as r,c as n,$ as o,p as i,q as l,m as d,S as c,k as u,i as m,D as h,l as p,n as g,s as f,K as x,t as b,v as C,a as w,j as E,F as v,A as N,N as R,L as S,E as y,H as I,w as T,x as W,y as k,z,R as D,G as j,P as K,I as L,T as _}from"./main.df10c180.js";import{L as A}from"./LexicalNestedComposer.412b5854.js";import{I as H}from"./ImageResizer.9cd447ab.js";const B=new Set;function F({altText:e,className:t,imageRef:a,src:s,width:r,height:n,maxWidth:o}){return function(e){if(!B.has(e))throw new Promise((t=>{const a=new Image;a.src=e,a.onload=()=>{B.add(e),t(null)}}))}(s),w("img",{className:t||void 0,src:s,alt:e,ref:a,style:{height:n,maxWidth:o,width:r},draggable:"false"})}function P({src:B,altText:P,nodeKey:q,width:G,height:U,maxWidth:V,resizable:$,showCaption:J,caption:M,captionsEnabled:O}){const Q=e.exports.useRef(null),X=e.exports.useRef(null),[Y,Z,ee]=t(q),[te,ae]=e.exports.useState(!1),{isCollabActive:se}=a(),[re]=s(),[ne,oe]=e.exports.useState(null),ie=e.exports.useRef(null),le=e.exports.useCallback((e=>{if(Y&&r(n())){e.preventDefault();const t=o(q);i(t)&&t.remove(),Z(!1)}return!1}),[Y,q,Z]),de=e.exports.useCallback((e=>{const t=n(),a=X.current;if(Y&&r(t)&&1===t.getNodes().length){if(J)return l(null),e.preventDefault(),M.focus(),!0;if(null!==a&&a!==document.activeElement)return e.preventDefault(),a.focus(),!0}return!1}),[M,Y,J]),ce=e.exports.useCallback((e=>(ie.current===M||X.current===e.target)&&(l(null),re.update((()=>{Z(!0);const e=re.getRootElement();null!==e&&e.focus()})),!0)),[M,re,Z]);e.exports.useEffect((()=>{let e=!0;const t=d(re.registerUpdateListener((({editorState:t})=>{e&&oe(t.read((()=>n())))})),re.registerCommand(c,((e,t)=>(ie.current=t,!1)),u),re.registerCommand(m,(e=>{const t=e;return!!te||t.target===Q.current&&(t.shiftKey?Z(!Y):(ee(),Z(!0)),!0)}),u),re.registerCommand(h,(e=>e.target===Q.current&&(e.preventDefault(),!0)),u),re.registerCommand(p,le,u),re.registerCommand(g,le,u),re.registerCommand(f,de,u),re.registerCommand(x,ce,u));return()=>{e=!1,t()}}),[ee,re,te,Y,q,le,de,ce,Z]);const{historyState:ue}=b(),{settings:{showNestedEditorTreeView:me}}=C(),he=Y&&r(ne)&&!te,pe=Y||te;return w(e.exports.Suspense,{fallback:null,children:E(v,{children:[w("div",{draggable:he,children:w(F,{className:pe?"focused "+(r(ne)?"draggable":""):null,src:B,altText:P,imageRef:Q,width:G,height:U,maxWidth:V})}),J&&w("div",{className:"image-caption-container",children:E(A,{initialEditor:M,children:[w(N,{}),w(R,{}),w(S,{}),w(y,{}),w(I,{}),w(T,{}),se?w(W,{id:M.getKey(),providerFactory:k,shouldBootstrap:!0}):w(z,{externalHistoryState:ue}),w(D,{contentEditable:w(j,{className:"ImageNode__contentEditable"}),placeholder:w(K,{className:"ImageNode__placeholder",children:"Enter a caption..."}),ErrorBoundary:L}),!0===me?w(_,{}):null]})}),$&&r(ne)&&pe&&w(H,{showCaption:J,setShowCaption:()=>{re.update((()=>{const e=o(q);i(e)&&e.setShowCaption(!0)}))},editor:re,buttonRef:X,imageRef:Q,maxWidth:V,onResizeStart:()=>{ae(!0)},onResizeEnd:(e,t)=>{setTimeout((()=>{ae(!1)}),200),re.update((()=>{const a=o(q);i(a)&&a.setWidthAndHeight(e,t)}))},captionsEnabled:O})]})})}export{P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ImageNode__contentEditable{min-height:20px;border:0px;resize:none;cursor:text;caret-color:#050505;display:block;position:relative;tab-size:1;outline:0px;padding:10px;user-select:text;font-size:12px;width:calc(100% - 20px);white-space:pre-wrap;word-break:break-word}.ImageNode__placeholder{font-size:12px;color:#888;overflow:hidden;position:absolute;text-overflow:ellipsis;top:10px;left:10px;user-select:none;white-space:nowrap;display:inline-block;pointer-events:none}.image-control-wrapper--resizing{touch-action:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,j as t,a as r}from"./main.df10c180.js";function i(e,t,r){return Math.min(Math.max(e,t),r)}const n=1,s=8,o=2,a=4;function c({onResizeStart:c,onResizeEnd:l,buttonRef:u,imageRef:d,maxWidth:m,editor:g,showCaption:h,setShowCaption:p,captionsEnabled:y}){const w=e.exports.useRef(null),z=e.exports.useRef({priority:"",value:"default"}),f=e.exports.useRef({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),v=g.getRootElement(),b=m||(null!==v?v.getBoundingClientRect().width-20:100),P=null!==v?v.getBoundingClientRect().height-20:100,R=(e,t)=>{if(!g.isEditable())return;const r=d.current,i=w.current;if(null!==r&&null!==i){const{width:l,height:u}=r.getBoundingClientRect(),d=f.current;d.startWidth=l,d.startHeight=u,d.ratio=l/u,d.currentWidth=l,d.currentHeight=u,d.startX=e.clientX,d.startY=e.clientY,d.isResizing=!0,d.direction=t,(e=>{const t=e===n||e===a?"ew":e===s||e===o?"ns":e&s&&e&a||e&o&&e&n?"nwse":"nesw";null!==v&&v.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),z.current.value=document.body.style.getPropertyValue("-webkit-user-select"),z.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(t),c(),i.classList.add("image-control-wrapper--resizing"),r.style.height=`${u}px`,r.style.width=`${l}px`,document.addEventListener("pointermove",x),document.addEventListener("pointerup",W)}},x=e=>{const t=d.current,r=f.current,c=r.direction&(n|a),l=r.direction&(o|s);if(null!==t&&r.isResizing)if(c&&l){let s=Math.floor(r.startX-e.clientX);s=r.direction&n?-s:s;const o=i(r.startWidth+s,100,b),a=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${a}px`,r.currentHeight=a,r.currentWidth=o}else if(l){let n=Math.floor(r.startY-e.clientY);n=r.direction&o?-n:n;const s=i(r.startHeight+n,100,P);t.style.height=`${s}px`,r.currentHeight=s}else{let s=Math.floor(r.startX-e.clientX);s=r.direction&n?-s:s;const o=i(r.startWidth+s,100,b);t.style.width=`${o}px`,r.currentWidth=o}},W=()=>{const e=d.current,t=f.current,r=w.current;if(null!==e&&null!==r&&t.isResizing){const e=t.currentWidth,i=t.currentHeight;t.startWidth=0,t.startHeight=0,t.ratio=0,t.startX=0,t.startY=0,t.currentWidth=0,t.currentHeight=0,t.isResizing=!1,r.classList.remove("image-control-wrapper--resizing"),null!==v&&v.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",z.current.value,z.current.priority)),l(e,i),document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",W)}};return t("div",{ref:w,children:[!h&&y&&r("button",{className:"image-caption-button",ref:u,onClick:()=>{p(!h)},children:"Add Caption"}),r("div",{className:"image-resizer image-resizer-n",onPointerDown:e=>{R(e,s)}}),r("div",{className:"image-resizer image-resizer-ne",onPointerDown:e=>{R(e,s|n)}}),r("div",{className:"image-resizer image-resizer-e",onPointerDown:e=>{R(e,n)}}),r("div",{className:"image-resizer image-resizer-se",onPointerDown:e=>{R(e,o|n)}}),r("div",{className:"image-resizer image-resizer-s",onPointerDown:e=>{R(e,o)}}),r("div",{className:"image-resizer image-resizer-sw",onPointerDown:e=>{R(e,o|a)}}),r("div",{className:"image-resizer image-resizer-w",onPointerDown:e=>{R(e,a)}}),r("div",{className:"image-resizer image-resizer-nw",onPointerDown:e=>{R(e,s|a)}})]})}export{c as I};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as e,O as t,r}from"./main.df10c180.js";var s=e,o=t,a=r.exports,i=function({initialEditor:e,children:t,initialNodes:r,initialTheme:i,skipCollabChecks:l}){let n=a.useRef(!1),c=a.useContext(o.LexicalComposerContext);if(null==c)throw Error("Minified Lexical error #9; visit https://lexical.dev/docs/error?code=9 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let[f,{getTheme:d}]=c,p=a.useMemo((()=>{var t=i||d()||void 0;const s=o.createLexicalComposerContext(c,t);if(void 0!==t&&(e._config.theme=t),e._parentEditor=f,r)for(var a of r)t=a.getType(),e._nodes.set(t,{klass:a,replace:null,replaceWithKlass:null,transforms:new Set});else{a=e._nodes=new Map(f._nodes);for(const[t,r]of a)e._nodes.set(t,{klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,transforms:new Set})}return e._config.namespace=f._config.namespace,e._editable=f._editable,[e,s]}),[]),{isCollabActive:u,yjsDocMap:m}=s.useCollaborationContext(),h=l||n.current||m.has(e.getKey());return a.useEffect((()=>{h&&(n.current=!0)}),[h]),a.useEffect((()=>f.registerEditableListener((t=>{e.setEditable(t)}))),[e,f]),a.createElement(o.LexicalComposerContext.Provider,{value:p},!u||h?t:null)};export{i as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e,r as o,g as t,d as n,c as l,$ as s,Q as a,m as i,i as d,k as r,l as c,n as p,a as u,j as h,B as N,o as _,U as m,V as f}from"./main.df10c180.js";function x({option:e,index:t,options:n,totalVotes:l,withPollNode:s}){const{clientID:a}=_(),i=o.exports.useRef(null),d=e.votes,r=-1!==d.indexOf(a),c=d.length,p=e.text;return h("div",{className:"PollNode__optionContainer",children:[u("div",{className:m("PollNode__optionCheckboxWrapper",r&&"PollNode__optionCheckboxChecked"),children:u("input",{ref:i,className:"PollNode__optionCheckbox",type:"checkbox",onChange:o=>{s((o=>{o.toggleVote(e,a)}))},checked:r})}),h("div",{className:"PollNode__optionInputWrapper",children:[u("div",{className:"PollNode__optionInputVotes",style:{width:(0===c?0:c/l*100)+"%"}}),u("span",{className:"PollNode__optionInputVotesCount",children:c>0&&(1===c?"1 vote":`${c} votes`)}),u("input",{className:"PollNode__optionInput",type:"text",value:p,onChange:o=>{const t=o.target,n=t.value,l=t.selectionStart,a=t.selectionEnd;s((o=>{o.setOptionText(e,n)}),(()=>{t.selectionStart=l,t.selectionEnd=a}))},placeholder:`Option ${t+1}`})]}),u("button",{disabled:n.length<3,className:m("PollNode__optionDelete",n.length<3&&"PollNode__optionDeleteDisabled"),"arial-label":"Remove",onClick:()=>{s((o=>{o.deleteOption(e)}))}})]})}function g({question:_,options:m,nodeKey:g}){const[v]=e(),P=o.exports.useMemo((()=>function(e){return e.reduce(((e,o)=>e+o.votes.length),0)}(m)),[m]),[C,k,b]=t(g),[O,V]=o.exports.useState(null),y=o.exports.useRef(null),D=o.exports.useCallback((e=>{if(C&&n(l())){e.preventDefault();const o=s(g);a(o)&&o.remove(),k(!1)}return!1}),[C,g,k]);o.exports.useEffect((()=>i(v.registerUpdateListener((({editorState:e})=>{V(e.read((()=>l())))})),v.registerCommand(d,(e=>{const o=e;return o.target===y.current&&(o.shiftKey||b(),k(!C),!0)}),r),v.registerCommand(c,D,r),v.registerCommand(p,D,r))),[b,v,C,g,D,k]);const I=(e,o)=>{v.update((()=>{const o=s(g);a(o)&&e(o)}),{onUpdate:o})},S=n(O)&&C;return u("div",{className:"PollNode__container "+(S?"focused":""),ref:y,children:h("div",{className:"PollNode__inner",children:[u("h2",{className:"PollNode__heading",children:_}),m.map(((e,o)=>{const t=e.uid;return u(x,{withPollNode:I,option:e,index:o,options:m,totalVotes:P},t)})),u("div",{className:"PollNode__footer",children:u(N,{onClick:()=>{I((e=>{e.addOption(f())}))},small:!0,children:"Add Option"})})]})})}export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.PollNode__container{border:1px solid #eee;background-color:#fcfcfc;border-radius:10px;max-width:600px;min-width:400px;cursor:pointer;user-select:none}.PollNode__container.focused{outline:2px solid rgb(60,132,244)}.PollNode__inner{margin:15px;cursor:default}.PollNode__heading{margin:0 0 15px;color:#444;text-align:center;font-size:18px}.PollNode__optionContainer{display:flex;flex-direction:row;margin-bottom:10px;align-items:center}.PollNode__optionInputWrapper{display:flex;flex:10px;border:1px solid rgb(61,135,245);border-radius:5px;position:relative;overflow:hidden;cursor:pointer}.PollNode__optionInput{display:flex;flex:1px;border:0px;padding:7px;color:#3d87f5;background-color:transparent;font-weight:700;outline:0px;z-index:0}.PollNode__optionInput::placeholder{font-weight:400;color:#999}.PollNode__optionInputVotes{background-color:#ecf3fe;height:100%;position:absolute;top:0px;left:0px;transition:width 1s ease;z-index:0}.PollNode__optionInputVotesCount{color:#3d87f5;position:absolute;right:15px;font-size:12px;top:5px}.PollNode__optionCheckboxWrapper{position:relative;display:flex;width:22px;height:22px;border:1px solid #999;margin-right:10px;border-radius:5px}.PollNode__optionCheckboxChecked{border:1px solid rgb(61,135,245);background-color:#3d87f5}.PollNode__optionCheckboxChecked:after{content:"";cursor:pointer;border-color:#fff;border-style:solid;position:absolute;display:block;top:4px;width:5px;left:8px;height:9px;margin:0;transform:rotate(45deg);border-width:0 2px 2px 0}.PollNode__optionCheckbox{border:0px;position:absolute;display:block;width:100%;height:100%;opacity:0;cursor:pointer}.PollNode__optionDelete{position:relative;display:flex;width:28px;height:28px;margin-left:6px;border:0px;background-color:transparent;background-position:6px 6px;background-repeat:no-repeat;z-index:0;cursor:pointer;border-radius:5px;opacity:.3}.PollNode__optionDelete:before,.PollNode__optionDelete:after{position:absolute;display:block;content:"";background-color:#999;width:2px;height:15px;top:6px;left:13px}.PollNode__optionDelete:before{transform:rotate(-45deg)}.PollNode__optionDelete:after{transform:rotate(45deg)}.PollNode__optionDelete:hover{opacity:1;background-color:#eee}.PollNode__optionDeleteDisabled{cursor:not-allowed}.PollNode__optionDeleteDisabled:hover{opacity:.3;background-color:transparent}.PollNode__footer{display:flex;justify-content:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.StickyNode__contentEditable{min-height:20px;border:0;resize:none;cursor:text;font-size:24px;caret-color:#050505;display:block;position:relative;tab-size:1;outline:0;padding:10px;user-select:text;white-space:pre-wrap;word-wrap:break-word}.StickyNode__placeholder{font-size:24px;color:#999;overflow:hidden;position:absolute;text-overflow:ellipsis;top:30px;left:20px;width:120px;user-select:none;white-space:nowrap;display:inline-block;pointer-events:none}.StickyEditorTheme__paragraph{margin:0;position:"relative"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as e,r as t,X as n,u as o,o as r,t as s,a as l,j as i,x as a,y as c,z as u,Y as d,G as p,P as f,I as g,$ as m,Z as y}from"./main.df10c180.js";import{L as v}from"./LexicalNestedComposer.412b5854.js";const E=e?t.exports.useLayoutEffect:t.exports.useEffect;var h={...n,paragraph:"StickyEditorTheme__paragraph"};function x(e,t){const n=e.style,o=t.rootElementRect,r=null!==o?o.left:0,s=null!==o?o.top:0;n.top=s+t.y+"px",n.left=r+t.x+"px"}function b({x:e,y:n,nodeKey:b,color:R,caption:L}){const[C]=o(),k=t.exports.useRef(null),N=t.exports.useRef({isDragging:!1,offsetX:0,offsetY:0,rootElementRect:null,x:0,y:0}),{isCollabActive:D}=r();t.exports.useEffect((()=>{const t=N.current;t.x=e,t.y=n;const o=k.current;null!==o&&x(o,t)}),[e,n]),E((()=>{const e=N.current,t=new ResizeObserver((t=>{for(let n=0;n<t.length;n++){const o=t[n],{target:r}=o;e.rootElementRect=r.getBoundingClientRect();const s=k.current;null!==s&&x(s,e)}})),n=C.registerRootListener(((e,n)=>{null!==n&&t.unobserve(n),null!==e&&t.observe(e)})),o=()=>{const t=C.getRootElement(),n=k.current;null!==t&&null!==n&&(e.rootElementRect=t.getBoundingClientRect(),x(n,e))};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),n()}}),[C]),t.exports.useEffect((()=>{const e=k.current;null!==e&&setTimeout((()=>{e.style.setProperty("transition","top 0.3s ease 0s, left 0.3s ease 0s")}),500)}),[]);const X=e=>{const t=k.current,n=N.current,o=n.rootElementRect;null!==t&&n.isDragging&&null!==o&&(n.x=e.pageX-n.offsetX-o.left,n.y=e.pageY-n.offsetY-o.top,x(t,n))},w=e=>{const t=k.current,n=N.current;null!==t&&(n.isDragging=!1,t.classList.remove("dragging"),C.update((()=>{const e=m(b);y(e)&&e.setPosition(n.x,n.y)}))),document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",w)},{historyState:Y}=s();return l("div",{ref:k,className:"sticky-note-container",children:i("div",{className:`sticky-note ${R}`,onPointerDown:e=>{const t=k.current;if(null==t||2===e.button||e.target!==t.firstChild)return;const n=t,o=N.current;if(null!==n){const{top:t,left:r}=n.getBoundingClientRect();o.offsetX=e.clientX-r,o.offsetY=e.clientY-t,o.isDragging=!0,n.classList.add("dragging"),document.addEventListener("pointermove",X),document.addEventListener("pointerup",w),e.preventDefault()}},children:[l("button",{onClick:()=>{C.update((()=>{const e=m(b);y(e)&&e.remove()}))},className:"delete","aria-label":"Delete sticky note",title:"Delete",children:"X"}),l("button",{onClick:()=>{C.update((()=>{const e=m(b);y(e)&&e.toggleColor()}))},className:"color","aria-label":"Change sticky note color",title:"Color",children:l("i",{className:"bucket"})}),i(v,{initialEditor:L,initialTheme:h,children:[D?l(a,{id:L.getKey(),providerFactory:c,shouldBootstrap:!0}):l(u,{externalHistoryState:Y}),l(d,{contentEditable:l(p,{className:"StickyNode__contentEditable"}),placeholder:l(f,{className:"StickyNode__placeholder",children:"What's up?"}),ErrorBoundary:g})]})]})})}export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,r as t,_ as n,u as l,a0 as r,a1 as s,$ as o,a2 as a,a3 as i,a4 as c,a5 as u,m as d,i as p,c as m,d as f,k as h,a6 as g,a7 as x,a8 as C,n as y,l as v,a9 as b,s as N,aa as E,ab as S,ac as w,ad as k,ae as T,af as R,K as D,j as K,a as O,F as A,f as L,ag as M,ah as P,ai as I,aj as X,ak as $,al as z,am as B,an as j,ao as J,ap as Y,aq as _,ar as H}from"./main.df10c180.js";import{L as q}from"./LexicalNestedComposer.412b5854.js";const U=[];function F(e){return`<p class="${e.paragraph}"><br></p>`}function W(e,t){const n=e.querySelector(`[data-id=${t}]`);null!=n&&n.focus()}function G(e,t){const n=t.parseEditorState(e);let l=P.get(e);if(void 0===l){l=n.read((()=>I(t,null)));const s=n.read((()=>c().getTextContent()));P.set(e,l),r.set(e,s)}return l}function Q(e){const t=e.getRootElement();return null!==t?t.ownerDocument:document}function V(e){let t=e;for(;null!==t;){const e=t.getAttribute("data-id");if(null!=e)return e;t=t.parentElement}return null}function Z(e){let t=e;for(;null!==t;){if("TH"===t.nodeName||"TD"===t.nodeName)return t.getBoundingClientRect().width;t=t.parentElement}return 0}function ee(e,t,n,l,r,s){for(const o of t){const t=re(e,o,n);if(null!==t&&null!==l){const e=l.parseEditorState(t.json);l._headless=!0,l.setEditorState(e),l.update(s,{discrete:!0}),l._headless=!1;const a=JSON.stringify(l.getEditorState());r((e=>{const[t,l]=n.get(o);i("history-push"),e.updateCellJSON(t,l,a)}))}}}function te(e,t,n){const l=n.get(e),r=n.get(t);if(void 0===l||void 0===r)return null;const s=Math.min(l[0],r[0]),o=Math.max(l[0],r[0]),a=Math.min(l[1],r[1]);return{endX:o,endY:Math.max(l[1],r[1]),startX:s,startY:a}}function ne(e,t,n,l){const r=te(t,n,l);if(null===r)return[];const{startX:s,endY:o,endX:a,startY:i}=r,c=[];for(let u=s;u<=a;u++)for(let t=i;t<=o;t++)c.push(e[t].cells[u].id);return c}function le({cellEditor:e}){const{cellEditorConfig:l,cellEditorPlugins:r}=t.exports.useContext(n);return null===r||null===l?null:O(q,{initialEditor:e,initialTheme:l.theme,initialNodes:l.nodes,skipCollabChecks:!0,children:r})}function re(e,t,n){const l=n.get(t);if(void 0===l)return null;const[r,s]=l;return e[s].cells[r]}function se({cell:e,rows:n,cellCoordMap:l,menuElem:r,updateCellsByID:s,onClose:o,updateTableNode:a,setSortingOptions:d,sortingOptions:p}){const m=t.exports.useRef(null);t.exports.useEffect((()=>{const e=m.current;if(null!==e){const t=r.getBoundingClientRect();e.style.top=`${t.y}px`,e.style.left=`${t.x}px`}}),[r]),t.exports.useEffect((()=>{const e=e=>{const t=m.current;null===t||t.contains(e.target)||e.stopPropagation()};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)}),[o]);const f=l.get(e.id);if(void 0===f)return null;const[h,g]=f;return K("div",{className:"dropdown",ref:m,onPointerMove:e=>{e.stopPropagation()},onPointerDown:e=>{e.stopPropagation()},onPointerUp:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},children:[O("button",{className:"item",onClick:()=>{a((t=>{i("history-push"),t.updateCellType(h,g,"normal"===e.type?"header":"normal")})),o()},children:O("span",{className:"text",children:"normal"===e.type?"Make header":"Remove header"})}),O("button",{className:"item",onClick:()=>{s([e.id],(()=>{const e=c();e.clear(),e.append(u())})),o()},children:O("span",{className:"text",children:"Clear cell"})}),O("hr",{}),"header"===e.type&&0===g&&K(A,{children:[null!==p&&p.x===h&&O("button",{className:"item",onClick:()=>{d(null),o()},children:O("span",{className:"text",children:"Remove sorting"})}),(null===p||p.x!==h||"descending"===p.type)&&O("button",{className:"item",onClick:()=>{d({type:"ascending",x:h}),o()},children:O("span",{className:"text",children:"Sort ascending"})}),(null===p||p.x!==h||"ascending"===p.type)&&O("button",{className:"item",onClick:()=>{d({type:"descending",x:h}),o()},children:O("span",{className:"text",children:"Sort descending"})}),O("hr",{})]}),O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.insertRowAt(g)})),o()},children:O("span",{className:"text",children:"Insert row above"})}),O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.insertRowAt(g+1)})),o()},children:O("span",{className:"text",children:"Insert row below"})}),O("hr",{}),O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.insertColumnAt(h)})),o()},children:O("span",{className:"text",children:"Insert column left"})}),O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.insertColumnAt(h+1)})),o()},children:O("span",{className:"text",children:"Insert column right"})}),O("hr",{}),1!==n[0].cells.length&&O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.deleteColumnAt(h)})),o()},children:O("span",{className:"text",children:"Delete column"})}),1!==n.length&&O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.deleteRowAt(g)})),o()},children:O("span",{className:"text",children:"Delete row"})}),O("button",{className:"item",onClick:()=>{a((e=>{i("history-push"),e.selectNext(),e.remove()})),o()},children:O("span",{className:"text",children:"Delete table"})})]})}function oe({cell:e,cellCoordMap:n,cellEditor:l,isEditing:r,isSelected:s,isPrimarySelected:o,theme:a,updateCellsByID:i,updateTableNode:c,rows:u,setSortingOptions:d,sortingOptions:p}){const[m,f]=t.exports.useState(!1),h=t.exports.useRef(null),g="normal"!==e.type,x=e.json,C=g?"th":"td",y=e.width,v=h.current,b=n.get(e.id),N=null!==p&&void 0!==b&&b[0]===p.x&&0===b[1];return t.exports.useEffect((()=>{!r&&o||f(!1)}),[r,o]),K(C,{className:`${a.tableCell} ${g?a.tableCellHeader:""} ${s?a.tableCellSelected:""}`,"data-id":e.id,tabIndex:-1,style:{width:null!==y?y:void 0},children:[o&&O("div",{className:`${a.tableCellPrimarySelected} ${r?a.tableCellEditing:""}`}),o&&r?O(le,{cellEditor:l}):K(A,{children:[O("div",{dangerouslySetInnerHTML:{__html:""===x?F(a):G(x,l)}}),O("div",{className:a.tableCellResizer,"data-table-resize":"true"})]}),o&&!r&&O("div",{className:a.tableCellActionButtonContainer,ref:h,children:O("button",{className:a.tableCellActionButton,onClick:e=>{f(!m),e.stopPropagation()},children:O("i",{className:"chevron-down"})})}),m&&null!==v&&L.exports.createPortal(O(se,{cell:e,menuElem:v,updateCellsByID:i,onClose:()=>f(!1),updateTableNode:c,cellCoordMap:n,rows:u,setSortingOptions:d,sortingOptions:p}),document.body),N&&O("div",{className:a.tableCellSortedIndicator})]})}function ae({nodeKey:A,rows:L,theme:I}){const[q,F,G]=e(A),le=t.exports.useRef({point:0,size:0}),[se,ae]=t.exports.useState(null),ie=t.exports.useRef(null),ce=t.exports.useRef(null),ue=t.exports.useRef(null),{cellEditorConfig:de}=t.exports.useContext(n),[pe,me]=t.exports.useState(!1),[fe,he]=t.exports.useState(!1),[ge,xe]=t.exports.useState(!1),[Ce]=l(),ye=t.exports.useRef(!1),[ve,be]=t.exports.useState(null),Ne=t.exports.useRef(null),Ee=t.exports.useMemo((()=>{const e=new Map;for(let t=0;t<L.length;t++){const n=L[t].cells;for(let l=0;l<n.length;l++){const r=n[l];e.set(r.id,[l,t])}}return e}),[L]),Se=t.exports.useMemo((()=>{if(null===se)return L;const e=L.slice(1);return e.sort(((e,t)=>{const n=e.cells,l=t.cells,s=se.x,o=r.get(n[s].json)||"",a=r.get(l[s].json)||"";return""===o||""===a?1:"ascending"===se.type?o.localeCompare(a):a.localeCompare(o)})),e.unshift(L[0]),e}),[L,se]),[we,ke]=t.exports.useState(null),Te=t.exports.useMemo((()=>{if(null===de)return null;const e=s({namespace:de.namespace,nodes:de.nodes,onError:t=>de.onError(t,e),theme:de.theme});return e}),[de]),[Re,De]=t.exports.useState([]),Ke=t.exports.useMemo((()=>new Set(Re)),[Re]);t.exports.useEffect((()=>{const e=Ne.current;q&&document.activeElement===document.body&&null!==e&&e.focus()}),[q]);const Oe=t.exports.useCallback((e=>{Ce.update((()=>{const t=o(A);a(t)&&e(t)}))}),[Ce,A]),Ae=t.exports.useCallback(((e,t,n)=>{const l=Se[t].cells[e].id;if(ce.current=l,n){const e=ne(Se,we,l,Ee);De(e)}else ke(l),De(U),W(Ne.current,l)}),[Ee,we,Se]),Le=t.exports.useCallback((()=>{if(null!==Te&&null!==we){const e=JSON.stringify(Te.getEditorState());Oe((t=>{const n=Ee.get(we);if(void 0===n)return;i("history-push");const[l,r]=n;t.updateCellJSON(l,r,e)}))}}),[Ee,Te,we,Oe]),Me=t.exports.useCallback((()=>{setTimeout((()=>{var e;const t=Ce.getRootElement();null!==t&&(t.focus({preventScroll:!0}),null==(e=window.getSelection())||e.removeAllRanges())}),20)}),[Ce]);t.exports.useEffect((()=>{const e=Ne.current;if(null===e)return;const t=Q(Ce),n=t=>{const n=V(t.target);if(null!==n&&Ce.isEditable()&&e.contains(t.target)){if((e=>{const t=e.clientX-l.x,n=e.clientY-l.y;return t<5||n<5})(t))return F(!0),ke(null),void Me();if(F(!1),1===(r=t.target).nodeType&&r.hasAttribute("data-table-resize"))return be(n),e.style.userSelect="none",void(le.current={point:t.clientX,size:Z(t.target)});ye.current=!0,we!==n?(pe&&Le(),ke(n),me(!1),ce.current=n):ce.current=null,De(U)}else null===we||function(e){let t=e;for(;null!==t;){const e=t.nodeName;if("BUTTON"===e||"INPUT"===e||"TEXTAREA"===e)return!0;t=t.parentElement}return!1}(t.target)||(F(!1),ye.current=!1,pe&&Le(),ke(null),De(U),me(!1),ce.current=null);var r},l=e.getBoundingClientRect(),r=t=>{if(null!==ve){const e=ue.current;if(null!==e){const{size:n,point:r}=le.current,s=n+(t.clientX-r);let o=t.clientX-l.x;o<10?o=10:o>l.width-10?o=l.width-10:s<20&&(o=r-n+20-l.x),e.style.left=`${o}px`}return}if(!pe){const{clientX:e,clientY:n}=t,{width:r,x:s,y:o,height:a}=l,i=e>s+.9*r&&e<s+r+40&&!ye.current;he(i);const c=t.target===ie.current||n>o+.85*a&&n<o+a+5&&!ye.current;xe(c)}if(pe||!ye.current||null===we)return;const n=V(t.target);if(null!==n&&n!==ce.current){0===Re.length&&(e.style.userSelect="none");const t=ne(Se,we,n,Ee);1===t.length?De(U):De(t),ce.current=n}},s=t=>{var n;if(null!==ve){const{size:e,point:n}=le.current;let l=e+(t.clientX-n);l<10&&(l=10),Oe((e=>{const[t]=Ee.get(ve);i("history-push"),e.updateColumnWidth(t,l)})),be(null)}null!==e&&Re.length>1&&ye.current&&(e.style.userSelect="text",null==(n=window.getSelection())||n.removeAllRanges()),ye.current=!1};return t.addEventListener("pointerdown",n),t.addEventListener("pointermove",r),t.addEventListener("pointerup",s),()=>{t.removeEventListener("pointerdown",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerup",s)}}),[Te,Ce,pe,Se,Le,we,Ke,Re,Ee,ve,Oe,F,Me]),t.exports.useEffect((()=>{if(!pe&&null!==we){const e=Q(Ce),t=e=>{if(null!==e&&null!==Te){const t=e.json,n=Te.parseEditorState(t);Te.setEditorState(n)}},n=e=>{const n=V(e.target);if(n===we&&Ce.isEditable()){const e=re(Se,n,Ee);t(e),me(!0),De(U)}},l=e=>{const n=e.keyCode;if(16===n||27===n||9===n||37===n||38===n||39===n||40===n||8===n||46===n||!Ce.isEditable())return;if(13===n&&e.preventDefault(),!pe&&null!==we&&Ce.getEditorState().read((()=>null===m()))&&"true"!==e.target.contentEditable){if(function(e,t,n,l){return!t&&67===e&&(X?n:l)}(n,e.shiftKey,e.metaKey,e.ctrlKey))return void Ce.dispatchCommand(x,e);if(function(e,t,n,l){return!t&&88===e&&(X?n:l)}(n,e.shiftKey,e.metaKey,e.ctrlKey))return void Ce.dispatchCommand(C,e);if(function(e,t,n,l){return!t&&86===e&&(X?n:l)}(n,e.shiftKey,e.metaKey,e.ctrlKey))return void Ce.dispatchCommand(g,e)}if(e.metaKey||e.ctrlKey||e.altKey)return;const l=re(Se,we,Ee);t(l),me(!0),De(U)};return e.addEventListener("dblclick",n),e.addEventListener("keydown",l),()=>{e.removeEventListener("dblclick",n),e.removeEventListener("keydown",l)}}}),[Te,Ce,pe,Se,we,Ee]);const Pe=t.exports.useCallback(((e,t)=>{ee(Se,e,Ee,Te,Oe,t)}),[Ee,Te,Se,Oe]),Ie=t.exports.useCallback((()=>null===we||pe?(q&&Oe((e=>{i("history-push"),e.selectNext(),e.remove()})),!1):(Pe([we,...Re],(()=>{const e=c();e.clear(),e.append(u())})),!0)),[pe,q,we,Re,Pe,Oe]);if(t.exports.useEffect((()=>{const e=Ne.current;if(null===e)return;const t=(e,t,n,l)=>{const r=e instanceof KeyboardEvent?null:e.clipboardData;if(e.preventDefault(),null!=r)r.setData("text/html",t),r.setData("text/plain",l),r.setData("application/x-lexical-editor",n);else{const e=navigator.clipboard;if(null!=e){const n=[new ClipboardItem({"text/html":new Blob([t],{type:"text/html"})})];e.write(n)}}},n=async(e,t)=>{try{return e instanceof DataTransfer?e.getData(t):e instanceof ClipboardItem?await(await e.getType(t)).text():""}catch{return""}},l=e=>{const n=ce.current;if(null!==we&&null!==Te&&null!==n){const l=te(we,n,Ee);if(null===l)return;const r=Y(Se,l),s=r.outerHTML,a=r.outerText,i=Ce.getEditorState().read((()=>o(A).exportJSON()));i.rows=function(e,t){const{startX:n,endY:l,endX:r,startY:s}=t,o=[];for(let a=s;a<=l;a++){const t=e[a],l=_();for(let e=n;e<=r;e++){const n={...t.cells[e]};n.id=H(),l.cells.push(n)}o.push(l)}return o}(Se,l);const c={namespace:Te._config.namespace,nodes:[i]},u=JSON.stringify(c);t(e,s,u,a)}},r=(e,n)=>{const r=m();return null!==we&&!pe&&null===r&&n===Ce&&(0===Re.length?(e=>{if(null!==we&&null!==Te){const n=re(Se,we,Ee).json,l=P.get(n)||null;if(null===l)return;const r=Te.parseEditorState(n),s=r.read((()=>c().getTextContent())),o=r.read((()=>JSON.stringify(J(Te,null))));t(e,l,o,s)}})(e):l(e),!0)};return d(Ce.registerCommand(p,(e=>{const t=m();return!!f(t)}),h),Ce.registerCommand(g,((e,t)=>{const l=m();return null!==we&&!pe&&null===l&&t===Ce&&((async e=>{let t=(e instanceof InputEvent?null:e.clipboardData)||null;if(null!==we&&null!==Te){if(e.preventDefault(),null===t)try{t=(await navigator.clipboard.read())[0]}catch{}const l=null!==t?await n(t,"application/x-lexical-editor"):"";if(l)try{const e=JSON.parse(l);if(e.namespace===Ce._config.namespace&&Array.isArray(e.nodes))return void ee(Se,[we],Ee,Te,Oe,(()=>{const t=c();t.clear(),t.append(u()),t.selectEnd();const n=$(e.nodes),l=m();w(l)&&z(Te,n,l)}))}catch{}const r=null!==t?await n(t,"text/html"):"";if(r)try{const e=(new DOMParser).parseFromString(r,"text/html"),t=e.querySelector("table");if(null!=t){const e=B(t);return void Oe((t=>{const[n,l]=Ee.get(we);i("history-push"),t.mergeRows(n,l,e)}))}return void ee(Se,[we],Ee,Te,Oe,(()=>{const t=c();t.clear(),t.append(u()),t.selectEnd();const n=j(Ce,e),l=m();w(l)&&z(Te,n,l)}))}catch{}const s=null!==t?await n(t,"text/plain"):"";null!=s&&ee(Se,[we],Ee,Te,Oe,(()=>{const e=c();e.clear(),e.selectEnd();const t=m();null!==t&&t.insertRawText(s)}))}})(e),ye.current=!1,De(U),!0)}),h),Ce.registerCommand(x,r,h),Ce.registerCommand(C,((e,t)=>!!r(e,t)&&(Ie(),!0)),h),Ce.registerCommand(y,Ie,h),Ce.registerCommand(v,Ie,h),Ce.registerCommand(b,(e=>null!==we&&!pe&&(ee(Se,[we,...Re],Ee,Te,Oe,(()=>{(function(){const e=M();return e.focus.set("root",c().getChildrenSize(),"element"),e})().formatText(e)})),!0)),h),Ce.registerCommand(N,((t,n)=>{const l=m();if(null===we&&!pe&&f(l)&&l.has(A)&&1===l.getNodes().length&&n===Ce){const n=Se[0].cells[0].id;return ke(n),W(e,n),t.preventDefault(),t.stopPropagation(),G(),!0}return!1}),h),Ce.registerCommand(E,(e=>{const t=m();if(!pe&&null===t&&null!==we){const t=e.shiftKey,[n,l]=Ee.get(we);e.preventDefault();let r=null,s=null;if(0===n&&t?0!==l&&(s=l-1,r=Se[s].cells.length-1):n!==Se[l].cells.length-1||t?t?(r=n-1,s=l):(r=n+1,s=l):l!==Se.length-1&&(s=l+1,r=0),null!==r&&null!==s)return Ae(r,s,!1),!0}return!1}),h),Ce.registerCommand(S,((e,t)=>{const n=m();if(!pe&&null===n){const t=e.shiftKey,n=t&&ce.current||we;if(null!==n){const[e,l]=Ee.get(n);if(0!==l)return Ae(e,l-1,t),!0}}return!(!w(n)||t!==Te)&&(!(!n.isCollapsed()||null!==n.anchor.getNode().getTopLevelElementOrThrow().getPreviousSibling())&&(e.preventDefault(),!0))}),h),Ce.registerCommand(k,((e,t)=>{const n=m();if(!pe&&null===n){const t=e.shiftKey,n=t&&ce.current||we;if(null!==n){const[e,l]=Ee.get(n);if(l!==Se.length-1)return Ae(e,l+1,t),!0}}return!(!w(n)||t!==Te)&&(!(!n.isCollapsed()||null!==n.anchor.getNode().getTopLevelElementOrThrow().getNextSibling())&&(e.preventDefault(),!0))}),h),Ce.registerCommand(T,((e,t)=>{const n=m();if(!pe&&null===n){const t=e.shiftKey,n=t&&ce.current||we;if(null!==n){const[e,l]=Ee.get(n);if(0!==e)return Ae(e-1,l,t),!0}}return!(!w(n)||t!==Te)&&(!(!n.isCollapsed()||0!==n.anchor.offset)&&(e.preventDefault(),!0))}),h),Ce.registerCommand(R,((e,t)=>{const n=m();if(!pe&&null===n){const t=e.shiftKey,n=t&&ce.current||we;if(null!==n){const[e,l]=Ee.get(n);if(e!==Se[l].cells.length-1)return Ae(e+1,l,t),!0}}if(!w(n)||t!==Te)return!1;if(n.isCollapsed()){const t=n.anchor;if("text"===t.type&&t.offset===t.getNode().getTextContentSize()||"element"===t.type&&t.offset===t.getNode().getChildrenSize())return e.preventDefault(),!0}return!1}),h),Ce.registerCommand(D,((t,n)=>{const l=m();return pe||null!==l||n!==Ce?!!w(l)&&(!!pe&&(Le(),me(!1),null!==we&&setTimeout((()=>{W(e,we)}),20),!0)):(F(!0),ke(null),Me(),!0)}),h))}),[Ee,Te,Ie,G,Ce,pe,Ae,A,we,Se,Le,Me,Re,F,Oe]),null!==Te)return K("div",{style:{position:"relative"},children:[O("table",{className:`${I.table} ${q?I.tableSelected:""}`,ref:Ne,tabIndex:-1,children:O("tbody",{children:Se.map((e=>O("tr",{className:I.tableRow,children:e.cells.map((e=>{const{id:t}=e;return O(oe,{cell:e,theme:I,isSelected:Ke.has(t),isPrimarySelected:we===t,isEditing:pe,sortingOptions:se,cellEditor:Te,updateCellsByID:Pe,updateTableNode:Oe,cellCoordMap:Ee,rows:Se,setSortingOptions:ae},t)}))},e.id)))})}),fe&&O("button",{className:I.tableAddColumns,onClick:()=>{Oe((e=>{i("history-push"),e.addColumns(1)}))}}),ge&&O("button",{className:I.tableAddRows,onClick:()=>{Oe((e=>{i("history-push"),e.addRows(1)}))},ref:ie}),null!==ve&&O("div",{className:I.tableResizeRuler,ref:ue})]})}export{ae as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise"><path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-counterclockwise"><path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"/><path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" fill-opacity=".01" d="M0 0h48v48H0z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37 37a4 4 0 0 0 4-4c0-1.473-1.333-3.473-4-6-2.667 2.527-4 4.527-4 6a4 4 0 0 0 4 4Z" fill="#777"/><path d="m20.854 5.504 3.535 3.536" stroke="#777" stroke-width="4" stroke-linecap="round"/><path d="M23.682 8.333 8.125 23.889 19.44 35.203l15.556-15.557L23.682 8.333Z" stroke="#777" stroke-width="4" stroke-linejoin="round"/><path d="m12 20.073 16.961 5.577M4 43h40" stroke="#777" stroke-width="4" stroke-linecap="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-camera"><path d="M15 12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.172a3 3 0 0 0 2.12-.879l.83-.828A1 1 0 0 1 6.827 3h2.344a1 1 0 0 1 .707.293l.828.828A3 3 0 0 0 12.828 5H14a1 1 0 0 1 1 1v6zM2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2z"/><path d="M8 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-card-checklist"><path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"/><path d="M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill"><path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-left-text"><path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-square-quote"><path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M7.066 4.76A1.665 1.665 0 0 0 4 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112zm4 0A1.665 1.665 0 0 0 8 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard"><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--><path d="M0 256C0 114.6 114.6 0 256 0s256 114.6 256 256-114.6 256-256 256S0 397.4 0 256zm175-47.9 47.1 47L175 303c-9.3 9.4-9.3 24.6 0 33.1 9.4 10.2 24.6 10.2 33.1 0l47-46.2 47.9 46.2c9.4 10.2 24.6 10.2 33.1 0 10.2-8.5 10.2-23.7 0-33.1l-46.2-47.9 46.2-47c10.2-8.5 10.2-23.7 0-33.1-8.5-9.3-23.7-9.3-33.1 0l-47.9 47.1-47-47.1c-8.5-9.3-23.7-9.3-33.1 0-9.3 9.4-9.3 24.6 0 33.1z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-code"><path d="M5.854 4.854a.5.5 0 1 0-.708-.708l-3.5 3.5a.5.5 0 0 0 0 .708l3.5 3.5a.5.5 0 0 0 .708-.708L2.707 8l3.147-3.146zm4.292 0a.5.5 0 0 1 .708-.708l3.5 3.5a.5.5 0 0 1 0 .708l-3.5 3.5a.5.5 0 0 1-.708-.708L13.293 8l-3.147-3.146z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 5.885v1.166a3.95 3.95 0 0 1-3.949 3.95H6.917a.748.748 0 0 0-.45.15l-1.345 1.007a.752.752 0 0 0-.032 1.181A2.933 2.933 0 0 0 6.95 14h2.716l2.534 1.901a.506.506 0 0 0 .524.047A.501.501 0 0 0 13 15.5V14h.051a2.949 2.949 0 0 0 2.95-2.949v-3.05a3.002 3.002 0 0 0-2.002-2.83.756.756 0 0 0-.999.714" fill="#050505"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.05 1H2.95A2.952 2.952 0 0 0 0 3.949v3.102A2.952 2.952 0 0 0 2.949 10H3v1.5a.502.502 0 0 0 .8.4L6.334 10H9.05A2.952 2.952 0 0 0 12 7.05V3.95A2.952 2.952 0 0 0 9.05 1" fill="#050505"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M710 10H360c-38.6 0-70 31.4-70 70v630c0 38.6 31.4 70 70 70h490c38.6 0 70-31.4 70-70V220L710 10zm0 99 111 111H710V109zm140 601H360V80h280v210h210v420z"/><path d="M430 360h350v70H430v-70zm0 140h350v70H430v-70z"/><path d="M640 920H150V290h70v-70h-70c-38.6 0-70 31.4-70 70v630c0 38.6 31.4 70 70 70h490c38.6 0 70-31.4 70-70v-70h-70v70z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-diagram-2"><path fill-rule="evenodd" d="M6 3.5A1.5 1.5 0 0 1 7.5 2h1A1.5 1.5 0 0 1 10 3.5v1A1.5 1.5 0 0 1 8.5 6v1H11a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-1 0V8h-5v.5a.5.5 0 0 1-1 0v-1A.5.5 0 0 1 5 7h2.5V6A1.5 1.5 0 0 1 6 4.5v-1zM8.5 5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1zM3 11.5A1.5 1.5 0 0 1 4.5 10h1A1.5 1.5 0 0 1 7 11.5v1A1.5 1.5 0 0 1 5.5 14h-1A1.5 1.5 0 0 1 3 12.5v-1zm1.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zm4.5.5a1.5 1.5 0 0 1 1.5-1.5h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1A1.5 1.5 0 0 1 9 12.5v-1zm1.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download"><path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24" fill="currentColor"><path stroke="currentColor" d="M8.5 10a2 2 0 1 0 2 2 2 2 0 0 0-2-2Zm0 7a2 2 0 1 0 2 2 2 2 0 0 0-2-2Zm7-10a2 2 0 1 0-2-2 2 2 0 0 0 2 2Zm-7-4a2 2 0 1 0 2 2 2 2 0 0 0-2-2Zm7 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2Zm0-7a2 2 0 1 0 2 2 2 2 0 0 0-2-2Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.648 4.475 1.824 12.25H.67l3.252-8.531h.744l-.018.756Zm2.368 7.775-2.83-7.775-.018-.756h.744l3.264 8.531h-1.16Zm-.147-3.158v.926H2.076v-.926H6.87Zm6.024 2.074V7.902c0-.25-.051-.466-.153-.65a.997.997 0 0 0-.445-.434c-.2-.101-.445-.152-.738-.152-.274 0-.514.047-.721.14a1.255 1.255 0 0 0-.48.37.809.809 0 0 0-.17.492H9.101c0-.227.058-.451.175-.674.118-.223.286-.424.504-.603.223-.184.489-.329.797-.434.313-.11.66-.164 1.043-.164.461 0 .867.078 1.219.234.355.157.633.393.832.71.203.312.305.704.305 1.177v2.953c0 .211.017.436.052.674.04.238.096.443.17.615v.094h-1.13a2.022 2.022 0 0 1-.13-.498 4.011 4.011 0 0 1-.046-.586Zm.187-2.76.012.762h-1.096c-.309 0-.584.025-.826.076a1.89 1.89 0 0 0-.61.217.979.979 0 0 0-.504.879c0 .2.046.38.135.545a.98.98 0 0 0 .405.392c.183.094.408.141.674.141.332 0 .625-.07.878-.211a1.83 1.83 0 0 0 .604-.516c.152-.203.234-.4.246-.591l.463.521a1.572 1.572 0 0 1-.223.545 2.607 2.607 0 0 1-1.2 1.025 2.328 2.328 0 0 1-.927.176c-.43 0-.806-.084-1.13-.252a1.933 1.933 0 0 1-.75-.674 1.784 1.784 0 0 1-.264-.955c0-.34.066-.638.199-.896a1.73 1.73 0 0 1 .574-.65c.25-.176.551-.31.903-.399a4.76 4.76 0 0 1 1.177-.135h1.26Z" fill="#000"/></svg>
|