@atlaskit/editor-core 189.1.5 → 189.1.6
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 +6 -0
- package/dist/cjs/plugins/panel/toolbar.js +3 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/panel/toolbar.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/panel/toolbar.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/nodeviews/getPerformanceOptions.js +0 -24
- package/dist/cjs/plugins/analytics/types/experimental-events.js +0 -5
- package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -8
- package/dist/cjs/ui/ColorPalette/Palettes/common.js +0 -12
- package/dist/cjs/ui/ColorPalette/Palettes/index.js +0 -12
- package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +0 -8
- package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -18
- package/dist/cjs/ui/ColorPalette/Palettes/statusColorPalette.js +0 -18
- package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +0 -12
- package/dist/cjs/ui/ColorPalette/Palettes/type.js +0 -5
- package/dist/cjs/ui/ColorPalette/index.js +0 -32
- package/dist/cjs/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -19
- package/dist/cjs/utils/is-text-input.js +0 -22
- package/dist/es2019/nodeviews/getPerformanceOptions.js +0 -2
- package/dist/es2019/plugins/analytics/types/experimental-events.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -2
- package/dist/es2019/ui/ColorPalette/Palettes/common.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/index.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/paletteMessages.js +0 -2
- package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/statusColorPalette.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +0 -1
- package/dist/es2019/ui/ColorPalette/Palettes/type.js +0 -1
- package/dist/es2019/ui/ColorPalette/index.js +0 -3
- package/dist/es2019/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -13
- package/dist/es2019/utils/is-text-input.js +0 -16
- package/dist/esm/nodeviews/getPerformanceOptions.js +0 -2
- package/dist/esm/plugins/analytics/types/experimental-events.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -2
- package/dist/esm/ui/ColorPalette/Palettes/common.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/index.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/paletteMessages.js +0 -2
- package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/statusColorPalette.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +0 -1
- package/dist/esm/ui/ColorPalette/Palettes/type.js +0 -1
- package/dist/esm/ui/ColorPalette/index.js +0 -3
- package/dist/esm/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -13
- package/dist/esm/utils/is-text-input.js +0 -15
- package/dist/types/nodeviews/getPerformanceOptions.d.ts +0 -2
- package/dist/types/plugins/analytics/types/experimental-events.d.ts +0 -1
- package/dist/types/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -2
- package/dist/types/ui/ColorPalette/Palettes/common.d.ts +0 -1
- package/dist/types/ui/ColorPalette/Palettes/index.d.ts +0 -2
- package/dist/types/ui/ColorPalette/Palettes/paletteMessages.d.ts +0 -2
- package/dist/types/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -1
- package/dist/types/ui/ColorPalette/Palettes/statusColorPalette.d.ts +0 -1
- package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
- package/dist/types/ui/ColorPalette/Palettes/type.d.ts +0 -1
- package/dist/types/ui/ColorPalette/index.d.ts +0 -3
- package/dist/types/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +0 -12
- package/dist/types/utils/is-text-input.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/getPerformanceOptions.d.ts +0 -2
- package/dist/types-ts4.5/plugins/analytics/types/experimental-events.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/common.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/paletteMessages.d.ts +0 -2
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/statusColorPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/Palettes/type.d.ts +0 -1
- package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +0 -12
- package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 189.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42416](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42416) [`d4e57bf9189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d4e57bf9189) - Removing unused dependencies in editor-core.
|
|
8
|
+
|
|
3
9
|
## 189.1.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -15,11 +15,10 @@ var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/error")
|
|
|
15
15
|
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
16
16
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
17
17
|
var _actions = require("./actions");
|
|
18
|
-
var
|
|
18
|
+
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
19
19
|
var _panel = require("@atlaskit/editor-common/panel");
|
|
20
20
|
var _utils = require("./utils");
|
|
21
21
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
22
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
23
22
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
24
23
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
25
24
|
var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
|
|
@@ -185,7 +184,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
185
184
|
};
|
|
186
185
|
};
|
|
187
186
|
var panelColor = activePanelType === _adfSchema.PanelType.CUSTOM ? activePanelColor || (0, _panel.getPanelTypeBackgroundNoTokens)(_adfSchema.PanelType.INFO) : (0, _panel.getPanelTypeBackgroundNoTokens)(activePanelType);
|
|
188
|
-
var defaultPalette =
|
|
187
|
+
var defaultPalette = _uiColor.panelBackgroundPalette.find(function (item) {
|
|
189
188
|
return item.value === panelColor;
|
|
190
189
|
}) || {
|
|
191
190
|
label: 'Custom',
|
|
@@ -199,7 +198,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
199
198
|
type: 'select',
|
|
200
199
|
selectType: 'color',
|
|
201
200
|
defaultValue: defaultPalette,
|
|
202
|
-
options:
|
|
201
|
+
options: _uiColor.panelBackgroundPalette,
|
|
203
202
|
onChange: function onChange(option) {
|
|
204
203
|
return changeColor(option.value);
|
|
205
204
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "189.1.
|
|
8
|
+
var version = exports.version = "189.1.6";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -7,7 +7,7 @@ import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
|
|
|
7
7
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
8
8
|
import commonMessages from '../../messages';
|
|
9
9
|
import { removePanel, changePanelType } from './actions';
|
|
10
|
-
import { panelBackgroundPalette } from '
|
|
10
|
+
import { panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
11
11
|
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
12
12
|
import { findPanel } from './utils';
|
|
13
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -11,7 +11,7 @@ import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
|
|
|
11
11
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
12
12
|
import commonMessages from '../../messages';
|
|
13
13
|
import { removePanel, changePanelType } from './actions';
|
|
14
|
-
import { panelBackgroundPalette } from '
|
|
14
|
+
import { panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
15
15
|
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
16
16
|
import { findPanel } from './utils';
|
|
17
17
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "getPerformanceOptions", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _utils.getPerformanceOptions;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "startMeasureReactNodeViewRendered", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _utils.startMeasureReactNodeViewRendered;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "stopMeasureReactNodeViewRendered", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _utils.stopMeasureReactNodeViewRendered;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DEFAULT_BORDER_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _uiColor.DEFAULT_BORDER_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DEFAULT_BORDER_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _common.DEFAULT_BORDER_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _common = require("./common");
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "panelBackgroundPalette", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _uiColor.panelBackgroundPalette;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "panelDarkModeBackgroundPalette", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _uiColor.panelDarkModeBackgroundPalette;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "darkModeStatusColorPalette", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _uiColor.darkModeStatusColorPalette;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "lightModeStatusColorPalette", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _uiColor.lightModeStatusColorPalette;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "textColorPalette", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _uiColor.textColorPalette;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ColorPalette", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _uiColor.ColorPalette;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "backgroundPaletteTooltipMessages", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _uiColor.backgroundPaletteTooltipMessages;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "chartsColorPaletteTooltipMessages", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _uiColor.chartsColorPaletteTooltipMessages;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
exports.default = void 0;
|
|
25
|
-
Object.defineProperty(exports, "textPaletteTooltipMessages", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _uiColor.textPaletteTooltipMessages;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
32
|
-
var _default = exports.default = _uiColor.ColorPalette;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.toolbarMessages = void 0;
|
|
7
|
-
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
-
wrapLeft: {
|
|
10
|
-
id: 'fabric.editor.wrapLeft',
|
|
11
|
-
defaultMessage: 'Wrap left',
|
|
12
|
-
description: 'Aligns your image to the left and wraps text around it.'
|
|
13
|
-
},
|
|
14
|
-
wrapRight: {
|
|
15
|
-
id: 'fabric.editor.wrapRight',
|
|
16
|
-
defaultMessage: 'Wrap right',
|
|
17
|
-
description: 'Aligns your image to the right and wraps text around it.'
|
|
18
|
-
}
|
|
19
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.isTextInput = void 0;
|
|
8
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
-
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
10
|
-
var isTextInput = exports.isTextInput = function isTextInput(tr) {
|
|
11
|
-
var _tr$steps = (0, _slicedToArray2.default)(tr.steps, 1),
|
|
12
|
-
step = _tr$steps[0];
|
|
13
|
-
if (!step || !(step instanceof _transform.ReplaceStep)) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
var _ref = step,
|
|
17
|
-
content = _ref.slice.content,
|
|
18
|
-
from = _ref.from,
|
|
19
|
-
to = _ref.to;
|
|
20
|
-
var char = content.firstChild;
|
|
21
|
-
return from === to && content.childCount === 1 && !!char && !!char.text && char.text.length === 1;
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from './common';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
2
|
-
export { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages };
|
|
3
|
-
export default ColorPalette;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl-next';
|
|
2
|
-
export const toolbarMessages = defineMessages({
|
|
3
|
-
wrapLeft: {
|
|
4
|
-
id: 'fabric.editor.wrapLeft',
|
|
5
|
-
defaultMessage: 'Wrap left',
|
|
6
|
-
description: 'Aligns your image to the left and wraps text around it.'
|
|
7
|
-
},
|
|
8
|
-
wrapRight: {
|
|
9
|
-
id: 'fabric.editor.wrapRight',
|
|
10
|
-
defaultMessage: 'Wrap right',
|
|
11
|
-
description: 'Aligns your image to the right and wraps text around it.'
|
|
12
|
-
}
|
|
13
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
-
export const isTextInput = tr => {
|
|
3
|
-
const [step] = tr.steps;
|
|
4
|
-
if (!step || !(step instanceof ReplaceStep)) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
const {
|
|
8
|
-
slice: {
|
|
9
|
-
content
|
|
10
|
-
},
|
|
11
|
-
from,
|
|
12
|
-
to
|
|
13
|
-
} = step;
|
|
14
|
-
const char = content.firstChild;
|
|
15
|
-
return from === to && content.childCount === 1 && !!char && !!char.text && char.text.length === 1;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from './common';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
2
|
-
export { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages };
|
|
3
|
-
export default ColorPalette;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl-next';
|
|
2
|
-
export var toolbarMessages = defineMessages({
|
|
3
|
-
wrapLeft: {
|
|
4
|
-
id: 'fabric.editor.wrapLeft',
|
|
5
|
-
defaultMessage: 'Wrap left',
|
|
6
|
-
description: 'Aligns your image to the left and wraps text around it.'
|
|
7
|
-
},
|
|
8
|
-
wrapRight: {
|
|
9
|
-
id: 'fabric.editor.wrapRight',
|
|
10
|
-
defaultMessage: 'Wrap right',
|
|
11
|
-
description: 'Aligns your image to the right and wraps text around it.'
|
|
12
|
-
}
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
export var isTextInput = function isTextInput(tr) {
|
|
4
|
-
var _tr$steps = _slicedToArray(tr.steps, 1),
|
|
5
|
-
step = _tr$steps[0];
|
|
6
|
-
if (!step || !(step instanceof ReplaceStep)) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
var _ref = step,
|
|
10
|
-
content = _ref.slice.content,
|
|
11
|
-
from = _ref.from,
|
|
12
|
-
to = _ref.to;
|
|
13
|
-
var char = content.firstChild;
|
|
14
|
-
return from === to && content.childCount === 1 && !!char && !!char.text && char.text.length === 1;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { TextColorSelectedAttr, TextColorSelectedAEP, TextColorShowPaletteToggleAttr, TextColorShowPaletteToggleAEP, ExperimentalEventPayload, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PaletteColor, PaletteTooltipMessages, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
2
|
-
export { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, };
|
|
3
|
-
export default ColorPalette;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { TextColorSelectedAttr, TextColorSelectedAEP, TextColorShowPaletteToggleAttr, TextColorShowPaletteToggleAEP, ExperimentalEventPayload, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PaletteColor, PaletteTooltipMessages, } from '@atlaskit/editor-common/ui-color';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
|
|
2
|
-
export { ColorPalette, backgroundPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, };
|
|
3
|
-
export default ColorPalette;
|