@atlaskit/editor-plugin-code-block-advanced 11.0.6 → 11.0.8

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,19 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 11.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`38d753a24e9ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38d753a24e9ad) -
8
+ Promote code block wrap and line number attrs to the full ADF schema
9
+ - Updated dependencies
10
+
11
+ ## 11.0.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 11.0.6
4
18
 
5
19
  ### Patch Changes
@@ -124,7 +124,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
124
124
  }]];
125
125
  };
126
126
  var codeBlockNodeWithFixedToDOM = exports.codeBlockNodeWithFixedToDOM = function codeBlockNodeWithFixedToDOM(config) {
127
- return _objectSpread(_objectSpread({}, (0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? _adfSchema.codeBlockWithExtendedAttributes : (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.codeBlockWithLocalId : _adfSchema.codeBlock), {}, {
127
+ return _objectSpread(_objectSpread({}, (0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? _adfSchema.codeBlock : (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.codeBlockWithLocalId : _adfSchema.codeBlock), {}, {
128
128
  toDOM: function toDOM(node) {
129
129
  return _toDOM(node, '', config);
130
130
  }
@@ -1,4 +1,4 @@
1
- import { codeBlock, codeBlockWithExtendedAttributes, codeBlockWithLocalId } from '@atlaskit/adf-schema';
1
+ import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema';
2
2
  import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
3
3
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
4
4
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
@@ -107,7 +107,7 @@ const toDOM = (node, formattedAriaLabel, config) => {
107
107
  };
108
108
  export const codeBlockNodeWithFixedToDOM = config => {
109
109
  return {
110
- ...(expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlockWithExtendedAttributes : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock),
110
+ ...(expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlock : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock),
111
111
  toDOM: node => toDOM(node, '', config)
112
112
  };
113
113
  };
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- import { codeBlock, codeBlockWithExtendedAttributes, codeBlockWithLocalId } from '@atlaskit/adf-schema';
5
+ import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema';
6
6
  import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
7
7
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
8
8
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
@@ -117,7 +117,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
117
117
  }]];
118
118
  };
119
119
  export var codeBlockNodeWithFixedToDOM = function codeBlockNodeWithFixedToDOM(config) {
120
- return _objectSpread(_objectSpread({}, expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlockWithExtendedAttributes : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock), {}, {
120
+ return _objectSpread(_objectSpread({}, expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlock : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock), {}, {
121
121
  toDOM: function toDOM(node) {
122
122
  return _toDOM(node, '', config);
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "11.0.6",
3
+ "version": "11.0.8",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,7 +28,7 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^52.16.0",
31
+ "@atlaskit/adf-schema": "^53.0.0",
32
32
  "@atlaskit/code": "^17.5.0",
33
33
  "@atlaskit/editor-plugin-code-block": "^13.1.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^11.0.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/prosemirror-history": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^93.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^94.0.0",
42
42
  "@atlaskit/tokens": "^13.3.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@codemirror/autocomplete": "6.18.4",
@@ -56,7 +56,7 @@
56
56
  "codemirror-lang-elixir": "4.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^115.7.0",
59
+ "@atlaskit/editor-common": "^115.10.0",
60
60
  "react": "^18.2.0",
61
61
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
62
62
  },
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  codeBlock,
3
- codeBlockWithExtendedAttributes,
4
3
  codeBlockWithLocalId,
5
4
  } from '@atlaskit/adf-schema';
6
5
  import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
@@ -170,7 +169,7 @@ const toDOM = (node: Node, formattedAriaLabel: string, config: Config): DOMOutpu
170
169
  export const codeBlockNodeWithFixedToDOM = (config: Config): NodeSpec => {
171
170
  return {
172
171
  ...(expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)
173
- ? codeBlockWithExtendedAttributes
172
+ ? codeBlock
174
173
  : fg('platform_editor_adf_with_localid')
175
174
  ? codeBlockWithLocalId
176
175
  : codeBlock),