@atlaskit/editor-plugin-expand 3.2.14 → 3.2.16

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-expand
2
2
 
3
+ ## 3.2.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165113](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165113)
8
+ [`867bcb05452bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/867bcb05452bf) -
9
+ Cleaned up platform_editor_controls_patch_analytics and platform_editor_controls_patch_analytics_2
10
+ - Updated dependencies
11
+
12
+ ## 3.2.15
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.2.14
4
19
 
5
20
  ### Patch Changes
@@ -15,7 +15,6 @@ var _utils = require("@atlaskit/editor-common/utils");
15
15
  var _state2 = require("@atlaskit/editor-prosemirror/state");
16
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
17
17
  var _utils3 = require("@atlaskit/editor-tables/utils");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _utils4 = require("../utils");
20
19
  var _pluginFactory = require("./pm-plugins/plugin-factory");
21
20
  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; }
@@ -40,7 +39,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
40
39
  action: _analytics.ACTION.DELETED,
41
40
  actionSubject: expandNode.type === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT.EXPAND : _analytics.ACTION_SUBJECT.NESTED_EXPAND,
42
41
  attributes: {
43
- inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR
42
+ inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
44
43
  },
45
44
  eventType: _analytics.EVENT_TYPE.TRACK
46
45
  };
@@ -385,17 +385,17 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
385
385
  }
386
386
  });
387
387
  (0, _defineProperty2.default)(this, "handleUndoFromTitle", function (event) {
388
- var _this$view10 = _this.view,
389
- state = _this$view10.state,
390
- dispatch = _this$view10.dispatch;
388
+ var _this$view0 = _this.view,
389
+ state = _this$view0.state,
390
+ dispatch = _this$view0.dispatch;
391
391
  (0, _history.undo)(state, dispatch);
392
392
  event.preventDefault();
393
393
  return;
394
394
  });
395
395
  (0, _defineProperty2.default)(this, "handleRedoFromTitle", function (event) {
396
- var _this$view11 = _this.view,
397
- state = _this$view11.state,
398
- dispatch = _this$view11.dispatch;
396
+ var _this$view1 = _this.view,
397
+ state = _this$view1.state,
398
+ dispatch = _this$view1.dispatch;
399
399
  (0, _history.redo)(state, dispatch);
400
400
  event.preventDefault();
401
401
  return;
@@ -24,8 +24,7 @@ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron
24
24
  var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
25
25
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
26
26
  var _excluded = ["buttonStyles"];
27
- 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); }
28
- 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; }
27
+ 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); }
29
28
  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; }
30
29
  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; }
31
30
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -16,7 +16,6 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state2 = require("@atlaskit/editor-prosemirror/state");
17
17
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
18
18
  var _utils3 = require("@atlaskit/editor-tables/utils");
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _utils4 = require("../utils");
21
20
  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; }
22
21
  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; }
@@ -101,7 +100,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
101
100
  action: _analytics.ACTION.DELETED,
102
101
  actionSubject: expandNode.type === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT.EXPAND : _analytics.ACTION_SUBJECT.NESTED_EXPAND,
103
102
  attributes: {
104
- inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR
103
+ inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
105
104
  },
106
105
  eventType: _analytics.EVENT_TYPE.TRACK
107
106
  };
@@ -350,9 +350,9 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
350
350
  return;
351
351
  });
352
352
  (0, _defineProperty2.default)(this, "handleRedoFromTitle", function (event) {
353
- var _this$view10 = _this.view,
354
- state = _this$view10.state,
355
- dispatch = _this$view10.dispatch;
353
+ var _this$view0 = _this.view,
354
+ state = _this$view0.state,
355
+ dispatch = _this$view0.dispatch;
356
356
  (0, _history.redo)(state, dispatch);
357
357
  event.preventDefault();
358
358
  return;
@@ -24,8 +24,7 @@ var _excluded = ["buttonStyles"];
24
24
  * @jsx jsx
25
25
  */
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
- 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); }
28
- 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; }
27
+ 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); }
29
28
  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; }
30
29
  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; }
31
30
  function withTooltip(Component) {
@@ -7,7 +7,6 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
7
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { findTable } from '@atlaskit/editor-tables/utils';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { isNestedInExpand } from '../utils';
12
11
  import { createCommand } from './pm-plugins/plugin-factory';
13
12
  export const setExpandRef = ref => createCommand({
@@ -24,7 +23,7 @@ export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNod
24
23
  action: ACTION.DELETED,
25
24
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
26
25
  attributes: {
27
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
26
+ inputMethod: INPUT_METHOD.FLOATING_TB
28
27
  },
29
28
  eventType: EVENT_TYPE.TRACK
30
29
  };
@@ -8,7 +8,6 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { isNestedInExpand } from '../utils';
13
12
 
14
13
  // Creates either an expand or a nestedExpand node based on the current selection
@@ -82,7 +81,7 @@ export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNod
82
81
  action: ACTION.DELETED,
83
82
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
84
83
  attributes: {
85
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
84
+ inputMethod: INPUT_METHOD.FLOATING_TB
86
85
  },
87
86
  eventType: EVENT_TYPE.TRACK
88
87
  };
@@ -10,7 +10,6 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
10
10
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
12
12
  import { findTable } from '@atlaskit/editor-tables/utils';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { isNestedInExpand } from '../utils';
15
14
  import { createCommand } from './pm-plugins/plugin-factory';
16
15
  export var setExpandRef = function setExpandRef(ref) {
@@ -33,7 +32,7 @@ export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
33
32
  action: ACTION.DELETED,
34
33
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
35
34
  attributes: {
36
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
35
+ inputMethod: INPUT_METHOD.FLOATING_TB
37
36
  },
38
37
  eventType: EVENT_TYPE.TRACK
39
38
  };
@@ -377,17 +377,17 @@ export var ExpandNodeView = /*#__PURE__*/function () {
377
377
  }
378
378
  });
379
379
  _defineProperty(this, "handleUndoFromTitle", function (event) {
380
- var _this$view10 = _this.view,
381
- state = _this$view10.state,
382
- dispatch = _this$view10.dispatch;
380
+ var _this$view0 = _this.view,
381
+ state = _this$view0.state,
382
+ dispatch = _this$view0.dispatch;
383
383
  undo(state, dispatch);
384
384
  event.preventDefault();
385
385
  return;
386
386
  });
387
387
  _defineProperty(this, "handleRedoFromTitle", function (event) {
388
- var _this$view11 = _this.view,
389
- state = _this$view11.state,
390
- dispatch = _this$view11.dispatch;
388
+ var _this$view1 = _this.view,
389
+ state = _this$view1.state,
390
+ dispatch = _this$view1.dispatch;
391
391
  redo(state, dispatch);
392
392
  event.preventDefault();
393
393
  return;
@@ -11,7 +11,6 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
12
12
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
13
13
  import { findTable } from '@atlaskit/editor-tables/utils';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { isNestedInExpand } from '../utils';
16
15
 
17
16
  // Creates either an expand or a nestedExpand node based on the current selection
@@ -95,7 +94,7 @@ export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
95
94
  action: ACTION.DELETED,
96
95
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
97
96
  attributes: {
98
- inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
97
+ inputMethod: INPUT_METHOD.FLOATING_TB
99
98
  },
100
99
  eventType: EVENT_TYPE.TRACK
101
100
  };
@@ -342,9 +342,9 @@ export var ExpandNodeView = /*#__PURE__*/function () {
342
342
  return;
343
343
  });
344
344
  _defineProperty(this, "handleRedoFromTitle", function (event) {
345
- var _this$view10 = _this.view,
346
- state = _this$view10.state,
347
- dispatch = _this$view10.dispatch;
345
+ var _this$view0 = _this.view,
346
+ state = _this$view0.state,
347
+ dispatch = _this$view0.dispatch;
348
348
  redo(state, dispatch);
349
349
  event.preventDefault();
350
350
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.2.14",
3
+ "version": "3.2.16",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/button": "^23.2.0",
38
- "@atlaskit/editor-common": "^106.0.0",
38
+ "@atlaskit/editor-common": "^106.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
@@ -47,9 +47,9 @@
47
47
  "@atlaskit/editor-tables": "^2.9.0",
48
48
  "@atlaskit/icon": "^26.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/tmp-editor-statsig": "^5.2.0",
51
- "@atlaskit/tokens": "^4.9.0",
52
- "@atlaskit/tooltip": "^20.2.0",
50
+ "@atlaskit/tmp-editor-statsig": "^5.14.0",
51
+ "@atlaskit/tokens": "^5.1.0",
52
+ "@atlaskit/tooltip": "^20.3.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
55
55
  "uuid": "^3.1.0",
@@ -61,7 +61,7 @@
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@atlaskit/analytics-next": "^11.0.0",
64
+ "@atlaskit/analytics-next": "^11.1.0",
65
65
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
66
66
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
67
67
  "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
@@ -111,9 +111,6 @@
111
111
  },
112
112
  "platform_editor_disable_unnecessary_expand_renders": {
113
113
  "type": "boolean"
114
- },
115
- "platform_editor_controls_patch_analytics_2": {
116
- "type": "boolean"
117
114
  }
118
115
  }
119
116
  }