@atlaskit/editor-plugin-code-block-advanced 15.0.13 → 15.0.15

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-advanced
2
2
 
3
+ ## 15.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.0.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
14
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
15
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
16
+ changes.
17
+ - Updated dependencies
18
+
3
19
  ## 15.0.13
4
20
 
5
21
  ### Patch Changes
@@ -21,7 +21,7 @@ var _messages = require("@atlaskit/editor-common/messages");
21
21
  var _whitespace = require("@atlaskit/editor-common/whitespace");
22
22
  var _state2 = require("@atlaskit/editor-prosemirror/state");
23
23
  var _view2 = require("@atlaskit/editor-prosemirror/view");
24
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
25
25
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
26
26
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
27
27
  var _syntaxHighlightingTheme = require("../ui/syntaxHighlightingTheme");
@@ -141,7 +141,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
141
141
  contentEditable: "".concat(this.view.editable)
142
142
  })]), (0, _autocomplete.closeBrackets)(), _view.EditorView.editorAttributes.of(_objectSpread({
143
143
  class: 'code-block'
144
- }, (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') && {
144
+ }, (0, _fg.fg)('platform_editor_adf_with_localid') && {
145
145
  'data-local-id': this.node.attrs.localId
146
146
  })), (0, _manageSelectionMarker.manageSelectionMarker)(config.api), (0, _prosemirrorDecorations.prosemirrorDecorationPlugin)(this.pmFacet, view, getPos), (0, _tripleClickExtension.tripleClickSelectAllExtension)(), (0, _firstCodeBlockInDocument.firstCodeBlockInDocument)(getPos), _view.EditorView.contentAttributes.of(_objectSpread(_objectSpread(_objectSpread({}, !(0, _expValEquals.expValEquals)('editor_a11y_role_textbox', 'isEnabled', true) && {
147
147
  'aria-label': "".concat(formattedAriaLabel)
@@ -197,7 +197,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
197
197
  // The editor's outer node is our DOM representation
198
198
  this.dom = this.cm.dom;
199
199
  this.dom.appendChild(spaceContainer);
200
- if ((0, _expValEquals.expValEquals)('editor_a11y_role_textbox', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
200
+ if ((0, _expValEquals.expValEquals)('editor_a11y_role_textbox', 'isEnabled', true) && (0, _fg.fg)('platform_editor_adf_with_localid')) {
201
201
  this.invisibleAriaDescription = document.createElement('span');
202
202
  this.invisibleAriaDescription.hidden = true;
203
203
  this.invisibleAriaDescription.id = "codesnippet-".concat(this.node.attrs.localId);
@@ -275,7 +275,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
275
275
  key: "updateLanguage",
276
276
  value: function updateLanguage() {
277
277
  this.languageLoader.updateLanguage(this.node.attrs.language);
278
- if ((0, _expValEquals.expValEquals)('editor_a11y_role_textbox', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
278
+ if ((0, _expValEquals.expValEquals)('editor_a11y_role_textbox', 'isEnabled', true) && (0, _fg.fg)('platform_editor_adf_with_localid')) {
279
279
  this.updateAriaDescription();
280
280
  }
281
281
  }
@@ -300,7 +300,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
300
300
  }, {
301
301
  key: "updateLocalIdAttribute",
302
302
  value: function updateLocalIdAttribute() {
303
- if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
303
+ if ((0, _fg.fg)('platform_editor_adf_with_localid')) {
304
304
  var localId = this.node.attrs.localId;
305
305
  if (localId) {
306
306
  this.cm.dom.setAttribute('data-local-id', localId);
@@ -11,7 +11,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _codeBlock = require("@atlaskit/editor-common/code-block");
12
12
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
13
13
  var _styles = require("@atlaskit/editor-common/styles");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
15
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
16
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
17
17
  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; }
@@ -114,7 +114,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
114
114
  spellcheck: 'false',
115
115
  'data-testid': 'code-block--code',
116
116
  'aria-label': formattedAriaLabel
117
- }, (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') && {
117
+ }, (0, _fg.fg)('platform_editor_adf_with_localid') && {
118
118
  'data-local-id': node.attrs.localId
119
119
  }), 0]]]), ['div', {
120
120
  class: codeBlockClassNames.end,
@@ -122,7 +122,7 @@ var _toDOM = function toDOM(node, formattedAriaLabel, config) {
122
122
  }]];
123
123
  };
124
124
  var codeBlockNodeWithFixedToDOM = exports.codeBlockNodeWithFixedToDOM = function codeBlockNodeWithFixedToDOM(config) {
125
- 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), {}, {
125
+ return _objectSpread(_objectSpread({}, (0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true) ? _adfSchema.codeBlock : (0, _fg.fg)('platform_editor_adf_with_localid') ? _adfSchema.codeBlockWithLocalId : _adfSchema.codeBlock), {}, {
126
126
  toDOM: function toDOM(node) {
127
127
  return _toDOM(node, '', config);
128
128
  }
@@ -10,7 +10,8 @@ var _commands = require("@codemirror/commands");
10
10
  var _view = require("@codemirror/view");
11
11
  var _browser = require("@atlaskit/editor-common/browser");
12
12
  var _commands2 = require("@atlaskit/editor-prosemirror/commands");
13
- var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
13
+ var _undo = require("@atlaskit/prosemirror-history/undo");
14
+ var _redo = require("@atlaskit/prosemirror-history/redo");
14
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
16
  var _backspace = require("./backspace");
16
17
  var _maybeEscape = require("./maybeEscape");
@@ -140,19 +141,19 @@ var codeBlockKeymap = function codeBlockKeymap(_ref2) {
140
141
  key: 'Ctrl-z',
141
142
  mac: 'Cmd-z',
142
143
  run: function run() {
143
- return (0, _prosemirrorHistory.undo)(view.state, view.dispatch);
144
+ return (0, _undo.undo)(view.state, view.dispatch);
144
145
  }
145
146
  }, {
146
147
  key: 'Shift-Ctrl-z',
147
148
  mac: 'Shift-Cmd-z',
148
149
  run: function run() {
149
- return (0, _prosemirrorHistory.redo)(view.state, view.dispatch);
150
+ return (0, _redo.redo)(view.state, view.dispatch);
150
151
  }
151
152
  }, {
152
153
  key: 'Ctrl-y',
153
154
  mac: 'Cmd-y',
154
155
  run: function run() {
155
- return (0, _prosemirrorHistory.redo)(view.state, view.dispatch);
156
+ return (0, _redo.redo)(view.state, view.dispatch);
156
157
  }
157
158
  }, {
158
159
  key: 'Backspace',
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.DEFAULT_LANGUAGES = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _constants = require("@atlaskit/code/constants");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  // We expect alias[0] to be used for the ADF attribute, see ED-2813
12
12
  var DEFAULT_LANGUAGES = exports.DEFAULT_LANGUAGES = [{
13
13
  name: '(None)',
@@ -20,7 +20,7 @@ var getLanguageName = function getLanguageName(languageValue) {
20
20
  }
21
21
 
22
22
  // mermaid is gated out of the shared SUPPORTED_LANGUAGES list, so resolve it here
23
- if (languageValue === 'mermaid' && (0, _platformFeatureFlags.fg)('platform_editor_code_block_mermaid_language')) {
23
+ if (languageValue === 'mermaid' && (0, _fg.fg)('platform_editor_code_block_mermaid_language')) {
24
24
  return 'Mermaid';
25
25
  }
26
26
  var language = _constants.SUPPORTED_LANGUAGES.find(function (l) {
@@ -8,7 +8,7 @@ exports.mapLanguageToCodeMirror = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _language = require("@codemirror/language");
10
10
  var _languageData = require("@codemirror/language-data");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
12
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
13
  // getLanguageIdentifier defines `language.alias[0]`
14
14
  var mapLanguageToCodeMirror = exports.mapLanguageToCodeMirror = function mapLanguageToCodeMirror(language) {
@@ -17,7 +17,7 @@ var mapLanguageToCodeMirror = exports.mapLanguageToCodeMirror = function mapLang
17
17
  }
18
18
  // mermaid is gated out of the shared SUPPORTED_LANGUAGES list; load its grammar only when the gate is on
19
19
  if (language === 'mermaid') {
20
- if (!(0, _platformFeatureFlags.fg)('platform_editor_code_block_mermaid_language')) {
20
+ if (!(0, _fg.fg)('platform_editor_code_block_mermaid_language')) {
21
21
  return undefined;
22
22
  }
23
23
  return _language.LanguageDescription.of({
@@ -7,13 +7,13 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.codeFoldingTheme = exports.cmTheme = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _view = require("@codemirror/view");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
12
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
13
13
  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; }
14
14
  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) { (0, _defineProperty2.default)(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; }
15
15
  var shouldUseCompactTypography = function shouldUseCompactTypography(contentMode) {
16
- return contentMode === 'compact' || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
16
+ return contentMode === 'compact' || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _fg.fg)('platform_editor_content_mode_button_mvp');
17
17
  };
18
18
  var getLineHeight = function getLineHeight(contentMode) {
19
19
  return shouldUseCompactTypography(contentMode) ? '1.5em' : '1.5rem';
@@ -11,7 +11,7 @@ import { blockTypeMessages, codeBlockMessages, roleDescriptionMessages } from '@
11
11
  import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
12
12
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
13
13
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
14
- import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
16
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
17
17
  import { highlightStyle } from '../ui/syntaxHighlightingTheme';
@@ -2,7 +2,7 @@ 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';
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
8
  const codeBlockClassNames = {
@@ -2,7 +2,8 @@ import { defaultKeymap, indentWithTab } from '@codemirror/commands';
2
2
  import { keymap as cmKeymap } from '@codemirror/view';
3
3
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
4
4
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
5
- import { undo, redo } from '@atlaskit/prosemirror-history';
5
+ import { undo } from '@atlaskit/prosemirror-history/undo';
6
+ import { redo } from '@atlaskit/prosemirror-history/redo';
6
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
8
  import { backspaceKeymap } from './backspace';
8
9
  import { maybeEscapeKeymap } from './maybeEscape';
@@ -1,5 +1,5 @@
1
1
  import { SUPPORTED_LANGUAGES } from '@atlaskit/code/constants';
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
 
4
4
  // We expect alias[0] to be used for the ADF attribute, see ED-2813
5
5
  export const DEFAULT_LANGUAGES = [{
@@ -1,6 +1,6 @@
1
1
  import { LanguageDescription, LanguageSupport } from '@codemirror/language';
2
2
  import { languages } from '@codemirror/language-data';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  // getLanguageIdentifier defines `language.alias[0]`
5
5
  export const mapLanguageToCodeMirror = language => {
6
6
  if (!language || language === 'none') {
@@ -1,5 +1,5 @@
1
1
  import { EditorView as CodeMirror } from '@codemirror/view';
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
4
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
5
5
  const shouldUseCompactTypography = contentMode => contentMode === 'compact' || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
@@ -16,7 +16,7 @@ import { blockTypeMessages, codeBlockMessages, roleDescriptionMessages } from '@
16
16
  import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
17
17
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
18
18
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
19
- import { fg } from '@atlaskit/platform-feature-flags';
19
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
20
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
21
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
22
22
  import { highlightStyle } from '../ui/syntaxHighlightingTheme';
@@ -6,7 +6,7 @@ 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';
9
- import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
11
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
12
12
  var codeBlockClassNames = {
@@ -3,7 +3,8 @@ import { defaultKeymap, indentWithTab } from '@codemirror/commands';
3
3
  import { keymap as cmKeymap } from '@codemirror/view';
4
4
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
5
5
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
6
- import { undo, redo } from '@atlaskit/prosemirror-history';
6
+ import { undo } from '@atlaskit/prosemirror-history/undo';
7
+ import { redo } from '@atlaskit/prosemirror-history/redo';
7
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
9
  import { backspaceKeymap } from './backspace';
9
10
  import { maybeEscapeKeymap } from './maybeEscape';
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { SUPPORTED_LANGUAGES } from '@atlaskit/code/constants';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  // We expect alias[0] to be used for the ADF attribute, see ED-2813
6
6
  export var DEFAULT_LANGUAGES = [{
@@ -1,6 +1,6 @@
1
1
  import { LanguageDescription, LanguageSupport } from '@codemirror/language';
2
2
  import { languages } from '@codemirror/language-data';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  // getLanguageIdentifier defines `language.alias[0]`
5
5
  export var mapLanguageToCodeMirror = function mapLanguageToCodeMirror(language) {
6
6
  if (!language || language === 'none') {
@@ -2,7 +2,7 @@ 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
4
  import { EditorView as CodeMirror } from '@codemirror/view';
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
8
  var shouldUseCompactTypography = function shouldUseCompactTypography(contentMode) {
@@ -1,5 +1,5 @@
1
1
  import { LanguageDescription } from '@codemirror/language';
2
- import type { LanguageAlias } from '@atlaskit/code';
2
+ import type { LanguageAlias } from '@atlaskit/code/constants';
3
3
  type LanguageAliasValue = LanguageAlias[0];
4
4
  export declare const mapLanguageToCodeMirror: (language: LanguageAliasValue) => LanguageDescription | undefined;
5
5
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "15.0.13",
3
+ "version": "15.0.15",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/editor-prosemirror": "^8.0.0",
32
32
  "@atlaskit/platform-feature-flags": "^2.1.0",
33
33
  "@atlaskit/prosemirror-history": "^1.2.0",
34
- "@atlaskit/tmp-editor-statsig": "^159.0.0",
34
+ "@atlaskit/tmp-editor-statsig": "^160.0.0",
35
35
  "@atlaskit/tokens": "^16.8.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@codemirror/autocomplete": "6.18.4",
@@ -36,7 +36,7 @@ import type {
36
36
  NodeView,
37
37
  } from '@atlaskit/editor-prosemirror/view';
38
38
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
39
- import { fg } from '@atlaskit/platform-feature-flags';
39
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
40
40
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
41
41
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
42
42
 
@@ -3,7 +3,7 @@ import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-bloc
3
3
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
4
4
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
5
5
  import type { NodeSpec, DOMOutputSpec, Node } from '@atlaskit/editor-prosemirror/model';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
8
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
9
9
  import { token } from '@atlaskit/tokens';
@@ -9,7 +9,8 @@ import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
9
9
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
10
10
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
- import { undo, redo } from '@atlaskit/prosemirror-history';
12
+ import { undo } from '@atlaskit/prosemirror-history/undo';
13
+ import { redo } from '@atlaskit/prosemirror-history/redo';
13
14
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
15
 
15
16
  import { backspaceKeymap } from './backspace';
@@ -1,5 +1,5 @@
1
1
  import { SUPPORTED_LANGUAGES } from '@atlaskit/code/constants';
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
 
4
4
  // We expect alias[0] to be used for the ADF attribute, see ED-2813
5
5
  export const DEFAULT_LANGUAGES: (
@@ -1,8 +1,8 @@
1
1
  import { LanguageDescription, LanguageSupport } from '@codemirror/language';
2
2
  import { languages } from '@codemirror/language-data';
3
3
 
4
- import type { LanguageAlias } from '@atlaskit/code';
5
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import type { LanguageAlias } from '@atlaskit/code/constants';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
 
7
7
  type LanguageAliasValue = LanguageAlias[0];
8
8
 
package/src/ui/theme.ts CHANGED
@@ -2,7 +2,7 @@ import type { Extension } from '@codemirror/state';
2
2
  import { EditorView as CodeMirror } from '@codemirror/view';
3
3
 
4
4
  import type { EditorContentMode } from '@atlaskit/editor-common/types';
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
8
8
  import { token } from '@atlaskit/tokens';