@atlaskit/editor-plugin-code-block-advanced 6.2.18 → 6.2.19

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-plugin-code-block-advanced
2
2
 
3
+ ## 6.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e9827c9930323`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9827c9930323) -
8
+ NO-ISSUE, add missing gating of `confluence_compact_text_format` to advanced code blocks
9
+ experiment to reach parity with old cc_editor_ai_content_mode experiment.
10
+ - Updated dependencies
11
+
3
12
  ## 6.2.18
4
13
 
5
14
  ### Patch Changes
@@ -134,7 +134,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
134
134
  this.dom.appendChild(spaceContainer);
135
135
 
136
136
  // Observe size changes of the CodeMirror DOM and request a measurement pass
137
- if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) {
137
+ if ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) {
138
138
  this.ro = new ResizeObserver(function (entries) {
139
139
  // Skip measurements when:
140
140
  // 1. Currently updating (prevents feedback loops)
@@ -188,7 +188,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
188
188
  // codemirror
189
189
  this.clearProseMirrorDecorations();
190
190
  (_this$cleanupDisabled = this.cleanupDisabledState) === null || _this$cleanupDisabled === void 0 || _this$cleanupDisabled.call(this);
191
- if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) {
191
+ if ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) {
192
192
  var _this$ro;
193
193
  (_this$ro = this.ro) === null || _this$ro === void 0 || _this$ro.disconnect();
194
194
  }
@@ -108,7 +108,7 @@ class CodeBlockAdvancedNodeView {
108
108
  this.dom.appendChild(spaceContainer);
109
109
 
110
110
  // Observe size changes of the CodeMirror DOM and request a measurement pass
111
- if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
111
+ if (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
112
112
  this.ro = new ResizeObserver(entries => {
113
113
  // Skip measurements when:
114
114
  // 1. Currently updating (prevents feedback loops)
@@ -151,7 +151,7 @@ class CodeBlockAdvancedNodeView {
151
151
  // codemirror
152
152
  this.clearProseMirrorDecorations();
153
153
  (_this$cleanupDisabled = this.cleanupDisabledState) === null || _this$cleanupDisabled === void 0 ? void 0 : _this$cleanupDisabled.call(this);
154
- if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
154
+ if (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
155
155
  var _this$ro;
156
156
  (_this$ro = this.ro) === null || _this$ro === void 0 ? void 0 : _this$ro.disconnect();
157
157
  }
@@ -128,7 +128,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
128
128
  this.dom.appendChild(spaceContainer);
129
129
 
130
130
  // Observe size changes of the CodeMirror DOM and request a measurement pass
131
- if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
131
+ if (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
132
132
  this.ro = new ResizeObserver(function (entries) {
133
133
  // Skip measurements when:
134
134
  // 1. Currently updating (prevents feedback loops)
@@ -182,7 +182,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
182
182
  // codemirror
183
183
  this.clearProseMirrorDecorations();
184
184
  (_this$cleanupDisabled = this.cleanupDisabledState) === null || _this$cleanupDisabled === void 0 || _this$cleanupDisabled.call(this);
185
- if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
185
+ if (expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp')) {
186
186
  var _this$ro;
187
187
  (_this$ro = this.ro) === null || _this$ro === void 0 || _this$ro.disconnect();
188
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "6.2.18",
3
+ "version": "6.2.19",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-prosemirror": "^7.2.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/prosemirror-history": "^0.2.0",
40
- "@atlaskit/tmp-editor-statsig": "^16.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^16.2.0",
41
41
  "@atlaskit/tokens": "^9.0.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@codemirror/autocomplete": "6.18.4",
@@ -54,7 +54,7 @@
54
54
  "codemirror-lang-elixir": "4.0.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^110.46.0",
57
+ "@atlaskit/editor-common": "^110.48.0",
58
58
  "react": "^18.2.0",
59
59
  "react-intl-next": "npm:react-intl@^5.18.1"
60
60
  },
@@ -174,8 +174,9 @@ class CodeBlockAdvancedNodeView implements NodeView {
174
174
 
175
175
  // Observe size changes of the CodeMirror DOM and request a measurement pass
176
176
  if (
177
- expValEquals('cc_editor_ai_content_mode', 'variant', 'test') &&
178
- fg('platform_editor_content_mode_button_mvp')
177
+ expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
178
+ (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') &&
179
+ fg('platform_editor_content_mode_button_mvp'))
179
180
  ) {
180
181
  this.ro = new ResizeObserver((entries) => {
181
182
  // Skip measurements when:
@@ -220,8 +221,9 @@ class CodeBlockAdvancedNodeView implements NodeView {
220
221
  this.clearProseMirrorDecorations();
221
222
  this.cleanupDisabledState?.();
222
223
  if (
223
- expValEquals('cc_editor_ai_content_mode', 'variant', 'test') &&
224
- fg('platform_editor_content_mode_button_mvp')
224
+ expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
225
+ (expValEquals('cc_editor_ai_content_mode', 'variant', 'test') &&
226
+ fg('platform_editor_content_mode_button_mvp'))
225
227
  ) {
226
228
  this.ro?.disconnect();
227
229
  }