@atlaskit/editor-plugin-selection-extension 2.2.0 → 2.2.2

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,23 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#147994](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/147994)
8
+ [`59aa4e2352739`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/59aa4e2352739) -
9
+ [ux] Hide overflow menu when extension config is empty array
10
+ - Updated dependencies
11
+
12
+ ## 2.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#143337](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/143337)
17
+ [`761dd685f2d72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/761dd685f2d72) -
18
+ Export SelectionExtension type
19
+ - Updated dependencies
20
+
3
21
  ## 2.2.0
4
22
 
5
23
  ### Minor 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
 
@@ -1,3 +1,3 @@
1
1
  export { selectionExtensionPlugin } from './selectionExtensionPlugin';
2
2
  export type { SelectionExtensionPlugin } from './selectionExtensionPluginType';
3
- export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions } from './types';
3
+ export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions, SelectionExtension, } from './types';
@@ -1,3 +1,3 @@
1
1
  export { selectionExtensionPlugin } from './selectionExtensionPlugin';
2
2
  export type { SelectionExtensionPlugin } from './selectionExtensionPluginType';
3
- export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions } from './types';
3
+ export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions, SelectionExtension, } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
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.4.0",
39
+ "@atlaskit/editor-common": "^103.21.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
42
- "@atlaskit/editor-plugin-selection-toolbar": "^3.4.0",
42
+ "@atlaskit/editor-plugin-selection-toolbar": "^3.5.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/icon": "^25.5.0",
44
+ "@atlaskit/icon": "^25.6.0",
45
45
  "@atlaskit/primitives": "^14.4.0",
46
- "@atlaskit/tmp-editor-statsig": "^4.6.0",
46
+ "@atlaskit/tmp-editor-statsig": "^4.15.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",