@atlaskit/editor-common 119.16.1 → 119.16.3
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 +29 -0
- package/dist/cjs/code-block/index.js +2 -2
- package/dist/cjs/doc-utils/editor-use-only.js +3 -3
- 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 +4 -4
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +2 -2
- package/dist/cjs/element-browser/components/ViewMore.js +4 -3
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -3
- package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +2 -2
- package/dist/cjs/extensibility/extensionNodeView.js +2 -2
- package/dist/cjs/extensions/extension-handlers.js +2 -2
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +4 -4
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +5 -5
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -3
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +2 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/cjs/mark/commands.js +2 -2
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-inline/views/error-view.js +2 -2
- package/dist/cjs/media-inline/views/loading-view.js +1 -1
- package/dist/cjs/media-single/CommentBadge.js +3 -3
- package/dist/cjs/media-single/CommentBadgeNext.js +2 -2
- package/dist/cjs/media-single/ExternalImageBadge.js +2 -2
- package/dist/cjs/media-single/MediaBadges.js +2 -2
- package/dist/cjs/monitoring/error.js +4 -4
- package/dist/cjs/preset/core-plugin/index.js +2 -2
- package/dist/cjs/quick-insert/utils.js +2 -2
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -2
- package/dist/cjs/react-node-view/index.js +36 -1
- package/dist/cjs/resizer/Resizer.js +2 -2
- package/dist/cjs/safe-plugin/index.js +2 -2
- package/dist/cjs/selection/getLocalIdsFromSelection.js +3 -3
- package/dist/cjs/styles/shared/table.js +2 -2
- package/dist/cjs/table/SortingIcon.js +2 -2
- package/dist/cjs/ui/DropList/index.js +4 -4
- package/dist/cjs/ui/FloatingToolbar/Button.js +3 -3
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -3
- package/dist/cjs/ui/Layer/index.js +4 -4
- package/dist/cjs/ui/MediaSingle/index.js +4 -4
- package/dist/cjs/ui/MediaSingle/styled.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +8 -6
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/cjs/utils/annotation/index.js +5 -5
- package/dist/cjs/utils/compareNodes.js +2 -2
- package/dist/cjs/utils/createRule.js +2 -2
- package/dist/cjs/utils/processRawValue.js +3 -3
- package/dist/cjs/utils/validator.js +6 -6
- package/dist/cjs/vanilla-tooltip/index.js +2 -2
- package/dist/es2019/code-block/index.js +1 -1
- package/dist/es2019/doc-utils/editor-use-only.js +2 -2
- package/dist/es2019/element-browser/components/CategoryList.js +1 -1
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/ViewMore.js +2 -1
- package/dist/es2019/element-browser/hooks/use-container-width.js +1 -1
- package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +1 -1
- package/dist/es2019/extensibility/extensionNodeView.js +1 -1
- package/dist/es2019/extensions/extension-handlers.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +2 -2
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/es2019/mark/commands.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-inline/views/error-view.js +1 -1
- package/dist/es2019/media-inline/views/loading-view.js +1 -1
- package/dist/es2019/media-single/CommentBadge.js +2 -2
- package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
- package/dist/es2019/media-single/ExternalImageBadge.js +1 -1
- package/dist/es2019/media-single/MediaBadges.js +1 -1
- package/dist/es2019/monitoring/error.js +2 -2
- package/dist/es2019/preset/core-plugin/index.js +1 -1
- package/dist/es2019/quick-insert/utils.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/es2019/react-node-view/index.js +34 -1
- package/dist/es2019/resizer/Resizer.js +1 -1
- package/dist/es2019/safe-plugin/index.js +1 -1
- package/dist/es2019/selection/getLocalIdsFromSelection.js +1 -1
- package/dist/es2019/styles/shared/table.js +1 -1
- package/dist/es2019/table/SortingIcon.js +1 -1
- package/dist/es2019/ui/DropList/index.js +2 -2
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/es2019/ui/Layer/index.js +2 -2
- package/dist/es2019/ui/MediaSingle/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui/WidthProvider/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -2
- package/dist/es2019/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/es2019/utils/annotation/index.js +1 -1
- package/dist/es2019/utils/compareNodes.js +1 -1
- package/dist/es2019/utils/createRule.js +1 -1
- package/dist/es2019/utils/processRawValue.js +1 -1
- package/dist/es2019/utils/validator.js +1 -1
- package/dist/es2019/vanilla-tooltip/index.js +1 -1
- package/dist/esm/code-block/index.js +1 -1
- package/dist/esm/doc-utils/editor-use-only.js +2 -2
- package/dist/esm/element-browser/components/CategoryList.js +1 -1
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/ViewMore.js +2 -1
- package/dist/esm/element-browser/hooks/use-container-width.js +1 -1
- package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +1 -1
- package/dist/esm/extensibility/extensionNodeView.js +1 -1
- package/dist/esm/extensions/extension-handlers.js +1 -1
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +2 -2
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/esm/mark/commands.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-inline/views/error-view.js +1 -1
- package/dist/esm/media-inline/views/loading-view.js +1 -1
- package/dist/esm/media-single/CommentBadge.js +2 -2
- package/dist/esm/media-single/CommentBadgeNext.js +1 -1
- package/dist/esm/media-single/ExternalImageBadge.js +1 -1
- package/dist/esm/media-single/MediaBadges.js +1 -1
- package/dist/esm/monitoring/error.js +2 -2
- package/dist/esm/preset/core-plugin/index.js +1 -1
- package/dist/esm/quick-insert/utils.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/react-node-view/index.js +36 -1
- package/dist/esm/resizer/Resizer.js +1 -1
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/getLocalIdsFromSelection.js +1 -1
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/table/SortingIcon.js +1 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +2 -2
- package/dist/esm/ui/MediaSingle/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui/WidthProvider/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +4 -2
- package/dist/esm/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/esm/utils/annotation/index.js +1 -1
- package/dist/esm/utils/compareNodes.js +1 -1
- package/dist/esm/utils/createRule.js +1 -1
- package/dist/esm/utils/processRawValue.js +1 -1
- package/dist/esm/utils/validator.js +1 -1
- package/dist/esm/vanilla-tooltip/index.js +1 -1
- package/dist/types/annotation/index.d.ts +1 -1
- package/dist/types/card/appearancePropsMap.d.ts +1 -1
- package/dist/types/card/types.d.ts +1 -1
- package/dist/types/collab/index.d.ts +2 -2
- package/dist/types/element-browser/components/CategoryList.d.ts +2 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +2 -1
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +2 -1
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +1 -1
- package/dist/types/lists/replace-content.d.ts +1 -1
- package/dist/types/media-inline/types.d.ts +1 -1
- package/dist/types/preset/core-plugin/requestDocument.d.ts +1 -1
- package/dist/types/react-node-view/index.d.ts +6 -0
- package/dist/types/resizer/Resizer.d.ts +1 -1
- package/dist/types/resizer/useBreakoutGuidelines.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +1 -1
- package/dist/types/types/editor-actions.d.ts +1 -1
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/floating-toolbar.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +1 -1
- package/dist/types/types/selection.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +2 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +1 -1
- package/dist/types/ui/Layer/internal/helpers.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/types.d.ts +1 -1
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/utils/editor-core-utils.d.ts +1 -1
- package/dist/types/utils/extractSliceFromStep.d.ts +1 -1
- package/dist/types/utils/filter/privacy-filter.d.ts +1 -1
- package/dist/types/utils/nodes.d.ts +1 -1
- package/dist/types/utils/page-element-counts.d.ts +1 -1
- package/dist/types/utils/stepHasSlice.d.ts +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
16
16
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
17
|
-
var
|
|
17
|
+
var _widthObserver = require("@atlaskit/width-detector/width-observer");
|
|
18
18
|
var _isSsr = require("../../core-utils/is-ssr");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
/**
|
|
@@ -115,7 +115,7 @@ var WidthProvider = exports.WidthProvider = function WidthProvider(_ref) {
|
|
|
115
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
116
116
|
,
|
|
117
117
|
className: className
|
|
118
|
-
}, !skipWidthDetection && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(
|
|
118
|
+
}, !skipWidthDetection && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_widthObserver.WidthObserver, {
|
|
119
119
|
setWidth: updateWidth,
|
|
120
120
|
offscreen: true
|
|
121
121
|
}), (0, _react2.jsx)(Provider, {
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
|
|
11
|
-
var
|
|
11
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
12
12
|
var _styles = require("./styles");
|
|
13
13
|
/**
|
|
14
14
|
* @jsxRuntime classic
|
|
@@ -47,7 +47,7 @@ var Color = function Color(props) {
|
|
|
47
47
|
e.preventDefault();
|
|
48
48
|
onKeyDown(value, label, e);
|
|
49
49
|
};
|
|
50
|
-
return (0, _react2.jsx)(
|
|
50
|
+
return (0, _react2.jsx)(_Tooltip.default, {
|
|
51
51
|
content: label
|
|
52
52
|
}, (0, _react2.jsx)("span", {
|
|
53
53
|
css: _styles.buttonWrapperStyle
|
|
@@ -12,12 +12,12 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
14
14
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
15
|
-
var
|
|
15
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
16
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
17
17
|
var _primitives = require("@atlaskit/primitives");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
|
-
var
|
|
20
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
21
21
|
var _analytics = require("../../analytics");
|
|
22
22
|
var _colorPickerButton = require("../../messages/color-picker-button");
|
|
23
23
|
var _uiColor = require("../../ui-color");
|
|
@@ -262,12 +262,12 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
262
262
|
};
|
|
263
263
|
return (0, _react2.jsx)("div", {
|
|
264
264
|
css: colorPickerButtonWrapper
|
|
265
|
-
}, (0, _react2.jsx)(
|
|
265
|
+
}, (0, _react2.jsx)(_Tooltip.default, {
|
|
266
266
|
content: title,
|
|
267
267
|
position: "top"
|
|
268
268
|
}, (0, _react2.jsx)("div", {
|
|
269
269
|
css: colorPickerButtonStyle
|
|
270
|
-
}, (0, _react2.jsx)(
|
|
270
|
+
}, (0, _react2.jsx)(_button.default, {
|
|
271
271
|
appearance: 'subtle',
|
|
272
272
|
ref: buttonRef,
|
|
273
273
|
"aria-label": title,
|
|
@@ -21,10 +21,12 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
21
21
|
var _react = _interopRequireWildcard(require("react"));
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
|
-
var
|
|
24
|
+
var _customItem = _interopRequireDefault(require("@atlaskit/menu/custom-item"));
|
|
25
|
+
var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
|
|
26
|
+
var _section = _interopRequireDefault(require("@atlaskit/menu/section"));
|
|
25
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
28
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
27
|
-
var
|
|
29
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
28
30
|
var _styles = require("../../styles");
|
|
29
31
|
var _ToolbarArrowKeyNavigationProvider = require("../../ui-menu/ToolbarArrowKeyNavigationProvider");
|
|
30
32
|
var _uiReact = require("../../ui-react");
|
|
@@ -213,10 +215,10 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
|
|
|
213
215
|
}
|
|
214
216
|
}), (0, _react2.jsx)("div", {
|
|
215
217
|
ref: this.popupRef
|
|
216
|
-
}, (0, _react2.jsx)(
|
|
218
|
+
}, (0, _react2.jsx)(_menuGroup.default, {
|
|
217
219
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
218
220
|
}, items.map(function (group, index) {
|
|
219
|
-
return (0, _react2.jsx)(
|
|
221
|
+
return (0, _react2.jsx)(_section.default, {
|
|
220
222
|
hasSeparator: (section === null || section === void 0 ? void 0 : section.hasSeparator) && index > 0,
|
|
221
223
|
title: section === null || section === void 0 ? void 0 : section.title
|
|
222
224
|
// Ignored via go/ees005
|
|
@@ -366,7 +368,7 @@ function DropdownMenuItem(_ref) {
|
|
|
366
368
|
"aria-disabled": item.isDisabled ? 'true' : 'false',
|
|
367
369
|
"aria-expanded": (0, _expValEquals.expValEquals)('platform_editor_august_a11y', 'isEnabled', true) ? item['aria-expanded'] : undefined,
|
|
368
370
|
onMouseDown: _handleSubmenuActive
|
|
369
|
-
}, (0, _react2.jsx)(
|
|
371
|
+
}, (0, _react2.jsx)(_customItem.default, {
|
|
370
372
|
item: item,
|
|
371
373
|
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
372
374
|
testId: testId,
|
|
@@ -386,7 +388,7 @@ function DropdownMenuItem(_ref) {
|
|
|
386
388
|
}, item.content));
|
|
387
389
|
if (item.tooltipDescription) {
|
|
388
390
|
var _item$key3;
|
|
389
|
-
return (0, _react2.jsx)(
|
|
391
|
+
return (0, _react2.jsx)(_Tooltip.default, {
|
|
390
392
|
key: (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : String(item.content),
|
|
391
393
|
content: item.tooltipDescription,
|
|
392
394
|
position: item.tooltipPosition
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _types = require("@atlaskit/analytics-listeners/types");
|
|
13
|
-
var
|
|
13
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
14
14
|
var _analytics = require("../../analytics");
|
|
15
15
|
var _keymaps = require("../../keymaps");
|
|
16
16
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -118,7 +118,7 @@ var ToolbarButton = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
118
118
|
description: title,
|
|
119
119
|
keymap: keymap
|
|
120
120
|
});
|
|
121
|
-
return (0, _react2.jsx)(
|
|
121
|
+
return (0, _react2.jsx)(_Tooltip.default, {
|
|
122
122
|
content: tooltipContent,
|
|
123
123
|
hideTooltipOnClick: true,
|
|
124
124
|
position: titlePosition
|
|
@@ -16,7 +16,7 @@ exports.isEmptyTextSelection = isEmptyTextSelection;
|
|
|
16
16
|
exports.isEmptyTextSelectionRenderer = isEmptyTextSelectionRenderer;
|
|
17
17
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
18
18
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
19
|
-
var
|
|
19
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
20
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
21
21
|
|
|
22
22
|
var canApplyAnnotationOnRange = exports.canApplyAnnotationOnRange = function canApplyAnnotationOnRange(rangeSelection, doc, schema) {
|
|
@@ -35,7 +35,7 @@ var canApplyAnnotationOnRange = exports.canApplyAnnotationOnRange = function can
|
|
|
35
35
|
// For block elements or text nodes, we want to check
|
|
36
36
|
// if annotations are allowed inside this tree
|
|
37
37
|
// or if we're leaf and not text
|
|
38
|
-
if ((0,
|
|
38
|
+
if ((0, _fg.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
39
39
|
var isAllowedInlineNode = ['emoji', 'status', 'date', 'mention', 'inlineCard'].includes(node.type.name);
|
|
40
40
|
if (node.isInline && !node.isText && !isAllowedInlineNode || node.isLeaf && !node.isText && !isAllowedInlineNode || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
|
|
41
41
|
foundInvalid = true;
|
|
@@ -109,7 +109,7 @@ function containsAnyAnnotations(slice, state) {
|
|
|
109
109
|
function getRangeInlineNodeNames(_ref) {
|
|
110
110
|
var doc = _ref.doc,
|
|
111
111
|
pos = _ref.pos;
|
|
112
|
-
if (!(0,
|
|
112
|
+
if (!(0, _fg.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
113
113
|
return undefined;
|
|
114
114
|
}
|
|
115
115
|
var nodeNames = new Set();
|
|
@@ -138,7 +138,7 @@ function getRangeInlineNodeNames(_ref) {
|
|
|
138
138
|
function getRangeAncestorNodeNames(_ref2) {
|
|
139
139
|
var doc = _ref2.doc,
|
|
140
140
|
pos = _ref2.pos;
|
|
141
|
-
if (!(0,
|
|
141
|
+
if (!(0, _fg.fg)('cc_comments_log_draft_annotation_ancestor_nodes')) {
|
|
142
142
|
return undefined;
|
|
143
143
|
}
|
|
144
144
|
var nodeNames = new Set();
|
|
@@ -197,7 +197,7 @@ function getRangeAncestorNodeNames(_ref2) {
|
|
|
197
197
|
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
198
198
|
*/
|
|
199
199
|
function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
200
|
-
if (!(0,
|
|
200
|
+
if (!(0, _fg.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
201
201
|
return undefined;
|
|
202
202
|
}
|
|
203
203
|
var mark = state.schema.marks.annotation.create({
|
|
@@ -14,7 +14,7 @@ exports.createCompareNodes = void 0;
|
|
|
14
14
|
exports.createNormalizeTextParser = createNormalizeTextParser;
|
|
15
15
|
exports.extractMetaFromTextNode = extractMetaFromTextNode;
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
var
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _types = require("../types");
|
|
19
19
|
var _ContentType = require("./ContentType");
|
|
20
20
|
function getLinkMark(node) {
|
|
@@ -238,7 +238,7 @@ function compareMetaFromNode(metaNodeA, metaNodeB) {
|
|
|
238
238
|
if (metaNodeA === null || metaNodeB === null) {
|
|
239
239
|
return metaNodeB === null ? -1 : 1;
|
|
240
240
|
}
|
|
241
|
-
if ((0,
|
|
241
|
+
if ((0, _fg.fg)('platform_editor_fix_mixed_types_column_sort')) {
|
|
242
242
|
if (metaNodeA.type === _ContentType.ContentType.TEXT && metaNodeB.type === _ContentType.ContentType.NUMBER || metaNodeA.type === _ContentType.ContentType.NUMBER && metaNodeB.type === _ContentType.ContentType.TEXT) {
|
|
243
243
|
return compareValue(String(metaNodeA.value), String(metaNodeB.value));
|
|
244
244
|
}
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createRule = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _closeHistory = require("@atlaskit/prosemirror-history/closeHistory");
|
|
8
8
|
var createRule = exports.createRule = function createRule(match, handler) {
|
|
9
9
|
var allowsBackwardMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
10
10
|
return {
|
|
11
11
|
match: match,
|
|
12
12
|
handler: handler,
|
|
13
13
|
onHandlerApply: function onHandlerApply(_state, tr) {
|
|
14
|
-
(0,
|
|
14
|
+
(0, _closeHistory.closeHistory)(tr);
|
|
15
15
|
},
|
|
16
16
|
allowsBackwardMatch: allowsBackwardMatch
|
|
17
17
|
};
|
|
@@ -13,7 +13,7 @@ exports.processRawValue = processRawValue;
|
|
|
13
13
|
exports.processRawValueWithoutValidation = processRawValueWithoutValidation;
|
|
14
14
|
var _transforms = require("@atlaskit/adf-utils/transforms");
|
|
15
15
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
16
|
-
var
|
|
16
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
17
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
18
|
var _analytics = require("../analytics");
|
|
19
19
|
var _isNestedTablesSupported = require("../nesting/isNestedTablesSupported");
|
|
@@ -146,7 +146,7 @@ function processRawValueWithoutValidation(schema, value, dispatchAnalyticsEvent)
|
|
|
146
146
|
if (result.isTransformed && result.transformedAdf) {
|
|
147
147
|
transformedAdf = result.transformedAdf;
|
|
148
148
|
}
|
|
149
|
-
if ((0,
|
|
149
|
+
if ((0, _fg.fg)('platform_editor_panel_c1_fallback_transform')) {
|
|
150
150
|
var panelC1Result = runPanelC1FallbackTransform(schema, transformedAdf);
|
|
151
151
|
if (panelC1Result.isTransformed && panelC1Result.transformedAdf) {
|
|
152
152
|
transformedAdf = panelC1Result.transformedAdf;
|
|
@@ -326,7 +326,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
if ((0,
|
|
329
|
+
if ((0, _fg.fg)('platform_editor_panel_c1_fallback_transform')) {
|
|
330
330
|
var panelC1Result = runPanelC1FallbackTransform(schema, transformedAdf);
|
|
331
331
|
if (panelC1Result.isTransformed && panelC1Result.transformedAdf) {
|
|
332
332
|
transformedAdf = panelC1Result.transformedAdf;
|
|
@@ -33,7 +33,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
33
33
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
34
34
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
35
35
|
var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
|
|
36
|
-
var
|
|
36
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
37
37
|
var _isSubSupType = require("./isSubSupType");
|
|
38
38
|
var _markOrder = require("./markOrder");
|
|
39
39
|
var _ADFStages = require("./ADFStages");
|
|
@@ -277,7 +277,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
277
277
|
return _objectSpread({
|
|
278
278
|
type: type,
|
|
279
279
|
attrs: attrs
|
|
280
|
-
}, (0,
|
|
280
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? {
|
|
281
281
|
marks: marks
|
|
282
282
|
} : {});
|
|
283
283
|
}
|
|
@@ -289,7 +289,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
289
289
|
return _objectSpread({
|
|
290
290
|
type: type,
|
|
291
291
|
attrs: attrs
|
|
292
|
-
}, (0,
|
|
292
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? {
|
|
293
293
|
marks: marks
|
|
294
294
|
} : {});
|
|
295
295
|
}
|
|
@@ -301,7 +301,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
301
301
|
return _objectSpread({
|
|
302
302
|
type: type,
|
|
303
303
|
attrs: attrs
|
|
304
|
-
}, (0,
|
|
304
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? {
|
|
305
305
|
marks: marks
|
|
306
306
|
} : {});
|
|
307
307
|
}
|
|
@@ -324,7 +324,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
324
324
|
return _objectSpread({
|
|
325
325
|
type: type,
|
|
326
326
|
attrs: attrs
|
|
327
|
-
}, (0,
|
|
327
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? {
|
|
328
328
|
marks: marks
|
|
329
329
|
} : {});
|
|
330
330
|
}
|
|
@@ -535,7 +535,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
535
535
|
text: mentionText,
|
|
536
536
|
accessLevel: ''
|
|
537
537
|
}
|
|
538
|
-
}, (0,
|
|
538
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? {
|
|
539
539
|
marks: marks
|
|
540
540
|
} : {});
|
|
541
541
|
if (mentionAccess) {
|
|
@@ -10,7 +10,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _core = require("@popperjs/core");
|
|
12
12
|
var _bindEventListener = require("bind-event-listener");
|
|
13
|
-
var
|
|
13
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _unsafeImperative = require("@atlaskit/popper/unsafe-imperative");
|
|
15
15
|
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; }
|
|
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) { (0, _defineProperty2.default)(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; }
|
|
@@ -27,7 +27,7 @@ var endingOffset = {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
function getCreatePopper() {
|
|
30
|
-
if ((0,
|
|
30
|
+
if ((0, _fg.fg)('platform-dst-popper-consolidation')) {
|
|
31
31
|
return _unsafeImperative.createPopper;
|
|
32
32
|
}
|
|
33
33
|
return _core.createPopper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
2
|
import { uuid } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
7
|
import { mapSlice } from '../utils/slice';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Link from '@atlaskit/link';
|
|
4
|
-
import SectionMessage from '@atlaskit/section-message';
|
|
3
|
+
import Link from '@atlaskit/link/link';
|
|
4
|
+
import SectionMessage from '@atlaskit/section-message/message';
|
|
5
5
|
function AlternativePackagesMessage({
|
|
6
6
|
alternatePackages
|
|
7
7
|
}) {
|
|
@@ -8,7 +8,7 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
13
13
|
import { DEVICE_BREAKPOINT_NUMBERS } from '../constants';
|
|
14
14
|
import useFocus from '../hooks/use-focus';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
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 Loadable from 'react-loadable';
|
|
10
|
-
import Spinner from '@atlaskit/spinner';
|
|
10
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
11
|
const spinnerContainer = css({
|
|
12
12
|
display: 'flex',
|
|
13
13
|
alignItems: 'center',
|
|
@@ -14,10 +14,10 @@ import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
|
14
14
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
15
15
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
16
16
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
17
|
-
import
|
|
17
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
18
18
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
20
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
21
21
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
22
22
|
import { IconFallback } from '../../../quick-insert';
|
|
23
23
|
import { ELEMENT_ITEM_HEIGHT, ELEMENT_ITEM_PADDING, ELEMENT_LIST_PADDING, SCROLLBAR_WIDTH } from '../../constants';
|
|
@@ -7,7 +7,7 @@ import { useEffect, useRef } from 'react';
|
|
|
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 { FormattedMessage } from 'react-intl';
|
|
10
|
-
import
|
|
10
|
+
import LinkButton from '@atlaskit/button/link';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
13
13
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
@@ -12,7 +12,7 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
12
12
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import Textfield from '@atlaskit/textfield';
|
|
15
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
16
16
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
17
17
|
import useFocus from '../hooks/use-focus';
|
|
18
18
|
import commonMessages from '../messages';
|
|
@@ -5,7 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useEffect, useRef } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
8
|
-
import
|
|
8
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
9
|
+
import Section from '@atlaskit/menu/section';
|
|
9
10
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import { toolbarInsertBlockMessages } from '../../messages/insert-block';
|
|
11
12
|
const styles = {
|
|
@@ -6,7 +6,7 @@ import React, { memo, useEffect, useRef, useState } from 'react';
|
|
|
6
6
|
|
|
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
|
-
import { WidthObserver } from '@atlaskit/width-detector';
|
|
9
|
+
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useReducer, useRef } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { ACTIONS } from './ACTIONS';
|
|
4
4
|
import { ensureSafeIndex } from './ensureSafeIndex'; /**
|
|
5
5
|
* a custom hook that handles keyboard navigation for Arrow keys based on a
|
|
@@ -9,7 +9,7 @@ import React, { Fragment } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
15
15
|
import { NodeViewContentHole } from '../../../react-node-view/NodeViewContentHole';
|
|
@@ -13,7 +13,7 @@ import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
16
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
17
|
const containerStyles = css({
|
|
18
18
|
textAlign: 'left',
|
|
19
19
|
zIndex: 1,
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import React, { Component, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import memoizeOne from 'memoize-one';
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensions';
|
|
9
9
|
import { getExtensionRenderer, nodeToJSON, toJSON } from '../utils';
|
|
10
10
|
import Extension from './Extension/Extension';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { isSSR } from '../core-utils';
|
|
6
6
|
import ReactNodeView from '../react-node-view';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { getExtensionKeyAndNodeKey, resolveImport } from './manifest-helpers';
|
|
6
6
|
import { messages } from './messages';
|
|
7
7
|
import { resolveImportSync } from './resolveImportSync';
|
|
@@ -9,8 +9,8 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
10
|
|
|
11
11
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
12
|
-
import
|
|
13
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
13
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { messages } from '../floating-toolbar';
|
|
15
15
|
const labelStyles = css({
|
|
16
16
|
display: 'inline-block',
|
|
@@ -8,7 +8,9 @@ import { useCallback } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
|
-
import DropdownMenu
|
|
11
|
+
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
12
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
13
|
+
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
|
|
12
14
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
13
15
|
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
14
16
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import Button from '@atlaskit/button';
|
|
8
|
+
import Button from '@atlaskit/button/button';
|
|
9
9
|
const buttonStyles = css({
|
|
10
10
|
display: 'flex',
|
|
11
11
|
background: "var(--ds-background-neutral, #0515240F)",
|
|
@@ -9,7 +9,7 @@ import { useIntl } from 'react-intl';
|
|
|
9
9
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
10
10
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { cardMessages } from '../../messages';
|
|
14
14
|
import Dropdown from './Dropdown';
|
|
15
15
|
import { StyledButton } from './StyledButton';
|
|
@@ -20,7 +20,7 @@ import PageObject from '@atlaskit/object/page';
|
|
|
20
20
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
21
21
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
22
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
23
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
24
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
|
|
25
25
|
import { Announcer, PanelTextInput } from '../../../ui';
|
|
26
26
|
import { normalizeUrl } from '../../../utils';
|
|
@@ -6,7 +6,7 @@ import PageObject from '@atlaskit/object/page';
|
|
|
6
6
|
import StoryObject from '@atlaskit/object/story';
|
|
7
7
|
import TaskObject from '@atlaskit/object/task';
|
|
8
8
|
import WorkItemObject from '@atlaskit/object/work-item';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { utilMessages } from './utilMessages';
|
|
11
11
|
const Issue16 = props => {
|
|
12
12
|
const {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import Spinner from '@atlaskit/spinner';
|
|
9
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
10
|
import ForwardedLinkSearchListItemNextWithIntl from './LinkSearchListItem';
|
|
11
11
|
const listContainer = css({
|
|
12
12
|
paddingTop: 0,
|
|
@@ -2,7 +2,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
2
2
|
// eslint-disable-next-line no-duplicate-imports
|
|
3
3
|
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { entireSelectionContainsMark } from './entireSelectionContainsMark';
|
|
7
7
|
const SMART_TO_ASCII = {
|
|
8
8
|
'…': '...',
|
|
@@ -8,7 +8,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
10
|
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
11
|
-
import { MediaImage } from '@atlaskit/media-ui';
|
|
11
|
+
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
14
14
|
export const InlineImageCard = ({
|
|
@@ -11,7 +11,7 @@ import { createIntl, injectIntl } from 'react-intl';
|
|
|
11
11
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
12
12
|
import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardError } from '@atlaskit/media-card';
|
|
13
13
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
14
|
-
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
14
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
15
15
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { Frame } from './frame';
|
|
11
11
|
import { IconWrapper } from './icon-wrapper';
|
|
12
12
|
export const InlineImageCardErrorView = ({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import Spinner from '@atlaskit/spinner';
|
|
8
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
9
9
|
import { ICON_SIZE_THRESOLD } from './constants';
|
|
10
10
|
import { Frame } from './frame';
|
|
11
11
|
export const InlineImageCardLoadingView = ({
|