@atlaskit/editor-common 62.0.0 → 62.1.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,15 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 62.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b9cd2373064`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9cd2373064) - [ED-14106] Reset custom color when the node is inside a link
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 62.0.0
4
14
 
5
15
  ### Major Changes
@@ -255,6 +255,12 @@ Object.defineProperty(exports, "tasksAndDecisionsStyles", {
255
255
  return _taskDecision.tasksAndDecisionsStyles;
256
256
  }
257
257
  });
258
+ Object.defineProperty(exports, "textColorStyles", {
259
+ enumerable: true,
260
+ get: function get() {
261
+ return _textColor.textColorStyles;
262
+ }
263
+ });
258
264
  Object.defineProperty(exports, "whitespaceSharedStyles", {
259
265
  enumerable: true,
260
266
  get: function get() {
@@ -262,6 +268,8 @@ Object.defineProperty(exports, "whitespaceSharedStyles", {
262
268
  }
263
269
  });
264
270
 
271
+ var _textColor = require("./shared/text-color");
272
+
265
273
  var _table = require("./shared/table");
266
274
 
267
275
  var _annotation = require("./shared/annotation");
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.textColorStyles = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
+
12
+ var _styledComponents = require("styled-components");
13
+
14
+ var _templateObject;
15
+
16
+ var textColorStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .fabric-text-color-mark {\n color: var(--custom-text-color, inherit);\n }\n\n a .fabric-text-color-mark {\n color: unset;\n }\n"])));
17
+ exports.textColorStyles = textColorStyles;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "62.0.0",
3
+ "version": "62.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ export { textColorStyles } from './shared/text-color';
1
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding } from './shared/table';
2
3
  export { AnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
3
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1,10 @@
1
+ import { css } from 'styled-components';
2
+ export const textColorStyles = css`
3
+ .fabric-text-color-mark {
4
+ color: var(--custom-text-color, inherit);
5
+ }
6
+
7
+ a .fabric-text-color-mark {
8
+ color: unset;
9
+ }
10
+ `;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "62.0.0",
3
+ "version": "62.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ export { textColorStyles } from './shared/text-color';
1
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding } from './shared/table';
2
3
  export { AnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
3
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1,6 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject;
4
+
5
+ import { css } from 'styled-components';
6
+ export var textColorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .fabric-text-color-mark {\n color: var(--custom-text-color, inherit);\n }\n\n a .fabric-text-color-mark {\n color: unset;\n }\n"])));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "62.0.0",
3
+ "version": "62.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ export { textColorStyles } from './shared/text-color';
1
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, } from './shared/table';
2
3
  export { AnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
3
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1 @@
1
+ export declare const textColorStyles: import("styled-components").InterpolationValue[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "62.0.0",
3
+ "version": "62.1.0",
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/"
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/activity-provider": "^2.3.0",
45
- "@atlaskit/adf-schema": "^20.0.0",
45
+ "@atlaskit/adf-schema": "^20.1.0",
46
46
  "@atlaskit/adf-utils": "^14.4.0",
47
47
  "@atlaskit/analytics-namespaced-context": "^6.3.0",
48
48
  "@atlaskit/analytics-next": "^8.2.0",