@atlaskit/editor-plugin-expand 31.0.1 → 31.0.3

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,18 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 31.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4cdaf1f75d6ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cdaf1f75d6ad) -
8
+ Use const for stable local bindings
9
+
10
+ ## 31.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 31.0.1
4
17
 
5
18
  ### Patch Changes
@@ -26,8 +26,6 @@ var _toolbar = require("./toolbar");
26
26
  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; }
27
27
  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; }
28
28
  var EXPAND_NODE_NAME = 'expand';
29
- // Ignored via go/ees005
30
- // eslint-disable-next-line prefer-const
31
29
  var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
32
30
  var _api$blockMenu, _api$analytics, _api$analytics2;
33
31
  var _ref$config = _ref.config,
@@ -7,8 +7,6 @@ exports.expandPlugin = void 0;
7
7
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
8
  var _plugin = require("./legacyExpand/plugin");
9
9
  var _plugin2 = require("./singlePlayerExpand/plugin");
10
- // Ignored via go/ees005
11
- // eslint-disable-next-line prefer-const
12
10
  var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
13
11
  var _ref$config = _ref.config,
14
12
  options = _ref$config === void 0 ? {} : _ref$config,
@@ -27,8 +27,6 @@ var _toolbar = require("./toolbar");
27
27
  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; }
28
28
  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; }
29
29
  var EXPAND_NODE_NAME = 'expand';
30
- // Ignored via go/ees005
31
- // eslint-disable-next-line prefer-const
32
30
  var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
33
31
  var _api$blockMenu;
34
32
  var _ref$config = _ref.config,
@@ -16,10 +16,7 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpa
16
16
  import { expandKeymap } from './pm-plugins/keymap';
17
17
  import { createPlugin } from './pm-plugins/main';
18
18
  import { getToolbarConfig } from './toolbar';
19
-
20
- // Ignored via go/ees005
21
- // eslint-disable-next-line prefer-const
22
- export let expandPlugin = ({
19
+ export const expandPlugin = ({
23
20
  config: options = {},
24
21
  api
25
22
  }) => {
@@ -1,9 +1,7 @@
1
1
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
2
  import { expandPlugin as legacyExpandPlugin } from './legacyExpand/plugin';
3
3
  import { expandPlugin as singlePlayerExpandPlugin } from './singlePlayerExpand/plugin';
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line prefer-const
6
- export let expandPlugin = ({
4
+ export const expandPlugin = ({
7
5
  config: options = {},
8
6
  api
9
7
  }) => {
@@ -17,10 +17,7 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpa
17
17
  import { expandKeymap } from './pm-plugins/keymap';
18
18
  import { createPlugin } from './pm-plugins/main';
19
19
  import { getToolbarConfig } from './toolbar';
20
-
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line prefer-const
23
- export let expandPlugin = ({
20
+ export const expandPlugin = ({
24
21
  config: options = {},
25
22
  api
26
23
  }) => {
@@ -19,9 +19,6 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpa
19
19
  import { expandKeymap } from './pm-plugins/keymap';
20
20
  import { createPlugin } from './pm-plugins/main';
21
21
  import { getToolbarConfig } from './toolbar';
22
-
23
- // Ignored via go/ees005
24
- // eslint-disable-next-line prefer-const
25
22
  export var expandPlugin = function expandPlugin(_ref) {
26
23
  var _api$blockMenu, _api$analytics, _api$analytics2;
27
24
  var _ref$config = _ref.config,
@@ -1,8 +1,6 @@
1
1
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
2
  import { expandPlugin as legacyExpandPlugin } from './legacyExpand/plugin';
3
3
  import { expandPlugin as singlePlayerExpandPlugin } from './singlePlayerExpand/plugin';
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line prefer-const
6
4
  export var expandPlugin = function expandPlugin(_ref) {
7
5
  var _ref$config = _ref.config,
8
6
  options = _ref$config === void 0 ? {} : _ref$config,
@@ -20,9 +20,6 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpa
20
20
  import { expandKeymap } from './pm-plugins/keymap';
21
21
  import { createPlugin } from './pm-plugins/main';
22
22
  import { getToolbarConfig } from './toolbar';
23
-
24
- // Ignored via go/ees005
25
- // eslint-disable-next-line prefer-const
26
23
  export var expandPlugin = function expandPlugin(_ref) {
27
24
  var _api$blockMenu;
28
25
  var _ref$config = _ref.config,
@@ -1,2 +1,2 @@
1
1
  import type { ExpandPlugin } from '../types';
2
- export declare let expandPlugin: ExpandPlugin;
2
+ export declare const expandPlugin: ExpandPlugin;
@@ -1,2 +1,2 @@
1
1
  import type { ExpandPlugin } from './types';
2
- export declare let expandPlugin: ExpandPlugin;
2
+ export declare const expandPlugin: ExpandPlugin;
@@ -1,2 +1,2 @@
1
1
  import type { ExpandPlugin } from '../types';
2
- export declare let expandPlugin: ExpandPlugin;
2
+ export declare const expandPlugin: ExpandPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "31.0.1",
3
+ "version": "31.0.3",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.3.0",
46
- "@atlaskit/tmp-editor-statsig": "^247.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^248.0.0",
47
47
  "@atlaskit/tokens": "^20.8.0",
48
48
  "@atlaskit/tooltip": "^24.4.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -52,7 +52,7 @@
52
52
  "w3c-keyname": "^2.1.8"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^134.0.0",
55
+ "@atlaskit/editor-common": "^134.1.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"