@atlaskit/editor-core 178.0.1 → 178.0.2

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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 178.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2ff1c66a6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ff1c66a6ab) - [ux] ED-16490 fixed bug so big margin will not occur before a Decision node in Renderer on iOS
8
+
3
9
  ## 178.0.1
4
10
 
5
11
  ### Patch Changes
@@ -19,5 +19,5 @@ var _styles = require("@atlaskit/editor-common/styles");
19
19
 
20
20
  var _templateObject;
21
21
 
22
- var listsStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n\n ", "\n }\n"])), _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
22
+ var listsStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
23
23
  exports.listsStyles = listsStyles;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "178.0.1";
9
+ var version = "178.0.2";
10
10
  exports.version = version;
11
11
 
12
12
  var nextMajorVersion = function nextMajorVersion() {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "178.0.1",
3
+ "version": "178.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -3,20 +3,24 @@ import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
3
3
  import { browser } from '@atlaskit/editor-common/utils';
4
4
  import { codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
5
5
  export const listsStyles = css`
6
- .ProseMirror li {
7
- position: relative;
6
+ .ProseMirror {
7
+ li {
8
+ position: relative;
8
9
 
9
- > p:not(:first-child) {
10
- margin: 4px 0 0 0;
11
- }
10
+ > p:not(:first-child) {
11
+ margin: 4px 0 0 0;
12
+ }
12
13
 
13
- // In SSR the above rule will apply to all p tags because first-child would be a style tag.
14
- // The following rule resets the first p tag back to its original margin
15
- // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts
16
- > style:first-child + p {
17
- margin-top: ${blockNodesVerticalMargin};
14
+ // In SSR the above rule will apply to all p tags because first-child would be a style tag.
15
+ // The following rule resets the first p tag back to its original margin
16
+ // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts
17
+ > style:first-child + p {
18
+ margin-top: ${blockNodesVerticalMargin};
19
+ }
18
20
  }
19
21
 
20
- ${browser.safari ? codeBlockInListSafariFix : ''}
22
+ & :not([data-node-type='decisionList']) > li {
23
+ ${browser.safari ? codeBlockInListSafariFix : ''}
24
+ }
21
25
  }
22
26
  `;
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "178.0.1";
2
+ export const version = "178.0.2";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "178.0.1",
3
+ "version": "178.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -6,4 +6,4 @@ import { css } from '@emotion/react';
6
6
  import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
7
7
  import { browser } from '@atlaskit/editor-common/utils';
8
8
  import { codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
9
- export var listsStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n\n ", "\n }\n"])), blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
9
+ export var listsStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n }\n"])), blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "178.0.1";
2
+ export var version = "178.0.2";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "178.0.1",
3
+ "version": "178.0.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "178.0.1",
3
+ "version": "178.0.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,8 +29,8 @@
29
29
  "@atlaskit/adf-schema": "^25.1.0",
30
30
  "@atlaskit/adf-utils": "^18.0.0",
31
31
  "@atlaskit/analytics-gas-types": "^5.0.0",
32
- "@atlaskit/analytics-listeners": "^8.3.0",
33
- "@atlaskit/analytics-namespaced-context": "^6.5.0",
32
+ "@atlaskit/analytics-listeners": "^8.5.0",
33
+ "@atlaskit/analytics-namespaced-context": "^6.6.0",
34
34
  "@atlaskit/analytics-next": "^8.2.0",
35
35
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
36
36
  "@atlaskit/avatar": "^21.1.0",
@@ -69,7 +69,7 @@
69
69
  "@atlaskit/radio": "^5.4.0",
70
70
  "@atlaskit/section-message": "^6.3.0",
71
71
  "@atlaskit/select": "^16.1.0",
72
- "@atlaskit/smart-card": "^23.12.0",
72
+ "@atlaskit/smart-card": "^23.13.0",
73
73
  "@atlaskit/smart-user-picker": "^6.0.0",
74
74
  "@atlaskit/spinner": "^15.3.0",
75
75
  "@atlaskit/status": "^1.2.0",
@@ -134,7 +134,7 @@
134
134
  },
135
135
  "devDependencies": {
136
136
  "@atlaskit/atlassian-navigation": "^2.3.0",
137
- "@atlaskit/breadcrumbs": "11.7.7",
137
+ "@atlaskit/breadcrumbs": "11.7.8",
138
138
  "@atlaskit/code": "^14.4.0",
139
139
  "@atlaskit/collab-provider": "8.0.1",
140
140
  "@atlaskit/docs": "*",
@@ -169,7 +169,7 @@
169
169
  "@atlaskit/visual-regression": "*",
170
170
  "@atlaskit/webdriver-runner": "*",
171
171
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
172
- "@atlassian/link-picker-atlassian-plugin": "^26.0.0",
172
+ "@atlassian/link-picker-atlassian-plugin": "^26.1.0",
173
173
  "@atlassian/link-picker-plugins": "^14.1.0",
174
174
  "@atlassian/search-provider": "2.3.9",
175
175
  "@atlassian/ufo": "^0.1.0",