@atlaskit/editor-common 72.0.1 → 72.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/dist/cjs/analytics/types/enums.js +1 -1
- package/dist/cjs/styles/shared/code-block.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -7
- package/dist/cjs/ui-color/index.js +0 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -1
- package/dist/es2019/styles/shared/code-block.js +6 -3
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -5
- package/dist/es2019/ui-color/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/types/enums.js +1 -1
- package/dist/esm/styles/shared/code-block.js +2 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -5
- package/dist/esm/ui-color/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -1
- package/dist/types/analytics/types/events.d.ts +3 -2
- package/dist/types/analytics/types/experimental-events.d.ts +0 -1
- package/dist/types/analytics/types/general-events.d.ts +3 -1
- package/dist/types/types/feature-flags.d.ts +15 -5
- package/dist/types/types/floating-toolbar.d.ts +2 -0
- package/dist/types/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
- package/dist/types/ui-color/index.d.ts +1 -1
- package/package.json +8 -8
- package/report.api.md +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 72.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2b78f58c35c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b78f58c35c) - [ux] ED-16490 fixed bug so big margin will not occur before a Decision node on iOS
|
|
8
|
+
|
|
9
|
+
## 72.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`055a333dad9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/055a333dad9) - [ux] Remove `moreTextColors` feature flag and deprecate `allowMoreTextColors` field of `allowTextColor` editor prop and `colorPaletteExtended` mark.
|
|
14
|
+
|
|
15
|
+
Showing more colors in the color selection palette is now a default behaviour.
|
|
16
|
+
|
|
17
|
+
## **DEPRECATION WARNING:**
|
|
18
|
+
|
|
19
|
+
There are 2 deprecations in this change:
|
|
20
|
+
|
|
21
|
+
### 1. `allowMoreTextColors` field of `allowTextColor` editor prop.
|
|
22
|
+
|
|
23
|
+
`allowMoreTextColors` field of `allowTextColor` editor prop. **is now deprecated and will be removed in the next stable release of `@atlaskit/editor-core` package**. Please take steps to remove that field from your code. E.g.:
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
<Editor
|
|
27
|
+
...
|
|
28
|
+
allowTextColor ={
|
|
29
|
+
allowMoreTextColors: true // <-- Deprecated
|
|
30
|
+
defaultColour: {color: 'red', label: 'red'}
|
|
31
|
+
}
|
|
32
|
+
/>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Remove all instances of `allowMoreTextColors` field from `allowTextColor` `Editor` prop. I.e.:
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
<Editor
|
|
39
|
+
...
|
|
40
|
+
allowTextColor ={
|
|
41
|
+
defaultColour: {color: 'red', label: 'red'}
|
|
42
|
+
}
|
|
43
|
+
/>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
If the resulting `allowTextColor` prop is an empty object, set `allowTextColor` property value to `true`. E.g.:
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
<Editor
|
|
50
|
+
appearance="full-page"
|
|
51
|
+
...
|
|
52
|
+
allowTextColor ={
|
|
53
|
+
allowMoreTextColors: true // <-- Invalid
|
|
54
|
+
}
|
|
55
|
+
/>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
should become
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
<Editor
|
|
62
|
+
appearance="full-page"
|
|
63
|
+
...
|
|
64
|
+
allowTextColor={true}
|
|
65
|
+
/>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 2. `colorPaletteExtended` mark of the ADF schema
|
|
69
|
+
|
|
70
|
+
`colorPaletteExtended` mark of the ADF schema **is now deprecated and will be removed in the next stable release**. The extended palette is now rolled into the main one. use `colorPalette` instead.
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- [`f7cdc36d75b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7cdc36d75b) - ED016195 update EDITOR_CRASHED_ADDITIONAL_INFORMATION event name
|
|
75
|
+
- [`efa8b7ee68e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa8b7ee68e) - ED-15808 Changes to replace usage of enzyme with React test library
|
|
76
|
+
- [`70d0799eee0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70d0799eee0) - ED-14002 Added `safer-dispatched-transactions` featureFlag to preventtransactions from being mutated after dispatch at runtime.
|
|
77
|
+
- [`c6c0cab10e0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6c0cab10e0) - [ux] ED-16205 - Fix missing yellow highlight on merged table cells when hover sort column options on table floating toolbar
|
|
78
|
+
- [`b9141027f87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9141027f87) - [ux] ED-13873 fixes a bug where after deleting a list in a panel or table the cursor would move to the cell to the right. Uses setSelection to position the cursor as expected after delete.
|
|
79
|
+
- Updated dependencies
|
|
80
|
+
|
|
3
81
|
## 72.0.1
|
|
4
82
|
|
|
5
83
|
### Patch Changes
|
|
@@ -47,7 +47,7 @@ exports.ACTION = ACTION;
|
|
|
47
47
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
48
48
|
ACTION["EDITED"] = "edited";
|
|
49
49
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
50
|
-
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "
|
|
50
|
+
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
51
51
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
52
52
|
ACTION["EDITOR_TTI"] = "tti";
|
|
53
53
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
@@ -19,6 +19,8 @@ var _components = require("@atlaskit/theme/components");
|
|
|
19
19
|
|
|
20
20
|
var _constants = require("@atlaskit/theme/constants");
|
|
21
21
|
|
|
22
|
+
var _taskDecision = require("./task-decision");
|
|
23
|
+
|
|
22
24
|
var _templateObject, _templateObject2;
|
|
23
25
|
|
|
24
26
|
var CodeBlockSharedCssClassName = {
|
|
@@ -55,5 +57,5 @@ var codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
exports.codeBlockSharedStyles = codeBlockSharedStyles;
|
|
58
|
-
var codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ::before {\n
|
|
60
|
+
var codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &:not(.", ") {\n ::before {\n content: ' ';\n line-height: ", ";\n }\n }\n\n > p:first-child,\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: -", "em !important;\n }\n"])), _taskDecision.TaskDecisionSharedCssClassName.DECISION_CONTAINER, _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
|
|
59
61
|
exports.codeBlockInListSafariFix = codeBlockInListSafariFix;
|
|
@@ -44,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
44
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
45
|
|
|
46
46
|
var packageName = "@atlaskit/editor-common";
|
|
47
|
-
var packageVersion = "72.
|
|
47
|
+
var packageVersion = "72.1.1";
|
|
48
48
|
var halfFocusRing = 1;
|
|
49
49
|
var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
|
|
50
50
|
|
|
@@ -45,16 +45,9 @@ function PortalProviderThemeProviders(props) {
|
|
|
45
45
|
};
|
|
46
46
|
}, [mode]);
|
|
47
47
|
|
|
48
|
-
return (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// </DeprectateStyledComponentsProvider>
|
|
54
|
-
_react.default.createElement(_react2.ThemeProvider, {
|
|
55
|
-
theme: styledComponentsAndEmotionTheme
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_components.default.Provider, {
|
|
57
|
-
value: atlaskitTheme
|
|
58
|
-
}, children))
|
|
59
|
-
);
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_react2.ThemeProvider, {
|
|
49
|
+
theme: styledComponentsAndEmotionTheme
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_components.default.Provider, {
|
|
51
|
+
value: atlaskitTheme
|
|
52
|
+
}, children));
|
|
60
53
|
}
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.textColorPalette = void 0;
|
|
9
9
|
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
11
|
|
|
@@ -29,13 +29,7 @@ var mapPaletteColor = function mapPaletteColor(label, color) {
|
|
|
29
29
|
|
|
30
30
|
var textColorPalette = [];
|
|
31
31
|
exports.textColorPalette = textColorPalette;
|
|
32
|
-
var textColorPaletteExtended = [];
|
|
33
|
-
exports.textColorPaletteExtended = textColorPaletteExtended;
|
|
34
32
|
|
|
35
33
|
_adfSchema.colorPalette.forEach(function (label, color) {
|
|
36
34
|
textColorPalette.push(mapPaletteColor(label, color));
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
_adfSchema.colorPaletteExtended.forEach(function (label, color) {
|
|
40
|
-
textColorPaletteExtended.push(mapPaletteColor(label, color));
|
|
41
35
|
});
|
|
@@ -65,12 +65,6 @@ Object.defineProperty(exports, "textColorPalette", {
|
|
|
65
65
|
return _textColorPalette.textColorPalette;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
Object.defineProperty(exports, "textColorPaletteExtended", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function get() {
|
|
71
|
-
return _textColorPalette.textColorPaletteExtended;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
68
|
|
|
75
69
|
var _ColorPalette = _interopRequireDefault(require("./ColorPalette"));
|
|
76
70
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -39,7 +39,7 @@ export let ACTION;
|
|
|
39
39
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
40
40
|
ACTION["EDITED"] = "edited";
|
|
41
41
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
42
|
-
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "
|
|
42
|
+
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
43
43
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
44
44
|
ACTION["EDITOR_TTI"] = "tti";
|
|
45
45
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
@@ -3,6 +3,7 @@ import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth,
|
|
|
3
3
|
import { DN20, DN400, DN50, DN800, N20, N30, N400, N800 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { themed } from '@atlaskit/theme/components';
|
|
5
5
|
import { borderRadius, fontSize, gridSize } from '@atlaskit/theme/constants';
|
|
6
|
+
import { TaskDecisionSharedCssClassName } from './task-decision';
|
|
6
7
|
export const CodeBlockSharedCssClassName = {
|
|
7
8
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
8
9
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -125,9 +126,11 @@ export const codeBlockSharedStyles = props => css`
|
|
|
125
126
|
}
|
|
126
127
|
`;
|
|
127
128
|
export const codeBlockInListSafariFix = css`
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
&:not(.${TaskDecisionSharedCssClassName.DECISION_CONTAINER}) {
|
|
130
|
+
::before {
|
|
131
|
+
content: ' ';
|
|
132
|
+
line-height: ${akEditorLineHeight};
|
|
133
|
+
}
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
> p:first-child,
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "72.
|
|
12
|
+
const packageVersion = "72.1.1";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = `0, ${gridSize()}px`;
|
|
15
15
|
|
|
@@ -28,16 +28,9 @@ export function PortalProviderThemeProviders(props) {
|
|
|
28
28
|
const atlaskitTheme = React.useCallback(() => ({
|
|
29
29
|
mode
|
|
30
30
|
}), [mode]);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// </DeprectateStyledComponentsProvider>
|
|
37
|
-
React.createElement(ThemeProvider, {
|
|
38
|
-
theme: styledComponentsAndEmotionTheme
|
|
39
|
-
}, /*#__PURE__*/React.createElement(AtlaskitTheme.Provider, {
|
|
40
|
-
value: atlaskitTheme
|
|
41
|
-
}, children))
|
|
42
|
-
);
|
|
31
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
32
|
+
theme: styledComponentsAndEmotionTheme
|
|
33
|
+
}, /*#__PURE__*/React.createElement(AtlaskitTheme.Provider, {
|
|
34
|
+
value: atlaskitTheme
|
|
35
|
+
}, children));
|
|
43
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorPalette
|
|
1
|
+
import { colorPalette } from '@atlaskit/adf-schema';
|
|
2
2
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
3
3
|
import getColorMessage from './getColorMessage';
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
@@ -16,10 +16,6 @@ const mapPaletteColor = (label, color) => {
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
export const textColorPalette = [];
|
|
19
|
-
export const textColorPaletteExtended = [];
|
|
20
19
|
colorPalette.forEach((label, color) => {
|
|
21
20
|
textColorPalette.push(mapPaletteColor(label, color));
|
|
22
|
-
});
|
|
23
|
-
colorPaletteExtended.forEach((label, color) => {
|
|
24
|
-
textColorPaletteExtended.push(mapPaletteColor(label, color));
|
|
25
21
|
});
|
|
@@ -4,5 +4,5 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
4
4
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
5
5
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
6
6
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
|
|
7
|
-
export { textColorPalette
|
|
7
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
8
8
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
package/dist/es2019/version.json
CHANGED
|
@@ -39,7 +39,7 @@ export var ACTION;
|
|
|
39
39
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
40
40
|
ACTION["EDITED"] = "edited";
|
|
41
41
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
42
|
-
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "
|
|
42
|
+
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
43
43
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
44
44
|
ACTION["EDITOR_TTI"] = "tti";
|
|
45
45
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
@@ -7,6 +7,7 @@ import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth,
|
|
|
7
7
|
import { DN20, DN400, DN50, DN800, N20, N30, N400, N800 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { themed } from '@atlaskit/theme/components';
|
|
9
9
|
import { borderRadius, fontSize, gridSize } from '@atlaskit/theme/constants';
|
|
10
|
+
import { TaskDecisionSharedCssClassName } from './task-decision';
|
|
10
11
|
export var CodeBlockSharedCssClassName = {
|
|
11
12
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
12
13
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -37,4 +38,4 @@ export var codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
|
37
38
|
dark: "var(--ds-text, ".concat(DN800, ")")
|
|
38
39
|
})(props), borderRadius(), gridSize(), relativeFontSizeToBase16(fontSize()));
|
|
39
40
|
};
|
|
40
|
-
export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ::before {\n
|
|
41
|
+
export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:not(.", ") {\n ::before {\n content: ' ';\n line-height: ", ";\n }\n }\n\n > p:first-child,\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: -", "em !important;\n }\n"])), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorLineHeight, akEditorLineHeight);
|
|
@@ -22,7 +22,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
22
22
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
23
23
|
import Layer from '../Layer';
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "72.
|
|
25
|
+
var packageVersion = "72.1.1";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = "0, ".concat(gridSize(), "px");
|
|
28
28
|
|
|
@@ -28,16 +28,9 @@ export function PortalProviderThemeProviders(props) {
|
|
|
28
28
|
mode: mode
|
|
29
29
|
};
|
|
30
30
|
}, [mode]);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// </DeprectateStyledComponentsProvider>
|
|
37
|
-
React.createElement(ThemeProvider, {
|
|
38
|
-
theme: styledComponentsAndEmotionTheme
|
|
39
|
-
}, /*#__PURE__*/React.createElement(AtlaskitTheme.Provider, {
|
|
40
|
-
value: atlaskitTheme
|
|
41
|
-
}, children))
|
|
42
|
-
);
|
|
31
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
32
|
+
theme: styledComponentsAndEmotionTheme
|
|
33
|
+
}, /*#__PURE__*/React.createElement(AtlaskitTheme.Provider, {
|
|
34
|
+
value: atlaskitTheme
|
|
35
|
+
}, children));
|
|
43
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorPalette
|
|
1
|
+
import { colorPalette } from '@atlaskit/adf-schema';
|
|
2
2
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
3
3
|
import getColorMessage from './getColorMessage';
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
@@ -16,10 +16,6 @@ var mapPaletteColor = function mapPaletteColor(label, color) {
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
export var textColorPalette = [];
|
|
19
|
-
export var textColorPaletteExtended = [];
|
|
20
19
|
colorPalette.forEach(function (label, color) {
|
|
21
20
|
textColorPalette.push(mapPaletteColor(label, color));
|
|
22
|
-
});
|
|
23
|
-
colorPaletteExtended.forEach(function (label, color) {
|
|
24
|
-
textColorPaletteExtended.push(mapPaletteColor(label, color));
|
|
25
21
|
});
|
|
@@ -4,5 +4,5 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
4
4
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
5
5
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
6
6
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
|
|
7
|
-
export { textColorPalette
|
|
7
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
8
8
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
package/dist/esm/version.json
CHANGED
|
@@ -37,7 +37,7 @@ export declare enum ACTION {
|
|
|
37
37
|
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
38
38
|
EDITED = "edited",
|
|
39
39
|
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
40
|
-
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "
|
|
40
|
+
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
|
|
41
41
|
EDITOR_MOUNTED = "mounted",
|
|
42
42
|
EDITOR_TTI = "tti",
|
|
43
43
|
EDITOR_CONTENT_RETRIEVAL_PERFORMED = "contentRetrievalPerformed",
|
|
@@ -109,9 +109,10 @@ export declare type ErrorEventAttributes = {
|
|
|
109
109
|
};
|
|
110
110
|
declare type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes, undefined>;
|
|
111
111
|
declare type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
112
|
-
errorStack: string;
|
|
113
112
|
errorId: string;
|
|
114
|
-
},
|
|
113
|
+
}, {
|
|
114
|
+
errorStack: string;
|
|
115
|
+
}>;
|
|
115
116
|
declare type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
116
117
|
error: string;
|
|
117
118
|
errorStack?: string;
|
|
@@ -6,7 +6,6 @@ declare type ExperimentalAEP<Action, ActionSubject, ActionSubjectId, Attributes>
|
|
|
6
6
|
}, undefined>;
|
|
7
7
|
export interface TextColorSelectedAttr {
|
|
8
8
|
color: string;
|
|
9
|
-
isNewColor: boolean;
|
|
10
9
|
}
|
|
11
10
|
export declare type TextColorSelectedAEP = ExperimentalAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorSelectedAttr>;
|
|
12
11
|
export interface TextColorShowPaletteToggleAttr {
|
|
@@ -99,7 +99,9 @@ declare type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPAT
|
|
|
99
99
|
}, undefined>;
|
|
100
100
|
declare type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
101
101
|
pluginKey: string;
|
|
102
|
-
},
|
|
102
|
+
}, {
|
|
103
|
+
stack: string | undefined;
|
|
104
|
+
}>;
|
|
103
105
|
declare type WithPluginStateCalledAEP = OperationalAEP<ACTION.WITH_PLUGIN_STATE_CALLED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
104
106
|
plugin: string;
|
|
105
107
|
duration: number;
|
|
@@ -60,12 +60,13 @@ export declare type FeatureFlags = {
|
|
|
60
60
|
placeholderBracketHint?: boolean;
|
|
61
61
|
/**
|
|
62
62
|
* @description
|
|
63
|
-
*
|
|
63
|
+
* Whether placeholder hints were provided (`string[] => boolean`)
|
|
64
|
+
* Placeholder text values to display on new empty lines.
|
|
64
65
|
*
|
|
65
|
-
* @see https://product-fabric.atlassian.net/l/c/
|
|
66
|
+
* @see https://product-fabric.atlassian.net/l/c/GG1Yv9cK
|
|
66
67
|
* @default false
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
placeholderHints?: boolean;
|
|
69
70
|
/**
|
|
70
71
|
* @description
|
|
71
72
|
* Enable find/replace functionality within the editor
|
|
@@ -219,13 +220,22 @@ export declare type FeatureFlags = {
|
|
|
219
220
|
*/
|
|
220
221
|
twoLineEditorToolbar?: boolean;
|
|
221
222
|
/**
|
|
222
|
-
* Prevent transactions from being mutated (e.g. apply, filterTransaction,
|
|
223
|
-
*
|
|
223
|
+
* Prevent transactions from being mutated (e.g. apply, filterTransaction, appendTransaction) after being dispatched,
|
|
224
|
+
* will throw on transaction dispatch unless saferDispatchedTransactionsAnalyticsOnly is enabled.
|
|
224
225
|
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
|
|
225
226
|
* @see https://product-fabric.atlassian.net/browse/ED-14002
|
|
226
227
|
* @default false
|
|
227
228
|
*/
|
|
228
229
|
saferDispatchedTransactions?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Detect when transaction is being mutated after being dispatched and emit analytics event if so (e.g. apply, filterTransaction,
|
|
232
|
+
* appendTransaction)
|
|
233
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
|
|
234
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14002
|
|
235
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/AS/pages/3321201329/Rolling+out+safer-dispatched+transaction
|
|
236
|
+
* @default false
|
|
237
|
+
*/
|
|
238
|
+
saferDispatchedTransactionsAnalyticsOnly?: boolean;
|
|
229
239
|
/**
|
|
230
240
|
* @description
|
|
231
241
|
* Enable new collab service
|
|
@@ -4,6 +4,6 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
|
|
|
4
4
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
5
5
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
6
6
|
export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
|
|
7
|
-
export { textColorPalette
|
|
7
|
+
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
8
8
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
9
9
|
export type { PaletteColor } from './ColorPalette/Palettes/type';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "72.
|
|
3
|
+
"version": "72.1.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
60
|
-
"@atlaskit/adf-schema": "^25.
|
|
60
|
+
"@atlaskit/adf-schema": "^25.1.0",
|
|
61
61
|
"@atlaskit/adf-utils": "^18.0.0",
|
|
62
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
63
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
62
|
+
"@atlaskit/analytics-listeners": "^8.4.0",
|
|
63
|
+
"@atlaskit/analytics-namespaced-context": "^6.6.0",
|
|
64
64
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
65
65
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
66
66
|
"@atlaskit/button": "^16.5.0",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@atlaskit/icon": "^21.11.0",
|
|
74
74
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
75
75
|
"@atlaskit/media-card": "^74.4.0",
|
|
76
|
-
"@atlaskit/media-client": "^
|
|
76
|
+
"@atlaskit/media-client": "^20.0.0",
|
|
77
77
|
"@atlaskit/media-picker": "^64.1.0",
|
|
78
78
|
"@atlaskit/mention": "^21.0.0",
|
|
79
79
|
"@atlaskit/menu": "^1.4.0",
|
|
80
|
-
"@atlaskit/profilecard": "^18.
|
|
81
|
-
"@atlaskit/smart-card": "^23.
|
|
80
|
+
"@atlaskit/profilecard": "^18.2.0",
|
|
81
|
+
"@atlaskit/smart-card": "^23.13.0",
|
|
82
82
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
83
83
|
"@atlaskit/task-decision": "^17.5.0",
|
|
84
84
|
"@atlaskit/theme": "^12.2.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@atlaskit/editor-core": "^
|
|
117
|
+
"@atlaskit/editor-core": "^178.0.0",
|
|
118
118
|
"@atlaskit/editor-json-transformer": "^8.8.0",
|
|
119
119
|
"@atlaskit/editor-plugin-table": "^1.0.0",
|
|
120
120
|
"@atlaskit/editor-test-helpers": "^18.0.0",
|
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -18,3 +19,18 @@
|
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
<!--SECTION END: Main Entry Types-->
|
|
22
|
+
|
|
23
|
+
### Peer Dependencies
|
|
24
|
+
|
|
25
|
+
<!--SECTION START: Peer Dependencies-->
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"@atlaskit/media-core": "^34.0.1",
|
|
30
|
+
"react": "^16.8.0",
|
|
31
|
+
"react-dom": "^16.8.0",
|
|
32
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<!--SECTION END: Peer Dependencies-->
|