@atlaskit/adf-schema 57.6.10 → 57.6.12

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,20 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 57.6.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 57.6.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a13383c3c99b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a13383c3c99b2) -
14
+ [FFCLEANUP-192944] clean up code references to patch gates
15
+ `platform_editor_lovability_text_bg_color_patch_1` and
16
+ `platform_editor_lovability_text_bg_color_patch_2`.
17
+
3
18
  ## 57.6.10
4
19
 
5
20
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.backgroundColorPaletteNew = exports.backgroundColorPalette = exports.backgroundColor = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- var _fg = require("@atlaskit/platform-feature-flags/fg");
11
10
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
12
11
  var _markTypes = require("../../next-schema/generated/markTypes");
13
12
  var _colors = require("../../utils/colors");
@@ -74,7 +73,7 @@ var isSupportedBackgroundColor = function isSupportedBackgroundColor(hexColor) {
74
73
  if (backgroundColorPalette.has(hexColor)) {
75
74
  return true;
76
75
  }
77
- return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor) && (hexColor !== _colors.R200.toLowerCase() || (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_1'));
76
+ return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor);
78
77
  };
79
78
  var backgroundColor = exports.backgroundColor = (0, _markTypes.backgroundColor)({
80
79
  parseDOM: [{
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.textBackgroundColorPalette = exports.editorTextPalette = exports.editorBorderPalette = exports.editorBackgroundPalette = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _fg = require("@atlaskit/platform-feature-flags/fg");
10
9
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
11
10
  function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
12
11
  var editorBorderPalette = exports.editorBorderPalette = {
@@ -79,7 +78,7 @@ var editorTextPalette = exports.editorTextPalette = (0, _defineProperty2.default
79
78
  /** magenta - strong */
80
79
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)'
81
80
  }, '#B38600', function () {
82
- return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
81
+ return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
83
82
  }), '#7F5F01', 'var(--ds-text-accent-yellow, #7F5F01)');
84
83
  var textBackgroundColorPalette = exports.textBackgroundColorPalette = {
85
84
  /** Gray - light */
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags/fg';
2
1
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
2
  import { backgroundColor as backgroundColorFactory } from '../../next-schema/generated/markTypes';
4
3
  import { B75, G75, L200, M200, Neutral300, O200, P200, R200, T200, Yellow200 } from '../../utils/colors';
@@ -56,7 +55,7 @@ const isSupportedBackgroundColor = hexColor => {
56
55
  if (backgroundColorPalette.has(hexColor)) {
57
56
  return true;
58
57
  }
59
- return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor) && (hexColor !== R200.toLowerCase() || fg('platform_editor_lovability_text_bg_color_patch_1'));
58
+ return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor);
60
59
  };
61
60
  export const backgroundColor = backgroundColorFactory({
62
61
  parseDOM: [{
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags/fg';
2
1
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
2
  export const editorBorderPalette = {
4
3
  /** gray - subtle */
@@ -71,7 +70,7 @@ export const editorTextPalette = {
71
70
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)',
72
71
  /** yellow - medium */
73
72
  get ['#B38600']() {
74
- return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
73
+ return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
75
74
  },
76
75
  /** yellow - strong */
77
76
  '#7F5F01': 'var(--ds-text-accent-yellow, #7F5F01)'
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import { fg } from '@atlaskit/platform-feature-flags/fg';
4
3
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
5
4
  import { backgroundColor as backgroundColorFactory } from '../../next-schema/generated/markTypes';
6
5
  import { B75, G75, L200, M200, Neutral300, O200, P200, R200, T200, Yellow200 } from '../../utils/colors';
@@ -68,7 +67,7 @@ var isSupportedBackgroundColor = function isSupportedBackgroundColor(hexColor) {
68
67
  if (backgroundColorPalette.has(hexColor)) {
69
68
  return true;
70
69
  }
71
- return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor) && (hexColor !== R200.toLowerCase() || fg('platform_editor_lovability_text_bg_color_patch_1'));
70
+ return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && backgroundColorPaletteNew.has(hexColor);
72
71
  };
73
72
  export var backgroundColor = backgroundColorFactory({
74
73
  parseDOM: [{
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
3
- import { fg } from '@atlaskit/platform-feature-flags/fg';
4
3
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
5
4
  export var editorBorderPalette = {
6
5
  /** gray - subtle */
@@ -72,7 +71,7 @@ export var editorTextPalette = _defineProperty(_defineAccessor("get", {
72
71
  /** magenta - strong */
73
72
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)'
74
73
  }, '#B38600', function () {
75
- return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
74
+ return expValEqualsNoExposure('platform_editor_lovability_text_bg_color', 'isEnabled', true) ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
76
75
  }), '#7F5F01', 'var(--ds-text-accent-yellow, #7F5F01)');
77
76
  export var textBackgroundColorPalette = {
78
77
  /** Gray - light */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "57.6.10",
3
+ "version": "57.6.12",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/adf-schema-generator": "^4.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^9.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.2.0",
43
- "@atlaskit/tmp-editor-statsig": "^211.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^212.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^5.0.2",
@@ -53,9 +53,6 @@
53
53
  },
54
54
  "platform_bugfix_invalid_urls_parsing_in_editor": {
55
55
  "type": "boolean"
56
- },
57
- "platform_editor_lovability_text_bg_color_patch_1": {
58
- "type": "boolean"
59
56
  }
60
57
  },
61
58
  "devDependencies": {