@atlaskit/editor-plugin-block-type 5.1.22 → 5.1.24

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,17 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 5.1.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.1.23
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 5.1.22
4
16
 
5
17
  ### Patch Changes
@@ -229,8 +229,8 @@ function setNormalTextWithAnalytics(inputMethod, editorAnalyticsApi, fromBlockQu
229
229
  }
230
230
  var setHeadingWithAnalytics = exports.setHeadingWithAnalytics = function setHeadingWithAnalytics(newHeadingLevel, inputMethod, editorAnalyticsApi, fromBlockQuote) {
231
231
  return withCurrentHeadingLevel(function (previousHeadingLevel) {
232
- return function (_ref10) {
233
- var tr = _ref10.tr;
232
+ return function (_ref0) {
233
+ var tr = _ref0.tr;
234
234
  editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent({
235
235
  action: _analytics.ACTION.FORMATTED,
236
236
  actionSubject: _analytics.ACTION_SUBJECT.TEXT,
@@ -279,8 +279,8 @@ var insertBlockQuoteWithAnalytics = exports.insertBlockQuoteWithAnalytics = func
279
279
  };
280
280
  function insertBlockQuoteWithAnalyticsCommand(inputMethod, editorAnalyticsApi) {
281
281
  return withCurrentHeadingLevel(function (previousHeadingLevel) {
282
- return function (_ref11) {
283
- var tr = _ref11.tr;
282
+ return function (_ref1) {
283
+ var tr = _ref1.tr;
284
284
  var nodes = tr.doc.type.schema.nodes;
285
285
  editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent({
286
286
  action: _analytics.ACTION.FORMATTED,
@@ -298,8 +298,8 @@ function insertBlockQuoteWithAnalyticsCommand(inputMethod, editorAnalyticsApi) {
298
298
  });
299
299
  }
300
300
  var cleanUpAtTheStartOfDocument = exports.cleanUpAtTheStartOfDocument = function cleanUpAtTheStartOfDocument(state, dispatch) {
301
- var _ref12 = state.selection,
302
- $cursor = _ref12.$cursor;
301
+ var _ref10 = state.selection,
302
+ $cursor = _ref10.$cursor;
303
303
  if ($cursor && !$cursor.nodeBefore && !$cursor.nodeAfter && $cursor.pos === 1) {
304
304
  var tr = state.tr,
305
305
  schema = state.schema;
@@ -15,8 +15,7 @@ var _blockType = require("./commands/block-type");
15
15
  var _deleteAndMoveCursor = require("./commands/delete-and-move-cursor");
16
16
  var _deleteBlockContent = require("./commands/delete-block-content");
17
17
  var _utils2 = require("./utils");
18
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ 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" != _typeof(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); }
20
19
  // Ignored via go/ees005
21
20
  // eslint-disable-next-line import/no-namespace
22
21
 
@@ -12,8 +12,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
12
12
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
13
13
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
14
  var _ToolbarBlockType = _interopRequireDefault(require("./ToolbarBlockType"));
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ 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" != _typeof(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); }
17
16
  var FloatingToolbarSettings = {
18
17
  isSmall: true,
19
18
  disabled: false,
@@ -214,8 +214,8 @@ export function setNormalTextWithAnalytics(inputMethod, editorAnalyticsApi, from
214
214
  }
215
215
  export var setHeadingWithAnalytics = function setHeadingWithAnalytics(newHeadingLevel, inputMethod, editorAnalyticsApi, fromBlockQuote) {
216
216
  return withCurrentHeadingLevel(function (previousHeadingLevel) {
217
- return function (_ref10) {
218
- var tr = _ref10.tr;
217
+ return function (_ref0) {
218
+ var tr = _ref0.tr;
219
219
  editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent({
220
220
  action: ACTION.FORMATTED,
221
221
  actionSubject: ACTION_SUBJECT.TEXT,
@@ -264,8 +264,8 @@ export var insertBlockQuoteWithAnalytics = function insertBlockQuoteWithAnalytic
264
264
  };
265
265
  export function insertBlockQuoteWithAnalyticsCommand(inputMethod, editorAnalyticsApi) {
266
266
  return withCurrentHeadingLevel(function (previousHeadingLevel) {
267
- return function (_ref11) {
268
- var tr = _ref11.tr;
267
+ return function (_ref1) {
268
+ var tr = _ref1.tr;
269
269
  var nodes = tr.doc.type.schema.nodes;
270
270
  editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent({
271
271
  action: ACTION.FORMATTED,
@@ -283,8 +283,8 @@ export function insertBlockQuoteWithAnalyticsCommand(inputMethod, editorAnalytic
283
283
  });
284
284
  }
285
285
  export var cleanUpAtTheStartOfDocument = function cleanUpAtTheStartOfDocument(state, dispatch) {
286
- var _ref12 = state.selection,
287
- $cursor = _ref12.$cursor;
286
+ var _ref10 = state.selection,
287
+ $cursor = _ref10.$cursor;
288
288
  if ($cursor && !$cursor.nodeBefore && !$cursor.nodeAfter && $cursor.pos === 1) {
289
289
  var tr = state.tr,
290
290
  schema = state.schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "5.1.22",
3
+ "version": "5.1.24",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/adf-schema": "^47.6.0",
39
- "@atlaskit/editor-common": "^106.0.0",
39
+ "@atlaskit/editor-common": "^106.5.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
41
41
  "@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
42
42
  "@atlaskit/editor-plugin-selection-toolbar": "^3.6.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/editor-shared-styles": "^3.4.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
46
  "@atlaskit/icon": "^26.4.0",
47
- "@atlaskit/icon-lab": "^4.17.0",
47
+ "@atlaskit/icon-lab": "^4.18.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^14.8.0",
50
50
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^5.2.0",
53
- "@atlaskit/tokens": "^4.9.0",
52
+ "@atlaskit/tmp-editor-statsig": "^6.0.0",
53
+ "@atlaskit/tokens": "^5.1.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1"
56
56
  },
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@af/visual-regression": "workspace:^",
64
- "@atlaskit/analytics-next": "^11.0.0",
64
+ "@atlaskit/analytics-next": "^11.1.0",
65
65
  "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
66
66
  "@atlaskit/editor-plugin-type-ahead": "^2.7.0",
67
67
  "@atlaskit/ssr": "workspace:^",