@instructure/canvas-rce 5.11.1 → 5.12.2
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/CHANGELOG.md +32 -0
- package/babel-register.js +0 -7
- package/babel.config.cjs.js +0 -7
- package/babel.config.js +0 -9
- package/es/canvasFileBrowser/FileBrowser.js +6 -1
- package/es/common/fileUrl.js +3 -4
- package/es/defaultTinymceConfig.js +1 -1
- package/{lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/Lti13ContentItemJson.js → es/elementDenylist.js} +2 -6
- package/es/enhance-user-content/doc_previews.js +4 -0
- package/es/enhance-user-content/enhance_user_content.js +4 -59
- package/es/enhance-user-content/external_links.js +75 -0
- package/es/enhance-user-content/mathml.js +9 -7
- package/es/getThemeVars.js +4 -3
- package/es/getTranslations.js +77 -1
- package/es/index.js +1 -1
- package/es/rce/RCEWrapper.js +5 -2328
- package/es/rce/StatusBar.js +8 -2
- package/es/rce/contentInsertion.js +5 -2
- package/es/rce/plugins/instructure_documents/components/DocumentsPanel.js +3 -9
- package/es/rce/plugins/instructure_equation/EquationEditorModal/index.js +1 -1
- package/es/rce/plugins/instructure_equation/EquationEditorModal/styles.js +3 -11
- package/es/rce/plugins/instructure_equation/mathlive/index.js +5 -13
- package/es/rce/plugins/instructure_html_view/plugin.js +2 -2
- package/es/rce/plugins/instructure_icon_maker/components/SavedIconMakerList.js +3 -2
- package/es/rce/plugins/instructure_image/ImageList/Image.js +2 -2
- package/es/rce/plugins/instructure_image/Images/index.js +3 -10
- package/es/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialog.js +3 -0
- package/es/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ResourceLinkContentItem.js +3 -1
- package/es/rce/plugins/instructure_record/AudioOptionsTray/TrayController.js +26 -1
- package/es/rce/plugins/instructure_record/AudioOptionsTray/index.js +9 -3
- package/es/rce/plugins/instructure_record/MediaPanel/index.js +3 -9
- package/es/rce/plugins/instructure_record/VideoOptionsTray/TrayController.js +27 -2
- package/es/rce/plugins/instructure_record/VideoOptionsTray/index.js +35 -6
- package/es/rce/plugins/shared/fileShape.js +81 -9
- package/es/rce/plugins/shared/fileTypeUtils.js +6 -0
- package/es/rce/tinymce.oxide.content.min.css.js +732 -0
- package/es/rce/tinymce.oxide.skin.min.css.js +7 -0
- package/es/rcs/api.js +6 -4
- package/es/sidebar/store/configureStore.js +2 -2
- package/{lib/translations/locales/tg.js → es/translations/locales/ab.js} +1 -1
- package/es/translations/locales/cs.js +27 -0
- package/es/translations/locales/cs_CZ.js +27 -0
- package/{lib/translations/locales/sv_SE.js → es/translations/locales/da_DK.js} +2 -2
- package/{lib/translations/locales/se.js → es/translations/locales/en_NZ.js} +2 -2
- package/es/translations/locales/en_SE.js +26 -0
- package/es/translations/locales/en_US.js +26 -0
- package/es/translations/locales/hu_HU.js +27 -0
- package/{lib/translations/locales/ms.js → es/translations/locales/id.js} +632 -632
- package/{lib/translations/locales/th.js → es/translations/locales/id_ID.js} +1 -2
- package/{lib/translations/locales/vi_VN.js → es/translations/locales/ko_KR.js} +2 -2
- package/es/translations/locales/lt.js +26 -0
- package/es/translations/locales/lt_LT.js +26 -0
- package/es/translations/locales/mn_MN.js +26 -0
- package/es/translations/locales/nl_NL.js +27 -0
- package/{lib/translations/locales/es_GT.js → es/translations/locales/ro.js} +3 -3
- package/es/translations/locales/ru.js +2375 -32
- package/es/translations/locales/sv.js +2379 -30
- package/es/translations/locales/th.js +2401 -1
- package/es/translations/locales/tl_PH.js +26 -0
- package/es/translations/locales/tr.js +3 -0
- package/es/translations/locales/vi.js +2396 -8
- package/es/translations/locales/zh_TW.Big5.js +27 -0
- package/{lib/translations/locales/th_TH.js → es/translations/locales/zh_TW.js} +2 -2
- package/jest.config.js +0 -7
- package/package.json +9 -11
- package/scripts/build.js +1 -7
- package/scripts/publish_to_npm.sh +26 -0
- package/canvas/README.md +0 -84
- package/canvas/locales/en.json +0 -934
- package/canvas/package.json +0 -189
- package/es/common/scroll.js +0 -45
- package/es/types/inst-ui.d.js +0 -18
- package/es/types/ts-migration.js +0 -1
- package/lib/bridge/Bridge.js +0 -287
- package/lib/bridge/index.js +0 -21
- package/lib/canvasFileBrowser/FileBrowser.js +0 -452
- package/lib/canvasFileBrowser/en-US.js +0 -234
- package/lib/common/FlashAlert.js +0 -263
- package/lib/common/browser.js +0 -40
- package/lib/common/components/FileTree/File.js +0 -64
- package/lib/common/components/FileTree/Folder.js +0 -110
- package/lib/common/components/FileTree/index.js +0 -84
- package/lib/common/components/FileTree/styles.js +0 -72
- package/lib/common/components/Loading.js +0 -83
- package/lib/common/fileUrl.js +0 -153
- package/lib/common/getCookie.js +0 -32
- package/lib/common/incremental-loading/LoadMoreButton.js +0 -40
- package/lib/common/incremental-loading/LoadingIndicator.js +0 -36
- package/lib/common/incremental-loading/LoadingStatus.js +0 -47
- package/lib/common/incremental-loading/index.js +0 -21
- package/lib/common/incremental-loading/useIncrementalLoading.js +0 -58
- package/lib/common/indicate.js +0 -75
- package/lib/common/mimeClass.js +0 -120
- package/lib/common/natcompare.js +0 -47
- package/lib/common/scroll.js +0 -45
- package/lib/defaultTinymceConfig.js +0 -160
- package/lib/enhance-user-content/doc_previews.js +0 -233
- package/lib/enhance-user-content/enhance_user_content.js +0 -396
- package/lib/enhance-user-content/index.js +0 -21
- package/lib/enhance-user-content/instructure_helper.js +0 -207
- package/lib/enhance-user-content/jqueryish_funcs.js +0 -88
- package/lib/enhance-user-content/mathml.js +0 -397
- package/lib/enhance-user-content/media_comment_thumbnail.js +0 -130
- package/lib/format-message.js +0 -30
- package/lib/getThemeVars.js +0 -45
- package/lib/getTranslations.js +0 -264
- package/lib/index.js +0 -51
- package/lib/rce/AlertMessageArea.js +0 -47
- package/lib/rce/DraggingBlocker.js +0 -43
- package/lib/rce/KeyboardShortcutModal.js +0 -88
- package/lib/rce/RCE.js +0 -150
- package/lib/rce/RCEGlobals.js +0 -62
- package/lib/rce/RCEWrapper.js +0 -4278
- package/lib/rce/RCEWrapperProps.js +0 -130
- package/lib/rce/RceHtmlEditor.js +0 -142
- package/lib/rce/ResizeHandle.js +0 -102
- package/lib/rce/RestoreAutoSaveModal.js +0 -82
- package/lib/rce/ShowOnFocusButton/index.js +0 -93
- package/lib/rce/StatusBar.js +0 -380
- package/lib/rce/__mocks__/_mockCryptoEs.js +0 -124
- package/lib/rce/__mocks__/styleMock.js +0 -18
- package/lib/rce/__mocks__/tinymceReact.js +0 -55
- package/lib/rce/alertHandler.js +0 -46
- package/lib/rce/contentInsertion.js +0 -322
- package/lib/rce/contentInsertionUtils.js +0 -85
- package/lib/rce/contentRendering.js +0 -145
- package/lib/rce/customEvents.js +0 -18
- package/lib/rce/editorLanguage.js +0 -101
- package/lib/rce/indicatorRegion.js +0 -49
- package/lib/rce/normalizeLocale.js +0 -50
- package/lib/rce/normalizeProps.js +0 -29
- package/lib/rce/plugins/instructure-ui-icons/plugin.js +0 -122
- package/lib/rce/plugins/instructure_condensed_buttons/core/ListUtils.js +0 -24
- package/lib/rce/plugins/instructure_condensed_buttons/plugin.js +0 -27
- package/lib/rce/plugins/instructure_condensed_buttons/ui/alignment-button.js +0 -63
- package/lib/rce/plugins/instructure_condensed_buttons/ui/directionality-button.js +0 -48
- package/lib/rce/plugins/instructure_condensed_buttons/ui/indent-outdent-button.js +0 -41
- package/lib/rce/plugins/instructure_condensed_buttons/ui/list-button.js +0 -145
- package/lib/rce/plugins/instructure_condensed_buttons/ui/subscript-superscript-button.js +0 -56
- package/lib/rce/plugins/instructure_documents/clickCallback.js +0 -23
- package/lib/rce/plugins/instructure_documents/components/DocumentsPanel.js +0 -126
- package/lib/rce/plugins/instructure_documents/components/Link.js +0 -219
- package/lib/rce/plugins/instructure_documents/plugin.js +0 -123
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/advancedOnlySyntax.js +0 -25
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/advancedPreference.js +0 -51
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/index.js +0 -321
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/latexTextareaUtil.js +0 -116
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/parseLatex.js +0 -91
- package/lib/rce/plugins/instructure_equation/EquationEditorModal/styles.js +0 -46
- package/lib/rce/plugins/instructure_equation/EquationEditorToolbar/buttons.js +0 -728
- package/lib/rce/plugins/instructure_equation/EquationEditorToolbar/index.js +0 -84
- package/lib/rce/plugins/instructure_equation/MathIcon/index.js +0 -41
- package/lib/rce/plugins/instructure_equation/MathIcon/svgs.js +0 -236
- package/lib/rce/plugins/instructure_equation/clickCallback.js +0 -53
- package/lib/rce/plugins/instructure_equation/mathlive/index.js +0 -36
- package/lib/rce/plugins/instructure_equation/plugin.js +0 -69
- package/lib/rce/plugins/instructure_fullscreen/plugin.js +0 -50
- package/lib/rce/plugins/instructure_html_view/clickCallback.js +0 -21
- package/lib/rce/plugins/instructure_html_view/plugin.js +0 -37
- package/lib/rce/plugins/instructure_icon_maker/clickCallback.js +0 -57
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ColorSection.js +0 -82
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/CreateIconMakerForm.js +0 -56
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Footer.js +0 -78
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Group.js +0 -36
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +0 -110
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/Course.js +0 -169
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ImageOptions.js +0 -186
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ImageSection.js +0 -243
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/ModeSelect.js +0 -64
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/MultiColor/index.js +0 -73
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/MultiColor/svg.js +0 -298
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SVGList.js +0 -86
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SVGThumbnail.js +0 -55
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SingleColor/index.js +0 -70
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/SingleColor/svg.js +0 -317
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/Upload.js +0 -149
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/index.js +0 -18
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/propTypes.js +0 -32
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/utils.js +0 -25
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Preview.js +0 -60
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ShapeSection.js +0 -87
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/TextSection.js +0 -139
- package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/index.js +0 -18
- package/lib/rce/plugins/instructure_icon_maker/components/IconMakerTray.js +0 -323
- package/lib/rce/plugins/instructure_icon_maker/components/SavedIconMakerList.js +0 -90
- package/lib/rce/plugins/instructure_icon_maker/plugin.js +0 -110
- package/lib/rce/plugins/instructure_icon_maker/reducers/imageSection.js +0 -194
- package/lib/rce/plugins/instructure_icon_maker/reducers/svgSettings.js +0 -98
- package/lib/rce/plugins/instructure_icon_maker/registerEditToolbar.js +0 -56
- package/lib/rce/plugins/instructure_icon_maker/svg/clipPath.js +0 -25
- package/lib/rce/plugins/instructure_icon_maker/svg/constants.js +0 -100
- package/lib/rce/plugins/instructure_icon_maker/svg/font.js +0 -25
- package/lib/rce/plugins/instructure_icon_maker/svg/image.js +0 -354
- package/lib/rce/plugins/instructure_icon_maker/svg/index.js +0 -122
- package/lib/rce/plugins/instructure_icon_maker/svg/metadata.js +0 -48
- package/lib/rce/plugins/instructure_icon_maker/svg/settings.js +0 -179
- package/lib/rce/plugins/instructure_icon_maker/svg/shape.js +0 -316
- package/lib/rce/plugins/instructure_icon_maker/svg/text.js +0 -468
- package/lib/rce/plugins/instructure_icon_maker/svg/utils.js +0 -70
- package/lib/rce/plugins/instructure_icon_maker/utils/IconMakerClose.js +0 -45
- package/lib/rce/plugins/instructure_icon_maker/utils/IconMakerFormHasChanges.js +0 -83
- package/lib/rce/plugins/instructure_icon_maker/utils/addIconMakerAttributes.js +0 -28
- package/lib/rce/plugins/instructure_icon_maker/utils/iconValidation.js +0 -35
- package/lib/rce/plugins/instructure_icon_maker/utils/iconsLabels.js +0 -375
- package/lib/rce/plugins/instructure_icon_maker/utils/useDebouncedValue.js +0 -59
- package/lib/rce/plugins/instructure_image/ImageEmbedOptions.js +0 -202
- package/lib/rce/plugins/instructure_image/ImageList/Image.js +0 -106
- package/lib/rce/plugins/instructure_image/ImageList/index.js +0 -69
- package/lib/rce/plugins/instructure_image/ImageOptionsTray/TrayController.js +0 -166
- package/lib/rce/plugins/instructure_image/ImageOptionsTray/index.js +0 -246
- package/lib/rce/plugins/instructure_image/Images/index.js +0 -129
- package/lib/rce/plugins/instructure_image/clickCallback.js +0 -24
- package/lib/rce/plugins/instructure_image/plugin.js +0 -157
- package/lib/rce/plugins/instructure_links/clickCallback.js +0 -22
- package/lib/rce/plugins/instructure_links/components/AccordionSection.js +0 -60
- package/lib/rce/plugins/instructure_links/components/CollectionPanel.js +0 -84
- package/lib/rce/plugins/instructure_links/components/Link.js +0 -213
- package/lib/rce/plugins/instructure_links/components/LinkOptionsDialog/LinkOptionsDialogController.js +0 -127
- package/lib/rce/plugins/instructure_links/components/LinkOptionsDialog/index.js +0 -141
- package/lib/rce/plugins/instructure_links/components/LinkOptionsTray/LinkOptionsTrayController.js +0 -125
- package/lib/rce/plugins/instructure_links/components/LinkOptionsTray/index.js +0 -245
- package/lib/rce/plugins/instructure_links/components/LinkSet.js +0 -195
- package/lib/rce/plugins/instructure_links/components/LinksPanel.js +0 -100
- package/lib/rce/plugins/instructure_links/components/NavigationPanel.js +0 -141
- package/lib/rce/plugins/instructure_links/components/NoResults.js +0 -87
- package/lib/rce/plugins/instructure_links/components/propTypes.js +0 -41
- package/lib/rce/plugins/instructure_links/plugin.js +0 -294
- package/lib/rce/plugins/instructure_links/validateURL.js +0 -70
- package/lib/rce/plugins/instructure_media_embed/clickCallback.js +0 -48
- package/lib/rce/plugins/instructure_media_embed/components/Embed.js +0 -68
- package/lib/rce/plugins/instructure_media_embed/plugin.js +0 -36
- package/lib/rce/plugins/instructure_paste/pasteMenuCommand.js +0 -117
- package/lib/rce/plugins/instructure_paste/plugin.js +0 -174
- package/lib/rce/plugins/instructure_rce_external_tools/ExternalToolsEnv.js +0 -169
- package/lib/rce/plugins/instructure_rce_external_tools/RceToolWrapper.js +0 -225
- package/lib/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialog.js +0 -294
- package/lib/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialogModal.js +0 -46
- package/lib/rce/plugins/instructure_rce_external_tools/components/ExternalToolDialog/ExternalToolDialogTray.js +0 -79
- package/lib/rce/plugins/instructure_rce_external_tools/components/ExternalToolSelectionDialog/ExternalToolSelectionDialog.js +0 -153
- package/lib/rce/plugins/instructure_rce_external_tools/components/ExternalToolSelectionDialog/ExternalToolSelectionItem.js +0 -94
- package/lib/rce/plugins/instructure_rce_external_tools/components/util/ExpandoText.js +0 -90
- package/lib/rce/plugins/instructure_rce_external_tools/components/util/ToolLaunchIframe.js +0 -35
- package/lib/rce/plugins/instructure_rce_external_tools/dialog-helper.js +0 -29
- package/lib/rce/plugins/instructure_rce_external_tools/helpers/tags.js +0 -55
- package/lib/rce/plugins/instructure_rce_external_tools/jquery/jquery.dropdownList.js +0 -172
- package/lib/rce/plugins/instructure_rce_external_tools/lti11-content-items/RceLti11ContentItem.js +0 -203
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/RceLti13ContentItem.js +0 -111
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/BaseLinkContentItem.js +0 -79
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/HtmlFragmentContentItem.js +0 -47
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ImageContentItem.js +0 -57
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/LinkContentItem.js +0 -26
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/models/ResourceLinkContentItem.js +0 -45
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/processEditorContentItems.js +0 -67
- package/lib/rce/plugins/instructure_rce_external_tools/lti13-content-items/rceLti13ContentItemFromJson.js +0 -48
- package/lib/rce/plugins/instructure_rce_external_tools/plugin.js +0 -112
- package/lib/rce/plugins/instructure_rce_external_tools/util/addParentFrameContextToUrl.js +0 -27
- package/lib/rce/plugins/instructure_record/AudioOptionsTray/TrayController.js +0 -127
- package/lib/rce/plugins/instructure_record/AudioOptionsTray/index.js +0 -148
- package/lib/rce/plugins/instructure_record/MediaPanel/index.js +0 -129
- package/lib/rce/plugins/instructure_record/VideoOptionsTray/TrayController.js +0 -215
- package/lib/rce/plugins/instructure_record/VideoOptionsTray/index.js +0 -321
- package/lib/rce/plugins/instructure_record/clickCallback.js +0 -105
- package/lib/rce/plugins/instructure_record/mediaTranslations.js +0 -94
- package/lib/rce/plugins/instructure_record/plugin.js +0 -173
- package/lib/rce/plugins/instructure_studio_media_options/plugin.js +0 -42
- package/lib/rce/plugins/instructure_wordcount/clickCallback.js +0 -49
- package/lib/rce/plugins/instructure_wordcount/components/WordCountModal.js +0 -88
- package/lib/rce/plugins/instructure_wordcount/plugin.js +0 -30
- package/lib/rce/plugins/instructure_wordcount/utils/countContent.js +0 -78
- package/lib/rce/plugins/instructure_wordcount/utils/tableContent.js +0 -40
- package/lib/rce/plugins/shared/CanvasContentTray.js +0 -580
- package/lib/rce/plugins/shared/CheckerboardStyling.js +0 -25
- package/lib/rce/plugins/shared/ColorInput.js +0 -233
- package/lib/rce/plugins/shared/ConditionalTooltip.js +0 -32
- package/lib/rce/plugins/shared/ContentSelection.js +0 -269
- package/lib/rce/plugins/shared/DimensionUtils.js +0 -66
- package/lib/rce/plugins/shared/DimensionsInput/DimensionInput.js +0 -62
- package/lib/rce/plugins/shared/DimensionsInput/index.js +0 -161
- package/lib/rce/plugins/shared/DimensionsInput/useDimensionsState.js +0 -220
- package/lib/rce/plugins/shared/ErrorBoundary.js +0 -54
- package/lib/rce/plugins/shared/EventUtils.js +0 -39
- package/lib/rce/plugins/shared/Filter.js +0 -353
- package/lib/rce/plugins/shared/FixedContentTray.js +0 -115
- package/lib/rce/plugins/shared/ImageCropper/DirectionRegion.js +0 -67
- package/lib/rce/plugins/shared/ImageCropper/Modal.js +0 -153
- package/lib/rce/plugins/shared/ImageCropper/Preview.js +0 -148
- package/lib/rce/plugins/shared/ImageCropper/constants.js +0 -39
- package/lib/rce/plugins/shared/ImageCropper/controls/CustomNumberInput.js +0 -83
- package/lib/rce/plugins/shared/ImageCropper/controls/ResetControls.js +0 -38
- package/lib/rce/plugins/shared/ImageCropper/controls/RotationControls.js +0 -89
- package/lib/rce/plugins/shared/ImageCropper/controls/ShapeControls.js +0 -82
- package/lib/rce/plugins/shared/ImageCropper/controls/ZoomControls.js +0 -111
- package/lib/rce/plugins/shared/ImageCropper/controls/index.js +0 -61
- package/lib/rce/plugins/shared/ImageCropper/controls/useDebouncedNumericValue.js +0 -94
- package/lib/rce/plugins/shared/ImageCropper/controls/utils.js +0 -41
- package/lib/rce/plugins/shared/ImageCropper/imageCropUtils.js +0 -149
- package/lib/rce/plugins/shared/ImageCropper/index.js +0 -18
- package/lib/rce/plugins/shared/ImageCropper/propTypes.js +0 -26
- package/lib/rce/plugins/shared/ImageCropper/reducers/imageCropper.js +0 -72
- package/lib/rce/plugins/shared/ImageCropper/shape.js +0 -27
- package/lib/rce/plugins/shared/ImageCropper/svg/index.js +0 -89
- package/lib/rce/plugins/shared/ImageCropper/svg/shape.js +0 -125
- package/lib/rce/plugins/shared/ImageCropper/svg/utils.js +0 -26
- package/lib/rce/plugins/shared/ImageCropper/useKeyMouseEvents.js +0 -233
- package/lib/rce/plugins/shared/ImageCropper/useMouseWheel.js +0 -66
- package/lib/rce/plugins/shared/ImageOptionsForm.js +0 -140
- package/lib/rce/plugins/shared/LinkDisplay.js +0 -96
- package/lib/rce/plugins/shared/PreviewIcon.js +0 -112
- package/lib/rce/plugins/shared/Previewable.js +0 -22
- package/lib/rce/plugins/shared/RceFileBrowser.js +0 -106
- package/lib/rce/plugins/shared/StoreContext.js +0 -57
- package/lib/rce/plugins/shared/StudioLtiSupportUtils.js +0 -71
- package/lib/rce/plugins/shared/UnknownFileTypePanel.js +0 -29
- package/lib/rce/plugins/shared/Upload/CategoryProcessor.js +0 -27
- package/lib/rce/plugins/shared/Upload/ComputerPanel.js +0 -334
- package/lib/rce/plugins/shared/Upload/SvgCategoryProcessor.js +0 -35
- package/lib/rce/plugins/shared/Upload/UploadFile.js +0 -171
- package/lib/rce/plugins/shared/Upload/UploadFileModal.js +0 -273
- package/lib/rce/plugins/shared/Upload/UrlPanel.js +0 -38
- package/lib/rce/plugins/shared/Upload/UsageRightsSelectBox.js +0 -172
- package/lib/rce/plugins/shared/Upload/doFileUpload.js +0 -77
- package/lib/rce/plugins/shared/__mocks__/screenfull.js +0 -24
- package/lib/rce/plugins/shared/buildDownloadUrl.js +0 -31
- package/lib/rce/plugins/shared/compressionUtils.js +0 -98
- package/lib/rce/plugins/shared/dateUtils.js +0 -28
- package/lib/rce/plugins/shared/fileShape.js +0 -57
- package/lib/rce/plugins/shared/fileTypeUtils.js +0 -133
- package/lib/rce/plugins/shared/fileUtils.js +0 -25
- package/lib/rce/plugins/shared/linkUtils.js +0 -89
- package/lib/rce/plugins/shared/round.js +0 -25
- package/lib/rce/plugins/shared/trayUtils.js +0 -34
- package/lib/rce/plugins/shared/useDataUrl.js +0 -76
- package/lib/rce/plugins/tinymce-a11y-checker/components/ColorField.js +0 -86
- package/lib/rce/plugins/tinymce-a11y-checker/components/checker.js +0 -558
- package/lib/rce/plugins/tinymce-a11y-checker/components/color-picker.js +0 -59
- package/lib/rce/plugins/tinymce-a11y-checker/components/placeholder-svg.js +0 -90
- package/lib/rce/plugins/tinymce-a11y-checker/components/pointer.js +0 -32
- package/lib/rce/plugins/tinymce-a11y-checker/node-checker.js +0 -54
- package/lib/rce/plugins/tinymce-a11y-checker/plugin.js +0 -90
- package/lib/rce/plugins/tinymce-a11y-checker/rules/__mocks__/index.js +0 -53
- package/lib/rce/plugins/tinymce-a11y-checker/rules/adjacent-links.js +0 -129
- package/lib/rce/plugins/tinymce-a11y-checker/rules/headings-sequence.js +0 -200
- package/lib/rce/plugins/tinymce-a11y-checker/rules/headings-start-at-h2.js +0 -67
- package/lib/rce/plugins/tinymce-a11y-checker/rules/img-alt-filename.js +0 -63
- package/lib/rce/plugins/tinymce-a11y-checker/rules/img-alt-length.js +0 -49
- package/lib/rce/plugins/tinymce-a11y-checker/rules/img-alt.js +0 -61
- package/lib/rce/plugins/tinymce-a11y-checker/rules/index.js +0 -31
- package/lib/rce/plugins/tinymce-a11y-checker/rules/large-text-contrast.js +0 -51
- package/lib/rce/plugins/tinymce-a11y-checker/rules/list-structure.js +0 -144
- package/lib/rce/plugins/tinymce-a11y-checker/rules/paragraphs-for-headings.js +0 -61
- package/lib/rce/plugins/tinymce-a11y-checker/rules/small-text-contrast.js +0 -75
- package/lib/rce/plugins/tinymce-a11y-checker/rules/table-caption.js +0 -54
- package/lib/rce/plugins/tinymce-a11y-checker/rules/table-header-scope.js +0 -52
- package/lib/rce/plugins/tinymce-a11y-checker/rules/table-header.js +0 -81
- package/lib/rce/plugins/tinymce-a11y-checker/utils/colors.js +0 -43
- package/lib/rce/plugins/tinymce-a11y-checker/utils/describe.js +0 -66
- package/lib/rce/plugins/tinymce-a11y-checker/utils/dom.js +0 -160
- package/lib/rce/plugins/tinymce-a11y-checker/utils/indicate.js +0 -83
- package/lib/rce/plugins/tinymce-a11y-checker/utils/rgb-hex.js +0 -57
- package/lib/rce/plugins/tinymce-a11y-checker/utils/strings.js +0 -40
- package/lib/rce/root.js +0 -58
- package/lib/rce/sanitizePlugins.js +0 -32
- package/lib/rce/style.js +0 -843
- package/lib/rce/tinyRCE.js +0 -66
- package/lib/rce/transformContent.js +0 -73
- package/lib/rce/userOS.js +0 -31
- package/lib/rce/wrapInitCb.js +0 -78
- package/lib/rcs/api.js +0 -670
- package/lib/rcs/buildError.js +0 -98
- package/lib/rcs/fake.js +0 -621
- package/lib/sidebar/actions/all_files.js +0 -29
- package/lib/sidebar/actions/data.js +0 -105
- package/lib/sidebar/actions/documents.js +0 -107
- package/lib/sidebar/actions/files.js +0 -167
- package/lib/sidebar/actions/filter.js +0 -63
- package/lib/sidebar/actions/flickr.js +0 -60
- package/lib/sidebar/actions/images.js +0 -153
- package/lib/sidebar/actions/links.js +0 -23
- package/lib/sidebar/actions/media.js +0 -142
- package/lib/sidebar/actions/session.js +0 -34
- package/lib/sidebar/actions/ui.js +0 -49
- package/lib/sidebar/actions/upload.js +0 -550
- package/lib/sidebar/containers/Sidebar.js +0 -67
- package/lib/sidebar/containers/sidebarHandlers.js +0 -73
- package/lib/sidebar/dragHtml.js +0 -49
- package/lib/sidebar/reducers/all_files.js +0 -35
- package/lib/sidebar/reducers/collection.js +0 -72
- package/lib/sidebar/reducers/collections.js +0 -52
- package/lib/sidebar/reducers/documents.js +0 -89
- package/lib/sidebar/reducers/files.js +0 -38
- package/lib/sidebar/reducers/filter.js +0 -61
- package/lib/sidebar/reducers/flickr.js +0 -51
- package/lib/sidebar/reducers/folder.js +0 -92
- package/lib/sidebar/reducers/folders.js +0 -39
- package/lib/sidebar/reducers/images.js +0 -115
- package/lib/sidebar/reducers/index.js +0 -57
- package/lib/sidebar/reducers/media.js +0 -84
- package/lib/sidebar/reducers/newPageLinkExpanded.js +0 -30
- package/lib/sidebar/reducers/noop.js +0 -21
- package/lib/sidebar/reducers/rootFolderId.js +0 -30
- package/lib/sidebar/reducers/session.js +0 -33
- package/lib/sidebar/reducers/ui.js +0 -87
- package/lib/sidebar/reducers/upload.js +0 -206
- package/lib/sidebar/store/configureStore.js +0 -26
- package/lib/sidebar/store/initialState.js +0 -173
- package/lib/translations/locales/ar.js +0 -2427
- package/lib/translations/locales/ca.js +0 -2427
- package/lib/translations/locales/cy.js +0 -2427
- package/lib/translations/locales/da-x-k12.js +0 -2427
- package/lib/translations/locales/da.js +0 -2427
- package/lib/translations/locales/de.js +0 -2427
- package/lib/translations/locales/el.js +0 -459
- package/lib/translations/locales/en-AU-x-unimelb.js +0 -2427
- package/lib/translations/locales/en-GB-x-ukhe.js +0 -2427
- package/lib/translations/locales/en.js +0 -2427
- package/lib/translations/locales/en_AU.js +0 -2427
- package/lib/translations/locales/en_CA.js +0 -2426
- package/lib/translations/locales/en_CY.js +0 -2426
- package/lib/translations/locales/en_GB.js +0 -2427
- package/lib/translations/locales/es.js +0 -2427
- package/lib/translations/locales/es_ES.js +0 -2427
- package/lib/translations/locales/fa_IR.js +0 -615
- package/lib/translations/locales/fi.js +0 -2427
- package/lib/translations/locales/fr.js +0 -2427
- package/lib/translations/locales/fr_CA.js +0 -2427
- package/lib/translations/locales/he.js +0 -486
- package/lib/translations/locales/ht.js +0 -2426
- package/lib/translations/locales/hu.js +0 -2007
- package/lib/translations/locales/hy.js +0 -444
- package/lib/translations/locales/is.js +0 -2426
- package/lib/translations/locales/it.js +0 -2427
- package/lib/translations/locales/ja.js +0 -2427
- package/lib/translations/locales/ko.js +0 -342
- package/lib/translations/locales/mi.js +0 -2426
- package/lib/translations/locales/nb-x-k12.js +0 -2427
- package/lib/translations/locales/nb.js +0 -2427
- package/lib/translations/locales/nl.js +0 -2427
- package/lib/translations/locales/nn.js +0 -2247
- package/lib/translations/locales/pl.js +0 -2427
- package/lib/translations/locales/pt.js +0 -2427
- package/lib/translations/locales/pt_BR.js +0 -2427
- package/lib/translations/locales/ru.js +0 -84
- package/lib/translations/locales/sl.js +0 -2427
- package/lib/translations/locales/sv-x-k12.js +0 -2427
- package/lib/translations/locales/sv.js +0 -78
- package/lib/translations/locales/tr.js +0 -684
- package/lib/translations/locales/uk_UA.js +0 -519
- package/lib/translations/locales/vi.js +0 -39
- package/lib/translations/locales/zh-Hans.js +0 -2427
- package/lib/translations/locales/zh-Hant.js +0 -2427
- package/lib/translations/locales/zh.js +0 -2427
- package/lib/translations/locales/zh_HK.js +0 -2427
- package/lib/translations/tinymce/ar_SA.js +0 -211
- package/lib/translations/tinymce/bg_BG.js +0 -419
- package/lib/translations/tinymce/ca.js +0 -419
- package/lib/translations/tinymce/cs.js +0 -419
- package/lib/translations/tinymce/cy.js +0 -418
- package/lib/translations/tinymce/da.js +0 -419
- package/lib/translations/tinymce/de.js +0 -419
- package/lib/translations/tinymce/el.js +0 -261
- package/lib/translations/tinymce/en_GB.js +0 -230
- package/lib/translations/tinymce/es.js +0 -419
- package/lib/translations/tinymce/fa_IR.js +0 -390
- package/lib/translations/tinymce/fi.js +0 -19
- package/lib/translations/tinymce/fr_FR.js +0 -419
- package/lib/translations/tinymce/he_IL.js +0 -420
- package/lib/translations/tinymce/hu_HU.js +0 -419
- package/lib/translations/tinymce/hy.js +0 -419
- package/lib/translations/tinymce/it.js +0 -419
- package/lib/translations/tinymce/ja.js +0 -419
- package/lib/translations/tinymce/ko_KR.js +0 -419
- package/lib/translations/tinymce/nb_NO.js +0 -419
- package/lib/translations/tinymce/nl.js +0 -419
- package/lib/translations/tinymce/pl.js +0 -419
- package/lib/translations/tinymce/pt_BR.js +0 -419
- package/lib/translations/tinymce/pt_PT.js +0 -419
- package/lib/translations/tinymce/ro.js +0 -418
- package/lib/translations/tinymce/ru.js +0 -436
- package/lib/translations/tinymce/ru_RU.js +0 -71
- package/lib/translations/tinymce/sl.js +0 -462
- package/lib/translations/tinymce/sr.js +0 -278
- package/lib/translations/tinymce/sv_SE.js +0 -419
- package/lib/translations/tinymce/th.js +0 -479
- package/lib/translations/tinymce/tr_TR.js +0 -389
- package/lib/translations/tinymce/uk_UA.js +0 -278
- package/lib/translations/tinymce/vi_VN.js +0 -277
- package/lib/translations/tinymce/zh_CN.js +0 -419
- package/lib/translations/tinymce/zh_TW.js +0 -419
- package/lib/types/inst-ui.d.js +0 -18
- package/lib/types/ts-migration.js +0 -1
- package/lib/util/DeepPartialNullable.js +0 -1
- package/lib/util/ExtractRequired.js +0 -1
- package/lib/util/TypedDict.js +0 -131
- package/lib/util/assertNever.js +0 -44
- package/lib/util/elem-util.js +0 -26
- package/lib/util/encrypted-storage.js +0 -84
- package/lib/util/file-url-util.js +0 -44
- package/lib/util/fullscreenHelpers.js +0 -27
- package/lib/util/instui-icon-helper.js +0 -31
- package/lib/util/loadingPlaceholder.js +0 -436
- package/lib/util/simpleCache.js +0 -41
- package/lib/util/string-util.js +0 -48
- package/lib/util/textarea-editing-util.js +0 -87
- package/lib/util/tinymce-plugin-util.js +0 -52
- package/lib/util/url-util.js +0 -138
|
@@ -1,558 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2018 - present Instructure, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This file is part of Canvas.
|
|
5
|
-
*
|
|
6
|
-
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
-
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
-
* Software Foundation, version 3 of the License.
|
|
9
|
-
*
|
|
10
|
-
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
-
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
-
* details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
-
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/* eslint-disable jest/valid-describe */
|
|
20
|
-
// our own imported describe function confuses eslint
|
|
21
|
-
import React from 'react';
|
|
22
|
-
import { LiveAnnouncer, LiveMessage } from 'react-aria-live';
|
|
23
|
-
import { Button, CloseButton, IconButton } from '@instructure/ui-buttons';
|
|
24
|
-
import { Flex } from '@instructure/ui-flex';
|
|
25
|
-
import { Tray } from '@instructure/ui-tray';
|
|
26
|
-
import { Popover } from '@instructure/ui-popover';
|
|
27
|
-
import { View } from '@instructure/ui-view';
|
|
28
|
-
import { Grid, GridRow, GridCol } from '@instructure/ui-grid';
|
|
29
|
-
import { Heading } from '@instructure/ui-heading';
|
|
30
|
-
import { Link } from '@instructure/ui-link';
|
|
31
|
-
import { Spinner } from '@instructure/ui-spinner';
|
|
32
|
-
import { Text } from '@instructure/ui-text';
|
|
33
|
-
import { Checkbox } from '@instructure/ui-checkbox';
|
|
34
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
35
|
-
import { TextArea } from '@instructure/ui-text-area';
|
|
36
|
-
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
37
|
-
import { IconQuestionLine } from '@instructure/ui-icons';
|
|
38
|
-
import { InstUISettingsProvider } from '@instructure/emotion';
|
|
39
|
-
import { Alert } from '@instructure/ui-alerts';
|
|
40
|
-
import ColorField from './ColorField';
|
|
41
|
-
import PlaceholderSVG from './placeholder-svg';
|
|
42
|
-
import describe from '../utils/describe';
|
|
43
|
-
import * as dom from '../utils/dom';
|
|
44
|
-
import checkNode from '../node-checker';
|
|
45
|
-
import formatMessage from '../../../../format-message';
|
|
46
|
-
import { clearIndicators } from '../utils/indicate';
|
|
47
|
-
import { getTrayHeight } from '../../shared/trayUtils';
|
|
48
|
-
import { instuiPopupMountNode } from '../../../../util/fullscreenHelpers'; // safari still doesn't support the standard api
|
|
49
|
-
|
|
50
|
-
const FS_CHANGEEVENT = document.exitFullscreen ? 'fullscreenchange' : 'webkitfullscreenchange';
|
|
51
|
-
|
|
52
|
-
const noop = () => {};
|
|
53
|
-
|
|
54
|
-
export default class Checker extends React.Component {
|
|
55
|
-
constructor() {
|
|
56
|
-
super(...arguments);
|
|
57
|
-
this.state = {
|
|
58
|
-
open: false,
|
|
59
|
-
checking: false,
|
|
60
|
-
errors: [],
|
|
61
|
-
formState: {},
|
|
62
|
-
formStateValid: false,
|
|
63
|
-
errorIndex: 0,
|
|
64
|
-
config: {},
|
|
65
|
-
showWhyPopover: false
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
this.onFullscreenChange = _event => {
|
|
69
|
-
this.selectCurrent();
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
this.updateFormState = _ref => {
|
|
73
|
-
let {
|
|
74
|
-
target
|
|
75
|
-
} = _ref;
|
|
76
|
-
this.setState(prevState => {
|
|
77
|
-
const formState = { ...prevState.formState
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
if (target.type === 'checkbox') {
|
|
81
|
-
formState[target.name] = target.checked;
|
|
82
|
-
} else {
|
|
83
|
-
formState[target.name] = target.value;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
formState,
|
|
88
|
-
formStateValid: this.formStateValid(formState)
|
|
89
|
-
};
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
componentDidMount() {
|
|
95
|
-
this.props.editor.on('Remove', _editor => {
|
|
96
|
-
this.setState({
|
|
97
|
-
open: false
|
|
98
|
-
}, () => {
|
|
99
|
-
this.props.onClose();
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
componentDidUpdate(_prevProps, prevState) {
|
|
105
|
-
if (prevState.open !== this.state.open) {
|
|
106
|
-
if (this.state.open) {
|
|
107
|
-
window.addEventListener(FS_CHANGEEVENT, this.onFullscreenChange);
|
|
108
|
-
} else {
|
|
109
|
-
window.removeEventListener(FS_CHANGEEVENT, this.onFullscreenChange);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
setConfig(config) {
|
|
115
|
-
this.setState({
|
|
116
|
-
config
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
check(done) {
|
|
121
|
-
if (typeof done !== 'function') done = noop;
|
|
122
|
-
this.setState({
|
|
123
|
-
open: true,
|
|
124
|
-
checking: true,
|
|
125
|
-
errors: [],
|
|
126
|
-
errorIndex: 0
|
|
127
|
-
}, () => {
|
|
128
|
-
if (typeof this.state.config.beforeCheck === 'function') {
|
|
129
|
-
this.state.config.beforeCheck(this.props.editor, () => {
|
|
130
|
-
this._check(() => {
|
|
131
|
-
if (typeof this.state.config.afterCheck === 'function') {
|
|
132
|
-
this.state.config.afterCheck(this.props.editor, done);
|
|
133
|
-
} else {
|
|
134
|
-
done();
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
} else if (typeof this.state.config.afterCheck === 'function') {
|
|
139
|
-
this._check(() => {
|
|
140
|
-
this.state.config.afterCheck(this.props.editor, done);
|
|
141
|
-
});
|
|
142
|
-
} else {
|
|
143
|
-
this._check(done);
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
_check(done) {
|
|
149
|
-
const node = this.props.getBody();
|
|
150
|
-
|
|
151
|
-
const checkDone = errors => {
|
|
152
|
-
this.setState({
|
|
153
|
-
errorIndex: 0,
|
|
154
|
-
errors,
|
|
155
|
-
checking: false
|
|
156
|
-
}, () => {
|
|
157
|
-
this.selectCurrent();
|
|
158
|
-
done();
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
checkNode(node, checkDone, this.state.config, this.props.additionalRules);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
firstError() {
|
|
166
|
-
if (this.state.errors.length > 0) {
|
|
167
|
-
this.setErrorIndex(0);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
nextError() {
|
|
172
|
-
const next = (this.state.errorIndex + 1) % this.state.errors.length;
|
|
173
|
-
this.setErrorIndex(next);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
prevError() {
|
|
177
|
-
const len = this.state.errors.length;
|
|
178
|
-
const prev = (len + this.state.errorIndex - 1) % len;
|
|
179
|
-
this.setErrorIndex(prev);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
setErrorIndex(errorIndex) {
|
|
183
|
-
this.onLeaveError();
|
|
184
|
-
|
|
185
|
-
if (errorIndex >= this.state.errors.length) {
|
|
186
|
-
errorIndex = 0;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
this.setState({
|
|
190
|
-
errorIndex
|
|
191
|
-
}, () => this.selectCurrent());
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
selectCurrent() {
|
|
195
|
-
clearIndicators(this.props.editor.dom.doc);
|
|
196
|
-
const errorNode = this.errorNode();
|
|
197
|
-
|
|
198
|
-
if (errorNode) {
|
|
199
|
-
this.getFormState();
|
|
200
|
-
dom.select(errorNode);
|
|
201
|
-
} else {
|
|
202
|
-
this.firstError();
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
error() {
|
|
207
|
-
return this.state.errors[this.state.errorIndex];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
errorNode() {
|
|
211
|
-
const error = this.error();
|
|
212
|
-
return error && error.node;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
errorRootNode() {
|
|
216
|
-
const rule = this.errorRule();
|
|
217
|
-
const rootNode = rule && rule.rootNode && rule.rootNode(this.errorNode());
|
|
218
|
-
return rootNode || this.errorNode();
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
updateErrorNode(elem) {
|
|
222
|
-
const error = this.error();
|
|
223
|
-
|
|
224
|
-
if (error) {
|
|
225
|
-
error.node = elem;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
errorRule() {
|
|
230
|
-
const error = this.error();
|
|
231
|
-
return error && error.rule;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
errorMessage() {
|
|
235
|
-
const rule = this.errorRule();
|
|
236
|
-
return rule && rule.message();
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
getFormState() {
|
|
240
|
-
const rule = this.errorRule();
|
|
241
|
-
const node = this.errorNode();
|
|
242
|
-
|
|
243
|
-
if (rule && node) {
|
|
244
|
-
this.setState({
|
|
245
|
-
formState: rule.data(node),
|
|
246
|
-
formStateValid: false
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
formStateValid(formState) {
|
|
252
|
-
formState = formState || this.state.formState;
|
|
253
|
-
let node = this.tempNode(true);
|
|
254
|
-
const rule = this.errorRule();
|
|
255
|
-
|
|
256
|
-
if (!node || !rule) {
|
|
257
|
-
return false;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
node = rule.update(node, formState);
|
|
261
|
-
|
|
262
|
-
if (this._tempNode === this._tempTestNode) {
|
|
263
|
-
this._tempNode = node;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
this._tempTestNode = node;
|
|
267
|
-
return rule.test(node);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
fixIssue() {
|
|
271
|
-
const rule = this.errorRule();
|
|
272
|
-
const node = this.errorNode();
|
|
273
|
-
|
|
274
|
-
if (rule && node) {
|
|
275
|
-
this.removeTempNode();
|
|
276
|
-
rule.update(node, this.state.formState);
|
|
277
|
-
this.updateErrorNode(node);
|
|
278
|
-
|
|
279
|
-
if (this._closeButtonRef) {
|
|
280
|
-
this._closeButtonRef.focus();
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
const errorIndex = this.state.errorIndex;
|
|
284
|
-
this.check(() => {
|
|
285
|
-
this.setErrorIndex(errorIndex);
|
|
286
|
-
this.props.onFixError(this.state.errors);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
newTempRootNode(rootNode) {
|
|
292
|
-
const newTempRootNode = rootNode.cloneNode(true);
|
|
293
|
-
const path = dom.pathForNode(rootNode, this.errorNode());
|
|
294
|
-
this._tempTestNode = dom.nodeByPath(newTempRootNode, path);
|
|
295
|
-
return newTempRootNode;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
tempNode() {
|
|
299
|
-
let refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
300
|
-
|
|
301
|
-
if (!this._tempNode || refresh) {
|
|
302
|
-
const rootNode = this.errorRootNode();
|
|
303
|
-
|
|
304
|
-
if (rootNode) {
|
|
305
|
-
const newTempRtNode = this.newTempRootNode(rootNode);
|
|
306
|
-
|
|
307
|
-
if (refresh && this._tempNode) {
|
|
308
|
-
const parent = this._tempNode.parentNode;
|
|
309
|
-
parent.insertBefore(newTempRtNode, this._tempNode);
|
|
310
|
-
parent.removeChild(this._tempNode);
|
|
311
|
-
} else {
|
|
312
|
-
const parent = rootNode.parentNode;
|
|
313
|
-
parent.insertBefore(newTempRtNode, rootNode);
|
|
314
|
-
parent.removeChild(rootNode);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
this._tempNode = newTempRtNode;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
return this._tempTestNode;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
removeTempNode() {
|
|
325
|
-
const node = this.errorRootNode();
|
|
326
|
-
|
|
327
|
-
if (this._tempNode && node) {
|
|
328
|
-
const parent = this._tempNode.parentNode;
|
|
329
|
-
parent.insertBefore(node, this._tempNode);
|
|
330
|
-
parent.removeChild(this._tempNode);
|
|
331
|
-
this._tempNode = null;
|
|
332
|
-
this._tempTestNode = null;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
onLeaveError() {
|
|
337
|
-
this.removeTempNode();
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
handleClose() {
|
|
341
|
-
this.onLeaveError();
|
|
342
|
-
clearIndicators(this.props.editor.dom.doc);
|
|
343
|
-
this.setState({
|
|
344
|
-
open: false
|
|
345
|
-
}, () => {
|
|
346
|
-
this.props.onClose();
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
render() {
|
|
351
|
-
const rule = this.errorRule();
|
|
352
|
-
const issueNumberMessage = formatMessage('Issue { num }/{ total }', {
|
|
353
|
-
num: this.state.errorIndex + 1,
|
|
354
|
-
total: this.state.errors.length
|
|
355
|
-
});
|
|
356
|
-
return /*#__PURE__*/React.createElement(LiveAnnouncer, null, /*#__PURE__*/React.createElement(Tray, {
|
|
357
|
-
"data-mce-component": true,
|
|
358
|
-
label: formatMessage('Accessibility Checker'),
|
|
359
|
-
mountNode: this.props.mountNode,
|
|
360
|
-
open: this.state.open,
|
|
361
|
-
onDismiss: () => this.handleClose(),
|
|
362
|
-
placement: "end",
|
|
363
|
-
contentRef: e => this.trayElement = e,
|
|
364
|
-
size: "regular",
|
|
365
|
-
themeOverride: {
|
|
366
|
-
regularWidth: '22em'
|
|
367
|
-
}
|
|
368
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
369
|
-
direction: "column",
|
|
370
|
-
height: getTrayHeight()
|
|
371
|
-
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
372
|
-
as: "header",
|
|
373
|
-
padding: "medium medium small"
|
|
374
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
375
|
-
direction: "row"
|
|
376
|
-
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
377
|
-
shouldGrow: true,
|
|
378
|
-
shouldShrink: true
|
|
379
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
380
|
-
as: "h2"
|
|
381
|
-
}, formatMessage('Accessibility Checker'))), /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement(CloseButton, {
|
|
382
|
-
screenReaderLabel: formatMessage('Close Accessibility Checker'),
|
|
383
|
-
placement: "end",
|
|
384
|
-
onClick: () => this.handleClose(),
|
|
385
|
-
elementRef: ref => this._closeButtonRef = ref
|
|
386
|
-
})))), /*#__PURE__*/React.createElement(Flex.Item, {
|
|
387
|
-
as: "div",
|
|
388
|
-
padding: "0 large large"
|
|
389
|
-
}, this.state.errors.length > 0 && /*#__PURE__*/React.createElement(View, {
|
|
390
|
-
as: "div"
|
|
391
|
-
}, /*#__PURE__*/React.createElement(LiveMessage, {
|
|
392
|
-
"aria-live": "polite",
|
|
393
|
-
message: `
|
|
394
|
-
${issueNumberMessage}
|
|
395
|
-
${describe(this.errorNode())}
|
|
396
|
-
${this.errorMessage()}
|
|
397
|
-
`
|
|
398
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
399
|
-
as: "div",
|
|
400
|
-
margin: "large 0 medium 0"
|
|
401
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
402
|
-
vAlign: "middle",
|
|
403
|
-
hAlign: "space-between",
|
|
404
|
-
colSpacing: "none"
|
|
405
|
-
}, /*#__PURE__*/React.createElement(GridRow, null, /*#__PURE__*/React.createElement(GridCol, null, /*#__PURE__*/React.createElement(Text, {
|
|
406
|
-
weight: "bold"
|
|
407
|
-
}, issueNumberMessage)), /*#__PURE__*/React.createElement(GridCol, {
|
|
408
|
-
width: "auto"
|
|
409
|
-
}, /*#__PURE__*/React.createElement(Popover, {
|
|
410
|
-
on: "click",
|
|
411
|
-
isShowingContent: this.state.showWhyPopover,
|
|
412
|
-
shouldContainFocus: true,
|
|
413
|
-
shouldReturnFocus: true,
|
|
414
|
-
renderTrigger: () => /*#__PURE__*/React.createElement(IconButton, {
|
|
415
|
-
screenReaderLabel: formatMessage('Why'),
|
|
416
|
-
renderIcon: IconQuestionLine,
|
|
417
|
-
onClick: () => this.setState({
|
|
418
|
-
showWhyPopover: true
|
|
419
|
-
}),
|
|
420
|
-
withBackground: false,
|
|
421
|
-
withBorder: false
|
|
422
|
-
}, /*#__PURE__*/React.createElement(IconQuestionLine, null))
|
|
423
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
424
|
-
padding: "medium",
|
|
425
|
-
display: "block",
|
|
426
|
-
width: "16rem"
|
|
427
|
-
}, /*#__PURE__*/React.createElement(CloseButton, {
|
|
428
|
-
placement: "end",
|
|
429
|
-
offset: "x-small",
|
|
430
|
-
onClick: () => this.setState({
|
|
431
|
-
showWhyPopover: false
|
|
432
|
-
}),
|
|
433
|
-
screenReaderLabel: formatMessage('Close')
|
|
434
|
-
}), /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("p", null, rule.why()), /*#__PURE__*/React.createElement("p", null, rule.link && rule.link.length && /*#__PURE__*/React.createElement(InstUISettingsProvider, {
|
|
435
|
-
themeOverride: {
|
|
436
|
-
componentOverrides: {
|
|
437
|
-
[Link.componentId]: {
|
|
438
|
-
textDecoration: 'underline'
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
443
|
-
href: rule.link,
|
|
444
|
-
target: "_blank"
|
|
445
|
-
}, rule.linkText())))))))))), /*#__PURE__*/React.createElement("form", {
|
|
446
|
-
onSubmit: event => {
|
|
447
|
-
event.preventDefault();
|
|
448
|
-
this.fixIssue();
|
|
449
|
-
}
|
|
450
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
451
|
-
as: "div"
|
|
452
|
-
}, this.errorMessage()), rule.form().map(f => /*#__PURE__*/React.createElement(View, {
|
|
453
|
-
as: "div",
|
|
454
|
-
key: f.dataKey,
|
|
455
|
-
margin: "medium 0 0"
|
|
456
|
-
}, this.renderField(f))), /*#__PURE__*/React.createElement(View, {
|
|
457
|
-
as: "div",
|
|
458
|
-
margin: "medium 0"
|
|
459
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
460
|
-
vAlign: "middle",
|
|
461
|
-
hAlign: "space-between",
|
|
462
|
-
colSpacing: "none"
|
|
463
|
-
}, /*#__PURE__*/React.createElement(GridRow, null, /*#__PURE__*/React.createElement(GridCol, null, /*#__PURE__*/React.createElement(Button, {
|
|
464
|
-
onClick: () => this.prevError(),
|
|
465
|
-
margin: "0 small 0 0",
|
|
466
|
-
"aria-label": "Previous",
|
|
467
|
-
disabled: this.state.errors.length < 2
|
|
468
|
-
}, formatMessage('Prev')), /*#__PURE__*/React.createElement(Button, {
|
|
469
|
-
onClick: () => this.nextError(),
|
|
470
|
-
disabled: this.state.errors.length < 2
|
|
471
|
-
}, formatMessage('Next'))), /*#__PURE__*/React.createElement(GridCol, {
|
|
472
|
-
width: "auto"
|
|
473
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
474
|
-
type: "submit",
|
|
475
|
-
color: "primary",
|
|
476
|
-
disabled: !this.state.formStateValid
|
|
477
|
-
}, formatMessage('Apply')))))))), this.state.errors.length === 0 && !this.state.checking && /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("p", null, formatMessage('No accessibility issues were detected.'))), /*#__PURE__*/React.createElement(PlaceholderSVG, null)), this.state.checking && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LiveMessage, {
|
|
478
|
-
message: formatMessage('Checking for accessibility issues'),
|
|
479
|
-
"aria-live": "polite"
|
|
480
|
-
}), /*#__PURE__*/React.createElement(Spinner, {
|
|
481
|
-
renderTitle: formatMessage('Checking for accessibility issues'),
|
|
482
|
-
margin: "medium auto"
|
|
483
|
-
}))))));
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
renderField(f) {
|
|
487
|
-
const disabled = !!f.disabledIf && f.disabledIf(this.state.formState);
|
|
488
|
-
|
|
489
|
-
switch (true) {
|
|
490
|
-
case !!f.options:
|
|
491
|
-
return /*#__PURE__*/React.createElement(SimpleSelect, {
|
|
492
|
-
mountNode: instuiPopupMountNode,
|
|
493
|
-
disabled: disabled,
|
|
494
|
-
onChange: (e, option) => {
|
|
495
|
-
this.updateFormState({
|
|
496
|
-
target: {
|
|
497
|
-
name: f.dataKey,
|
|
498
|
-
value: option.value
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
},
|
|
502
|
-
value: this.state.formState[f.dataKey],
|
|
503
|
-
renderLabel: () => f.label
|
|
504
|
-
}, f.options.map(o => /*#__PURE__*/React.createElement(SimpleSelect.Option, {
|
|
505
|
-
key: o[0],
|
|
506
|
-
id: o[0],
|
|
507
|
-
value: o[0]
|
|
508
|
-
}, o[1])));
|
|
509
|
-
|
|
510
|
-
case f.checkbox:
|
|
511
|
-
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
512
|
-
label: f.label,
|
|
513
|
-
name: f.dataKey,
|
|
514
|
-
checked: this.state.formState[f.dataKey],
|
|
515
|
-
onChange: this.updateFormState,
|
|
516
|
-
disabled: disabled
|
|
517
|
-
});
|
|
518
|
-
|
|
519
|
-
case f.color:
|
|
520
|
-
return /*#__PURE__*/React.createElement(ColorField, {
|
|
521
|
-
label: f.label,
|
|
522
|
-
name: f.dataKey,
|
|
523
|
-
value: this.state.formState[f.dataKey] || '',
|
|
524
|
-
onChange: this.updateFormState,
|
|
525
|
-
key: this.state.formState.id
|
|
526
|
-
});
|
|
527
|
-
|
|
528
|
-
case f.textarea:
|
|
529
|
-
return /*#__PURE__*/React.createElement(TextArea, {
|
|
530
|
-
label: f.label,
|
|
531
|
-
name: f.dataKey,
|
|
532
|
-
value: this.state.formState[f.dataKey],
|
|
533
|
-
onChange: this.updateFormState,
|
|
534
|
-
disabled: disabled
|
|
535
|
-
});
|
|
536
|
-
|
|
537
|
-
case f.alert:
|
|
538
|
-
return this.state.formState.action === 'elem-only' && /*#__PURE__*/React.createElement(Alert, {
|
|
539
|
-
name: f.dataKey,
|
|
540
|
-
variant: f.variant
|
|
541
|
-
}, f.message);
|
|
542
|
-
|
|
543
|
-
default:
|
|
544
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
545
|
-
renderLabel: f.label,
|
|
546
|
-
name: f.dataKey,
|
|
547
|
-
value: this.state.formState[f.dataKey] || '',
|
|
548
|
-
onChange: this.updateFormState,
|
|
549
|
-
disabled: disabled
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
Checker.defaultProps = {
|
|
556
|
-
additionalRules: [],
|
|
557
|
-
onFixError: noop
|
|
558
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2018 - present Instructure, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This file is part of Canvas.
|
|
5
|
-
*
|
|
6
|
-
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
-
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
-
* Software Foundation, version 3 of the License.
|
|
9
|
-
*
|
|
10
|
-
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
-
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
-
* details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
-
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import { ColorWrap, Saturation, Hue, Alpha } from 'react-color/lib/components/common';
|
|
20
|
-
import Pointer from './pointer';
|
|
21
|
-
import PointerCircle from 'react-color/lib/components/photoshop/PhotoshopPointerCircle';
|
|
22
|
-
|
|
23
|
-
function ColorPicker(props) {
|
|
24
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
"data-testid": props['data-testid']
|
|
26
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
style: {
|
|
28
|
-
position: 'relative',
|
|
29
|
-
height: 150,
|
|
30
|
-
marginTop: 10
|
|
31
|
-
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(Saturation, Object.assign({
|
|
33
|
-
"data-testid": "a11y-color-picker-saturation"
|
|
34
|
-
}, props, {
|
|
35
|
-
pointer: PointerCircle
|
|
36
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
style: {
|
|
38
|
-
position: 'relative',
|
|
39
|
-
height: 10,
|
|
40
|
-
marginTop: 10
|
|
41
|
-
}
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Hue, Object.assign({
|
|
43
|
-
"data-testid": "a11y-color-picker-hue"
|
|
44
|
-
}, props, {
|
|
45
|
-
pointer: Pointer
|
|
46
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
47
|
-
style: {
|
|
48
|
-
position: 'relative',
|
|
49
|
-
height: 10,
|
|
50
|
-
marginTop: 10
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/React.createElement(Alpha, Object.assign({
|
|
53
|
-
"data-testid": "a11y-color-picker-alpha"
|
|
54
|
-
}, props, {
|
|
55
|
-
pointer: Pointer
|
|
56
|
-
}))));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export default ColorWrap(ColorPicker);
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2018 - present Instructure, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This file is part of Canvas.
|
|
5
|
-
*
|
|
6
|
-
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
-
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
-
* Software Foundation, version 3 of the License.
|
|
9
|
-
*
|
|
10
|
-
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
-
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
-
* details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
-
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
import React from 'react';
|
|
19
|
-
export default function PlaceholderSVG() {
|
|
20
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
21
|
-
viewBox: "0 0 245 310",
|
|
22
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
23
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
24
|
-
fill: "none",
|
|
25
|
-
fillRule: "evenodd"
|
|
26
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
27
|
-
d: "M166.886 39.098c1.975 25.644-22.325 55.153-31.764 55.89-8.258.645-37.972-24.727-39.947-50.37C93.2 18.972 108.168 3.644 127.97 2.12 147.774.6 164.91 13.455 166.887 39.1",
|
|
28
|
-
fill: "#E24270"
|
|
29
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
-
d: "M166.886 39.098c1.975 25.644-22.325 55.153-31.764 55.89-8.258.645-37.972-24.727-39.947-50.37C93.2 18.972 108.168 3.644 127.97 2.12 147.774.6 164.91 13.455 166.887 39.1z",
|
|
31
|
-
stroke: "#BB0049",
|
|
32
|
-
strokeWidth: "3"
|
|
33
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
-
d: "M136.38 99s-4.393 25.27 16.675 79.635c21.835 56.343.905 87.365.905 87.365",
|
|
35
|
-
stroke: "#808285",
|
|
36
|
-
strokeWidth: "2"
|
|
37
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
38
|
-
d: "M134.786 96.263l-3.607 5.22c-.618.895.493 1.963 1.373 1.322l3.045-2.215 4.22 2.174c.804.414 1.576-.6.957-1.253l-5.04-5.32c-.268-.28-.73-.246-.95.073",
|
|
39
|
-
fill: "#E24270"
|
|
40
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
41
|
-
d: "M134.786 96.263l-3.607 5.22c-.618.895.493 1.963 1.373 1.322l3.045-2.215 4.22 2.174c.804.414 1.576-.6.957-1.253l-5.04-5.32c-.268-.28-.73-.246-.95.073z",
|
|
42
|
-
stroke: "#BB0049",
|
|
43
|
-
strokeWidth: "3"
|
|
44
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
45
|
-
d: "M223.18 86.916c-3.846 20.83-28.086 39.36-35.276 38.015-6.292-1.174-23.187-27.46-19.34-48.29 3.845-20.827 18.185-29.973 33.267-27.136 15.083 2.838 25.196 16.583 21.35 37.412",
|
|
46
|
-
fill: "#F7941D"
|
|
47
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
-
d: "M223.18 86.916c-3.846 20.83-28.086 39.36-35.276 38.015-6.292-1.174-23.187-27.46-19.34-48.29 3.845-20.827 18.185-29.973 33.267-27.136 15.083 2.838 25.196 16.583 21.35 37.412z",
|
|
49
|
-
stroke: "#F15A29",
|
|
50
|
-
strokeWidth: "3"
|
|
51
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
52
|
-
d: "M188.264 127s11.83 8.563-1.903 44.83c-43.046 113.684 27.63 102.178-5.446 114.17",
|
|
53
|
-
stroke: "#808285",
|
|
54
|
-
strokeWidth: "2"
|
|
55
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
56
|
-
d: "M189.094 124.174l-2.923 3.936c-.5.674.195 1.637.86 1.19l2.3-1.54 2.786 2.126c.53.405 1.148-.353.765-.938l-3.117-4.753c-.165-.25-.49-.262-.67-.02",
|
|
57
|
-
fill: "#F7941D"
|
|
58
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
59
|
-
d: "M189.094 124.174l-2.923 3.936c-.5.674.195 1.637.86 1.19l2.3-1.54 2.786 2.126c.53.405 1.148-.353.765-.938l-3.117-4.753c-.165-.25-.49-.262-.67-.02z",
|
|
60
|
-
stroke: "#F15A29",
|
|
61
|
-
strokeWidth: "2"
|
|
62
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
63
|
-
fill: "#E24270",
|
|
64
|
-
d: "M7.366 125L0 121.366 3.634 114 11 117.634"
|
|
65
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
66
|
-
fill: "#2BB673",
|
|
67
|
-
d: "M205.793 189L201 181.793l7.206-4.793 4.794 7.206M38.793 227L34 219.794 41.206 215 46 222.207"
|
|
68
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
69
|
-
fill: "#C739AE",
|
|
70
|
-
d: "M241.365 119L234 115.365l3.635-7.365 7.365 3.635"
|
|
71
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
72
|
-
d: "M59.82 132.916c3.846 20.828 28.086 39.36 35.277 38.015 6.29-1.174 23.187-27.46 19.34-48.29-3.845-20.827-18.186-29.973-33.268-27.136-15.083 2.838-25.196 16.583-21.35 37.412",
|
|
73
|
-
fill: "#27AAE1"
|
|
74
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
75
|
-
d: "M59.82 132.916c3.846 20.828 28.086 39.36 35.277 38.015 6.29-1.174 23.187-27.46 19.34-48.29-3.845-20.827-18.186-29.973-33.268-27.136-15.083 2.838-25.196 16.583-21.35 37.412z",
|
|
76
|
-
stroke: "#1B75BC",
|
|
77
|
-
strokeWidth: "3"
|
|
78
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
79
|
-
d: "M95.578 173s-12.91 7.878.553 38.35c22.452 50.803-11.7 39.804 2.025 97.65",
|
|
80
|
-
stroke: "#808285",
|
|
81
|
-
strokeWidth: "2"
|
|
82
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
83
|
-
d: "M93.906 170.174l2.923 3.936c.5.674-.195 1.637-.86 1.19l-2.3-1.54-2.786 2.126c-.53.404-1.148-.353-.765-.938l3.117-4.753c.165-.25.49-.262.67-.02",
|
|
84
|
-
fill: "#27AAE1"
|
|
85
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
86
|
-
d: "M93.906 170.174l2.923 3.936c.5.674-.195 1.637-.86 1.19l-2.3-1.54-2.786 2.126c-.53.404-1.148-.353-.765-.938l3.117-4.753c.165-.25.49-.262.67-.02z",
|
|
87
|
-
stroke: "#1B75BC",
|
|
88
|
-
strokeWidth: "2"
|
|
89
|
-
})));
|
|
90
|
-
}
|