You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.9 KiB

{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/usePlainTextListeners.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/components/PlainTextComposer.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/useComposerFunctions.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/usePlainTextInitialization.ts","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/components/Emoji.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx","webpack:///./node_modules/matrix-react-sdk/src/components/views/rooms/wysiwyg_composer/hooks/useWysiwygSendActionHandler.ts"],"names":["usePlainTextListeners","initialContent","onChange","onSend","ref","useRef","content","setContent","useState","send","useCallback","current","innerHTML","setText","text","enterShouldSend","useSettingValue","onInput","event","target","HTMLDivElement","newInnerHTML","replace","onKeyDown","key","Key","ENTER","sendModifierIsPressed","IS_MAC","metaKey","ctrlKey","shiftKey","preventDefault","stopPropagation","onPaste","PlainTextComposer","className","disabled","children","placeholder","leftComponent","rightComponent","composerFunctions","useMemo","clear","insertText","selection","document","getSelection","anchorOffset","focusOffset","slice","setSelection","anchorNode","firstChild","length","focusNode","isForward","useComposerFunctions","useEffect","innerText","usePlainTextInitialization","useSetCursorPosition","isFocused","onFocus","useIsFocused","computedPlaceholder","undefined","classNames","onBlur","Editor","Emoji","menuPosition","roomContext","useRoomContext","EmojiButton","addEmoji","emoji","dis","dispatch","action","Action","ComposerInsert","timelineRenderingType","Content","forwardRef","composerElement","composerContext","useComposerContext","timeoutId","handler","payload","context","TimelineRenderingType","Room","FocusSendMessageComposer","focusComposer","ClearAndFocusSendMessageComposer","composerType","ComposerType","Send","userId","then","useDispatcher","defaultDispatcher","useWysiwygSendActionHandler","SendWysiwygComposer","isRichTextEnabled","e2eStatus","eventRelation","props","Composer","WysiwygComposer","defaultContextValue","getDefaultContextValue","ComposerContext","Provider","value","E2EIcon","status"],"mappings":"+UAmCO,SAASA,EACZC,EACAC,EACAC,GASA,MAAMC,EAAMC,iBAA8B,OACnCC,EAASC,GAAcC,mBAA6BP,GACrDQ,EAAOC,uBAAY,KACjBN,EAAIO,UACJP,EAAIO,QAAQC,UAAY,IAE5BT,YAAU,GACX,CAACC,EAAKD,IAEHU,EAAUH,uBACXI,IACGP,EAAWO,GACXZ,WAAWY,EAAK,GAEpB,CAACZ,IAGCa,GAAmBC,YAAyB,wCAC5CC,EAAUP,uBACXQ,IACG,GAAiBA,EAAMC,kBA7CNC,eA6Ce,CAE5B,MAAMC,EAAeN,EAAkBG,EAAMC,OAAOP,UAA2BM,EAAMC,OAAOP,UAvCnGU,QAAQ,oBAAqB,MAC7BA,QAAQ,SAAU,MAClBA,QAAQ,WAAY,IAsCbT,EAAQQ,EACZ,IAEJ,CAACR,EAASE,IAGRQ,EAAYb,uBACbQ,IACG,GAAIA,EAAMM,MAAQC,IAAIC,MAAO,CAEzB,MAAMC,EAAwBC,IAASV,EAAMW,QAAUX,EAAMY,QAGzDf,IAAoBG,EAAMa,WAC1Bb,EAAMc,iBACNd,EAAMe,kBACNxB,MAICM,GAAmBY,IACpBT,EAAMc,iBACNd,EAAMe,kBACNxB,IAER,IAEJ,CAACM,EAAiBN,IAGtB,MAAO,CAAEL,MAAKa,UAASiB,QAASjB,EAASM,YAAWjB,UAASC,WAAYM,EAC7E,C,sBC9DO,SAASsB,EAAkB,GAUM,IAVN,UAC9BC,EAAS,SACTC,GAAW,EAAK,OAChBlC,EAAM,SACND,EAAQ,SACRoC,EAAQ,YACRC,EAAW,eACXtC,EAAc,cACduC,EAAa,eACbC,GACqB,EACrB,MAAM,IAAErC,EAAG,QAAEa,EAAO,QAAEiB,EAAO,UAAEX,EAAS,QAAEjB,EAAO,WAA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