@atlaskit/editor-presets 24.3.5 → 24.4.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,25 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 24.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 24.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`059477aa93f45`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/059477aa93f45) -
14
+ Add an optimistic-toolbar opt-out to plugin configuration. Exclude Live pages from
15
+ platform_editor_ssr_toolbar_optimistic, including early editor-state exposure, toolbar rendering,
16
+ and asynchronous media and mention provider initialization. Preserve the experiment for Edit pages
17
+ regardless of toolbar docking position.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 24.3.5
4
24
 
5
25
  ### Patch Changes
package/compass.yml CHANGED
@@ -35,7 +35,7 @@ customFields:
35
35
  value: true
36
36
  - name: Reviewer Selection Mechanism
37
37
  type: text
38
- value: random(2)
38
+ value: randomTZIgnored(2)
39
39
  - name: Required Reviewer Approvals
40
40
  type: number
41
41
  value: 1
@@ -7,6 +7,7 @@ exports.insertBlockPluginOptions = insertBlockPluginOptions;
7
7
  function insertBlockPluginOptions(_ref) {
8
8
  var options = _ref.options;
9
9
  return {
10
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
10
11
  allowTables: true,
11
12
  allowExpand: true,
12
13
  horizontalRuleEnabled: true,
@@ -14,6 +14,7 @@ function mediaPluginOptions(_ref) {
14
14
  options = _ref.options,
15
15
  providers = _ref.providers;
16
16
  return {
17
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
17
18
  // SECTION: From confluence/next/packages/editor-features/src/utils/mediaOptions.ts
18
19
  provider: providers.mediaProvider,
19
20
  syncProvider: providers.syncMediaProvider,
@@ -8,6 +8,7 @@ function mentionsPluginOptions(_ref) {
8
8
  var options = _ref.options,
9
9
  providers = _ref.providers;
10
10
  return {
11
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
11
12
  agentSectionLozenge: options.agentSectionLozenge,
12
13
  sanitizePrivateContent: true,
13
14
  insertDisplayName: true,
@@ -2,6 +2,7 @@ export function insertBlockPluginOptions({
2
2
  options
3
3
  }) {
4
4
  return {
5
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
5
6
  allowTables: true,
6
7
  allowExpand: true,
7
8
  horizontalRuleEnabled: true,
@@ -9,6 +9,7 @@ export function mediaPluginOptions({
9
9
  providers
10
10
  }) {
11
11
  return {
12
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
12
13
  // SECTION: From confluence/next/packages/editor-features/src/utils/mediaOptions.ts
13
14
  provider: providers.mediaProvider,
14
15
  syncProvider: providers.syncMediaProvider,
@@ -3,6 +3,7 @@ export function mentionsPluginOptions({
3
3
  providers
4
4
  }) {
5
5
  return {
6
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
6
7
  agentSectionLozenge: options.agentSectionLozenge,
7
8
  sanitizePrivateContent: true,
8
9
  insertDisplayName: true,
@@ -1,6 +1,7 @@
1
1
  export function insertBlockPluginOptions(_ref) {
2
2
  var options = _ref.options;
3
3
  return {
4
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
4
5
  allowTables: true,
5
6
  allowExpand: true,
6
7
  horizontalRuleEnabled: true,
@@ -8,6 +8,7 @@ export function mediaPluginOptions(_ref) {
8
8
  options = _ref.options,
9
9
  providers = _ref.providers;
10
10
  return {
11
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
11
12
  // SECTION: From confluence/next/packages/editor-features/src/utils/mediaOptions.ts
12
13
  provider: providers.mediaProvider,
13
14
  syncProvider: providers.syncMediaProvider,
@@ -2,6 +2,7 @@ export function mentionsPluginOptions(_ref) {
2
2
  var options = _ref.options,
3
3
  providers = _ref.providers;
4
4
  return {
5
+ disableOptimisticToolbar: options.disableOptimisticToolbar,
5
6
  agentSectionLozenge: options.agentSectionLozenge,
6
7
  sanitizePrivateContent: true,
7
8
  insertDisplayName: true,
@@ -2,6 +2,7 @@ import type { InsertBlockPluginOptions } from '@atlaskit/editor-plugin-insert-bl
2
2
  import type { FullPageEditorAppearance } from '../types';
3
3
  interface Props {
4
4
  options: {
5
+ disableOptimisticToolbar?: InsertBlockPluginOptions['disableOptimisticToolbar'];
5
6
  editorAppearance: FullPageEditorAppearance;
6
7
  toolbarButtons: InsertBlockPluginOptions['toolbarButtons'];
7
8
  };
@@ -6,6 +6,7 @@ interface Props {
6
6
  intl: IntlShape;
7
7
  options: {
8
8
  createCommentExperience: MediaPluginOptions['createCommentExperience'];
9
+ disableOptimisticToolbar?: MediaPluginOptions['disableOptimisticToolbar'];
9
10
  editorAppearance: FullPageEditorAppearance;
10
11
  mediaViewerExtensions: MediaPluginOptions['mediaViewerExtensions'];
11
12
  onMediaRenderEvent?: MediaPluginOptions['onMediaRenderEvent'];
@@ -5,6 +5,7 @@ interface Props {
5
5
  options: {
6
6
  agentSectionLozenge?: MentionsPluginOptions['agentSectionLozenge'];
7
7
  currentUserId?: string;
8
+ disableOptimisticToolbar?: MentionsPluginOptions['disableOptimisticToolbar'];
8
9
  enableAgentSectioning?: boolean;
9
10
  getIsRovoPanelOpen?: () => boolean;
10
11
  handleMentionsChanged: MentionsChangedHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "24.3.5",
3
+ "version": "24.4.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": {
@@ -70,17 +70,17 @@
70
70
  "@atlaskit/editor-plugin-history": "^30.0.0",
71
71
  "@atlaskit/editor-plugin-hyperlink": "^32.0.0",
72
72
  "@atlaskit/editor-plugin-indentation": "^30.0.0",
73
- "@atlaskit/editor-plugin-insert-block": "^31.0.0",
73
+ "@atlaskit/editor-plugin-insert-block": "^31.1.0",
74
74
  "@atlaskit/editor-plugin-interaction": "^44.0.0",
75
75
  "@atlaskit/editor-plugin-interactivity": "^15.0.0",
76
76
  "@atlaskit/editor-plugin-layout": "^31.0.0",
77
77
  "@atlaskit/editor-plugin-limited-mode": "^27.0.0",
78
78
  "@atlaskit/editor-plugin-list": "^32.0.0",
79
79
  "@atlaskit/editor-plugin-local-id": "^28.0.0",
80
- "@atlaskit/editor-plugin-loom": "^32.0.0",
81
- "@atlaskit/editor-plugin-media": "^32.2.0",
80
+ "@atlaskit/editor-plugin-loom": "^32.1.0",
81
+ "@atlaskit/editor-plugin-media": "^32.3.0",
82
82
  "@atlaskit/editor-plugin-media-insert": "^48.0.0",
83
- "@atlaskit/editor-plugin-mentions": "^32.1.0",
83
+ "@atlaskit/editor-plugin-mentions": "^32.2.0",
84
84
  "@atlaskit/editor-plugin-metrics": "^31.0.0",
85
85
  "@atlaskit/editor-plugin-panel": "^32.0.0",
86
86
  "@atlaskit/editor-plugin-paste": "^31.2.0",
@@ -102,7 +102,7 @@
102
102
  "@atlaskit/editor-plugin-table": "^42.3.0",
103
103
  "@atlaskit/editor-plugin-tasks-and-decisions": "^33.0.0",
104
104
  "@atlaskit/editor-plugin-text-color": "^30.0.0",
105
- "@atlaskit/editor-plugin-text-formatting": "^30.2.0",
105
+ "@atlaskit/editor-plugin-text-formatting": "^31.0.0",
106
106
  "@atlaskit/editor-plugin-toolbar": "^27.0.0",
107
107
  "@atlaskit/editor-plugin-toolbar-lists-indentation": "^31.0.0",
108
108
  "@atlaskit/editor-plugin-track-changes": "^29.0.0",
@@ -114,15 +114,15 @@
114
114
  "@atlaskit/editor-plugin-user-intent": "^28.0.0",
115
115
  "@atlaskit/editor-plugin-user-preferences": "^28.0.0",
116
116
  "@atlaskit/editor-plugin-width": "^31.0.0",
117
- "@atlaskit/emoji": "^73.4.0",
117
+ "@atlaskit/emoji": "^73.6.0",
118
118
  "@atlaskit/platform-feature-experiments": "^0.3.0",
119
119
  "@atlaskit/platform-feature-flags": "^2.2.0",
120
- "@atlaskit/tmp-editor-statsig": "^259.0.0",
120
+ "@atlaskit/tmp-editor-statsig": "^261.0.0",
121
121
  "@atlassian/editor-plugin-agent-managed-extension": "^20.0.0",
122
122
  "@babel/runtime": "^7.0.0"
123
123
  },
124
124
  "peerDependencies": {
125
- "@atlaskit/editor-common": "^134.9.0",
125
+ "@atlaskit/editor-common": "^134.16.0",
126
126
  "react": "^18.2.0 || ^19.2.0",
127
127
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
128
128
  },
@@ -141,7 +141,7 @@
141
141
  }
142
142
  },
143
143
  "devDependencies": {
144
- "@atlaskit/editor-common": "^134.9.0",
144
+ "@atlaskit/editor-common": "^134.16.0",
145
145
  "react": "^19.2.0",
146
146
  "react-intl": "^7.0.0"
147
147
  }