@atlaskit/editor-plugin-insert-block 2.4.31 → 2.4.33
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 +14 -0
- package/dist/cjs/ui/ElementRail/index.js +2 -2
- package/dist/cjs/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/cjs/ui/assets/switch.js +1 -1
- package/dist/cjs/ui/transformOptions.js +6 -6
- package/dist/es2019/ui/ElementRail/index.js +2 -2
- package/dist/es2019/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/ui/assets/switch.js +1 -1
- package/dist/es2019/ui/transformOptions.js +4 -4
- package/dist/esm/ui/ElementRail/index.js +2 -2
- package/dist/esm/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/esm/ui/assets/switch.js +1 -1
- package/dist/esm/ui/transformOptions.js +4 -4
- package/dist/types/ui/transformOptions.d.ts +5 -2
- package/dist/types-ts4.5/ui/transformOptions.d.ts +5 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 2.4.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.4.32
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#102447](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102447)
|
|
14
|
+
[`17f3bf711d55c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/17f3bf711d55c) -
|
|
15
|
+
Re-enable mentions while offline.
|
|
16
|
+
|
|
3
17
|
## 2.4.31
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _new = require("@atlaskit/button/new");
|
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
|
-
var
|
|
15
|
+
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
16
16
|
var _primitives = require("@atlaskit/primitives");
|
|
17
17
|
var _commands = require("../../pm-plugins/commands");
|
|
18
18
|
var _InsertMenu = _interopRequireDefault(require("../ElementBrowser/InsertMenu"));
|
|
@@ -211,7 +211,7 @@ var InsertMenuRail = exports.InsertMenuRail = function InsertMenuRail(_ref) {
|
|
|
211
211
|
appearance: "subtle",
|
|
212
212
|
testId: "right-rail-insert-menu-close-button",
|
|
213
213
|
label: formatMessage(_messages.toolbarInsertBlockMessages.closeInsertRightRail),
|
|
214
|
-
icon:
|
|
214
|
+
icon: _closeCross.default,
|
|
215
215
|
onClick: function onClick() {
|
|
216
216
|
if (!api) {
|
|
217
217
|
return;
|
|
@@ -98,7 +98,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
|
|
|
98
98
|
items.push((0, _item.mention)({
|
|
99
99
|
content: formatMessage(_messages.toolbarInsertBlockMessages.mention),
|
|
100
100
|
tooltipDescription: formatMessage(_messages.toolbarInsertBlockMessages.mentionDescription),
|
|
101
|
-
disabled: !isTypeAheadAllowed || !!mentionsDisabled
|
|
101
|
+
disabled: !isTypeAheadAllowed || !!mentionsDisabled,
|
|
102
102
|
'aria-haspopup': 'listbox'
|
|
103
103
|
}));
|
|
104
104
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = SwitchIcon;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var _refresh = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _refresh = _interopRequireDefault(require("@atlaskit/icon/core/migration/refresh"));
|
|
10
10
|
/**
|
|
11
11
|
* @jsxRuntime classic
|
|
12
12
|
* @jsx jsx
|
|
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.transformationOptions = void 0;
|
|
8
8
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var _angleBracketsEditorCode = _interopRequireDefault(require("@atlaskit/icon/core/migration/angle-brackets--editor-code"));
|
|
10
|
+
var _informationEditorInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/information--editor-info"));
|
|
11
|
+
var _quotationMarkQuote = _interopRequireDefault(require("@atlaskit/icon/core/migration/quotation-mark--quote"));
|
|
12
12
|
var _expand = _interopRequireDefault(require("./assets/expand"));
|
|
13
13
|
var transformationOptions = exports.transformationOptions = function transformationOptions(api, schema) {
|
|
14
14
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
15
15
|
return [{
|
|
16
16
|
type: schema.nodes.panel,
|
|
17
17
|
title: _messages.blockTypeMessages.panel,
|
|
18
|
-
icon:
|
|
18
|
+
icon: _informationEditorInfo.default,
|
|
19
19
|
command: api === null || api === void 0 || (_api$panel = api.panel) === null || _api$panel === void 0 ? void 0 : _api$panel.actions.insertPanel
|
|
20
20
|
}, {
|
|
21
21
|
type: schema.nodes.expand,
|
|
@@ -25,12 +25,12 @@ var transformationOptions = exports.transformationOptions = function transformat
|
|
|
25
25
|
}, {
|
|
26
26
|
type: schema.nodes.codeBlock,
|
|
27
27
|
title: _messages.blockTypeMessages.codeblock,
|
|
28
|
-
icon:
|
|
28
|
+
icon: _angleBracketsEditorCode.default,
|
|
29
29
|
command: api === null || api === void 0 || (_api$codeBlock = api.codeBlock) === null || _api$codeBlock === void 0 ? void 0 : _api$codeBlock.actions.insertCodeBlock
|
|
30
30
|
}, {
|
|
31
31
|
type: schema.nodes.blockquote,
|
|
32
32
|
title: _messages.blockTypeMessages.blockquote,
|
|
33
|
-
icon:
|
|
33
|
+
icon: _quotationMarkQuote.default,
|
|
34
34
|
command: api === null || api === void 0 || (_api$blockType = api.blockType) === null || _api$blockType === void 0 ? void 0 : _api$blockType.actions.insertBlockQuote
|
|
35
35
|
}];
|
|
36
36
|
};
|
|
@@ -5,7 +5,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
|
-
import
|
|
8
|
+
import CloseIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import { toggleInsertMenuRightRail } from '../../pm-plugins/commands';
|
|
11
11
|
import InsertMenu from '../ElementBrowser/InsertMenu';
|
|
@@ -207,7 +207,7 @@ export const InsertMenuRail = ({
|
|
|
207
207
|
appearance: "subtle",
|
|
208
208
|
testId: "right-rail-insert-menu-close-button",
|
|
209
209
|
label: formatMessage(toolbarInsertBlockMessages.closeInsertRightRail),
|
|
210
|
-
icon:
|
|
210
|
+
icon: CloseIcon,
|
|
211
211
|
onClick: () => {
|
|
212
212
|
if (!api) {
|
|
213
213
|
return;
|
|
@@ -85,7 +85,7 @@ const createInsertBlockItems = config => {
|
|
|
85
85
|
items.push(mention({
|
|
86
86
|
content: formatMessage(messages.mention),
|
|
87
87
|
tooltipDescription: formatMessage(messages.mentionDescription),
|
|
88
|
-
disabled: !isTypeAheadAllowed || !!mentionsDisabled
|
|
88
|
+
disabled: !isTypeAheadAllowed || !!mentionsDisabled,
|
|
89
89
|
'aria-haspopup': 'listbox'
|
|
90
90
|
}));
|
|
91
91
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import RefreshIcon from '@atlaskit/icon/
|
|
8
|
+
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
9
9
|
const iconStyle = css({
|
|
10
10
|
transform: 'rotate(-90deg)'
|
|
11
11
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { blockTypeMessages as messages, toolbarInsertBlockMessages as toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
-
import EditorCodeIcon from '@atlaskit/icon/
|
|
3
|
-
import EditorInfoIcon from '@atlaskit/icon/
|
|
4
|
-
import
|
|
2
|
+
import EditorCodeIcon from '@atlaskit/icon/core/migration/angle-brackets--editor-code';
|
|
3
|
+
import EditorInfoIcon from '@atlaskit/icon/core/migration/information--editor-info';
|
|
4
|
+
import QuotationMarkIcon from '@atlaskit/icon/core/migration/quotation-mark--quote';
|
|
5
5
|
import ExpandIcon from './assets/expand';
|
|
6
6
|
export const transformationOptions = (api, schema) => {
|
|
7
7
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
@@ -23,7 +23,7 @@ export const transformationOptions = (api, schema) => {
|
|
|
23
23
|
}, {
|
|
24
24
|
type: schema.nodes.blockquote,
|
|
25
25
|
title: messages.blockquote,
|
|
26
|
-
icon:
|
|
26
|
+
icon: QuotationMarkIcon,
|
|
27
27
|
command: api === null || api === void 0 ? void 0 : (_api$blockType = api.blockType) === null || _api$blockType === void 0 ? void 0 : _api$blockType.actions.insertBlockQuote
|
|
28
28
|
}];
|
|
29
29
|
};
|
|
@@ -5,7 +5,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
|
-
import
|
|
8
|
+
import CloseIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import { toggleInsertMenuRightRail } from '../../pm-plugins/commands';
|
|
11
11
|
import InsertMenu from '../ElementBrowser/InsertMenu';
|
|
@@ -200,7 +200,7 @@ export var InsertMenuRail = function InsertMenuRail(_ref) {
|
|
|
200
200
|
appearance: "subtle",
|
|
201
201
|
testId: "right-rail-insert-menu-close-button",
|
|
202
202
|
label: formatMessage(toolbarInsertBlockMessages.closeInsertRightRail),
|
|
203
|
-
icon:
|
|
203
|
+
icon: CloseIcon,
|
|
204
204
|
onClick: function onClick() {
|
|
205
205
|
if (!api) {
|
|
206
206
|
return;
|
|
@@ -91,7 +91,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
|
|
|
91
91
|
items.push(mention({
|
|
92
92
|
content: formatMessage(messages.mention),
|
|
93
93
|
tooltipDescription: formatMessage(messages.mentionDescription),
|
|
94
|
-
disabled: !isTypeAheadAllowed || !!mentionsDisabled
|
|
94
|
+
disabled: !isTypeAheadAllowed || !!mentionsDisabled,
|
|
95
95
|
'aria-haspopup': 'listbox'
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import RefreshIcon from '@atlaskit/icon/
|
|
8
|
+
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
9
9
|
var iconStyle = css({
|
|
10
10
|
transform: 'rotate(-90deg)'
|
|
11
11
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { blockTypeMessages as messages, toolbarInsertBlockMessages as toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
-
import EditorCodeIcon from '@atlaskit/icon/
|
|
3
|
-
import EditorInfoIcon from '@atlaskit/icon/
|
|
4
|
-
import
|
|
2
|
+
import EditorCodeIcon from '@atlaskit/icon/core/migration/angle-brackets--editor-code';
|
|
3
|
+
import EditorInfoIcon from '@atlaskit/icon/core/migration/information--editor-info';
|
|
4
|
+
import QuotationMarkIcon from '@atlaskit/icon/core/migration/quotation-mark--quote';
|
|
5
5
|
import ExpandIcon from './assets/expand';
|
|
6
6
|
export var transformationOptions = function transformationOptions(api, schema) {
|
|
7
7
|
var _api$panel, _api$expand, _api$codeBlock, _api$blockType;
|
|
@@ -23,7 +23,7 @@ export var transformationOptions = function transformationOptions(api, schema) {
|
|
|
23
23
|
}, {
|
|
24
24
|
type: schema.nodes.blockquote,
|
|
25
25
|
title: messages.blockquote,
|
|
26
|
-
icon:
|
|
26
|
+
icon: QuotationMarkIcon,
|
|
27
27
|
command: api === null || api === void 0 || (_api$blockType = api.blockType) === null || _api$blockType === void 0 ? void 0 : _api$blockType.actions.insertBlockQuote
|
|
28
28
|
}];
|
|
29
29
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
4
4
|
import type { InsertBlockPlugin } from '../insertBlockPluginType';
|
|
5
5
|
import ExpandIcon from './assets/expand';
|
|
6
6
|
export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined, schema: Schema) => ({
|
|
@@ -19,6 +19,9 @@ export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBloc
|
|
|
19
19
|
defaultMessage: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
-
icon:
|
|
22
|
+
icon: {
|
|
23
|
+
(props: Omit<import("@atlaskit/icon").NewCoreIconProps, "LEGACY_fallbackIcon">): JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
23
26
|
command: ((inputMethod: import("@atlaskit/editor-plugin-block-type").InputMethod) => import("@atlaskit/editor-common/types").Command) | undefined;
|
|
24
27
|
})[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
4
4
|
import type { InsertBlockPlugin } from '../insertBlockPluginType';
|
|
5
5
|
import ExpandIcon from './assets/expand';
|
|
6
6
|
export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBlockPlugin> | undefined, schema: Schema) => ({
|
|
@@ -19,6 +19,9 @@ export declare const transformationOptions: (api: ExtractInjectionAPI<InsertBloc
|
|
|
19
19
|
defaultMessage: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
-
icon:
|
|
22
|
+
icon: {
|
|
23
|
+
(props: Omit<import("@atlaskit/icon").NewCoreIconProps, "LEGACY_fallbackIcon">): JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
23
26
|
command: ((inputMethod: import("@atlaskit/editor-plugin-block-type").InputMethod) => import("@atlaskit/editor-common/types").Command) | undefined;
|
|
24
27
|
})[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.33",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^20.3.0",
|
|
35
|
-
"@atlaskit/editor-common": "^99.
|
|
35
|
+
"@atlaskit/editor-common": "^99.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-block-type": "^4.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-code-block": "^3.5.0",
|
|
@@ -44,31 +44,31 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
45
45
|
"@atlaskit/editor-plugin-hyperlink": "^3.2.0",
|
|
46
46
|
"@atlaskit/editor-plugin-image-upload": "^1.2.0",
|
|
47
|
-
"@atlaskit/editor-plugin-layout": "^1.
|
|
47
|
+
"@atlaskit/editor-plugin-layout": "^1.13.0",
|
|
48
48
|
"@atlaskit/editor-plugin-media": "^1.44.0",
|
|
49
49
|
"@atlaskit/editor-plugin-media-insert": "^5.0.0",
|
|
50
|
-
"@atlaskit/editor-plugin-mentions": "^2.
|
|
50
|
+
"@atlaskit/editor-plugin-mentions": "^2.13.0",
|
|
51
51
|
"@atlaskit/editor-plugin-panel": "^3.2.0",
|
|
52
52
|
"@atlaskit/editor-plugin-placeholder-text": "^1.9.0",
|
|
53
53
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
|
|
54
54
|
"@atlaskit/editor-plugin-quick-insert": "^1.8.0",
|
|
55
55
|
"@atlaskit/editor-plugin-rule": "^1.9.0",
|
|
56
56
|
"@atlaskit/editor-plugin-status": "^2.6.0",
|
|
57
|
-
"@atlaskit/editor-plugin-table": "^9.
|
|
57
|
+
"@atlaskit/editor-plugin-table": "^9.2.0",
|
|
58
58
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^2.12.0",
|
|
59
59
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
60
60
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
61
61
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
62
62
|
"@atlaskit/emoji": "^67.12.0",
|
|
63
63
|
"@atlaskit/heading": "4.0.1",
|
|
64
|
-
"@atlaskit/icon": "^23.
|
|
64
|
+
"@atlaskit/icon": "^23.4.0",
|
|
65
65
|
"@atlaskit/icon-lab": "^2.1.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
67
67
|
"@atlaskit/primitives": "^13.3.0",
|
|
68
68
|
"@atlaskit/theme": "^14.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
70
|
-
"@atlaskit/tokens": "^3.
|
|
71
|
-
"@atlaskit/tooltip": "19.0.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^2.37.0",
|
|
70
|
+
"@atlaskit/tokens": "^3.1.0",
|
|
71
|
+
"@atlaskit/tooltip": "19.0.2",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
74
74
|
"bind-event-listener": "^3.0.0",
|