react-reason-editor 1.0.117 → 1.0.118
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/{BubbleMenus-D8BicxJF.cjs → BubbleMenus-FfgNfh6Y.cjs} +1 -1
- package/dist/{BubbleMenus-DopOZm_P.js → BubbleMenus-R5Y-9JWK.js} +1 -1
- package/dist/{ExportWord--CMls-Qy.js → ExportWord-DAZyykON.js} +1 -1
- package/dist/ExportWord.cjs +1 -1
- package/dist/ExportWord.js +1 -1
- package/dist/{ReasonDocs-BCjyspDd.cjs → ReasonDocs-ChsTkp1F.cjs} +1 -1
- package/dist/{ReasonDocs-eAuJLZVg.js → ReasonDocs-lKBq553-.js} +1 -1
- package/dist/{RichTextProvider-C0V3hhy_.cjs → RichTextProvider-BPoiX8UM.cjs} +1 -1
- package/dist/{RichTextProvider-z_4PSTNH.js → RichTextProvider-C0vjZBR9.js} +1 -1
- package/dist/docs-agent.cjs +1 -1
- package/dist/docs-agent.js +1 -1
- package/dist/editor-kit.cjs +1 -1
- package/dist/editor-kit.js +1 -1
- package/dist/{editorConfig-DaUET9eN.cjs → editorConfig-BJeXCimT.cjs} +1 -1
- package/dist/{editorConfig-CpUHUq44.js → editorConfig-bKWvUr1h.js} +1 -1
- package/dist/html-to-docx.esm-BXXvDBHn-CEg-rexN.cjs +1 -0
- package/dist/html-to-docx.esm-BXXvDBHn.js +1 -0
- package/dist/html-to-docx.esm-oeykiqaU.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/reason-docs.cjs +1 -1
- package/dist/reason-docs.js +1 -1
- package/dist/{reason-toolbar-skin-BQRPoci6.cjs → reason-toolbar-skin-D-0TbfOh.cjs} +1 -1
- package/dist/{reason-toolbar-skin-Beh6Q5Ra.js → reason-toolbar-skin-jaDSLX5e.js} +1 -1
- package/package.json +2 -2
- package/dist/html-to-docx.esm-BLUcO7pp-sCMiaq9J.cjs +0 -1
- package/dist/html-to-docx.esm-BLUcO7pp.js +0 -1
- package/dist/html-to-docx.esm-DFEdsNe8.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./dist-DmY5xFkC.js";import{n as t}from"./toggle-BnR5VE66.js";import{n as r,t as a}from"./locales-rT_qjKW9.js";import{i as n,o,r as l,s as i}from"./floating-ui.dom-CdG_EzIc.js";import{n as s}from"./Callout-BLkbFKjv.js";import{i as d}from"./ImageCropper-BKS8Wf7X.js";import{c,d as m,f as g,l as u,t as h}from"./useButtonProps-Codtb0k0.js";import{n as p}from"./Video-5nw_Zeob.js";import{themeActions as b}from"./theme.js";import{n as x}from"./Highlight-uXDlNgw3.js";import{n as y}from"./HorizontalRule-C7mAKdzL.js";import{n as f}from"./Link-Cp3t5QrH.js";import{n as v,r as k}from"./History-Cfbj6xTl.js";import{n as N}from"./TextUnderline-Cqm5NQVW.js";import{n as w}from"./Blockquote-XivvfRm3.js";import{n as C}from"./Bold-BqGD33ge.js";import{n as S}from"./Code-DvYJ892R.js";import{n as L}from"./CodeBlock-DQsPPAcS.js";import{n as z}from"./Heading-Dv1_d7LY.js";import{n as A}from"./Italic-3mlmsxqN.js";import{n as j}from"./Strike-CSxbYwpk.js";import{a as P,f as M,h as T,i as B,p as D,r as E}from"./Ai-DOAuz6ZE.js";import{n as I}from"./ExportWord
|
|
1
|
+
import{o as e}from"./dist-DmY5xFkC.js";import{n as t}from"./toggle-BnR5VE66.js";import{n as r,t as a}from"./locales-rT_qjKW9.js";import{i as n,o,r as l,s as i}from"./floating-ui.dom-CdG_EzIc.js";import{n as s}from"./Callout-BLkbFKjv.js";import{i as d}from"./ImageCropper-BKS8Wf7X.js";import{c,d as m,f as g,l as u,t as h}from"./useButtonProps-Codtb0k0.js";import{n as p}from"./Video-5nw_Zeob.js";import{themeActions as b}from"./theme.js";import{n as x}from"./Highlight-uXDlNgw3.js";import{n as y}from"./HorizontalRule-C7mAKdzL.js";import{n as f}from"./Link-Cp3t5QrH.js";import{n as v,r as k}from"./History-Cfbj6xTl.js";import{n as N}from"./TextUnderline-Cqm5NQVW.js";import{n as w}from"./Blockquote-XivvfRm3.js";import{n as C}from"./Bold-BqGD33ge.js";import{n as S}from"./Code-DvYJ892R.js";import{n as L}from"./CodeBlock-DQsPPAcS.js";import{n as z}from"./Heading-Dv1_d7LY.js";import{n as A}from"./Italic-3mlmsxqN.js";import{n as j}from"./Strike-CSxbYwpk.js";import{a as P,f as M,h as T,i as B,p as D,r as E}from"./Ai-DOAuz6ZE.js";import{n as I}from"./ExportWord-DAZyykON.js";import{RichTextOrderedList as H}from"./OrderedList.js";import{RichTextBulletList as W}from"./BulletList.js";import{RichTextTaskList as R}from"./TaskList.js";import{RichTextClear as $}from"./Clear.js";import{RichTextFontFamily as O}from"./FontFamily.js";import{RichTextFontSize as F}from"./FontSize.js";import{n as G}from"./Color-aQTmRpkX.js";import{n as K}from"./Indent-BIk98fDV.js";import{n as V}from"./TextAlign-Dun3_Ozv.js";import{RichTextLineHeight as J}from"./LineHeight.js";import{r as q}from"./Emoji-CIxVw-Kv.js";import{n as U}from"./Attachment-BmQoshq_.js";import{n as Z}from"./Katex-DRPWO2AM.js";import{n as _}from"./ImageGif-DoRfosdY.js";import{n as X}from"./Table-Ol6ZySzq.js";import{i as Y}from"./Column-DO6MfrOQ.js";import{n as Q}from"./Twitter-CZHAICpz.js";import{n as ee}from"./Mermaid-Xepkcc7M.js";import{RichTextSearchAndReplace as te}from"./SearchAndReplace.js";import{RichTextCodeView as re}from"./CodeView.js";import{n as ae}from"./ImportWord-DtON-y5N.js";import{n as ne}from"./ExportPdf-CrQVmD4l.js";import{r as oe}from"./Harper--4-ylRQo.js";import{n as le}from"./Drawio-LEtUoVAY.js";import{getReadAloudStorage as ie,getReadAloudText as se,subscribeReadAloud as de}from"./ReadAloud.js";import{getTranscribeStorage as ce,isTranscriptionSupported as me,subscribeTranscribe as ge}from"./Transcribe.js";import{selectSimilarPluginKey as ue}from"./SelectSimilar.js";import{a as he,c as pe,d as be,g as xe,h as ye,i as fe,l as ve,m as ke,n as Ne,o as we,r as Ce,s as Se,t as Le,u as ze}from"./bubble-DF0FOqik.js";import{n as Ae}from"./SlashCommand-Dqp5cELd.js";import{getWordCountStats as je}from"./WordCount.js";import{posToDOMRect as Pe,useCurrentEditor as Me,useEditorState as Te}from"@tiptap/react";import Be,{cloneElement as De,isValidElement as Ee,useCallback as Ie,useEffect as He,useLayoutEffect as We,useMemo as Re,useRef as $e,useState as Oe,useSyncExternalStore as Fe}from"react";import{Fragment as Ge,jsx as Ke,jsxs as Ve}from"react/jsx-runtime";import{ArrowLeft as Je,Check as qe,ChevronDown as Ue,Clipboard as Ze,ClipboardPaste as _e,ClipboardType as Xe,Copy as Ye,CornerDownRight as Qe,Download as et,Edit3 as tt,Eye as rt,File as at,FileText as nt,Globe as ot,ListTree as lt,Loader2 as it,Lock as st,Mail as dt,MessageSquare as ct,MessageSquarePlus as mt,Mic as gt,Paintbrush as ut,Palette as ht,Plus as pt,RotateCcw as bt,Scissors as xt,Search as yt,Settings as ft,Share2 as vt,Sparkles as kt,SpellCheck as Nt,Square as wt,TextCursorInput as Ct,TextSelect as St,Trash2 as Lt,Type as zt,Users as At,Volume2 as jt,VolumeX as Pt,X as Mt,ZoomIn as Tt,ZoomOut as Bt}from"lucide-react";import{createPortal as Dt}from"react-dom";import{SpokenPhraseOverlay as Et}from"use-voice-control/react";function It({children:t,label:r,className:a,icon:n,shortcut:o}){const l=$e(null),i=Ee(t)?De(t,{tooltip:r?void 0:t.props?.tooltip,tooltipOptions:r?void 0:t.props?.tooltipOptions}):t;/* @__PURE__ */
|
|
2
2
|
return Ve("div",{ref:l,className:e("flex items-center gap-2 px-2 py-0.5 rounded cursor-pointer w-full text-left","hover:bg-gray-100/80 dark:hover:bg-slate-800/80","transition-colors",a),onClick:e=>{e.stopPropagation(),e.target.closest('button, [role="button"], a')||(l.current?.querySelector("button"))?.click()},children:[n&&/* @__PURE__ */Ke("span",{className:"w-5 flex items-center justify-center text-gray-500 dark:text-gray-400 shrink-0",children:n}),/* @__PURE__ */Ve("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[i,r&&/* @__PURE__ */Ke("span",{className:"text-xs whitespace-nowrap truncate",children:r}),o&&/* @__PURE__ */Ke("span",{className:"text-[10px] text-gray-400 dark:text-gray-500 ml-auto whitespace-nowrap shrink-0",children:o})]})]})}function Ht(){const e=h("subscript"),{icon:r,tooltip:a,shortcutKeys:n,tooltipOptions:o={},action:l,isActive:i}=e?.componentProps??{},{dataState:s,disabled:d,update:m}=c(i);return e?/* @__PURE__ */Ke(t,{action:()=>{d||l&&(l(),m())},dataState:s,disabled:d,icon:r,shortcutKeys:n,tooltip:a,tooltipOptions:o}):/* @__PURE__ */Ke(Ge,{})}function Wt(){const e=h("superscript"),{icon:r,tooltip:a,shortcutKeys:n,tooltipOptions:o={},action:l,isActive:i}=e?.componentProps??{},{dataState:s,disabled:d,update:m}=c(i);return e?/* @__PURE__ */Ke(t,{action:()=>{d||l&&(l(),m())},dataState:s,disabled:d,icon:r,shortcutKeys:n,tooltip:a,tooltipOptions:o}):/* @__PURE__ */Ke(Ge,{})}function Rt({message:e}){const[t,r]=Oe(!0);return He(()=>{const e=setTimeout(()=>r(!1),2e3);return()=>clearTimeout(e)},[]),t?Dt(/* @__PURE__ */Ke("div",{className:"fixed bottom-4 right-4 z-[100] animate-in fade-in slide-in-from-bottom-2",children:/* @__PURE__ */Ke("div",{className:"bg-gray-900 dark:bg-gray-800 text-white px-4 py-2.5 rounded-lg shadow-lg text-sm font-medium",children:e})}),document.body):null}function $t(){const{editor:e}=Me(),[t,r]=Oe(1.25),[a,n]=Oe(null),o=e=>{n(e)},l=Ie(t=>{const r=e?.view?.dom??document.querySelector(".ProseMirror");if(!r)return;const a=r;a.style.zoom=String(t),a.style.transform="",a.style.transformOrigin=""},[e]);return He(()=>{l(t)},[l,t]),/* @__PURE__ */Ve(Ge,{children:[/* @__PURE__ */Ve("div",{className:"richtext-flex richtext-items-center richtext-gap-0.5",children:[/* @__PURE__ */Ke("button",{onClick:()=>{const e=Math.max(t-.25,.5);r(e),l(e),o(`Zoom: ${Math.round(100*e)}%`)},title:`Zoom Out (${Math.round(100*t)}%)`,className:"richtext-p-1 richtext-h-8 richtext-flex richtext-items-center richtext-justify-center richtext-rounded text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-slate-800 hover:text-gray-900 dark:hover:text-white transition-colors",children:/* @__PURE__ */Ke(Bt,{size:16})}),/* @__PURE__ */Ke("button",{onClick:()=>{const e=Math.min(t+.25,2);r(e),l(e),o(`Zoom: ${Math.round(100*e)}%`)},title:`Zoom In (${Math.round(100*t)}%)`,className:"richtext-p-1 richtext-h-8 richtext-flex richtext-items-center richtext-justify-center richtext-rounded text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-slate-800 hover:text-gray-900 dark:hover:text-white transition-colors",children:/* @__PURE__ */Ke(Tt,{size:16})})]}),a&&/* @__PURE__ */Ke(Rt,{message:a})]})}var Ot={a4:{name:"A4",pageHeight:1123,pageWidth:794,marginTop:72,marginBottom:72,marginLeft:72,marginRight:72},a3:{name:"A3",pageHeight:1591,pageWidth:1123,marginTop:72,marginBottom:72,marginLeft:72,marginRight:72},letter:{name:"Letter",pageHeight:1100,pageWidth:850,marginTop:72,marginBottom:72,marginLeft:72,marginRight:72},legal:{name:"Legal",pageHeight:1400,pageWidth:850,marginTop:72,marginBottom:72,marginLeft:72,marginRight:72}};function Ft(){const{editor:e}=Me(),[t,r]=Oe(!1),[a,n]=Oe("page"),[o,l]=Oe({pageHeight:1056,pageWidth:816,pageGap:50,pageGapBorderSize:1,pageGapBorderColor:"#e5e5e5",pageBreakBackground:"#ffffff",marginTop:48,marginBottom:48,marginLeft:72,marginRight:72,contentMarginTop:10,contentMarginBottom:10,headerLeft:"",headerRight:"Page {page}",footerLeft:"",footerRight:""}),i=$e(null),s=$e(null),[d,c]=Oe({top:0,left:-9999,visibility:"hidden"});if(He(()=>{if(!t)return;const e=e=>{const t=e.target;t?.isConnected&&(i.current?.contains(t)||s.current?.contains(t)||r(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),We(()=>{if(!t)return;const e=()=>{const e=s.current,t=i.current;if(!e||!t)return;const r=window.innerWidth,a=window.innerHeight,n=t.getBoundingClientRect(),o=t.closest(".dropdown-portal")?.getBoundingClientRect()??n,{offsetWidth:l,offsetHeight:d}=e;let m=o.right+8;m+l>r-8&&(m=o.left-l-8),m=Math.max(8,Math.min(m,r-l-8));const g=Math.max(8,Math.min(n.top,a-d-8));c({top:g,left:m,maxHeight:a-g-8})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t,a]),!e)return null;const m=t=>{const r={...o,...t};l(r),t.pageHeight&&e.commands.updatePageHeight?.(t.pageHeight),t.pageWidth&&e.commands.updatePageWidth?.(t.pageWidth),t.pageGap&&e.commands.updatePageGap?.(t.pageGap),(t.marginTop||t.marginBottom||t.marginLeft||t.marginRight)&&e.commands.updateMargins?.({top:t.marginTop??o.marginTop,bottom:t.marginBottom??o.marginBottom,left:t.marginLeft??o.marginLeft,right:t.marginRight??o.marginRight}),(t.contentMarginTop||t.contentMarginBottom)&&e.commands.updateContentMargins?.({top:t.contentMarginTop??o.contentMarginTop,bottom:t.contentMarginBottom??o.contentMarginBottom}),(t.headerLeft||t.headerRight)&&e.commands.updateHeaderContent?.(t.headerLeft??o.headerLeft,t.headerRight??o.headerRight),(t.footerLeft||t.footerRight)&&e.commands.updateFooterContent?.(t.footerLeft??o.footerLeft,t.footerRight??o.footerRight),t.pageBreakBackground&&e.commands.updatePageBreakBackground?.(t.pageBreakBackground)};/* @__PURE__ */
|
|
3
3
|
return Ve("div",{className:"relative",ref:i,children:[/* @__PURE__ */Ve("button",{onClick:()=>r(!t),className:"flex items-center gap-1 px-2 py-1.5 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors",title:"Page settings",children:[/* @__PURE__ */Ke(ft,{className:"w-4 h-4"}),/* @__PURE__ */Ke(Ue,{className:"w-3 h-3"})]}),t&&Dt(/* @__PURE__ */Ve("div",{ref:s,"data-richtext-portal":!0,className:"dropdown-portal fixed flex flex-col overflow-hidden bg-white dark:bg-gray-900 border dark:border-gray-700 rounded-lg shadow-2xl z-50 w-96 max-w-[calc(100vw-16px)]",style:d,children:[/* @__PURE__ */Ke("div",{className:"flex border-b dark:border-gray-700 shrink-0",children:["page","spacing","header-footer"].map(e=>/* @__PURE__ */Ve("button",{onClick:()=>n(e),className:"flex-1 px-3 py-2 text-sm font-medium transition-colors "+(a===e?"border-b-2 border-blue-500 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"),children:["page"===e&&"Page","spacing"===e&&"Spacing","header-footer"===e&&"Header/Footer"]},e))}),/* @__PURE__ */Ve("div",{className:"flex-1 min-h-0 p-4 space-y-4 overflow-y-auto",children:["page"===a&&/* @__PURE__ */Ve(Ge,{children:[
|
|
4
4
|
/* @__PURE__ */Ve("div",{children:[/* @__PURE__ */Ke("label",{className:"block text-xs font-semibold mb-2 text-gray-700 dark:text-gray-300",children:"Presets"}),/* @__PURE__ */Ke("div",{className:"grid grid-cols-4 gap-2",children:Object.entries(Ot).map(([e,t])=>/* @__PURE__ */Ke("button",{onClick:()=>(e=>{m({pageHeight:e.pageHeight,pageWidth:e.pageWidth,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight})})(t),className:"px-2 py-1 text-xs bg-gray-50 dark:bg-gray-800 border dark:border-gray-700 rounded hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:t.name},e))})]}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as t}from"./toggle-BnR5VE66.js";import{c as o,t as e}from"./useButtonProps-Codtb0k0.js";import{useState as r}from"react";import{Extension as n}from"@tiptap/core";import{Fragment as a,jsx as i}from"react/jsx-runtime";var s="undefined"!=typeof window;function c(t,o){if(s){const e=window.URL.createObjectURL(t),r=document.createElement("a");return r.href=e,r.download=o,r.click(),window.URL.revokeObjectURL(e),Promise.resolve()}return Promise.resolve()}function d(){const n=e(p.name),[s,c]=r(!1),{icon:d,tooltip:m,shortcutKeys:l,tooltipOptions:u={},action:f,isActive:w}=n?.componentProps??{},{dataState:x,disabled:b,update:h}=o(w);return n?/* @__PURE__ */i(t,{action:async()=>{b||s||f&&(c(!0),await f(),h(),c(!1))},dataState:x,disabled:b||s,icon:s?"Loader":d,shortcutKeys:l,tooltip:m,tooltipOptions:u}):/* @__PURE__ */i(a,{})}var p=n.create({name:"exportWord",addOptions(){return{...this.parent?.(),button:({editor:t,t:o})=>({componentProps:{icon:"ExportWord",action:()=>t?.commands.exportToWord(),tooltip:o("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands:()=>({exportToWord:()=>async({editor:t})=>{try{const{default:o}=await(import("./html-to-docx.esm-
|
|
1
|
+
import{n as t}from"./toggle-BnR5VE66.js";import{c as o,t as e}from"./useButtonProps-Codtb0k0.js";import{useState as r}from"react";import{Extension as n}from"@tiptap/core";import{Fragment as a,jsx as i}from"react/jsx-runtime";var s="undefined"!=typeof window;function c(t,o){if(s){const e=window.URL.createObjectURL(t),r=document.createElement("a");return r.href=e,r.download=o,r.click(),window.URL.revokeObjectURL(e),Promise.resolve()}return Promise.resolve()}function d(){const n=e(p.name),[s,c]=r(!1),{icon:d,tooltip:m,shortcutKeys:l,tooltipOptions:u={},action:f,isActive:w}=n?.componentProps??{},{dataState:x,disabled:b,update:h}=o(w);return n?/* @__PURE__ */i(t,{action:async()=>{b||s||f&&(c(!0),await f(),h(),c(!1))},dataState:x,disabled:b||s,icon:s?"Loader":d,shortcutKeys:l,tooltip:m,tooltipOptions:u}):/* @__PURE__ */i(a,{})}var p=n.create({name:"exportWord",addOptions(){return{...this.parent?.(),button:({editor:t,t:o})=>({componentProps:{icon:"ExportWord",action:()=>t?.commands.exportToWord(),tooltip:o("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands:()=>({exportToWord:()=>async({editor:t})=>{try{const{default:o}=await(import("./html-to-docx.esm-BXXvDBHn.js")),e=await o(t.getHTML(),null,{});return c(new Blob([e]),"richtext-export-document.docx"),!0}catch(o){return!1}}})});export{d as n,c as r,p as t};
|
package/dist/ExportWord.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const t=require("./toggle-JU5XOZYT.cjs"),o=require("./useButtonProps-DbMOdE1Q.cjs"),e=require("./download-D9xxza1g.cjs");let r=require("react"),i=require("@tiptap/core"),n=require("react/jsx-runtime");var s=i.Extension.create({name:"exportWord",addOptions(){return{...this.parent?.(),button:({editor:t,t:o})=>({componentProps:{icon:"ExportWord",action:()=>t?.commands.exportToWord(),tooltip:o("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands:()=>({exportToWord:()=>async({editor:t})=>{try{const{default:o}=await Promise.resolve().then(()=>require("./html-to-docx.esm-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const t=require("./toggle-JU5XOZYT.cjs"),o=require("./useButtonProps-DbMOdE1Q.cjs"),e=require("./download-D9xxza1g.cjs");let r=require("react"),i=require("@tiptap/core"),n=require("react/jsx-runtime");var s=i.Extension.create({name:"exportWord",addOptions(){return{...this.parent?.(),button:({editor:t,t:o})=>({componentProps:{icon:"ExportWord",action:()=>t?.commands.exportToWord(),tooltip:o("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands:()=>({exportToWord:()=>async({editor:t})=>{try{const{default:o}=await Promise.resolve().then(()=>require("./html-to-docx.esm-oeykiqaU.cjs")),r=await o(t.getHTML(),null,{});return e.downloadFromBlob(new Blob([r]),"richtext-export-document.docx"),!0}catch(o){return!1}}})});exports.ExportWord=s,exports.RichTextExportWord=function(){const e=o.useButtonProps(s.name),[i,a]=(0,r.useState)(!1),{icon:c,tooltip:d,shortcutKeys:u,tooltipOptions:p={},action:l,isActive:x}=e?.componentProps??{},{dataState:m,disabled:j,update:b}=o.useToggleActive(x);return e?(0,n.jsx)(t.ActionButton,{action:async()=>{j||i||l&&(a(!0),await l(),b(),a(!1))},dataState:m,disabled:j||i,icon:i?"Loader":c,shortcutKeys:u,tooltip:d,tooltipOptions:p}):(0,n.jsx)(n.Fragment,{})};
|
package/dist/ExportWord.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as o,t as r}from"./ExportWord
|
|
1
|
+
import{n as o,t as r}from"./ExportWord-DAZyykON.js";export{r as ExportWord,o as RichTextExportWord};
|