@atlaskit/editor-core 226.3.4 → 226.3.5

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,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 226.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a6c26b16402ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6c26b16402ca) -
8
+ Migrate nine dogfooding editor experiments from `@atlaskit/tmp-editor-statsig` to the Platform
9
+ experiment API and move their tests to Platform experiment mocks.
10
+ - Updated dependencies
11
+
3
12
  ## 226.3.4
4
13
 
5
14
  ### Patch Changes
@@ -57,7 +57,7 @@ var GRID_GUTTER = 12;
57
57
  var blockNodesVerticalMargin = '0.75rem';
58
58
  var fontSize14px = "".concat(14 / 16, "rem");
59
59
  var scaledBlockNodesVerticalMargin = '0.75em';
60
- // Block spacing hook (gated by expValEquals('platform_editor_extension_block_spacing')).
60
+ // Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
61
61
  // When the experiment is on, these variants re-declare the block margins to read from the
62
62
  // `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
63
63
  // When the experiment is off, none of these are applied and behaviour is identical to before.
@@ -409,7 +409,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
409
409
  var browser = (0, _browser.getBrowserInfo)();
410
410
 
411
411
  // Evaluate the block-spacing experiment once per render.
412
- var isBlockSpacingEnabled = (0, _expValEquals.expValEquals)('platform_editor_extension_block_spacing', 'isEnabled', true);
412
+ var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
413
413
  var isFloatingTocEnabled = (0, _expValEquals.expValEquals)('platform_editor_floating_toc', 'isEnabled', true);
414
414
  return /*#__PURE__*/_react.default.createElement("div", {
415
415
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -155,7 +155,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
155
155
  var browser = (0, _browser.getBrowserInfo)();
156
156
 
157
157
  // Evaluate the block-spacing experiment once per render.
158
- var isBlockSpacingEnabled = (0, _expValEquals.expValEquals)('platform_editor_extension_block_spacing', 'isEnabled', true);
158
+ var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
159
159
  var isFloatingTocEnabled = (0, _expValEquals.expValEquals)('platform_editor_floating_toc', 'isEnabled', true);
160
160
  return (0, _react2.jsx)("div", {
161
161
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "226.3.3";
9
+ var version = exports.version = "226.3.4";
@@ -51,7 +51,7 @@ const GRID_GUTTER = 12;
51
51
  const blockNodesVerticalMargin = '0.75rem';
52
52
  const fontSize14px = `${14 / 16}rem`;
53
53
  const scaledBlockNodesVerticalMargin = '0.75em';
54
- // Block spacing hook (gated by expValEquals('platform_editor_extension_block_spacing')).
54
+ // Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
55
55
  // When the experiment is on, these variants re-declare the block margins to read from the
56
56
  // `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
57
57
  // When the experiment is off, none of these are applied and behaviour is identical to before.
@@ -464,7 +464,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
464
464
  const browser = getBrowserInfo();
465
465
 
466
466
  // Evaluate the block-spacing experiment once per render.
467
- const isBlockSpacingEnabled = expValEquals('platform_editor_extension_block_spacing', 'isEnabled', true);
467
+ const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
468
468
  const isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
469
469
  return /*#__PURE__*/React.createElement("div", {
470
470
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -157,7 +157,7 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
157
157
  const browser = getBrowserInfo();
158
158
 
159
159
  // Evaluate the block-spacing experiment once per render.
160
- const isBlockSpacingEnabled = expValEquals('platform_editor_extension_block_spacing', 'isEnabled', true);
160
+ const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
161
161
  const isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
162
162
  return jsx("div", {
163
163
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "226.3.3";
3
+ export const version = "226.3.4";
@@ -56,7 +56,7 @@ var GRID_GUTTER = 12;
56
56
  var blockNodesVerticalMargin = '0.75rem';
57
57
  var fontSize14px = "".concat(14 / 16, "rem");
58
58
  var scaledBlockNodesVerticalMargin = '0.75em';
59
- // Block spacing hook (gated by expValEquals('platform_editor_extension_block_spacing')).
59
+ // Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
60
60
  // When the experiment is on, these variants re-declare the block margins to read from the
61
61
  // `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
62
62
  // When the experiment is off, none of these are applied and behaviour is identical to before.
@@ -408,7 +408,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
408
408
  var browser = getBrowserInfo();
409
409
 
410
410
  // Evaluate the block-spacing experiment once per render.
411
- var isBlockSpacingEnabled = expValEquals('platform_editor_extension_block_spacing', 'isEnabled', true);
411
+ var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
412
412
  var isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
413
413
  return /*#__PURE__*/React.createElement("div", {
414
414
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -152,7 +152,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
152
152
  var browser = getBrowserInfo();
153
153
 
154
154
  // Evaluate the block-spacing experiment once per render.
155
- var isBlockSpacingEnabled = expValEquals('platform_editor_extension_block_spacing', 'isEnabled', true);
155
+ var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
156
156
  var isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
157
157
  return jsx("div", {
158
158
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "226.3.3";
3
+ export var version = "226.3.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "226.3.4",
3
+ "version": "226.3.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/react-compiler-gating": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^7.8.0",
76
76
  "@atlaskit/task-decision": "^21.9.0",
77
- "@atlaskit/tmp-editor-statsig": "^173.0.0",
77
+ "@atlaskit/tmp-editor-statsig": "^174.0.0",
78
78
  "@atlaskit/tokens": "^16.11.0",
79
79
  "@atlaskit/tooltip": "^24.3.0",
80
80
  "@atlaskit/width-detector": "^7.2.0",
@@ -92,7 +92,7 @@
92
92
  "uuid": "^3.1.0"
93
93
  },
94
94
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^120.11.0",
95
+ "@atlaskit/editor-common": "^120.12.0",
96
96
  "@atlaskit/link-provider": "^5.5.0",
97
97
  "@atlaskit/media-core": "^38.2.0",
98
98
  "react": "^18.2.0",
@@ -136,7 +136,7 @@
136
136
  "@atlaskit/editor-plugin-text-color": "^16.1.0",
137
137
  "@atlaskit/editor-plugin-toolbar-lists-indentation": "^17.1.0",
138
138
  "@atlaskit/editor-plugin-track-changes": "^15.0.0",
139
- "@atlaskit/editor-synced-block-provider": "^12.1.0",
139
+ "@atlaskit/editor-synced-block-provider": "^12.2.0",
140
140
  "@atlaskit/editor-synced-block-renderer": "^14.1.0",
141
141
  "@atlaskit/editor-test-helpers": "workspace:^",
142
142
  "@atlaskit/form": "^17.2.0",