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
6.1 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","_ref","className","disabled","children","placeholder","leftComponent","rightComponent","composerFunctions","useMemo","clear","insertText","selection","document","getSelection","anchorOffset","focusOffset","slice","setSelection","anchorNode","firstChild","length","focusNode","isForward","useComposerFunctions","arguments","undefined","useEffect","innerText","usePlainTextInitialization","useSetCursorPosition","isFocused","onFocus","useIsFocused","computedPlaceholder","React","createElement","classNames","onBlur","Editor","Emoji","menuPosition","roomContext","useRoomContext","EmojiButton","addEmoji","emoji","dis","dispatch","action","Action","ComposerInsert","timelineRenderingType","Content","forwardRef","composerElement","composerContext","useComposerContext","timeoutId","handler","payload","_payload$context","context","TimelineRenderingType","Room","FocusSendMessageComposer","focusComposer","ClearAndFocusSendMessageComposer","composerType","ComposerType","Send","userId","then","useDispatcher","defaultDispatcher","useWysiwygSendActionHandler","SendWysiwygComposer","_ref2","isRichTextEnabled","e2eStatus","eventRelation","props","_objectWithoutProperties","_excluded","Composer","WysiwygComposer","defaultContextValue","getDefaultContextValue","ComposerContext","Provider","value","_extends","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,EAAiBC,GAUO,IAVN,UAC9BC,EAAS,SACTC,GAAW,EAAK,OAChBnC,EAAM,SACND,EAAQ,SACRqC,EAAQ,YACRC,EAAW,eACXvC,EAAc,cACdwC,EAAa,eACbC,GACqBN,EACrB,MAAM,IAAEhC,EAAG,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