@atlaskit/editor-presets 3.1.1 → 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 +17 -0
- package/dist/cjs/confluence-full-page-base/index.js +6 -2
- package/dist/cjs/confluence-full-page-base/pluginOptions/cardPluginOptions.js +1 -0
- package/dist/es2019/confluence-full-page-base/index.js +6 -2
- package/dist/es2019/confluence-full-page-base/pluginOptions/cardPluginOptions.js +1 -0
- package/dist/esm/confluence-full-page-base/index.js +6 -2
- package/dist/esm/confluence-full-page-base/pluginOptions/cardPluginOptions.js +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`edd5d6d4c23ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/edd5d6d4c23ec) -
|
|
8
|
+
Add SSR streaming supporting to Editor starmt cards and extensions
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 3.1.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 3.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -183,6 +183,8 @@ function confluenceFullPageBasePreset(props) {
|
|
|
183
183
|
// We remove all `never` properties from the ConfluenceFullPageBasePresetOptions.pluginOptions,
|
|
184
184
|
// we need to return them back.
|
|
185
185
|
var pluginOptions = props.pluginOptions;
|
|
186
|
+
|
|
187
|
+
// @ts-ignore - Preset builder cannot infer mutually exclusive registry insertion points.
|
|
186
188
|
return new _preset.EditorPresetBuilder().maybeAdd([_editorPluginLimitedMode.limitedModePlugin, (0, _limitedModePluginOptions.limitedModePluginOptions)({
|
|
187
189
|
options: pluginOptions.limitedMode
|
|
188
190
|
})], !pluginOptions.limitedMode.killSwitchEnabled).add([_editorPluginFeatureFlags.featureFlagsPlugin, (0, _featureFlagsPluginOptions.featureFlagsPluginOptions)({
|
|
@@ -276,7 +278,7 @@ function confluenceFullPageBasePreset(props) {
|
|
|
276
278
|
options: pluginOptions.date
|
|
277
279
|
})]).add([_editorPluginPlaceholderText.placeholderTextPlugin, (0, _placeholderTextPluginOptions.placeholderTextPluginOptions)({
|
|
278
280
|
options: pluginOptions.placeholderText
|
|
279
|
-
})]).add([_editorPluginLayout.layoutPlugin, (0, _layoutPluginOptions.layoutPluginOptions)({
|
|
281
|
+
})]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)).add([_editorPluginLayout.layoutPlugin, (0, _layoutPluginOptions.layoutPluginOptions)({
|
|
280
282
|
options: pluginOptions.layout
|
|
281
283
|
})]).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
|
|
282
284
|
options: pluginOptions.card,
|
|
@@ -298,7 +300,9 @@ function confluenceFullPageBasePreset(props) {
|
|
|
298
300
|
options: pluginOptions.findReplace
|
|
299
301
|
})], enabledOptionalPlugins.findReplace).add(_editorPluginBorder.borderPlugin).add(_editorPluginFragment.fragmentPlugin).add([_editorPluginPasteOptionsToolbar.pasteOptionsToolbarPlugin, {
|
|
300
302
|
usePopupBasedPasteActionsMenu: false
|
|
301
|
-
}]).maybeAdd(
|
|
303
|
+
}]).maybeAdd(
|
|
304
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with layout insertion.
|
|
305
|
+
_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true) && !(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([_editorPluginCodeBidiWarning.codeBidiWarningPlugin, (0, _codeBidiWarningPluginOptions.codeBidiWarningPluginOptions)({
|
|
302
306
|
options: pluginOptions.codeBidiWarning
|
|
303
307
|
})], !(0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)).maybeAdd([_editorPluginLoom.loomPlugin, (0, _loomPluginOptions.loomPluginOptions)({
|
|
304
308
|
options: pluginOptions.loom
|
|
@@ -11,6 +11,7 @@ var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
|
11
11
|
* (only supports Cloud single-issue URLs right now)
|
|
12
12
|
*/
|
|
13
13
|
var SMART_LINKS_BEFORE_MACROS = 'jira,jiraroadmap,google-drive-sheets,google-drive-docs,OneDrive,google-drive-slides'.split(',');
|
|
14
|
+
|
|
14
15
|
// END SECTION
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -179,6 +179,8 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
179
179
|
// We remove all `never` properties from the ConfluenceFullPageBasePresetOptions.pluginOptions,
|
|
180
180
|
// we need to return them back.
|
|
181
181
|
const pluginOptions = props.pluginOptions;
|
|
182
|
+
|
|
183
|
+
// @ts-ignore - Preset builder cannot infer mutually exclusive registry insertion points.
|
|
182
184
|
return new EditorPresetBuilder().maybeAdd([limitedModePlugin, limitedModePluginOptions({
|
|
183
185
|
options: pluginOptions.limitedMode
|
|
184
186
|
})], !pluginOptions.limitedMode.killSwitchEnabled).add([featureFlagsPlugin, featureFlagsPluginOptions({
|
|
@@ -272,7 +274,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
272
274
|
options: pluginOptions.date
|
|
273
275
|
})]).add([placeholderTextPlugin, placeholderTextPluginOptions({
|
|
274
276
|
options: pluginOptions.placeholderText
|
|
275
|
-
})]).add([layoutPlugin, layoutPluginOptions({
|
|
277
|
+
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).add([layoutPlugin, layoutPluginOptions({
|
|
276
278
|
options: pluginOptions.layout
|
|
277
279
|
})]).add([cardPlugin, cardPluginOptions({
|
|
278
280
|
options: pluginOptions.card,
|
|
@@ -294,7 +296,9 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
294
296
|
options: pluginOptions.findReplace
|
|
295
297
|
})], enabledOptionalPlugins.findReplace).add(borderPlugin).add(fragmentPlugin).add([pasteOptionsToolbarPlugin, {
|
|
296
298
|
usePopupBasedPasteActionsMenu: false
|
|
297
|
-
}]).maybeAdd(
|
|
299
|
+
}]).maybeAdd(
|
|
300
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with layout insertion.
|
|
301
|
+
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([codeBidiWarningPlugin, codeBidiWarningPluginOptions({
|
|
298
302
|
options: pluginOptions.codeBidiWarning
|
|
299
303
|
})], !expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)).maybeAdd([loomPlugin, loomPluginOptions({
|
|
300
304
|
options: pluginOptions.loom
|
|
@@ -5,6 +5,7 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
5
5
|
* (only supports Cloud single-issue URLs right now)
|
|
6
6
|
*/
|
|
7
7
|
const SMART_LINKS_BEFORE_MACROS = 'jira,jiraroadmap,google-drive-sheets,google-drive-docs,OneDrive,google-drive-slides'.split(',');
|
|
8
|
+
|
|
8
9
|
// END SECTION
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -177,6 +177,8 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
177
177
|
// We remove all `never` properties from the ConfluenceFullPageBasePresetOptions.pluginOptions,
|
|
178
178
|
// we need to return them back.
|
|
179
179
|
var pluginOptions = props.pluginOptions;
|
|
180
|
+
|
|
181
|
+
// @ts-ignore - Preset builder cannot infer mutually exclusive registry insertion points.
|
|
180
182
|
return new EditorPresetBuilder().maybeAdd([limitedModePlugin, limitedModePluginOptions({
|
|
181
183
|
options: pluginOptions.limitedMode
|
|
182
184
|
})], !pluginOptions.limitedMode.killSwitchEnabled).add([featureFlagsPlugin, featureFlagsPluginOptions({
|
|
@@ -270,7 +272,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
270
272
|
options: pluginOptions.date
|
|
271
273
|
})]).add([placeholderTextPlugin, placeholderTextPluginOptions({
|
|
272
274
|
options: pluginOptions.placeholderText
|
|
273
|
-
})]).add([layoutPlugin, layoutPluginOptions({
|
|
275
|
+
})]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).add([layoutPlugin, layoutPluginOptions({
|
|
274
276
|
options: pluginOptions.layout
|
|
275
277
|
})]).add([cardPlugin, cardPluginOptions({
|
|
276
278
|
options: pluginOptions.card,
|
|
@@ -292,7 +294,9 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
292
294
|
options: pluginOptions.findReplace
|
|
293
295
|
})], enabledOptionalPlugins.findReplace).add(borderPlugin).add(fragmentPlugin).add([pasteOptionsToolbarPlugin, {
|
|
294
296
|
usePopupBasedPasteActionsMenu: false
|
|
295
|
-
}]).maybeAdd(
|
|
297
|
+
}]).maybeAdd(
|
|
298
|
+
// @ts-expect-error - Preserve paste registry order; mutually exclusive with layout insertion.
|
|
299
|
+
uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([codeBidiWarningPlugin, codeBidiWarningPluginOptions({
|
|
296
300
|
options: pluginOptions.codeBidiWarning
|
|
297
301
|
})], !expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)).maybeAdd([loomPlugin, loomPluginOptions({
|
|
298
302
|
options: pluginOptions.loom
|
|
@@ -5,6 +5,7 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
5
5
|
* (only supports Cloud single-issue URLs right now)
|
|
6
6
|
*/
|
|
7
7
|
var SMART_LINKS_BEFORE_MACROS = 'jira,jiraroadmap,google-drive-sheets,google-drive-docs,OneDrive,google-drive-slides'.split(',');
|
|
8
|
+
|
|
8
9
|
// END SECTION
|
|
9
10
|
|
|
10
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
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": {
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.11.0",
|
|
32
32
|
"@atlaskit/editor-plugin-accessibility-utils": "^10.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-alignment": "^11.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
35
|
-
"@atlaskit/editor-plugin-annotation": "^10.
|
|
35
|
+
"@atlaskit/editor-plugin-annotation": "^10.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-avatar-group": "^11.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-base": "^11.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^10.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-better-type-history": "^10.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-block-controls": "^11.2.0",
|
|
41
|
-
"@atlaskit/editor-plugin-block-menu": "^9.
|
|
41
|
+
"@atlaskit/editor-plugin-block-menu": "^9.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-block-type": "^14.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-border": "^10.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-breakout": "^10.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-caption": "^10.0.0",
|
|
46
|
-
"@atlaskit/editor-plugin-card": "^16.
|
|
46
|
+
"@atlaskit/editor-plugin-card": "^16.7.0",
|
|
47
47
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^10.0.0",
|
|
48
48
|
"@atlaskit/editor-plugin-clipboard": "^10.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-code-bidi-warning": "^10.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^10.0.0",
|
|
67
67
|
"@atlaskit/editor-plugin-emoji": "^11.0.0",
|
|
68
68
|
"@atlaskit/editor-plugin-expand": "^11.1.0",
|
|
69
|
-
"@atlaskit/editor-plugin-extension": "^13.
|
|
69
|
+
"@atlaskit/editor-plugin-extension": "^13.3.0",
|
|
70
70
|
"@atlaskit/editor-plugin-feature-flags": "^9.0.0",
|
|
71
71
|
"@atlaskit/editor-plugin-find-replace": "^10.1.0",
|
|
72
72
|
"@atlaskit/editor-plugin-floating-toolbar": "^12.0.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/editor-plugin-status": "^11.0.0",
|
|
108
108
|
"@atlaskit/editor-plugin-submit-editor": "^10.0.0",
|
|
109
109
|
"@atlaskit/editor-plugin-synced-block": "^8.2.0",
|
|
110
|
-
"@atlaskit/editor-plugin-table": "^22.
|
|
110
|
+
"@atlaskit/editor-plugin-table": "^22.3.0",
|
|
111
111
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^13.1.0",
|
|
112
112
|
"@atlaskit/editor-plugin-text-color": "^10.0.0",
|
|
113
113
|
"@atlaskit/editor-plugin-text-formatting": "^10.0.0",
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
"@atlaskit/editor-plugin-user-preferences": "^8.1.0",
|
|
124
124
|
"@atlaskit/editor-plugin-width": "^11.0.0",
|
|
125
125
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
126
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
126
|
+
"@atlaskit/tmp-editor-statsig": "^79.0.0",
|
|
127
127
|
"@atlassian/editor-plugin-agent-managed-extension": "^0.1.0",
|
|
128
128
|
"@babel/runtime": "^7.0.0"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
|
-
"@atlaskit/editor-common": "^114.
|
|
131
|
+
"@atlaskit/editor-common": "^114.30.0",
|
|
132
132
|
"react": "^18.2.0",
|
|
133
133
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
134
134
|
},
|