@atlaskit/editor-core 194.3.11 → 194.3.14
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 +22 -0
- package/dist/cjs/composable-editor/editor-internal.js +4 -1
- package/dist/cjs/composable-editor/editor.js +4 -1
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +4 -1
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +4 -1
- package/dist/cjs/editor.js +4 -1
- package/dist/cjs/presets/default.js +3 -8
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +4 -1
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -1
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +4 -1
- package/dist/cjs/ui/Appearance/Chromeless.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -1
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +4 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +4 -1
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -1
- package/dist/cjs/ui/ChromeCollapsed/index.js +4 -1
- package/dist/cjs/ui/ContentStyles/index.js +4 -1
- package/dist/cjs/ui/ContextPanel/index.js +4 -1
- package/dist/cjs/ui/PluginSlot/index.js +4 -1
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +4 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +4 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +4 -1
- package/dist/cjs/ui/WithFlash/index.js +4 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -1
- package/dist/es2019/composable-editor/editor.js +4 -1
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +4 -1
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +4 -1
- package/dist/es2019/editor.js +4 -1
- package/dist/es2019/presets/default.js +3 -8
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +4 -1
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +4 -1
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/es2019/ui/Addon/Dropdown/index.js +4 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +4 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -1
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +4 -1
- package/dist/es2019/ui/ChromeCollapsed/index.js +4 -1
- package/dist/es2019/ui/ContentStyles/index.js +4 -1
- package/dist/es2019/ui/ContextPanel/index.js +4 -1
- package/dist/es2019/ui/PluginSlot/index.js +4 -1
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +4 -1
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +4 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +4 -1
- package/dist/es2019/ui/WithFlash/index.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +4 -1
- package/dist/esm/composable-editor/editor.js +4 -1
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +4 -1
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +4 -1
- package/dist/esm/editor.js +4 -1
- package/dist/esm/presets/default.js +3 -8
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +4 -1
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +4 -1
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/esm/ui/Addon/Dropdown/index.js +4 -1
- package/dist/esm/ui/Appearance/Chromeless.js +4 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +4 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +4 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -1
- package/dist/esm/ui/AppearanceComponents/Mobile.js +4 -1
- package/dist/esm/ui/ChromeCollapsed/index.js +4 -1
- package/dist/esm/ui/ContentStyles/index.js +4 -1
- package/dist/esm/ui/ContextPanel/index.js +4 -1
- package/dist/esm/ui/PluginSlot/index.js +4 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +4 -1
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +4 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +4 -1
- package/dist/esm/ui/WithFlash/index.js +4 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +4 -1
- package/dist/types/create-editor/create-preset.d.ts +12 -12
- package/dist/types/editor.d.ts +4 -1
- package/dist/types/presets/default.d.ts +15 -14
- package/dist/types/presets/universal.d.ts +12 -12
- package/dist/types/presets/useUniversalPreset.d.ts +12 -12
- package/dist/types/ui/Addon/ClickAreaInline/index.d.ts +4 -1
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +4 -1
- package/dist/types/ui/Addon/Dropdown/index.d.ts +4 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +4 -1
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +4 -1
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +4 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +4 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +4 -1
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +4 -1
- package/dist/types/ui/ChromeCollapsed/index.d.ts +4 -1
- package/dist/types/ui/ContentStyles/index.d.ts +4 -1
- package/dist/types/ui/ContextPanel/index.d.ts +4 -1
- package/dist/types/ui/PluginSlot/index.d.ts +4 -1
- package/dist/types/ui/Toolbar/ToolbarInner.d.ts +4 -1
- package/dist/types/ui/WithFlash/index.d.ts +4 -1
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +4 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +12 -12
- package/dist/types-ts4.5/editor.d.ts +4 -1
- package/dist/types-ts4.5/presets/default.d.ts +15 -14
- package/dist/types-ts4.5/presets/universal.d.ts +12 -12
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +12 -12
- package/dist/types-ts4.5/ui/Addon/ClickAreaInline/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +4 -1
- package/dist/types-ts4.5/ui/AppearanceComponents/Mobile.d.ts +4 -1
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/Toolbar/ToolbarInner.d.ts +4 -1
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +4 -1
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.3.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122612)
|
|
8
|
+
[`01a85ce0a88ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01a85ce0a88ec) -
|
|
9
|
+
[ux] ED-23705 Add logic to handle annotations on inline nodes when they are inserted or pasted.
|
|
10
|
+
Covers the following inline nodes: emoji, status, mention, date, inlineCard
|
|
11
|
+
- [#122977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122977)
|
|
12
|
+
[`41748db2c12de`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/41748db2c12de) -
|
|
13
|
+
[ux]ED-24225 add wrap button inside editor-plugin-block
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 194.3.12
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#122243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122243)
|
|
21
|
+
[`b1d7c5ade9b3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b1d7c5ade9b3a) -
|
|
22
|
+
[ux] EDF-91 Removed platform.editor.enable-selection-toolbar_ucdwd feature flag and enabled
|
|
23
|
+
bydefault.
|
|
24
|
+
|
|
3
25
|
## 194.3.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -24,7 +24,10 @@ var _RenderTracking = require("../utils/performance/components/RenderTracking");
|
|
|
24
24
|
var _useProviders = require("./hooks/useProviders");
|
|
25
25
|
var _getBaseFontSize = require("./utils/getBaseFontSize");
|
|
26
26
|
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; }
|
|
27
|
-
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
|
+
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; } /**
|
|
28
|
+
* @jsxRuntime classic
|
|
29
|
+
* @jsx jsx
|
|
30
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
31
|
/**
|
|
29
32
|
* EditorInternalComponent is used to capture the common component
|
|
30
33
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
@@ -29,7 +29,10 @@ var _useMemoEditorProps = _interopRequireDefault(require("./hooks/useMemoEditorP
|
|
|
29
29
|
var _useProviderFactory = _interopRequireDefault(require("./hooks/useProviderFactory"));
|
|
30
30
|
var _sendDurationAnalytics = _interopRequireDefault(require("./utils/sendDurationAnalytics"));
|
|
31
31
|
var _trackEditorActions = _interopRequireDefault(require("./utils/trackEditorActions"));
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* @jsxRuntime classic
|
|
34
|
+
* @jsx jsx
|
|
35
|
+
*/
|
|
33
36
|
|
|
34
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
35
38
|
|
|
@@ -10,7 +10,10 @@ var _performanceMeasures = require("@atlaskit/editor-common/performance-measures
|
|
|
10
10
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
11
11
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
12
12
|
var _editorMeasureTTICallback = _interopRequireDefault(require("../utils/editorMeasureTTICallback"));
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
*
|
|
@@ -11,7 +11,10 @@ var _performanceMeasures = require("@atlaskit/editor-common/performance-measures
|
|
|
11
11
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
12
12
|
var _sendDurationAnalytics = _interopRequireDefault(require("../utils/sendDurationAnalytics"));
|
|
13
13
|
var _useEditorMeasuresConstructor = _interopRequireDefault(require("./useEditorMeasuresConstructor"));
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
*
|
package/dist/cjs/editor.js
CHANGED
|
@@ -18,7 +18,10 @@ var _composableEditor = require("./composable-editor");
|
|
|
18
18
|
var _useUniversalPreset = _interopRequireDefault(require("./presets/useUniversalPreset"));
|
|
19
19
|
var _editorDeprecationWarnings = _interopRequireDefault(require("./utils/editorDeprecationWarnings"));
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
22
|
+
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
24
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
25
|
var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
|
|
23
26
|
var props = _ref.props;
|
|
24
27
|
var preset = (0, _useUniversalPreset.default)({
|
|
@@ -60,14 +60,9 @@ function createDefaultPreset(options) {
|
|
|
60
60
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
61
61
|
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_primaryToolbar.primaryToolbarPlugin, function () {
|
|
62
62
|
return !!(0, _platformFeatureFlags.fg)('platform.editor.primary-toolbar-ordering');
|
|
63
|
-
}).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).
|
|
64
|
-
preferenceToolbarAboveSelection:
|
|
65
|
-
}],
|
|
66
|
-
if ((0, _platformFeatureFlags.fg)('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
return false;
|
|
70
|
-
}).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
63
|
+
}).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_selectionToolbar.selectionToolbarPlugin, {
|
|
64
|
+
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
65
|
+
}]).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
71
66
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
72
67
|
__livePage: options.__livePage
|
|
73
68
|
})]).add([_textFormatting.textFormattingPlugin, options.textFormatting]).add(_width.widthPlugin).add([_quickInsert.quickInsertPlugin, options.quickInsert]).add([_placeholder.placeholderPlugin, options.placeholder]).add(_unsupportedContent.unsupportedContentPlugin).add(_editorDisabled.editorDisabledPlugin).add([_submitEditor.submitEditorPlugin, options.submitEditor]).add(_copyButton.copyButtonPlugin).add(_floatingToolbar.floatingToolbarPlugin).add([_selection.selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
|
|
@@ -8,7 +8,10 @@ exports.default = exports.ClickAreaBlock = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _clickAreaHelper = require("../click-area-helper");
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
|
|
@@ -8,7 +8,10 @@ exports.default = exports.ClickAreaInline = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _commands = require("@atlaskit/editor-common/commands");
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
|
|
@@ -16,7 +16,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _clickAreaHelper = require("../click-area-helper");
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
23
|
/**
|
|
21
24
|
* Fills the visible viewport height so that it can filter
|
|
22
25
|
* clicks/taps within or below the content (e.g. if the content
|
|
@@ -16,7 +16,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _styles = require("./styles");
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
23
|
var DropdownWrapper = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
21
24
|
(0, _inherits2.default)(DropdownWrapper, _React$Component);
|
|
22
25
|
var _super = _createSuper(DropdownWrapper);
|
|
@@ -24,7 +24,10 @@ var _WithFlash = _interopRequireDefault(require("../WithFlash"));
|
|
|
24
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
28
|
+
* @jsxRuntime classic
|
|
29
|
+
* @jsx jsx
|
|
30
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
31
|
var chromelessEditorStyles = (0, _react2.css)({
|
|
29
32
|
lineHeight: '20px',
|
|
30
33
|
height: 'auto',
|
|
@@ -32,7 +32,10 @@ var _WithFlash = _interopRequireDefault(require("../../WithFlash"));
|
|
|
32
32
|
var _Toolbar2 = require("./Toolbar");
|
|
33
33
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
34
34
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
35
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* @jsxRuntime classic
|
|
37
|
+
* @jsx jsx
|
|
38
|
+
*/
|
|
36
39
|
|
|
37
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
38
41
|
|
|
@@ -14,7 +14,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
* @jsx jsx
|
|
20
|
+
*/
|
|
18
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BeforePrimaryToolbarWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
@@ -18,7 +18,10 @@ var _FullPageToolbar = require("./FullPageToolbar");
|
|
|
18
18
|
var _StyledComponents = require("./StyledComponents");
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
24
|
+
*/
|
|
22
25
|
|
|
23
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
27
|
|
|
@@ -17,7 +17,10 @@ var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
|
|
|
17
17
|
var _StyledComponents = require("./StyledComponents");
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
* @jsx jsx
|
|
23
|
+
*/
|
|
21
24
|
|
|
22
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
26
|
|
|
@@ -20,7 +20,10 @@ var _BeforeWrapper = require("./BeforeWrapper");
|
|
|
20
20
|
var _MainToolbar = require("./MainToolbar");
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* @jsxRuntime classic
|
|
25
|
+
* @jsx jsx
|
|
26
|
+
*/
|
|
24
27
|
|
|
25
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
29
|
|
|
@@ -15,7 +15,10 @@ var _ContentStyles = require("../ContentStyles");
|
|
|
15
15
|
var _WithFlash = _interopRequireDefault(require("../WithFlash"));
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
21
|
+
*/
|
|
19
22
|
|
|
20
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
24
|
|
|
@@ -21,7 +21,10 @@ var _styles = require("./styles");
|
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
25
|
+
* @jsxRuntime classic
|
|
26
|
+
* @jsx jsx
|
|
27
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
28
|
var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
26
29
|
(0, _inherits2.default)(ChromeCollapsed, _PureComponent);
|
|
27
30
|
var _super = _createSuper(ChromeCollapsed);
|
|
@@ -40,7 +40,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
40
40
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
41
41
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
42
42
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* @jsxRuntime classic
|
|
45
|
+
* @jsx jsx
|
|
46
|
+
*/
|
|
44
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
45
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
46
49
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -33,7 +33,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
33
33
|
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; }
|
|
34
34
|
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; }
|
|
35
35
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
36
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
37
|
+
* @jsxRuntime classic
|
|
38
|
+
* @jsx jsx
|
|
39
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
37
40
|
var ANIM_SPEED_MS = 500;
|
|
38
41
|
var EDITOR_WIDTH = _editorSharedStyles.akEditorDefaultLayoutWidth + _editorSharedStyles.akEditorBreakoutPadding;
|
|
39
42
|
var WIDE_EDITOR_WIDTH = _editorSharedStyles.akEditorWideLayoutWidth + _editorSharedStyles.akEditorBreakoutPadding;
|
|
@@ -19,7 +19,10 @@ var _utils = require("../../utils");
|
|
|
19
19
|
var _ErrorBoundary = require("../ErrorBoundary");
|
|
20
20
|
var _mountPluginHooks = require("./mount-plugin-hooks");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
23
|
+
* @jsxRuntime classic
|
|
24
|
+
* @jsx jsx
|
|
25
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
26
|
var pluginsComponentsWrapper = (0, _react2.css)({
|
|
24
27
|
display: 'flex'
|
|
25
28
|
});
|
|
@@ -15,7 +15,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
21
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
22
|
var toolbarComponentsWrapper = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
23
|
display: 'flex'
|
|
21
24
|
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
|
|
@@ -20,7 +20,10 @@ var _toolbarSize = require("./toolbar-size");
|
|
|
20
20
|
var _types = require("./types");
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* @jsxRuntime classic
|
|
25
|
+
* @jsx jsx
|
|
26
|
+
*/
|
|
24
27
|
|
|
25
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
29
|
|
|
@@ -33,7 +33,10 @@ var _styles = require("./styles");
|
|
|
33
33
|
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; }
|
|
34
34
|
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; }
|
|
35
35
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
36
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
37
|
+
* @jsxRuntime classic
|
|
38
|
+
* @jsx jsx
|
|
39
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
37
40
|
var PopupWithOutsideListeners = (0, _uiReact.withReactEditorViewOuterListeners)(_ui.Popup);
|
|
38
41
|
var POPUP_HEIGHT = 388;
|
|
39
42
|
var POPUP_WIDTH = 280;
|
|
@@ -16,7 +16,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
23
|
var pulseBackground = (0, _react2.keyframes)({
|
|
21
24
|
'50%': {
|
|
22
25
|
backgroundColor: "var(--ds-blanket-danger, ".concat(_colors.R100, ")")
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { Fragment, memo, useCallback } 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 _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useCallback, useMemo, useRef } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
package/dist/es2019/editor.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
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
|
|
@@ -50,14 +50,9 @@ export function createDefaultPreset(options) {
|
|
|
50
50
|
isFullPage
|
|
51
51
|
}]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
52
52
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
53
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!fg('platform.editor.primary-toolbar-ordering')).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).
|
|
54
|
-
preferenceToolbarAboveSelection:
|
|
55
|
-
}],
|
|
56
|
-
if (fg('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
}).add([hyperlinkPlugin, {
|
|
53
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!fg('platform.editor.primary-toolbar-ordering')).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
54
|
+
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
55
|
+
}]).add([hyperlinkPlugin, {
|
|
61
56
|
...options.hyperlinkOptions,
|
|
62
57
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
63
58
|
__livePage: options.__livePage
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|