@atlaskit/editor-plugin-quick-insert 16.2.8 → 16.3.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,40 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 16.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c12860a41f49d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c12860a41f49d) -
8
+ Order the Data and charts slash-command menu, including Bitbucket Snippet and GitHub Gist after
9
+ Questions List, when platform_editor_slash_command is enabled.
10
+ - Updated dependencies
11
+
12
+ ## 16.3.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
18
+ ## 16.3.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [`6d830aac99d6d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d830aac99d6d) -
23
+ Add deprecation tag to blockControlsPlugin quickInsertButtonEnabled property - this has been
24
+ replaced with a new `blockControlButtonEnabled` plugin config in the quickInsertPlugin, which is
25
+ currently gated under `platform_editor_block_control_migration` and will be removed in future
26
+ update.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
32
+ ## 16.2.9
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 16.2.8
4
39
 
5
40
  ### Patch Changes
@@ -107,7 +107,7 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
107
107
  isRecommendedItem: options === null || options === void 0 ? void 0 : options.isRecommendedItem
108
108
  }));
109
109
  }
110
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration')) {
110
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration') && (options === null || options === void 0 ? void 0 : options.blockControlButtonEnabled) !== false) {
111
111
  var _api$uiControlRegistr2;
112
112
  api === null || api === void 0 || (_api$uiControlRegistr2 = api.uiControlRegistry) === null || _api$uiControlRegistr2 === void 0 || _api$uiControlRegistr2.actions.register((0, _blockControlQuickInsert.getBlockControlQuickInsertComponents)({
113
113
  api: api,
@@ -94,7 +94,7 @@ export const quickInsertPlugin = ({
94
94
  isRecommendedItem: options === null || options === void 0 ? void 0 : options.isRecommendedItem
95
95
  }));
96
96
  }
97
- if (isExperimentEnabled('platform_editor_block_control_migration')) {
97
+ if (isExperimentEnabled('platform_editor_block_control_migration') && (options === null || options === void 0 ? void 0 : options.blockControlButtonEnabled) !== false) {
98
98
  var _api$uiControlRegistr2;
99
99
  api === null || api === void 0 ? void 0 : (_api$uiControlRegistr2 = api.uiControlRegistry) === null || _api$uiControlRegistr2 === void 0 ? void 0 : _api$uiControlRegistr2.actions.register(getBlockControlQuickInsertComponents({
100
100
  api,
@@ -100,7 +100,7 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
100
100
  isRecommendedItem: options === null || options === void 0 ? void 0 : options.isRecommendedItem
101
101
  }));
102
102
  }
103
- if (isExperimentEnabled('platform_editor_block_control_migration')) {
103
+ if (isExperimentEnabled('platform_editor_block_control_migration') && (options === null || options === void 0 ? void 0 : options.blockControlButtonEnabled) !== false) {
104
104
  var _api$uiControlRegistr2;
105
105
  api === null || api === void 0 || (_api$uiControlRegistr2 = api.uiControlRegistry) === null || _api$uiControlRegistr2 === void 0 || _api$uiControlRegistr2.actions.register(getBlockControlQuickInsertComponents({
106
106
  api: api,
@@ -9,7 +9,15 @@ import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control
9
9
  export type QuickInsertSharedState = CommonQuickInsertSharedState & {
10
10
  typeAheadHandler: TypeAheadHandler;
11
11
  };
12
- export type QuickInsertPluginOptions = CommonQuickInsertPluginOptions;
12
+ export type QuickInsertPluginOptions = CommonQuickInsertPluginOptions & {
13
+ /**
14
+ * Enables the floating quick insert button, which appears inline alongside content in the editor.
15
+ *
16
+ * Warning: This option replaces the current block control plugin config `blockControls.quickInsertButtonEnabled`
17
+ * and is only available when `platform_editor_block_control_migration` experiment is enabled.
18
+ */
19
+ blockControlButtonEnabled?: boolean;
20
+ };
13
21
  export type OpenElementBrowserOptions = {
14
22
  category?: string;
15
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "16.2.8",
3
+ "version": "16.3.2",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/platform-feature-flags": "^2.2.0",
39
39
  "@atlaskit/primitives": "^22.5.0",
40
40
  "@atlaskit/textfield": "^10.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^174.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^177.0.0",
42
42
  "@atlaskit/tokens": "^16.11.0",
43
43
  "@atlaskit/tooltip": "^24.3.0",
44
44
  "@babel/runtime": "^7.0.0",
@@ -46,7 +46,7 @@
46
46
  "@emotion/react": "^11.7.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^120.13.0",
49
+ "@atlaskit/editor-common": "^120.16.0",
50
50
  "react": "^18.2.0 || ^19.2.0",
51
51
  "react-dom": "^18.2.0 || ^19.2.0",
52
52
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"