@atlaskit/editor-plugin-block-type 12.1.29 → 12.1.31

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,20 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 12.1.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
8
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
9
+ rolled out
10
+ - Updated dependencies
11
+
12
+ ## 12.1.30
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 12.1.29
4
19
 
5
20
  ### Patch Changes
@@ -150,7 +150,7 @@ var createPlugin = exports.createPlugin = function createPlugin(editorAPI, dispa
150
150
  // Check for numpad keys if not found in digits row
151
151
  headingLevel = _consts.HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
152
152
  }
153
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
153
+ var browser = (0, _browser.getBrowserInfo)();
154
154
  if (headingLevel > -1 && event.altKey) {
155
155
  if (browser.mac && event.metaKey) {
156
156
  var _editorAPI$core$actio, _editorAPI$core;
@@ -1,5 +1,5 @@
1
1
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -134,7 +134,7 @@ export const createPlugin = (editorAPI, dispatch, lastNodeMustBeParagraph, inclu
134
134
  // Check for numpad keys if not found in digits row
135
135
  headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
136
136
  }
137
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
137
+ const browser = getBrowserInfo();
138
138
  if (headingLevel > -1 && event.altKey) {
139
139
  if (browser.mac && event.metaKey) {
140
140
  var _editorAPI$core$actio, _editorAPI$core;
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
5
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -143,7 +143,7 @@ export var createPlugin = function createPlugin(editorAPI, dispatch, lastNodeMus
143
143
  // Check for numpad keys if not found in digits row
144
144
  headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
145
145
  }
146
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
146
+ var browser = getBrowserInfo();
147
147
  if (headingLevel > -1 && event.altKey) {
148
148
  if (browser.mac && event.metaKey) {
149
149
  var _editorAPI$core$actio, _editorAPI$core;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "12.1.29",
3
+ "version": "12.1.31",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,20 +43,20 @@
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
44
  "@atlaskit/editor-toolbar": "^0.20.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^34.0.0",
47
- "@atlaskit/icon-lab": "^6.4.0",
46
+ "@atlaskit/icon": "^34.1.0",
47
+ "@atlaskit/icon-lab": "^6.5.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^19.0.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
52
- "@atlaskit/tmp-editor-statsig": "^60.2.0",
52
+ "@atlaskit/tmp-editor-statsig": "^62.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^112.20.0",
59
+ "@atlaskit/editor-common": "^112.21.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl-next": "npm:react-intl@^5.18.1"