@atlaskit/editor-core 193.6.0 → 193.6.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83297) [`6b1707c169e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b1707c169e0) - The internal composition of this component has changed. There is no expected change in behaviour.
8
+
9
+ ## 193.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#83784](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83784) [`b306dbd0ab06`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b306dbd0ab06) - Add border feature flag to improve contrast
14
+
3
15
  ## 193.6.0
4
16
 
5
17
  ### Minor Changes
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
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
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
28
- var chromelessEditor = (0, _react2.css)({
28
+ var chromelessEditorStyles = (0, _react2.css)({
29
29
  lineHeight: '20px',
30
30
  height: 'auto',
31
31
  overflowX: 'hidden',
@@ -40,8 +40,7 @@ var chromelessEditor = (0, _react2.css)({
40
40
  padding: 0,
41
41
  margin: 0,
42
42
  '& > :last-child': {
43
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
44
- paddingBottom: '0.5em'
43
+ paddingBottom: "var(--ds-space-100, 0.5em)"
45
44
  }
46
45
  }
47
46
  });
@@ -83,7 +82,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
83
82
  return (0, _react2.jsx)(_WithFlash.default, {
84
83
  animate: maxContentSizeReached
85
84
  }, (0, _react2.jsx)("div", {
86
- css: [chromelessEditor, maxHeight && (0, _react2.css)({
85
+ css: [chromelessEditorStyles, maxHeight && (0, _react2.css)({
87
86
  maxHeight: "".concat(maxHeight, "px")
88
87
  }), (0, _react2.css)({
89
88
  minHeight: "".concat(minHeight, "px")
@@ -51,7 +51,7 @@ var commentEditorStyles = (0, _react2.css)({
51
51
  minWidth: '272px',
52
52
  height: 'auto',
53
53
  backgroundColor: "var(--ds-background-input, white)",
54
- border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")")),
54
+ border: "1px solid ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-input, ".concat(_colors.N100, ")") : "var(--ds-border, ".concat(_colors.N40, ")")),
55
55
  boxSizing: 'border-box',
56
56
  borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
57
57
  maxWidth: 'inherit',
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "193.6.0";
8
+ var version = exports.version = "193.6.6";
@@ -8,7 +8,7 @@ import { createEditorContentStyle } from '../ContentStyles';
8
8
  import PluginSlot from '../PluginSlot';
9
9
  import { scrollbarStyles } from '../styles';
10
10
  import WithFlash from '../WithFlash';
11
- const chromelessEditor = css({
11
+ const chromelessEditorStyles = css({
12
12
  lineHeight: '20px',
13
13
  height: 'auto',
14
14
  overflowX: 'hidden',
@@ -23,8 +23,7 @@ const chromelessEditor = css({
23
23
  padding: 0,
24
24
  margin: 0,
25
25
  '& > :last-child': {
26
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
27
- paddingBottom: '0.5em'
26
+ paddingBottom: "var(--ds-space-100, 0.5em)"
28
27
  }
29
28
  }
30
29
  });
@@ -60,7 +59,7 @@ export default class Editor extends React.Component {
60
59
  return jsx(WithFlash, {
61
60
  animate: maxContentSizeReached
62
61
  }, jsx("div", {
63
- css: [chromelessEditor, maxHeight && css({
62
+ css: [chromelessEditorStyles, maxHeight && css({
64
63
  maxHeight: `${maxHeight}px`
65
64
  }), css({
66
65
  minHeight: `${minHeight}px`
@@ -13,7 +13,7 @@ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-me
13
13
  import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
14
14
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
15
15
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
16
- import { N40 } from '@atlaskit/theme/colors';
16
+ import { N100, N40 } from '@atlaskit/theme/colors';
17
17
  import { borderRadius } from '@atlaskit/theme/constants';
18
18
  import messages from '../../../messages';
19
19
  import { usePresetContext } from '../../../presets/context';
@@ -33,7 +33,7 @@ const commentEditorStyles = css({
33
33
  minWidth: '272px',
34
34
  height: 'auto',
35
35
  backgroundColor: "var(--ds-background-input, white)",
36
- border: `1px solid ${`var(--ds-border, ${N40})`}`,
36
+ border: `1px solid ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? `var(--ds-border-input, ${N100})` : `var(--ds-border, ${N40})`}`,
37
37
  boxSizing: 'border-box',
38
38
  borderRadius: `${borderRadius()}px`,
39
39
  maxWidth: 'inherit',
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.6.0";
2
+ export const version = "193.6.6";
@@ -16,7 +16,7 @@ import { createEditorContentStyle } from '../ContentStyles';
16
16
  import PluginSlot from '../PluginSlot';
17
17
  import { scrollbarStyles } from '../styles';
18
18
  import WithFlash from '../WithFlash';
19
- var chromelessEditor = css({
19
+ var chromelessEditorStyles = css({
20
20
  lineHeight: '20px',
21
21
  height: 'auto',
22
22
  overflowX: 'hidden',
@@ -31,8 +31,7 @@ var chromelessEditor = css({
31
31
  padding: 0,
32
32
  margin: 0,
33
33
  '& > :last-child': {
34
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
35
- paddingBottom: '0.5em'
34
+ paddingBottom: "var(--ds-space-100, 0.5em)"
36
35
  }
37
36
  }
38
37
  });
@@ -74,7 +73,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
74
73
  return jsx(WithFlash, {
75
74
  animate: maxContentSizeReached
76
75
  }, jsx("div", {
77
- css: [chromelessEditor, maxHeight && css({
76
+ css: [chromelessEditorStyles, maxHeight && css({
78
77
  maxHeight: "".concat(maxHeight, "px")
79
78
  }), css({
80
79
  minHeight: "".concat(minHeight, "px")
@@ -22,7 +22,7 @@ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-me
22
22
  import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
23
23
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
24
24
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
25
- import { N40 } from '@atlaskit/theme/colors';
25
+ import { N100, N40 } from '@atlaskit/theme/colors';
26
26
  import { borderRadius } from '@atlaskit/theme/constants';
27
27
  import messages from '../../../messages';
28
28
  import { usePresetContext } from '../../../presets/context';
@@ -42,7 +42,7 @@ var commentEditorStyles = css({
42
42
  minWidth: '272px',
43
43
  height: 'auto',
44
44
  backgroundColor: "var(--ds-background-input, white)",
45
- border: "1px solid ".concat("var(--ds-border, ".concat(N40, ")")),
45
+ border: "1px solid ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-input, ".concat(N100, ")") : "var(--ds-border, ".concat(N40, ")")),
46
46
  boxSizing: 'border-box',
47
47
  borderRadius: "".concat(borderRadius(), "px"),
48
48
  maxWidth: 'inherit',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.6.0";
2
+ export var version = "193.6.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.6.0",
3
+ "version": "193.6.6",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,9 +45,9 @@
45
45
  "@atlaskit/analytics-next": "^9.2.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^17.7.0",
48
- "@atlaskit/editor-common": "^78.19.0",
48
+ "@atlaskit/editor-common": "^78.20.0",
49
49
  "@atlaskit/editor-json-transformer": "^8.10.0",
50
- "@atlaskit/editor-plugins": "^1.8.0",
50
+ "@atlaskit/editor-plugins": "^1.9.0",
51
51
  "@atlaskit/editor-prosemirror": "3.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^2.9.0",
53
53
  "@atlaskit/emoji": "^67.6.0",
@@ -89,8 +89,8 @@
89
89
  "@atlaskit/checkbox": "^13.1.0",
90
90
  "@atlaskit/collab-provider": "9.25.13",
91
91
  "@atlaskit/dropdown-menu": "^12.8.0",
92
- "@atlaskit/editor-plugin-annotation": "1.5.0",
93
- "@atlaskit/editor-plugin-card": "^1.2.0",
92
+ "@atlaskit/editor-plugin-annotation": "1.5.1",
93
+ "@atlaskit/editor-plugin-card": "^1.3.0",
94
94
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
95
95
  "@atlaskit/editor-plugin-list": "^3.1.5",
96
96
  "@atlaskit/editor-plugin-paste": "^1.0.0",
@@ -114,7 +114,7 @@
114
114
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
115
115
  "@atlassian/feature-flags-test-utils": "^0.2.0",
116
116
  "@atlassian/link-picker-plugins": "^24.0.0",
117
- "@atlassian/search-provider": "2.4.41",
117
+ "@atlassian/search-provider": "2.4.42",
118
118
  "@atlassian/ufo": "^0.2.0",
119
119
  "@emotion/jest": "^11.8.0",
120
120
  "@storybook/addon-knobs": "^5.3.18",
@@ -131,7 +131,7 @@
131
131
  "lz-string": "^1.4.4",
132
132
  "mockdate": "^3.0.5",
133
133
  "prettier": "^2.8.0",
134
- "prosemirror-dev-tools": "^3.1.0",
134
+ "prosemirror-dev-tools": "^4.0.0",
135
135
  "raf-stub": "^2.0.1",
136
136
  "react": "^16.8.0",
137
137
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -192,8 +192,7 @@
192
192
  "referenceOnly": "true"
193
193
  },
194
194
  "platform.design-system-team.border-checkbox_nyoiu": {
195
- "type": "boolean",
196
- "referenceOnly": "true"
195
+ "type": "boolean"
197
196
  },
198
197
  "platform.design-system-team.editor-new-button_jjjdo": {
199
198
  "type": "boolean",