import{P as a}from"./prompt-input-BLCttowi.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./index-B0y2_lLF.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./tooltip-C_a-XGZ8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-BR3bc_RM.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./normalize-props-D7NI5JRu.js";import"./computed-style-C0hzrq9-.js";import"./overflow-CkG1DOya.js";const i=[{resourceId:"table:users",resourceType:"table",name:"Users",description:"prod.users"},{resourceId:"table:sessions",resourceType:"table",name:"Sessions",description:"prod.sessions_v2"},{resourceId:"connector:bigquery",resourceType:"connector",name:"BigQuery",description:"Analytics"}],n=JSON.stringify({root:{children:[{children:[{detail:0,format:0,mode:"normal",style:"",text:"Type your query here or press / to add a reference.",type:"text",version:1}],direction:"ltr",format:"",indent:0,type:"paragraph",version:1}],direction:"ltr",format:"",indent:0,type:"root",version:1}},null,2),q={title:"Editors/PromptEditor",component:a,parameters:{layout:"padded"},args:{defaultState:n,debug:!1,isEditable:!0,references:i,onChange:e=>console.log("onChange:",e),onError:e=>console.error(e),onAddReference:(e,s)=>console.log("reference added:",e,s)},argTypes:{defaultState:{control:"text",description:"Serialized Lexical editor state (JSON string)"},isEditable:{control:"boolean"},debug:{control:"boolean"}}},r={},o={args:{isEditable:!1}},t={args:{debug:!0}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:"{}",...r.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
  args: {
    isEditable: false
  }
}`,...o.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
  args: {
    debug: true
  }
}`,...t.parameters?.docs?.source}}};const w=["Basic","ReadOnly","DebugView"];export{r as Basic,t as DebugView,o as ReadOnly,w as __namedExportsOrder,q as default};
