@n8n/design-system 2.32.1 → 2.32.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @n8n/design-system@2.32.1 build /home/runner/work/n8n/n8n/packages/frontend/@n8n/design-system
2
+ > @n8n/design-system@2.32.2 build /home/runner/work/n8n/n8n/packages/frontend/@n8n/design-system
3
3
  > vite build
4
4
 
5
5
  vite v8.0.2 building client environment for production...
@@ -57,9 +57,10 @@ dist/emojiData-B2DmDStL.js 335.28 kB │ gzip: 56.50 kB
57
57
  dist/n8n-design-system.es.js 2,777.48 kB │ gzip: 748.24 kB
58
58
 
59
59
  [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
60
- - unplugin-icons (64%)
61
- - vite:vue (15%)
62
- - svg-loader (13%)
60
+ - unplugin-icons (63%)
61
+ - svg-loader (14%)
62
+ - vite:vue (13%)
63
+ - vite:css (6%)
63
64
  See https://rolldown.rs/options/checks#plugintimings for more details.
64
65
  
65
66
  
@@ -110,4 +111,4 @@ computing gzip size...
110
111
  dist/design-system.css 293.59 kB │ gzip: 39.12 kB
111
112
  dist/n8n-design-system.umd.js 2,822.38 kB │ gzip: 791.09 kB
112
113
 
113
- ✓ built in 7.48s
114
+ ✓ built in 7.13s
@@ -90139,22 +90139,8 @@ var Yct = X6.create({
90139
90139
  ]),
90140
90140
  style: F(a.value),
90141
90141
  "data-test-id": "n8n-markdown-editor"
90142
- }, [o.value && W(m) ? (z(), u(dlt, {
90142
+ }, [h.value ? (z(), f("div", {
90143
90143
  key: 0,
90144
- editor: W(m),
90145
- disabled: r.disabled || r.readonly,
90146
- "is-raw-mode": h.value,
90147
- mode: s.value,
90148
- variant: r.variant,
90149
- "onUpdate:isRawMode": x
90150
- }, null, 8, [
90151
- "editor",
90152
- "disabled",
90153
- "is-raw-mode",
90154
- "mode",
90155
- "variant"
90156
- ])) : d("", !0), h.value ? (z(), f("div", {
90157
- key: 1,
90158
90144
  class: N([e.$style.content, c.value ? e.$style.padTop : ""])
90159
90145
  }, [p("textarea", {
90160
90146
  ref_key: "rawEditor",
@@ -90170,10 +90156,24 @@ var Yct = X6.create({
90170
90156
  onFocus: C,
90171
90157
  onBlur: w
90172
90158
  }, null, 46, flt)], 2)) : (z(), u(W(Ret), {
90173
- key: 2,
90159
+ key: 1,
90174
90160
  editor: W(m),
90175
90161
  class: N([e.$style.content, c.value ? e.$style.padTop : ""])
90176
- }, null, 8, ["editor", "class"]))], 6));
90162
+ }, null, 8, ["editor", "class"])), o.value && W(m) ? (z(), u(dlt, {
90163
+ key: 2,
90164
+ editor: W(m),
90165
+ disabled: r.disabled || r.readonly,
90166
+ "is-raw-mode": h.value,
90167
+ mode: s.value,
90168
+ variant: r.variant,
90169
+ "onUpdate:isRawMode": x
90170
+ }, null, 8, [
90171
+ "editor",
90172
+ "disabled",
90173
+ "is-raw-mode",
90174
+ "mode",
90175
+ "variant"
90176
+ ])) : d("", !0)], 6));
90177
90177
  }
