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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