@atlaskit/editor-plugin-extension 0.7.3 → 0.7.4

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,12 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 0.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
8
+ - [#70460](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70460) [`2f37600156ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f37600156ae) - The internal composition of a component in this package has changed. There is no expected change in behaviour.
9
+
3
10
  ## 0.7.3
4
11
 
5
12
  ### Patch Changes
@@ -21,6 +21,7 @@ var _reactIntlNext = require("react-intl-next");
21
21
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
22
22
  var _extensions = require("@atlaskit/editor-common/extensions");
23
23
  var _addCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/add-circle"));
24
+ var _primitives = require("@atlaskit/primitives");
24
25
  var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
25
26
  var _select = _interopRequireDefault(require("@atlaskit/select"));
26
27
  var _colors = require("@atlaskit/theme/colors");
@@ -258,13 +259,13 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
258
259
  }(_react.default.Component);
259
260
  function FieldsetError(_ref) {
260
261
  var message = _ref.message;
261
- return (0, _react2.jsx)("div", {
262
- css: sectionMessageWrapperStyles
262
+ return (0, _react2.jsx)(_primitives.Box, {
263
+ xcss: sectionMessageWrapperStyles
263
264
  }, (0, _react2.jsx)(_sectionMessage.default, {
264
265
  appearance: "error"
265
266
  }, (0, _react2.jsx)("p", null, message)));
266
267
  }
267
- var sectionMessageWrapperStyles = (0, _react2.css)({
268
- marginBottom: "var(--ds-space-300, 24px)"
268
+ var sectionMessageWrapperStyles = (0, _primitives.xcss)({
269
+ marginBottom: 'space.300'
269
270
  });
270
271
  var _default = exports.default = (0, _reactIntlNext.injectIntl)(FieldsetField);
@@ -6,6 +6,7 @@ import { injectIntl } from 'react-intl-next';
6
6
  import Button from '@atlaskit/button/custom-theme-button';
7
7
  import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
8
8
  import AddCircleIcon from '@atlaskit/icon/glyph/add-circle';
9
+ import { Box, xcss } from '@atlaskit/primitives';
9
10
  import SectionMessage from '@atlaskit/section-message';
10
11
  import Select from '@atlaskit/select';
11
12
  import { N40A } from '@atlaskit/theme/colors';
@@ -215,13 +216,13 @@ class FieldsetField extends React.Component {
215
216
  function FieldsetError({
216
217
  message
217
218
  }) {
218
- return jsx("div", {
219
- css: sectionMessageWrapperStyles
219
+ return jsx(Box, {
220
+ xcss: sectionMessageWrapperStyles
220
221
  }, jsx(SectionMessage, {
221
222
  appearance: "error"
222
223
  }, jsx("p", null, message)));
223
224
  }
224
- const sectionMessageWrapperStyles = css({
225
- marginBottom: "var(--ds-space-300, 24px)"
225
+ const sectionMessageWrapperStyles = xcss({
226
+ marginBottom: 'space.300'
226
227
  });
227
228
  export default injectIntl(FieldsetField);
@@ -18,6 +18,7 @@ import { injectIntl } from 'react-intl-next';
18
18
  import Button from '@atlaskit/button/custom-theme-button';
19
19
  import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
20
20
  import AddCircleIcon from '@atlaskit/icon/glyph/add-circle';
21
+ import { Box, xcss } from '@atlaskit/primitives';
21
22
  import SectionMessage from '@atlaskit/section-message';
22
23
  import Select from '@atlaskit/select';
23
24
  import { N40A } from '@atlaskit/theme/colors';
@@ -249,13 +250,13 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
249
250
  }(React.Component);
250
251
  function FieldsetError(_ref) {
251
252
  var message = _ref.message;
252
- return jsx("div", {
253
- css: sectionMessageWrapperStyles
253
+ return jsx(Box, {
254
+ xcss: sectionMessageWrapperStyles
254
255
  }, jsx(SectionMessage, {
255
256
  appearance: "error"
256
257
  }, jsx("p", null, message)));
257
258
  }
258
- var sectionMessageWrapperStyles = css({
259
- marginBottom: "var(--ds-space-300, 24px)"
259
+ var sectionMessageWrapperStyles = xcss({
260
+ marginBottom: 'space.300'
260
261
  });
261
262
  export default injectIntl(FieldsetField);
@@ -13,6 +13,7 @@ import type {
13
13
  Parameters,
14
14
  } from '@atlaskit/editor-common/extensions';
15
15
  import { getExtensionKeyAndNodeKey } from '@atlaskit/editor-common/extensions';
16
+ import { Box, xcss } from '@atlaskit/primitives';
16
17
  import TextArea from '@atlaskit/textarea';
17
18
  import * as colors from '@atlaskit/theme/colors';
18
19
  import { token } from '@atlaskit/tokens';
@@ -23,7 +24,7 @@ import ConfigPanelWithProviders from './ConfigPanelWithProviders';
23
24
  import type { CallbackParams } from './ExtensionNodePicker';
24
25
  import ExtensionNodePicker from './ExtensionNodePicker';
25
26
 
26
- const wrapperStyles = css({ margin: token('space.200', '16px') });
27
+ const wrapperStyles = xcss({ margin: 'space.200' });
27
28
 
28
29
  const exampleWrapperStyles = css({ display: 'flex', flexDirection: 'row' });
29
30
 
@@ -180,7 +181,7 @@ export default function ConfigPanelWithExtensionPicker({
180
181
 
181
182
  return (
182
183
  <IntlProvider locale="en-AU">
183
- <div css={wrapperStyles}>
184
+ <Box xcss={wrapperStyles}>
184
185
  <div style={{ float: 'left' }} key="panel">
185
186
  {extensionNode?.node && item && (
186
187
  <ExtensionConfigPanel
@@ -211,7 +212,7 @@ export default function ConfigPanelWithExtensionPicker({
211
212
  }}
212
213
  />
213
214
  </div>
214
- </div>
215
+ </Box>
215
216
  </IntlProvider>
216
217
  );
217
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,13 +39,14 @@
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
41
41
  "@atlaskit/editor-plugin-width": "^0.2.0",
42
- "@atlaskit/editor-prosemirror": "1.1.0",
42
+ "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^2.9.0",
44
44
  "@atlaskit/editor-tables": "^2.5.0",
45
45
  "@atlaskit/empty-state": "^7.6.0",
46
46
  "@atlaskit/form": "^9.0.3",
47
47
  "@atlaskit/icon": "^22.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
49
+ "@atlaskit/primitives": "^2.0.0",
49
50
  "@atlaskit/radio": "^6.0.0",
50
51
  "@atlaskit/section-message": "^6.4.0",
51
52
  "@atlaskit/select": "^17.0.3",