@atlaskit/editor-plugin-expand 20.0.1 → 20.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 +6 -0
- package/dist/cjs/legacyExpand/plugin.js +2 -2
- package/dist/cjs/singlePlayerExpand/plugin.js +1 -1
- package/dist/cjs/ui/quick-insert/ExpandQuickInsertMenuItem.js +1 -1
- package/dist/es2019/entry-points/plugin.js +1 -0
- package/dist/es2019/legacyExpand/plugin.js +2 -2
- package/dist/es2019/singlePlayerExpand/plugin.js +1 -1
- package/dist/es2019/ui/quick-insert/ExpandQuickInsertMenuItem.js +1 -1
- package/dist/esm/entry-points/plugin.js +1 -0
- package/dist/esm/legacyExpand/plugin.js +2 -2
- package/dist/esm/singlePlayerExpand/plugin.js +1 -1
- package/dist/esm/ui/quick-insert/ExpandQuickInsertMenuItem.js +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,11 +10,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _expand = require("@atlaskit/adf-schema/expand");
|
|
11
11
|
var _nestedExpand = require("@atlaskit/adf-schema/nested-expand");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
|
+
var _assets = require("@atlaskit/editor-common/assets");
|
|
13
14
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
14
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var _assets = require("@atlaskit/editor-common/assets");
|
|
16
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
16
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
17
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
18
|
var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
|
|
19
19
|
var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
|
|
20
20
|
var _getExpandQuickInsertComponents = require("../ui/quick-insert/getExpandQuickInsertComponents");
|
|
@@ -10,9 +10,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _expand = require("@atlaskit/adf-schema/expand");
|
|
11
11
|
var _nestedExpand = require("@atlaskit/adf-schema/nested-expand");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
|
+
var _assets = require("@atlaskit/editor-common/assets");
|
|
13
14
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
14
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var _assets = require("@atlaskit/editor-common/assets");
|
|
16
16
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
17
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
@@ -13,8 +13,8 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
15
15
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
16
|
var _expandElement = _interopRequireDefault(require("@atlaskit/icon-lab/core/expand-element"));
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _commands = require("../../legacyExpand/commands");
|
|
19
19
|
var _commands2 = require("../../singlePlayerExpand/commands");
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { expandWithNestedExpand } from '@atlaskit/adf-schema/expand';
|
|
3
3
|
import { nestedExpand } from '@atlaskit/adf-schema/nested-expand';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
5
6
|
import { TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
6
7
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
8
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
8
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
|
|
11
11
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
12
12
|
import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { expandWithNestedExpand, expandWithNestedExpandLocalId } from '@atlaskit/adf-schema/expand';
|
|
3
3
|
import { nestedExpand, nestedExpandWithLocalId } from '@atlaskit/adf-schema/nested-expand';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
5
6
|
import { TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
6
7
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
8
8
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -5,8 +5,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { createExpandNode as createLegacyExpandNode } from '../../legacyExpand/commands';
|
|
11
11
|
import { createExpandNode as createSinglePlayerExpandNode, wrapSelectionAndSetExpandedState } from '../../singlePlayerExpand/commands';
|
|
12
12
|
export const ExpandQuickInsertMenuItem = ({
|
|
@@ -5,11 +5,11 @@ import React from 'react';
|
|
|
5
5
|
import { expandWithNestedExpand } from '@atlaskit/adf-schema/expand';
|
|
6
6
|
import { nestedExpand } from '@atlaskit/adf-schema/nested-expand';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
8
9
|
import { TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
9
10
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
11
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
11
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
|
|
14
14
|
import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
|
|
15
15
|
import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
|
|
@@ -5,9 +5,9 @@ import React from 'react';
|
|
|
5
5
|
import { expandWithNestedExpand, expandWithNestedExpandLocalId } from '@atlaskit/adf-schema/expand';
|
|
6
6
|
import { nestedExpand, nestedExpandWithLocalId } from '@atlaskit/adf-schema/nested-expand';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
8
9
|
import { TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
9
10
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
|
-
import { IconExpand } from '@atlaskit/editor-common/assets';
|
|
11
11
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -5,8 +5,8 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
5
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
7
7
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { createExpandNode as createLegacyExpandNode } from '../../legacyExpand/commands';
|
|
11
11
|
import { createExpandNode as createSinglePlayerExpandNode, wrapSelectionAndSetExpandedState } from '../../singlePlayerExpand/commands';
|
|
12
12
|
export var ExpandQuickInsertMenuItem = function ExpandQuickInsertMenuItem(_ref) {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmo
|
|
|
9
9
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
10
10
|
import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode/limited-mode-plugin-type';
|
|
11
11
|
import type { LocalIdPlugin } from '@atlaskit/editor-plugin-local-id';
|
|
12
|
-
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
|
|
13
12
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
14
13
|
import type { SelectionMarkerPlugin } from '@atlaskit/editor-plugin-selection-marker';
|
|
14
|
+
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
|
|
15
15
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
16
16
|
import type { insertExpand, insertExpandWithInputMethod } from './legacyExpand/commands';
|
|
17
17
|
export interface ExpandPluginState {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.2",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
37
37
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
38
38
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
39
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
39
|
+
"@atlaskit/editor-toolbar": "^2.7.0",
|
|
40
40
|
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
41
41
|
"@atlaskit/icon": "^37.7.0",
|
|
42
42
|
"@atlaskit/icon-lab": "^7.9.0",
|
|
43
43
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^18.2.0",
|
|
48
48
|
"@atlaskit/tooltip": "^24.3.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"w3c-keyname": "^2.1.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^123.
|
|
55
|
+
"@atlaskit/editor-common": "^123.2.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"
|