@atlaskit/editor-presets 24.2.8 → 24.3.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 24.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`71401187eef88`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71401187eef88) -
8
+ Add a consumer-owned agent section lozenge for confluence_agentic_awareness_enabled.
9
+
10
+ Allow `platform_editor_agent_mentions_hide_labs_lozenge` to suppress both the default Labs lozenge
11
+ and any consumer-supplied lozenge.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 24.2.8
4
18
 
5
19
  ### Patch Changes
@@ -8,6 +8,7 @@ function mentionsPluginOptions(_ref) {
8
8
  var options = _ref.options,
9
9
  providers = _ref.providers;
10
10
  return {
11
+ agentSectionLozenge: options.agentSectionLozenge,
11
12
  sanitizePrivateContent: true,
12
13
  insertDisplayName: true,
13
14
  allowZeroWidthSpaceAfter: true,
@@ -3,6 +3,7 @@ export function mentionsPluginOptions({
3
3
  providers
4
4
  }) {
5
5
  return {
6
+ agentSectionLozenge: options.agentSectionLozenge,
6
7
  sanitizePrivateContent: true,
7
8
  insertDisplayName: true,
8
9
  allowZeroWidthSpaceAfter: true,
@@ -2,6 +2,7 @@ export function mentionsPluginOptions(_ref) {
2
2
  var options = _ref.options,
3
3
  providers = _ref.providers;
4
4
  return {
5
+ agentSectionLozenge: options.agentSectionLozenge,
5
6
  sanitizePrivateContent: true,
6
7
  insertDisplayName: true,
7
8
  allowZeroWidthSpaceAfter: true,
@@ -3,12 +3,13 @@ import type { MentionsChangedHandler, MentionsPluginOptions } from '@atlaskit/ed
3
3
  import type { MentionProvider } from '@atlaskit/mention/types';
4
4
  interface Props {
5
5
  options: {
6
+ agentSectionLozenge?: MentionsPluginOptions['agentSectionLozenge'];
6
7
  currentUserId?: string;
7
8
  enableAgentSectioning?: boolean;
8
9
  getIsRovoPanelOpen?: () => boolean;
9
10
  handleMentionsChanged: MentionsChangedHandler;
10
- showAgentMentionsLabsLozenge?: boolean;
11
11
  onAgentMentionChatClick?: MentionsPluginOptions['onAgentMentionChatClick'];
12
+ showAgentMentionsLabsLozenge?: boolean;
12
13
  };
13
14
  providers: {
14
15
  mentionProvider: Promise<MentionProvider> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "24.2.8",
3
+ "version": "24.3.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": {
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/editor-plugin-loom": "^32.0.0",
81
81
  "@atlaskit/editor-plugin-media": "^32.2.0",
82
82
  "@atlaskit/editor-plugin-media-insert": "^48.0.0",
83
- "@atlaskit/editor-plugin-mentions": "^32.0.0",
83
+ "@atlaskit/editor-plugin-mentions": "^32.1.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.1.0",
@@ -99,7 +99,7 @@
99
99
  "@atlaskit/editor-plugin-status": "^31.0.0",
100
100
  "@atlaskit/editor-plugin-submit-editor": "^30.0.0",
101
101
  "@atlaskit/editor-plugin-synced-block": "^28.0.0",
102
- "@atlaskit/editor-plugin-table": "^42.2.0",
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
105
  "@atlaskit/editor-plugin-text-formatting": "^30.2.0",
@@ -117,12 +117,12 @@
117
117
  "@atlaskit/emoji": "^73.3.0",
118
118
  "@atlaskit/platform-feature-experiments": "^0.3.0",
119
119
  "@atlaskit/platform-feature-flags": "^2.2.0",
120
- "@atlaskit/tmp-editor-statsig": "^253.0.0",
120
+ "@atlaskit/tmp-editor-statsig": "^254.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.5.0",
125
+ "@atlaskit/editor-common": "^134.7.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.5.0",
144
+ "@atlaskit/editor-common": "^134.7.0",
145
145
  "react": "^19.2.0",
146
146
  "react-intl": "^7.0.0"
147
147
  }