@atlaskit/editor-common 86.3.1 → 86.4.1
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 +17 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +4 -1
- package/dist/cjs/element-browser/ViewMore.js +4 -1
- package/dist/cjs/element-browser/components/CategoryList.js +4 -1
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +4 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +4 -1
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +4 -1
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +4 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +4 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +4 -1
- package/dist/cjs/element-browser/hooks/use-container-width.js +4 -1
- package/dist/cjs/extensibility/Extension/Extension/index.js +4 -1
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +4 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +4 -1
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +4 -1
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +4 -1
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +4 -1
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +4 -1
- package/dist/cjs/keymaps/index.js +4 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +4 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -1
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +4 -1
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -1
- package/dist/cjs/media-inline/inline-image-card.js +4 -1
- package/dist/cjs/media-inline/inline-image-wrapper.js +4 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +4 -1
- package/dist/cjs/media-inline/views/error-view.js +4 -1
- package/dist/cjs/media-inline/views/frame.js +4 -1
- package/dist/cjs/media-inline/views/icon-wrapper.js +4 -1
- package/dist/cjs/media-inline/views/loading-view.js +4 -1
- package/dist/cjs/media-single/CommentBadge.js +4 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +4 -1
- package/dist/cjs/table/SortingIcon.js +4 -1
- package/dist/cjs/ui/Caption/index.js +4 -1
- package/dist/cjs/ui/DropList/index.js +5 -2
- package/dist/cjs/ui/Expand/index.js +4 -1
- package/dist/cjs/ui/FloatingToolbar/Separator.js +4 -1
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +4 -1
- package/dist/cjs/ui/MediaSingle/index.js +4 -1
- package/dist/cjs/ui/MediaSingle/styled.js +4 -1
- package/dist/cjs/ui/Messages/index.js +4 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +4 -1
- package/dist/cjs/ui/PanelTextInput/index.js +4 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -1
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -1
- package/dist/cjs/ui/WidthProvider/index.js +4 -1
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +4 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +4 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -1
- package/dist/cjs/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/cjs/ui-menu/DropdownMenu/index.js +4 -1
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -1
- package/dist/cjs/ui-menu/ToolbarButton/index.js +4 -1
- package/dist/cjs/utils/annotation/index.js +15 -0
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es2019/card/LinkToolbarButtonGroup.js +4 -1
- package/dist/es2019/element-browser/ViewMore.js +4 -1
- package/dist/es2019/element-browser/components/CategoryList.js +4 -1
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +4 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +4 -1
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +4 -1
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +4 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +4 -1
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +4 -1
- package/dist/es2019/element-browser/hooks/use-container-width.js +4 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +4 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +4 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +4 -1
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +4 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +4 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +4 -1
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +4 -1
- package/dist/es2019/keymaps/index.js +4 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +4 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -1
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +4 -1
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -1
- package/dist/es2019/media-inline/inline-image-card.js +4 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +4 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +4 -1
- package/dist/es2019/media-inline/views/error-view.js +4 -1
- package/dist/es2019/media-inline/views/frame.js +4 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +4 -1
- package/dist/es2019/media-inline/views/loading-view.js +4 -1
- package/dist/es2019/media-single/CommentBadge.js +4 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +4 -1
- package/dist/es2019/table/SortingIcon.js +4 -1
- package/dist/es2019/ui/Caption/index.js +4 -1
- package/dist/es2019/ui/DropList/index.js +5 -2
- package/dist/es2019/ui/Expand/index.js +4 -1
- package/dist/es2019/ui/FloatingToolbar/Separator.js +4 -1
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +4 -1
- package/dist/es2019/ui/MediaSingle/index.js +4 -1
- package/dist/es2019/ui/MediaSingle/styled.js +4 -1
- package/dist/es2019/ui/Messages/index.js +4 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +4 -1
- package/dist/es2019/ui/PanelTextInput/index.js +4 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -1
- package/dist/es2019/ui/WidthProvider/index.js +4 -1
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +4 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +4 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +4 -1
- package/dist/es2019/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -1
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -1
- package/dist/es2019/ui-menu/ToolbarButton/index.js +4 -1
- package/dist/es2019/utils/annotation/index.js +12 -0
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/card/LinkToolbarButtonGroup.js +4 -1
- package/dist/esm/element-browser/ViewMore.js +4 -1
- package/dist/esm/element-browser/components/CategoryList.js +4 -1
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +4 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +4 -1
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +4 -1
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +4 -1
- package/dist/esm/element-browser/components/ElementSearch.js +4 -1
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +4 -1
- package/dist/esm/element-browser/hooks/use-container-width.js +4 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +4 -1
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +4 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +4 -1
- package/dist/esm/extensibility/Extension/Lozenge/index.js +4 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +4 -1
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +4 -1
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +4 -1
- package/dist/esm/keymaps/index.js +4 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -1
- package/dist/esm/link/ConfigureLinkOverlay/index.js +4 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -1
- package/dist/esm/link/LinkSearch/LinkSearchList.js +4 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -1
- package/dist/esm/media-inline/inline-image-card.js +4 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +4 -1
- package/dist/esm/media-inline/media-inline-image-card.js +4 -1
- package/dist/esm/media-inline/views/error-view.js +4 -1
- package/dist/esm/media-inline/views/frame.js +4 -1
- package/dist/esm/media-inline/views/icon-wrapper.js +4 -1
- package/dist/esm/media-inline/views/loading-view.js +4 -1
- package/dist/esm/media-single/CommentBadge.js +4 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +4 -1
- package/dist/esm/table/SortingIcon.js +4 -1
- package/dist/esm/ui/Caption/index.js +4 -1
- package/dist/esm/ui/DropList/index.js +5 -2
- package/dist/esm/ui/Expand/index.js +4 -1
- package/dist/esm/ui/FloatingToolbar/Separator.js +4 -1
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +4 -1
- package/dist/esm/ui/MediaSingle/index.js +4 -1
- package/dist/esm/ui/MediaSingle/styled.js +4 -1
- package/dist/esm/ui/Messages/index.js +4 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +4 -1
- package/dist/esm/ui/PanelTextInput/index.js +4 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -1
- package/dist/esm/ui/UnsupportedInline/index.js +4 -1
- package/dist/esm/ui/WidthProvider/index.js +4 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +4 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +4 -1
- package/dist/esm/ui-color/ColorPalette/index.js +4 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +4 -1
- package/dist/esm/ui-menu/DropdownContainer/index.js +4 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +4 -1
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -1
- package/dist/esm/ui-menu/ToolbarButton/index.js +4 -1
- package/dist/esm/utils/annotation/index.js +14 -0
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/analytics/types/element-events.d.ts +1 -0
- package/dist/types/element-browser/components/CategoryList.d.ts +4 -1
- package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +4 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +4 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +4 -1
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +4 -1
- package/dist/types/element-browser/hooks/use-container-width.d.ts +4 -1
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +4 -1
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +4 -1
- package/dist/types/extensibility/Extension/Lozenge/index.d.ts +4 -1
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +4 -1
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +4 -1
- package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +4 -1
- package/dist/types/keymaps/index.d.ts +4 -1
- package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +4 -1
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +4 -1
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -1
- package/dist/types/media-inline/inline-image-wrapper.d.ts +4 -1
- package/dist/types/media-inline/views/error-view.d.ts +4 -1
- package/dist/types/media-inline/views/frame.d.ts +4 -1
- package/dist/types/media-inline/views/icon-wrapper.d.ts +4 -1
- package/dist/types/media-inline/views/loading-view.d.ts +4 -1
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +4 -1
- package/dist/types/ui/Caption/index.d.ts +4 -1
- package/dist/types/ui/DropList/index.d.ts +4 -1
- package/dist/types/ui/FloatingToolbar/Separator.d.ts +4 -1
- package/dist/types/ui/FloatingToolbar/SmallerEditIcon.d.ts +4 -1
- package/dist/types/ui/MediaSingle/index.d.ts +4 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +4 -1
- package/dist/types/ui/Messages/index.d.ts +4 -1
- package/dist/types/ui/MultiBodiedExtension/index.d.ts +4 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +4 -1
- package/dist/types/ui/UnsupportedBlock/index.d.ts +4 -1
- package/dist/types/ui/UnsupportedInline/index.d.ts +4 -1
- package/dist/types/ui/WidthProvider/index.d.ts +4 -1
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +4 -1
- package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +4 -1
- package/dist/types/ui-color/ColorPalette/index.d.ts +4 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +4 -1
- package/dist/types/ui-menu/DropdownContainer/index.d.ts +4 -1
- package/dist/types/ui-menu/DropdownMenu/index.d.ts +4 -1
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +4 -1
- package/dist/types/utils/annotation/index.d.ts +2 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +1 -0
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +4 -1
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +4 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +4 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -1
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +4 -1
- package/dist/types-ts4.5/element-browser/hooks/use-container-width.d.ts +4 -1
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +4 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +4 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +4 -1
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +4 -1
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +4 -1
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +4 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +4 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/StyledButton.d.ts +4 -1
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +4 -1
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -1
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +4 -1
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +4 -1
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +4 -1
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +4 -1
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +4 -1
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +4 -1
- package/dist/types-ts4.5/ui/Caption/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +4 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/SmallerEditIcon.d.ts +4 -1
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +4 -1
- package/dist/types-ts4.5/ui/Messages/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +4 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +4 -1
- package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/package.json +5 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -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 = "86.
|
|
10
|
+
var packageVersion = "86.4.1";
|
|
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
|
|
@@ -2,7 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import React from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
6
9
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -6,7 +6,10 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
import React from 'react';
|
|
11
14
|
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,10 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
|
|
12
15
|
import { Component } from 'react';
|
|
13
16
|
|
|
@@ -17,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
20
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
21
|
import Layer from '../Layer';
|
|
19
22
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "86.
|
|
23
|
+
var packageVersion = "86.4.1";
|
|
21
24
|
var halfFocusRing = 1;
|
|
22
25
|
var dropOffset = '0, 8';
|
|
23
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -3,7 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _templateObject;
|
|
5
5
|
var _excluded = ["children"];
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
|
|
8
11
|
import React, { forwardRef } from 'react';
|
|
9
12
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
import React from 'react';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _excluded = ["children"];
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
|
|
7
10
|
import React from 'react';
|
|
8
11
|
|
|
@@ -8,7 +8,10 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
|
|
13
16
|
import { PureComponent } from 'react';
|
|
14
17
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React, { Fragment } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import React, { useContext } from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -16,7 +16,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
16
16
|
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; }
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/
|
|
20
23
|
import React, { PureComponent, useContext } from 'react';
|
|
21
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
25
|
import { css, jsx } from '@emotion/react';
|
|
@@ -3,7 +3,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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; }
|
|
4
4
|
// If you make any change here, copy it to above file as well
|
|
5
5
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
import React, { useCallback } from 'react';
|
|
8
11
|
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -140,4 +140,18 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
|
140
140
|
|
|
141
141
|
// This sorting is done to make human consumption easier (ie. in dev tools, test snapshots, analytics events, ...)
|
|
142
142
|
return _toConsumableArray(inlineNodeNames).sort();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/*
|
|
146
|
+
Get the annotations marks from the given position and add them to the original marks array if they exist.
|
|
147
|
+
Used with the creation of the inline nodes: emoji, status, dates, mentions & inlineCards.
|
|
148
|
+
*/
|
|
149
|
+
export function getAnnotationMarksForPos(pos) {
|
|
150
|
+
if (!fg('editor_inline_comments_paste_insert_nodes')) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
var annotationMarks = pos.marks().filter(function (mark) {
|
|
154
|
+
return mark.type === pos.doc.type.schema.marks.annotation;
|
|
155
|
+
});
|
|
156
|
+
return annotationMarks;
|
|
143
157
|
}
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
|
2
2
|
import { hasDocAsParent } from './document';
|
|
3
3
|
import { isEmptyParagraph } from './editor-core-utils';
|
|
4
4
|
export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
|
|
5
|
-
export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
|
|
5
|
+
export { getAnnotationMarksForPos, canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
|
|
6
6
|
export { getExtensionLozengeData } from './macro';
|
|
7
7
|
export { default as browser } from './browser';
|
|
8
8
|
export { default as ErrorReporter } from './error-reporter';
|
|
@@ -3,6 +3,7 @@ import type { TrackAEP, UIAEP } from './utils';
|
|
|
3
3
|
type ElementAttributes = {
|
|
4
4
|
nodeDepth: number;
|
|
5
5
|
nodeType: string;
|
|
6
|
+
inputMethod?: string;
|
|
6
7
|
};
|
|
7
8
|
type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
8
9
|
type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { type ButtonProps } from '@atlaskit/button';
|
|
5
8
|
export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
|