@atlaskit/editor-plugin-expand 17.0.8 → 17.1.0

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,22 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 17.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 17.0.9
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 17.0.8
4
21
 
5
22
  ### Patch Changes
@@ -15,7 +15,7 @@ var _assets = require("@atlaskit/editor-common/assets");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
16
  var _utils = require("@atlaskit/editor-common/utils");
17
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
19
19
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
20
20
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
21
21
  var _getExpandQuickInsertComponents = require("../ui/quick-insert/getExpandQuickInsertComponents");
@@ -34,7 +34,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
34
  options = _ref$config === void 0 ? {} : _ref$config,
35
35
  api = _ref.api;
36
36
  var isRegisteredSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command');
37
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
37
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
38
38
  var _api$blockMenu;
39
39
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
40
40
  type: 'block-menu-item',
@@ -23,7 +23,7 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
23
23
  var _redo = require("@atlaskit/prosemirror-history/redo");
24
24
  var _undo = require("@atlaskit/prosemirror-history/undo");
25
25
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
26
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
26
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
27
27
  var _renderExpandButton = require("../../ui/renderExpandButton");
28
28
  var _commands = require("../commands");
29
29
  var _ExpandButton = require("../ui/ExpandButton");
@@ -490,7 +490,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
490
490
  this.getPos = getPos;
491
491
  this.view = view;
492
492
  this.node = _node;
493
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
493
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
494
494
  exposure: true
495
495
  })) {
496
496
  var _expandedState$get;
@@ -634,7 +634,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
634
634
  };
635
635
  });
636
636
  var currentExpanded = (_expandedState$get2 = _expand.expandedState.get(node)) !== null && _expandedState$get2 !== void 0 ? _expandedState$get2 : false;
637
- var hasChanged = (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
637
+ var hasChanged = (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
638
638
  exposure: true
639
639
  }) ? this.isExpanded.expanded !== currentExpanded && this.isExpanded.localId === node.attrs.localId : this.isExpanded.expanded !== currentExpanded;
640
640
  if (hasChanged) {
@@ -665,7 +665,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
665
665
  }
666
666
  }
667
667
  this.updateExpandBodyContentEditable();
