@atlaskit/editor-presets 6.1.1 → 6.1.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 6.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4bc741a70d678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4bc741a70d678) -
|
|
8
|
+
Add the first registry-backed Quick Insert slice with Table
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -98,6 +98,7 @@ var _editorPluginUnsupportedContent = require("@atlaskit/editor-plugin-unsupport
|
|
|
98
98
|
var _editorPluginUserIntent = require("@atlaskit/editor-plugin-user-intent");
|
|
99
99
|
var _editorPluginUserPreferences = require("@atlaskit/editor-plugin-user-preferences");
|
|
100
100
|
var _editorPluginWidth = require("@atlaskit/editor-plugin-width");
|
|
101
|
+
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
101
102
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
102
103
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
103
104
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
@@ -204,7 +205,7 @@ function confluenceFullPageBasePreset(props) {
|
|
|
204
205
|
options: pluginOptions.typeAhead
|
|
205
206
|
})]).add(_editorPluginHistory.historyPlugin).add([_editorPluginPrimaryToolbar.primaryToolbarPlugin, (0, _primaryToolbarPluginOptions.primaryToolbarPluginOptions)({
|
|
206
207
|
options: pluginOptions.primaryToolbar
|
|
207
|
-
})]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
|
|
208
|
+
})]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
|
|
208
209
|
options: pluginOptions.toolbar
|
|
209
210
|
})], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([_editorPluginBlockMenu.blockMenuPlugin, (0, _blockMenuPluginOptions.blockMenuPluginOptions)({
|
|
210
211
|
options: pluginOptions.blockMenu
|
|
@@ -280,8 +281,8 @@ function confluenceFullPageBasePreset(props) {
|
|
|
280
281
|
options: pluginOptions.layout
|
|
281
282
|
})]).maybeAdd(
|
|
282
283
|
// Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
|
|
283
|
-
// @ts-expect-error - Preserve paste registry order; mutually exclusive with
|
|
284
|
-
_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true) && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true))).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
|
|
284
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
|
|
285
|
+
_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true) && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false))).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
|
|
285
286
|
options: pluginOptions.card,
|
|
286
287
|
providers: providers
|
|
287
288
|
})]).add([_editorPluginCustomAutoformat.customAutoformatPlugin, (0, _customAutoformatPluginOptions.customAutoformatPluginOptions)({
|
|
@@ -92,6 +92,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
|
|
|
92
92
|
import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
93
93
|
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
94
94
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
95
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
95
96
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
96
97
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
97
98
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -200,7 +201,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
200
201
|
options: pluginOptions.typeAhead
|
|
201
202
|
})]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
|
|
202
203
|
options: pluginOptions.primaryToolbar
|
|
203
|
-
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
|
|
204
|
+
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
|
|
204
205
|
options: pluginOptions.toolbar
|
|
205
206
|
})], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
|
|
206
207
|
options: pluginOptions.blockMenu
|
|
@@ -276,8 +277,8 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
276
277
|
options: pluginOptions.layout
|
|
277
278
|
})]).maybeAdd(
|
|
278
279
|
// Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
|
|
279
|
-
// @ts-expect-error - Preserve paste registry order; mutually exclusive with
|
|
280
|
-
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true))).add([cardPlugin, cardPluginOptions({
|
|
280
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
|
|
281
|
+
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false))).add([cardPlugin, cardPluginOptions({
|
|
281
282
|
options: pluginOptions.card,
|
|
282
283
|
providers
|
|
283
284
|
})]).add([customAutoformatPlugin, customAutoformatPluginOptions({
|
|
@@ -92,6 +92,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
|
|
|
92
92
|
import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
93
93
|
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
94
94
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
95
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
95
96
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
96
97
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
97
98
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -198,7 +199,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
198
199
|
options: pluginOptions.typeAhead
|
|
199
200
|
})]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
|
|
200
201
|
options: pluginOptions.primaryToolbar
|
|
201
|
-
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
|
|
202
|
+
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
|
|
202
203
|
options: pluginOptions.toolbar
|
|
203
204
|
})], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
|
|
204
205
|
options: pluginOptions.blockMenu
|
|
@@ -274,8 +275,8 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
274
275
|
options: pluginOptions.layout
|
|
275
276
|
})]).maybeAdd(
|
|
276
277
|
// Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
|
|
277
|
-
// @ts-expect-error - Preserve paste registry order; mutually exclusive with
|
|
278
|
-
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true))).add([cardPlugin, cardPluginOptions({
|
|
278
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
|
|
279
|
+
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false))).add([cardPlugin, cardPluginOptions({
|
|
279
280
|
options: pluginOptions.card,
|
|
280
281
|
providers: providers
|
|
281
282
|
})]).add([customAutoformatPlugin, customAutoformatPluginOptions({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-border": "^12.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-breakout": "^12.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-caption": "^12.1.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "^18.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "^18.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^12.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-clipboard": "^12.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-code-bidi-warning": "^12.1.0",
|
|
@@ -114,14 +114,15 @@
|
|
|
114
114
|
"@atlaskit/editor-plugin-user-intent": "^10.2.0",
|
|
115
115
|
"@atlaskit/editor-plugin-user-preferences": "^10.1.0",
|
|
116
116
|
"@atlaskit/editor-plugin-width": "^13.1.0",
|
|
117
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
117
118
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
118
|
-
"@atlaskit/tmp-editor-statsig": "^136.
|
|
119
|
+
"@atlaskit/tmp-editor-statsig": "^136.1.0",
|
|
119
120
|
"@atlassian/ari": "^2.596.0",
|
|
120
121
|
"@atlassian/editor-plugin-agent-managed-extension": "^2.13.0",
|
|
121
122
|
"@babel/runtime": "^7.0.0"
|
|
122
123
|
},
|
|
123
124
|
"peerDependencies": {
|
|
124
|
-
"@atlaskit/editor-common": "^116.
|
|
125
|
+
"@atlaskit/editor-common": "^116.49.0",
|
|
125
126
|
"react": "^18.2.0 || ^19.2.0",
|
|
126
127
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
127
128
|
},
|