@atlaskit/editor-plugin-block-type 3.12.1 → 3.13.0

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,22 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 3.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#130825](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130825)
8
+ [`d8a00de5637ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8a00de5637ff) -
9
+ ENGHEALTH-9890: Bumps React peer dependency for Lego editor plugins
10
+
11
+ ## 3.12.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#130260](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130260)
16
+ [`d338ce6e4ff6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d338ce6e4ff6e) -
17
+ Use blockquoteSharedStylesNew when feature gate for increase padding is enabled
18
+ - Updated dependencies
19
+
3
20
  ## 3.12.1
4
21
 
5
22
  ### Patch Changes
@@ -8,8 +8,9 @@ exports.blocktypeStyles = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _styles = require("@atlaskit/editor-common/styles");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
13
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
13
14
  var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles() {
14
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)());
15
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), (0, _platformFeatureFlags.fg)('platform_editor_element_padding_changes_gate') ? _styles.blockquoteSharedStylesNew : _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)());
15
16
  };
@@ -1,11 +1,12 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
3
+ import { blockquoteSharedStyles, blockquoteSharedStylesNew, headingsSharedStyles } from '@atlaskit/editor-common/styles';
4
+ import { fg } from '@atlaskit/platform-feature-flags';
4
5
 
5
6
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
6
7
  export const blocktypeStyles = () => css`
7
8
  .ProseMirror {
8
- ${blockquoteSharedStyles};
9
+ ${fg('platform_editor_element_padding_changes_gate') ? blockquoteSharedStylesNew : blockquoteSharedStyles};
9
10
  ${headingsSharedStyles()};
10
11
  }
11
12
  `;
@@ -2,9 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
- import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-common/styles';
5
+ import { blockquoteSharedStyles, blockquoteSharedStylesNew, headingsSharedStyles } from '@atlaskit/editor-common/styles';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
 
7
8
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
8
9
  export var blocktypeStyles = function blocktypeStyles() {
9
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), blockquoteSharedStyles, headingsSharedStyles());
10
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), fg('platform_editor_element_padding_changes_gate') ? blockquoteSharedStylesNew : blockquoteSharedStyles, headingsSharedStyles());
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "3.12.1",
3
+ "version": "3.13.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,13 +36,13 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/adf-schema": "^40.8.1",
39
- "@atlaskit/editor-common": "^87.10.0",
39
+ "@atlaskit/editor-common": "^87.12.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^1.7.0",
41
41
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
42
42
  "@atlaskit/editor-prosemirror": "5.0.1",
43
43
  "@atlaskit/editor-shared-styles": "^2.13.0",
44
44
  "@atlaskit/editor-tables": "^2.8.0",
45
- "@atlaskit/icon": "^22.12.0",
45
+ "@atlaskit/icon": "^22.13.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
47
  "@atlaskit/prosemirror-input-rules": "^3.2.0",
48
48
  "@atlaskit/theme": "^13.0.0",
@@ -51,15 +51,15 @@
51
51
  "@emotion/react": "^11.7.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "react": "^16.8.0",
54
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@af/visual-regression": "*",
59
59
  "@atlaskit/analytics-next": "^10.1.0",
60
60
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
61
- "@atlaskit/editor-plugin-quick-insert": "^1.2.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^1.7.0",
61
+ "@atlaskit/editor-plugin-quick-insert": "^1.3.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
63
63
  "@atlaskit/ssr": "*",
64
64
  "@atlaskit/visual-regression": "*",
65
65
  "@testing-library/react": "^12.1.5",
@@ -104,6 +104,9 @@
104
104
  "platform-feature-flags": {
105
105
  "platform_editor_migration_icon_and_typography": {
106
106
  "type": "boolean"
107
+ },
108
+ "platform_editor_element_padding_changes_gate": {
109
+ "type": "boolean"
107
110
  }
108
111
  }
109
112
  }