@dotvoid/textbit-plugins 0.0.0-stage → 0.1.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/LICENSE +7 -0
- package/README.md +181 -2
- package/dist/Audio/audioNode.cjs +1 -0
- package/dist/Audio/audioNode.d.ts +8 -0
- package/dist/Audio/audioNode.d.ts.map +1 -0
- package/dist/Audio/audioNode.js +15 -0
- package/dist/Audio/index.cjs +1 -0
- package/dist/Audio/index.d.ts +22 -0
- package/dist/Audio/index.d.ts.map +1 -0
- package/dist/Audio/index.js +63 -0
- package/dist/Blockquote/index.cjs +1 -0
- package/dist/Blockquote/index.d.ts +15 -0
- package/dist/Blockquote/index.d.ts.map +1 -0
- package/dist/Blockquote/index.js +56 -0
- package/dist/CodeBlock/index.cjs +1 -0
- package/dist/CodeBlock/index.d.ts +14 -0
- package/dist/CodeBlock/index.d.ts.map +1 -0
- package/dist/CodeBlock/index.js +65 -0
- package/dist/Image/imageNode.cjs +1 -0
- package/dist/Image/imageNode.d.ts +11 -0
- package/dist/Image/imageNode.d.ts.map +1 -0
- package/dist/Image/imageNode.js +16 -0
- package/dist/Image/index.cjs +1 -0
- package/dist/Image/index.d.ts +36 -0
- package/dist/Image/index.d.ts.map +1 -0
- package/dist/Image/index.js +92 -0
- package/dist/Leafs/index.cjs +1 -0
- package/dist/Leafs/index.d.ts +13 -0
- package/dist/Leafs/index.d.ts.map +1 -0
- package/dist/Leafs/index.js +66 -0
- package/dist/Link/index.cjs +1 -0
- package/dist/Link/index.d.ts +25 -0
- package/dist/Link/index.d.ts.map +1 -0
- package/dist/Link/index.js +148 -0
- package/dist/Link/isValidLink.cjs +1 -0
- package/dist/Link/isValidLink.d.ts +3 -0
- package/dist/Link/isValidLink.d.ts.map +1 -0
- package/dist/Link/isValidLink.js +35 -0
- package/dist/List/index.cjs +1 -0
- package/dist/List/index.d.ts +17 -0
- package/dist/List/index.d.ts.map +1 -0
- package/dist/List/index.js +151 -0
- package/dist/LocalizedQuotationMarks/consume.cjs +1 -0
- package/dist/LocalizedQuotationMarks/consume.d.ts +3 -0
- package/dist/LocalizedQuotationMarks/consume.d.ts.map +1 -0
- package/dist/LocalizedQuotationMarks/consume.js +115 -0
- package/dist/LocalizedQuotationMarks/consumes.cjs +1 -0
- package/dist/LocalizedQuotationMarks/consumes.d.ts +3 -0
- package/dist/LocalizedQuotationMarks/consumes.d.ts.map +1 -0
- package/dist/LocalizedQuotationMarks/consumes.js +7 -0
- package/dist/LocalizedQuotationMarks/index.cjs +1 -0
- package/dist/LocalizedQuotationMarks/index.d.ts +9 -0
- package/dist/LocalizedQuotationMarks/index.d.ts.map +1 -0
- package/dist/LocalizedQuotationMarks/index.js +13 -0
- package/dist/Table/index.cjs +1 -0
- package/dist/Table/index.d.ts +16 -0
- package/dist/Table/index.d.ts.map +1 -0
- package/dist/Table/index.js +179 -0
- package/dist/Text/index.cjs +1 -0
- package/dist/Text/index.d.ts +25 -0
- package/dist/Text/index.d.ts.map +1 -0
- package/dist/Text/index.js +64 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/shared/ChildPlaceholder.cjs +1 -0
- package/dist/shared/ChildPlaceholder.d.ts +12 -0
- package/dist/shared/ChildPlaceholder.d.ts.map +1 -0
- package/dist/shared/ChildPlaceholder.js +17 -0
- package/dist/shared/Field.cjs +1 -0
- package/dist/shared/Field.d.ts +14 -0
- package/dist/shared/Field.d.ts.map +1 -0
- package/dist/shared/Field.js +28 -0
- package/dist/shared/hotkey.cjs +1 -0
- package/dist/shared/hotkey.d.ts +3 -0
- package/dist/shared/hotkey.d.ts.map +1 -0
- package/dist/shared/hotkey.js +6 -0
- package/dist/shared/icons.cjs +1 -0
- package/dist/shared/icons.d.ts +62 -0
- package/dist/shared/icons.d.ts.map +1 -0
- package/dist/shared/icons.js +153 -0
- package/dist/shared/insertBlock.cjs +1 -0
- package/dist/shared/insertBlock.d.ts +5 -0
- package/dist/shared/insertBlock.d.ts.map +1 -0
- package/dist/shared/insertBlock.js +13 -0
- package/dist/shared/media.cjs +1 -0
- package/dist/shared/media.d.ts +25 -0
- package/dist/shared/media.d.ts.map +1 -0
- package/dist/shared/media.js +43 -0
- package/package.json +67 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=()=>e.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"})}),t=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"19",x2:"10",y1:"4",y2:"4"}),e.jsx("line",{x1:"14",x2:"5",y1:"20",y2:"20"}),e.jsx("line",{x1:"15",x2:"9",y1:"4",y2:"20"})]}),n=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M6 4v6a6 6 0 0 0 12 0V4"}),e.jsx("line",{x1:"4",x2:"20",y1:"20",y2:"20"})]}),r=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M16 4H9a3 3 0 0 0-2.83 4"}),e.jsx("path",{d:"M14 12a4 4 0 0 1 0 8H6"}),e.jsx("line",{x1:"4",x2:"20",y1:"12",y2:"12"})]}),s=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"16 18 22 12 16 6"}),e.jsx("polyline",{points:"8 6 2 12 8 18"})]}),i=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.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"}),e.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"})]}),h=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71"}),e.jsx("path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71"}),e.jsx("line",{x1:"8",x2:"8",y1:"2",y2:"5"}),e.jsx("line",{x1:"2",x2:"5",y1:"8",y2:"8"}),e.jsx("line",{x1:"16",x2:"16",y1:"19",y2:"22"}),e.jsx("line",{x1:"19",x2:"22",y1:"16",y2:"16"})]}),d=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"8",x2:"21",y1:"6",y2:"6"}),e.jsx("line",{x1:"8",x2:"21",y1:"12",y2:"12"}),e.jsx("line",{x1:"8",x2:"21",y1:"18",y2:"18"}),e.jsx("line",{x1:"3",x2:"3.01",y1:"6",y2:"6"}),e.jsx("line",{x1:"3",x2:"3.01",y1:"12",y2:"12"}),e.jsx("line",{x1:"3",x2:"3.01",y1:"18",y2:"18"})]}),x=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"10",x2:"21",y1:"6",y2:"6"}),e.jsx("line",{x1:"10",x2:"21",y1:"12",y2:"12"}),e.jsx("line",{x1:"10",x2:"21",y1:"18",y2:"18"}),e.jsx("path",{d:"M4 6h1v4"}),e.jsx("path",{d:"M4 10h2"}),e.jsx("path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"})]}),a=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M17 6H3"}),e.jsx("path",{d:"M21 12H8"}),e.jsx("path",{d:"M21 18H8"}),e.jsx("path",{d:"M3 12v6"})]}),l=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 3v18"}),e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"M3 9h18"}),e.jsx("path",{d:"M3 15h18"})]}),c=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m18 16 4-4-4-4"}),e.jsx("path",{d:"m6 8-4 4 4 4"}),e.jsx("path",{d:"m14.5 4-5 16"})]}),w=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),e.jsx("circle",{cx:"9",cy:"9",r:"2"}),e.jsx("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]}),j=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"5",width:"18",height:"3.5",rx:"0.75",fill:"currentColor",stroke:"none"}),e.jsx("line",{x1:"3",y1:"13",x2:"18",y2:"13"}),e.jsx("line",{x1:"3",y1:"18",x2:"15",y2:"18"})]}),g=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M13 4v16"}),e.jsx("path",{d:"M17 4v16"}),e.jsx("path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13"})]}),p=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 12h8"}),e.jsx("path",{d:"M4 18V6"}),e.jsx("path",{d:"M12 18V6"}),e.jsx("path",{d:"m17 12 3-2v8"})]}),u=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 12h8"}),e.jsx("path",{d:"M4 18V6"}),e.jsx("path",{d:"M12 18V6"}),e.jsx("path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1"})]}),k=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 12h8"}),e.jsx("path",{d:"M4 18V6"}),e.jsx("path",{d:"M12 18V6"}),e.jsx("path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2"}),e.jsx("path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2"})]}),v=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 12h8"}),e.jsx("path",{d:"M4 18V6"}),e.jsx("path",{d:"M12 18V6"}),e.jsx("path",{d:"M17 10v4h4"}),e.jsx("path",{d:"M21 10v8"})]}),m=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 18h20"}),e.jsx("rect",{width:"18",height:"6",x:"3",y:"12",rx:"1"}),e.jsx("path",{d:"M12 3v6"}),e.jsx("path",{d:"M9 6h6"})]}),L=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 6h20"}),e.jsx("rect",{width:"18",height:"6",x:"3",y:"6",rx:"1"}),e.jsx("path",{d:"M12 15v6"}),e.jsx("path",{d:"M9 18h6"})]}),M=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M22 12H2"}),e.jsx("path",{d:"M5 12V5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v7"}),e.jsx("path",{d:"M5 12v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-7"}),e.jsx("path",{d:"m9 10 6-6"}),e.jsx("path",{d:"m15 10-6-6"})]}),I=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 2h2a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2"}),e.jsx("path",{d:"M4 11h8"}),e.jsx("path",{d:"M4 7v10"}),e.jsx("rect",{width:"8",height:"18",x:"6",y:"3",rx:"1"})]}),y=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M6 2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2"}),e.jsx("path",{d:"M20 11h-8"}),e.jsx("path",{d:"M20 7v10"}),e.jsx("rect",{width:"8",height:"18",x:"10",y:"3",rx:"1"})]}),C=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2v20"}),e.jsx("path",{d:"M5 5V3a1 1 0 0 1 1-1h7"}),e.jsx("path",{d:"M5 19v2a1 1 0 0 0 1 1h7"}),e.jsx("path",{d:"M5 3v18a1 1 0 0 0 1 1"}),e.jsx("path",{d:"m17 9-6 6"}),e.jsx("path",{d:"m23 9-6 6"})]}),f=()=>e.jsxs("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),e.jsx("path",{d:"M8 12a2 2 0 0 0 2-2V8H8"}),e.jsx("path",{d:"M14 12a2 2 0 0 0 2-2V8h-2"})]});exports.AudioQuoteIcon=f;exports.BlockquoteIcon=a;exports.BoldIcon=o;exports.CodeBlockIcon=c;exports.CodeIcon=s;exports.ColLeftIcon=I;exports.ColRightIcon=y;exports.DeleteColIcon=C;exports.DeleteRowIcon=M;exports.Heading1Icon=p;exports.Heading2Icon=u;exports.Heading3Icon=k;exports.Heading4Icon=v;exports.ImageIcon=w;exports.ItalicIcon=t;exports.LinkIcon=i;exports.LinkOffIcon=h;exports.ListIcon=d;exports.OrderedListIcon=x;exports.ParagraphIcon=g;exports.PreambleIcon=j;exports.RowAboveIcon=m;exports.RowBelowIcon=L;exports.StrikethroughIcon=r;exports.TableIcon=l;exports.UnderlineIcon=n;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const BoldIcon: () => import("react").JSX.Element;
|
|
2
|
+
export declare const ItalicIcon: () => import("react").JSX.Element;
|
|
3
|
+
export declare const UnderlineIcon: () => import("react").JSX.Element;
|
|
4
|
+
export declare const StrikethroughIcon: () => import("react").JSX.Element;
|
|
5
|
+
export declare const CodeIcon: () => import("react").JSX.Element;
|
|
6
|
+
export declare const LinkIcon: () => import("react").JSX.Element;
|
|
7
|
+
export declare const LinkOffIcon: () => import("react").JSX.Element;
|
|
8
|
+
export declare const ListIcon: () => import("react").JSX.Element;
|
|
9
|
+
export declare const OrderedListIcon: () => import("react").JSX.Element;
|
|
10
|
+
export declare const BlockquoteIcon: () => import("react").JSX.Element;
|
|
11
|
+
export declare const TableIcon: () => import("react").JSX.Element;
|
|
12
|
+
export declare const CodeBlockIcon: () => import("react").JSX.Element;
|
|
13
|
+
export declare const ImageIcon: () => import("react").JSX.Element;
|
|
14
|
+
/** Lead-in / preamble paragraph. Reads visually as a chunky
|
|
15
|
+
* first-paragraph bar with two thinner lines below - the "bold
|
|
16
|
+
* intro then body" metaphor a writer expects from the label. */
|
|
17
|
+
export declare const PreambleIcon: () => import("react").JSX.Element;
|
|
18
|
+
export declare const TaglineIcon: () => import("react").JSX.Element;
|
|
19
|
+
export declare const ParagraphIcon: () => import("react").JSX.Element;
|
|
20
|
+
export declare const Heading1Icon: () => import("react").JSX.Element;
|
|
21
|
+
export declare const Heading2Icon: () => import("react").JSX.Element;
|
|
22
|
+
export declare const Heading3Icon: () => import("react").JSX.Element;
|
|
23
|
+
export declare const Heading4Icon: () => import("react").JSX.Element;
|
|
24
|
+
export declare const CropIcon: ({ className }?: {
|
|
25
|
+
className?: string;
|
|
26
|
+
}) => import("react").JSX.Element;
|
|
27
|
+
export declare const FocusIcon: ({ color, className, style }: {
|
|
28
|
+
color?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
}) => import("react").JSX.Element;
|
|
32
|
+
export declare const ZoomInIcon: ({ className }: {
|
|
33
|
+
className?: string;
|
|
34
|
+
}) => import("react").JSX.Element;
|
|
35
|
+
export declare const ZoomOutIcon: ({ className }: {
|
|
36
|
+
className?: string;
|
|
37
|
+
}) => import("react").JSX.Element;
|
|
38
|
+
export declare const ResetIcon: ({ className }: {
|
|
39
|
+
className?: string;
|
|
40
|
+
}) => import("react").JSX.Element;
|
|
41
|
+
export declare const CheckIcon: ({ className }: {
|
|
42
|
+
className?: string;
|
|
43
|
+
}) => import("react").JSX.Element;
|
|
44
|
+
export declare const GripHorizontalIcon: ({ className }: {
|
|
45
|
+
className?: string;
|
|
46
|
+
}) => import("react").JSX.Element;
|
|
47
|
+
export declare const GripVerticalIcon: ({ className }: {
|
|
48
|
+
className?: string;
|
|
49
|
+
}) => import("react").JSX.Element;
|
|
50
|
+
export declare const RowAboveIcon: () => import("react").JSX.Element;
|
|
51
|
+
export declare const RowBelowIcon: () => import("react").JSX.Element;
|
|
52
|
+
export declare const DeleteRowIcon: () => import("react").JSX.Element;
|
|
53
|
+
export declare const ColLeftIcon: () => import("react").JSX.Element;
|
|
54
|
+
export declare const ColRightIcon: () => import("react").JSX.Element;
|
|
55
|
+
export declare const DeleteColIcon: () => import("react").JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* Message-square-quote glyph for the "Insert quote from audio"
|
|
58
|
+
* action. Renders the same visual weight as ImageIcon so the two
|
|
59
|
+
* insert affordances sit side by side without one dominating.
|
|
60
|
+
*/
|
|
61
|
+
export declare const AudioQuoteIcon: () => import("react").JSX.Element;
|
|
62
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../lib/shared/icons.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,QAAQ,mCAIpB,CAAA;AAED,eAAO,MAAM,UAAU,mCAMtB,CAAA;AAED,eAAO,MAAM,aAAa,mCAKzB,CAAA;AAED,eAAO,MAAM,iBAAiB,mCAM7B,CAAA;AAED,eAAO,MAAM,QAAQ,mCAKpB,CAAA;AAED,eAAO,MAAM,QAAQ,mCAKpB,CAAA;AAED,eAAO,MAAM,WAAW,mCASvB,CAAA;AAED,eAAO,MAAM,QAAQ,mCASpB,CAAA;AAED,eAAO,MAAM,eAAe,mCAS3B,CAAA;AAED,eAAO,MAAM,cAAc,mCAO1B,CAAA;AAED,eAAO,MAAM,SAAS,mCAOrB,CAAA;AAED,eAAO,MAAM,aAAa,mCAMzB,CAAA;AAED,eAAO,MAAM,SAAS,mCAMrB,CAAA;AAED;;iEAEiE;AACjE,eAAO,MAAM,YAAY,mCAMxB,CAAA;AAQD,eAAO,MAAM,WAAW,mCAKvB,CAAA;AAED,eAAO,MAAM,aAAa,mCAMzB,CAAA;AAED,eAAO,MAAM,YAAY,mCAOxB,CAAA;AAED,eAAO,MAAM,YAAY,mCAOxB,CAAA;AAED,eAAO,MAAM,YAAY,mCAQxB,CAAA;AAED,eAAO,MAAM,YAAY,mCAQxB,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,gBAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,gCAKvE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,6BAAmD;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,gCAKA,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAKpE,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAKrE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAKnE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAInE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAK5E,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,eAAoB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAK1E,CAAA;AAED,eAAO,MAAM,YAAY,mCAOxB,CAAA;AAED,eAAO,MAAM,YAAY,mCAOxB,CAAA;AAED,eAAO,MAAM,aAAa,mCAQzB,CAAA;AAED,eAAO,MAAM,WAAW,mCAOvB,CAAA;AAED,eAAO,MAAM,YAAY,mCAOxB,CAAA;AAED,eAAO,MAAM,aAAa,mCASzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,mCAM1B,CAAA"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
const n = () => /* @__PURE__ */ e("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }) }), r = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3
|
+
/* @__PURE__ */ e("line", { x1: "19", x2: "10", y1: "4", y2: "4" }),
|
|
4
|
+
/* @__PURE__ */ e("line", { x1: "14", x2: "5", y1: "20", y2: "20" }),
|
|
5
|
+
/* @__PURE__ */ e("line", { x1: "15", x2: "9", y1: "4", y2: "20" })
|
|
6
|
+
] }), i = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
7
|
+
/* @__PURE__ */ e("path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }),
|
|
8
|
+
/* @__PURE__ */ e("line", { x1: "4", x2: "20", y1: "20", y2: "20" })
|
|
9
|
+
] }), h = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
10
|
+
/* @__PURE__ */ e("path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }),
|
|
11
|
+
/* @__PURE__ */ e("path", { d: "M14 12a4 4 0 0 1 0 8H6" }),
|
|
12
|
+
/* @__PURE__ */ e("line", { x1: "4", x2: "20", y1: "12", y2: "12" })
|
|
13
|
+
] }), d = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
14
|
+
/* @__PURE__ */ e("polyline", { points: "16 18 22 12 16 6" }),
|
|
15
|
+
/* @__PURE__ */ e("polyline", { points: "8 6 2 12 8 18" })
|
|
16
|
+
] }), s = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
17
|
+
/* @__PURE__ */ e("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }),
|
|
18
|
+
/* @__PURE__ */ e("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })
|
|
19
|
+
] }), a = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
20
|
+
/* @__PURE__ */ e("path", { d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }),
|
|
21
|
+
/* @__PURE__ */ e("path", { d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }),
|
|
22
|
+
/* @__PURE__ */ e("line", { x1: "8", x2: "8", y1: "2", y2: "5" }),
|
|
23
|
+
/* @__PURE__ */ e("line", { x1: "2", x2: "5", y1: "8", y2: "8" }),
|
|
24
|
+
/* @__PURE__ */ e("line", { x1: "16", x2: "16", y1: "19", y2: "22" }),
|
|
25
|
+
/* @__PURE__ */ e("line", { x1: "19", x2: "22", y1: "16", y2: "16" })
|
|
26
|
+
] }), l = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
27
|
+
/* @__PURE__ */ e("line", { x1: "8", x2: "21", y1: "6", y2: "6" }),
|
|
28
|
+
/* @__PURE__ */ e("line", { x1: "8", x2: "21", y1: "12", y2: "12" }),
|
|
29
|
+
/* @__PURE__ */ e("line", { x1: "8", x2: "21", y1: "18", y2: "18" }),
|
|
30
|
+
/* @__PURE__ */ e("line", { x1: "3", x2: "3.01", y1: "6", y2: "6" }),
|
|
31
|
+
/* @__PURE__ */ e("line", { x1: "3", x2: "3.01", y1: "12", y2: "12" }),
|
|
32
|
+
/* @__PURE__ */ e("line", { x1: "3", x2: "3.01", y1: "18", y2: "18" })
|
|
33
|
+
] }), w = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
34
|
+
/* @__PURE__ */ e("line", { x1: "10", x2: "21", y1: "6", y2: "6" }),
|
|
35
|
+
/* @__PURE__ */ e("line", { x1: "10", x2: "21", y1: "12", y2: "12" }),
|
|
36
|
+
/* @__PURE__ */ e("line", { x1: "10", x2: "21", y1: "18", y2: "18" }),
|
|
37
|
+
/* @__PURE__ */ e("path", { d: "M4 6h1v4" }),
|
|
38
|
+
/* @__PURE__ */ e("path", { d: "M4 10h2" }),
|
|
39
|
+
/* @__PURE__ */ e("path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1" })
|
|
40
|
+
] }), c = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
41
|
+
/* @__PURE__ */ e("path", { d: "M17 6H3" }),
|
|
42
|
+
/* @__PURE__ */ e("path", { d: "M21 12H8" }),
|
|
43
|
+
/* @__PURE__ */ e("path", { d: "M21 18H8" }),
|
|
44
|
+
/* @__PURE__ */ e("path", { d: "M3 12v6" })
|
|
45
|
+
] }), p = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
46
|
+
/* @__PURE__ */ e("path", { d: "M12 3v18" }),
|
|
47
|
+
/* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
48
|
+
/* @__PURE__ */ e("path", { d: "M3 9h18" }),
|
|
49
|
+
/* @__PURE__ */ e("path", { d: "M3 15h18" })
|
|
50
|
+
] }), g = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
51
|
+
/* @__PURE__ */ e("path", { d: "m18 16 4-4-4-4" }),
|
|
52
|
+
/* @__PURE__ */ e("path", { d: "m6 8-4 4 4 4" }),
|
|
53
|
+
/* @__PURE__ */ e("path", { d: "m14.5 4-5 16" })
|
|
54
|
+
] }), k = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
55
|
+
/* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2" }),
|
|
56
|
+
/* @__PURE__ */ e("circle", { cx: "9", cy: "9", r: "2" }),
|
|
57
|
+
/* @__PURE__ */ e("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
|
|
58
|
+
] }), x = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
59
|
+
/* @__PURE__ */ e("rect", { x: "3", y: "5", width: "18", height: "3.5", rx: "0.75", fill: "currentColor", stroke: "none" }),
|
|
60
|
+
/* @__PURE__ */ e("line", { x1: "3", y1: "13", x2: "18", y2: "13" }),
|
|
61
|
+
/* @__PURE__ */ e("line", { x1: "3", y1: "18", x2: "15", y2: "18" })
|
|
62
|
+
] }), u = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
63
|
+
/* @__PURE__ */ e("path", { d: "M13 4v16" }),
|
|
64
|
+
/* @__PURE__ */ e("path", { d: "M17 4v16" }),
|
|
65
|
+
/* @__PURE__ */ e("path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13" })
|
|
66
|
+
] }), v = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
67
|
+
/* @__PURE__ */ e("path", { d: "M4 12h8" }),
|
|
68
|
+
/* @__PURE__ */ e("path", { d: "M4 18V6" }),
|
|
69
|
+
/* @__PURE__ */ e("path", { d: "M12 18V6" }),
|
|
70
|
+
/* @__PURE__ */ e("path", { d: "m17 12 3-2v8" })
|
|
71
|
+
] }), m = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
72
|
+
/* @__PURE__ */ e("path", { d: "M4 12h8" }),
|
|
73
|
+
/* @__PURE__ */ e("path", { d: "M4 18V6" }),
|
|
74
|
+
/* @__PURE__ */ e("path", { d: "M12 18V6" }),
|
|
75
|
+
/* @__PURE__ */ e("path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" })
|
|
76
|
+
] }), L = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
77
|
+
/* @__PURE__ */ e("path", { d: "M4 12h8" }),
|
|
78
|
+
/* @__PURE__ */ e("path", { d: "M4 18V6" }),
|
|
79
|
+
/* @__PURE__ */ e("path", { d: "M12 18V6" }),
|
|
80
|
+
/* @__PURE__ */ e("path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }),
|
|
81
|
+
/* @__PURE__ */ e("path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" })
|
|
82
|
+
] }), M = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
83
|
+
/* @__PURE__ */ e("path", { d: "M4 12h8" }),
|
|
84
|
+
/* @__PURE__ */ e("path", { d: "M4 18V6" }),
|
|
85
|
+
/* @__PURE__ */ e("path", { d: "M12 18V6" }),
|
|
86
|
+
/* @__PURE__ */ e("path", { d: "M17 10v4h4" }),
|
|
87
|
+
/* @__PURE__ */ e("path", { d: "M21 10v8" })
|
|
88
|
+
] }), y = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
89
|
+
/* @__PURE__ */ e("path", { d: "M2 18h20" }),
|
|
90
|
+
/* @__PURE__ */ e("rect", { width: "18", height: "6", x: "3", y: "12", rx: "1" }),
|
|
91
|
+
/* @__PURE__ */ e("path", { d: "M12 3v6" }),
|
|
92
|
+
/* @__PURE__ */ e("path", { d: "M9 6h6" })
|
|
93
|
+
] }), C = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
94
|
+
/* @__PURE__ */ e("path", { d: "M2 6h20" }),
|
|
95
|
+
/* @__PURE__ */ e("rect", { width: "18", height: "6", x: "3", y: "6", rx: "1" }),
|
|
96
|
+
/* @__PURE__ */ e("path", { d: "M12 15v6" }),
|
|
97
|
+
/* @__PURE__ */ e("path", { d: "M9 18h6" })
|
|
98
|
+
] }), f = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
99
|
+
/* @__PURE__ */ e("path", { d: "M22 12H2" }),
|
|
100
|
+
/* @__PURE__ */ e("path", { d: "M5 12V5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v7" }),
|
|
101
|
+
/* @__PURE__ */ e("path", { d: "M5 12v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-7" }),
|
|
102
|
+
/* @__PURE__ */ e("path", { d: "m9 10 6-6" }),
|
|
103
|
+
/* @__PURE__ */ e("path", { d: "m15 10-6-6" })
|
|
104
|
+
] }), B = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
105
|
+
/* @__PURE__ */ e("path", { d: "M18 2h2a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2" }),
|
|
106
|
+
/* @__PURE__ */ e("path", { d: "M4 11h8" }),
|
|
107
|
+
/* @__PURE__ */ e("path", { d: "M4 7v10" }),
|
|
108
|
+
/* @__PURE__ */ e("rect", { width: "8", height: "18", x: "6", y: "3", rx: "1" })
|
|
109
|
+
] }), j = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
110
|
+
/* @__PURE__ */ e("path", { d: "M6 2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2" }),
|
|
111
|
+
/* @__PURE__ */ e("path", { d: "M20 11h-8" }),
|
|
112
|
+
/* @__PURE__ */ e("path", { d: "M20 7v10" }),
|
|
113
|
+
/* @__PURE__ */ e("rect", { width: "8", height: "18", x: "10", y: "3", rx: "1" })
|
|
114
|
+
] }), I = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
115
|
+
/* @__PURE__ */ e("path", { d: "M12 2v20" }),
|
|
116
|
+
/* @__PURE__ */ e("path", { d: "M5 5V3a1 1 0 0 1 1-1h7" }),
|
|
117
|
+
/* @__PURE__ */ e("path", { d: "M5 19v2a1 1 0 0 0 1 1h7" }),
|
|
118
|
+
/* @__PURE__ */ e("path", { d: "M5 3v18a1 1 0 0 0 1 1" }),
|
|
119
|
+
/* @__PURE__ */ e("path", { d: "m17 9-6 6" }),
|
|
120
|
+
/* @__PURE__ */ e("path", { d: "m23 9-6 6" })
|
|
121
|
+
] }), W = () => /* @__PURE__ */ t("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
122
|
+
/* @__PURE__ */ e("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }),
|
|
123
|
+
/* @__PURE__ */ e("path", { d: "M8 12a2 2 0 0 0 2-2V8H8" }),
|
|
124
|
+
/* @__PURE__ */ e("path", { d: "M14 12a2 2 0 0 0 2-2V8h-2" })
|
|
125
|
+
] });
|
|
126
|
+
export {
|
|
127
|
+
W as AudioQuoteIcon,
|
|
128
|
+
c as BlockquoteIcon,
|
|
129
|
+
n as BoldIcon,
|
|
130
|
+
g as CodeBlockIcon,
|
|
131
|
+
d as CodeIcon,
|
|
132
|
+
B as ColLeftIcon,
|
|
133
|
+
j as ColRightIcon,
|
|
134
|
+
I as DeleteColIcon,
|
|
135
|
+
f as DeleteRowIcon,
|
|
136
|
+
v as Heading1Icon,
|
|
137
|
+
m as Heading2Icon,
|
|
138
|
+
L as Heading3Icon,
|
|
139
|
+
M as Heading4Icon,
|
|
140
|
+
k as ImageIcon,
|
|
141
|
+
r as ItalicIcon,
|
|
142
|
+
s as LinkIcon,
|
|
143
|
+
a as LinkOffIcon,
|
|
144
|
+
l as ListIcon,
|
|
145
|
+
w as OrderedListIcon,
|
|
146
|
+
u as ParagraphIcon,
|
|
147
|
+
x as PreambleIcon,
|
|
148
|
+
y as RowAboveIcon,
|
|
149
|
+
C as RowBelowIcon,
|
|
150
|
+
h as StrikethroughIcon,
|
|
151
|
+
p as TableIcon,
|
|
152
|
+
i as UnderlineIcon
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@dotvoid/textbit"),e=require("slate");function i(t,o){const r=s.TextbitEditor.position(t),n=[r<0?t.children.length:r+1];e.Transforms.insertNodes(t,o,{at:n}),e.Transforms.select(t,e.Editor.start(t,n))}function c(t){return{id:crypto.randomUUID(),class:"text",type:t,children:[{text:""}]}}exports.insertBlockAfterCaret=i;exports.textNode=c;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Editor, Element } from 'slate';
|
|
2
|
+
/** Insert a block after the top-level block holding the caret, and move into it */
|
|
3
|
+
export declare function insertBlockAfterCaret(editor: Editor, block: Element): void;
|
|
4
|
+
export declare function textNode(type: string): Element;
|
|
5
|
+
//# sourceMappingURL=insertBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertBlock.d.ts","sourceRoot":"","sources":["../../lib/shared/insertBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAc,KAAK,OAAO,EAAE,MAAM,OAAO,CAAA;AAExD,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAK1E;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextbitEditor as s } from "@dotvoid/textbit";
|
|
2
|
+
import { Transforms as r, Editor as i } from "slate";
|
|
3
|
+
function f(t, e) {
|
|
4
|
+
const o = s.position(t), n = [o < 0 ? t.children.length : o + 1];
|
|
5
|
+
r.insertNodes(t, e, { at: n }), r.select(t, i.start(t, n));
|
|
6
|
+
}
|
|
7
|
+
function l(t) {
|
|
8
|
+
return { id: crypto.randomUUID(), class: "text", type: t, children: [{ text: "" }] };
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
f as insertBlockAfterCaret,
|
|
12
|
+
l as textNode
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){const{upload:i}=e;if(i)return{consumes:({input:a})=>{if(!(a.data instanceof File))return[!1];const t=a.data.type.split(";")[0].trim().toLowerCase(),r=e.maxSize===void 0||a.data.size<=e.maxSize;return[e.accept(t)&&r,e.type,!1]},consume:async({input:a})=>{const t=Array.isArray(a)?a[0]:a;if(!(t?.data instanceof File))return;const r=await i(t.data);if(r!==void 0)return{source:t.source,type:e.type,data:e.build(r,t.data)}}}}function o(e,i){const a=e.api?.consumeFileInputChangeEvent;if(typeof a!="function")return;const t=document.createElement("input");t.type="file",t.accept=i,t.multiple=!0,t.addEventListener("change",r=>{a(e.editor,r)}),t.click()}function c(e){if(!(typeof e!="string"||e.trim()===""))try{const i=new URL(e,"https://localhost");return["http:","https:","blob:"].includes(i.protocol)||i.protocol==="data:"&&/^data:(image|audio)\//i.test(e)?e:void 0}catch{return}}exports.pickFiles=o;exports.safeMediaSrc=c;exports.uploadConsumer=n;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TBActionHandlerArgs, TBConsumeFunction, TBConsumesFunction } from '@dotvoid/textbit';
|
|
2
|
+
import { Element } from 'slate';
|
|
3
|
+
/**
|
|
4
|
+
* Consume dropped or picked files by handing each to the host's upload function
|
|
5
|
+
* and inserting the block it returns. Without an upload function nothing is
|
|
6
|
+
* claimed: textbit never stores a file in the document itself.
|
|
7
|
+
*/
|
|
8
|
+
export declare function uploadConsumer<T>(options: {
|
|
9
|
+
type: string;
|
|
10
|
+
accept: (mime: string) => boolean;
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
upload?: (file: File) => Promise<T | undefined>;
|
|
13
|
+
build: (uploaded: T, file: File) => Element;
|
|
14
|
+
}): {
|
|
15
|
+
consumes: TBConsumesFunction;
|
|
16
|
+
consume: TBConsumeFunction;
|
|
17
|
+
} | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Open the browser's file picker and feed the chosen files to the consumers.
|
|
20
|
+
* Works from menu items, which hand actions the file input API.
|
|
21
|
+
*/
|
|
22
|
+
export declare function pickFiles(args: TBActionHandlerArgs, accept: string): void;
|
|
23
|
+
/** Media addresses a document may point at; anything else is not rendered */
|
|
24
|
+
export declare function safeMediaSrc(src: unknown): string | undefined;
|
|
25
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../lib/shared/media.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAClG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAEpC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAA;IAC/C,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;CAC5C,GAAG;IAAE,QAAQ,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,GAAG,SAAS,CA4B3E;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAczE;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAa7D"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
const { upload: i } = e;
|
|
3
|
+
if (i)
|
|
4
|
+
return {
|
|
5
|
+
consumes: ({ input: a }) => {
|
|
6
|
+
if (!(a.data instanceof File))
|
|
7
|
+
return [!1];
|
|
8
|
+
const t = a.data.type.split(";")[0].trim().toLowerCase(), n = e.maxSize === void 0 || a.data.size <= e.maxSize;
|
|
9
|
+
return [e.accept(t) && n, e.type, !1];
|
|
10
|
+
},
|
|
11
|
+
consume: async ({ input: a }) => {
|
|
12
|
+
const t = Array.isArray(a) ? a[0] : a;
|
|
13
|
+
if (!(t?.data instanceof File))
|
|
14
|
+
return;
|
|
15
|
+
const n = await i(t.data);
|
|
16
|
+
if (n !== void 0)
|
|
17
|
+
return { source: t.source, type: e.type, data: e.build(n, t.data) };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function o(e, i) {
|
|
22
|
+
const a = e.api?.consumeFileInputChangeEvent;
|
|
23
|
+
if (typeof a != "function")
|
|
24
|
+
return;
|
|
25
|
+
const t = document.createElement("input");
|
|
26
|
+
t.type = "file", t.accept = i, t.multiple = !0, t.addEventListener("change", (n) => {
|
|
27
|
+
a(e.editor, n);
|
|
28
|
+
}), t.click();
|
|
29
|
+
}
|
|
30
|
+
function c(e) {
|
|
31
|
+
if (!(typeof e != "string" || e.trim() === ""))
|
|
32
|
+
try {
|
|
33
|
+
const i = new URL(e, "https://localhost");
|
|
34
|
+
return ["http:", "https:", "blob:"].includes(i.protocol) || i.protocol === "data:" && /^data:(image|audio)\//i.test(e) ? e : void 0;
|
|
35
|
+
} catch {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
o as pickFiles,
|
|
41
|
+
c as safeMediaSrc,
|
|
42
|
+
r as uploadConsumer
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotvoid/textbit-plugins",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Ready to use plugins for @dotvoid/textbit: headings, formatting, lists, links, tables, code, images, audio and quotes.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Danne Lundqvist"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/dotvoid/textbit.git",
|
|
27
|
+
"directory": "packages/plugins"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/dotvoid/textbit/tree/main/packages/plugins#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/dotvoid/textbit/issues"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "npm run typecheck && vite build && node scripts/check-treeshake.mjs",
|
|
35
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
36
|
+
"lint": "eslint . --cache --max-warnings 0",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"preversion": "vitest run && npm run build",
|
|
39
|
+
"postversion": "node ../../scripts/commit-version.mjs textbit-plugins@ && git push && git push --tags"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@dotvoid/textbit": "^2.0.0",
|
|
43
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
45
|
+
"slate": "^0.147.4",
|
|
46
|
+
"slate-react": "^0.147.5"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@eslint/js": "^9.29.0",
|
|
50
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
51
|
+
"@testing-library/react": "^16.3.0",
|
|
52
|
+
"@types/react": "^19.2.0",
|
|
53
|
+
"@types/react-dom": "^19.2.0",
|
|
54
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
55
|
+
"esbuild": "*",
|
|
56
|
+
"eslint": "^9.29.0",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
59
|
+
"globals": "^16.2.0",
|
|
60
|
+
"jsdom": "^27.1.0",
|
|
61
|
+
"react": "^19.2.0",
|
|
62
|
+
"react-dom": "^19.2.0",
|
|
63
|
+
"typescript": "~5.8.3",
|
|
64
|
+
"typescript-eslint": "^8.59.2",
|
|
65
|
+
"vite": "^7.2.2",
|
|
66
|
+
"vite-plugin-dts": "^5.0.0",
|
|
67
|
+
"vitest": "^4.0.8"
|
|
68
|
+
}
|
|
69
|
+
}
|