@atlaskit/editor-plugin-extension 10.1.16 → 10.1.18

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-extension
2
2
 
3
+ ## 10.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.1.17
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 10.1.16
4
16
 
5
17
  ### Patch Changes
@@ -354,7 +354,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
354
354
 
355
355
  // If this is a native-embed extension, skip providing a toolbar config to allow
356
356
  // the native-embed plugin to provide a custom toolbar config.
357
- if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === _extensions.NATIVE_EMBED_EXTENSION_TYPE) {
357
+ if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === _extensions.NATIVE_EMBED_EXTENSION_TYPE && extensionObj !== null && extensionObj !== void 0 && extensionObj.node.attrs.extensionKey.includes(_extensions.NATIVE_EMBED_EXTENSION_KEY)) {
358
358
  return;
359
359
  }
360
360
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
- import { messages, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
3
+ import { messages, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
4
4
  import commonMessages from '@atlaskit/editor-common/messages';
5
5
  import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
6
6
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
@@ -359,7 +359,7 @@ export const getToolbarConfig = ({
359
359
 
360
360
  // If this is a native-embed extension, skip providing a toolbar config to allow
361
361
  // the native-embed plugin to provide a custom toolbar config.
362
- if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === NATIVE_EMBED_EXTENSION_TYPE) {
362
+ if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === NATIVE_EMBED_EXTENSION_TYPE && extensionObj !== null && extensionObj !== void 0 && extensionObj.node.attrs.extensionKey.includes(NATIVE_EMBED_EXTENSION_KEY)) {
363
363
  return;
364
364
  }
365
365
 
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  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; }
5
5
  import React from 'react';
6
6
  import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
7
- import { messages, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
7
+ import { messages, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
8
8
  import commonMessages from '@atlaskit/editor-common/messages';
9
9
  import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
10
10
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
@@ -348,7 +348,7 @@ export var getToolbarConfig = function getToolbarConfig(_ref2) {
348
348
 
349
349
  // If this is a native-embed extension, skip providing a toolbar config to allow
350
350
  // the native-embed plugin to provide a custom toolbar config.
351
- if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === NATIVE_EMBED_EXTENSION_TYPE) {
351
+ if ((extensionObj === null || extensionObj === void 0 ? void 0 : extensionObj.node.attrs.extensionType) === NATIVE_EMBED_EXTENSION_TYPE && extensionObj !== null && extensionObj !== void 0 && extensionObj.node.attrs.extensionKey.includes(NATIVE_EMBED_EXTENSION_KEY)) {
352
352
  return;
353
353
  }
354
354
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "10.1.16",
3
+ "version": "10.1.18",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,13 +52,13 @@
52
52
  "@atlaskit/radio": "^8.4.0",
53
53
  "@atlaskit/section-message": "^8.12.0",
54
54
  "@atlaskit/select": "^21.7.0",
55
- "@atlaskit/smart-user-picker": "^9.1.0",
55
+ "@atlaskit/smart-user-picker": "^9.2.0",
56
56
  "@atlaskit/spinner": "^19.0.0",
57
57
  "@atlaskit/tabs": "^18.3.0",
58
58
  "@atlaskit/textarea": "^8.2.0",
59
59
  "@atlaskit/textfield": "^8.2.0",
60
60
  "@atlaskit/theme": "^22.0.0",
61
- "@atlaskit/tmp-editor-statsig": "^33.0.0",
61
+ "@atlaskit/tmp-editor-statsig": "^35.0.0",
62
62
  "@atlaskit/toggle": "^15.2.0",
63
63
  "@atlaskit/tokens": "^11.0.0",
64
64
  "@atlaskit/tooltip": "^20.14.0",
@@ -72,7 +72,7 @@
72
72
  "uuid": "^3.1.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^111.26.0",
75
+ "@atlaskit/editor-common": "^111.30.0",
76
76
  "react": "^18.2.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
78
78
  },