@atlaskit/editor-presets 9.0.1 → 9.1.1
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,42 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 9.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
|
|
8
|
+
Enable launched synced block integrations and remove obsolete experiment scaffolding.
|
|
9
|
+
|
|
10
|
+
BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
|
|
11
|
+
experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
|
|
12
|
+
enable synced-block integrations will no longer be able to look up that experiment; synced-block
|
|
13
|
+
integrations are now enabled by default. Remove each lookup and its conditional branch:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// Before
|
|
17
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
18
|
+
enableSyncedBlocks();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// After
|
|
22
|
+
enableSyncedBlocks();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
27
|
+
## 9.1.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [`40071c3a1e51d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40071c3a1e51d) -
|
|
32
|
+
Add the interactivity plugin package and register it in the Confluence full page presets behind
|
|
33
|
+
the platform_editor_editor_interactivity experiment. The plugin is a stub for now — it collects
|
|
34
|
+
nothing.
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
|
|
3
40
|
## 9.0.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -57,6 +57,7 @@ var _editorPluginHyperlink = require("@atlaskit/editor-plugin-hyperlink");
|
|
|
57
57
|
var _editorPluginIndentation = require("@atlaskit/editor-plugin-indentation");
|
|
58
58
|
var _editorPluginInsertBlock = require("@atlaskit/editor-plugin-insert-block");
|
|
59
59
|
var _editorPluginInteraction = require("@atlaskit/editor-plugin-interaction");
|
|
60
|
+
var _editorPluginInteractivity = require("@atlaskit/editor-plugin-interactivity");
|
|
60
61
|
var _editorPluginLayout = require("@atlaskit/editor-plugin-layout");
|
|
61
62
|
var _editorPluginLimitedMode = require("@atlaskit/editor-plugin-limited-mode");
|
|
62
63
|
var _editorPluginList = require("@atlaskit/editor-plugin-list");
|
|
@@ -98,6 +99,7 @@ var _editorPluginUnsupportedContent = require("@atlaskit/editor-plugin-unsupport
|
|
|
98
99
|
var _editorPluginUserIntent = require("@atlaskit/editor-plugin-user-intent");
|
|
99
100
|
var _editorPluginUserPreferences = require("@atlaskit/editor-plugin-user-preferences");
|
|
100
101
|
var _editorPluginWidth = require("@atlaskit/editor-plugin-width");
|
|
102
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
101
103
|
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
102
104
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
103
105
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -290,7 +292,7 @@ function confluenceFullPageBasePreset(props) {
|
|
|
290
292
|
options: pluginOptions.status
|
|
291
293
|
})]).maybeAdd([_editorPluginSyncedBlock.syncedBlockPlugin, (0, _syncedBlockPluginOptions.syncedBlockPluginOptions)({
|
|
292
294
|
options: pluginOptions.syncedBlock
|
|
293
|
-
})], !!pluginOptions.syncedBlock
|
|
295
|
+
})], !!pluginOptions.syncedBlock).add(_editorPluginIndentation.indentationPlugin).add(_editorPluginScrollIntoView.scrollIntoViewPlugin).add([_editorPluginToolbarListsIndentation.toolbarListsIndentationPlugin, (0, _toolbarListsIndentationPluginOptions.toolbarListsIndentationPluginOptions)({
|
|
294
296
|
options: pluginOptions.toolbarListsIndentation
|
|
295
297
|
})]).add([_editorPluginInsertBlock.insertBlockPlugin, (0, _insertBlockPluginOptions.insertBlockPluginOptions)({
|
|
296
298
|
options: pluginOptions.insertBlock
|
|
@@ -312,7 +314,7 @@ function confluenceFullPageBasePreset(props) {
|
|
|
312
314
|
rightSideControlsEnabled: (0, _platformFeatureFlags.fg)('confluence_remix_button_right_side_block_fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true)
|
|
313
315
|
}]).add(_editorPluginHighlight.highlightPlugin).maybeAdd(_editorPluginConnectivity.connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([_editorPluginMetrics.metricsPlugin, (0, _metricsPluginOptions.metricsPluginOptions)({
|
|
314
316
|
options: pluginOptions.metrics
|
|
315
|
-
})], enabledOptionalPlugins.metrics).add([_editorPluginContentFormat.contentFormatPlugin, (0, _contentFormatPluginOptions.contentFormatPluginOptions)({
|
|
317
|
+
})], enabledOptionalPlugins.metrics).maybeAdd(_editorPluginInteractivity.interactivityPlugin, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_editor_interactivity')).add([_editorPluginContentFormat.contentFormatPlugin, (0, _contentFormatPluginOptions.contentFormatPluginOptions)({
|
|
316
318
|
options: pluginOptions.contentFormat
|
|
317
319
|
})]).maybeAdd([_editorPluginCodeBlockAdvanced.codeBlockAdvancedPlugin, (0, _codeBlockAdvancedPluginOptions.codeBlockAdvancedPluginOptions)({
|
|
318
320
|
options: pluginOptions.codeBlockAdvanced
|
|
@@ -51,6 +51,7 @@ import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
|
51
51
|
import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
|
|
52
52
|
import { insertBlockPlugin } from '@atlaskit/editor-plugin-insert-block';
|
|
53
53
|
import { interactionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
54
|
+
import { interactivityPlugin } from '@atlaskit/editor-plugin-interactivity';
|
|
54
55
|
import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
55
56
|
import { limitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
|
|
56
57
|
import { listPlugin } from '@atlaskit/editor-plugin-list';
|
|
@@ -92,6 +93,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
|
|
|
92
93
|
import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
93
94
|
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
94
95
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
96
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
95
97
|
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
96
98
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
97
99
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -286,7 +288,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
286
288
|
options: pluginOptions.status
|
|
287
289
|
})]).maybeAdd([syncedBlockPlugin, syncedBlockPluginOptions({
|
|
288
290
|
options: pluginOptions.syncedBlock
|
|
289
|
-
})], !!pluginOptions.syncedBlock
|
|
291
|
+
})], !!pluginOptions.syncedBlock).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
|
|
290
292
|
options: pluginOptions.toolbarListsIndentation
|
|
291
293
|
})]).add([insertBlockPlugin, insertBlockPluginOptions({
|
|
292
294
|
options: pluginOptions.insertBlock
|
|
@@ -308,7 +310,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
308
310
|
rightSideControlsEnabled: fg('confluence_remix_button_right_side_block_fg') && expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true)
|
|
309
311
|
}]).add(highlightPlugin).maybeAdd(connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([metricsPlugin, metricsPluginOptions({
|
|
310
312
|
options: pluginOptions.metrics
|
|
311
|
-
})], enabledOptionalPlugins.metrics).add([contentFormatPlugin, contentFormatPluginOptions({
|
|
313
|
+
})], enabledOptionalPlugins.metrics).maybeAdd(interactivityPlugin, isExperimentEnabled('platform_editor_editor_interactivity')).add([contentFormatPlugin, contentFormatPluginOptions({
|
|
312
314
|
options: pluginOptions.contentFormat
|
|
313
315
|
})]).maybeAdd([codeBlockAdvancedPlugin, codeBlockAdvancedPluginOptions({
|
|
314
316
|
options: pluginOptions.codeBlockAdvanced
|
|
@@ -51,6 +51,7 @@ import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
|
51
51
|
import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
|
|
52
52
|
import { insertBlockPlugin } from '@atlaskit/editor-plugin-insert-block';
|
|
53
53
|
import { interactionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
54
|
+
import { interactivityPlugin } from '@atlaskit/editor-plugin-interactivity';
|
|
54
55
|
import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
55
56
|
import { limitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
|
|
56
57
|
import { listPlugin } from '@atlaskit/editor-plugin-list';
|
|
@@ -92,6 +93,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
|
|
|
92
93
|
import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
93
94
|
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
94
95
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
96
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
95
97
|
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
96
98
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
97
99
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -284,7 +286,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
284
286
|
options: pluginOptions.status
|
|
285
287
|
})]).maybeAdd([syncedBlockPlugin, syncedBlockPluginOptions({
|
|
286
288
|
options: pluginOptions.syncedBlock
|
|
287
|
-
})], !!pluginOptions.syncedBlock
|
|
289
|
+
})], !!pluginOptions.syncedBlock).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
|
|
288
290
|
options: pluginOptions.toolbarListsIndentation
|
|
289
291
|
})]).add([insertBlockPlugin, insertBlockPluginOptions({
|
|
290
292
|
options: pluginOptions.insertBlock
|
|
@@ -306,7 +308,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
306
308
|
rightSideControlsEnabled: fg('confluence_remix_button_right_side_block_fg') && expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true)
|
|
307
309
|
}]).add(highlightPlugin).maybeAdd(connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([metricsPlugin, metricsPluginOptions({
|
|
308
310
|
options: pluginOptions.metrics
|
|
309
|
-
})], enabledOptionalPlugins.metrics).add([contentFormatPlugin, contentFormatPluginOptions({
|
|
311
|
+
})], enabledOptionalPlugins.metrics).maybeAdd(interactivityPlugin, isExperimentEnabled('platform_editor_editor_interactivity')).add([contentFormatPlugin, contentFormatPluginOptions({
|
|
310
312
|
options: pluginOptions.contentFormat
|
|
311
313
|
})]).maybeAdd([codeBlockAdvancedPlugin, codeBlockAdvancedPluginOptions({
|
|
312
314
|
options: pluginOptions.codeBlockAdvanced
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/editor-plugin-block-type": "^19.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-border": "^15.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-breakout": "^15.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-caption": "^15.
|
|
37
|
+
"@atlaskit/editor-plugin-caption": "^15.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-card": "^21.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^15.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-clipboard": "^15.0.0",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@atlaskit/editor-plugin-indentation": "^15.0.0",
|
|
74
74
|
"@atlaskit/editor-plugin-insert-block": "^16.0.0",
|
|
75
75
|
"@atlaskit/editor-plugin-interaction": "^26.0.0",
|
|
76
|
+
"@atlaskit/editor-plugin-interactivity": "^0.1.0",
|
|
76
77
|
"@atlaskit/editor-plugin-layout": "^16.0.0",
|
|
77
78
|
"@atlaskit/editor-plugin-limited-mode": "^12.0.0",
|
|
78
79
|
"@atlaskit/editor-plugin-list": "^17.0.0",
|
|
@@ -116,13 +117,13 @@
|
|
|
116
117
|
"@atlaskit/editor-plugin-width": "^16.0.0",
|
|
117
118
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
118
119
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
119
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
120
|
+
"@atlaskit/tmp-editor-statsig": "^149.0.0",
|
|
120
121
|
"@atlassian/ari": "^2.596.0",
|
|
121
122
|
"@atlassian/editor-plugin-agent-managed-extension": "^5.0.0",
|
|
122
123
|
"@babel/runtime": "^7.0.0"
|
|
123
124
|
},
|
|
124
125
|
"peerDependencies": {
|
|
125
|
-
"@atlaskit/editor-common": "^119.
|
|
126
|
+
"@atlaskit/editor-common": "^119.7.0",
|
|
126
127
|
"react": "^18.2.0 || ^19.2.0",
|
|
127
128
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
128
129
|
},
|