@atlaskit/editor-presets 9.1.0 → 9.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,37 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 9.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d7433f9c93d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d7433f9c93d8) -
8
+ Clean up the enabled `platform_editor_code_block_fold_gutter` experiment for Confluence.
9
+ - Updated dependencies
10
+
11
+ ## 9.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
16
+ Enable launched synced block integrations and remove obsolete experiment scaffolding.
17
+
18
+ BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
19
+ experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
20
+ enable synced-block integrations will no longer be able to look up that experiment; synced-block
21
+ integrations are now enabled by default. Remove each lookup and its conditional branch:
22
+
23
+ ```ts
24
+ // Before
25
+ if (editorExperiment('platform_synced_block', true)) {
26
+ enableSyncedBlocks();
27
+ }
28
+
29
+ // After
30
+ enableSyncedBlocks();
31
+ ```
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 9.1.0
4
36
 
5
37
  ### Minor Changes
@@ -292,7 +292,7 @@ function confluenceFullPageBasePreset(props) {
292
292
  options: pluginOptions.status
293
293
  })]).maybeAdd([_editorPluginSyncedBlock.syncedBlockPlugin, (0, _syncedBlockPluginOptions.syncedBlockPluginOptions)({
294
294
  options: pluginOptions.syncedBlock
295
- })], !!pluginOptions.syncedBlock && (0, _experiments.editorExperiment)('platform_synced_block', true)).add(_editorPluginIndentation.indentationPlugin).add(_editorPluginScrollIntoView.scrollIntoViewPlugin).add([_editorPluginToolbarListsIndentation.toolbarListsIndentationPlugin, (0, _toolbarListsIndentationPluginOptions.toolbarListsIndentationPluginOptions)({
295
+ })], !!pluginOptions.syncedBlock).add(_editorPluginIndentation.indentationPlugin).add(_editorPluginScrollIntoView.scrollIntoViewPlugin).add([_editorPluginToolbarListsIndentation.toolbarListsIndentationPlugin, (0, _toolbarListsIndentationPluginOptions.toolbarListsIndentationPluginOptions)({
296
296
  options: pluginOptions.toolbarListsIndentation
297
297
  })]).add([_editorPluginInsertBlock.insertBlockPlugin, (0, _insertBlockPluginOptions.insertBlockPluginOptions)({
298
298
  options: pluginOptions.insertBlock
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.codeBlockAdvancedPluginOptions = codeBlockAdvancedPluginOptions;
8
8
  var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
9
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
10
9
  function codeBlockAdvancedPluginOptions(_ref) {
11
10
  (0, _objectDestructuringEmpty2.default)(_ref);
12
11
  return {
13
- allowCodeFolding: (0, _expValEquals.expValEquals)('platform_editor_code_block_fold_gutter', 'isEnabled', true)
12
+ allowCodeFolding: true
14
13
  };
15
14
  }
@@ -288,7 +288,7 @@ export function confluenceFullPageBasePreset(props) {
288
288
  options: pluginOptions.status
289
289
  })]).maybeAdd([syncedBlockPlugin, syncedBlockPluginOptions({
290
290
  options: pluginOptions.syncedBlock
291
- })], !!pluginOptions.syncedBlock && editorExperiment('platform_synced_block', true)).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
291
+ })], !!pluginOptions.syncedBlock).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
292
292
  options: pluginOptions.toolbarListsIndentation
293
293
  })]).add([insertBlockPlugin, insertBlockPluginOptions({
294
294
  options: pluginOptions.insertBlock
@@ -1,6 +1,5 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
1
  export function codeBlockAdvancedPluginOptions({}) {
3
2
  return {
4
- allowCodeFolding: expValEquals('platform_editor_code_block_fold_gutter', 'isEnabled', true)
3
+ allowCodeFolding: true
5
4
  };
6
5
  }
@@ -286,7 +286,7 @@ export function confluenceFullPageBasePreset(props) {
286
286
  options: pluginOptions.status
287
287
  })]).maybeAdd([syncedBlockPlugin, syncedBlockPluginOptions({
288
288
  options: pluginOptions.syncedBlock
289
- })], !!pluginOptions.syncedBlock && editorExperiment('platform_synced_block', true)).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
289
+ })], !!pluginOptions.syncedBlock).add(indentationPlugin).add(scrollIntoViewPlugin).add([toolbarListsIndentationPlugin, toolbarListsIndentationPluginOptions({
290
290
  options: pluginOptions.toolbarListsIndentation
291
291
  })]).add([insertBlockPlugin, insertBlockPluginOptions({
292
292
  options: pluginOptions.insertBlock
@@ -1,8 +1,7 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
2
  export function codeBlockAdvancedPluginOptions(_ref) {
4
3
  _objectDestructuringEmpty(_ref);
5
4
  return {
6
- allowCodeFolding: expValEquals('platform_editor_code_block_fold_gutter', 'isEnabled', true)
5
+ allowCodeFolding: true
7
6
  };
8
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "9.1.0",
3
+ "version": "9.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": {
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/editor-plugin-batch-attribute-updates": "^15.0.0",
31
31
  "@atlaskit/editor-plugin-better-type-history": "^15.0.0",
32
32
  "@atlaskit/editor-plugin-block-controls": "^16.0.0",
33
- "@atlaskit/editor-plugin-block-menu": "^14.0.0",
33
+ "@atlaskit/editor-plugin-block-menu": "^14.1.0",
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",
@@ -73,11 +73,11 @@
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
+ "@atlaskit/editor-plugin-interactivity": "^0.2.0",
77
77
  "@atlaskit/editor-plugin-layout": "^16.0.0",
78
78
  "@atlaskit/editor-plugin-limited-mode": "^12.0.0",
79
79
  "@atlaskit/editor-plugin-list": "^17.0.0",
80
- "@atlaskit/editor-plugin-local-id": "^13.0.0",
80
+ "@atlaskit/editor-plugin-local-id": "^13.1.0",
81
81
  "@atlaskit/editor-plugin-loom": "^17.0.0",
82
82
  "@atlaskit/editor-plugin-media": "^17.0.0",
83
83
  "@atlaskit/editor-plugin-media-insert": "^30.0.0",
@@ -117,13 +117,13 @@
117
117
  "@atlaskit/editor-plugin-width": "^16.0.0",
118
118
  "@atlaskit/platform-feature-experiments": "^0.3.0",
119
119
  "@atlaskit/platform-feature-flags": "^2.1.0",
120
- "@atlaskit/tmp-editor-statsig": "^148.0.0",
120
+ "@atlaskit/tmp-editor-statsig": "^150.0.0",
121
121
  "@atlassian/ari": "^2.596.0",
122
122
  "@atlassian/editor-plugin-agent-managed-extension": "^5.0.0",
123
123
  "@babel/runtime": "^7.0.0"
124
124
  },
125
125
  "peerDependencies": {
126
- "@atlaskit/editor-common": "^119.5.0",
126
+ "@atlaskit/editor-common": "^119.9.0",
127
127
  "react": "^18.2.0 || ^19.2.0",
128
128
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
129
129
  },