@atlaskit/editor-plugin-code-block 8.1.20 → 8.1.22

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/editor-plugin-code-block
2
2
 
3
+ ## 8.1.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f03725ffb7b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f03725ffb7b8) -
8
+ Removing feature flag with changing internal use of custom icons.
9
+ - Updated dependencies
10
+
11
+ ## 8.1.21
12
+
13
+ ### Patch Changes
14
+
15
+ - [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
16
+ Icon entrypoint migration
17
+ - Updated dependencies
18
+
3
19
  ## 8.1.20
4
20
 
5
21
  ### Patch Changes
@@ -14,7 +14,6 @@ var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
14
14
  var _utils = require("@atlaskit/editor-prosemirror/utils");
15
15
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
16
16
  var _copy = _interopRequireDefault(require("@atlaskit/icon/core/migration/copy"));
17
- var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
18
17
  var _textWrap = _interopRequireDefault(require("@atlaskit/icon/core/text-wrap"));
19
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _editorCommands = require("../editor-commands");
@@ -144,7 +143,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
144
143
  type: 'button',
145
144
  appearance: 'danger',
146
145
  icon: _delete.default,
147
- iconFallback: _deleteEditorRemove.default,
146
+ iconFallback: _delete.default,
148
147
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
149
148
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
150
149
  onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.WrapIcon = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _icon = _interopRequireDefault(require("@atlaskit/icon"));
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
9
  var CustomGlyph = function CustomGlyph() {
12
10
  return /*#__PURE__*/_react.default.createElement("svg", {
13
11
  width: "24",
@@ -24,13 +22,8 @@ var CustomGlyph = function CustomGlyph() {
24
22
  })));
25
23
  };
26
24
  var WrapIcon = exports.WrapIcon = function WrapIcon() {
27
- return (0, _platformFeatureFlags.fg)('platform-custom-icon-migration') ?
28
- /*#__PURE__*/
29
25
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
30
- _react.default.createElement(CustomGlyph, {
26
+ return /*#__PURE__*/_react.default.createElement(CustomGlyph, {
31
27
  "aria-label": "wrapIcon"
32
- }) : /*#__PURE__*/_react.default.createElement(_icon.default, {
33
- glyph: CustomGlyph,
34
- label: "wrapIcon"
35
28
  });
36
29
  };
@@ -4,7 +4,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
4
4
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
5
5
  import DeleteIcon from '@atlaskit/icon/core/delete';
6
6
  import CopyIcon from '@atlaskit/icon/core/migration/copy';
7
- import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
8
7
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
9
8
  import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { changeLanguage, copyContentToClipboardWithAnalytics, removeCodeBlockWithAnalytics, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
@@ -120,7 +119,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
120
119
  type: 'button',
121
120
  appearance: 'danger',
122
121
  icon: DeleteIcon,
123
- iconFallback: RemoveIcon,
122
+ iconFallback: DeleteIcon,
124
123
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
125
124
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
126
125
  onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import Icon from '@atlaskit/icon';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
2
  const CustomGlyph = () => /*#__PURE__*/React.createElement("svg", {
5
3
  width: "24",
6
4
  height: "24",
@@ -15,13 +13,8 @@ const CustomGlyph = () => /*#__PURE__*/React.createElement("svg", {
15
13
  fillRule: "evenodd"
16
14
  })));
17
15
  export const WrapIcon = () => {
18
- return fg('platform-custom-icon-migration') ?
19
- /*#__PURE__*/
20
16
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
21
- React.createElement(CustomGlyph, {
17
+ return /*#__PURE__*/React.createElement(CustomGlyph, {
22
18
  "aria-label": "wrapIcon"
23
- }) : /*#__PURE__*/React.createElement(Icon, {
24
- glyph: CustomGlyph,
25
- label: "wrapIcon"
26
19
  });
27
20
  };
@@ -8,7 +8,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
8
8
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
9
  import DeleteIcon from '@atlaskit/icon/core/delete';
10
10
  import CopyIcon from '@atlaskit/icon/core/migration/copy';
11
- import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
12
11
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
13
12
  import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { changeLanguage, copyContentToClipboardWithAnalytics, removeCodeBlockWithAnalytics, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
@@ -135,7 +134,7 @@ export var getToolbarConfig = function getToolbarConfig() {
135
134
  type: 'button',
136
135
  appearance: 'danger',
137
136
  icon: DeleteIcon,
138
- iconFallback: RemoveIcon,
137
+ iconFallback: DeleteIcon,
139
138
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
140
139
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
141
140
  onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import Icon from '@atlaskit/icon';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
2
  var CustomGlyph = function CustomGlyph() {
5
3
  return /*#__PURE__*/React.createElement("svg", {
6
4
  width: "24",
@@ -17,13 +15,8 @@ var CustomGlyph = function CustomGlyph() {
17
15
  })));
18
16
  };
19
17
  export var WrapIcon = function WrapIcon() {
20
- return fg('platform-custom-icon-migration') ?
21
- /*#__PURE__*/
22
18
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
23
- React.createElement(CustomGlyph, {
19
+ return /*#__PURE__*/React.createElement(CustomGlyph, {
24
20
  "aria-label": "wrapIcon"
25
- }) : /*#__PURE__*/React.createElement(Icon, {
26
- glyph: CustomGlyph,
27
- label: "wrapIcon"
28
21
  });
29
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "8.1.20",
3
+ "version": "8.1.22",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,10 +27,10 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^51.5.1",
31
- "@atlaskit/code": "^17.3.0",
30
+ "@atlaskit/adf-schema": "^51.5.0",
31
+ "@atlaskit/code": "^17.4.0",
32
32
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
33
- "@atlaskit/editor-plugin-block-menu": "^5.1.0",
33
+ "@atlaskit/editor-plugin-block-menu": "^5.2.0",
34
34
  "@atlaskit/editor-plugin-composition": "^5.0.0",
35
35
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
36
36
  "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
@@ -38,16 +38,16 @@
38
38
  "@atlaskit/editor-plugin-interaction": "^10.0.0",
39
39
  "@atlaskit/editor-plugin-selection": "^6.1.0",
40
40
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
41
- "@atlaskit/editor-prosemirror": "7.0.0",
41
+ "@atlaskit/editor-prosemirror": "^7.2.0",
42
42
  "@atlaskit/editor-toolbar": "^0.18.0",
43
- "@atlaskit/icon": "^29.0.0",
43
+ "@atlaskit/icon": "^29.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^15.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^15.14.0",
47
47
  "@babel/runtime": "^7.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^110.40.0",
50
+ "@atlaskit/editor-common": "^110.46.0",
51
51
  "react": "^18.2.0",
52
52
  "react-intl-next": "npm:react-intl@^5.18.1"
53
53
  },
@@ -93,9 +93,6 @@
93
93
  }
94
94
  },
95
95
  "platform-feature-flags": {
96
- "platform-custom-icon-migration": {
97
- "type": "boolean"
98
- },
99
96
  "code_block_auto_insertion_bug_fix": {
100
97
  "type": "boolean"
101
98
  },