@atlaskit/editor-core 188.7.3 → 188.7.5
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 +7 -0
- package/dist/cjs/messages.js +1 -2
- package/dist/cjs/plugins/status/index.js +3 -3
- package/dist/cjs/plugins/status/nodeviews/status.js +4 -3
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/messages.js +1 -2
- package/dist/es2019/plugins/status/index.js +1 -1
- package/dist/es2019/plugins/status/nodeviews/status.js +3 -2
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/messages.js +1 -2
- package/dist/esm/plugins/status/index.js +1 -1
- package/dist/esm/plugins/status/nodeviews/status.js +3 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/messages.d.ts +1 -2
- package/dist/types/plugins/status/analytics.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +2 -1
- package/dist/types-ts4.5/messages.d.ts +1 -2
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +1 -1
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +2 -1
- package/package.json +3 -3
- package/dist/cjs/plugins/status/nodeviews/messages.js +0 -24
- package/dist/es2019/plugins/status/nodeviews/messages.js +0 -18
- package/dist/esm/plugins/status/nodeviews/messages.js +0 -18
- package/dist/types/plugins/status/nodeviews/messages.d.ts +0 -17
- package/dist/types-ts4.5/plugins/status/nodeviews/messages.d.ts +0 -17
- /package/dist/cjs/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/es2019/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/esm/{plugins/status/styles.js → ui/ContentStyles/status.js} +0 -0
- /package/dist/types/{plugins/status/styles.d.ts → ui/ContentStyles/status.d.ts} +0 -0
- /package/dist/types-ts4.5/{plugins/status/styles.d.ts → ui/ContentStyles/status.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 188.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41452](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41452) [`53c21a4394a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53c21a4394a) - Decouple status plugin from editor-core.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 188.7.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -26,12 +26,11 @@ Object.defineProperty(exports, "linkToolbarMessages", {
|
|
|
26
26
|
Object.defineProperty(exports, "statusMessages", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _messages.statusMessages;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/messages"));
|
|
33
33
|
var _messages2 = require("./plugins/date/nodeviews/messages");
|
|
34
|
-
var _messages3 = require("./plugins/status/nodeviews/messages");
|
|
35
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
35
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
36
|
// Common Translations will live here
|
|
@@ -10,7 +10,7 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
11
|
var _withPluginState = require("@atlaskit/editor-common/with-plugin-state");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
|
-
var _messages = require("
|
|
13
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
15
|
var _actions = require("./actions");
|
|
16
16
|
var _keymap = require("./keymap");
|
|
@@ -106,8 +106,8 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
|
|
|
106
106
|
var formatMessage = _ref4.formatMessage;
|
|
107
107
|
return [{
|
|
108
108
|
id: 'status',
|
|
109
|
-
title: formatMessage(_messages.
|
|
110
|
-
description: formatMessage(_messages.
|
|
109
|
+
title: formatMessage(_messages.toolbarInsertBlockMessages.status),
|
|
110
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.statusDescription),
|
|
111
111
|
priority: 700,
|
|
112
112
|
keywords: ['lozenge'],
|
|
113
113
|
icon: function icon() {
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _element = require("@atlaskit/status/element");
|
|
13
|
-
var _messages = require("
|
|
13
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
var styledStatus = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n opacity: 1;\n"])));
|
|
@@ -21,7 +21,7 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
21
21
|
localId = props.localId,
|
|
22
22
|
style = props.style,
|
|
23
23
|
formatMessage = props.intl.formatMessage;
|
|
24
|
-
var statusText = text ? text : formatMessage(_messages.
|
|
24
|
+
var statusText = text ? text : formatMessage(_messages.statusMessages.placeholder);
|
|
25
25
|
var handleClick = function handleClick(event) {
|
|
26
26
|
if (event.nativeEvent.stopImmediatePropagation) {
|
|
27
27
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -30,7 +30,8 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
return (0, _react2.jsx)("span", {
|
|
33
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
33
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
34
|
+
"data-testid": "statusContainerView"
|
|
34
35
|
}, (0, _react2.jsx)(_element.Status, {
|
|
35
36
|
text: statusText,
|
|
36
37
|
color: color,
|
|
@@ -25,7 +25,7 @@ var _styles9 = require("../../plugins/extension/ui/styles");
|
|
|
25
25
|
var _styles10 = require("../../plugins/expand/ui/styles");
|
|
26
26
|
var _styles11 = require("../../plugins/find-replace/styles");
|
|
27
27
|
var _styles12 = require("../../plugins/tasks-and-decisions/styles");
|
|
28
|
-
var
|
|
28
|
+
var _status = require("./status");
|
|
29
29
|
var _date = require("./date");
|
|
30
30
|
var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
|
|
31
31
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -47,7 +47,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)(_templateOb
|
|
|
47
47
|
var contentStyles = function contentStyles(props) {
|
|
48
48
|
return (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
49
49
|
theme: props.theme
|
|
50
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles8.placeholderTextStyles, placeholderStyles, (0, _styles4.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _styles5.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles6.panelStyles)(props), _styles7.fakeCursorStyles, mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles9.extensionStyles, (0, _styles10.expandStyles)(props), _styles11.findReplaceStyles, _styles12.taskDecisionStyles,
|
|
50
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles8.placeholderTextStyles, placeholderStyles, (0, _styles4.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _styles5.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles6.panelStyles)(props), _styles7.fakeCursorStyles, mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles9.extensionStyles, (0, _styles10.expandStyles)(props), _styles11.findReplaceStyles, _styles12.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
51
51
|
};
|
|
52
52
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
53
53
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -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 = "
|
|
8
|
+
var version = exports.version = "188.7.5";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Common Translations will live here
|
|
2
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
5
4
|
export { linkMessages };
|
|
6
5
|
export { statusMessages };
|
|
7
6
|
export { dateMessages };
|
|
@@ -3,7 +3,7 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
3
3
|
import { status } from '@atlaskit/adf-schema';
|
|
4
4
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
8
8
|
import { updateStatusWithAnalytics, commitStatusPicker, createStatus, updateStatus } from './actions';
|
|
9
9
|
import { keymapPlugin } from './keymap';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { Status } from '@atlaskit/status/element';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
const styledStatus = css`
|
|
8
8
|
opacity: 1;
|
|
9
9
|
`;
|
|
@@ -29,7 +29,8 @@ const StatusContainerView = props => {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
return jsx("span", {
|
|
32
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
32
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
33
|
+
"data-testid": "statusContainerView"
|
|
33
34
|
}, jsx(Status, {
|
|
34
35
|
text: statusText,
|
|
35
36
|
color: color,
|
|
@@ -18,7 +18,7 @@ import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
|
18
18
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
19
19
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
20
20
|
import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
|
|
21
|
-
import { statusStyles } from '
|
|
21
|
+
import { statusStyles } from './status';
|
|
22
22
|
import { dateStyles } from './date';
|
|
23
23
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
24
24
|
import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
package/dist/esm/messages.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Common Translations will live here
|
|
2
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
5
4
|
export { linkMessages };
|
|
6
5
|
export { statusMessages };
|
|
7
6
|
export { dateMessages };
|
|
@@ -3,7 +3,7 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
3
3
|
import { status } from '@atlaskit/adf-schema';
|
|
4
4
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { messages } from '
|
|
6
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
8
8
|
import { updateStatusWithAnalytics, commitStatusPicker, createStatus, updateStatus } from './actions';
|
|
9
9
|
import { keymapPlugin } from './keymap';
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { Status } from '@atlaskit/status/element';
|
|
8
|
-
import { messages } from '
|
|
8
|
+
import { statusMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
var styledStatus = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n opacity: 1;\n"])));
|
|
10
10
|
var styledStatusPlaceholder = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n opacity: 0.5;\n"])));
|
|
11
11
|
var StatusContainerView = function StatusContainerView(props) {
|
|
@@ -23,7 +23,8 @@ var StatusContainerView = function StatusContainerView(props) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
return jsx("span", {
|
|
26
|
-
css: text ? styledStatus : styledStatusPlaceholder
|
|
26
|
+
css: text ? styledStatus : styledStatusPlaceholder,
|
|
27
|
+
"data-testid": "statusContainerView"
|
|
27
28
|
}, jsx(Status, {
|
|
28
29
|
text: statusText,
|
|
29
30
|
color: color,
|
|
@@ -20,7 +20,7 @@ import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
|
20
20
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { findReplaceStyles } from '../../plugins/find-replace/styles';
|
|
22
22
|
import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
|
|
23
|
-
import { statusStyles } from '
|
|
23
|
+
import { statusStyles } from './status';
|
|
24
24
|
import { dateStyles } from './date';
|
|
25
25
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
26
26
|
import { linkSharedStyle, codeMarkSharedStyles, ruleSharedStyles } from '@atlaskit/editor-common/styles';
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
1
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
3
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
4
3
|
export { linkMessages };
|
|
5
4
|
export { statusMessages };
|
|
6
5
|
export { dateMessages };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
export declare const FABRIC_CHANNEL = "fabric-elements";
|
|
3
3
|
export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => (payload: AnalyticsEventPayload) => void;
|
|
4
4
|
export declare const analyticsState: (isNew: boolean | undefined) => "update" | "new";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { IntlShape } from 'react-intl-next';
|
|
5
6
|
import type { Color, StatusStyle } from '@atlaskit/status/element';
|
|
@@ -21,4 +22,4 @@ export declare const IntlStatusContainerView: React.FC<import("react-intl-next")
|
|
|
21
22
|
export type Props = InlineNodeViewComponentProps & {
|
|
22
23
|
options: StatusPluginOptions | undefined;
|
|
23
24
|
};
|
|
24
|
-
export declare const StatusNodeView:
|
|
25
|
+
export declare const StatusNodeView: (props: Props) => jsx.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
1
|
+
import commonMessages, { linkMessages, linkToolbarMessages, statusMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
3
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
4
3
|
export { linkMessages };
|
|
5
4
|
export { statusMessages };
|
|
6
5
|
export { dateMessages };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
export declare const FABRIC_CHANNEL = "fabric-elements";
|
|
3
3
|
export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => (payload: AnalyticsEventPayload) => void;
|
|
4
4
|
export declare const analyticsState: (isNew: boolean | undefined) => "update" | "new";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { IntlShape } from 'react-intl-next';
|
|
5
6
|
import type { Color, StatusStyle } from '@atlaskit/status/element';
|
|
@@ -21,4 +22,4 @@ export declare const IntlStatusContainerView: React.FC<import("react-intl-next")
|
|
|
21
22
|
export type Props = InlineNodeViewComponentProps & {
|
|
22
23
|
options: StatusPluginOptions | undefined;
|
|
23
24
|
};
|
|
24
|
-
export declare const StatusNodeView:
|
|
25
|
+
export declare const StatusNodeView: (props: Props) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "188.7.
|
|
3
|
+
"version": "188.7.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
|
56
56
|
"@atlaskit/date": "^0.10.0",
|
|
57
57
|
"@atlaskit/datetime-picker": "^12.10.0",
|
|
58
|
-
"@atlaskit/editor-common": "^76.
|
|
58
|
+
"@atlaskit/editor-common": "^76.10.0",
|
|
59
59
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
60
60
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
61
61
|
"@atlaskit/editor-palette": "1.5.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
89
89
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
90
90
|
"@atlaskit/editor-plugin-selection": "^0.1.0",
|
|
91
|
-
"@atlaskit/editor-plugin-table": "^5.
|
|
91
|
+
"@atlaskit/editor-plugin-table": "^5.2.0",
|
|
92
92
|
"@atlaskit/editor-plugin-text-formatting": "^0.4.0",
|
|
93
93
|
"@atlaskit/editor-plugin-type-ahead": "^0.5.0",
|
|
94
94
|
"@atlaskit/editor-plugin-unsupported-content": "^0.2.0",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.messages = void 0;
|
|
7
|
-
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
-
placeholder: {
|
|
10
|
-
id: 'fabric.editor.statusPlaceholder',
|
|
11
|
-
defaultMessage: 'Set a status',
|
|
12
|
-
description: 'Placeholder description for an empty (new) status item in the editor'
|
|
13
|
-
},
|
|
14
|
-
editText: {
|
|
15
|
-
id: 'fabric.editor.editStatusText',
|
|
16
|
-
defaultMessage: 'Edit Status',
|
|
17
|
-
description: 'Title for the input that changes the status text'
|
|
18
|
-
},
|
|
19
|
-
editColor: {
|
|
20
|
-
id: 'fabric.editor.editStatusColor',
|
|
21
|
-
defaultMessage: 'Edit Status Color',
|
|
22
|
-
description: 'Title for the color picker that changes the status color'
|
|
23
|
-
}
|
|
24
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl-next';
|
|
2
|
-
export const messages = defineMessages({
|
|
3
|
-
placeholder: {
|
|
4
|
-
id: 'fabric.editor.statusPlaceholder',
|
|
5
|
-
defaultMessage: 'Set a status',
|
|
6
|
-
description: 'Placeholder description for an empty (new) status item in the editor'
|
|
7
|
-
},
|
|
8
|
-
editText: {
|
|
9
|
-
id: 'fabric.editor.editStatusText',
|
|
10
|
-
defaultMessage: 'Edit Status',
|
|
11
|
-
description: 'Title for the input that changes the status text'
|
|
12
|
-
},
|
|
13
|
-
editColor: {
|
|
14
|
-
id: 'fabric.editor.editStatusColor',
|
|
15
|
-
defaultMessage: 'Edit Status Color',
|
|
16
|
-
description: 'Title for the color picker that changes the status color'
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl-next';
|
|
2
|
-
export var messages = defineMessages({
|
|
3
|
-
placeholder: {
|
|
4
|
-
id: 'fabric.editor.statusPlaceholder',
|
|
5
|
-
defaultMessage: 'Set a status',
|
|
6
|
-
description: 'Placeholder description for an empty (new) status item in the editor'
|
|
7
|
-
},
|
|
8
|
-
editText: {
|
|
9
|
-
id: 'fabric.editor.editStatusText',
|
|
10
|
-
defaultMessage: 'Edit Status',
|
|
11
|
-
description: 'Title for the input that changes the status text'
|
|
12
|
-
},
|
|
13
|
-
editColor: {
|
|
14
|
-
id: 'fabric.editor.editStatusColor',
|
|
15
|
-
defaultMessage: 'Edit Status Color',
|
|
16
|
-
description: 'Title for the color picker that changes the status color'
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
placeholder: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
editText: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
editColor: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
placeholder: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
editText: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
editColor: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|