@atlaskit/editor-plugin-insert-block 3.1.6 → 3.2.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 +22 -0
- package/dist/cjs/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/insertBlockPluginType.d.ts +2 -2
- package/dist/types/types/index.d.ts +7 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/insertBlockPluginType.d.ts +2 -2
- package/dist/types-ts4.5/types/index.d.ts +7 -1
- package/package.json +15 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
8
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
10
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 3.1.7
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#138298](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138298)
|
|
21
|
+
[`cc7cc96e28407`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc7cc96e28407) -
|
|
22
|
+
Cleans up FG to preload emoji picker, allowing it to work offline
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 3.1.6
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -106,7 +106,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
|
|
|
106
106
|
items.push((0, _item.emoji)({
|
|
107
107
|
content: formatMessage(_messages.toolbarInsertBlockMessages.emoji),
|
|
108
108
|
tooltipDescription: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
|
|
109
|
-
disabled: emojiDisabled || !isTypeAheadAllowed
|
|
109
|
+
disabled: emojiDisabled || !isTypeAheadAllowed,
|
|
110
110
|
'aria-haspopup': 'dialog'
|
|
111
111
|
}));
|
|
112
112
|
}
|
|
@@ -93,7 +93,7 @@ const createInsertBlockItems = config => {
|
|
|
93
93
|
items.push(emoji({
|
|
94
94
|
content: formatMessage(messages.emoji),
|
|
95
95
|
tooltipDescription: formatMessage(messages.emojiDescription),
|
|
96
|
-
disabled: emojiDisabled || !isTypeAheadAllowed
|
|
96
|
+
disabled: emojiDisabled || !isTypeAheadAllowed,
|
|
97
97
|
'aria-haspopup': 'dialog'
|
|
98
98
|
}));
|
|
99
99
|
}
|
|
@@ -99,7 +99,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
|
|
|
99
99
|
items.push(emoji({
|
|
100
100
|
content: formatMessage(messages.emoji),
|
|
101
101
|
tooltipDescription: formatMessage(messages.emojiDescription),
|
|
102
|
-
disabled: emojiDisabled || !isTypeAheadAllowed
|
|
102
|
+
disabled: emojiDisabled || !isTypeAheadAllowed,
|
|
103
103
|
'aria-haspopup': 'dialog'
|
|
104
104
|
}));
|
|
105
105
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { insertBlockPlugin } from './insertBlockPlugin';
|
|
2
2
|
export type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
3
|
-
export type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
3
|
+
export type { InsertBlockOptions, InsertBlockPluginOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { InsertBlockPluginOptions, InsertBlockPluginDependencies, InsertBlockPluginState } from './types';
|
|
3
3
|
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
4
|
-
pluginConfiguration:
|
|
4
|
+
pluginConfiguration: InsertBlockPluginOptions | undefined;
|
|
5
5
|
dependencies: InsertBlockPluginDependencies;
|
|
6
6
|
actions: {
|
|
7
7
|
toggleAdditionalMenu: () => void;
|
|
@@ -53,7 +53,7 @@ export type InsertBlockPluginDependencies = [
|
|
|
53
53
|
OptionalPlugin<ContextPanelPlugin>,
|
|
54
54
|
OptionalPlugin<ConnectivityPlugin>
|
|
55
55
|
];
|
|
56
|
-
export interface
|
|
56
|
+
export interface InsertBlockPluginOptions {
|
|
57
57
|
allowTables?: boolean;
|
|
58
58
|
allowExpand?: boolean;
|
|
59
59
|
insertMenuItems?: any;
|
|
@@ -63,6 +63,12 @@ export interface InsertBlockOptions {
|
|
|
63
63
|
tableSelectorSupported?: boolean;
|
|
64
64
|
appearance?: EditorAppearance;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* @private
|
|
68
|
+
* @deprecated Use {@link InsertBlockPluginOptions} instead
|
|
69
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
70
|
+
*/
|
|
71
|
+
export type InsertBlockOptions = InsertBlockPluginOptions;
|
|
66
72
|
export interface InsertBlockPluginState {
|
|
67
73
|
showElementBrowser: boolean;
|
|
68
74
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { insertBlockPlugin } from './insertBlockPlugin';
|
|
2
2
|
export type { InsertBlockPlugin } from './insertBlockPluginType';
|
|
3
|
-
export type { InsertBlockOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
3
|
+
export type { InsertBlockOptions, InsertBlockPluginOptions, InsertBlockPluginDependencies, InsertBlockPluginState, } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { InsertBlockPluginOptions, InsertBlockPluginDependencies, InsertBlockPluginState } from './types';
|
|
3
3
|
export type InsertBlockPlugin = NextEditorPlugin<'insertBlock', {
|
|
4
|
-
pluginConfiguration:
|
|
4
|
+
pluginConfiguration: InsertBlockPluginOptions | undefined;
|
|
5
5
|
dependencies: InsertBlockPluginDependencies;
|
|
6
6
|
actions: {
|
|
7
7
|
toggleAdditionalMenu: () => void;
|
|
@@ -53,7 +53,7 @@ export type InsertBlockPluginDependencies = [
|
|
|
53
53
|
OptionalPlugin<ContextPanelPlugin>,
|
|
54
54
|
OptionalPlugin<ConnectivityPlugin>
|
|
55
55
|
];
|
|
56
|
-
export interface
|
|
56
|
+
export interface InsertBlockPluginOptions {
|
|
57
57
|
allowTables?: boolean;
|
|
58
58
|
allowExpand?: boolean;
|
|
59
59
|
insertMenuItems?: any;
|
|
@@ -63,6 +63,12 @@ export interface InsertBlockOptions {
|
|
|
63
63
|
tableSelectorSupported?: boolean;
|
|
64
64
|
appearance?: EditorAppearance;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* @private
|
|
68
|
+
* @deprecated Use {@link InsertBlockPluginOptions} instead
|
|
69
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
70
|
+
*/
|
|
71
|
+
export type InsertBlockOptions = InsertBlockPluginOptions;
|
|
66
72
|
export interface InsertBlockPluginState {
|
|
67
73
|
showElementBrowser: boolean;
|
|
68
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,40 +34,40 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/button": "^23.0.0",
|
|
37
|
-
"@atlaskit/editor-common": "^103.
|
|
37
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-block-type": "^5.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-code-block": "^4.
|
|
40
|
+
"@atlaskit/editor-plugin-code-block": "^4.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-date": "^4.
|
|
42
|
+
"@atlaskit/editor-plugin-date": "^4.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-emoji": "^3.5.0",
|
|
44
44
|
"@atlaskit/editor-plugin-expand": "^3.2.0",
|
|
45
45
|
"@atlaskit/editor-plugin-extension": "^5.2.0",
|
|
46
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
47
|
-
"@atlaskit/editor-plugin-hyperlink": "^4.
|
|
46
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
47
|
+
"@atlaskit/editor-plugin-hyperlink": "^4.4.0",
|
|
48
48
|
"@atlaskit/editor-plugin-image-upload": "^2.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-layout": "^2.4.0",
|
|
50
|
-
"@atlaskit/editor-plugin-media": "^2.
|
|
50
|
+
"@atlaskit/editor-plugin-media": "^2.4.0",
|
|
51
51
|
"@atlaskit/editor-plugin-media-insert": "^6.2.0",
|
|
52
|
-
"@atlaskit/editor-plugin-mentions": "^4.
|
|
52
|
+
"@atlaskit/editor-plugin-mentions": "^4.4.0",
|
|
53
53
|
"@atlaskit/editor-plugin-metrics": "^3.4.0",
|
|
54
54
|
"@atlaskit/editor-plugin-panel": "^4.3.0",
|
|
55
|
-
"@atlaskit/editor-plugin-placeholder-text": "^2.
|
|
56
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.
|
|
57
|
-
"@atlaskit/editor-plugin-quick-insert": "^2.
|
|
55
|
+
"@atlaskit/editor-plugin-placeholder-text": "^2.2.0",
|
|
56
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
57
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.3.0",
|
|
58
58
|
"@atlaskit/editor-plugin-rule": "^2.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-status": "^3.1.0",
|
|
60
|
-
"@atlaskit/editor-plugin-table": "^10.
|
|
61
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.
|
|
60
|
+
"@atlaskit/editor-plugin-table": "^10.7.0",
|
|
61
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.1.0",
|
|
62
62
|
"@atlaskit/editor-plugin-type-ahead": "^2.3.0",
|
|
63
63
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
64
64
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
65
65
|
"@atlaskit/emoji": "^69.0.0",
|
|
66
|
-
"@atlaskit/heading": "^5.
|
|
66
|
+
"@atlaskit/heading": "^5.2.0",
|
|
67
67
|
"@atlaskit/icon": "^25.5.0",
|
|
68
68
|
"@atlaskit/icon-lab": "^4.6.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^14.
|
|
70
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
71
71
|
"@atlaskit/theme": "^18.0.0",
|
|
72
72
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
73
73
|
"@atlaskit/tokens": "^4.7.0",
|
|
@@ -136,9 +136,6 @@
|
|
|
136
136
|
"platform_editor_ease_of_use_metrics": {
|
|
137
137
|
"type": "boolean"
|
|
138
138
|
},
|
|
139
|
-
"platform_editor_preload_emoji_picker": {
|
|
140
|
-
"type": "boolean"
|
|
141
|
-
},
|
|
142
139
|
"platform_editor_add_media_from_url_rollout": {
|
|
143
140
|
"type": "boolean"
|
|
144
141
|
}
|