@atlaskit/editor-plugin-code-block-advanced 10.0.11 → 10.0.13

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
+ ## 10.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2fb1c8a74a856`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fb1c8a74a856) -
8
+ ADF Change 101: Add wrap and hideLineNumbers attributes to codeBlock stage-0 variants
9
+ - Updated dependencies
10
+
11
+ ## 10.0.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 10.0.11
4
18
 
5
19
  ### Patch Changes
@@ -85,7 +85,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
85
85
  }]];
86
86
  };
87
87
  var codeBlockNodeWithFixedToDOM = exports.codeBlockNodeWithFixedToDOM = function codeBlockNodeWithFixedToDOM(config) {
88
- return _objectSpread(_objectSpread({}, (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.codeBlockWithLocalId : _adfSchema.codeBlock), {}, {
88
+ 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), {}, {
89
89
  toDOM: function toDOM(node) {
90
90
  return _toDOM(node, '', config);
91
91
  }
@@ -1,4 +1,4 @@
1
- import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema';
1
+ import { codeBlock, codeBlockWithExtendedAttributes, codeBlockWithLocalId } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -73,7 +73,7 @@ const toDOM = (node, formattedAriaLabel, config) => {
73
73
  };
74
74
  export const codeBlockNodeWithFixedToDOM = config => {
75
75
  return {
76
- ...(fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock),
76
+ ...(expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlockWithExtendedAttributes : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock),
77
77
  toDOM: node => toDOM(node, '', config)
78
78
  };
79
79
  };
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
- import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema';
4
+ import { codeBlock, codeBlockWithExtendedAttributes, codeBlockWithLocalId } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
6
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -78,7 +78,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
78
78
  }]];
79
79
  };
80
80
  export var codeBlockNodeWithFixedToDOM = function codeBlockNodeWithFixedToDOM(config) {
81
- return _objectSpread(_objectSpread({}, fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock), {}, {
81
+ return _objectSpread(_objectSpread({}, expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? codeBlockWithExtendedAttributes : fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock), {}, {
82
82
  toDOM: function toDOM(node) {
83
83
  return _toDOM(node, '', config);
84
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "10.0.11",
3
+ "version": "10.0.13",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,8 +28,8 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^52.6.0",
32
- "@atlaskit/code": "^17.4.0",
31
+ "@atlaskit/adf-schema": "^52.8.0",
32
+ "@atlaskit/code": "^17.5.0",
33
33
  "@atlaskit/editor-plugin-code-block": "^12.0.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
35
35
  "@atlaskit/editor-plugin-find-replace": "^10.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": "^73.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^74.7.0",
42
42
  "@atlaskit/tokens": "^13.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@codemirror/autocomplete": "6.18.4",
@@ -55,7 +55,7 @@
55
55
  "codemirror-lang-elixir": "4.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^114.13.0",
58
+ "@atlaskit/editor-common": "^114.18.0",
59
59
  "react": "^18.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
61
61
  },
@@ -1,4 +1,4 @@
1
- import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema';
1
+ import { codeBlock, codeBlockWithExtendedAttributes, codeBlockWithLocalId } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
4
4
  import type { NodeSpec, DOMOutputSpec, Node } from '@atlaskit/editor-prosemirror/model';
@@ -115,7 +115,11 @@ const toDOM = (node: Node, formattedAriaLabel: string, config: Config): DOMOutpu
115
115
 
116
116
  export const codeBlockNodeWithFixedToDOM = (config: Config): NodeSpec => {
117
117
  return {
118
- ...(fg('platform_editor_adf_with_localid') ? codeBlockWithLocalId : codeBlock),
118
+ ...(expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)
119
+ ? codeBlockWithExtendedAttributes
120
+ : fg('platform_editor_adf_with_localid')
121
+ ? codeBlockWithLocalId
122
+ : codeBlock),
119
123
  toDOM: (node) => toDOM(node, '', config),
120
124
  };
121
125
  };