@instructure/canvas-rce 5.15.4 → 5.15.6
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/coverage/canvas-rce-jest.xml +7028 -0
- 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/tsconfig.tsbuildinfo +1 -0
- package/scripts/build.js +0 -40
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ExternalToolsEditor, RCEWrapperInterface, RCEWrapperProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Type of the "editor buttons" that come from Canvas.
|
|
4
|
+
*
|
|
5
|
+
* They're actually the available LTI Tool configurations, so we give them a more reasonable name here.
|
|
6
|
+
*/
|
|
7
|
+
export type RceLtiToolInfo = NonNullable<NonNullable<RCEWrapperProps['ltiTools']>[number]>;
|
|
8
|
+
export interface ExternalToolsEnv {
|
|
9
|
+
editor: ExternalToolsEditor | null;
|
|
10
|
+
rceWrapper: RCEWrapperInterface | null;
|
|
11
|
+
availableRceLtiTools: RceLtiToolInfo[];
|
|
12
|
+
contextAssetInfo: {
|
|
13
|
+
contextType: string;
|
|
14
|
+
contextId: string;
|
|
15
|
+
} | null;
|
|
16
|
+
resourceSelectionUrlOverride: string | null;
|
|
17
|
+
ltiIframeAllowPolicy: string;
|
|
18
|
+
isA2StudentView: boolean;
|
|
19
|
+
maxMruTools: number;
|
|
20
|
+
canvasOrigin: string;
|
|
21
|
+
containingCanvasLtiToolId: string | null;
|
|
22
|
+
editorSelection: string | null;
|
|
23
|
+
editorContent: string | null;
|
|
24
|
+
insertCode(code: string): any;
|
|
25
|
+
replaceCode(code: string): any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Gets the environment information for the external tools dialog for a given tinyMCE editor.
|
|
29
|
+
*/
|
|
30
|
+
export declare function externalToolsEnvFor(editor: ExternalToolsEditor | null | undefined): ExternalToolsEnv;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ExternalToolsEnv, RceLtiToolInfo } from './ExternalToolsEnv';
|
|
2
|
+
export interface ExternalToolMenuItem {
|
|
3
|
+
type: 'menuitem';
|
|
4
|
+
text: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
onAction: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Helper class for the connection between an external tool registration and a particular TinyMCE instance.
|
|
10
|
+
*/
|
|
11
|
+
export declare class RceToolWrapper {
|
|
12
|
+
readonly env: ExternalToolsEnv;
|
|
13
|
+
private readonly toolInfo;
|
|
14
|
+
static forEditorEnv(env: ExternalToolsEnv, toolConfigs?: (import("prop-types").InferPropsInner<Pick<{
|
|
15
|
+
id: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
|
|
16
|
+
favorite: import("prop-types").Requireable<boolean>;
|
|
17
|
+
on_by_default: import("prop-types").Requireable<boolean>;
|
|
18
|
+
name: import("prop-types").Requireable<string>;
|
|
19
|
+
description: import("prop-types").Requireable<string>;
|
|
20
|
+
icon_url: import("prop-types").Requireable<string>;
|
|
21
|
+
height: import("prop-types").Requireable<number>;
|
|
22
|
+
width: import("prop-types").Requireable<number>;
|
|
23
|
+
use_tray: import("prop-types").Requireable<boolean>;
|
|
24
|
+
canvas_icon_class: import("prop-types").Requireable<any>;
|
|
25
|
+
}, never>> & Partial<import("prop-types").InferPropsInner<Pick<{
|
|
26
|
+
id: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
|
|
27
|
+
favorite: import("prop-types").Requireable<boolean>;
|
|
28
|
+
on_by_default: import("prop-types").Requireable<boolean>;
|
|
29
|
+
name: import("prop-types").Requireable<string>;
|
|
30
|
+
description: import("prop-types").Requireable<string>;
|
|
31
|
+
icon_url: import("prop-types").Requireable<string>;
|
|
32
|
+
height: import("prop-types").Requireable<number>;
|
|
33
|
+
width: import("prop-types").Requireable<number>;
|
|
34
|
+
use_tray: import("prop-types").Requireable<boolean>;
|
|
35
|
+
canvas_icon_class: import("prop-types").Requireable<any>;
|
|
36
|
+
}, "description" | "id" | "name" | "height" | "width" | "favorite" | "on_by_default" | "icon_url" | "use_tray" | "canvas_icon_class">>>)[], mruIds?: string[]): RceToolWrapper[];
|
|
37
|
+
readonly iconId: string | null | undefined;
|
|
38
|
+
isMruTool: boolean;
|
|
39
|
+
get editor(): import("../../types").ExternalToolsEditor | null;
|
|
40
|
+
constructor(env: ExternalToolsEnv, toolInfo: RceLtiToolInfo, mruToolIds: string[]);
|
|
41
|
+
get id(): string;
|
|
42
|
+
get title(): string;
|
|
43
|
+
get description(): string | null | undefined;
|
|
44
|
+
get favorite(): boolean;
|
|
45
|
+
get image(): string | null | undefined;
|
|
46
|
+
get width(): number | null | undefined;
|
|
47
|
+
get height(): number | null | undefined;
|
|
48
|
+
get use_tray(): boolean | null | undefined;
|
|
49
|
+
get on_by_default(): boolean | null | undefined;
|
|
50
|
+
asToolbarButton(): {
|
|
51
|
+
readonly type: "button";
|
|
52
|
+
readonly icon: string | undefined;
|
|
53
|
+
readonly tooltip: string;
|
|
54
|
+
readonly onAction: () => void;
|
|
55
|
+
};
|
|
56
|
+
asMenuItem(): {
|
|
57
|
+
readonly type: "menuitem";
|
|
58
|
+
readonly text: string;
|
|
59
|
+
readonly icon: string | undefined;
|
|
60
|
+
readonly onAction: () => void;
|
|
61
|
+
};
|
|
62
|
+
openDialog(): void;
|
|
63
|
+
}
|
|
64
|
+
export declare function parseIconValueFor(toolInfo: RceLtiToolInfo): {
|
|
65
|
+
iconUrl?: string;
|
|
66
|
+
canvasIconClass?: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Loads the list of most recently used external tool ids.
|
|
70
|
+
*/
|
|
71
|
+
export declare function loadMruToolIds(): string[];
|
|
72
|
+
/**
|
|
73
|
+
* Loads the list of most recently used external tool ids.
|
|
74
|
+
*/
|
|
75
|
+
export declare function storeMruToolIds(toolIds: string[]): void;
|
|
76
|
+
export declare function addMruToolId(toolId: string, env: ExternalToolsEnv): string[];
|
|
77
|
+
export declare function buildToolMenuItems(availableTools: RceToolWrapper[], viewAllItem: ExternalToolMenuItem): ExternalToolMenuItem[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalToolsEnv } from '../../ExternalToolsEnv';
|
|
3
|
+
import { RceToolWrapper } from '../../RceToolWrapper';
|
|
4
|
+
export interface ExternalToolDialogProps {
|
|
5
|
+
env: ExternalToolsEnv;
|
|
6
|
+
iframeAllowances: string;
|
|
7
|
+
resourceSelectionUrlOverride?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export default class ExternalToolDialog extends React.Component<ExternalToolDialogProps, ExternalToolDialogState> {
|
|
10
|
+
static defaultProps: Partial<ExternalToolDialogProps>;
|
|
11
|
+
state: ExternalToolDialogState;
|
|
12
|
+
formRef: React.RefObject<HTMLFormElement>;
|
|
13
|
+
beforeInfoAlertRef: React.RefObject<HTMLDivElement>;
|
|
14
|
+
afterInfoAlertRef: React.RefObject<HTMLDivElement>;
|
|
15
|
+
iframeRef: React.RefObject<HTMLIFrameElement>;
|
|
16
|
+
open(button: RceToolWrapper): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
handleBeforeUnload: (ev: Event) => string;
|
|
19
|
+
private handleExternalContentReady;
|
|
20
|
+
get resourceSelectionOrigin(): string;
|
|
21
|
+
handlePostedMessage: (ev: Pick<MessageEvent, "origin" | "data">) => void;
|
|
22
|
+
handleClose: () => void;
|
|
23
|
+
handleOpen: () => void;
|
|
24
|
+
handleRemove: () => void;
|
|
25
|
+
handleInfoAlertFocus: (ev: {
|
|
26
|
+
target: Element;
|
|
27
|
+
}) => void;
|
|
28
|
+
handleInfoAlertBlur: () => void;
|
|
29
|
+
calcIFrameHeight: () => string;
|
|
30
|
+
render(): React.JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
interface ExternalToolDialogState {
|
|
33
|
+
open: boolean;
|
|
34
|
+
button: RceToolWrapper | null;
|
|
35
|
+
infoAlert: Element | null;
|
|
36
|
+
form: ExternalToolDialogForm;
|
|
37
|
+
iframeLoaded: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface ExternalToolDialogForm {
|
|
40
|
+
url: string;
|
|
41
|
+
selection: string;
|
|
42
|
+
contents: string;
|
|
43
|
+
parent_frame_context: string | null;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReactNodeLike } from 'prop-types';
|
|
3
|
+
import { ModalProps } from '@instructure/ui-modal/types';
|
|
4
|
+
export declare function ExternalToolDialogModal(props: Pick<ModalProps, 'label' | 'open' | 'onOpen' | 'onClose' | 'mountNode'> & {
|
|
5
|
+
onCloseButton: () => void;
|
|
6
|
+
name: string;
|
|
7
|
+
children: ReactNodeLike;
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TrayProps } from '@instructure/ui-tray';
|
|
3
|
+
interface ExternalToolDialogTrayProps {
|
|
4
|
+
open: TrayProps['open'];
|
|
5
|
+
label: TrayProps['label'];
|
|
6
|
+
mountNode: TrayProps['mountNode'];
|
|
7
|
+
onOpen?: TrayProps['onOpen'];
|
|
8
|
+
onClose?: TrayProps['onClose'];
|
|
9
|
+
onCloseButton?: () => void;
|
|
10
|
+
name: string;
|
|
11
|
+
children: TrayProps['children'];
|
|
12
|
+
}
|
|
13
|
+
export declare function ExternalToolDialogTray(props: ExternalToolDialogTrayProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RceToolWrapper } from '../../RceToolWrapper';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a filtered list of items based on the term.
|
|
4
|
+
*
|
|
5
|
+
* This was copied from legacy code, and feels like it should be replaced by a string matching library.
|
|
6
|
+
*
|
|
7
|
+
* @param searchString search term
|
|
8
|
+
* @param items objects to filter
|
|
9
|
+
* @return matching items if a non-blank search term is provided, otherwise a copy of the original list
|
|
10
|
+
*/
|
|
11
|
+
export declare function filterItemsByTitleSubstring<T extends {
|
|
12
|
+
title: string;
|
|
13
|
+
}>(searchString: string | undefined | null, items: T[]): T[];
|
|
14
|
+
export interface ExternalToolSelectionDialogProps {
|
|
15
|
+
ltiButtons: RceToolWrapper[];
|
|
16
|
+
onDismiss: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function ExternalToolSelectionDialog(props: ExternalToolSelectionDialogProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LtiToolProps {
|
|
3
|
+
title: string;
|
|
4
|
+
image?: string | null;
|
|
5
|
+
onAction: () => void;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export default function ExternalToolSelectionItem(props: LtiToolProps): React.JSX.Element;
|
|
9
|
+
export declare const styles: {
|
|
10
|
+
appTitle: object;
|
|
11
|
+
appButton: object;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Provide an iframe for launching an LTI tool directly from the frontend.
|
|
4
|
+
* Works just like all existing usages of the LTI <iframe> element, including
|
|
5
|
+
* extracting a ref of the <iframe> directly and setting things on it later.
|
|
6
|
+
*/
|
|
7
|
+
declare const ToolLaunchIframe: React.ForwardRefExoticComponent<React.IframeHTMLAttributes<HTMLIFrameElement> & {
|
|
8
|
+
children?: React.ReactNode | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLIFrameElement>>;
|
|
10
|
+
export default ToolLaunchIframe;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Name of the parameter used to indicate to Canvas that it is being loaded in an iframe inside of an
|
|
3
|
+
* LTI tool. It should be set to the global id of the containing tool.
|
|
4
|
+
*/
|
|
5
|
+
export declare const parentFrameContextParam = "parent_frame_context";
|
|
6
|
+
/**
|
|
7
|
+
* Fallback iframe allowances used when they aren't provided to the editor.
|
|
8
|
+
*/
|
|
9
|
+
export declare const fallbackIframeAllowances: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs interpolation on the given text, replacing `{{name}}` with `value`.
|
|
3
|
+
*
|
|
4
|
+
* @param text The text to interpolate
|
|
5
|
+
* @param name The name of the tag to replace
|
|
6
|
+
* @param value The value to replace the tag with
|
|
7
|
+
*/
|
|
8
|
+
export declare function replaceOneTag<TInput extends string | null | undefined = string>(text: TInput, name: string | null | undefined, value: string | null | undefined): TInput;
|
|
9
|
+
/**
|
|
10
|
+
* Performs interpolation on the given text, replacing one or more tags in the form `{{tag}}` with a value.
|
|
11
|
+
*
|
|
12
|
+
* Takes either a single tag name and value, or a record of tag name -> tag value
|
|
13
|
+
*
|
|
14
|
+
* @param text The text to interpolate
|
|
15
|
+
* @param mappingOrName The mapping record or tag name
|
|
16
|
+
* @param maybeValue The value to replace with, if a single tag name was provided
|
|
17
|
+
*/
|
|
18
|
+
export declare function replaceTags<TNull extends never | null | undefined = never>(text: string | TNull, mappingOrName: Record<string, string> | string, maybeValue?: string): string | TNull;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TL;DR: Remove this file when possible.
|
|
3
|
+
*
|
|
4
|
+
* Please note that this file is considered very legacy. All instances of it
|
|
5
|
+
* should be evaluated and replaced with the newer and far better looking
|
|
6
|
+
* KyleMenu. The only other place that I've seen it in used is the file
|
|
7
|
+
* attendance.js which is on the chopping block at some point in the future.
|
|
8
|
+
* Once that file has been axed, then this file should be able to be removed.
|
|
9
|
+
*/
|
|
10
|
+
interface DropdownListOptions {
|
|
11
|
+
height: number;
|
|
12
|
+
width: 'auto' | number;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface Window {
|
|
16
|
+
jQuery?: JQuery;
|
|
17
|
+
$?: JQuery;
|
|
18
|
+
}
|
|
19
|
+
interface JQuery {
|
|
20
|
+
dropdownList: ((this: JQuery, options: 'hide' | 'remove' | (Partial<DropdownListOptions> & {
|
|
21
|
+
options?: Record<string, Function | undefined>;
|
|
22
|
+
})) => this) & {
|
|
23
|
+
defaults: DropdownListOptions;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {};
|
package/es/rce/plugins/instructure_rce_external_tools/lti11-content-items/RceLti11ContentItem.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { DeepPartialNullable } from '../../../../util/DeepPartialNullable';
|
|
2
|
+
import { ExternalToolsEnv } from '../ExternalToolsEnv';
|
|
3
|
+
import { StudioContentItemCustomJson } from '../../shared/StudioLtiSupportUtils';
|
|
4
|
+
export declare class RceLti11ContentItem {
|
|
5
|
+
readonly contentItem: RceLti11ContentItemJson;
|
|
6
|
+
readonly env: ExternalToolsEnv;
|
|
7
|
+
static fromJSON(contentItem: RceLti11ContentItemJson, env?: ExternalToolsEnv): RceLti11ContentItem;
|
|
8
|
+
constructor(contentItem: RceLti11ContentItemJson, env?: ExternalToolsEnv);
|
|
9
|
+
get text(): string | null | undefined;
|
|
10
|
+
get isLTI(): boolean;
|
|
11
|
+
get isOverriddenForThumbnail(): boolean | null | undefined;
|
|
12
|
+
get isImage(): boolean;
|
|
13
|
+
get linkClassName(): string;
|
|
14
|
+
get url(): string | undefined;
|
|
15
|
+
get linkTarget(): string | null;
|
|
16
|
+
get docTarget(): string | undefined;
|
|
17
|
+
get codePayload(): string;
|
|
18
|
+
private get containingCanvasLtiToolId();
|
|
19
|
+
private get currentTinyMceSelection();
|
|
20
|
+
private generateCodePayloadIframe;
|
|
21
|
+
private generateCodePayloadEmbed;
|
|
22
|
+
private generateCodePayloadText;
|
|
23
|
+
private generateCodePayloadLink;
|
|
24
|
+
private generateLinkHtml;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Declare the global tinyMCE information used to pass editor context around in Canvas.
|
|
28
|
+
*
|
|
29
|
+
* Eventually, this should be moved into packages/canvas-rce.
|
|
30
|
+
*/
|
|
31
|
+
declare global {
|
|
32
|
+
interface Window {
|
|
33
|
+
tinyMCE?: {
|
|
34
|
+
activeEditor?: {
|
|
35
|
+
selection: {
|
|
36
|
+
getContent(): string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
} | null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Interface for content items that come from external tool resource selection.
|
|
44
|
+
*
|
|
45
|
+
* Note that this interface may not be exhaustive, but provides types for the portion of ContentItem used by Canvas.
|
|
46
|
+
* Additionally, there are some extra properties present here used by canvas
|
|
47
|
+
*
|
|
48
|
+
* See https://www.imsglobal.org/spec/lti-dl/v2p0#content-item-types
|
|
49
|
+
* and https://www.imsglobal.org/lti/model/mediatype/application/vnd/ims/lti/v1/contentitems%2Bjson/index.html
|
|
50
|
+
* and https://www.imsglobal.org/lti/model/mediatype/application/vnd/ims/lti/v1/contentitems%2Bjson/context.json
|
|
51
|
+
*/
|
|
52
|
+
export type RceLti11ContentItemJson = DeepPartialNullable<{
|
|
53
|
+
'@type': 'ContentItem' | 'LtiLinkItem' | 'FileItem' | 'LtiLink' | string;
|
|
54
|
+
'@id': string;
|
|
55
|
+
mediaType: string;
|
|
56
|
+
text: string;
|
|
57
|
+
title: string;
|
|
58
|
+
url: string;
|
|
59
|
+
thumbnail: {
|
|
60
|
+
'@id': string;
|
|
61
|
+
height: number | string;
|
|
62
|
+
width: number | string;
|
|
63
|
+
};
|
|
64
|
+
placementAdvice: {
|
|
65
|
+
displayHeight: number | string;
|
|
66
|
+
displayWidth: number | string;
|
|
67
|
+
presentationDocumentTarget: 'window' | 'embed' | 'iframe' | string;
|
|
68
|
+
};
|
|
69
|
+
canvasURL: string;
|
|
70
|
+
class: string;
|
|
71
|
+
custom: StudioContentItemCustomJson | unknown;
|
|
72
|
+
}>;
|
package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/Lti13ContentItemJson.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DeepPartialNullable } from '../../../../util/DeepPartialNullable';
|
|
2
|
+
export type Lti13ContentItemJson = HtmlFragmentContentItemJson | ImageContentItemJson | LinkContentItemJson | ResourceLinkContentItemJson | UnknownContentItemJson;
|
|
3
|
+
export type UnknownContentItemJson = DeepPartialNullable<{
|
|
4
|
+
type: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
export type HtmlFragmentContentItemJson = DeepPartialNullable<{
|
|
8
|
+
type: 'html';
|
|
9
|
+
html: string;
|
|
10
|
+
title: string;
|
|
11
|
+
text: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type ImageContentItemJson = DeepPartialNullable<{
|
|
14
|
+
type: 'image';
|
|
15
|
+
url: string;
|
|
16
|
+
title: string;
|
|
17
|
+
thumbnail: ContentItemThumbnailJson | string;
|
|
18
|
+
text: string;
|
|
19
|
+
width: number | string;
|
|
20
|
+
height: number | string;
|
|
21
|
+
}>;
|
|
22
|
+
export type BaseLinkContentItemJson = DeepPartialNullable<{
|
|
23
|
+
type: 'link' | 'ltiResourceLink';
|
|
24
|
+
url: string;
|
|
25
|
+
title: string;
|
|
26
|
+
text: string;
|
|
27
|
+
icon: unknown;
|
|
28
|
+
thumbnail: unknown;
|
|
29
|
+
iframe: ContentItemIframeJson;
|
|
30
|
+
custom: unknown;
|
|
31
|
+
lookup_uuid: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type LinkContentItemJson = DeepPartialNullable<BaseLinkContentItemJson & {
|
|
34
|
+
type: 'link';
|
|
35
|
+
}>;
|
|
36
|
+
export type ResourceLinkContentItemJson = DeepPartialNullable<BaseLinkContentItemJson & {
|
|
37
|
+
type: 'ltiResourceLink';
|
|
38
|
+
lookup_uuid: string;
|
|
39
|
+
}>;
|
|
40
|
+
export type ContentItemThumbnailJson = DeepPartialNullable<{
|
|
41
|
+
url: string;
|
|
42
|
+
width: number | string;
|
|
43
|
+
height: number | string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare function isContentItemThumbnailJson(input: any): input is ContentItemThumbnailJson & {
|
|
46
|
+
url: string;
|
|
47
|
+
};
|
|
48
|
+
export type ContentItemIframeJson = DeepPartialNullable<{
|
|
49
|
+
src: string;
|
|
50
|
+
width: number | string;
|
|
51
|
+
height: number | string;
|
|
52
|
+
}>;
|
|
53
|
+
export declare function isContentItemIframeJson(input: any): input is ContentItemIframeJson & {
|
|
54
|
+
src: string;
|
|
55
|
+
};
|
package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/RceLti13ContentItem.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Lti13ContentItemJson } from './Lti13ContentItemJson';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an LTI 1.3 Deep Linking Content Item for purposes related to the Rich Content Editor.
|
|
4
|
+
*
|
|
5
|
+
* Use rceLti13ContentItemFromJson to create instances of this class.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class RceLti13ContentItem<TJson extends object> {
|
|
8
|
+
readonly type: Lti13ContentItemJson['type'];
|
|
9
|
+
readonly json: TJson;
|
|
10
|
+
readonly context: RceLti13ContentItemContext;
|
|
11
|
+
constructor(type: Lti13ContentItemJson['type'], json: TJson, context: RceLti13ContentItemContext);
|
|
12
|
+
abstract buildTitle(): string | null | undefined;
|
|
13
|
+
abstract buildText(): string | null | undefined;
|
|
14
|
+
abstract buildUrl(): string | null | undefined;
|
|
15
|
+
abstract toHtmlString(): any;
|
|
16
|
+
private get untypedJson();
|
|
17
|
+
linkThumbnail(): string | undefined;
|
|
18
|
+
iframeTag(): string | undefined;
|
|
19
|
+
imageTag(src: string, width?: string | number | null, height?: string | number | null): string;
|
|
20
|
+
anchorTag(innerHTML: string | null | undefined): string;
|
|
21
|
+
get safeUrl(): string;
|
|
22
|
+
}
|
|
23
|
+
export interface RceLti13ContentItemClass<T extends Lti13ContentItemJson> {
|
|
24
|
+
new (json: T, context: RceLti13ContentItemContext): RceLti13ContentItem<T>;
|
|
25
|
+
}
|
|
26
|
+
export interface RceLti13ContentItemContext {
|
|
27
|
+
ltiIframeAllowPolicy: string | null;
|
|
28
|
+
containingCanvasLtiToolId: string | null;
|
|
29
|
+
ltiEndpoint: string | null;
|
|
30
|
+
selection: string | null;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RceLti13ContentItem } from '../RceLti13ContentItem';
|
|
2
|
+
import { BaseLinkContentItemJson } from '../Lti13ContentItemJson';
|
|
3
|
+
export default class BaseLinkContentItem<TJson extends BaseLinkContentItemJson> extends RceLti13ContentItem<TJson> {
|
|
4
|
+
toHtmlString(): string | undefined;
|
|
5
|
+
linkText(): string | undefined;
|
|
6
|
+
linkBody(): string | undefined;
|
|
7
|
+
buildText(): string | null | undefined;
|
|
8
|
+
buildUrl(): string | null | undefined;
|
|
9
|
+
buildTitle(): string | null | undefined;
|
|
10
|
+
get icon(): unknown;
|
|
11
|
+
get thumbnail(): unknown;
|
|
12
|
+
get iframe(): import("../../../../../util/DeepPartialNullable").DeepPartialNullable<import("../../../../../util/DeepPartialNullable").DeepPartialNullable<{
|
|
13
|
+
src: string;
|
|
14
|
+
width: number | string;
|
|
15
|
+
height: number | string;
|
|
16
|
+
}>> | null | undefined;
|
|
17
|
+
get custom(): unknown;
|
|
18
|
+
get lookup_uuid(): string | null | undefined;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RceLti13ContentItem, RceLti13ContentItemContext } from '../RceLti13ContentItem';
|
|
2
|
+
import { HtmlFragmentContentItemJson } from '../Lti13ContentItemJson';
|
|
3
|
+
export default class HtmlFragmentContentItem extends RceLti13ContentItem<HtmlFragmentContentItemJson> {
|
|
4
|
+
static readonly type = "html";
|
|
5
|
+
constructor(json: HtmlFragmentContentItemJson, context: RceLti13ContentItemContext);
|
|
6
|
+
get html(): string | null | undefined;
|
|
7
|
+
buildTitle(): string | null | undefined;
|
|
8
|
+
buildText(): string | null | undefined;
|
|
9
|
+
buildUrl(): undefined;
|
|
10
|
+
toHtmlString(): string | null | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RceLti13ContentItem, RceLti13ContentItemContext } from '../RceLti13ContentItem';
|
|
2
|
+
import { ImageContentItemJson } from '../Lti13ContentItemJson';
|
|
3
|
+
export default class ImageContentItem extends RceLti13ContentItem<ImageContentItemJson> {
|
|
4
|
+
static readonly type = "image";
|
|
5
|
+
constructor(json: ImageContentItemJson, context: RceLti13ContentItemContext);
|
|
6
|
+
buildUrl(): string | null | undefined;
|
|
7
|
+
buildTitle(): string | null | undefined;
|
|
8
|
+
get thumbnail(): string | import("../../../../../util/DeepPartialNullable").DeepPartialNullable<{
|
|
9
|
+
url: string;
|
|
10
|
+
width: number | string;
|
|
11
|
+
height: number | string;
|
|
12
|
+
}> | null | undefined;
|
|
13
|
+
buildText(): string | null | undefined;
|
|
14
|
+
get width(): string | number | null | undefined;
|
|
15
|
+
get height(): string | number | null | undefined;
|
|
16
|
+
toHtmlString(): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BaseLinkContentItem from './BaseLinkContentItem';
|
|
2
|
+
import { RceLti13ContentItemContext } from '../RceLti13ContentItem';
|
|
3
|
+
import { LinkContentItemJson } from '../Lti13ContentItemJson';
|
|
4
|
+
export default class LinkContentItem extends BaseLinkContentItem<LinkContentItemJson> {
|
|
5
|
+
static readonly type = "link";
|
|
6
|
+
constructor(json: LinkContentItemJson, context: RceLti13ContentItemContext);
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseLinkContentItem from './BaseLinkContentItem';
|
|
2
|
+
import { ResourceLinkContentItemJson } from '../Lti13ContentItemJson';
|
|
3
|
+
import { RceLti13ContentItemContext } from '../RceLti13ContentItem';
|
|
4
|
+
export default class ResourceLinkContentItem extends BaseLinkContentItem<ResourceLinkContentItemJson> {
|
|
5
|
+
static readonly type = "ltiResourceLink";
|
|
6
|
+
constructor(json: ResourceLinkContentItemJson, context: RceLti13ContentItemContext);
|
|
7
|
+
toHtmlString(): string | undefined;
|
|
8
|
+
buildUrl(): string | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Lti13ContentItemJson } from './Lti13ContentItemJson';
|
|
2
|
+
import { ExternalToolsEnv } from '../ExternalToolsEnv';
|
|
3
|
+
export default function processEditorContentItems(event: {
|
|
4
|
+
data?: {
|
|
5
|
+
content_items?: Lti13ContentItemJson[] | null;
|
|
6
|
+
ltiEndpoint?: string | null;
|
|
7
|
+
replaceEditorContents?: boolean | null;
|
|
8
|
+
msg?: string | null;
|
|
9
|
+
errorMsg?: string | null;
|
|
10
|
+
};
|
|
11
|
+
}, env: ExternalToolsEnv, dialog: {
|
|
12
|
+
close(): any;
|
|
13
|
+
} | null): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Lti13ContentItemJson } from './Lti13ContentItemJson';
|
|
2
|
+
import { RceLti13ContentItem, RceLti13ContentItemContext } from './RceLti13ContentItem';
|
|
3
|
+
/**
|
|
4
|
+
* Creates an RceLti13ContentItem from the given JSON, or null if the type isn't supported.
|
|
5
|
+
*
|
|
6
|
+
* Note: this function would ideally be a static member of RceLti13ContentItem, but that creates a circular dependency
|
|
7
|
+
* with the implementations of the base class, so it needs to be in a separate module.
|
|
8
|
+
*
|
|
9
|
+
* @param itemJson
|
|
10
|
+
* @param context
|
|
11
|
+
*/
|
|
12
|
+
export declare function rceLti13ContentItemFromJson<TJson extends Lti13ContentItemJson>(itemJson: TJson, context: RceLti13ContentItemContext): RceLti13ContentItem<TJson> | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExternalToolsEditor } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* This plugin adds the "Apps" toolbar button and the "Apps" menu item. It is a rewrite of 'instructure_external_tools'
|
|
4
|
+
* to live fully in the canvas-rce package. It supports running in an iframe as part of an LTI tool, such as
|
|
5
|
+
* new quizzes.
|
|
6
|
+
*
|
|
7
|
+
* @param editor
|
|
8
|
+
*/
|
|
9
|
+
export declare function initExternalToolsLocalPlugin(editor: ExternalToolsEditor): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addParentFrameContextToUrl(inputUrlStr: string | null | undefined, containingCanvasLtiToolId: string | null | undefined): string | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const CONTAINER_ID: "instructure-audio-options-tray-container";
|
|
2
|
+
export default class TrayController {
|
|
3
|
+
_isOpen: boolean;
|
|
4
|
+
_shouldOpen: boolean;
|
|
5
|
+
_editor: any;
|
|
6
|
+
_audioContainer: any;
|
|
7
|
+
get container(): HTMLElement;
|
|
8
|
+
get isOpen(): boolean;
|
|
9
|
+
showTrayForEditor(editor: any): void;
|
|
10
|
+
hideTrayForEditor(editor: any): void;
|
|
11
|
+
_dismissTray(): void;
|
|
12
|
+
_resetController(): Node;
|
|
13
|
+
_applyAudioOptions(audioOptions: any): any;
|
|
14
|
+
requestSubtitlesFromIframe(cb: any): void;
|
|
15
|
+
_subtitleListener: AbortController | undefined;
|
|
16
|
+
_renderTray(trayProps: any): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare function AudioOptionsTray({ open, onEntered, onExited, onDismiss, onSave, trayProps, audioOptions, requestSubtitlesFromIframe, }: {
|
|
2
|
+
open: any;
|
|
3
|
+
onEntered: any;
|
|
4
|
+
onExited: any;
|
|
5
|
+
onDismiss: any;
|
|
6
|
+
onSave: any;
|
|
7
|
+
trayProps: any;
|
|
8
|
+
audioOptions: any;
|
|
9
|
+
requestSubtitlesFromIframe: any;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare namespace AudioOptionsTray {
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
export { func as onEntered };
|
|
14
|
+
export { func as onExited };
|
|
15
|
+
export { func as onDismiss };
|
|
16
|
+
export { func as onSave };
|
|
17
|
+
export let open: import("prop-types").Validator<boolean>;
|
|
18
|
+
export { func as requestSubtitlesFromIframe };
|
|
19
|
+
export let trayProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
20
|
+
host: import("prop-types").Validator<string>;
|
|
21
|
+
jwt: import("prop-types").Validator<string>;
|
|
22
|
+
}>>>;
|
|
23
|
+
export let audioOptions: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
24
|
+
id: import("prop-types").Validator<string>;
|
|
25
|
+
titleText: import("prop-types").Validator<string>;
|
|
26
|
+
tracks: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
27
|
+
locale: import("prop-types").Validator<string>;
|
|
28
|
+
}> | null | undefined)[]>;
|
|
29
|
+
}>>>;
|
|
30
|
+
}
|
|
31
|
+
namespace defaultProps {
|
|
32
|
+
let onEntered: null;
|
|
33
|
+
let onExited: null;
|
|
34
|
+
let onDismiss: null;
|
|
35
|
+
let onSave: null;
|
|
36
|
+
function requestSubtitlesFromIframe(): void;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default AudioOptionsTray;
|
|
40
|
+
import React from 'react';
|
|
41
|
+
import { func } from 'prop-types';
|