@atlaskit/editor-plugin-quick-insert 2.0.0 → 2.0.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,27 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
8
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
9
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
10
+ future to avoid an accidental regression.
11
+
12
+ This is related to
13
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
14
+
15
+ ## 2.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#120426](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120426)
20
+ [`1fc7b1519dbcf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fc7b1519dbcf) -
21
+ Uses a separate FF for the new QuickInsert and Right rail to split them from the other Editor
22
+ Controls features.
23
+ - Updated dependencies
24
+
3
25
  ## 2.0.0
4
26
 
5
27
  ### Major Changes
@@ -38,7 +38,7 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
38
38
  var quickInsertState = _pluginKey.pluginKey.getState(editorState);
39
39
  var queryAllItems = '';
40
40
  return Promise.resolve((0, _search.getQuickInsertSuggestions)({
41
- query: (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? query : queryAllItems,
41
+ query: (0, _experiments.editorExperiment)('platform_editor_insertion', 'control') ? query : queryAllItems,
42
42
  disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
43
43
  prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
44
44
  }, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
@@ -27,7 +27,7 @@ export const quickInsertPlugin = ({
27
27
  const quickInsertState = pluginKey.getState(editorState);
28
28
  const queryAllItems = '';
29
29
  return Promise.resolve(getQuickInsertSuggestions({
30
- query: editorExperiment('platform_editor_controls', 'control') ? query : queryAllItems,
30
+ query: editorExperiment('platform_editor_insertion', 'control') ? query : queryAllItems,
31
31
  disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
32
32
  prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
33
33
  }, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
@@ -31,7 +31,7 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
31
31
  var quickInsertState = pluginKey.getState(editorState);
32
32
  var queryAllItems = '';
33
33
  return Promise.resolve(getQuickInsertSuggestions({
34
- query: editorExperiment('platform_editor_controls', 'control') ? query : queryAllItems,
34
+ query: editorExperiment('platform_editor_insertion', 'control') ? query : queryAllItems,
35
35
  disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
36
36
  prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
37
37
  }, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,22 +25,24 @@
25
25
  ]
26
26
  }
27
27
  },
28
- "sideEffects": false,
28
+ "sideEffects": [
29
+ "*.compiled.css"
30
+ ],
29
31
  "atlaskit:src": "src/index.ts",
30
32
  "af:exports": {
31
33
  ".": "./src/index.ts"
32
34
  },
33
35
  "dependencies": {
34
- "@atlaskit/button": "^21.0.0",
35
- "@atlaskit/editor-common": "^100.0.0",
36
+ "@atlaskit/button": "^21.1.0",
37
+ "@atlaskit/editor-common": "^100.4.0",
36
38
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
37
39
  "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
38
40
  "@atlaskit/editor-prosemirror": "7.0.0",
39
- "@atlaskit/icon": "^24.0.0",
41
+ "@atlaskit/icon": "^24.1.0",
40
42
  "@atlaskit/modal-dialog": "^13.0.0",
41
43
  "@atlaskit/theme": "^17.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^3.0.0",
43
- "@atlaskit/tokens": "^4.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^3.3.0",
45
+ "@atlaskit/tokens": "^4.2.0",
44
46
  "@babel/runtime": "^7.0.0",
45
47
  "@emotion/react": "^11.7.1"
46
48
  },