@atlaskit/editor-plugin-expand 1.7.2 → 1.7.4

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/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -62,6 +62,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
62
62
  pluginsOptions: {
63
63
  floatingToolbar: (0, _toolbar.getToolbarConfig)(api),
64
64
  quickInsert: function quickInsert(_ref3) {
65
+ var _options$getEditorFea;
65
66
  var formatMessage = _ref3.formatMessage;
66
67
  if (options && options.allowInsertion !== true) {
67
68
  return [];
@@ -71,7 +72,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
71
72
  title: formatMessage(_messages.toolbarInsertBlockMessages.expand),
72
73
  description: formatMessage(_messages.toolbarInsertBlockMessages.expandDescription),
73
74
  keywords: ['accordion', 'collapse'],
74
- priority: 600,
75
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
75
76
  icon: function icon() {
76
77
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconExpand, null);
77
78
  },
@@ -69,7 +69,9 @@ var CustomButton = exports.CustomButton = function CustomButton(props) {
69
69
  }, rest);
70
70
  }, [props]);
71
71
  return (0, _react2.jsx)(_customThemeButton.default, {
72
- appearance: "subtle",
72
+ appearance: "subtle"
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
74
+ ,
73
75
  className: _styles.expandClassNames.iconContainer,
74
76
  iconBefore: (0, _react2.jsx)(_chevronRight.default, {
75
77
  label: ''
@@ -98,7 +100,7 @@ var ExpandIconButton = exports.ExpandIconButton = function ExpandIconButton(prop
98
100
  }, props));
99
101
  }
100
102
  return (
101
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
103
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
102
104
  (0, _react2.jsx)("div", {
103
105
  css: _ui.expandLayoutWrapperStyle
104
106
  }, (0, _react2.jsx)(ButtonWithoutTooltip, (0, _extends2.default)({
@@ -55,6 +55,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
55
55
  pluginsOptions: {
56
56
  floatingToolbar: (0, _toolbar.getToolbarConfig)(api),
57
57
  quickInsert: function quickInsert(_ref3) {
58
+ var _options$getEditorFea;
58
59
  var formatMessage = _ref3.formatMessage;
59
60
  if (options && options.allowInsertion !== true) {
60
61
  return [];
@@ -64,7 +65,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
64
65
  title: formatMessage(_messages.toolbarInsertBlockMessages.expand),
65
66
  description: formatMessage(_messages.toolbarInsertBlockMessages.expandDescription),
66
67
  keywords: ['accordion', 'collapse'],
67
- priority: 600,
68
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
68
69
  icon: function icon() {
69
70
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconExpand, null);
70
71
  },
@@ -48,7 +48,9 @@ var ExpandButtonInner = exports.ExpandButtonInner = function ExpandButtonInner(p
48
48
  }, rest);
49
49
  }, [props]);
50
50
  return (0, _react2.jsx)(_customThemeButton.default, {
51
- appearance: "subtle",
51
+ appearance: "subtle"
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
53
+ ,
52
54
  className: _styles.expandClassNames.iconContainer,
53
55
  iconBefore: (0, _react2.jsx)(_chevronRight.default, {
54
56
  label: ''
@@ -77,7 +79,7 @@ var ExpandButton = exports.ExpandButton = function ExpandButton(props) {
77
79
  }, props));
78
80
  }
79
81
  return (
80
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
82
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
81
83
  (0, _react2.jsx)("div", {
82
84
  css: _ui.expandLayoutWrapperStyle
83
85
  }, (0, _react2.jsx)(ButtonWithoutTooltip, (0, _extends2.default)({
@@ -50,6 +50,7 @@ export const expandPlugin = ({
50
50
  quickInsert: ({
51
51
  formatMessage
52
52
  }) => {
53
+ var _options$getEditorFea;
53
54
  if (options && options.allowInsertion !== true) {
54
55
  return [];
55
56
  }
@@ -58,7 +59,7 @@ export const expandPlugin = ({
58
59
  title: formatMessage(messages.expand),
59
60
  description: formatMessage(messages.expandDescription),
60
61
  keywords: ['accordion', 'collapse'],
61
- priority: 600,
62
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
62
63
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
63
64
  action(insert, state) {
64
65
  var _api$analytics2;
@@ -48,7 +48,9 @@ export const CustomButton = props => {
48
48
  };
49
49
  }, [props]);
50
50
  return jsx(Button, {
51
- appearance: "subtle",
51
+ appearance: "subtle"
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
53
+ ,
52
54
  className: expandClassNames.iconContainer,
53
55
  iconBefore: jsx(ChevronRightIcon, {
54
56
  label: ''
@@ -79,7 +81,7 @@ export const ExpandIconButton = props => {
79
81
  }, props));
80
82
  }
81
83
  return (
82
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
84
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
83
85
  jsx("div", {
84
86
  css: expandLayoutWrapperStyle
85
87
  }, jsx(ButtonWithoutTooltip, _extends({
@@ -49,6 +49,7 @@ export const expandPlugin = ({
49
49
  quickInsert: ({
50
50
  formatMessage
51
51
  }) => {
52
+ var _options$getEditorFea;
52
53
  if (options && options.allowInsertion !== true) {
53
54
  return [];
54
55
  }
@@ -57,7 +58,7 @@ export const expandPlugin = ({
57
58
  title: formatMessage(messages.expand),
58
59
  description: formatMessage(messages.expandDescription),
59
60
  keywords: ['accordion', 'collapse'],
60
- priority: 600,
61
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
61
62
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
62
63
  action(insert, state) {
63
64
  var _api$analytics2;
@@ -36,7 +36,9 @@ export const ExpandButtonInner = props => {
36
36
  };
37
37
  }, [props]);
38
38
  return jsx(Button, {
39
- appearance: "subtle",
39
+ appearance: "subtle"
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
41
+ ,
40
42
  className: expandClassNames.iconContainer,
41
43
  iconBefore: jsx(ChevronRightIcon, {
42
44
  label: ''
@@ -67,7 +69,7 @@ export const ExpandButton = props => {
67
69
  }, props));
68
70
  }
69
71
  return (
70
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
72
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
71
73
  jsx("div", {
72
74
  css: expandLayoutWrapperStyle
73
75
  }, jsx(ButtonWithoutTooltip, _extends({
@@ -49,6 +49,7 @@ export var expandPlugin = function expandPlugin(_ref) {
49
49
  pluginsOptions: {
50
50
  floatingToolbar: getToolbarConfig(api),
51
51
  quickInsert: function quickInsert(_ref3) {
52
+ var _options$getEditorFea;
52
53
  var formatMessage = _ref3.formatMessage;
53
54
  if (options && options.allowInsertion !== true) {
54
55
  return [];
@@ -58,7 +59,7 @@ export var expandPlugin = function expandPlugin(_ref) {
58
59
  title: formatMessage(messages.expand),
59
60
  description: formatMessage(messages.expandDescription),
60
61
  keywords: ['accordion', 'collapse'],
61
- priority: 600,
62
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
62
63
  icon: function icon() {
63
64
  return /*#__PURE__*/React.createElement(IconExpand, null);
64
65
  },
@@ -60,7 +60,9 @@ export var CustomButton = function CustomButton(props) {
60
60
  }, rest);
61
61
  }, [props]);
62
62
  return jsx(Button, {
63
- appearance: "subtle",
63
+ appearance: "subtle"
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
65
+ ,
64
66
  className: expandClassNames.iconContainer,
65
67
  iconBefore: jsx(ChevronRightIcon, {
66
68
  label: ''
@@ -89,7 +91,7 @@ export var ExpandIconButton = function ExpandIconButton(props) {
89
91
  }, props));
90
92
  }
91
93
  return (
92
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
94
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
93
95
  jsx("div", {
94
96
  css: expandLayoutWrapperStyle
95
97
  }, jsx(ButtonWithoutTooltip, _extends({
@@ -48,6 +48,7 @@ export var expandPlugin = function expandPlugin(_ref) {
48
48
  pluginsOptions: {
49
49
  floatingToolbar: getToolbarConfig(api),
50
50
  quickInsert: function quickInsert(_ref3) {
51
+ var _options$getEditorFea;
51
52
  var formatMessage = _ref3.formatMessage;
52
53
  if (options && options.allowInsertion !== true) {
53
54
  return [];
@@ -57,7 +58,7 @@ export var expandPlugin = function expandPlugin(_ref) {
57
58
  title: formatMessage(messages.expand),
58
59
  description: formatMessage(messages.expandDescription),
59
60
  keywords: ['accordion', 'collapse'],
60
- priority: 600,
61
+ priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 700 : 600,
61
62
  icon: function icon() {
62
63
  return /*#__PURE__*/React.createElement(IconExpand, null);
63
64
  },
@@ -38,7 +38,9 @@ export var ExpandButtonInner = function ExpandButtonInner(props) {
38
38
  }, rest);
39
39
  }, [props]);
40
40
  return jsx(Button, {
41
- appearance: "subtle",
41
+ appearance: "subtle"
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
43
+ ,
42
44
  className: expandClassNames.iconContainer,
43
45
  iconBefore: jsx(ChevronRightIcon, {
44
46
  label: ''
@@ -67,7 +69,7 @@ export var ExpandButton = function ExpandButton(props) {
67
69
  }, props));
68
70
  }
69
71
  return (
70
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
72
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
71
73
  jsx("div", {
72
74
  css: expandLayoutWrapperStyle
73
75
  }, jsx(ButtonWithoutTooltip, _extends({
@@ -1,2 +1,2 @@
1
- export type { ExpandPlugin, ExpandPluginState, ExpandPluginOptions, } from './types';
1
+ export type { ExpandPlugin, ExpandPluginState, ExpandPluginOptions } from './types';
2
2
  export { expandPlugin } from './plugin';
@@ -12,7 +12,7 @@ export declare const toggleExpandExpanded: ({ editorAnalyticsAPI, pos, node, }:
12
12
  pos: number;
13
13
  node: PMNode;
14
14
  }) => Command;
15
- export declare const updateExpandTitle: ({ title, nodeType, pos, }: {
15
+ export declare const updateExpandTitle: ({ title, nodeType, pos }: {
16
16
  title: string;
17
17
  pos: number;
18
18
  nodeType: NodeType;
@@ -1,4 +1,4 @@
1
- import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
4
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -33,6 +33,7 @@ export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
33
33
  * @default false
34
34
  */
35
35
  __livePage?: boolean;
36
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
36
37
  }
37
38
  export type ExpandPlugin = NextEditorPlugin<'expand', {
38
39
  pluginConfiguration: ExpandPluginOptions | undefined;
@@ -1,2 +1,2 @@
1
- export type { ExpandPlugin, ExpandPluginState, ExpandPluginOptions, } from './types';
1
+ export type { ExpandPlugin, ExpandPluginState, ExpandPluginOptions } from './types';
2
2
  export { expandPlugin } from './plugin';
@@ -12,7 +12,7 @@ export declare const toggleExpandExpanded: ({ editorAnalyticsAPI, pos, node, }:
12
12
  pos: number;
13
13
  node: PMNode;
14
14
  }) => Command;
15
- export declare const updateExpandTitle: ({ title, nodeType, pos, }: {
15
+ export declare const updateExpandTitle: ({ title, nodeType, pos }: {
16
16
  title: string;
17
17
  pos: number;
18
18
  nodeType: NodeType;
@@ -1,4 +1,4 @@
1
- import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
4
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -33,6 +33,7 @@ export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
33
33
  * @default false
34
34
  */
35
35
  __livePage?: boolean;
36
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
36
37
  }
37
38
  export type ExpandPlugin = NextEditorPlugin<'expand', {
38
39
  pluginConfiguration: ExpandPluginOptions | undefined;
package/package.json CHANGED
@@ -1,117 +1,95 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-expand",
3
- "version": "1.7.2",
4
- "description": "Expand 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/button": "^17.16.0",
38
- "@atlaskit/editor-common": "^81.0.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
- "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
- "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
42
- "@atlaskit/editor-plugin-selection": "^1.2.0",
43
- "@atlaskit/editor-plugin-selection-marker": "^1.3.0",
44
- "@atlaskit/editor-prosemirror": "4.0.1",
45
- "@atlaskit/editor-shared-styles": "^2.11.0",
46
- "@atlaskit/editor-tables": "^2.7.0",
47
- "@atlaskit/icon": "^22.3.0",
48
- "@atlaskit/platform-feature-flags": "^0.2.0",
49
- "@atlaskit/tooltip": "^18.4.0",
50
- "@babel/runtime": "^7.0.0",
51
- "@emotion/react": "^11.7.1",
52
- "w3c-keyname": "^2.1.8"
53
- },
54
- "peerDependencies": {
55
- "react": "^16.8.0",
56
- "react-dom": "^16.8.0",
57
- "react-intl-next": "npm:react-intl@^5.18.1"
58
- },
59
- "devDependencies": {
60
- "@atlaskit/analytics-next": "^9.3.0",
61
- "@atlaskit/editor-plugin-content-insertion": "^1.2.0",
62
- "@atlaskit/editor-plugin-guideline": "^1.1.0",
63
- "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
64
- "@atlaskit/editor-plugin-table": "^7.16.0",
65
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
66
- "@atlaskit/editor-plugin-width": "^1.1.0",
67
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
68
- "@testing-library/react": "^12.1.5",
69
- "react-test-renderer": "^16.8.0",
70
- "typescript": "~5.4.2"
71
- },
72
- "techstack": {
73
- "@atlassian/frontend": {
74
- "import-structure": [
75
- "atlassian-conventions"
76
- ],
77
- "circular-dependencies": [
78
- "file-and-folder-level"
79
- ]
80
- },
81
- "@repo/internal": {
82
- "dom-events": "use-bind-event-listener",
83
- "analytics": [
84
- "analytics-next"
85
- ],
86
- "design-tokens": [
87
- "color"
88
- ],
89
- "theming": [
90
- "react-context"
91
- ],
92
- "ui-components": [
93
- "lite-mode"
94
- ],
95
- "deprecation": "no-deprecated-imports",
96
- "styling": [
97
- "emotion",
98
- "emotion"
99
- ],
100
- "imports": [
101
- "import-no-extraneous-disable-for-examples-and-docs"
102
- ]
103
- }
104
- },
105
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
106
- "platform-feature-flags": {
107
- "platform.editor.live-pages-expand-divergence": {
108
- "type": "boolean"
109
- },
110
- "platform.editor.single-player-expand": {
111
- "type": "boolean"
112
- },
113
- "platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
114
- "type": "boolean"
115
- }
116
- }
117
- }
2
+ "name": "@atlaskit/editor-plugin-expand",
3
+ "version": "1.7.4",
4
+ "description": "Expand 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/button": "^17.17.0",
35
+ "@atlaskit/editor-common": "^82.6.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
37
+ "@atlaskit/editor-plugin-decorations": "^1.1.0",
38
+ "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
39
+ "@atlaskit/editor-plugin-selection": "^1.2.0",
40
+ "@atlaskit/editor-plugin-selection-marker": "^1.3.0",
41
+ "@atlaskit/editor-prosemirror": "4.0.1",
42
+ "@atlaskit/editor-shared-styles": "^2.12.0",
43
+ "@atlaskit/editor-tables": "^2.7.0",
44
+ "@atlaskit/icon": "^22.3.0",
45
+ "@atlaskit/platform-feature-flags": "^0.2.0",
46
+ "@atlaskit/tooltip": "^18.4.0",
47
+ "@babel/runtime": "^7.0.0",
48
+ "@emotion/react": "^11.7.1",
49
+ "w3c-keyname": "^2.1.8"
50
+ },
51
+ "peerDependencies": {
52
+ "react": "^16.8.0",
53
+ "react-dom": "^16.8.0",
54
+ "react-intl-next": "npm:react-intl@^5.18.1"
55
+ },
56
+ "devDependencies": {
57
+ "@atlaskit/analytics-next": "^9.3.0",
58
+ "@atlaskit/editor-plugin-content-insertion": "^1.2.0",
59
+ "@atlaskit/editor-plugin-guideline": "^1.1.0",
60
+ "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
61
+ "@atlaskit/editor-plugin-table": "^7.17.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
63
+ "@atlaskit/editor-plugin-width": "^1.1.0",
64
+ "@testing-library/react": "^12.1.5",
65
+ "react-test-renderer": "^16.8.0",
66
+ "typescript": "~5.4.2"
67
+ },
68
+ "techstack": {
69
+ "@atlassian/frontend": {
70
+ "import-structure": ["atlassian-conventions"],
71
+ "circular-dependencies": ["file-and-folder-level"]
72
+ },
73
+ "@repo/internal": {
74
+ "dom-events": "use-bind-event-listener",
75
+ "analytics": ["analytics-next"],
76
+ "design-tokens": ["color"],
77
+ "theming": ["react-context"],
78
+ "ui-components": ["lite-mode"],
79
+ "deprecation": "no-deprecated-imports",
80
+ "styling": ["emotion", "emotion"],
81
+ "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
82
+ }
83
+ },
84
+ "platform-feature-flags": {
85
+ "platform.editor.live-pages-expand-divergence": {
86
+ "type": "boolean"
87
+ },
88
+ "platform.editor.single-player-expand": {
89
+ "type": "boolean"
90
+ },
91
+ "platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
92
+ "type": "boolean"
93
+ }
94
+ }
95
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-expand"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -28,19 +29,19 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
28
29
 
29
30
  // @public (undocumented)
30
31
  export type ExpandPlugin = NextEditorPlugin<
31
- 'expand',
32
- {
33
- pluginConfiguration: ExpandPluginOptions_2 | undefined;
34
- dependencies: [
35
- OptionalPlugin<FeatureFlagsPlugin>,
36
- DecorationsPlugin,
37
- SelectionPlugin,
38
- OptionalPlugin<AnalyticsPlugin>,
39
- ];
40
- actions: {
41
- insertExpand: ReturnType<typeof insertExpand>;
42
- };
43
- }
32
+ 'expand',
33
+ {
34
+ pluginConfiguration: ExpandPluginOptions_2 | undefined;
35
+ dependencies: [
36
+ OptionalPlugin<FeatureFlagsPlugin>,
37
+ DecorationsPlugin,
38
+ SelectionPlugin,
39
+ OptionalPlugin<AnalyticsPlugin>,
40
+ ];
41
+ actions: {
42
+ insertExpand: ReturnType<typeof insertExpand>;
43
+ };
44
+ }
44
45
  >;
45
46
 
46
47
  // @public (undocumented)
@@ -48,30 +49,28 @@ export const expandPlugin: ExpandPlugin;
48
49
 
49
50
  // @public (undocumented)
50
51
  export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
51
- // (undocumented)
52
- allowInsertion?: boolean;
53
- // (undocumented)
54
- appearance?: EditorAppearance;
52
+ // (undocumented)
53
+ allowInsertion?: boolean;
54
+ // (undocumented)
55
+ appearance?: EditorAppearance;
55
56
  }
56
57
 
57
58
  // @public (undocumented)
58
59
  interface ExpandPluginOptions_2 extends LongPressSelectionPluginOptions {
59
- // (undocumented)
60
- allowInsertion?: boolean;
61
- // (undocumented)
62
- appearance?: EditorAppearance;
60
+ // (undocumented)
61
+ allowInsertion?: boolean;
62
+ // (undocumented)
63
+ appearance?: EditorAppearance;
63
64
  }
64
65
 
65
66
  // @public (undocumented)
66
67
  export interface ExpandPluginState {
67
- // (undocumented)
68
- expandRef?: HTMLDivElement | null;
68
+ // (undocumented)
69
+ expandRef?: HTMLDivElement | null;
69
70
  }
70
71
 
71
72
  // @public (undocumented)
72
- const insertExpand: (
73
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
74
- ) => Command;
73
+ const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
75
74
 
76
75
  // (No @packageDocumentation comment for this package)
77
76
  ```
@@ -84,9 +83,9 @@ const insertExpand: (
84
83
 
85
84
  ```json
86
85
  {
87
- "react": "^16.8.0",
88
- "react-dom": "^16.8.0",
89
- "react-intl-next": "npm:react-intl@^5.18.1"
86
+ "react": "^16.8.0",
87
+ "react-dom": "^16.8.0",
88
+ "react-intl-next": "npm:react-intl@^5.18.1"
90
89
  }
91
90
  ```
92
91