@atlaskit/editor-common 88.13.2 → 89.0.0
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 +16 -0
- package/dist/cjs/annotation/index.js +1 -1
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/cjs/card/index.js +1 -1
- package/dist/cjs/clipboard/index.js +1 -1
- package/dist/cjs/commands/index.js +4 -4
- package/dist/cjs/element-browser/ElementBrowser.js +2 -2
- package/dist/cjs/element-browser/components/CategoryList.js +1 -1
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/cjs/element-browser/hooks/use-container-width.js +1 -1
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -3
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/cjs/extensibility/Extension.js +2 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +2 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/extensibility/extensionNodeView.js +1 -1
- package/dist/cjs/extensibility/index.js +1 -1
- package/dist/cjs/extensions/module-helpers.js +3 -3
- package/dist/cjs/i18n/cs.js +5 -2
- package/dist/cjs/i18n/da.js +5 -2
- package/dist/cjs/i18n/de.js +5 -2
- package/dist/cjs/i18n/en.js +8 -2
- package/dist/cjs/i18n/en_GB.js +8 -2
- package/dist/cjs/i18n/en_ZZ.js +8 -2
- package/dist/cjs/i18n/es.js +5 -2
- package/dist/cjs/i18n/fi.js +5 -2
- package/dist/cjs/i18n/fr.js +5 -2
- package/dist/cjs/i18n/hu.js +5 -2
- package/dist/cjs/i18n/it.js +5 -2
- package/dist/cjs/i18n/ja.js +5 -2
- package/dist/cjs/i18n/ko.js +5 -2
- package/dist/cjs/i18n/nb.js +5 -2
- package/dist/cjs/i18n/nl.js +5 -2
- package/dist/cjs/i18n/pl.js +5 -2
- package/dist/cjs/i18n/pt_BR.js +5 -2
- package/dist/cjs/i18n/ru.js +5 -2
- package/dist/cjs/i18n/sv.js +5 -2
- package/dist/cjs/i18n/th.js +5 -2
- package/dist/cjs/i18n/tr.js +5 -2
- package/dist/cjs/i18n/uk.js +5 -2
- package/dist/cjs/i18n/vi.js +5 -2
- package/dist/cjs/i18n/zh.js +5 -2
- package/dist/cjs/i18n/zh_TW.js +5 -2
- package/dist/cjs/icons/index.js +1 -1
- package/dist/cjs/keymaps/index.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +1 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +17 -17
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/cjs/link/LinkSearch/index.js +1 -1
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/cjs/link/index.js +1 -1
- package/dist/cjs/media-single/CommentBadgeNext.js +1 -1
- package/dist/cjs/media-single/MediaBadges.js +1 -1
- package/dist/cjs/monitoring/error.js +2 -2
- package/dist/cjs/portal/PortalBucket.js +1 -1
- package/dist/cjs/portal/usePortalProvider.js +1 -1
- package/dist/cjs/preset/editor-commands.js +1 -1
- package/dist/cjs/preset/plugin-injection-api.js +8 -8
- package/dist/cjs/provider-factory/with-providers.js +1 -1
- package/dist/cjs/quick-insert/assets/index.js +1 -1
- package/dist/cjs/resizer/Resizer.js +1 -1
- package/dist/cjs/safe-plugin/index.js +1 -1
- package/dist/cjs/selection/gap-cursor/actions.js +3 -3
- package/dist/cjs/selection/gap-cursor/selection.js +1 -1
- package/dist/cjs/selection/index.js +2 -2
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/cjs/table/SortingIcon.js +5 -1
- package/dist/cjs/table/index.js +1 -1
- package/dist/cjs/ui/Announcer/announcer.js +1 -1
- package/dist/cjs/ui/BaseTheme/index.js +1 -1
- package/dist/cjs/ui/Caption/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/context.js +1 -1
- package/dist/cjs/ui/DropList/index.js +2 -2
- package/dist/cjs/ui/Emoji/index.js +2 -2
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +1 -1
- package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +1 -1
- package/dist/cjs/ui/Layer/index.js +2 -2
- package/dist/cjs/ui/Mention/index.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-providers.js +2 -2
- package/dist/cjs/ui/OverflowShadow/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -1
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -1
- package/dist/cjs/ui/WidthProvider/index.js +1 -1
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/with-outer-listeners.js +2 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +1 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -1
- package/dist/cjs/ui-menu/Dropdown/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownContainer/index.js +1 -1
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -1
- package/dist/cjs/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/cjs/ui-menu/index.js +1 -1
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +2 -2
- package/dist/cjs/utils/browser-extensions.js +3 -3
- package/dist/cjs/utils/imageLoader.js +2 -2
- package/dist/cjs/utils/index.js +3 -3
- package/dist/cjs/utils/profiler/render-count.js +5 -5
- package/dist/cjs/utils/prosemirror/autojoin.js +5 -5
- package/dist/cjs/utils/referentiality.js +3 -3
- package/dist/cjs/with-plugin-state/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +1 -2
- package/dist/es2019/i18n/cs.js +5 -2
- package/dist/es2019/i18n/da.js +5 -2
- package/dist/es2019/i18n/de.js +5 -2
- package/dist/es2019/i18n/en.js +8 -2
- package/dist/es2019/i18n/en_GB.js +8 -2
- package/dist/es2019/i18n/en_ZZ.js +8 -2
- package/dist/es2019/i18n/es.js +5 -2
- package/dist/es2019/i18n/fi.js +5 -2
- package/dist/es2019/i18n/fr.js +5 -2
- package/dist/es2019/i18n/hu.js +5 -2
- package/dist/es2019/i18n/it.js +5 -2
- package/dist/es2019/i18n/ja.js +5 -2
- package/dist/es2019/i18n/ko.js +5 -2
- package/dist/es2019/i18n/nb.js +5 -2
- package/dist/es2019/i18n/nl.js +5 -2
- package/dist/es2019/i18n/pl.js +5 -2
- package/dist/es2019/i18n/pt_BR.js +5 -2
- package/dist/es2019/i18n/ru.js +5 -2
- package/dist/es2019/i18n/sv.js +5 -2
- package/dist/es2019/i18n/th.js +5 -2
- package/dist/es2019/i18n/tr.js +5 -2
- package/dist/es2019/i18n/uk.js +5 -2
- package/dist/es2019/i18n/vi.js +5 -2
- package/dist/es2019/i18n/zh.js +5 -2
- package/dist/es2019/i18n/zh_TW.js +5 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/table/SortingIcon.js +5 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/annotation/index.js +1 -1
- package/dist/esm/commands/index.js +4 -4
- package/dist/esm/element-browser/ElementBrowser.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/esm/extensibility/Extension.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +1 -1
- package/dist/esm/extensibility/extensionNodeView.js +1 -1
- package/dist/esm/extensions/module-helpers.js +3 -3
- package/dist/esm/i18n/cs.js +5 -2
- package/dist/esm/i18n/da.js +5 -2
- package/dist/esm/i18n/de.js +5 -2
- package/dist/esm/i18n/en.js +8 -2
- package/dist/esm/i18n/en_GB.js +8 -2
- package/dist/esm/i18n/en_ZZ.js +8 -2
- package/dist/esm/i18n/es.js +5 -2
- package/dist/esm/i18n/fi.js +5 -2
- package/dist/esm/i18n/fr.js +5 -2
- package/dist/esm/i18n/hu.js +5 -2
- package/dist/esm/i18n/it.js +5 -2
- package/dist/esm/i18n/ja.js +5 -2
- package/dist/esm/i18n/ko.js +5 -2
- package/dist/esm/i18n/nb.js +5 -2
- package/dist/esm/i18n/nl.js +5 -2
- package/dist/esm/i18n/pl.js +5 -2
- package/dist/esm/i18n/pt_BR.js +5 -2
- package/dist/esm/i18n/ru.js +5 -2
- package/dist/esm/i18n/sv.js +5 -2
- package/dist/esm/i18n/th.js +5 -2
- package/dist/esm/i18n/tr.js +5 -2
- package/dist/esm/i18n/uk.js +5 -2
- package/dist/esm/i18n/vi.js +5 -2
- package/dist/esm/i18n/zh.js +5 -2
- package/dist/esm/i18n/zh_TW.js +5 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +16 -16
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/esm/link/LinkSearch/index.js +1 -1
- package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/editor-commands.js +1 -1
- package/dist/esm/preset/plugin-injection-api.js +8 -8
- package/dist/esm/provider-factory/with-providers.js +1 -1
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/gap-cursor/actions.js +3 -3
- package/dist/esm/selection/gap-cursor/selection.js +1 -1
- package/dist/esm/selection/index.js +2 -2
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/esm/table/SortingIcon.js +5 -1
- package/dist/esm/ui/Caption/index.js +1 -1
- package/dist/esm/ui/ContextPanel/context.js +1 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/esm/ui/Emoji/index.js +1 -1
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +1 -1
- package/dist/esm/ui/Mention/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/esm/ui/with-outer-listeners.js +1 -1
- package/dist/esm/ui-menu/Dropdown/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/esm/utils/browser-extensions.js +3 -3
- package/dist/esm/utils/imageLoader.js +1 -1
- package/dist/esm/utils/index.js +3 -3
- package/dist/esm/utils/profiler/render-count.js +5 -5
- package/dist/esm/utils/prosemirror/autojoin.js +5 -5
- package/dist/esm/utils/referentiality.js +3 -3
- package/dist/esm/with-plugin-state/index.js +1 -1
- package/dist/types/i18n/cs.d.ts +5 -2
- package/dist/types/i18n/da.d.ts +5 -2
- package/dist/types/i18n/de.d.ts +5 -2
- package/dist/types/i18n/en.d.ts +8 -2
- package/dist/types/i18n/en_GB.d.ts +8 -2
- package/dist/types/i18n/en_ZZ.d.ts +8 -2
- package/dist/types/i18n/es.d.ts +5 -2
- package/dist/types/i18n/fi.d.ts +5 -2
- package/dist/types/i18n/fr.d.ts +5 -2
- package/dist/types/i18n/hu.d.ts +5 -2
- package/dist/types/i18n/it.d.ts +5 -2
- package/dist/types/i18n/ja.d.ts +5 -2
- package/dist/types/i18n/ko.d.ts +5 -2
- package/dist/types/i18n/nb.d.ts +5 -2
- package/dist/types/i18n/nl.d.ts +5 -2
- package/dist/types/i18n/pl.d.ts +5 -2
- package/dist/types/i18n/pt_BR.d.ts +5 -2
- package/dist/types/i18n/ru.d.ts +5 -2
- package/dist/types/i18n/sv.d.ts +5 -2
- package/dist/types/i18n/th.d.ts +5 -2
- package/dist/types/i18n/tr.d.ts +5 -2
- package/dist/types/i18n/uk.d.ts +5 -2
- package/dist/types/i18n/vi.d.ts +5 -2
- package/dist/types/i18n/zh.d.ts +5 -2
- package/dist/types/i18n/zh_TW.d.ts +5 -2
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +5 -2
- package/dist/types-ts4.5/i18n/da.d.ts +5 -2
- package/dist/types-ts4.5/i18n/de.d.ts +5 -2
- package/dist/types-ts4.5/i18n/en.d.ts +8 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +8 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +8 -2
- package/dist/types-ts4.5/i18n/es.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +5 -2
- package/dist/types-ts4.5/i18n/it.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +5 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +5 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +5 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +5 -2
- package/dist/types-ts4.5/i18n/th.d.ts +5 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +5 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -2
- package/dist/types-ts4.5/types/editor-appearance.d.ts +1 -1
- package/package.json +5 -2
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -298,14 +298,17 @@ export default {
|
|
|
298
298
|
'fabric.editor.media.DefaultMediaWidthIncreased': '{newMediaWidth, plural, other {媒体宽度已增大到 {newMediaWidth,number} 像素。}}',
|
|
299
299
|
'fabric.editor.media.MediaWidthIsMin': '媒体已减小到大小下限',
|
|
300
300
|
'fabric.editor.media.insert.cancel': '取消',
|
|
301
|
-
'fabric.editor.media.insert.
|
|
301
|
+
'fabric.editor.media.insert.fileTabTitle': '文件',
|
|
302
|
+
'fabric.editor.media.insert.fromUrlErrorMessage': '受来源限制,其他人可能看不到此图像。请考虑改为上传文件。',
|
|
302
303
|
'fabric.editor.media.insert.insert': '插入',
|
|
303
304
|
'fabric.editor.media.insert.linkTabTitle': '链接',
|
|
304
305
|
'fabric.editor.media.insert.loadPreview': '加载预览',
|
|
306
|
+
'fabric.editor.media.insert.localFileErrorMessage': '无法上传此文件。',
|
|
307
|
+
'fabric.editor.media.insert.localFileNetworkErrorMessage': '文件上传错误。请检查文件路径或网络。',
|
|
305
308
|
'fabric.editor.media.insert.mediaAlt': '预览上传的图像或视频文件',
|
|
306
309
|
'fabric.editor.media.insert.mediaPickerPopupAriaLabel': '媒体选择器',
|
|
307
310
|
'fabric.editor.media.insert.pasteLinkToUpload': '粘贴链接以上传',
|
|
308
|
-
'fabric.editor.media.insert.
|
|
311
|
+
'fabric.editor.media.insert.upload': '上传',
|
|
309
312
|
'fabric.editor.media.pixelEntry.MediaWidthIsMax': '媒体已增大到大小上限',
|
|
310
313
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': '高度输入',
|
|
311
314
|
'fabric.editor.media.pixelEntry.inputHeightTooltip': '高度',
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -298,14 +298,17 @@ export default {
|
|
|
298
298
|
'fabric.editor.media.DefaultMediaWidthIncreased': '{newMediaWidth, plural, other {媒體寬度已提升至 {newMediaWidth,number} 像素。}}',
|
|
299
299
|
'fabric.editor.media.MediaWidthIsMin': '媒體已縮減至最小',
|
|
300
300
|
'fabric.editor.media.insert.cancel': '取消',
|
|
301
|
-
'fabric.editor.media.insert.
|
|
301
|
+
'fabric.editor.media.insert.fileTabTitle': '檔案',
|
|
302
|
+
'fabric.editor.media.insert.fromUrlErrorMessage': '由於來源限制,其他人可能無法看到此圖片。您可以考慮改為上傳檔案。',
|
|
302
303
|
'fabric.editor.media.insert.insert': '插入',
|
|
303
304
|
'fabric.editor.media.insert.linkTabTitle': '連結',
|
|
304
305
|
'fabric.editor.media.insert.loadPreview': '載入預覽',
|
|
306
|
+
'fabric.editor.media.insert.localFileErrorMessage': '無法上傳此檔案。',
|
|
307
|
+
'fabric.editor.media.insert.localFileNetworkErrorMessage': '檔案上傳錯誤。請檢查檔案路徑或網路。',
|
|
305
308
|
'fabric.editor.media.insert.mediaAlt': '上傳的圖片或影片檔案預覽',
|
|
306
309
|
'fabric.editor.media.insert.mediaPickerPopupAriaLabel': '媒體選擇器',
|
|
307
310
|
'fabric.editor.media.insert.pasteLinkToUpload': '貼上連結以上傳',
|
|
308
|
-
'fabric.editor.media.insert.
|
|
311
|
+
'fabric.editor.media.insert.upload': '上傳',
|
|
309
312
|
'fabric.editor.media.pixelEntry.MediaWidthIsMax': '媒體已增加至最大',
|
|
310
313
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': '高度輸入',
|
|
311
314
|
'fabric.editor.media.pixelEntry.inputHeightTooltip': '高度',
|
|
@@ -9,7 +9,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
9
9
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
|
-
function _createSuper(
|
|
12
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
@@ -274,7 +274,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
274
274
|
}());
|
|
275
275
|
_defineProperty(_assertThisInitialized(_this), "updateInput", /*#__PURE__*/function () {
|
|
276
276
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(input) {
|
|
277
|
-
var _this$state2, activityProvider, searchProvider,
|
|
277
|
+
var _this$state2, activityProvider, searchProvider, items, shouldQuerySearchProvider;
|
|
278
278
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
279
279
|
while (1) switch (_context2.prev = _context2.next) {
|
|
280
280
|
case 0:
|
|
@@ -319,14 +319,14 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
319
319
|
_context2.next = 19;
|
|
320
320
|
return _this.getRecentItems(activityProvider, input);
|
|
321
321
|
case 19:
|
|
322
|
-
|
|
323
|
-
shouldQuerySearchProvider =
|
|
322
|
+
items = _context2.sent;
|
|
323
|
+
shouldQuerySearchProvider = items.length < RECENT_SEARCH_LIST_SIZE && !!searchProvider;
|
|
324
324
|
_this.setState({
|
|
325
|
-
items:
|
|
325
|
+
items: items,
|
|
326
326
|
isLoading: shouldQuerySearchProvider
|
|
327
327
|
});
|
|
328
328
|
if (shouldQuerySearchProvider) {
|
|
329
|
-
_this.debouncedQuickSearch(input,
|
|
329
|
+
_this.debouncedQuickSearch(input, items, RECENT_SEARCH_LIST_SIZE);
|
|
330
330
|
}
|
|
331
331
|
case 23:
|
|
332
332
|
case "end":
|
|
@@ -518,9 +518,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
518
518
|
if (!_this.submitted) {
|
|
519
519
|
var _this$state8 = _this.state,
|
|
520
520
|
displayUrl = _this$state8.displayUrl,
|
|
521
|
-
|
|
521
|
+
displayText = _this$state8.displayText;
|
|
522
522
|
var url = normalizeUrl(displayUrl);
|
|
523
|
-
_this.handleInsert(url,
|
|
523
|
+
_this.handleInsert(url, displayText || displayUrl, INPUT_METHOD.MANUAL, 'notselected');
|
|
524
524
|
}
|
|
525
525
|
event.preventDefault();
|
|
526
526
|
return;
|
|
@@ -676,7 +676,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
676
676
|
key: "getRecentItems",
|
|
677
677
|
value: function () {
|
|
678
678
|
var _getRecentItems = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(activityProvider, query) {
|
|
679
|
-
var searchSessionId, perfStart, activityRecentItems,
|
|
679
|
+
var searchSessionId, perfStart, activityRecentItems, items, perfStop, duration, _perfStop2, _duration2;
|
|
680
680
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
681
681
|
while (1) switch (_context5.prev = _context5.next) {
|
|
682
682
|
case 0:
|
|
@@ -702,7 +702,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
702
702
|
case 13:
|
|
703
703
|
_context5.t2 = _context5.t1;
|
|
704
704
|
activityRecentItems = (0, _context5.t0)(_context5.t2);
|
|
705
|
-
|
|
705
|
+
items = activityRecentItems.map(mapActivityProviderResultToLinkSearchItemData);
|
|
706
706
|
perfStop = performance.now();
|
|
707
707
|
duration = perfStop - perfStart;
|
|
708
708
|
this.fireAnalytics({
|
|
@@ -711,7 +711,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
711
711
|
actionSubjectId: ACTION_SUBJECT_ID.RECENT_ACTIVITIES,
|
|
712
712
|
attributes: {
|
|
713
713
|
duration: duration,
|
|
714
|
-
count:
|
|
714
|
+
count: items.length
|
|
715
715
|
},
|
|
716
716
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
717
717
|
});
|
|
@@ -723,7 +723,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
723
723
|
source: this.analyticSource,
|
|
724
724
|
preQueryRequestDurationMs: duration,
|
|
725
725
|
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
726
|
-
resultCount:
|
|
726
|
+
resultCount: items.length,
|
|
727
727
|
results: activityRecentItems.map(function (item) {
|
|
728
728
|
var _item$type;
|
|
729
729
|
return {
|
|
@@ -734,7 +734,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
734
734
|
},
|
|
735
735
|
eventType: EVENT_TYPE.UI
|
|
736
736
|
});
|
|
737
|
-
return _context5.abrupt("return",
|
|
737
|
+
return _context5.abrupt("return", items);
|
|
738
738
|
case 23:
|
|
739
739
|
_context5.prev = 23;
|
|
740
740
|
_context5.t3 = _context5["catch"](2);
|
|
@@ -776,7 +776,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
776
776
|
key: "loadInitialLinkSearchResult",
|
|
777
777
|
value: function () {
|
|
778
778
|
var _loadInitialLinkSearchResult = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
779
|
-
var _this$state10, displayUrl, activityProvider,
|
|
779
|
+
var _this$state10, displayUrl, activityProvider, items;
|
|
780
780
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
781
781
|
while (1) switch (_context6.prev = _context6.next) {
|
|
782
782
|
case 0:
|
|
@@ -792,9 +792,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
792
792
|
_context6.next = 6;
|
|
793
793
|
return this.getRecentItems(activityProvider);
|
|
794
794
|
case 6:
|
|
795
|
-
|
|
795
|
+
items = _context6.sent;
|
|
796
796
|
this.setState({
|
|
797
|
-
items:
|
|
797
|
+
items: items
|
|
798
798
|
});
|
|
799
799
|
case 8:
|
|
800
800
|
_context6.prev = 8;
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
/**
|
|
9
9
|
* @jsxRuntime classic
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
/**
|
|
11
11
|
* @jsxRuntime classic
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -8,7 +8,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
var _excluded = ["providerFactory"];
|
|
11
|
-
function _createSuper(
|
|
11
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { WithProviders } from '../../provider-factory';
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "89.0.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
/**
|
|
@@ -4,9 +4,9 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
6
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
7
|
-
function _createForOfIteratorHelper(
|
|
8
|
-
function _unsupportedIterableToArray(
|
|
9
|
-
function _arrayLikeToArray(
|
|
7
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
8
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
9
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
10
|
import isEqual from 'lodash/isEqual';
|
|
11
11
|
import throttle from 'lodash/throttle';
|
|
12
12
|
import { corePlugin } from './core-plugin';
|
|
@@ -38,15 +38,15 @@ var extractSharedStateFromPlugins = function extractSharedStateFromPlugins(_ref2
|
|
|
38
38
|
_step;
|
|
39
39
|
try {
|
|
40
40
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
41
|
-
var
|
|
42
|
-
if (!
|
|
41
|
+
var plugin = _step.value;
|
|
42
|
+
if (!plugin || !hasGetSharedState(plugin)) {
|
|
43
43
|
continue;
|
|
44
44
|
}
|
|
45
|
-
var nextSharedState =
|
|
46
|
-
var prevSharedState = !isInitialization && oldEditorState ?
|
|
45
|
+
var nextSharedState = plugin.getSharedState(newEditorState);
|
|
46
|
+
var prevSharedState = !isInitialization && oldEditorState ? plugin.getSharedState(oldEditorState) : undefined;
|
|
47
47
|
var isSamePluginState = isEqual(prevSharedState, nextSharedState);
|
|
48
48
|
if (isInitialization || !isSamePluginState) {
|
|
49
|
-
result.set(
|
|
49
|
+
result.set(plugin.name, {
|
|
50
50
|
nextSharedState: nextSharedState,
|
|
51
51
|
prevSharedState: prevSharedState
|
|
52
52
|
});
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
13
|
export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -5,7 +5,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
7
7
|
import _toArray from "@babel/runtime/helpers/toArray";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
// Wraper to avoid any exception during the get pos operation
|
|
@@ -16,12 +16,12 @@ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCo
|
|
|
16
16
|
}
|
|
17
17
|
if (rect.left > 0) {
|
|
18
18
|
// calculate start position of a node that is vertically at the same level
|
|
19
|
-
var
|
|
19
|
+
var coords = posAtCoords({
|
|
20
20
|
left: rect.left,
|
|
21
21
|
top: event.clientY
|
|
22
22
|
});
|
|
23
|
-
if (
|
|
24
|
-
var $from = tr.doc.resolve(
|
|
23
|
+
if (coords && coords.inside > -1) {
|
|
24
|
+
var $from = tr.doc.resolve(coords.inside);
|
|
25
25
|
var start = $from.before(1);
|
|
26
26
|
var side = event.clientX < rect.left ? Side.LEFT : Side.RIGHT;
|
|
27
27
|
var position;
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -102,8 +102,8 @@ export function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
|
102
102
|
return false;
|
|
103
103
|
}
|
|
104
104
|
if (direct && nodes.indexOf(node.type.name) !== -1) {
|
|
105
|
-
var
|
|
106
|
-
if (
|
|
105
|
+
var target = event.target;
|
|
106
|
+
if (target instanceof HTMLElement && isValidTarget(target)) {
|
|
107
107
|
var selectionPos = options.getNodeSelectionPos ? options.getNodeSelectionPos(view.state, nodePos) : nodePos;
|
|
108
108
|
selectNode(selectionPos)(view.state, view.dispatch);
|
|
109
109
|
return true;
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import ReactNodeView from '../react-node-view';
|
|
11
11
|
|
|
@@ -7,11 +7,15 @@ var _templateObject, _templateObject2;
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import { SortOrder } from '../types';
|
|
13
14
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
14
15
|
import { sortingAriaLabelMessages, sortingIconMessages } from './messages';
|
|
16
|
+
var annotationRangeFixStyle = css({
|
|
17
|
+
userSelect: 'none'
|
|
18
|
+
});
|
|
15
19
|
export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
16
20
|
StatusClassNames["ASC"] = "sorting-icon-svg__asc";
|
|
17
21
|
StatusClassNames["DESC"] = "sorting-icon-svg__desc";
|
|
@@ -141,7 +145,7 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
141
145
|
,
|
|
142
146
|
className: getIconClassName(isSortingAllowed, sortOrdered)
|
|
143
147
|
}, jsx("div", {
|
|
144
|
-
css: iconStyles
|
|
148
|
+
css: [iconStyles, fg('platform_editor_allow_annotation_triple_click') && annotationRangeFixStyle]
|
|
145
149
|
}))));
|
|
146
150
|
};
|
|
147
151
|
export default injectIntl(SortingIcon);
|
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
function _createSuper(
|
|
7
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
/**
|
|
10
10
|
* @jsxRuntime classic
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
/**
|
|
11
11
|
* @jsxRuntime classic
|
|
@@ -22,7 +22,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
22
22
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
23
|
import Layer from '../Layer';
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "
|
|
25
|
+
var packageVersion = "89.0.0";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { ACTION, EVENT_TYPE } from '../../analytics';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { IntlProvider } from 'react-intl-next';
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { Component } from 'react';
|
|
13
13
|
import Popper from 'popper.js'; // eslint-disable-line import/extensions
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { ProviderFactory, WithProviders } from '../../provider-factory';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { PureComponent } from 'react';
|
|
12
12
|
import { ResourcedMention } from '@atlaskit/mention/element';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import createFocusTrap from 'focus-trap';
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import ReactDOM from 'react-dom';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { PureComponent } from 'react';
|
|
12
12
|
import { withReactEditorViewOuterListeners } from '../../ui-react';
|