@pickaxeproject/react 2.5.0 → 2.6.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/dist/cjs/components/Pickaxe/Chat/History/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/Input.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Provider.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeHead.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeMarkdown/Components/A/index.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeMarkdown/Components/P/index.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeMarkdown/Renderer.js +1 -1
- package/dist/cjs/components/Pickaxe/index.js +1 -1
- package/dist/cjs/hooks/pickaxe/usePickaxe.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/prose.css +1 -1
- package/dist/cjs/src/components/EmbedPreview/ChatInput.d.ts +9 -0
- package/dist/cjs/src/components/EmbedPreview/FAB.d.ts +10 -0
- package/dist/cjs/src/components/EmbedPreview/Inline.d.ts +5 -0
- package/dist/cjs/src/components/EmbedPreview/Popup.d.ts +10 -0
- package/dist/cjs/src/components/Pickaxe/Chat/Input.d.ts +3 -3
- package/dist/cjs/src/components/Pickaxe/Provider.d.ts +31 -5
- package/dist/cjs/src/components/Pickaxe/common/PickaxeHead.d.ts +2 -2
- package/dist/cjs/src/components/Pickaxe/common/PickaxeMarkdown/Renderer.d.ts +2 -1
- package/dist/cjs/src/hooks/pickaxe/usePickaxe.d.ts +1 -0
- package/dist/cjs/src/hooks/pickaxe/usePickaxeContext.d.ts +6 -2
- package/dist/esm/components/Pickaxe/Chat/History/index.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/Input.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/index.js +1 -1
- package/dist/esm/components/Pickaxe/Provider.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeHead.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeMarkdown/Components/A/index.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeMarkdown/Components/P/index.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeMarkdown/Renderer.js +1 -1
- package/dist/esm/components/Pickaxe/index.js +1 -1
- package/dist/esm/hooks/pickaxe/usePickaxe.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/prose.css +1 -1
- package/dist/esm/src/components/EmbedPreview/ChatInput.d.ts +9 -0
- package/dist/esm/src/components/EmbedPreview/FAB.d.ts +10 -0
- package/dist/esm/src/components/EmbedPreview/Inline.d.ts +5 -0
- package/dist/esm/src/components/EmbedPreview/Popup.d.ts +10 -0
- package/dist/esm/src/components/Pickaxe/Chat/Input.d.ts +3 -3
- package/dist/esm/src/components/Pickaxe/Provider.d.ts +31 -5
- package/dist/esm/src/components/Pickaxe/common/PickaxeHead.d.ts +2 -2
- package/dist/esm/src/components/Pickaxe/common/PickaxeMarkdown/Renderer.d.ts +2 -1
- package/dist/esm/src/hooks/pickaxe/usePickaxe.d.ts +1 -0
- package/dist/esm/src/hooks/pickaxe/usePickaxeContext.d.ts +6 -2
- package/package.json +1 -1
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledAttachmentGrid.d.ts +0 -7
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledIconButton.d.ts +0 -10
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledImagePreview.d.ts +0 -12
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledInputContainer.d.ts +0 -13
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledInputWrapper.d.ts +0 -13
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledRemoveButton.d.ts +0 -13
- package/dist/cjs/src/components/Pickaxe/ui/Input/StyledTextareaWrapper.d.ts +0 -8
- package/dist/cjs/src/components/Pickaxe/ui/Message/StyledIconWrapper.d.ts +0 -11
- package/dist/cjs/src/components/Pickaxe/ui/Message/StyledMessage.d.ts +0 -10
- package/dist/cjs/src/components/Pickaxe/ui/Message/StyledMessageBubble.d.ts +0 -14
- package/dist/cjs/src/components/Pickaxe/ui/Message/StyledMessageContainer.d.ts +0 -10
- package/dist/cjs/src/components/Pickaxe/ui/StyledCopyButton.d.ts +0 -12
- package/dist/cjs/src/components/Pickaxe/ui/StyledDocumentCard.d.ts +0 -25
- package/dist/cjs/src/components/Pickaxe/ui/StyledIceBreaker.d.ts +0 -20
- package/dist/cjs/src/components/Pickaxe/ui/StyledLoadingDots.d.ts +0 -9
- package/dist/cjs/src/components/Pickaxe/ui/index.d.ts +0 -20
- package/dist/cjs/src/components/Pickaxe/ui/types.d.ts +0 -5
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledAttachmentGrid.d.ts +0 -7
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledIconButton.d.ts +0 -10
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledImagePreview.d.ts +0 -12
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledInputContainer.d.ts +0 -13
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledInputWrapper.d.ts +0 -13
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledRemoveButton.d.ts +0 -13
- package/dist/esm/src/components/Pickaxe/ui/Input/StyledTextareaWrapper.d.ts +0 -8
- package/dist/esm/src/components/Pickaxe/ui/Message/StyledIconWrapper.d.ts +0 -11
- package/dist/esm/src/components/Pickaxe/ui/Message/StyledMessage.d.ts +0 -10
- package/dist/esm/src/components/Pickaxe/ui/Message/StyledMessageBubble.d.ts +0 -14
- package/dist/esm/src/components/Pickaxe/ui/Message/StyledMessageContainer.d.ts +0 -10
- package/dist/esm/src/components/Pickaxe/ui/StyledCopyButton.d.ts +0 -12
- package/dist/esm/src/components/Pickaxe/ui/StyledDocumentCard.d.ts +0 -25
- package/dist/esm/src/components/Pickaxe/ui/StyledIceBreaker.d.ts +0 -20
- package/dist/esm/src/components/Pickaxe/ui/StyledLoadingDots.d.ts +0 -9
- package/dist/esm/src/components/Pickaxe/ui/index.d.ts +0 -20
- package/dist/esm/src/components/Pickaxe/ui/types.d.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as s,useMemo as t}from"react";import{usePickaxeContext as o}from"../../../hooks/pickaxe/usePickaxeContext.js";import{useStyleFontSize as
|
|
1
|
+
import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as s,useMemo as t}from"react";import{usePickaxeContext as o}from"../../../hooks/pickaxe/usePickaxeContext.js";import{useStyleFontSize as r}from"../../../hooks/studio/useStyleFontSize.js";import{PickaxeMarkdownRenderer as l}from"./PickaxeMarkdown/Renderer.js";import c from"./PickaxeIcon.js";import n from"./PickaxeInfoModal.js";import{PickaxeMarkdown as a}from"./PickaxeMarkdown/index.js";import m from"../../../common/cn.js";const d=({className:d,iconClassName:p,maxDescriptionChars:f,onIconClick:x})=>{const{pickaxe:h,styles:u,colors:k,misc:j,disableHtml:b,disableJs:C,disableCss:g,isRtl:v}=o(),[P,O]=s(!1),N=r(),I=t((()=>({title:(null==h?void 0:h.formtitle)||"",description:(null==h?void 0:h.formdescription)||""})),[h]);return e("div",Object.assign({className:m("flex flex-col items-center",d)},{children:[P&&i(n,{isOpen:P,onChangeIsOpen:O}),j.isProfileImage&&i(c,Object.assign({src:null==h?void 0:h.coverphoto,alt:`${null==h?void 0:h.formtitle}'s Profile Picture`,width:72,height:72,className:m("h-[72px] w-[72px] rounded-full",p,!!x&&"cursor-pointer")},x&&{onClick:x})),j.isTitle&&!!I.title&&i("h2",Object.assign({className:m(N.h2,"mt-6 text-center font-semilight opacity-90",!f&&"line-clamp-2")},{children:null==h?void 0:h.formtitle})),j.isDescription&&!!I.description&&i(a,Object.assign({theme:u.theme,accentColor:k.accent},v&&{rtl:!0},b&&{disableHtml:!0},C&&{disableJs:!0},g&&{disableCss:!0},{children:i(l,Object.assign({className:"mt-2 text-center",value:I.description},f&&{maxDescriptionChars:f},{onExpandClick:()=>O(!0)}))}))]}))};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useMemo as t}from"react";import{usePickaxeMarkdownContext as r}from"../../hooks/usePickaxeMarkdownContext.js";import{Img as o}from"../Img/index.js";import i from"../common/Action.js";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as t}from"react";import{usePickaxeMarkdownContext as r}from"../../hooks/usePickaxeMarkdownContext.js";import{Img as o}from"../Img/index.js";import i from"../common/Action.js";import s from"./Audio.js";import a from"./Html/index.js";const m=({href:m="",children:c})=>{const{accentColor:n,actions:l}=r(),p=t((()=>{if(!m)return"";return m.startsWith("http://")?`https://${m.slice(7)}`:m.startsWith("www.")?`https://${m}`:m}),[m]),d=t((()=>{const e=p.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]+)/i);if(e)return{title:"youtube-embed",src:`https://www.youtube.com/embed/${e[1]}`};const t=p.match(/loom\.com\/(?:share|embed)\/([\w-]+)/i);if(t)return{title:"loom-embed",src:`https://www.loom.com/embed/${t[1]}`};const r=p.match(/vimeo\.com\/(?:video\/)?(\d+)/i);if(r)return{title:"vimeo-embed",src:`https://player.vimeo.com/video/${r[1]}`};const o=p.match(/streamable\.com\/([\w-]+)/i);return o?{title:"streamable-embed",src:`https://streamable.com/e/${o[1]}`}:null}),[p]),u=t((()=>p.match(/\.(jpeg|jpg|gif|bmp|webp|svg|tiff|avif|png|jfif|pjpeg|pjp)$/)),[p]),f=t((()=>p.includes("action_generated_files")&&p.match(/\.(mp3|wav|ogg|flac|aac|wma|alac|m4a|aiff|ape|au|mid|midi|opus)$/)),[p]),h=t((()=>p.includes("action_generated_files")&&p.match(/\.html$/)),[p]),b=t((()=>l&&p.includes("pickaxe")&&(p.includes("/api/fn/result")||p.includes("/api/function_call_results"))),[l,p]);return d?e("div",Object.assign({className:"pxe-markdown-video"},{children:e("iframe",Object.assign({title:d.title,src:d.src,allowFullScreen:!0,style:{width:"100%",maxWidth:"560px",aspectRatio:"16 / 9"}},{children:"Iframe not supported, use a different browser."}))})):u?e(o,{src:p,alt:"string"==typeof c?c:"Markdown Image"}):f?e(s,{url:p}):h?e(a,{url:p}):b?e(i,{jobUrl:p}):e("a",Object.assign({href:p,target:"_blank",rel:"noopener noreferrer",style:{color:n}},{children:c}))};export{m as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as t}from"react";const r=({children:r})=>{const o=t((()=>{if("string"!=typeof r)return null;const e=r.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]+)/i);if(e)return{title:"youtube-embed",src:`https://www.youtube.com/embed/${e[1]}`};const t=r.match(/loom\.com\/(?:share|embed)\/([\w-]+)/i);if(t)return{title:"loom-embed",src:`https://www.loom.com/embed/${t[1]}`};const o=r.match(/vimeo\.com\/(?:video\/)?(\d+)/i);if(o)return{title:"vimeo-embed",src:`https://player.vimeo.com/video/${o[1]}`};const m=r.match(/streamable\.com\/([\w-]+)/i);return m?{title:"streamable-embed",src:`https://streamable.com/e/${m[1]}`}:null}),[r]);return o?e("div",Object.assign({className:"pxe-markdown-video"},{children:e("iframe",Object.assign({title:o.title,src:o.src,allowFullScreen:!0,style:{width:"100%",maxWidth:"560px",aspectRatio:"16 / 9"}},{children:"Iframe not supported, use a different browser."}))})):e("p",{children:r})};export{r as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"../../../../_virtual/_tslib.js";import{jsxs as r,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as o,useMemo as s,useEffect as i}from"react";import{usePickaxeMarkdownContext as m}from"./hooks/usePickaxeMarkdownContext.js";import{rehypeSanitize as a,rehypePickaxeAction as l}from"./utils/custom-plugins.js";import p from"react-markdown";import c from"remark-gfm";import d from"remark-math";import h from"rehype-katex";import f from"rehype-raw";import{A as u}from"./Components/A/index.js";import{P as g}from"./Components/P/index.js";import{Img as x}from"./Components/Img/index.js";import{Iframe as b}from"./Components/Iframe/index.js";import{Code as j}from"./Components/Code/index.js";import{H1 as C,H2 as k,H3 as w,H4 as v,H5 as y}from"./Components/Headings/index.js";import{Ol as O,Ul as $,Li as S}from"./Components/List/index.js";import{Table as A,Th as L,Tr as M,Td as N}from"./Components/Table/index.js";import{Hr as P,Br as H,Blockquote as I}from"./Components/Others/index.js";import{ActionCaption as T,ActionFinished as B,ActionError as E}from"./Components/Action/index.js";import J from"../../../../common/cn.js";const R=({className:R,style:W,children:_,value:q,maxLines:z,
|
|
1
|
+
import{__rest as e}from"../../../../_virtual/_tslib.js";import{jsxs as r,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as o,useMemo as s,useEffect as i}from"react";import{usePickaxeMarkdownContext as m}from"./hooks/usePickaxeMarkdownContext.js";import{rehypeSanitize as a,rehypePickaxeAction as l}from"./utils/custom-plugins.js";import p from"react-markdown";import c from"remark-gfm";import d from"remark-math";import h from"rehype-katex";import f from"rehype-raw";import{A as u}from"./Components/A/index.js";import{P as g}from"./Components/P/index.js";import{Img as x}from"./Components/Img/index.js";import{Iframe as b}from"./Components/Iframe/index.js";import{Code as j}from"./Components/Code/index.js";import{H1 as C,H2 as k,H3 as w,H4 as v,H5 as y}from"./Components/Headings/index.js";import{Ol as O,Ul as $,Li as S}from"./Components/List/index.js";import{Table as A,Th as L,Tr as M,Td as N}from"./Components/Table/index.js";import{Hr as P,Br as H,Blockquote as I}from"./Components/Others/index.js";import{ActionCaption as T,ActionFinished as B,ActionError as E}from"./Components/Action/index.js";import J from"../../../../common/cn.js";const R=({className:R,style:W,children:_,value:q,maxLines:z,maxChars:D,multiLineBreaks:F,recursion:G,onExpandClick:K})=>{const{accentColor:Q,rtl:U,disableHtml:V,disableJs:X,disableCss:Y}=m(),[Z,ee]=t({width:0,height:0}),[re,ne]=t(null),te=o(null),oe=s((()=>{if(!q)return"";let e=q.trim();return e=e.replace(/<!--[\s\S]*?-->/g,""),e=e.replace(/\u200B/g,""),e=e.replace(/\\[\s\S]*?\\]/g,(e=>"$$"+e.substring(2,e.length-2)+"$$")).replace(/\\\(\s*[\s\S]*?\s*\\\)/g,(e=>"$$"+e.substring(2,e.length-2)+"$$")),F&&(e=e.replace(/```[\s\S]*?```|(\n(?=\n))/g,((e,r)=>r?"\n\n<br/>\n":e))),e||""}),[q,F]);i((()=>{if(D)return void ne(oe.length>D?oe.slice(0,D)+'<span class="pxe-expand-btn">...</span>':null);if(!z)return void ne(null);if(!te.current||!oe||re)return;const e=te.current,r=parseInt(window.getComputedStyle(e).lineHeight,10),n=z*r;if(!(Z.height>n))return;const t=Math.floor(Z.width/8),o=Math.floor(t*z);ne(oe.slice(0,o)+'<span class="pxe-expand-btn">...</span>')}),[oe,z,D,Z,re]);const se={h1:C,h2:k,h3:w,h4:v,h5:y,p:g,a:u,img:x,iframe:b,code:j,ol:O,ul:$,li:S,table:A,th:L,tr:M,td:N,hr:P,br:H,blockquote:I,span:r=>{var{children:t}=r,o=e(r,["children"]);return"pxe-expand-btn"===o.className?n("span",Object.assign({},o,{style:Object.assign({display:"inline",fontWeight:500,color:Q,marginLeft:".25rem",userSelect:"none"},K&&{cursor:"pointer"})},K&&{onClick:K},{children:t})):n("span",Object.assign({},o,{children:t}))},ActionCaption:T,ActionFinished:B,ActionError:E};i((()=>{if(!te.current)return;const e=new ResizeObserver((e=>{for(const r of e){const{width:e,height:n}=r.contentRect;ee({width:e,height:n})}}));return e.observe(te.current),()=>{e.disconnect()}}),[]);const ie=re||oe;return r("div",Object.assign({className:"pxe-markdown",ref:te,style:Object.assign({position:"relative",overflowWrap:"break-word",display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:".625rem"},W)},U&&{dir:"rtl"},{children:[n(p,Object.assign({className:J(!G&&"pxe-prose",R),components:se,remarkPlugins:[c,[d,{singleDollarTextMath:!1}]],rehypePlugins:[h,...V?[]:[f],[a,{disableJs:X,disableCss:Y}],l]},{children:ie})),_]}))};export{R as PickaxeMarkdownRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{usePickaxe as s}from"../../hooks/pickaxe/usePickaxe.js";import{useState as l,useEffect as a}from"react";import{usePickaxeContext as r}from"../../hooks/pickaxe/usePickaxeContext.js";import{useResponseContext as i}from"../../hooks/pickaxe/useResponseContext.js";import{generateId as m}from"../../common/utils.js";import c from"./Addons/Scroll/Provider.js";import n from"../Core/Skeleton.js";import p from"./Chat/index.js";import x from"./Form/index.js";import f from"../../common/cn.js";const d=({formId:d,className:u})=>{const{chatId:h,styles:w,colors:k,responsiveBy:j,deploymentType:g,isNewChat:N,setFormId:b,setChatId:v,setPickaxe:y}=r(),{setMessages:C,setResponse:O,setError:P,setLimitData:I,setStatus:F}=i(),[R,S]=l(!1),L=s();return a((()=>{b(d)}),[d]),a((()=>{if(!L.data)return;const e=L.data.chatflag;v(e?m(15):""),e?C([]):O(null),P(""),I(null),y(L.data),S(!0)}),[L.data]),a((()=>{C([]),O(null),F("idle"),I(null),P("")}),[h]),L.data?e("div",Object.assign({className:f("relative @container/pickaxe-root flex flex-col flex-grow w-full",!g&&"h-full","popup"===g&&h&&"h-full","dark"===w.theme&&"dark",u),style:Object.assign({backgroundColor:"chat-input"===g&&N?"transparent":k.primary,color:k.text},w.font&&"Real Head Pro"!==w.font&&{fontFamily:w.font})},{children:L.isLoading||!R?e("div",Object.assign({className:f("flex items-center flex-col w-full pt-12 px-4 pb-10","viewport"===j?"min-[767px]:pb-40":"@[767px]/pickaxe-root:pb-40")},{children:t("div",Object.assign({className:"flex w-full items-center max-w-[700px] flex-col"},{children:[e(n,{className:"w-[72px] h-[72px]"}),e(n,{className:"h-[20px] mt-6 w-full"}),e(n,{className:"h-[20px] mt-2 w-full"}),e(n,{className:"h-[20px] mt-2 w-full max-w-[400px]"}),e("div",Object.assign({className:"flex flex-col gap-y-8 w-full mt-6"},{children:e(n,{className:f("w-full min-h-[48px]","viewport"===j?"min-[767px]:max-w-[176px]":"@[767px]/pickaxe-root:max-w-[176px]")})}))]}))})):e(o,{children:e(c,h?{children:e(p,{})}:{children:e(x,{})})})})):null};export{d as Pickaxe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e}from"../../_virtual/_tslib.js";import{useQuery as o}from"@tanstack/react-query";import{usePickaxeContext as r}from"./usePickaxeContext.js";const t=
|
|
1
|
+
import{__awaiter as e}from"../../_virtual/_tslib.js";import{useQuery as o}from"@tanstack/react-query";import{usePickaxeContext as r}from"./usePickaxeContext.js";const t=o=>e(void 0,void 0,void 0,(function*(){if(!o)return null;const e=yield fetch(`${process.env.NEXT_PUBLIC_API_URL}/pickaxe?formid=${o}`,{method:"GET",headers:{"Content-Type":"application/json"}}),{success:r,data:t,error:i}=yield e.json();if(!r)throw new Error(i||"Failed to fetch pickaxe");return t})),i=()=>{const{formId:i}=r();return o({queryKey:["form",i],queryFn:()=>e(void 0,void 0,void 0,(function*(){return t(i)})),enabled:!!i,staleTime:18e4})},n=r=>o({queryKey:["form",r],queryFn:()=>e(void 0,void 0,void 0,(function*(){return t(r)})),enabled:!!r,staleTime:18e4});export{n as useInstantPickaxe,i as usePickaxe};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Pickaxe}from"./components/Pickaxe/index.js";export{PickaxeContext,PickaxeProvider}from"./components/Pickaxe/Provider.js";export{ResponseContext}from"./components/Pickaxe/ResponseProvider.js";export{PickaxeMarkdown,PickaxeMarkdownContext}from"./components/Pickaxe/common/PickaxeMarkdown/index.js";export{PickaxeMarkdownRenderer}from"./components/Pickaxe/common/PickaxeMarkdown/Renderer.js";export{useConversation}from"./hooks/pickaxe/useConversation.js";export{useHistory}from"./hooks/pickaxe/useHistory.js";export{usePickaxe}from"./hooks/pickaxe/usePickaxe.js";export{usePickaxeContext}from"./hooks/pickaxe/usePickaxeContext.js";export{useResponseContext}from"./hooks/pickaxe/useResponseContext.js";export{useDimensionContext}from"./hooks/pickaxe/useDimensionContext.js";export{useSubmit}from"./hooks/pickaxe/useSubmit.js";export{useSubmitDocument}from"./hooks/pickaxe/useSubmitDocument.js";
|
|
1
|
+
export{Pickaxe}from"./components/Pickaxe/index.js";export{PickaxeContext,PickaxeProvider}from"./components/Pickaxe/Provider.js";export{ResponseContext}from"./components/Pickaxe/ResponseProvider.js";export{PickaxeMarkdown,PickaxeMarkdownContext}from"./components/Pickaxe/common/PickaxeMarkdown/index.js";export{PickaxeMarkdownRenderer}from"./components/Pickaxe/common/PickaxeMarkdown/Renderer.js";export{useConversation}from"./hooks/pickaxe/useConversation.js";export{useHistory}from"./hooks/pickaxe/useHistory.js";export{useInstantPickaxe,usePickaxe}from"./hooks/pickaxe/usePickaxe.js";export{usePickaxeContext}from"./hooks/pickaxe/usePickaxeContext.js";export{useResponseContext}from"./hooks/pickaxe/useResponseContext.js";export{useDimensionContext}from"./hooks/pickaxe/useDimensionContext.js";export{useSubmit}from"./hooks/pickaxe/useSubmit.js";export{useSubmitDocument}from"./hooks/pickaxe/useSubmitDocument.js";
|
package/dist/esm/prose.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pxe-prose p{font-weight:350}.pxe-prose p:not(:only-child){margin-bottom:.75rem}.pxe-prose a{font-weight:600;text-decoration:underline;text-underline-offset:.2rem}.pxe-prose iframe{margin-bottom:1.5rem}.pxe-prose blockquote{margin-bottom:2.5rem;padding-bottom:.25rem;padding-left:1rem;padding-top:.25rem}.pxe-prose hr{margin-bottom:1.5rem}.pxe-prose .pxe-markdown-image,.pxe-prose .pxe-markdown-
|
|
1
|
+
.pxe-prose p{font-weight:350}.pxe-prose p:not(:only-child){margin-bottom:.75rem}.pxe-prose a{font-weight:600;text-decoration:underline;text-underline-offset:.2rem}.pxe-prose iframe{margin-bottom:1.5rem}.pxe-prose blockquote{margin-bottom:2.5rem;padding-bottom:.25rem;padding-left:1rem;padding-top:.25rem}.pxe-prose hr{margin-bottom:1.5rem}.pxe-prose .pxe-markdown-image,.pxe-prose .pxe-markdown-video{margin-bottom:1.5rem;margin-top:1.5rem}.pxe-prose .pxe-markdown-video{display:flex;justify-content:center;width:100%}.pxe-prose .pxe-markdown-code{margin-bottom:1.5rem}.pxe-prose ol{list-style-type:decimal}.pxe-prose ol,.pxe-prose ul{list-style-position:inside;margin-bottom:1.5rem;padding-left:1rem}.pxe-prose ul{list-style-type:disc}.pxe-prose li{margin:10px 10px 14px}.pxe-prose li>p{display:inline}.pxe-prose .pxe-markdown-table{margin-bottom:2.5rem;overflow:auto;position:relative}.pxe-prose table{font-size:.875rem;line-height:1.24rem;table-layout:fixed}.pxe-prose th{font-weight:600;text-align:left}.pxe-prose td,.pxe-prose th{padding:.75em 1em}.pxe-prose h1{font-size:2.25rem;line-height:2.5rem;margin-bottom:1.5rem}.pxe-prose h2{font-size:1.875rem;line-height:2.25rem;margin-bottom:1.5rem}.pxe-prose h3{font-size:1.5rem;line-height:2rem;margin-bottom:1.5rem}.pxe-prose h4{font-size:1.25rem}.pxe-prose h4,.pxe-prose h5{line-height:1.75rem;margin-bottom:1rem}.pxe-prose h5{font-size:1.125rem}.pxe-prose h2:not(:first-child){margin-top:2.5rem}.pxe-prose h3:not(:first-child),.pxe-prose h4:not(:first-child),.pxe-prose>pre:not(:first-child){margin-top:1rem}.pxe-prose .pxe-markdown-code{display:flex;flex-direction:column}.pxe-prose .pxe-markdown-code>div:first-child{background-color:#1d1f21;border-radius:.3em;display:flex;flex-direction:column;max-width:min-content;padding-top:1em;position:relative}.pxe-prose .pxe-markdown-code>div:first-child>div:first-child{display:flex;justify-content:flex-end;padding:0 1em}.pxe-prose .pxe-markdown-code>div:first-child>div:last-child{overflow:auto}.pxe-prose .pxe-action[data-action-id]:not(:nth-child(2)){margin-top:1rem}.pxe-prose .pxe-markdown-code-inline{background-color:#1d1f21;border-radius:.3em;color:#fff;font-size:10pt;padding:.15em .4em}.pxe-link-previews{display:flex;flex-direction:column;gap:2rem}.pxe-prose>p:first-child>.pxe-markdown-image,.pxe-prose>p:first-child>.pxe-markdown-video{margin-top:0}.pxe-prose .pxe-blink{animation:blink 1s ease-in-out infinite}.pxe-prose .pxe-red{color:red}.pxe-prose .pxe-action-error{display:flex;flex-direction:column}.pxe-prose .pxe-animated-token{animation:fadeIn .3s ease-out forwards;display:inline-block;opacity:0}@keyframes fadeIn{0%{opacity:0;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}@keyframes blink{0%{opacity:1}50%{opacity:.5}to{opacity:1}}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { PickaxeProps } from "../Pickaxe";
|
|
3
|
+
import { IPickaxeProviderProps } from "../Pickaxe/Provider";
|
|
4
|
+
type ChatInputProps = PickaxeProps & Omit<IPickaxeProviderProps, "deploymentType">;
|
|
5
|
+
export declare const ChatInput: ({ formId, className, ...props }: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ChatInputWrapper: ({ children }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SetState } from "../../types/common";
|
|
2
|
+
import { PickaxeProps } from "../Pickaxe";
|
|
3
|
+
import { IPickaxeProviderProps } from "../Pickaxe/Provider";
|
|
4
|
+
type FABProps = PickaxeProps & Omit<IPickaxeProviderProps, "deploymentType">;
|
|
5
|
+
export declare const FAB: ({ formId, className, ...props }: FABProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const FABButton: ({ isOpen, setIsOpen, }: {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
setIsOpen: SetState<boolean>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PickaxeProps } from "../Pickaxe";
|
|
2
|
+
import { IPickaxeProviderProps } from "../Pickaxe/Provider";
|
|
3
|
+
type InlineProps = PickaxeProps & Omit<IPickaxeProviderProps, "deploymentType">;
|
|
4
|
+
export declare const Inline: ({ formId, className, ...props }: InlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SetState } from "../../types/common";
|
|
2
|
+
import { PickaxeProps } from "../Pickaxe";
|
|
3
|
+
import { IPickaxeProviderProps } from "../Pickaxe/Provider";
|
|
4
|
+
type PopupProps = PickaxeProps & Omit<IPickaxeProviderProps, "deploymentType">;
|
|
5
|
+
export declare const Popup: ({ formId, className, ...props }: PopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const PopupCTAButton: ({ formId, setIsOpen, }: {
|
|
7
|
+
formId: string;
|
|
8
|
+
setIsOpen: SetState<boolean>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface InputProps {
|
|
2
|
-
isFocused
|
|
3
|
-
onFocus
|
|
4
|
-
onBlur
|
|
2
|
+
isFocused?: boolean;
|
|
3
|
+
onFocus?: () => void;
|
|
4
|
+
onBlur?: () => void;
|
|
5
5
|
}
|
|
6
6
|
declare const Input: ({ isFocused, onFocus, onBlur }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Input;
|
|
@@ -33,13 +33,34 @@ export type PickaxeMisc = {
|
|
|
33
33
|
isDescription: boolean;
|
|
34
34
|
isHistory?: boolean;
|
|
35
35
|
};
|
|
36
|
+
export type PickaxeDeploymentEmbedType = "inline" | "fab" | "popup" | "chat-input";
|
|
37
|
+
export type PickaxeDeploymentDimensions = {
|
|
38
|
+
width: {
|
|
39
|
+
value: number;
|
|
40
|
+
unit: "%" | "px";
|
|
41
|
+
};
|
|
42
|
+
maxWidth: number;
|
|
43
|
+
height: {
|
|
44
|
+
value: number;
|
|
45
|
+
unit: "px" | "auto";
|
|
46
|
+
};
|
|
47
|
+
minHeight: number;
|
|
48
|
+
maxHeight: number;
|
|
49
|
+
};
|
|
50
|
+
export type PickaxeDeploymentMisc = {
|
|
51
|
+
popupText?: string;
|
|
52
|
+
fabImage?: string;
|
|
53
|
+
};
|
|
36
54
|
type PickaxeContextType = {
|
|
37
55
|
formId: string;
|
|
38
56
|
chatId: string;
|
|
39
57
|
userId: string;
|
|
40
58
|
studioUserId: string;
|
|
41
|
-
deploymentId: string;
|
|
42
59
|
embedUserId: string;
|
|
60
|
+
deploymentId: string;
|
|
61
|
+
deploymentType?: PickaxeDeploymentEmbedType;
|
|
62
|
+
deploymentDimensions?: PickaxeDeploymentDimensions;
|
|
63
|
+
deploymentMisc?: PickaxeDeploymentMisc;
|
|
43
64
|
pickaxe: LimitedPickaxe | null;
|
|
44
65
|
styles: PickaxeProviderStyles;
|
|
45
66
|
colors: PickaxeProviderColors;
|
|
@@ -54,8 +75,9 @@ type PickaxeContextType = {
|
|
|
54
75
|
isFontLoaded: boolean;
|
|
55
76
|
isNewChat: boolean;
|
|
56
77
|
isShowIceBreaker: boolean;
|
|
57
|
-
isEmbed: boolean;
|
|
58
78
|
isRtl: boolean;
|
|
79
|
+
isEmbed: boolean;
|
|
80
|
+
isDropShadow: boolean;
|
|
59
81
|
setFormId: SetState<string>;
|
|
60
82
|
setChatId: SetState<string>;
|
|
61
83
|
setPickaxe: SetState<LimitedPickaxe | null>;
|
|
@@ -68,8 +90,11 @@ export interface IPickaxeProviderProps {
|
|
|
68
90
|
children: ReactNode;
|
|
69
91
|
userId?: string;
|
|
70
92
|
studioUserId?: string;
|
|
71
|
-
deploymentId?: string;
|
|
72
93
|
embedUserId?: string;
|
|
94
|
+
deploymentId?: string;
|
|
95
|
+
deploymentType?: PickaxeDeploymentEmbedType;
|
|
96
|
+
deploymentDimensions?: PickaxeDeploymentDimensions;
|
|
97
|
+
deploymentMisc?: PickaxeDeploymentMisc;
|
|
73
98
|
styles?: Partial<PickaxeProviderStyles>;
|
|
74
99
|
colors?: Partial<PickaxeProviderColors>;
|
|
75
100
|
limits?: Record<string, PickaxeLimitData>;
|
|
@@ -81,10 +106,11 @@ export interface IPickaxeProviderProps {
|
|
|
81
106
|
disableHtml?: boolean;
|
|
82
107
|
disableJs?: boolean;
|
|
83
108
|
disableCss?: boolean;
|
|
84
|
-
isEmbed?: boolean;
|
|
85
109
|
isRtl?: boolean;
|
|
110
|
+
isEmbed?: boolean;
|
|
111
|
+
isDropShadow?: boolean;
|
|
86
112
|
onGenerateComplete?: (responseId: string) => void;
|
|
87
113
|
}
|
|
88
114
|
export declare const PickaxeContext: import("react").Context<PickaxeContextType>;
|
|
89
|
-
export declare const PickaxeProvider: ({ children, userId, studioUserId, deploymentId, embedUserId, styles, colors, limits, misc, translations, responsiveBy, forceMobile, disableHtml, disableJs, disableCss, loadFont, isEmbed,
|
|
115
|
+
export declare const PickaxeProvider: ({ children, userId, studioUserId, deploymentId, embedUserId, deploymentType, deploymentDimensions, deploymentMisc, styles, colors, limits, misc, translations, responsiveBy, forceMobile, disableHtml, disableJs, disableCss, loadFont, isRtl, isEmbed, isDropShadow, onGenerateComplete, }: IPickaxeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
90
116
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface PickaxeHeadProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
iconClassName?: string;
|
|
4
|
-
|
|
4
|
+
maxDescriptionChars?: number;
|
|
5
5
|
onIconClick?: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare const PickaxeHead: ({ className, iconClassName,
|
|
7
|
+
declare const PickaxeHead: ({ className, iconClassName, maxDescriptionChars, onIconClick, }: PickaxeHeadProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default PickaxeHead;
|
|
@@ -5,8 +5,9 @@ export interface PickaxeMarkdownRendererProps {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
value?: string | null;
|
|
7
7
|
maxLines?: number;
|
|
8
|
+
maxChars?: number;
|
|
8
9
|
multiLineBreaks?: boolean;
|
|
9
10
|
recursion?: boolean;
|
|
10
11
|
onExpandClick?: () => void;
|
|
11
12
|
}
|
|
12
|
-
export declare const PickaxeMarkdownRenderer: ({ className, style, children: _children, value, maxLines, multiLineBreaks, recursion, onExpandClick, }: PickaxeMarkdownRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const PickaxeMarkdownRenderer: ({ className, style, children: _children, value, maxLines, maxChars, multiLineBreaks, recursion, onExpandClick, }: PickaxeMarkdownRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { LimitedPickaxe } from "../../types/pickaxe";
|
|
2
2
|
export declare const usePickaxe: () => import("@tanstack/react-query").UseQueryResult<LimitedPickaxe | null, Error>;
|
|
3
|
+
export declare const useInstantPickaxe: (formId: string) => import("@tanstack/react-query").UseQueryResult<LimitedPickaxe | null, Error>;
|
|
@@ -3,8 +3,11 @@ export declare const usePickaxeContext: () => {
|
|
|
3
3
|
chatId: string;
|
|
4
4
|
userId: string;
|
|
5
5
|
studioUserId: string;
|
|
6
|
-
deploymentId: string;
|
|
7
6
|
embedUserId: string;
|
|
7
|
+
deploymentId: string;
|
|
8
|
+
deploymentType?: import("../../components/Pickaxe/Provider").PickaxeDeploymentEmbedType | undefined;
|
|
9
|
+
deploymentDimensions?: import("../../components/Pickaxe/Provider").PickaxeDeploymentDimensions | undefined;
|
|
10
|
+
deploymentMisc?: import("../../components/Pickaxe/Provider").PickaxeDeploymentMisc | undefined;
|
|
8
11
|
pickaxe: import("../../types/pickaxe").LimitedPickaxe | null;
|
|
9
12
|
styles: import("../../components/Pickaxe/Provider").PickaxeProviderStyles;
|
|
10
13
|
colors: import("../../components/Pickaxe/Provider").PickaxeProviderColors;
|
|
@@ -19,8 +22,9 @@ export declare const usePickaxeContext: () => {
|
|
|
19
22
|
isFontLoaded: boolean;
|
|
20
23
|
isNewChat: boolean;
|
|
21
24
|
isShowIceBreaker: boolean;
|
|
22
|
-
isEmbed: boolean;
|
|
23
25
|
isRtl: boolean;
|
|
26
|
+
isEmbed: boolean;
|
|
27
|
+
isDropShadow: boolean;
|
|
24
28
|
setFormId: import("../../types/common").SetState<string>;
|
|
25
29
|
setChatId: import("../../types/common").SetState<string>;
|
|
26
30
|
setPickaxe: import("../../types/common").SetState<import("../../types/pickaxe").LimitedPickaxe | null>;
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledAttachmentGridProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
columns?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const StyledAttachmentGrid: React.FC<StyledAttachmentGridProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledIconButtonProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
hoverProps?: any;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledIconButton: React.FC<StyledIconButtonProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledImagePreviewProps extends BaseStyleProps {
|
|
4
|
-
src?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
size?: string;
|
|
7
|
-
borderRadius?: string | number;
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
removeButton?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const StyledImagePreview: React.FC<StyledImagePreviewProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledInputContainerProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
maxWidth?: string;
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
borderColor?: string;
|
|
8
|
-
borderRadius?: string | number;
|
|
9
|
-
padding?: string;
|
|
10
|
-
boxShadow?: boolean;
|
|
11
|
-
gap?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInputContainer: React.FC<StyledInputContainerProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledInputWrapperProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
position?: "fixed" | "absolute" | "relative";
|
|
6
|
-
bottom?: string;
|
|
7
|
-
padding?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
isRtl?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInputWrapper: React.FC<StyledInputWrapperProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledRemoveButtonProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
size?: string;
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
borderColor?: string;
|
|
10
|
-
position?: "top-right" | "top-left";
|
|
11
|
-
isRtl?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledRemoveButton: React.FC<StyledRemoveButtonProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledTextareaWrapperProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
gap?: string;
|
|
6
|
-
isRtl?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const StyledTextareaWrapper: React.FC<StyledTextareaWrapperProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledIconWrapperProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
size?: string;
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
borderRadius?: string | number;
|
|
8
|
-
padding?: string;
|
|
9
|
-
margin?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const StyledIconWrapper: React.FC<StyledIconWrapperProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledMessageProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
alignment?: "left" | "right";
|
|
6
|
-
maxWidth?: string;
|
|
7
|
-
isRtl?: boolean;
|
|
8
|
-
gap?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledMessage: React.FC<StyledMessageProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledMessageBubbleProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
textColor?: string;
|
|
7
|
-
padding?: string;
|
|
8
|
-
borderRadius?: number;
|
|
9
|
-
fontSize?: string;
|
|
10
|
-
fontFamily?: string;
|
|
11
|
-
isRtl?: boolean;
|
|
12
|
-
opacity?: number;
|
|
13
|
-
}
|
|
14
|
-
export declare const StyledMessageBubble: React.FC<StyledMessageBubbleProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledMessageContainerProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
direction?: "row" | "row-reverse";
|
|
6
|
-
gap?: string;
|
|
7
|
-
alignItems?: "start" | "center" | "end";
|
|
8
|
-
isRtl?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledMessageContainer: React.FC<StyledMessageContainerProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "./types";
|
|
3
|
-
export interface StyledCopyButtonProps extends BaseStyleProps {
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
icon: React.ReactNode;
|
|
6
|
-
label?: string;
|
|
7
|
-
color?: string;
|
|
8
|
-
hoverColor?: string;
|
|
9
|
-
fontSize?: string;
|
|
10
|
-
gap?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const StyledCopyButton: React.FC<StyledCopyButtonProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "./types";
|
|
3
|
-
export interface StyledDocumentCardProps extends BaseStyleProps {
|
|
4
|
-
icon: React.ReactNode;
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
href?: string;
|
|
8
|
-
target?: string;
|
|
9
|
-
borderColor?: string;
|
|
10
|
-
borderRadius?: string | number;
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
textColor?: string;
|
|
13
|
-
titleFontSize?: string;
|
|
14
|
-
subtitleFontSize?: string;
|
|
15
|
-
iconBackgroundColor?: string;
|
|
16
|
-
iconColor?: string;
|
|
17
|
-
iconSize?: string;
|
|
18
|
-
height?: string;
|
|
19
|
-
padding?: string;
|
|
20
|
-
gap?: string;
|
|
21
|
-
maxWidth?: string;
|
|
22
|
-
isRtl?: boolean;
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
export declare const StyledDocumentCard: React.FC<StyledDocumentCardProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseStyleProps } from "./types";
|
|
3
|
-
import { PickaxeResponsiveBy } from "../Provider";
|
|
4
|
-
export interface StyledIceBreakerProps extends BaseStyleProps {
|
|
5
|
-
colors: {
|
|
6
|
-
primary: string;
|
|
7
|
-
secondary: string;
|
|
8
|
-
secondaryText: string;
|
|
9
|
-
};
|
|
10
|
-
styles: {
|
|
11
|
-
cornerRadius: string | number;
|
|
12
|
-
};
|
|
13
|
-
isHover?: boolean;
|
|
14
|
-
responsiveBy?: PickaxeResponsiveBy;
|
|
15
|
-
forceMobile?: boolean;
|
|
16
|
-
text: string;
|
|
17
|
-
onSend?: (text: string) => void;
|
|
18
|
-
hoverProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
19
|
-
}
|
|
20
|
-
export declare const StyledIceBreaker: React.FC<StyledIceBreakerProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "./types";
|
|
3
|
-
export interface StyledLoadingDotsProps extends BaseStyleProps {
|
|
4
|
-
dotColor?: string;
|
|
5
|
-
dotSize?: string;
|
|
6
|
-
gap?: string;
|
|
7
|
-
animationDuration?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const StyledLoadingDots: React.FC<StyledLoadingDotsProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { StyledMessage } from "./Message/StyledMessage";
|
|
2
|
-
export { StyledMessageBubble } from "./Message/StyledMessageBubble";
|
|
3
|
-
export { StyledLoadingDots } from "./StyledLoadingDots";
|
|
4
|
-
export { StyledDocumentCard } from "./StyledDocumentCard";
|
|
5
|
-
export { StyledIconWrapper } from "./Message/StyledIconWrapper";
|
|
6
|
-
export { StyledMessageContainer } from "./Message/StyledMessageContainer";
|
|
7
|
-
export { StyledCopyButton } from "./StyledCopyButton";
|
|
8
|
-
export { StyledInputContainer } from "./Input/StyledInputContainer";
|
|
9
|
-
export { StyledTextareaWrapper } from "./Input/StyledTextareaWrapper";
|
|
10
|
-
export { StyledIconButton } from "./Input/StyledIconButton";
|
|
11
|
-
export { StyledRemoveButton } from "./Input/StyledRemoveButton";
|
|
12
|
-
export { StyledImagePreview } from "./Input/StyledImagePreview";
|
|
13
|
-
export { StyledAttachmentGrid } from "./Input/StyledAttachmentGrid";
|
|
14
|
-
export { StyledInputWrapper } from "./Input/StyledInputWrapper";
|
|
15
|
-
export { StyledIceBreaker } from "./StyledIceBreaker";
|
|
16
|
-
export { default as FileIcon } from "@src/components/Icons/file.svg";
|
|
17
|
-
export { default as AttachVerticalIcon } from "@src/components/Icons/attach-vertical.svg";
|
|
18
|
-
export { default as SpinnerLinesIcon } from "@src/components/Icons/spinner-lines.svg";
|
|
19
|
-
export { default as XIcon } from "@src/components/Icons/x.svg";
|
|
20
|
-
export { default as ArrowRightIcon } from "@src/components/Icons/arrow-right.svg";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledAttachmentGridProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
columns?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const StyledAttachmentGrid: React.FC<StyledAttachmentGridProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledIconButtonProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
hoverProps?: any;
|
|
9
|
-
}
|
|
10
|
-
export declare const StyledIconButton: React.FC<StyledIconButtonProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledImagePreviewProps extends BaseStyleProps {
|
|
4
|
-
src?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
size?: string;
|
|
7
|
-
borderRadius?: string | number;
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
removeButton?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const StyledImagePreview: React.FC<StyledImagePreviewProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledInputContainerProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
maxWidth?: string;
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
borderColor?: string;
|
|
8
|
-
borderRadius?: string | number;
|
|
9
|
-
padding?: string;
|
|
10
|
-
boxShadow?: boolean;
|
|
11
|
-
gap?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInputContainer: React.FC<StyledInputContainerProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseStyleProps } from "../types";
|
|
3
|
-
export interface StyledInputWrapperProps extends BaseStyleProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
position?: "fixed" | "absolute" | "relative";
|
|
6
|
-
bottom?: string;
|
|
7
|
-
padding?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
isRtl?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInputWrapper: React.FC<StyledInputWrapperProps>;
|