@atlaskit/adf-schema 56.1.13 → 56.1.15

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,21 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 56.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9cb51fee86454`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9cb51fee86454) -
8
+ Remove support for React 16 and 17 in preparation for React 19 migration.
9
+ - Updated dependencies
10
+
11
+ ## 56.1.14
12
+
13
+ ### Patch Changes
14
+
15
+ - [`9e160952215f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e160952215f0) -
16
+ [EDITOR-8193] gate the yellow text color token update behind the parent experiment
17
+ - Updated dependencies
18
+
3
19
  ## 56.1.13
4
20
 
5
21
  ### Patch Changes
@@ -12,6 +12,7 @@ exports.hexToEditorTextPaletteColor = hexToEditorTextPaletteColor;
12
12
  exports.textBackgroundColorPalette = void 0;
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
16
  function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
16
17
  /**
17
18
  * This takes an adf hex color and returns a matching border palette color.
@@ -132,7 +133,7 @@ var editorTextPalette = exports.editorTextPalette = (0, _defineProperty2.default
132
133
  /** magenta - strong */
133
134
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)'
134
135
  }, '#B38600', function () {
135
- return (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
136
+ return (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
136
137
  }), '#7F5F01', 'var(--ds-text-accent-yellow, #7F5F01)');
137
138
 
138
139
  /**
@@ -1,4 +1,5 @@
1
1
  import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
2
3
 
3
4
  /**
4
5
  * This takes an adf hex color and returns a matching border palette color.
@@ -120,7 +121,7 @@ export const editorTextPalette = {
120
121
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)',
121
122
  /** yellow - medium */
122
123
  get ['#B38600']() {
123
- return fg('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
124
+ 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)';
124
125
  },
125
126
  /** yellow - strong */
126
127
  '#7F5F01': 'var(--ds-text-accent-yellow, #7F5F01)'
@@ -1,6 +1,7 @@
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
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
5
 
5
6
  /**
6
7
  * This takes an adf hex color and returns a matching border palette color.
@@ -121,7 +122,7 @@ export var editorTextPalette = _defineProperty(_defineAccessor("get", {
121
122
  /** magenta - strong */
122
123
  '#943D73': 'var(--ds-text-accent-magenta, #943D73)'
123
124
  }, '#B38600', function () {
124
- return fg('platform_editor_lovability_text_bg_color_patch_1') ? 'var(--ds-border-accent-yellow, #B38600)' : 'var(--ds-icon-accent-yellow, #B38600)';
125
+ 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)';
125
126
  }), '#7F5F01', 'var(--ds-text-accent-yellow, #7F5F01)');
126
127
 
127
128
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "56.1.13",
3
+ "version": "56.1.15",
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": "^3.1.0",
41
41
  "@atlaskit/editor-prosemirror": "^8.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^132.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^132.3.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^3.0.3",
@@ -80,7 +80,7 @@
80
80
  "json-schema-diff-validator": "^0.4.1",
81
81
  "prettier": "^3.2.5",
82
82
  "prop-types": "^15.5.10",
83
- "react": "^16.8.0",
83
+ "react": "^18.2.0",
84
84
  "react-dom": "^18.2.0",
85
85
  "react-magnetic-di": "^3.1.4",
86
86
  "rxjs": "^5.5.0",