668
- this.isExpanded = (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
668
+ this.isExpanded = (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
669
669
  exposure: true
670
670
  }) ? {
671
671
  expanded: expanded !== null && expanded !== void 0 ? expanded : false,
@@ -16,7 +16,7 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
17
17
  var _fg = require("@atlaskit/platform-feature-flags/fg");
18
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
20
20
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
21
21
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
22
22
  var _getExpandQuickInsertComponents = require("../ui/quick-insert/getExpandQuickInsertComponents");
@@ -34,7 +34,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
34
  options = _ref$config === void 0 ? {} : _ref$config,
35
35
  api = _ref.api;
36
36
  var isRegisteredSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command');
37
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
37
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
38
38
  var _api$blockMenu;
39
39
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
40
40
  type: 'block-menu-item',
@@ -7,7 +7,7 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
11
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
12
12
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
13
13
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -14,7 +14,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
14
14
  import { redo } from '@atlaskit/prosemirror-history/redo';
15
15
  import { undo } from '@atlaskit/prosemirror-history/undo';
16
16
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
18
18
  import { renderExpandButton } from '../../ui/renderExpandButton';
19
19
  import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
20
20
  import { ExpandButton } from '../ui/ExpandButton';
@@ -8,7 +8,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
12
12
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
13
13
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
14
14
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -10,7 +10,7 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
11
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
15
15
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
16
16
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -16,7 +16,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
16
16
  import { redo } from '@atlaskit/prosemirror-history/redo';
17
17
  import { undo } from '@atlaskit/prosemirror-history/undo';
18
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
20
20
  import { renderExpandButton } from '../../ui/renderExpandButton';
21
21
  import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
22
22
  import { ExpandButton } from '../ui/ExpandButton';
@@ -11,7 +11,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
12
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
15
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
16
16
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
17
17
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "17.0.8",
3
+ "version": "17.1.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,37 +22,37 @@
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.2.0",
25
- "@atlaskit/button": "^25.2.0",
26
- "@atlaskit/editor-plugin-analytics": "^16.0.0",
25
+ "@atlaskit/button": "^25.3.0",
26
+ "@atlaskit/editor-plugin-analytics": "^16.1.0",
27
27
  "@atlaskit/editor-plugin-block-controls": "^17.2.0",
28
28
  "@atlaskit/editor-plugin-block-menu": "^15.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^16.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^16.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^16.1.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^16.1.0",
31
31
  "@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
32
32
  "@atlaskit/editor-plugin-limited-mode": "^13.0.0",
33
33
  "@atlaskit/editor-plugin-local-id": "^14.0.0",
34
- "@atlaskit/editor-plugin-selection": "^16.0.0",
34
+ "@atlaskit/editor-plugin-selection": "^16.1.0",
35
35
  "@atlaskit/editor-plugin-selection-marker": "^16.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^8.0.0",
37
- "@atlaskit/editor-shared-styles": "^4.0.0",
38
- "@atlaskit/editor-tables": "^3.0.0",
37
+ "@atlaskit/editor-shared-styles": "^4.1.0",
38
+ "@atlaskit/editor-tables": "^3.1.0",
39
39
  "@atlaskit/editor-toolbar": "^2.6.0",
40
40
  "@atlaskit/editor-ui-control-model": "^2.9.0",
41
- "@atlaskit/icon": "^37.5.0",
41
+ "@atlaskit/icon": "^37.6.0",
42
42
  "@atlaskit/icon-lab": "^7.7.0",
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
- "@atlaskit/platform-feature-flags": "^2.1.0",
44
+ "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
47
- "@atlaskit/tokens": "^16.9.0",
48
- "@atlaskit/tooltip": "^24.2.0",
46
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
47
+ "@atlaskit/tokens": "^16.10.0",
48
+ "@atlaskit/tooltip": "^24.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "uuid": "^3.1.0",
52
52
  "w3c-keyname": "^2.1.8"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^120.7.0",
55
+ "@atlaskit/editor-common": "^120.9.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
package/report.api.md DELETED
@@ -1,92 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-plugin-expand"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
- import type { Command } from '@atlaskit/editor-common/types';
21
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
22
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
23
- import type { EditorAppearance } from '@atlaskit/editor-common/types';
24
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
25
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
26
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
27
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
28
- import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
29
-
30
- // @public (undocumented)
31
- export type ExpandPlugin = NextEditorPlugin<
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
- }
45
- >;
46
-
47
- // @public (undocumented)
48
- export const expandPlugin: ExpandPlugin;
49
-
50
- // @public (undocumented)
51
- export interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
52
- // (undocumented)
53
- allowInsertion?: boolean;
54
- // (undocumented)
55
- appearance?: EditorAppearance;
56
- }
57
-
58
- // @public (undocumented)
59
- interface ExpandPluginOptions_2 extends LongPressSelectionPluginOptions {
60
- // (undocumented)
61
- allowInsertion?: boolean;
62
- // (undocumented)
63
- appearance?: EditorAppearance;
64
- }
65
-
66
- // @public (undocumented)
67
- export interface ExpandPluginState {
68
- // (undocumented)
69
- expandRef?: HTMLDivElement | null;
70
- }
71
-
72
- // @public (undocumented)
73
- const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
74
-
75
- // (No @packageDocumentation comment for this package)
76
- ```
77
-
78
- <!--SECTION END: Main Entry Types-->
79
-
80
- ### Peer Dependencies
81
-
82
- <!--SECTION START: Peer Dependencies-->
83
-
84
- ```json
85
- {
86
- "react": "^16.8.0",
87
- "react-dom": "^16.8.0",
88
- "react-intl": "npm:react-intl@^5.18.1"
89
- }
90
- ```
91
-
92
- <!--SECTION END: Peer Dependencies-->