@atlaskit/editor-plugin-floating-toolbar 12.2.2 → 12.2.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,11 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 12.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.2.2
4
10
 
5
11
  ### Patch Changes
@@ -17,7 +17,7 @@ var _nesting = require("@atlaskit/editor-common/nesting");
17
17
  var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _utils = require("@atlaskit/editor-common/utils");
19
19
  var _Dropdown = _interopRequireDefault(require("./Dropdown"));
20
- 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
+ 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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
21
21
  var noop = function noop() {
22
22
  return null;
23
23
  };
@@ -27,21 +27,21 @@ var isDefaultExport = function isDefaultExport(mod) {
27
27
  var resolveExtensionIcon = /*#__PURE__*/function () {
28
28
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(getIcon) {
29
29
  var maybeIcon;
30
- return _regenerator.default.wrap(function _callee$(_context) {
30
+ return _regenerator.default.wrap(function (_context) {
31
31
  while (1) switch (_context.prev = _context.next) {
32
32
  case 0:
33
33
  if (getIcon) {
34
- _context.next = 2;
34
+ _context.next = 1;
35
35
  break;
36
36
  }
37
37
  return _context.abrupt("return", noop);
38
- case 2:
39
- _context.next = 4;
38
+ case 1:
39
+ _context.next = 2;
40
40
  return getIcon();
41
- case 4:
41
+ case 2:
42
42
  maybeIcon = _context.sent;
43
43
  return _context.abrupt("return", isDefaultExport(maybeIcon) ? maybeIcon.default : maybeIcon);
44
- case 6:
44
+ case 3:
45
45
  case "end":
46
46
  return _context.stop();
47
47
  }
@@ -62,7 +62,7 @@ var ExtensionButton = function ExtensionButton(props) {
62
62
  // eslint-disable-next-line require-await
63
63
  loader: function () {
64
64
  var _loader = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
65
- return _regenerator.default.wrap(function _callee2$(_context2) {
65
+ return _regenerator.default.wrap(function (_context2) {
66
66
  while (1) switch (_context2.prev = _context2.next) {
67
67
  case 0:
68
68
  return _context2.abrupt("return", resolveExtensionIcon(item.icon));
@@ -143,25 +143,24 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
143
143
  // eslint-disable-next-line react-hooks/exhaustive-deps
144
144
  function _getExtensions() {
145
145
  _getExtensions = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
146
- var provider;
147
- return _regenerator.default.wrap(function _callee3$(_context3) {
146
+ var provider, _t;
147
+ return _regenerator.default.wrap(function (_context3) {
148
148
  while (1) switch (_context3.prev = _context3.next) {
149
149
  case 0:
150
- _context3.next = 2;
150
+ _context3.next = 1;
151
151
  return extensionProvider;
152
- case 2:
152
+ case 1:
153
153
  provider = _context3.sent;
154
154
  if (!provider) {
155
- _context3.next = 9;
155
+ _context3.next = 3;
156
156
  break;
157
157
  }
158
- _context3.t0 = setExtensions;
159
- _context3.next = 7;
158
+ _t = setExtensions;
159
+ _context3.next = 2;
160
160
  return provider.getExtensions();
161
- case 7:
162
- _context3.t1 = _context3.sent;
163
- (0, _context3.t0)(_context3.t1);
164
- case 9:
161
+ case 2:
162
+ _t(_context3.sent);
163
+ case 3:
165
164
  case "end":
166
165
  return _context3.stop();
167
166
  }
@@ -18,21 +18,21 @@ var isDefaultExport = function isDefaultExport(mod) {
18
18
  var resolveExtensionIcon = /*#__PURE__*/function () {
19
19
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(getIcon) {
20
20
  var maybeIcon;
21
- return _regeneratorRuntime.wrap(function _callee$(_context) {
21
+ return _regeneratorRuntime.wrap(function (_context) {
22
22
  while (1) switch (_context.prev = _context.next) {
23
23
  case 0:
24
24
  if (getIcon) {
25
- _context.next = 2;
25
+ _context.next = 1;
26
26
  break;
27
27
  }
28
28
  return _context.abrupt("return", noop);
29
- case 2:
30
- _context.next = 4;
29
+ case 1:
30
+ _context.next = 2;
31
31
  return getIcon();
32
- case 4:
32
+ case 2:
33
33
  maybeIcon = _context.sent;
34
34
  return _context.abrupt("return", isDefaultExport(maybeIcon) ? maybeIcon.default : maybeIcon);
35
- case 6:
35
+ case 3:
36
36
  case "end":
37
37
  return _context.stop();
38
38
  }
@@ -53,7 +53,7 @@ var ExtensionButton = function ExtensionButton(props) {
53
53
  // eslint-disable-next-line require-await
54
54
  loader: function () {
55
55
  var _loader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
56
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
56
+ return _regeneratorRuntime.wrap(function (_context2) {
57
57
  while (1) switch (_context2.prev = _context2.next) {
58
58
  case 0:
59
59
  return _context2.abrupt("return", resolveExtensionIcon(item.icon));
@@ -134,25 +134,24 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
134
134
  // eslint-disable-next-line react-hooks/exhaustive-deps
135
135
  function _getExtensions() {
136
136
  _getExtensions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
137
- var provider;
138
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
137
+ var provider, _t;
138
+ return _regeneratorRuntime.wrap(function (_context3) {
139
139
  while (1) switch (_context3.prev = _context3.next) {
140
140
  case 0:
141
- _context3.next = 2;
141
+ _context3.next = 1;
142
142
  return extensionProvider;
143
- case 2:
143
+ case 1:
144
144
  provider = _context3.sent;
145
145
  if (!provider) {
146
- _context3.next = 9;
146
+ _context3.next = 3;
147
147
  break;
148
148
  }
149
- _context3.t0 = setExtensions;
150
- _context3.next = 7;
149
+ _t = setExtensions;
150
+ _context3.next = 2;
151
151
  return provider.getExtensions();
152
- case 7:
153
- _context3.t1 = _context3.sent;
154
- (0, _context3.t0)(_context3.t1);
155
- case 9:
152
+ case 2:
153
+ _t(_context3.sent);
154
+ case 3:
156
155
  case "end":
157
156
  return _context3.stop();
158
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "12.2.2",
3
+ "version": "12.2.3",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-utils": "^19.31.0",
24
+ "@atlaskit/adf-utils": "^19.32.0",
25
25
  "@atlaskit/button": "^23.11.0",
26
26
  "@atlaskit/checkbox": "^17.3.0",
27
27
  "@atlaskit/editor-palette": "^2.2.0",
@@ -36,16 +36,16 @@
36
36
  "@atlaskit/editor-plugin-interaction": "^19.1.0",
37
37
  "@atlaskit/editor-plugin-user-intent": "^8.2.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
- "@atlaskit/emoji": "^70.10.0",
39
+ "@atlaskit/emoji": "^70.11.0",
40
40
  "@atlaskit/icon": "^35.3.0",
41
41
  "@atlaskit/menu": "^8.5.0",
42
42
  "@atlaskit/modal-dialog": "^15.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/select": "^21.12.0",
46
- "@atlaskit/tmp-editor-statsig": "^84.0.0",
47
- "@atlaskit/tokens": "^13.0.0",
48
- "@atlaskit/tooltip": "^22.3.0",
46
+ "@atlaskit/tmp-editor-statsig": "^85.0.0",
47
+ "@atlaskit/tokens": "^13.1.0",
48
+ "@atlaskit/tooltip": "^22.5.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "bind-event-listener": "^3.0.0",
@@ -54,7 +54,7 @@
54
54
  "react-loadable": "^5.1.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^114.47.0",
57
+ "@atlaskit/editor-common": "^114.50.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"