@atlaskit/editor-plugin-panel 1.2.4 → 1.2.5

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,15 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
8
+ [`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
9
+ [ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
10
+ the fold (in the top 5 results)
11
+ - Updated dependencies
12
+
3
13
  ## 1.2.4
4
14
 
5
15
  ### Patch Changes
@@ -52,13 +52,14 @@ var panelPlugin = function panelPlugin(_ref) {
52
52
  },
53
53
  pluginsOptions: {
54
54
  quickInsert: function quickInsert(_ref3) {
55
+ var _options$getEditorFea;
55
56
  var formatMessage = _ref3.formatMessage;
56
57
  var quickInsertOptions = [{
57
58
  id: 'infopanel',
58
59
  title: formatMessage(_messages.blockTypeMessages.infoPanel),
59
60
  keywords: ['panel'],
60
61
  description: formatMessage(_messages.blockTypeMessages.infoPanelDescription),
61
- priority: 800,
62
+ priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
62
63
  icon: function icon() {
63
64
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconPanel, null);
64
65
  },
@@ -43,12 +43,13 @@ const panelPlugin = ({
43
43
  quickInsert: ({
44
44
  formatMessage
45
45
  }) => {
46
+ var _options$getEditorFea;
46
47
  let quickInsertOptions = [{
47
48
  id: 'infopanel',
48
49
  title: formatMessage(blockTypeMessages.infoPanel),
49
50
  keywords: ['panel'],
50
51
  description: formatMessage(blockTypeMessages.infoPanelDescription),
51
- priority: 800,
52
+ priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
52
53
  icon: () => /*#__PURE__*/React.createElement(IconPanel, null),
53
54
  action(insert, state) {
54
55
  return createPanelAction({
@@ -45,13 +45,14 @@ var panelPlugin = function panelPlugin(_ref) {
45
45
  },
46
46
  pluginsOptions: {
47
47
  quickInsert: function quickInsert(_ref3) {
48
+ var _options$getEditorFea;
48
49
  var formatMessage = _ref3.formatMessage;
49
50
  var quickInsertOptions = [{
50
51
  id: 'infopanel',
51
52
  title: formatMessage(blockTypeMessages.infoPanel),
52
53
  keywords: ['panel'],
53
54
  description: formatMessage(blockTypeMessages.infoPanelDescription),
54
- priority: 800,
55
+ priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 200 : 800,
55
56
  icon: function icon() {
56
57
  return /*#__PURE__*/React.createElement(IconPanel, null);
57
58
  },
@@ -1,4 +1,4 @@
1
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
1
+ import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
@@ -6,6 +6,7 @@ export interface PanelPluginOptions extends LongPressSelectionPluginOptions, Pan
6
6
  export interface PanelPluginConfig {
7
7
  allowCustomPanel?: boolean;
8
8
  allowCustomPanelEdit?: boolean;
9
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
9
10
  }
10
11
  export type DomPanelAtrrs = {
11
12
  class: string;
@@ -1,4 +1,4 @@
1
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
1
+ import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
@@ -6,6 +6,7 @@ export interface PanelPluginOptions extends LongPressSelectionPluginOptions, Pan
6
6
  export interface PanelPluginConfig {
7
7
  allowCustomPanel?: boolean;
8
8
  allowCustomPanelEdit?: boolean;
9
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
9
10
  }
10
11
  export type DomPanelAtrrs = {
11
12
  class: string;
package/package.json CHANGED
@@ -1,106 +1,86 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-panel",
3
- "version": "1.2.4",
4
- "description": "Panel plugin for @atlaskit/editor-core.",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Jenga",
12
- "singleton": true,
13
- "inPublicMirror": false,
14
- "releaseModel": "continuous",
15
- "runReact18": false
16
- },
17
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
- "main": "dist/cjs/index.js",
19
- "module": "dist/esm/index.js",
20
- "module:es2019": "dist/es2019/index.js",
21
- "types": "dist/types/index.d.ts",
22
- "typesVersions": {
23
- ">=4.5 <4.9": {
24
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
- "sideEffects": false,
31
- "atlaskit:src": "src/index.ts",
32
- "af:exports": {
33
- ".": "./src/index.ts"
34
- },
35
- "dependencies": {
36
- "@atlaskit/adf-schema": "^36.10.7",
37
- "@atlaskit/editor-common": "^82.0.0",
38
- "@atlaskit/editor-palette": "1.6.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
- "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
- "@atlaskit/editor-prosemirror": "4.0.1",
42
- "@atlaskit/editor-shared-styles": "^2.12.0",
43
- "@atlaskit/emoji": "^67.6.0",
44
- "@atlaskit/icon": "^22.3.0",
45
- "@atlaskit/platform-feature-flags": "^0.2.0",
46
- "@atlaskit/theme": "^12.8.0",
47
- "@babel/runtime": "^7.0.0"
48
- },
49
- "peerDependencies": {
50
- "react": "^16.8.0",
51
- "react-dom": "^16.8.0",
52
- "react-intl-next": "npm:react-intl@^5.18.1"
53
- },
54
- "devDependencies": {
55
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
56
- "@atlaskit/util-data-test": "^17.9.0",
57
- "react-dom": "^16.8.0",
58
- "typescript": "~5.4.2"
59
- },
60
- "techstack": {
61
- "@atlassian/frontend": {
62
- "import-structure": [
63
- "atlassian-conventions"
64
- ],
65
- "circular-dependencies": [
66
- "file-and-folder-level"
67
- ]
68
- },
69
- "@repo/internal": {
70
- "dom-events": "use-bind-event-listener",
71
- "analytics": [
72
- "analytics-next"
73
- ],
74
- "design-tokens": [
75
- "color"
76
- ],
77
- "theming": [
78
- "react-context"
79
- ],
80
- "ui-components": [
81
- "lite-mode"
82
- ],
83
- "deprecation": "no-deprecated-imports",
84
- "styling": [
85
- "emotion",
86
- "emotion"
87
- ],
88
- "imports": [
89
- "import-no-extraneous-disable-for-examples-and-docs"
90
- ]
91
- }
92
- },
93
- "platform-feature-flags": {
94
- "platform.editor.allow-extended-panel": {
95
- "type": "boolean"
96
- },
97
- "platform.editor.allow-custom-cut-for-panel": {
98
- "type": "boolean"
99
- }
100
- },
101
- "stricter": {
102
- "no-unused-dependencies": {
103
- "checkDevDependencies": true
104
- }
105
- }
106
- }
2
+ "name": "@atlaskit/editor-plugin-panel",
3
+ "version": "1.2.5",
4
+ "description": "Panel plugin for @atlaskit/editor-core.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Jenga",
12
+ "singleton": true,
13
+ "inPublicMirror": false,
14
+ "releaseModel": "continuous",
15
+ "runReact18": false
16
+ },
17
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
+ "main": "dist/cjs/index.js",
19
+ "module": "dist/esm/index.js",
20
+ "module:es2019": "dist/es2019/index.js",
21
+ "types": "dist/types/index.d.ts",
22
+ "typesVersions": {
23
+ ">=4.5 <4.9": {
24
+ "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
25
+ }
26
+ },
27
+ "sideEffects": false,
28
+ "atlaskit:src": "src/index.ts",
29
+ "af:exports": {
30
+ ".": "./src/index.ts"
31
+ },
32
+ "dependencies": {
33
+ "@atlaskit/adf-schema": "^36.10.7",
34
+ "@atlaskit/editor-common": "^82.6.0",
35
+ "@atlaskit/editor-palette": "1.6.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
37
+ "@atlaskit/editor-plugin-decorations": "^1.1.0",
38
+ "@atlaskit/editor-prosemirror": "4.0.1",
39
+ "@atlaskit/editor-shared-styles": "^2.12.0",
40
+ "@atlaskit/emoji": "^67.6.0",
41
+ "@atlaskit/icon": "^22.3.0",
42
+ "@atlaskit/platform-feature-flags": "^0.2.0",
43
+ "@atlaskit/theme": "^12.9.0",
44
+ "@babel/runtime": "^7.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^16.8.0",
48
+ "react-dom": "^16.8.0",
49
+ "react-intl-next": "npm:react-intl@^5.18.1"
50
+ },
51
+ "devDependencies": {
52
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
53
+ "@atlaskit/util-data-test": "^17.9.0",
54
+ "react-dom": "^16.8.0",
55
+ "typescript": "~5.4.2"
56
+ },
57
+ "techstack": {
58
+ "@atlassian/frontend": {
59
+ "import-structure": ["atlassian-conventions"],
60
+ "circular-dependencies": ["file-and-folder-level"]
61
+ },
62
+ "@repo/internal": {
63
+ "dom-events": "use-bind-event-listener",
64
+ "analytics": ["analytics-next"],
65
+ "design-tokens": ["color"],
66
+ "theming": ["react-context"],
67
+ "ui-components": ["lite-mode"],
68
+ "deprecation": "no-deprecated-imports",
69
+ "styling": ["emotion", "emotion"],
70
+ "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
71
+ }
72
+ },
73
+ "platform-feature-flags": {
74
+ "platform.editor.allow-extended-panel": {
75
+ "type": "boolean"
76
+ },
77
+ "platform.editor.allow-custom-cut-for-panel": {
78
+ "type": "boolean"
79
+ }
80
+ },
81
+ "stricter": {
82
+ "no-unused-dependencies": {
83
+ "checkDevDependencies": true
84
+ }
85
+ }
86
+ }