@instructure/canvas-rce 5.15.3 → 5.15.5
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.
- package/es/bridge/Bridge.d.ts +179 -0
- package/es/bridge/index.d.ts +3 -0
- package/es/canvasFileBrowser/FileBrowser.d.ts +80 -0
- package/es/canvasFileBrowser/en-US.d.ts +0 -0
- package/es/common/FlashAlert.d.ts +41 -0
- package/es/common/browser.d.ts +5 -0
- package/es/common/fileUrl.d.ts +13 -0
- package/es/common/getCookie.d.ts +7 -0
- package/es/common/incremental-loading/LoadMoreButton.d.ts +12 -0
- package/es/common/incremental-loading/LoadingIndicator.d.ts +2 -0
- package/es/common/incremental-loading/LoadingStatus.d.ts +6 -0
- package/es/common/incremental-loading/index.d.ts +4 -0
- package/es/common/incremental-loading/useIncrementalLoading.d.ts +10 -0
- package/es/common/indicate.d.ts +1 -0
- package/es/common/mimeClass.d.ts +5 -0
- package/es/common/natcompare.d.ts +8 -0
- package/es/defaultTinymceConfig.d.ts +44 -0
- package/es/elementDenylist.d.ts +2 -0
- package/es/enhance-user-content/doc_previews.d.ts +10 -0
- package/es/enhance-user-content/enhance_user_content.d.ts +1 -0
- package/es/enhance-user-content/external_links.d.ts +2 -0
- package/es/enhance-user-content/index.d.ts +4 -0
- package/es/enhance-user-content/instructure_helper.d.ts +6 -0
- package/es/enhance-user-content/jqueryish_funcs.d.ts +9 -0
- package/es/enhance-user-content/mathml.d.ts +28 -0
- package/es/enhance-user-content/media_comment_thumbnail.d.ts +1 -0
- package/es/format-message.d.ts +3 -0
- package/es/getThemeVars.d.ts +5 -0
- package/es/getTranslations.d.ts +2 -0
- package/es/index.d.ts +59 -0
- package/es/rce/AlertMessageArea.d.ts +16 -0
- package/es/rce/DraggingBlocker.d.ts +8 -0
- package/es/rce/KeyboardShortcutModal.d.ts +12 -0
- package/es/rce/RCE.d.ts +130 -0
- package/es/rce/RCEGlobals.d.ts +21 -0
- package/es/rce/RCEVariants.d.ts +17 -0
- package/es/rce/RCEWrapper.d.ts +428 -0
- package/es/rce/RCEWrapper.utils.d.ts +24 -0
- package/es/rce/RCEWrapperProps.d.ts +175 -0
- package/es/rce/RceHtmlEditor.d.ts +8 -0
- package/es/rce/ResizeHandle.d.ts +15 -0
- package/es/rce/RestoreAutoSaveModal.d.ts +15 -0
- package/es/rce/ShowOnFocusButton/index.d.ts +22 -0
- package/es/rce/StatusBar.d.ts +38 -0
- package/es/rce/alertHandler.d.ts +19 -0
- package/es/rce/contentInsertion.d.ts +8 -0
- package/es/rce/contentInsertionUtils.d.ts +20 -0
- package/es/rce/contentRendering.d.ts +9 -0
- package/es/rce/customEvents.d.ts +1 -0
- package/es/rce/editorLanguage.d.ts +10 -0
- package/es/rce/indicatorRegion.d.ts +6 -0
- package/es/rce/normalizeLocale.d.ts +1 -0
- package/es/rce/normalizeProps.d.ts +3 -0
- package/es/rce/plugins/instructure-ui-icons/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_color/clickCallback.d.ts +7 -0
- package/es/rce/plugins/instructure_color/components/ColorPicker.d.ts +30 -0
- package/es/rce/plugins/instructure_color/components/ColorPopup.d.ts +12 -0
- package/es/rce/plugins/instructure_color/components/colorUtils.d.ts +4 -0
- package/es/rce/plugins/instructure_color/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_condensed_buttons/core/ListUtils.d.ts +16 -0
- package/es/rce/plugins/instructure_condensed_buttons/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_condensed_buttons/ui/alignment-button.d.ts +2 -0
- package/es/rce/plugins/instructure_condensed_buttons/ui/directionality-button.d.ts +1 -0
- package/es/rce/plugins/instructure_condensed_buttons/ui/indent-outdent-button.d.ts +2 -0
- package/es/rce/plugins/instructure_condensed_buttons/ui/list-button.d.ts +8 -0
- package/es/rce/plugins/instructure_condensed_buttons/ui/subscript-superscript-button.d.ts +2 -0
- package/es/rce/plugins/instructure_documents/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_documents/components/DocumentsPanel.d.ts +18 -0
- package/es/rce/plugins/instructure_documents/components/Link.d.ts +28 -0
- package/es/rce/plugins/instructure_documents/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/advancedOnlySyntax.d.ts +2 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/advancedPreference.d.ts +4 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/index.d.ts +51 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/latexTextareaUtil.d.ts +16 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/parseLatex.d.ts +12 -0
- package/es/rce/plugins/instructure_equation/EquationEditorModal/styles.d.ts +6 -0
- package/es/rce/plugins/instructure_equation/EquationEditorToolbar/buttons.d.ts +17 -0
- package/es/rce/plugins/instructure_equation/EquationEditorToolbar/index.d.ts +10 -0
- package/es/rce/plugins/instructure_equation/MathIcon/index.d.ts +10 -0
- package/es/rce/plugins/instructure_equation/MathIcon/svgs.d.ts +216 -0
- package/es/rce/plugins/instructure_equation/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_equation/mathlive/index.d.ts +1 -0
- package/es/rce/plugins/instructure_equation/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_fullscreen/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_html_view/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_html_view/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_icon_maker/clickCallback.d.ts +5 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ColorSection.d.ts +6 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/CreateIconMakerForm.d.ts +10 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Footer.d.ts +11 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Group.d.ts +6 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.d.ts +8 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/Course.d.ts +29 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ImageOptions.d.ts +56 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ImageSection.d.ts +20 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ModeSelect.d.ts +3 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/MultiColor/index.d.ts +23 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/MultiColor/svg.d.ts +91 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SVGList.d.ts +154 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SVGThumbnail.d.ts +28 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SingleColor/index.d.ts +29 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SingleColor/svg.d.ts +97 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/Upload.d.ts +26 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/index.d.ts +1 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/propTypes.d.ts +21 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/utils.d.ts +5 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Preview.d.ts +4 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ShapeSection.d.ts +5 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/TextSection.d.ts +5 -0
- package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/index.d.ts +1 -0
- package/es/rce/plugins/instructure_icon_maker/components/IconMakerTray.d.ts +22 -0
- package/es/rce/plugins/instructure_icon_maker/components/SavedIconMakerList.d.ts +30 -0
- package/es/rce/plugins/instructure_icon_maker/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_icon_maker/reducers/imageSection.d.ts +97 -0
- package/es/rce/plugins/instructure_icon_maker/reducers/svgSettings.d.ts +40 -0
- package/es/rce/plugins/instructure_icon_maker/registerEditToolbar.d.ts +3 -0
- package/es/rce/plugins/instructure_icon_maker/svg/clipPath.d.ts +2 -0
- package/es/rce/plugins/instructure_icon_maker/svg/constants.d.ts +66 -0
- package/es/rce/plugins/instructure_icon_maker/svg/font.d.ts +2 -0
- package/es/rce/plugins/instructure_icon_maker/svg/image.d.ts +44 -0
- package/es/rce/plugins/instructure_icon_maker/svg/index.d.ts +9 -0
- package/es/rce/plugins/instructure_icon_maker/svg/metadata.d.ts +2 -0
- package/es/rce/plugins/instructure_icon_maker/svg/settings.d.ts +6 -0
- package/es/rce/plugins/instructure_icon_maker/svg/shape.d.ts +14 -0
- package/es/rce/plugins/instructure_icon_maker/svg/text.d.ts +28 -0
- package/es/rce/plugins/instructure_icon_maker/svg/utils.d.ts +3 -0
- package/es/rce/plugins/instructure_icon_maker/utils/IconMakerClose.d.ts +2 -0
- package/es/rce/plugins/instructure_icon_maker/utils/IconMakerFormHasChanges.d.ts +35 -0
- package/es/rce/plugins/instructure_icon_maker/utils/addIconMakerAttributes.d.ts +4 -0
- package/es/rce/plugins/instructure_icon_maker/utils/iconValidation.d.ts +6 -0
- package/es/rce/plugins/instructure_icon_maker/utils/iconsLabels.d.ts +356 -0
- package/es/rce/plugins/instructure_icon_maker/utils/useDebouncedValue.d.ts +1 -0
- package/es/rce/plugins/instructure_image/ImageEmbedOptions.d.ts +49 -0
- package/es/rce/plugins/instructure_image/ImageList/Image.d.ts +33 -0
- package/es/rce/plugins/instructure_image/ImageList/index.d.ts +33 -0
- package/es/rce/plugins/instructure_image/ImageOptionsTray/TrayController.d.ts +17 -0
- package/es/rce/plugins/instructure_image/ImageOptionsTray/index.d.ts +29 -0
- package/es/rce/plugins/instructure_image/Images/index.d.ts +24 -0
- package/es/rce/plugins/instructure_image/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_image/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_links/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_links/components/AccordionSection.d.ts +18 -0
- package/es/rce/plugins/instructure_links/components/CollectionPanel.d.ts +113 -0
- package/es/rce/plugins/instructure_links/components/Link.d.ts +24 -0
- package/es/rce/plugins/instructure_links/components/LinkOptionsDialog/LinkOptionsDialogController.d.ts +18 -0
- package/es/rce/plugins/instructure_links/components/LinkOptionsDialog/index.d.ts +24 -0
- package/es/rce/plugins/instructure_links/components/LinkOptionsTray/LinkOptionsTrayController.d.ts +14 -0
- package/es/rce/plugins/instructure_links/components/LinkOptionsTray/index.d.ts +18 -0
- package/es/rce/plugins/instructure_links/components/LinkSet.d.ts +46 -0
- package/es/rce/plugins/instructure_links/components/LinksPanel.d.ts +107 -0
- package/es/rce/plugins/instructure_links/components/NavigationPanel.d.ts +17 -0
- package/es/rce/plugins/instructure_links/components/NoResults.d.ts +13 -0
- package/es/rce/plugins/instructure_links/components/propTypes.d.ts +102 -0
- package/es/rce/plugins/instructure_links/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_links/validateURL.d.ts +6 -0
- package/es/rce/plugins/instructure_media_embed/clickCallback.d.ts +1 -0
- package/es/rce/plugins/instructure_media_embed/components/Embed.d.ts +11 -0
- package/es/rce/plugins/instructure_media_embed/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_paste/pasteMenuCommand.d.ts +1 -0
- package/es/rce/plugins/instructure_paste/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_rce_external_tools/ExternalToolsEnv.d.ts +30 -0
- package/es/rce/plugins/instructure_rce_external_tools/RceToolWrapper.d.ts +77 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialog.d.ts +45 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialogModal.d.ts +8 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialogTray.d.ts +14 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolSelectionDialog/ExternalToolSelectionDialog.d.ts +18 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolSelectionDialog/ExternalToolSelectionItem.d.ts +12 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/util/ExpandoText.d.ts +7 -0
- package/es/rce/plugins/instructure_rce_external_tools/components/util/ToolLaunchIframe.d.ts +10 -0
- package/es/rce/plugins/instructure_rce_external_tools/constants.d.ts +9 -0
- package/es/rce/plugins/instructure_rce_external_tools/dialog-helper.d.ts +3 -0
- package/es/rce/plugins/instructure_rce_external_tools/helpers/tags.d.ts +18 -0
- package/es/rce/plugins/instructure_rce_external_tools/jquery/jquery.dropdownList.d.ts +27 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti11-content-items/RceLti11ContentItem.d.ts +72 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/Lti13ContentItemJson.d.ts +55 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/RceLti13ContentItem.d.ts +31 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/BaseLinkContentItem.d.ts +19 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/HtmlFragmentContentItem.d.ts +11 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ImageContentItem.d.ts +17 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/LinkContentItem.d.ts +7 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ResourceLinkContentItem.d.ts +9 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/processEditorContentItems.d.ts +13 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/rceLti13ContentItemFromJson.d.ts +12 -0
- package/es/rce/plugins/instructure_rce_external_tools/plugin.d.ts +9 -0
- package/es/rce/plugins/instructure_rce_external_tools/util/addParentFrameContextToUrl.d.ts +1 -0
- package/es/rce/plugins/instructure_rce_external_tools/util/externalToolsForToolbar.d.ts +2 -0
- package/es/rce/plugins/instructure_record/AudioOptionsTray/TrayController.d.ts +17 -0
- package/es/rce/plugins/instructure_record/AudioOptionsTray/index.d.ts +41 -0
- package/es/rce/plugins/instructure_record/MediaPanel/index.d.ts +18 -0
- package/es/rce/plugins/instructure_record/VideoOptionsTray/TrayController.d.ts +27 -0
- package/es/rce/plugins/instructure_record/VideoOptionsTray/index.d.ts +45 -0
- package/es/rce/plugins/instructure_record/clickCallback.d.ts +2 -0
- package/es/rce/plugins/instructure_record/mediaTranslations.d.ts +69 -0
- package/es/rce/plugins/instructure_record/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_search_and_replace/clickCallback.d.ts +2 -0
- package/es/rce/plugins/instructure_search_and_replace/components/FindReplaceTray.d.ts +14 -0
- package/es/rce/plugins/instructure_search_and_replace/components/FindReplaceTrayController.d.ts +12 -0
- package/es/rce/plugins/instructure_search_and_replace/getSelectionContext.d.ts +1 -0
- package/es/rce/plugins/instructure_search_and_replace/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_studio_media_options/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_wordcount/clickCallback.d.ts +6 -0
- package/es/rce/plugins/instructure_wordcount/components/WordCountModal.d.ts +8 -0
- package/es/rce/plugins/instructure_wordcount/plugin.d.ts +1 -0
- package/es/rce/plugins/instructure_wordcount/utils/countContent.d.ts +11 -0
- package/es/rce/plugins/instructure_wordcount/utils/tableContent.d.ts +12 -0
- package/es/rce/plugins/shared/CanvasContentTray.d.ts +66 -0
- package/es/rce/plugins/shared/CheckerboardStyling.d.ts +5 -0
- package/es/rce/plugins/shared/ColorInput.d.ts +11 -0
- package/es/rce/plugins/shared/ConditionalTooltip.d.ts +12 -0
- package/es/rce/plugins/shared/ContentSelection.d.ts +75 -0
- package/es/rce/plugins/shared/DimensionUtils.d.ts +14 -0
- package/es/rce/plugins/shared/DimensionsInput/DimensionInput.d.ts +13 -0
- package/es/rce/plugins/shared/DimensionsInput/index.d.ts +36 -0
- package/es/rce/plugins/shared/DimensionsInput/useDimensionsState.d.ts +25 -0
- package/es/rce/plugins/shared/ErrorBoundary.d.ts +16 -0
- package/es/rce/plugins/shared/EventUtils.d.ts +8 -0
- package/es/rce/plugins/shared/Filter.d.ts +18 -0
- package/es/rce/plugins/shared/FixedContentTray.d.ts +46 -0
- package/es/rce/plugins/shared/ImageCropper/DirectionRegion.d.ts +13 -0
- package/es/rce/plugins/shared/ImageCropper/Modal.d.ts +40 -0
- package/es/rce/plugins/shared/ImageCropper/Preview.d.ts +21 -0
- package/es/rce/plugins/shared/ImageCropper/constants.d.ts +22 -0
- package/es/rce/plugins/shared/ImageCropper/controls/CustomNumberInput.d.ts +30 -0
- package/es/rce/plugins/shared/ImageCropper/controls/ResetControls.d.ts +14 -0
- package/es/rce/plugins/shared/ImageCropper/controls/RotationControls.d.ts +18 -0
- package/es/rce/plugins/shared/ImageCropper/controls/ShapeControls.d.ts +12 -0
- package/es/rce/plugins/shared/ImageCropper/controls/ZoomControls.d.ts +18 -0
- package/es/rce/plugins/shared/ImageCropper/controls/index.d.ts +5 -0
- package/es/rce/plugins/shared/ImageCropper/controls/useDebouncedNumericValue.d.ts +7 -0
- package/es/rce/plugins/shared/ImageCropper/controls/utils.d.ts +4 -0
- package/es/rce/plugins/shared/ImageCropper/imageCropUtils.d.ts +8 -0
- package/es/rce/plugins/shared/ImageCropper/index.d.ts +1 -0
- package/es/rce/plugins/shared/ImageCropper/propTypes.d.ts +9 -0
- package/es/rce/plugins/shared/ImageCropper/reducers/imageCropper.d.ts +18 -0
- package/es/rce/plugins/shared/ImageCropper/shape.d.ts +10 -0
- package/es/rce/plugins/shared/ImageCropper/svg/index.d.ts +1 -0
- package/es/rce/plugins/shared/ImageCropper/svg/shape.d.ts +4 -0
- package/es/rce/plugins/shared/ImageCropper/svg/utils.d.ts +1 -0
- package/es/rce/plugins/shared/ImageCropper/useKeyMouseEvents.d.ts +1 -0
- package/es/rce/plugins/shared/ImageCropper/useMouseWheel.d.ts +1 -0
- package/es/rce/plugins/shared/ImageOptionsForm.d.ts +19 -0
- package/es/rce/plugins/shared/LinkDisplay.d.ts +9 -0
- package/es/rce/plugins/shared/PreviewIcon.d.ts +50 -0
- package/es/rce/plugins/shared/Previewable.d.ts +2 -0
- package/es/rce/plugins/shared/RceFileBrowser.d.ts +19 -0
- package/es/rce/plugins/shared/StoreContext.d.ts +15 -0
- package/es/rce/plugins/shared/StudioLtiSupportUtils.d.ts +37 -0
- package/es/rce/plugins/shared/UnknownFileTypePanel.d.ts +2 -0
- package/es/rce/plugins/shared/Upload/CanvasContentPanel.d.ts +29 -0
- package/es/rce/plugins/shared/Upload/CategoryProcessor.d.ts +3 -0
- package/es/rce/plugins/shared/Upload/ComputerPanel.d.ts +32 -0
- package/es/rce/plugins/shared/Upload/PanelFilter.d.ts +10 -0
- package/es/rce/plugins/shared/Upload/SvgCategoryProcessor.d.ts +4 -0
- package/es/rce/plugins/shared/Upload/UploadFile.d.ts +24 -0
- package/es/rce/plugins/shared/Upload/UploadFileModal.d.ts +3 -0
- package/es/rce/plugins/shared/Upload/UrlPanel.d.ts +12 -0
- package/es/rce/plugins/shared/Upload/UsageRightsSelectBox.d.ts +23 -0
- package/es/rce/plugins/shared/Upload/doFileUpload.d.ts +17 -0
- package/es/rce/plugins/shared/Upload/index.d.ts +2 -0
- package/es/rce/plugins/shared/ai_tools/AIResponseModal.d.ts +10 -0
- package/es/rce/plugins/shared/ai_tools/AIToolsTray.d.ts +18 -0
- package/es/rce/plugins/shared/ai_tools/aiicons.d.ts +7 -0
- package/es/rce/plugins/shared/ai_tools/index.d.ts +3 -0
- package/es/rce/plugins/shared/buildDownloadUrl.d.ts +1 -0
- package/es/rce/plugins/shared/canvasContentUtils.d.ts +138 -0
- package/es/rce/plugins/shared/compressionUtils.d.ts +11 -0
- package/es/rce/plugins/shared/dateUtils.d.ts +1 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/defaultFetchOptions.d.ts +4 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/doFetchApi.d.ts +22 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/get-cookie.d.ts +7 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/index.d.ts +7 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/parse-link-header.d.ts +12 -0
- package/es/rce/plugins/shared/do-fetch-api-effect/query-string-encoding.d.ts +6 -0
- package/es/rce/plugins/shared/fileShape.d.ts +116 -0
- package/es/rce/plugins/shared/fileTypeUtils.d.ts +28 -0
- package/es/rce/plugins/shared/fileUtils.d.ts +1 -0
- package/es/rce/plugins/shared/linkUtils.d.ts +5 -0
- package/es/rce/plugins/shared/round.d.ts +1 -0
- package/es/rce/plugins/shared/trayUtils.d.ts +3 -0
- package/es/rce/plugins/shared/useDataUrl.d.ts +8 -0
- package/es/rce/plugins/shared/useFilterSettings.d.ts +10 -0
- package/es/rce/plugins/tinymce-a11y-checker/components/ColorField.d.ts +33 -0
- package/es/rce/plugins/tinymce-a11y-checker/components/checker.d.ts +53 -0
- package/es/rce/plugins/tinymce-a11y-checker/components/color-picker.d.ts +2 -0
- package/es/rce/plugins/tinymce-a11y-checker/components/placeholder-svg.d.ts +2 -0
- package/es/rce/plugins/tinymce-a11y-checker/components/pointer.d.ts +2 -0
- package/es/rce/plugins/tinymce-a11y-checker/node-checker.d.ts +1 -0
- package/es/rce/plugins/tinymce-a11y-checker/plugin.d.ts +2 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/adjacent-links.d.ts +19 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/headings-sequence.d.ts +18 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/headings-start-at-h2.d.ts +28 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/img-alt-filename.d.ts +25 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/img-alt-length.d.ts +18 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/img-alt.d.ts +25 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/index.d.ts +198 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/large-text-contrast.d.ts +19 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/list-structure.d.ts +20 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/paragraphs-for-headings.d.ts +18 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/small-text-contrast.d.ts +19 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/table-caption.d.ts +17 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/table-header-scope.d.ts +18 -0
- package/es/rce/plugins/tinymce-a11y-checker/rules/table-header.d.ts +18 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/colors.d.ts +10 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/describe.d.ts +1 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/dom.d.ts +11 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/indicate.d.ts +7 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/rgb-hex.d.ts +2 -0
- package/es/rce/plugins/tinymce-a11y-checker/utils/strings.d.ts +2 -0
- package/es/rce/root.d.ts +3 -0
- package/es/rce/sanitizePlugins.d.ts +1 -0
- package/es/rce/style.d.ts +64 -0
- package/es/rce/tinyRCE.d.ts +2 -0
- package/es/rce/tinymce.oxide.content.min.css.d.ts +2 -0
- package/es/rce/tinymce.oxide.skin.min.css.d.ts +2 -0
- package/es/rce/transformContent.d.ts +13 -0
- package/es/rce/types.d.ts +96 -0
- package/es/rce/userOS.d.ts +4 -0
- package/es/rce/wrapInitCb.d.ts +2 -0
- package/es/rcs/api.d.ts +117 -0
- package/es/rcs/buildError.d.ts +4 -0
- package/es/rcs/fake.d.ts +111 -0
- package/es/sidebar/actions/all_files.d.ts +5 -0
- package/es/sidebar/actions/data.d.ts +29 -0
- package/es/sidebar/actions/documents.d.ts +42 -0
- package/es/sidebar/actions/files.d.ts +66 -0
- package/es/sidebar/actions/filter.d.ts +25 -0
- package/es/sidebar/actions/flickr.d.ts +20 -0
- package/es/sidebar/actions/images.d.ts +63 -0
- package/es/sidebar/actions/links.d.ts +4 -0
- package/es/sidebar/actions/media.d.ts +46 -0
- package/es/sidebar/actions/session.d.ts +2 -0
- package/es/sidebar/actions/ui.d.ts +22 -0
- package/es/sidebar/actions/upload.d.ts +114 -0
- package/es/sidebar/containers/Sidebar.d.ts +1 -0
- package/es/sidebar/containers/sidebarHandlers.d.ts +33 -0
- package/es/sidebar/dragHtml.d.ts +1 -0
- package/es/sidebar/reducers/all_files.d.ts +1 -0
- package/es/sidebar/reducers/collection.d.ts +1 -0
- package/es/sidebar/reducers/collections.d.ts +9 -0
- package/es/sidebar/reducers/documents.d.ts +1 -0
- package/es/sidebar/reducers/files.d.ts +1 -0
- package/es/sidebar/reducers/filter.d.ts +7 -0
- package/es/sidebar/reducers/flickr.d.ts +1 -0
- package/es/sidebar/reducers/folder.d.ts +25 -0
- package/es/sidebar/reducers/folders.d.ts +1 -0
- package/es/sidebar/reducers/images.d.ts +1 -0
- package/es/sidebar/reducers/index.d.ts +44 -0
- package/es/sidebar/reducers/media.d.ts +1 -0
- package/es/sidebar/reducers/newPageLinkExpanded.d.ts +1 -0
- package/es/sidebar/reducers/noop.d.ts +1 -0
- package/es/sidebar/reducers/rootFolderId.d.ts +1 -0
- package/es/sidebar/reducers/session.d.ts +1 -0
- package/es/sidebar/reducers/ui.d.ts +6 -0
- package/es/sidebar/reducers/upload.d.ts +11 -0
- package/es/sidebar/store/configureStore.d.ts +3 -0
- package/es/sidebar/store/initialState.d.ts +22 -0
- package/es/translations/locales/ab.d.ts +1 -0
- package/es/translations/locales/ar.d.ts +1 -0
- package/es/translations/locales/ca.d.ts +1 -0
- package/es/translations/locales/cs.d.ts +1 -0
- package/es/translations/locales/cs_CZ.d.ts +1 -0
- package/es/translations/locales/cy.d.ts +1 -0
- package/es/translations/locales/da-x-k12.d.ts +1 -0
- package/es/translations/locales/da.d.ts +1 -0
- package/es/translations/locales/da_DK.d.ts +1 -0
- package/es/translations/locales/de.d.ts +1 -0
- package/es/translations/locales/el.d.ts +1 -0
- package/es/translations/locales/en-AU-x-unimelb.d.ts +1 -0
- package/es/translations/locales/en-GB-x-ukhe.d.ts +1 -0
- package/es/translations/locales/en.d.ts +1 -0
- package/es/translations/locales/en_AU.d.ts +1 -0
- package/es/translations/locales/en_CA.d.ts +1 -0
- package/es/translations/locales/en_CY.d.ts +1 -0
- package/es/translations/locales/en_GB.d.ts +1 -0
- package/es/translations/locales/en_NZ.d.ts +1 -0
- package/es/translations/locales/en_SE.d.ts +1 -0
- package/es/translations/locales/en_US.d.ts +1 -0
- package/es/translations/locales/es.d.ts +1 -0
- package/es/translations/locales/es_ES.d.ts +1 -0
- package/es/translations/locales/es_GT.d.ts +1 -0
- package/es/translations/locales/fa_IR.d.ts +1 -0
- package/es/translations/locales/fi.d.ts +1 -0
- package/es/translations/locales/fr.d.ts +1 -0
- package/es/translations/locales/fr_CA.d.ts +1 -0
- package/es/translations/locales/ga.d.ts +1 -0
- package/es/translations/locales/he.d.ts +1 -0
- package/es/translations/locales/hi.d.ts +1 -0
- package/es/translations/locales/ht.d.ts +1 -0
- package/es/translations/locales/hu.d.ts +1 -0
- package/es/translations/locales/hu_HU.d.ts +1 -0
- package/es/translations/locales/hy.d.ts +1 -0
- package/es/translations/locales/id.d.ts +1 -0
- package/es/translations/locales/id_ID.d.ts +1 -0
- package/es/translations/locales/is.d.ts +1 -0
- package/es/translations/locales/it.d.ts +1 -0
- package/es/translations/locales/ja.d.ts +1 -0
- package/es/translations/locales/ko.d.ts +1 -0
- package/es/translations/locales/ko_KR.d.ts +1 -0
- package/es/translations/locales/lt.d.ts +1 -0
- package/es/translations/locales/lt_LT.d.ts +1 -0
- package/es/translations/locales/mi.d.ts +1 -0
- package/es/translations/locales/mn_MN.d.ts +1 -0
- package/es/translations/locales/ms.d.ts +1 -0
- package/es/translations/locales/nb-x-k12.d.ts +1 -0
- package/es/translations/locales/nb.d.ts +1 -0
- package/es/translations/locales/nl.d.ts +1 -0
- package/es/translations/locales/nl_NL.d.ts +1 -0
- package/es/translations/locales/nn.d.ts +1 -0
- package/es/translations/locales/pl.d.ts +1 -0
- package/es/translations/locales/pt.d.ts +1 -0
- package/es/translations/locales/pt_BR.d.ts +1 -0
- package/es/translations/locales/ro.d.ts +1 -0
- package/es/translations/locales/ru.d.ts +1 -0
- package/es/translations/locales/se.d.ts +1 -0
- package/es/translations/locales/sl.d.ts +1 -0
- package/es/translations/locales/sv-x-k12.d.ts +1 -0
- package/es/translations/locales/sv.d.ts +1 -0
- package/es/translations/locales/sv_SE.d.ts +1 -0
- package/es/translations/locales/tg.d.ts +1 -0
- package/es/translations/locales/th.d.ts +1 -0
- package/es/translations/locales/th_TH.d.ts +1 -0
- package/es/translations/locales/tl_PH.d.ts +1 -0
- package/es/translations/locales/tr.d.ts +1 -0
- package/es/translations/locales/uk_UA.d.ts +1 -0
- package/es/translations/locales/vi.d.ts +1 -0
- package/es/translations/locales/vi_VN.d.ts +1 -0
- package/es/translations/locales/zh-Hans.d.ts +1 -0
- package/es/translations/locales/zh-Hant.d.ts +1 -0
- package/es/translations/locales/zh.d.ts +1 -0
- package/es/translations/locales/zh_HK.d.ts +1 -0
- package/es/translations/locales/zh_TW.Big5.d.ts +1 -0
- package/es/translations/locales/zh_TW.d.ts +1 -0
- package/es/translations/tinymce/ar_SA.d.ts +0 -0
- package/es/translations/tinymce/bg_BG.d.ts +0 -0
- package/es/translations/tinymce/ca.d.ts +0 -0
- package/es/translations/tinymce/cs.d.ts +0 -0
- package/es/translations/tinymce/cy.d.ts +0 -0
- package/es/translations/tinymce/da.d.ts +0 -0
- package/es/translations/tinymce/de.d.ts +0 -0
- package/es/translations/tinymce/el.d.ts +0 -0
- package/es/translations/tinymce/en_GB.d.ts +0 -0
- package/es/translations/tinymce/es.d.ts +0 -0
- package/es/translations/tinymce/fa_IR.d.ts +0 -0
- package/es/translations/tinymce/fi.d.ts +0 -0
- package/es/translations/tinymce/fr_FR.d.ts +0 -0
- package/es/translations/tinymce/ga.d.ts +0 -0
- package/es/translations/tinymce/he_IL.d.ts +0 -0
- package/es/translations/tinymce/hu_HU.d.ts +0 -0
- package/es/translations/tinymce/hy.d.ts +0 -0
- package/es/translations/tinymce/id.d.ts +0 -0
- package/es/translations/tinymce/it.d.ts +0 -0
- package/es/translations/tinymce/ja.d.ts +0 -0
- package/es/translations/tinymce/ko_KR.d.ts +0 -0
- package/es/translations/tinymce/nb_NO.d.ts +0 -0
- package/es/translations/tinymce/nl.d.ts +0 -0
- package/es/translations/tinymce/pl.d.ts +0 -0
- package/es/translations/tinymce/pt_BR.d.ts +0 -0
- package/es/translations/tinymce/pt_PT.d.ts +0 -0
- package/es/translations/tinymce/ro.d.ts +0 -0
- package/es/translations/tinymce/ru.d.ts +0 -0
- package/es/translations/tinymce/ru_RU.d.ts +0 -0
- package/es/translations/tinymce/sl.d.ts +0 -0
- package/es/translations/tinymce/sr.d.ts +0 -0
- package/es/translations/tinymce/sv_SE.d.ts +0 -0
- package/es/translations/tinymce/th.d.ts +0 -0
- package/es/translations/tinymce/tr_TR.d.ts +0 -0
- package/es/translations/tinymce/uk_UA.d.ts +0 -0
- package/es/translations/tinymce/vi_VN.d.ts +0 -0
- package/es/translations/tinymce/zh_CN.d.ts +0 -0
- package/es/translations/tinymce/zh_TW.d.ts +0 -0
- package/es/util/DeepPartialNullable.d.ts +15 -0
- package/es/util/ExtractRequired.d.ts +42 -0
- package/es/util/TypedDict.d.ts +99 -0
- package/es/util/assertNever.d.ts +24 -0
- package/es/util/elem-util.d.ts +6 -0
- package/es/util/encrypted-storage.d.ts +9 -0
- package/es/util/file-url-util.d.ts +1 -0
- package/es/util/fullscreenHelpers.d.ts +6 -0
- package/es/util/instui-icon-helper.d.ts +19 -0
- package/es/util/loadingPlaceholder.d.ts +39 -0
- package/es/util/simpleCache.d.ts +11 -0
- package/es/util/string-util.d.ts +20 -0
- package/es/util/textarea-editing-util.d.ts +35 -0
- package/es/util/tinymce-plugin-util.d.ts +16 -0
- package/es/util/url-util.d.ts +32 -0
- package/package.json +2 -3
- package/scripts/build.js +0 -40
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const toolbarPropType: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
3
|
+
name: PropTypes.Validator<string>;
|
|
4
|
+
items: PropTypes.Validator<(string | null | undefined)[]>;
|
|
5
|
+
}> | null | undefined)[]>;
|
|
6
|
+
export type ToolbarPropType = {
|
|
7
|
+
name: string;
|
|
8
|
+
items: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const menuPropType: PropTypes.Requireable<{
|
|
11
|
+
[x: string]: PropTypes.InferProps<{
|
|
12
|
+
title: PropTypes.Requireable<string>;
|
|
13
|
+
items: PropTypes.Validator<string>;
|
|
14
|
+
}> | null | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const ltiToolsPropType: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
17
|
+
id: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
18
|
+
favorite: PropTypes.Requireable<boolean>;
|
|
19
|
+
on_by_default: PropTypes.Requireable<boolean>;
|
|
20
|
+
name: PropTypes.Requireable<string>;
|
|
21
|
+
description: PropTypes.Requireable<string>;
|
|
22
|
+
icon_url: PropTypes.Requireable<string>;
|
|
23
|
+
height: PropTypes.Requireable<number>;
|
|
24
|
+
width: PropTypes.Requireable<number>;
|
|
25
|
+
use_tray: PropTypes.Requireable<boolean>;
|
|
26
|
+
canvas_icon_class: PropTypes.Requireable<any>;
|
|
27
|
+
}> | null | undefined)[]>;
|
|
28
|
+
export interface CanvasIconClass {
|
|
29
|
+
icon_url: string;
|
|
30
|
+
}
|
|
31
|
+
export type IconClassType = string | CanvasIconClass | any;
|
|
32
|
+
export interface LtiTool {
|
|
33
|
+
id: string | number;
|
|
34
|
+
favorite: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
icon_url: string;
|
|
38
|
+
height: number;
|
|
39
|
+
width: number;
|
|
40
|
+
use_tray: boolean;
|
|
41
|
+
canvas_icon_class: IconClassType;
|
|
42
|
+
}
|
|
43
|
+
export type LtiToolsPropType = LtiTool[];
|
|
44
|
+
export declare const EditorOptionsPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
+
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
46
|
+
toolbar: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
47
|
+
name: PropTypes.Validator<string>;
|
|
48
|
+
items: PropTypes.Validator<(string | null | undefined)[]>;
|
|
49
|
+
}> | null | undefined)[]>;
|
|
50
|
+
menu: PropTypes.Requireable<{
|
|
51
|
+
[x: string]: PropTypes.InferProps<{
|
|
52
|
+
title: PropTypes.Requireable<string>;
|
|
53
|
+
items: PropTypes.Validator<string>;
|
|
54
|
+
}> | null | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
plugins: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
57
|
+
readonly: PropTypes.Requireable<boolean>;
|
|
58
|
+
selector: PropTypes.Requireable<string>;
|
|
59
|
+
init_instance_callback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
60
|
+
}>>;
|
|
61
|
+
export type { EditorOptions } from './types';
|
|
62
|
+
export declare const externalToolsConfigPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
63
|
+
ltiIframeAllowances: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
64
|
+
containingCanvasLtiToolId: PropTypes.Requireable<string>;
|
|
65
|
+
resourceSelectionUrlOverride: PropTypes.Requireable<string>;
|
|
66
|
+
isA2StudentView: PropTypes.Requireable<boolean>;
|
|
67
|
+
maxMruTools: PropTypes.Requireable<number>;
|
|
68
|
+
}>>;
|
|
69
|
+
export type ExternalToolsConfig = {
|
|
70
|
+
ltiIframeAllowances: string[];
|
|
71
|
+
containingCanvasLtiToolId: string;
|
|
72
|
+
resourceSelectionUrlOverride: string;
|
|
73
|
+
isA2StudentView: boolean;
|
|
74
|
+
maxMruTools: number;
|
|
75
|
+
};
|
|
76
|
+
export declare const rceWrapperPropTypes: {
|
|
77
|
+
autosave: PropTypes.Requireable<PropTypes.InferProps<{
|
|
78
|
+
enabled: PropTypes.Requireable<boolean>;
|
|
79
|
+
maxAge: PropTypes.Requireable<number>;
|
|
80
|
+
}>>;
|
|
81
|
+
canvasOrigin: PropTypes.Requireable<string>;
|
|
82
|
+
defaultContent: PropTypes.Requireable<string>;
|
|
83
|
+
editorOptions: PropTypes.Requireable<PropTypes.InferProps<{
|
|
84
|
+
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
85
|
+
toolbar: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
86
|
+
name: PropTypes.Validator<string>;
|
|
87
|
+
items: PropTypes.Validator<(string | null | undefined)[]>;
|
|
88
|
+
}> | null | undefined)[]>;
|
|
89
|
+
menu: PropTypes.Requireable<{
|
|
90
|
+
[x: string]: PropTypes.InferProps<{
|
|
91
|
+
title: PropTypes.Requireable<string>;
|
|
92
|
+
items: PropTypes.Validator<string>;
|
|
93
|
+
}> | null | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
plugins: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
96
|
+
readonly: PropTypes.Requireable<boolean>;
|
|
97
|
+
selector: PropTypes.Requireable<string>;
|
|
98
|
+
init_instance_callback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
|
+
}>>;
|
|
100
|
+
handleUnmount: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
|
+
editorView: PropTypes.Requireable<string>;
|
|
102
|
+
renderKBShortcutModal: PropTypes.Requireable<boolean>;
|
|
103
|
+
id: PropTypes.Requireable<string>;
|
|
104
|
+
language: PropTypes.Requireable<string>;
|
|
105
|
+
liveRegion: PropTypes.Validator<(...args: any[]) => any>;
|
|
106
|
+
ltiTools: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
107
|
+
id: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
108
|
+
favorite: PropTypes.Requireable<boolean>;
|
|
109
|
+
on_by_default: PropTypes.Requireable<boolean>;
|
|
110
|
+
name: PropTypes.Requireable<string>;
|
|
111
|
+
description: PropTypes.Requireable<string>;
|
|
112
|
+
icon_url: PropTypes.Requireable<string>;
|
|
113
|
+
height: PropTypes.Requireable<number>;
|
|
114
|
+
width: PropTypes.Requireable<number>;
|
|
115
|
+
use_tray: PropTypes.Requireable<boolean>;
|
|
116
|
+
canvas_icon_class: PropTypes.Requireable<any>;
|
|
117
|
+
}> | null | undefined)[]>;
|
|
118
|
+
onContentChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
119
|
+
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
120
|
+
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
121
|
+
onInitted: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
|
+
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
123
|
+
textareaClassName: PropTypes.Requireable<string>;
|
|
124
|
+
textareaId: PropTypes.Validator<string>;
|
|
125
|
+
readOnly: PropTypes.Requireable<boolean>;
|
|
126
|
+
tinymce: PropTypes.Requireable<object>;
|
|
127
|
+
trayProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
128
|
+
canUploadFiles: PropTypes.Validator<boolean>;
|
|
129
|
+
contextId: PropTypes.Validator<string>;
|
|
130
|
+
contextType: PropTypes.Validator<string>;
|
|
131
|
+
containingContext: PropTypes.Requireable<PropTypes.InferProps<{
|
|
132
|
+
contextType: PropTypes.Validator<string>;
|
|
133
|
+
contextId: PropTypes.Validator<string>;
|
|
134
|
+
userId: PropTypes.Validator<string>;
|
|
135
|
+
}>>;
|
|
136
|
+
filesTabDisabled: PropTypes.Requireable<boolean>;
|
|
137
|
+
host: PropTypes.Requireable<string>;
|
|
138
|
+
jwt: PropTypes.Requireable<string>;
|
|
139
|
+
refreshToken: PropTypes.Requireable<(...args: any[]) => any>;
|
|
140
|
+
source: PropTypes.Requireable<PropTypes.InferProps<{
|
|
141
|
+
fetchImages: PropTypes.Validator<(...args: any[]) => any>;
|
|
142
|
+
}>>;
|
|
143
|
+
themeUrl: PropTypes.Requireable<string>;
|
|
144
|
+
}>>;
|
|
145
|
+
toolbar: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
146
|
+
name: PropTypes.Validator<string>;
|
|
147
|
+
items: PropTypes.Validator<(string | null | undefined)[]>;
|
|
148
|
+
}> | null | undefined)[]>;
|
|
149
|
+
menu: PropTypes.Requireable<{
|
|
150
|
+
[x: string]: PropTypes.InferProps<{
|
|
151
|
+
title: PropTypes.Requireable<string>;
|
|
152
|
+
items: PropTypes.Validator<string>;
|
|
153
|
+
}> | null | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
instRecordDisabled: PropTypes.Requireable<boolean>;
|
|
156
|
+
highContrastCSS: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
157
|
+
maxInitRenderedRCEs: PropTypes.Requireable<number>;
|
|
158
|
+
use_rce_icon_maker: PropTypes.Requireable<boolean>;
|
|
159
|
+
features: PropTypes.Requireable<{
|
|
160
|
+
[x: string]: boolean | null | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
flashAlertTimeout: PropTypes.Requireable<number>;
|
|
163
|
+
timezone: PropTypes.Requireable<string>;
|
|
164
|
+
userCacheKey: PropTypes.Requireable<string>;
|
|
165
|
+
externalToolsConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
166
|
+
ltiIframeAllowances: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
167
|
+
containingCanvasLtiToolId: PropTypes.Requireable<string>;
|
|
168
|
+
resourceSelectionUrlOverride: PropTypes.Requireable<string>;
|
|
169
|
+
isA2StudentView: PropTypes.Requireable<boolean>;
|
|
170
|
+
maxMruTools: PropTypes.Requireable<number>;
|
|
171
|
+
}>>;
|
|
172
|
+
ai_text_tools: PropTypes.Requireable<boolean>;
|
|
173
|
+
variant: PropTypes.Requireable<"full" | "lite" | "text-only" | "text-block">;
|
|
174
|
+
};
|
|
175
|
+
export type RCEWrapperProps = PropTypes.InferProps<typeof rceWrapperPropTypes>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RceHtmlEditorProps {
|
|
3
|
+
code: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const RceHtmlEditor: React.ForwardRefExoticComponent<RceHtmlEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default RceHtmlEditor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function ResizeHandle(props: any): React.JSX.Element;
|
|
2
|
+
declare namespace ResizeHandle {
|
|
3
|
+
let propTypes: {
|
|
4
|
+
onDrag: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
5
|
+
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
6
|
+
tabIndex: import("prop-types").Requireable<number>;
|
|
7
|
+
'data-btn-id': import("prop-types").Requireable<string>;
|
|
8
|
+
};
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
function onDrag(): void;
|
|
11
|
+
let tabIndex: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export default ResizeHandle;
|
|
15
|
+
import React from 'react';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function RestoreAutoSaveModal(props: any): React.JSX.Element;
|
|
2
|
+
declare namespace RestoreAutoSaveModal {
|
|
3
|
+
namespace propTypes {
|
|
4
|
+
export { string as savedContent };
|
|
5
|
+
export let open: import("prop-types").Validator<boolean>;
|
|
6
|
+
export let onNo: import("prop-types").Validator<(...args: any[]) => any>;
|
|
7
|
+
export let onYes: import("prop-types").Validator<(...args: any[]) => any>;
|
|
8
|
+
}
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
let savedContent: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default RestoreAutoSaveModal;
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { string } from 'prop-types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default class ShowOnFocusButton extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
children: import("prop-types").Validator<NonNullable<NonNullable<((...args: any[]) => any) | import("prop-types").ReactNodeLike>>>;
|
|
4
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
5
|
+
screenReaderLabel: import("prop-types").Validator<string>;
|
|
6
|
+
margin: import("prop-types").Requireable<string>;
|
|
7
|
+
id: import("prop-types").Validator<string>;
|
|
8
|
+
};
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
constructor(props: any, context: any);
|
|
11
|
+
state: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
};
|
|
14
|
+
handleFocus: () => void;
|
|
15
|
+
handleBlur: () => void;
|
|
16
|
+
focus(): void;
|
|
17
|
+
renderButton(): React.JSX.Element;
|
|
18
|
+
btnRef: IconButton | null | undefined;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare function StatusBar(props: any): React.JSX.Element;
|
|
2
|
+
declare namespace StatusBar {
|
|
3
|
+
namespace propTypes {
|
|
4
|
+
export let id: import("prop-types").Validator<string>;
|
|
5
|
+
export { bool as rceIsFullscreen };
|
|
6
|
+
export let onChangeView: import("prop-types").Validator<(...args: any[]) => any>;
|
|
7
|
+
export let path: import("prop-types").Requireable<(string | null | undefined)[]>;
|
|
8
|
+
export { number as wordCount };
|
|
9
|
+
export let editorView: import("prop-types").Requireable<string>;
|
|
10
|
+
export { func as onResize };
|
|
11
|
+
export let onKBShortcutModalOpen: import("prop-types").Validator<(...args: any[]) => any>;
|
|
12
|
+
export let onA11yChecker: import("prop-types").Validator<(...args: any[]) => any>;
|
|
13
|
+
export let onFullscreen: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
|
+
export let preferredHtmlEditor: import("prop-types").Requireable<string>;
|
|
15
|
+
export { bool as readOnly };
|
|
16
|
+
export { string as a11yBadgeColor };
|
|
17
|
+
export { number as a11yErrorsCount };
|
|
18
|
+
export let onWordcountModalOpen: import("prop-types").Validator<(...args: any[]) => any>;
|
|
19
|
+
export let disabledPlugins: import("prop-types").Requireable<(string | null | undefined)[]>;
|
|
20
|
+
export let features: import("prop-types").Requireable<(string | null | undefined)[]>;
|
|
21
|
+
export { func as onAI };
|
|
22
|
+
}
|
|
23
|
+
namespace defaultProps {
|
|
24
|
+
export let a11yBadgeColor: string;
|
|
25
|
+
export let a11yErrorsCount: number;
|
|
26
|
+
let disabledPlugins_1: never[];
|
|
27
|
+
export { disabledPlugins_1 as disabledPlugins };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export default StatusBar;
|
|
31
|
+
export const WYSIWYG_VIEW: "WYSIWYG";
|
|
32
|
+
export const PRETTY_HTML_EDITOR_VIEW: "PRETTY";
|
|
33
|
+
export const RAW_HTML_EDITOR_VIEW: "RAW";
|
|
34
|
+
import React from 'react';
|
|
35
|
+
import { bool } from 'prop-types';
|
|
36
|
+
import { number } from 'prop-types';
|
|
37
|
+
import { func } from 'prop-types';
|
|
38
|
+
import { string } from 'prop-types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class acts as a store/registry of sorts. This enables us to
|
|
3
|
+
* talk between the UI components of the RCE and the API pieces.
|
|
4
|
+
*
|
|
5
|
+
* @class AlertHandler
|
|
6
|
+
*/
|
|
7
|
+
export class AlertHandler {
|
|
8
|
+
constructor(alertFunc: any);
|
|
9
|
+
alertFunc: any;
|
|
10
|
+
/**
|
|
11
|
+
* Calls the registered alertFunc assuming one has been set, otherwise
|
|
12
|
+
* it throws.
|
|
13
|
+
*
|
|
14
|
+
* @memberof AlertHandler
|
|
15
|
+
*/
|
|
16
|
+
handleAlert: (alert: any) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: AlertHandler;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function insertContent(editor: any, content: any): any;
|
|
2
|
+
export function insertImage(editor: any, image: any, canvasOrigin: any): any;
|
|
3
|
+
export function insertEquation(editor: any, latex: any): any;
|
|
4
|
+
export function existingContentToLink(editor: any, link: any): any;
|
|
5
|
+
export function existingContentToLinkIsImg(editor: any): any;
|
|
6
|
+
export function insertLink(editor: any, link: any, canvasOrigin: any): any;
|
|
7
|
+
export function insertVideo(editor: any, video: any, canvasOrigin: any): any;
|
|
8
|
+
export function insertAudio(editor: any, audio: any, canvasOrigin: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* functions in this module SHOULD NOT have side effects,
|
|
3
|
+
* but should be focused around providing necessary data
|
|
4
|
+
* or dom transformations with no state in this file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* transforms an input url to make a link out of
|
|
8
|
+
* into a correctly formed url. If it's clearly a mailing link,
|
|
9
|
+
* adds mailto: to the front, and if it has no protocol but isn't an
|
|
10
|
+
* absolute path, it prepends "http://".
|
|
11
|
+
*
|
|
12
|
+
* @param {string} input the raw url representative input by a user
|
|
13
|
+
*
|
|
14
|
+
* @returns {string} a well formed url
|
|
15
|
+
*/
|
|
16
|
+
export function cleanUrl(input: string): string;
|
|
17
|
+
export function getAnchorElement(editor: any, selectedElm: any): any;
|
|
18
|
+
export function isOnlyTextSelected(html: any): boolean;
|
|
19
|
+
export function isOKToLink(html: any): boolean;
|
|
20
|
+
export function isImageFigure(elm: any): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function renderLink(data: any, contents: any, canvasOrigin: any): string;
|
|
2
|
+
export function renderLinkedImage(linkElem: any, image: any, canvasOrigin: any): string;
|
|
3
|
+
export function constructJSXImageElement(image: any, canvasOrigin: any, opts?: {}): React.JSX.Element;
|
|
4
|
+
export function renderImage(image: any, canvasOrigin: any, opts: any): string;
|
|
5
|
+
export function renderVideo(video: any, canvasOrigin: any): string;
|
|
6
|
+
export function renderAudio(audio: any, canvasOrigin: any): string;
|
|
7
|
+
export function getMediaId(media: any): any;
|
|
8
|
+
export function updateImage(editor: any, img: any, attrs: any): void;
|
|
9
|
+
import React from 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VIEW_CHANGE = "ViewChange";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function to return the corresponding TinyMCE language code for a given locale.
|
|
3
|
+
* If the locale is not provided, it will return the default language (English).
|
|
4
|
+
* If the locale contains underscores, they are replaced with hyphens for compatibility.
|
|
5
|
+
* If the locale contains a custom variant (e.g., -x-), the base language is used for mapping.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} [locale] - The locale string.
|
|
8
|
+
* @returns {string | undefined} The corresponding TinyMCE language code, or undefined if not found.
|
|
9
|
+
*/
|
|
10
|
+
export function editorLanguage(locale?: string): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function normalizeLocale(locale?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ColorTab = 'foreground' | 'background' | 'border';
|
|
3
|
+
export type TabSpec = {
|
|
4
|
+
color?: string;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
export type ColorSpec = {
|
|
8
|
+
bgcolor?: string;
|
|
9
|
+
fgcolor?: string;
|
|
10
|
+
bordercolor?: string;
|
|
11
|
+
};
|
|
12
|
+
export type AtLeastOne<T, U = {
|
|
13
|
+
[K in keyof T]: Pick<T, K>;
|
|
14
|
+
}> = Partial<T> & U[keyof U];
|
|
15
|
+
export type TabsSpec = AtLeastOne<Record<ColorTab, TabSpec>> & {
|
|
16
|
+
effectiveBgColor: string;
|
|
17
|
+
};
|
|
18
|
+
export type ColorsInUse = {
|
|
19
|
+
foreground: string[];
|
|
20
|
+
background: string[];
|
|
21
|
+
border: string[];
|
|
22
|
+
};
|
|
23
|
+
export type ColorPickerProps = {
|
|
24
|
+
tabs: TabsSpec;
|
|
25
|
+
colorsInUse?: ColorsInUse;
|
|
26
|
+
onCancel: () => void;
|
|
27
|
+
onSave: (newcolors: ColorSpec) => void;
|
|
28
|
+
};
|
|
29
|
+
declare const ColorPicker: ({ tabs, colorsInUse, onCancel, onSave }: ColorPickerProps) => React.JSX.Element;
|
|
30
|
+
export { ColorPicker };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColorSpec, type TabsSpec } from './ColorPicker';
|
|
3
|
+
export { type ColorSpec, type TabSpec } from './ColorPicker';
|
|
4
|
+
export type ColorPopupProps = {
|
|
5
|
+
tabs: TabsSpec;
|
|
6
|
+
open: boolean;
|
|
7
|
+
positionTarget?: HTMLElement;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
onChange: (newcolors: ColorSpec) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const ColorPopup: ({ tabs, open, positionTarget, onCancel, onChange }: ColorPopupProps) => React.JSX.Element;
|
|
12
|
+
export { ColorPopup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Editor } from 'tinymce';
|
|
2
|
+
export declare const isTableCellNode: (node: Node) => boolean;
|
|
3
|
+
export declare const isListNode: (editor: Editor) => (node: Node) => boolean;
|
|
4
|
+
export declare function listStyleForSelectionOfEditor(editor: Editor): {
|
|
5
|
+
listType: RceSupportedListType;
|
|
6
|
+
listStyleType?: ListStyleTypeValue;
|
|
7
|
+
} | undefined;
|
|
8
|
+
export type RceSupportedListType = 'UL' | 'OL';
|
|
9
|
+
/**
|
|
10
|
+
* Valid values of the "list-style-type" property.
|
|
11
|
+
*
|
|
12
|
+
* NOTE: Not all these types are supported by the RCE. For that, see `ListStyleTypeValue`
|
|
13
|
+
*
|
|
14
|
+
* From https://www.w3schools.com/cssref/pr_list-style-type.php
|
|
15
|
+
*/
|
|
16
|
+
export type ListStyleTypeValue = 'disc' | 'armenian' | 'circle' | 'cjk-ideographic' | 'decimal' | 'decimal-leading-zero' | 'georgian' | 'hebrew' | 'hiragana' | 'hiragana-iroha' | 'katakana' | 'katakana-iroha' | 'lower-alpha' | 'lower-greek' | 'lower-latin' | 'lower-roman' | 'none' | 'square' | 'upper-alpha' | 'upper-greek' | 'upper-latin' | 'upper-roman' | 'initial' | 'inherit';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(editor: any): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from 'tinymce';
|
|
2
|
+
import { ListStyleTypeValue } from '../core/ListUtils';
|
|
3
|
+
import { ExtractRequired } from '../../../../util/ExtractRequired';
|
|
4
|
+
/**
|
|
5
|
+
* Supported list style types by the RCE
|
|
6
|
+
*/
|
|
7
|
+
export type RceListTypeInfoKey = ExtractRequired<ListStyleTypeValue, 'disc' | 'circle' | 'square' | 'decimal' | 'upper-alpha' | 'upper-roman'>;
|
|
8
|
+
export default function register(editor: Editor): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(ed: any, document: any): Promise<unknown>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function DocumentsPanel(props: any): React.JSX.Element;
|
|
2
|
+
declare namespace DocumentsPanel {
|
|
3
|
+
namespace propTypes {
|
|
4
|
+
export let contextType: import("prop-types").Validator<string>;
|
|
5
|
+
export let fetchInitialDocs: import("prop-types").Validator<(...args: any[]) => any>;
|
|
6
|
+
export let fetchNextDocs: import("prop-types").Validator<(...args: any[]) => any>;
|
|
7
|
+
export let onLinkClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
8
|
+
export let documents: any;
|
|
9
|
+
export let sortBy: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
10
|
+
sort: import("prop-types").Validator<string>;
|
|
11
|
+
order: import("prop-types").Validator<string>;
|
|
12
|
+
}>>>;
|
|
13
|
+
export { string as searchString };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default DocumentsPanel;
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import { string } from 'prop-types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare function Link(props: any): React.JSX.Element;
|
|
2
|
+
declare namespace Link {
|
|
3
|
+
let propTypes: {
|
|
4
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
5
|
+
content_type: import("prop-types").Validator<string>;
|
|
6
|
+
date: import("prop-types").Validator<string>;
|
|
7
|
+
display_name: import("prop-types").Requireable<string>;
|
|
8
|
+
filename: import("prop-types").Requireable<string>;
|
|
9
|
+
href: import("prop-types").Requireable<string>;
|
|
10
|
+
embedded_iframe_url: import("prop-types").Requireable<string>;
|
|
11
|
+
id: import("prop-types").Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
|
|
12
|
+
thumbnail_url: import("prop-types").Requireable<string>;
|
|
13
|
+
preview_url: import("prop-types").Requireable<string>;
|
|
14
|
+
hidden_to_user: import("prop-types").Requireable<boolean>;
|
|
15
|
+
lock_at: import("prop-types").Requireable<string>;
|
|
16
|
+
unlock_at: import("prop-types").Requireable<string>;
|
|
17
|
+
locked_for_user: import("prop-types").Requireable<boolean>;
|
|
18
|
+
published: import("prop-types").Requireable<boolean>;
|
|
19
|
+
focusRef: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
20
|
+
current: import("prop-types").Requireable<Element>;
|
|
21
|
+
}>>;
|
|
22
|
+
};
|
|
23
|
+
namespace defaultProps {
|
|
24
|
+
let focusRef: null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default Link;
|
|
28
|
+
import React from 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare class EquationEditorModal extends React.Component<any, any, any> {
|
|
2
|
+
static debounceRate: number;
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
mathml: Mathml;
|
|
5
|
+
state: {
|
|
6
|
+
advanced: any;
|
|
7
|
+
workingFormula: any;
|
|
8
|
+
};
|
|
9
|
+
previewElement: React.RefObject<any>;
|
|
10
|
+
advancedEditor: React.RefObject<any>;
|
|
11
|
+
insertNewRange(): void;
|
|
12
|
+
advancedModeOnly(latex: any): boolean;
|
|
13
|
+
executeCommand: (cmd: any, advancedCmd: any) => void;
|
|
14
|
+
handleModalCancel: () => void;
|
|
15
|
+
handleModalDone: () => void;
|
|
16
|
+
renderMathInAdvancedPreview: import("@instructure/debounce").Debounced;
|
|
17
|
+
setPreviewElementContent(): void;
|
|
18
|
+
toggleAdvanced: () => void;
|
|
19
|
+
toggleAndUpdatePreference: () => void;
|
|
20
|
+
registerBasicEditorListener: () => void;
|
|
21
|
+
handleFieldRef: (node: any) => void;
|
|
22
|
+
mathField: any;
|
|
23
|
+
renderFooter: () => React.JSX.Element;
|
|
24
|
+
renderToggle: () => React.JSX.Element;
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
27
|
+
stubMacros(): void;
|
|
28
|
+
setMathField(formula: any): void;
|
|
29
|
+
getMathFiled(): any;
|
|
30
|
+
render: () => React.JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
declare namespace EquationEditorModal {
|
|
33
|
+
namespace propTypes {
|
|
34
|
+
let editor: PropTypes.Validator<object>;
|
|
35
|
+
let onModalDismiss: PropTypes.Validator<(...args: any[]) => any>;
|
|
36
|
+
let onModalClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
37
|
+
let onEquationSubmit: PropTypes.Validator<(...args: any[]) => any>;
|
|
38
|
+
let originalLatex: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
39
|
+
latex: PropTypes.Requireable<string>;
|
|
40
|
+
advancedOnly: PropTypes.Requireable<boolean>;
|
|
41
|
+
startContainer: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
42
|
+
leftIndex: PropTypes.Requireable<number>;
|
|
43
|
+
rightIndex: PropTypes.Requireable<number>;
|
|
44
|
+
}>>>;
|
|
45
|
+
let openAdvanced: PropTypes.Validator<boolean>;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export default EquationEditorModal;
|
|
49
|
+
import React from 'react';
|
|
50
|
+
import { Mathml } from '../../../../enhance-user-content/mathml';
|
|
51
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TextEditAction } from '../../../../util/textarea-editing-util';
|
|
2
|
+
/**
|
|
3
|
+
* Inserts text into a textarea for editing LaTeX, handling selection and focus management.
|
|
4
|
+
*
|
|
5
|
+
* Ultimately, this should be refactored out into a React component.
|
|
6
|
+
*
|
|
7
|
+
* @param textarea
|
|
8
|
+
* @param insertionText
|
|
9
|
+
*/
|
|
10
|
+
export declare function insertTextIntoLatexTextarea(textarea: HTMLTextAreaElement, insertionText: string): void;
|
|
11
|
+
export declare function planInsertTextIntoLatexTextarea(args: {
|
|
12
|
+
currentText: string;
|
|
13
|
+
selStart: number;
|
|
14
|
+
selEnd: number;
|
|
15
|
+
insertionText: string;
|
|
16
|
+
}): TextEditAction[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Editor } from 'tinymce';
|
|
2
|
+
export type ParsedLatex = {
|
|
3
|
+
latex?: string;
|
|
4
|
+
advancedOnly?: boolean;
|
|
5
|
+
startContainer?: Node;
|
|
6
|
+
leftIndex?: number;
|
|
7
|
+
rightIndex?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const selectionIsLatex: (selection: string) => boolean;
|
|
10
|
+
export declare const cleanLatex: (latex: string) => string;
|
|
11
|
+
export declare const findLatex: (nodeValue: string, cursor: number) => ParsedLatex;
|
|
12
|
+
export declare const parseLatex: (editor: Editor) => ParsedLatex;
|