@atlaskit/editor-plugin-selection-extension 2.2.1 → 2.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,20 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 2.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#147994](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/147994)
14
+ [`59aa4e2352739`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/59aa4e2352739) -
15
+ [ux] Hide overflow menu when extension config is empty array
16
+ - Updated dependencies
17
+
3
18
  ## 2.2.1
4
19
 
5
20
  ### Patch Changes
@@ -68,7 +68,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
68
68
  *
69
69
  * Check whether plugin contains any selection extensions
70
70
  */
71
- if (!(extensions !== null && extensions !== void 0 && extensions.firstParty) && !(extensions !== null && extensions !== void 0 && extensions.external)) {
71
+ if ((!(extensions !== null && extensions !== void 0 && extensions.firstParty) || extensions.firstParty.length === 0) && (!(extensions !== null && extensions !== void 0 && extensions.external) || extensions.external.length === 0)) {
72
72
  return;
73
73
  }
74
74
 
@@ -62,7 +62,7 @@ export const selectionExtensionPlugin = ({
62
62
  *
63
63
  * Check whether plugin contains any selection extensions
64
64
  */
65
- if (!(extensions !== null && extensions !== void 0 && extensions.firstParty) && !(extensions !== null && extensions !== void 0 && extensions.external)) {
65
+ if ((!(extensions !== null && extensions !== void 0 && extensions.firstParty) || extensions.firstParty.length === 0) && (!(extensions !== null && extensions !== void 0 && extensions.external) || extensions.external.length === 0)) {
66
66
  return;
67
67
  }
68
68
 
@@ -61,7 +61,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
61
61
  *
62
62
  * Check whether plugin contains any selection extensions
63
63
  */
64
- if (!(extensions !== null && extensions !== void 0 && extensions.firstParty) && !(extensions !== null && extensions !== void 0 && extensions.external)) {
64
+ if ((!(extensions !== null && extensions !== void 0 && extensions.firstParty) || extensions.firstParty.length === 0) && (!(extensions !== null && extensions !== void 0 && extensions.external) || extensions.external.length === 0)) {
65
65
  return;
66
66
  }
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,14 +36,14 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/editor-common": "^103.16.0",
39
+ "@atlaskit/editor-common": "^104.0.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
42
42
  "@atlaskit/editor-plugin-selection-toolbar": "^3.5.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/icon": "^25.6.0",
45
- "@atlaskit/primitives": "^14.4.0",
46
- "@atlaskit/tmp-editor-statsig": "^4.14.0",
45
+ "@atlaskit/primitives": "^14.7.0",
46
+ "@atlaskit/tmp-editor-statsig": "^4.16.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "react-intl-next": "npm:react-intl@^5.18.1",
49
49
  "uuid": "^3.1.0"
@@ -52,10 +52,10 @@
52
52
  "react": "^18.2.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@af/integration-testing": "^0.5.0",
56
- "@af/visual-regression": "^1.3.0",
57
- "@atlaskit/ssr": "^0.4.0",
58
- "@atlaskit/visual-regression": "^0.10.0",
55
+ "@af/integration-testing": "workspace:^",
56
+ "@af/visual-regression": "workspace:^",
57
+ "@atlaskit/ssr": "workspace:^",
58
+ "@atlaskit/visual-regression": "workspace:^",
59
59
  "@testing-library/react": "^13.4.0",
60
60
  "react-dom": "^18.2.0",
61
61
  "typescript": "~5.4.2",