90178
90178
  }), [["__cssModules", { $style: {
90179
90179
  disabled: "_disabled_1a08k_3",
@@ -325,4 +325,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
325
325
 
326
326
  .ProseMirror:not(.ProseMirror-focused) *::-moz-selection {
327
327
  background: transparent;
328
- }`;Z6.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return e.options.injectCSS&&typeof document<`u`&&z6(Apt,e.options.injectNonce,`selection`),[new y4({key:new x4(`selection`),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||F6(n.selection)||e.view.dragging?null:U3.create(n.doc,[B3.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function jpt({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Mpt=Z6.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new x4(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new y4({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!jpt({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!jpt({node:r,types:n})}}})]}}),Npt=Z6.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>H5(e,t),redo:()=>({state:e,dispatch:t})=>U5(e,t)}},addProseMirrorPlugins(){return[Mot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Ppt=Z6.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(Zdt.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(Kdt.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(vft.configure(this.options.bulletList)),this.options.code!==!1&&e.push(eft.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(rft.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(ift.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(ppt.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(mpt.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(aft.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(oft.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(Npt.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(sft.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(fft.configure(this.options.italic)),this.options.listItem!==!1&&e.push(Pft.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(Vft.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(cot.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(rpt.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(spt.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(upt.configure(this.options.strike)),this.options.text!==!1&&e.push(dpt.configure(this.options.text)),this.options.underline!==!1&&e.push(fpt.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(Mpt.configure(this.options?.trailingNode)),e}}),Fpt={type:`doc`,content:[{type:`paragraph`}]},Ipt=e=>e||Fpt,Lpt=(e,t)=>{if(t){e.commands.setContent(t,{contentType:`markdown`,emitUpdate:!1});return}e.commands.setContent(Fpt,{emitUpdate:!1})},Rpt=e=>{try{let t=new URL(e);return[`http:`,`https:`,`mailto:`].includes(t.protocol)}catch{return!1}},zpt=(e,t)=>{let{$from:n}=e.state.selection;for(let e=n.depth;e>=0;e--)if(n.node(e).type.name===t)return!0;return!1},Bpt=e=>typeof e==`object`&&!!e&&`type`in e,Vpt=e=>Array.isArray(e)&&e.every(Bpt),Hpt=e=>{let t=e.state.selection.content().content.toJSON();return!Vpt(t)||!e.markdown?``:e.markdown.serialize({type:`doc`,content:t})},Upt=(e,t)=>!t.clipboardData||e.state.selection.empty?!1:(t.clipboardData.setData(`text/plain`,Hpt(e)),t.preventDefault(),!0),Wpt=(e,t)=>{if(!t.clipboardData)return!1;let n=t.clipboardData.getData(`text/plain`);if(!n)return!1;let r=n.trim(),{empty:i}=e.state.selection;return zpt(e,`codeBlock`)?(e.commands.insertContent(n),t.preventDefault(),!0):!i&&Rpt(r)?(e.chain().focus().extendMarkRange(`link`).setLink({href:r}).run(),t.preventDefault(),!0):((e.getMarkdown().trim()===``?e.commands.setContent:e.commands.insertContent)(n,{contentType:`markdown`}),t.preventDefault(),!0)},Gpt=(e={})=>({...e,class:[`n8n-markdown`,e.class].filter(Boolean).join(` `),"data-test-id":`n8n-markdown-editor-content`}),Kpt=e=>typeof e==`function`?t=>Gpt(e(t)):Gpt(e),qpt=(e,n)=>{let r=[Ppt,lot.configure({openOnClick:!1}),Xot.configure({placeholder:()=>e.placeholder??``,showOnlyCurrent:!1}),Act.configure({resizable:!0}),Nct,Mct,jct,Olt,Dlt.configure({nested:!0}),Vut.configure({markedOptions:{gfm:!0,breaks:!1}})],i=xat({content:Ipt(e.modelValue),contentType:e.modelValue?`markdown`:void 0,extensions:[...r,...e.extensions??[]],editable:!e.disabled&&!e.readonly,editorProps:{...e.editorProps,attributes:Kpt(e.editorProps?.attributes),handleDOMEvents:{...e.editorProps?.handleDOMEvents,copy:(t,n)=>e.editorProps?.handleDOMEvents?.copy?.(t,n)||(i.value?Upt(i.value,n):!1),paste:(t,n)=>e.editorProps?.handleDOMEvents?.paste?.(t,n)||(i.value?Wpt(i.value,n):!1)}},onCreate:({editor:e})=>{n(`ready`,e)},onUpdate:({editor:e})=>{let t=e.getMarkdown();n(`update:modelValue`,t),n(`input`,t)},onFocus:({event:e})=>{n(`focus`,e)},onBlur:({editor:e,event:t})=>{n(`blur`,e.getMarkdown(),t)}});return(0,t.watch)(()=>e.modelValue,e=>{i.value&&i.value.getMarkdown()!==e&&Lpt(i.value,e??``)}),(0,t.watch)(()=>[e.disabled,e.readonly],([e,t])=>{i.value?.setEditable(!e&&!t,!1)}),i},Jpt=F((0,t.defineComponent)({__name:`MarkdownEditorToolbar`,props:{editor:{},disabled:{type:Boolean},isRawMode:{type:Boolean},mode:{},variant:{}},emits:[`update:isRawMode`],setup(e,{emit:n}){let r=e=>T(e,void 0),i=e,a=n,o=(0,t.computed)(()=>[{id:`bold`,label:r(`markdownEditor.bold`),icon:`bold`,command:({editor:e})=>e.chain().focus().toggleBold().run()},{id:`italic`,label:r(`markdownEditor.italic`),icon:`italic`,command:({editor:e})=>e.chain().focus().toggleItalic().run()},{id:`strike`,label:r(`markdownEditor.strikethrough`),icon:`strikethrough`,command:({editor:e})=>e.chain().focus().toggleStrike().run()}]),s=(0,t.computed)(()=>[{id:`bulletList`,label:r(`markdownEditor.bulletList`),icon:`list`,command:({editor:e})=>e.chain().focus().toggleBulletList().run()},{id:`taskList`,label:r(`markdownEditor.taskList`),icon:`list-checks`,command:({editor:e})=>e.chain().focus().toggleTaskList().run()},{id:`codeBlock`,label:r(`markdownEditor.codeBlock`),icon:`file-code`,command:({editor:e})=>e.chain().focus().toggleCodeBlock().run()},{id:`blockquote`,label:r(`markdownEditor.blockquote`),icon:`quote`,command:({editor:e})=>e.chain().focus().toggleBlockquote().run()}]),c=(0,t.computed)(()=>[{id:`undo`,label:r(`markdownEditor.undo`),icon:`undo-2`,command:({editor:e})=>e.chain().focus().undo().run()},{id:`redo`,label:r(`markdownEditor.redo`),icon:`redo-2`,command:({editor:e})=>e.chain().focus().redo().run()}]),l=(0,t.computed)(()=>[{id:`paragraph`,label:r(`markdownEditor.text`),checked:f.value===`paragraph`},{id:`heading-1`,label:r(`markdownEditor.heading1`),checked:f.value===`heading-1`},{id:`heading-2`,label:r(`markdownEditor.heading2`),checked:f.value===`heading-2`},{id:`heading-3`,label:r(`markdownEditor.heading3`),checked:f.value===`heading-3`}]),u=(0,t.computed)(()=>o.value.filter(e=>i.editor.isActive(e.id)).map(e=>e.id)),d=(0,t.computed)(()=>s.value.filter(e=>i.editor.isActive(e.id)).map(e=>e.id)),f=(0,t.computed)(()=>i.editor.isActive(`heading`,{level:1})?`heading-1`:i.editor.isActive(`heading`,{level:2})?`heading-2`:i.editor.isActive(`heading`,{level:3})?`heading-3`:`paragraph`),p=(0,t.computed)(()=>l.value.find(e=>e.id===f.value)?.label??r(`markdownEditor.text`)),m=(0,t.computed)(()=>f.value===`heading-1`?`heading-1`:f.value===`heading-2`?`heading-2`:f.value===`heading-3`?`heading-3`:`type`),h=e=>{i.disabled||i.isRawMode||e.command({editor:i.editor})},g=e=>{if(!(i.disabled||i.isRawMode)){if(e===`heading-1`){i.editor.chain().focus().toggleHeading({level:1}).run();return}if(e===`heading-2`){i.editor.chain().focus().toggleHeading({level:2}).run();return}if(e===`heading-3`){i.editor.chain().focus().toggleHeading({level:3}).run();return}i.editor.chain().focus().setParagraph().run()}};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbar,e.mode===`always`?n.$style.alwaysVisible:``]),"data-test-id":`markdown-editor-toolbar`},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbarInner,e.variant===`contained`?n.$style.containedToolbar:``])},[(0,t.createVNode)((0,t.unref)(Ah),{content:p.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(yx),{items:l.value,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.textStyleDropdown),placement:`bottom-start`,onSelect:g},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(qa),{variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.textStyleTrigger),"aria-label":p.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(R),{icon:m.value,size:`small`},null,8,[`icon`]),(0,t.createVNode)((0,t.unref)(R),{icon:`chevron-down`,size:`small`})]),_:1},8,[`disabled`,`class`,`aria-label`])]),_:1},8,[`items`,`disabled`,`class`])]),_:1},8,[`content`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":u.value,type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`model-value`,`disabled`,`class`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":d.value,type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`model-value`,`disabled`,`class`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":[],type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`disabled`,`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbarGroup,n.$style.rawToggleGroup])},[(0,t.createVNode)((0,t.unref)(C0),{"model-value":e.isRawMode,label:e.isRawMode?r(`markdownEditor.formattedMarkdownView`):r(`markdownEditor.rawMarkdownView`),icon:`file-code`,variant:`ghost`,size:`small`,disabled:e.disabled,"onUpdate:modelValue":i[0]||=e=>a(`update:isRawMode`,e)},null,8,[`model-value`,`label`,`disabled`])],2)],2)],2))}}),[[`__cssModules`,{$style:{toolbar:`_toolbar_trk2s_1`,toolbarInner:`_toolbarInner_trk2s_11`,containedToolbar:`_containedToolbar_trk2s_21`,alwaysVisible:`_alwaysVisible_trk2s_28`,textStyleDropdown:`_textStyleDropdown_trk2s_34`,textStyleTrigger:`_textStyleTrigger_trk2s_38`,toolbarGroup:`_toolbarGroup_trk2s_43`,rawToggleGroup:`_rawToggleGroup_trk2s_51`}}]]),Ypt=[`value`,`placeholder`,`disabled`,`readonly`],Xpt=F((0,t.defineComponent)({__name:`MarkdownEditor`,props:{modelValue:{default:``},variant:{default:`contained`},placeholder:{default:``},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},showToolbar:{default:`always`},maxHeight:{default:`480px`},extensions:{},editorProps:{},containerClass:{default:``}},emits:[`update:modelValue`,`input`,`focus`,`blur`,`ready`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.computed)(()=>({"--markdown-editor-max-height":typeof i.maxHeight==`number`?`${i.maxHeight}px`:i.maxHeight})),s=(0,t.computed)(()=>i.showToolbar!==`never`),c=(0,t.computed)(()=>i.showToolbar===`always`?`always`:`hover`),l=(0,t.computed)(()=>i.showToolbar===`always`),u=qpt(i,a),d=(0,t.ref)(!1),f=(0,t.ref)(i.modelValue),p=(0,t.ref)(),m=(0,t.ref)(),h=(0,t.ref)();(0,t.watch)(()=>i.modelValue,e=>{d.value&&(f.value=e??``)});function g(){let e=p.value?.querySelector(`.n8n-markdown`);return e?`${e.clientHeight}px`:void 0}async function _(e){if(e){f.value=u.value?.getMarkdown()??i.modelValue,h.value=g(),d.value=!0,await(0,t.nextTick)(),m.value?.focus();return}u.value&&Lpt(u.value,f.value),d.value=!1,h.value=void 0,await(0,t.nextTick)(),u.value?.commands.focus()}function v(e){let t=e.target.value;f.value=t,a(`update:modelValue`,t),a(`input`,t)}function y(e){a(`focus`,e)}function b(e){a(`blur`,f.value,e)}function x(){if(d.value){m.value?.focus();return}u.value?.commands.focus()}function S(){if(d.value){m.value?.blur();return}u.value?.commands.blur()}function C(){return d.value?f.value:u.value?.getMarkdown()??``}function w(){return u.value}return n({focus:x,blur:S,getMarkdown:C,getEditor:w}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`container`,ref:p,class:(0,t.normalizeClass)([`n8n-markdown-editor-container`,e.$style.container,i.variant===`ghost`?e.$style.ghost:e.$style.contained,i.containerClass,i.disabled?e.$style.disabled:``]),style:(0,t.normalizeStyle)(o.value),"data-test-id":`n8n-markdown-editor`},[s.value&&(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)(Jpt,{key:0,editor:(0,t.unref)(u),disabled:i.disabled||i.readonly,"is-raw-mode":d.value,mode:c.value,variant:i.variant,"onUpdate:isRawMode":_},null,8,[`editor`,`disabled`,`is-raw-mode`,`mode`,`variant`])):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([e.$style.content,l.value?e.$style.padTop:``])},[(0,t.createElementVNode)(`textarea`,{ref_key:`rawEditor`,ref:m,value:f.value,class:(0,t.normalizeClass)([e.$style.rawContent,l.value?e.$style.padTop:``]),style:(0,t.normalizeStyle)({"--markdown-editor-raw-height":h.value}),placeholder:i.placeholder,disabled:i.disabled,readonly:i.readonly,"data-test-id":`n8n-markdown-editor-raw-content`,onInput:v,onFocus:y,onBlur:b},null,46,Ypt)],2)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(bat),{key:2,editor:(0,t.unref)(u),class:(0,t.normalizeClass)([e.$style.content,l.value?e.$style.padTop:``])},null,8,[`editor`,`class`]))],6))}}),[[`__cssModules`,{$style:{disabled:`_disabled_1a08k_3`,container:`_container_1a08k_8`,ghost:`_ghost_1a08k_16`,contained:`_contained_1a08k_21`,content:`_content_1a08k_52`,padTop:`_padTop_1a08k_71`,rawContent:`_rawContent_1a08k_89`}}]]);e.IconBodyLoaderKey=Wn,e.MessageWrapper=rMe,e.N8nActionDropdown=KWe,e.N8nActionPill=d0,e.N8nActionToggle=xx,e.N8nAiActivityStep=f0e,e.N8nAiActivityStepButton=b0,e.N8nAiActivityStepChevron=x0,e.N8nAiActivityStepGroup=o0e,e.N8nAiActivityStepResultSection=u0e,e.N8nAiModelSelectorDropdown=ZWe,e.N8nAlert=hGe,e.N8nAlertDialog=_6e,e.N8nAnimatedCollapsibleContent=S0,e.N8nAskAssistantButton=ee,e.N8nAskAssistantChat=lNe,e.N8nAssistantAvatar=dNe,e.N8nAssistantIcon=uNe,e.N8nAssistantText=fNe,e.N8nAvatar=Lx,e.N8nBadge=Fh,e.N8nBlockUi=TJe,e.N8nBreadcrumbs=G2e,e.N8nButton=qa,e.N8nCallout=Rx,e.N8nCanvasCollaborationPill=DJe,e.N8nCanvasThinkingPill=EJe,e.N8nCard=OJe,e.N8nChatInput=Nh,e.N8nCheckbox=mS,e.N8nCircleLoader=NJe,e.N8nCollapsiblePanel=mYe,e.N8nColorPicker=wYe,e.N8nCommandBar=n6e,e.N8nDataTableServer=V3e,e.N8nDatatable=AYe,e.N8nDateRangePicker=X3e,e.N8nDialog=h6e,e.N8nDialogClose=r6e,e.N8nDialogContent=f2,e.N8nDialogDescription=p2,e.N8nDialogFooter=g6e,e.N8nDialogHeader=m2,e.N8nDialogOverlay=h2,e.N8nDialogTitle=g2,e.N8nDropdownMenu=yx,e.N8nDropdownMenuItem=_x,e.N8nEmptyState=VYe,e.N8nExternalLink=HYe,e.N8nFloatingWindow=UYe,e.N8nFormBox=RXe,e.N8nFormInput=OS,e.N8nFormInputs=AS,e.N8nHeaderAction=BXe,e.N8nHeading=dS,e.N8nHoverCard=jS,e.N8nIcon=R,e.N8nIconButton=Ya,e.N8nIconPicker=O2e,e.N8nInfoAccordion=gZe,e.N8nInfoTip=_Ze,e.N8nInlineAskAssistantButton=mZe,e.N8nInlineTextEdit=q3e,e.N8nInput=mo,e.N8nInputLabel=hS,e.N8nInputNumber=vZe,e.N8nInputNumber2=g8e,e.N8nKeyboardShortcut=bx,e.N8nLink=DS,e.N8nLoading=dx,e.N8nLoading2=h8e,e.N8nLogo=TZe,e.N8nMarkdown=GZe,e.N8nMarkdownEditor=Xpt,e.N8nMenuItem=JZe,e.N8nMessageRating=ho,e.N8nNavigationDropdown=QZe,e.N8nNodeCreatorNode=tQe,e.N8nNodeIcon=g0,e.N8nNotice=sQe,e.N8nOption=aS,e.N8nPagination=oS,e.N8nPagination2=k6e,e.N8nPlugin=v6e,e.N8nPopover=_0,e.N8nPopoverReka=_0,e.N8nPreviewTag=m0,e.N8nPromptInputSuggestions=oNe,e.N8nPulse=S$e,e.N8nRadioButtons=I$e,e.N8nRadioGroup=b8e,e.N8nRadioGroupItem=y8e,e.N8nRecycleScroller=v0,e.N8nResizeObserver=kS,e.N8nResizeWrapper=H$e,e.N8nResizeableSticky=X$e,e.N8nRoute=ES,e.N8nScrollArea=b0e,e.N8nSectionHeader=cQe,e.N8nSelect=sS,e.N8nSelect2=T6e,e.N8nSelect2Item=w6e,e.N8nSelectableList=dQe,e.N8nSendStopButton=XMe,e.N8nSettingsLayout=fQe,e.N8nSettingsPageHeader=mQe,e.N8nSettingsRow=vQe,e.N8nSettingsRowConfigure=yQe,e.N8nSettingsRowGroup=bQe,e.N8nSettingsSaveBar=SQe,e.N8nSettingsSection=CQe,e.N8nSpinner=G$e,e.N8nStatusDot=K$e,e.N8nSticky=Y$e,e.N8nSuggestedActions=$$e,e.N8nSwitch=t1e,e.N8nSwitch2=e1e,e.N8nTableBase=cS,e.N8nTableHeaderControlsButton=K3e,e.N8nTabs=s1e,e.N8nTag=p0,e.N8nTags=c1e,e.N8nTagsInput2=O8e,e.N8nText=z,e.N8nToggle=C0,e.N8nToggleGroup=w0,e.N8nTooltip=Ah,e.N8nTree=y0e,e.N8nTree2=D8e,e.N8nUserInfo=T0,e.N8nUserSelect=w0e,e.N8nUserStack=C0e,e.N8nUsersList=E0e,e.TOOLTIP_DELAY_MS=zXe,e.TagsInputInput=Qke,e.TagsInputItemDelete=nAe,e.TagsInputItemText=rAe,e.ThinkingMessage=jh,e.adjustColorLightness=Hx,e.createFormEventBus=Wx,e.createPasswordRules=fS,e.directionsCursorMaps=y0,e.getContrastTextColor=Vx,e.getValueByPath=iS,e.hasRequiredProps=qMe,e.isAgentSuggestionMessage=UMe,e.isBinary=z$e,e.isCodeDiffMessage=RMe,e.isCustomMenuItem=L$e,e.isCustomMessage=GMe,e.isEndSessionMessage=BMe,e.isErrorMessage=zMe,e.isEventBindingElementAttribute=nS,e.isNodeIcon=Yfe,e.isSessionErrorMessage=HMe,e.isSessionTimeoutMessage=VMe,e.isSummaryBlock=LMe,e.isTaskAbortedMessage=IMe,e.isTextMessage=FMe,e.isThinkingGroupMessage=KMe,e.isToolMessage=Mh,e.isValidHexColor=Bx,e.isWorkflowUpdatedMessage=WMe,Object.defineProperty(e,`locale`,{enumerable:!0,get:function(){return x}}),e.n8nHtml=Oh,e.n8nTruncate=kAe,e.removeDynamicAttributes=CYe,e.serializeAttr=tS,e.toggleCheckbox=eS,e.uid=rS,e.updatedIconSet=Hn,e.useChatInputAutoFocus=iNe,e.useDropdownSearch=XWe,e.useInjectIconBodyLoader=Gn,e.useMessage=S6e});
328
+ }`;Z6.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return e.options.injectCSS&&typeof document<`u`&&z6(Apt,e.options.injectNonce,`selection`),[new y4({key:new x4(`selection`),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||F6(n.selection)||e.view.dragging?null:U3.create(n.doc,[B3.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function jpt({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Mpt=Z6.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new x4(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new y4({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!jpt({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!jpt({node:r,types:n})}}})]}}),Npt=Z6.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>H5(e,t),redo:()=>({state:e,dispatch:t})=>U5(e,t)}},addProseMirrorPlugins(){return[Mot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Ppt=Z6.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(Zdt.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(Kdt.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(vft.configure(this.options.bulletList)),this.options.code!==!1&&e.push(eft.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(rft.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(ift.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(ppt.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(mpt.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(aft.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(oft.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(Npt.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(sft.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(fft.configure(this.options.italic)),this.options.listItem!==!1&&e.push(Pft.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(Vft.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(cot.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(rpt.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(spt.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(upt.configure(this.options.strike)),this.options.text!==!1&&e.push(dpt.configure(this.options.text)),this.options.underline!==!1&&e.push(fpt.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(Mpt.configure(this.options?.trailingNode)),e}}),Fpt={type:`doc`,content:[{type:`paragraph`}]},Ipt=e=>e||Fpt,Lpt=(e,t)=>{if(t){e.commands.setContent(t,{contentType:`markdown`,emitUpdate:!1});return}e.commands.setContent(Fpt,{emitUpdate:!1})},Rpt=e=>{try{let t=new URL(e);return[`http:`,`https:`,`mailto:`].includes(t.protocol)}catch{return!1}},zpt=(e,t)=>{let{$from:n}=e.state.selection;for(let e=n.depth;e>=0;e--)if(n.node(e).type.name===t)return!0;return!1},Bpt=e=>typeof e==`object`&&!!e&&`type`in e,Vpt=e=>Array.isArray(e)&&e.every(Bpt),Hpt=e=>{let t=e.state.selection.content().content.toJSON();return!Vpt(t)||!e.markdown?``:e.markdown.serialize({type:`doc`,content:t})},Upt=(e,t)=>!t.clipboardData||e.state.selection.empty?!1:(t.clipboardData.setData(`text/plain`,Hpt(e)),t.preventDefault(),!0),Wpt=(e,t)=>{if(!t.clipboardData)return!1;let n=t.clipboardData.getData(`text/plain`);if(!n)return!1;let r=n.trim(),{empty:i}=e.state.selection;return zpt(e,`codeBlock`)?(e.commands.insertContent(n),t.preventDefault(),!0):!i&&Rpt(r)?(e.chain().focus().extendMarkRange(`link`).setLink({href:r}).run(),t.preventDefault(),!0):((e.getMarkdown().trim()===``?e.commands.setContent:e.commands.insertContent)(n,{contentType:`markdown`}),t.preventDefault(),!0)},Gpt=(e={})=>({...e,class:[`n8n-markdown`,e.class].filter(Boolean).join(` `),"data-test-id":`n8n-markdown-editor-content`}),Kpt=e=>typeof e==`function`?t=>Gpt(e(t)):Gpt(e),qpt=(e,n)=>{let r=[Ppt,lot.configure({openOnClick:!1}),Xot.configure({placeholder:()=>e.placeholder??``,showOnlyCurrent:!1}),Act.configure({resizable:!0}),Nct,Mct,jct,Olt,Dlt.configure({nested:!0}),Vut.configure({markedOptions:{gfm:!0,breaks:!1}})],i=xat({content:Ipt(e.modelValue),contentType:e.modelValue?`markdown`:void 0,extensions:[...r,...e.extensions??[]],editable:!e.disabled&&!e.readonly,editorProps:{...e.editorProps,attributes:Kpt(e.editorProps?.attributes),handleDOMEvents:{...e.editorProps?.handleDOMEvents,copy:(t,n)=>e.editorProps?.handleDOMEvents?.copy?.(t,n)||(i.value?Upt(i.value,n):!1),paste:(t,n)=>e.editorProps?.handleDOMEvents?.paste?.(t,n)||(i.value?Wpt(i.value,n):!1)}},onCreate:({editor:e})=>{n(`ready`,e)},onUpdate:({editor:e})=>{let t=e.getMarkdown();n(`update:modelValue`,t),n(`input`,t)},onFocus:({event:e})=>{n(`focus`,e)},onBlur:({editor:e,event:t})=>{n(`blur`,e.getMarkdown(),t)}});return(0,t.watch)(()=>e.modelValue,e=>{i.value&&i.value.getMarkdown()!==e&&Lpt(i.value,e??``)}),(0,t.watch)(()=>[e.disabled,e.readonly],([e,t])=>{i.value?.setEditable(!e&&!t,!1)}),i},Jpt=F((0,t.defineComponent)({__name:`MarkdownEditorToolbar`,props:{editor:{},disabled:{type:Boolean},isRawMode:{type:Boolean},mode:{},variant:{}},emits:[`update:isRawMode`],setup(e,{emit:n}){let r=e=>T(e,void 0),i=e,a=n,o=(0,t.computed)(()=>[{id:`bold`,label:r(`markdownEditor.bold`),icon:`bold`,command:({editor:e})=>e.chain().focus().toggleBold().run()},{id:`italic`,label:r(`markdownEditor.italic`),icon:`italic`,command:({editor:e})=>e.chain().focus().toggleItalic().run()},{id:`strike`,label:r(`markdownEditor.strikethrough`),icon:`strikethrough`,command:({editor:e})=>e.chain().focus().toggleStrike().run()}]),s=(0,t.computed)(()=>[{id:`bulletList`,label:r(`markdownEditor.bulletList`),icon:`list`,command:({editor:e})=>e.chain().focus().toggleBulletList().run()},{id:`taskList`,label:r(`markdownEditor.taskList`),icon:`list-checks`,command:({editor:e})=>e.chain().focus().toggleTaskList().run()},{id:`codeBlock`,label:r(`markdownEditor.codeBlock`),icon:`file-code`,command:({editor:e})=>e.chain().focus().toggleCodeBlock().run()},{id:`blockquote`,label:r(`markdownEditor.blockquote`),icon:`quote`,command:({editor:e})=>e.chain().focus().toggleBlockquote().run()}]),c=(0,t.computed)(()=>[{id:`undo`,label:r(`markdownEditor.undo`),icon:`undo-2`,command:({editor:e})=>e.chain().focus().undo().run()},{id:`redo`,label:r(`markdownEditor.redo`),icon:`redo-2`,command:({editor:e})=>e.chain().focus().redo().run()}]),l=(0,t.computed)(()=>[{id:`paragraph`,label:r(`markdownEditor.text`),checked:f.value===`paragraph`},{id:`heading-1`,label:r(`markdownEditor.heading1`),checked:f.value===`heading-1`},{id:`heading-2`,label:r(`markdownEditor.heading2`),checked:f.value===`heading-2`},{id:`heading-3`,label:r(`markdownEditor.heading3`),checked:f.value===`heading-3`}]),u=(0,t.computed)(()=>o.value.filter(e=>i.editor.isActive(e.id)).map(e=>e.id)),d=(0,t.computed)(()=>s.value.filter(e=>i.editor.isActive(e.id)).map(e=>e.id)),f=(0,t.computed)(()=>i.editor.isActive(`heading`,{level:1})?`heading-1`:i.editor.isActive(`heading`,{level:2})?`heading-2`:i.editor.isActive(`heading`,{level:3})?`heading-3`:`paragraph`),p=(0,t.computed)(()=>l.value.find(e=>e.id===f.value)?.label??r(`markdownEditor.text`)),m=(0,t.computed)(()=>f.value===`heading-1`?`heading-1`:f.value===`heading-2`?`heading-2`:f.value===`heading-3`?`heading-3`:`type`),h=e=>{i.disabled||i.isRawMode||e.command({editor:i.editor})},g=e=>{if(!(i.disabled||i.isRawMode)){if(e===`heading-1`){i.editor.chain().focus().toggleHeading({level:1}).run();return}if(e===`heading-2`){i.editor.chain().focus().toggleHeading({level:2}).run();return}if(e===`heading-3`){i.editor.chain().focus().toggleHeading({level:3}).run();return}i.editor.chain().focus().setParagraph().run()}};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbar,e.mode===`always`?n.$style.alwaysVisible:``]),"data-test-id":`markdown-editor-toolbar`},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbarInner,e.variant===`contained`?n.$style.containedToolbar:``])},[(0,t.createVNode)((0,t.unref)(Ah),{content:p.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(yx),{items:l.value,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.textStyleDropdown),placement:`bottom-start`,onSelect:g},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(qa),{variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.textStyleTrigger),"aria-label":p.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(R),{icon:m.value,size:`small`},null,8,[`icon`]),(0,t.createVNode)((0,t.unref)(R),{icon:`chevron-down`,size:`small`})]),_:1},8,[`disabled`,`class`,`aria-label`])]),_:1},8,[`items`,`disabled`,`class`])]),_:1},8,[`content`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":u.value,type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`model-value`,`disabled`,`class`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":d.value,type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`model-value`,`disabled`,`class`]),(0,t.createVNode)((0,t.unref)(w0),{"model-value":[],type:`multiple`,variant:`ghost`,size:`small`,disabled:e.disabled||e.isRawMode,class:(0,t.normalizeClass)(n.$style.toolbarGroup)},{default:(0,t.withCtx)(e=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C0),(0,t.mergeProps)({key:n.id,value:n.id,label:n.label,icon:n.icon},{ref_for:!0},e,{onClick:e=>h(n)}),null,16,[`value`,`label`,`icon`,`onClick`]))),128))]),_:1},8,[`disabled`,`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([n.$style.toolbarGroup,n.$style.rawToggleGroup])},[(0,t.createVNode)((0,t.unref)(C0),{"model-value":e.isRawMode,label:e.isRawMode?r(`markdownEditor.formattedMarkdownView`):r(`markdownEditor.rawMarkdownView`),icon:`file-code`,variant:`ghost`,size:`small`,disabled:e.disabled,"onUpdate:modelValue":i[0]||=e=>a(`update:isRawMode`,e)},null,8,[`model-value`,`label`,`disabled`])],2)],2)],2))}}),[[`__cssModules`,{$style:{toolbar:`_toolbar_trk2s_1`,toolbarInner:`_toolbarInner_trk2s_11`,containedToolbar:`_containedToolbar_trk2s_21`,alwaysVisible:`_alwaysVisible_trk2s_28`,textStyleDropdown:`_textStyleDropdown_trk2s_34`,textStyleTrigger:`_textStyleTrigger_trk2s_38`,toolbarGroup:`_toolbarGroup_trk2s_43`,rawToggleGroup:`_rawToggleGroup_trk2s_51`}}]]),Ypt=[`value`,`placeholder`,`disabled`,`readonly`],Xpt=F((0,t.defineComponent)({__name:`MarkdownEditor`,props:{modelValue:{default:``},variant:{default:`contained`},placeholder:{default:``},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},showToolbar:{default:`always`},maxHeight:{default:`480px`},extensions:{},editorProps:{},containerClass:{default:``}},emits:[`update:modelValue`,`input`,`focus`,`blur`,`ready`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.computed)(()=>({"--markdown-editor-max-height":typeof i.maxHeight==`number`?`${i.maxHeight}px`:i.maxHeight})),s=(0,t.computed)(()=>i.showToolbar!==`never`),c=(0,t.computed)(()=>i.showToolbar===`always`?`always`:`hover`),l=(0,t.computed)(()=>i.showToolbar===`always`),u=qpt(i,a),d=(0,t.ref)(!1),f=(0,t.ref)(i.modelValue),p=(0,t.ref)(),m=(0,t.ref)(),h=(0,t.ref)();(0,t.watch)(()=>i.modelValue,e=>{d.value&&(f.value=e??``)});function g(){let e=p.value?.querySelector(`.n8n-markdown`);return e?`${e.clientHeight}px`:void 0}async function _(e){if(e){f.value=u.value?.getMarkdown()??i.modelValue,h.value=g(),d.value=!0,await(0,t.nextTick)(),m.value?.focus();return}u.value&&Lpt(u.value,f.value),d.value=!1,h.value=void 0,await(0,t.nextTick)(),u.value?.commands.focus()}function v(e){let t=e.target.value;f.value=t,a(`update:modelValue`,t),a(`input`,t)}function y(e){a(`focus`,e)}function b(e){a(`blur`,f.value,e)}function x(){if(d.value){m.value?.focus();return}u.value?.commands.focus()}function S(){if(d.value){m.value?.blur();return}u.value?.commands.blur()}function C(){return d.value?f.value:u.value?.getMarkdown()??``}function w(){return u.value}return n({focus:x,blur:S,getMarkdown:C,getEditor:w}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`container`,ref:p,class:(0,t.normalizeClass)([`n8n-markdown-editor-container`,e.$style.container,i.variant===`ghost`?e.$style.ghost:e.$style.contained,i.containerClass,i.disabled?e.$style.disabled:``]),style:(0,t.normalizeStyle)(o.value),"data-test-id":`n8n-markdown-editor`},[d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([e.$style.content,l.value?e.$style.padTop:``])},[(0,t.createElementVNode)(`textarea`,{ref_key:`rawEditor`,ref:m,value:f.value,class:(0,t.normalizeClass)([e.$style.rawContent,l.value?e.$style.padTop:``]),style:(0,t.normalizeStyle)({"--markdown-editor-raw-height":h.value}),placeholder:i.placeholder,disabled:i.disabled,readonly:i.readonly,"data-test-id":`n8n-markdown-editor-raw-content`,onInput:v,onFocus:y,onBlur:b},null,46,Ypt)],2)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(bat),{key:1,editor:(0,t.unref)(u),class:(0,t.normalizeClass)([e.$style.content,l.value?e.$style.padTop:``])},null,8,[`editor`,`class`])),s.value&&(0,t.unref)(u)?((0,t.openBlock)(),(0,t.createBlock)(Jpt,{key:2,editor:(0,t.unref)(u),disabled:i.disabled||i.readonly,"is-raw-mode":d.value,mode:c.value,variant:i.variant,"onUpdate:isRawMode":_},null,8,[`editor`,`disabled`,`is-raw-mode`,`mode`,`variant`])):(0,t.createCommentVNode)(``,!0)],6))}}),[[`__cssModules`,{$style:{disabled:`_disabled_1a08k_3`,container:`_container_1a08k_8`,ghost:`_ghost_1a08k_16`,contained:`_contained_1a08k_21`,content:`_content_1a08k_52`,padTop:`_padTop_1a08k_71`,rawContent:`_rawContent_1a08k_89`}}]]);e.IconBodyLoaderKey=Wn,e.MessageWrapper=rMe,e.N8nActionDropdown=KWe,e.N8nActionPill=d0,e.N8nActionToggle=xx,e.N8nAiActivityStep=f0e,e.N8nAiActivityStepButton=b0,e.N8nAiActivityStepChevron=x0,e.N8nAiActivityStepGroup=o0e,e.N8nAiActivityStepResultSection=u0e,e.N8nAiModelSelectorDropdown=ZWe,e.N8nAlert=hGe,e.N8nAlertDialog=_6e,e.N8nAnimatedCollapsibleContent=S0,e.N8nAskAssistantButton=ee,e.N8nAskAssistantChat=lNe,e.N8nAssistantAvatar=dNe,e.N8nAssistantIcon=uNe,e.N8nAssistantText=fNe,e.N8nAvatar=Lx,e.N8nBadge=Fh,e.N8nBlockUi=TJe,e.N8nBreadcrumbs=G2e,e.N8nButton=qa,e.N8nCallout=Rx,e.N8nCanvasCollaborationPill=DJe,e.N8nCanvasThinkingPill=EJe,e.N8nCard=OJe,e.N8nChatInput=Nh,e.N8nCheckbox=mS,e.N8nCircleLoader=NJe,e.N8nCollapsiblePanel=mYe,e.N8nColorPicker=wYe,e.N8nCommandBar=n6e,e.N8nDataTableServer=V3e,e.N8nDatatable=AYe,e.N8nDateRangePicker=X3e,e.N8nDialog=h6e,e.N8nDialogClose=r6e,e.N8nDialogContent=f2,e.N8nDialogDescription=p2,e.N8nDialogFooter=g6e,e.N8nDialogHeader=m2,e.N8nDialogOverlay=h2,e.N8nDialogTitle=g2,e.N8nDropdownMenu=yx,e.N8nDropdownMenuItem=_x,e.N8nEmptyState=VYe,e.N8nExternalLink=HYe,e.N8nFloatingWindow=UYe,e.N8nFormBox=RXe,e.N8nFormInput=OS,e.N8nFormInputs=AS,e.N8nHeaderAction=BXe,e.N8nHeading=dS,e.N8nHoverCard=jS,e.N8nIcon=R,e.N8nIconButton=Ya,e.N8nIconPicker=O2e,e.N8nInfoAccordion=gZe,e.N8nInfoTip=_Ze,e.N8nInlineAskAssistantButton=mZe,e.N8nInlineTextEdit=q3e,e.N8nInput=mo,e.N8nInputLabel=hS,e.N8nInputNumber=vZe,e.N8nInputNumber2=g8e,e.N8nKeyboardShortcut=bx,e.N8nLink=DS,e.N8nLoading=dx,e.N8nLoading2=h8e,e.N8nLogo=TZe,e.N8nMarkdown=GZe,e.N8nMarkdownEditor=Xpt,e.N8nMenuItem=JZe,e.N8nMessageRating=ho,e.N8nNavigationDropdown=QZe,e.N8nNodeCreatorNode=tQe,e.N8nNodeIcon=g0,e.N8nNotice=sQe,e.N8nOption=aS,e.N8nPagination=oS,e.N8nPagination2=k6e,e.N8nPlugin=v6e,e.N8nPopover=_0,e.N8nPopoverReka=_0,e.N8nPreviewTag=m0,e.N8nPromptInputSuggestions=oNe,e.N8nPulse=S$e,e.N8nRadioButtons=I$e,e.N8nRadioGroup=b8e,e.N8nRadioGroupItem=y8e,e.N8nRecycleScroller=v0,e.N8nResizeObserver=kS,e.N8nResizeWrapper=H$e,e.N8nResizeableSticky=X$e,e.N8nRoute=ES,e.N8nScrollArea=b0e,e.N8nSectionHeader=cQe,e.N8nSelect=sS,e.N8nSelect2=T6e,e.N8nSelect2Item=w6e,e.N8nSelectableList=dQe,e.N8nSendStopButton=XMe,e.N8nSettingsLayout=fQe,e.N8nSettingsPageHeader=mQe,e.N8nSettingsRow=vQe,e.N8nSettingsRowConfigure=yQe,e.N8nSettingsRowGroup=bQe,e.N8nSettingsSaveBar=SQe,e.N8nSettingsSection=CQe,e.N8nSpinner=G$e,e.N8nStatusDot=K$e,e.N8nSticky=Y$e,e.N8nSuggestedActions=$$e,e.N8nSwitch=t1e,e.N8nSwitch2=e1e,e.N8nTableBase=cS,e.N8nTableHeaderControlsButton=K3e,e.N8nTabs=s1e,e.N8nTag=p0,e.N8nTags=c1e,e.N8nTagsInput2=O8e,e.N8nText=z,e.N8nToggle=C0,e.N8nToggleGroup=w0,e.N8nTooltip=Ah,e.N8nTree=y0e,e.N8nTree2=D8e,e.N8nUserInfo=T0,e.N8nUserSelect=w0e,e.N8nUserStack=C0e,e.N8nUsersList=E0e,e.TOOLTIP_DELAY_MS=zXe,e.TagsInputInput=Qke,e.TagsInputItemDelete=nAe,e.TagsInputItemText=rAe,e.ThinkingMessage=jh,e.adjustColorLightness=Hx,e.createFormEventBus=Wx,e.createPasswordRules=fS,e.directionsCursorMaps=y0,e.getContrastTextColor=Vx,e.getValueByPath=iS,e.hasRequiredProps=qMe,e.isAgentSuggestionMessage=UMe,e.isBinary=z$e,e.isCodeDiffMessage=RMe,e.isCustomMenuItem=L$e,e.isCustomMessage=GMe,e.isEndSessionMessage=BMe,e.isErrorMessage=zMe,e.isEventBindingElementAttribute=nS,e.isNodeIcon=Yfe,e.isSessionErrorMessage=HMe,e.isSessionTimeoutMessage=VMe,e.isSummaryBlock=LMe,e.isTaskAbortedMessage=IMe,e.isTextMessage=FMe,e.isThinkingGroupMessage=KMe,e.isToolMessage=Mh,e.isValidHexColor=Bx,e.isWorkflowUpdatedMessage=WMe,Object.defineProperty(e,`locale`,{enumerable:!0,get:function(){return x}}),e.n8nHtml=Oh,e.n8nTruncate=kAe,e.removeDynamicAttributes=CYe,e.serializeAttr=tS,e.toggleCheckbox=eS,e.uid=rS,e.updatedIconSet=Hn,e.useChatInputAutoFocus=iNe,e.useDropdownSearch=XWe,e.useInjectIconBodyLoader=Gn,e.useMessage=S6e});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@n8n/design-system",
4
- "version": "2.32.1",
4
+ "version": "2.32.2",
5
5
  "main": "src/index.ts",
6
6
  "import": "src/index.ts",
7
7
  "license": "SEE LICENSE IN LICENSE.md",