@atlaskit/editor-common 133.3.0 → 133.5.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,36 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 133.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`63204a720ea3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63204a720ea3d) -
8
+ Add ACTION.ADOPTED and the AIResultAdoptedEventPayload unified analytics type (aiResult adopted)
9
+ to AIUnifiedEventPayload, and allow aiResultAction on the unified aiResult discarded payload.
10
+ - [`5157e2c52cfcd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5157e2c52cfcd) -
11
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
12
+ (Group 3)
13
+
14
+ ### Patch Changes
15
+
16
+ - [`5a339a6a201dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a339a6a201dd) -
17
+ Gate the `suggestionType` analytics attribute, and the `suggestionType` field passed to
18
+ `onSubmitSuggestionFeedback`, behind `platform_editor_ai_suggestion_type_analytics`;
19
+ `suggestionType` is now optional on AI suggestions event payloads.
20
+ - [`b3013aaa4d7ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3013aaa4d7ce) -
21
+ Slash menu: add preview images for the Jira Change request, Incident summary and Service request
22
+ block templates
23
+ - Updated dependencies
24
+
25
+ ## 133.4.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [`f268dee2526f7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f268dee2526f7) -
30
+ Migrate Smart Card registration and removal from transactions to editor actions behind
31
+ `platform_editor_reduce_forced_layout_2`. Remove unused card overlay registration behind
32
+ `platform_editor_reduce_forced_layout_2`.
33
+
3
34
  ## 133.3.0
4
35
 
5
36
  ### Minor Changes
@@ -15,6 +15,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
15
15
  ACTION["ACTIONED"] = "actioned";
16
16
  ACTION["ACTIVATED"] = "activated";
17
17
  ACTION["ADDED"] = "added";
18
+ ACTION["ADOPTED"] = "adopted";
18
19
  ACTION["API_ERROR"] = "apiError";
19
20
  ACTION["API_RECEIVED"] = "apiReceived";
20
21
  ACTION["API_PURGED"] = "apiPurged";
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "133.2.0";
30
+ var packageVersion = "133.4.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -22,6 +22,10 @@ var snippetPreviewImageUrlsByKey = {
22
22
  light: "".concat(DAM_CDN_LINK, "/AT12OVMY.png"),
23
23
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJE.png")
24
24
  },
25
+ 'change-request': {
26
+ light: "".concat(DAM_CDN_LINK, "/AT12P40V.png"),
27
+ dark: "".concat(DAM_CDN_LINK, "/AT12P40Y.png")
28
+ },
25
29
  'colourful-layout': {
26
30
  light: "".concat(DAM_CDN_LINK, "/AT12OVN6.png"),
27
31
  dark: "".concat(DAM_CDN_LINK, "/AT12OVIG.png")
@@ -54,6 +58,10 @@ var snippetPreviewImageUrlsByKey = {
54
58
  light: "".concat(DAM_CDN_LINK, "/AT12OVMT.png"),
55
59
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJ9.png")
56
60
  },
61
+ 'incident-summary': {
62
+ light: "".concat(DAM_CDN_LINK, "/AT12P40X.png"),
63
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47X.png")
64
+ },
57
65
  'launch-checklist': {
58
66
  light: "".concat(DAM_CDN_LINK, "/AT12OVKW.png"),
59
67
  dark: "".concat(DAM_CDN_LINK, "/AT12OVHN.png")
@@ -86,6 +94,10 @@ var snippetPreviewImageUrlsByKey = {
86
94
  light: "".concat(DAM_CDN_LINK, "/AT12OVMZ.png"),
87
95
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJB.png")
88
96
  },
97
+ 'service-request': {
98
+ light: "".concat(DAM_CDN_LINK, "/AT12P40W.png"),
99
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47Y.png")
100
+ },
89
101
  'started-now': {
90
102
  light: "".concat(DAM_CDN_LINK, "/AT12OVN8.png"),
91
103
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJQ.png")
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "133.2.0";
26
+ var packageVersion = "133.4.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -11,6 +11,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
11
11
  ACTION["ACTIONED"] = "actioned";
12
12
  ACTION["ACTIVATED"] = "activated";
13
13
  ACTION["ADDED"] = "added";
14
+ ACTION["ADOPTED"] = "adopted";
14
15
  ACTION["API_ERROR"] = "apiError";
15
16
  ACTION["API_RECEIVED"] = "apiReceived";
16
17
  ACTION["API_PURGED"] = "apiPurged";
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "133.2.0";
16
+ const packageVersion = "133.4.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -16,6 +16,10 @@ const snippetPreviewImageUrlsByKey = {
16
16
  light: `${DAM_CDN_LINK}/AT12OVMY.png`,
17
17
  dark: `${DAM_CDN_LINK}/AT12OVJE.png`
18
18
  },
19
+ 'change-request': {
20
+ light: `${DAM_CDN_LINK}/AT12P40V.png`,
21
+ dark: `${DAM_CDN_LINK}/AT12P40Y.png`
22
+ },
19
23
  'colourful-layout': {
20
24
  light: `${DAM_CDN_LINK}/AT12OVN6.png`,
21
25
  dark: `${DAM_CDN_LINK}/AT12OVIG.png`
@@ -48,6 +52,10 @@ const snippetPreviewImageUrlsByKey = {
48
52
  light: `${DAM_CDN_LINK}/AT12OVMT.png`,
49
53
  dark: `${DAM_CDN_LINK}/AT12OVJ9.png`
50
54
  },
55
+ 'incident-summary': {
56
+ light: `${DAM_CDN_LINK}/AT12P40X.png`,
57
+ dark: `${DAM_CDN_LINK}/AT12P47X.png`
58
+ },
51
59
  'launch-checklist': {
52
60
  light: `${DAM_CDN_LINK}/AT12OVKW.png`,
53
61
  dark: `${DAM_CDN_LINK}/AT12OVHN.png`
@@ -80,6 +88,10 @@ const snippetPreviewImageUrlsByKey = {
80
88
  light: `${DAM_CDN_LINK}/AT12OVMZ.png`,
81
89
  dark: `${DAM_CDN_LINK}/AT12OVJB.png`
82
90
  },
91
+ 'service-request': {
92
+ light: `${DAM_CDN_LINK}/AT12P40W.png`,
93
+ dark: `${DAM_CDN_LINK}/AT12P47Y.png`
94
+ },
83
95
  'started-now': {
84
96
  light: `${DAM_CDN_LINK}/AT12OVN8.png`,
85
97
  dark: `${DAM_CDN_LINK}/AT12OVJQ.png`
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "133.2.0";
16
+ const packageVersion = "133.4.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -11,6 +11,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
11
11
  ACTION["ACTIONED"] = "actioned";
12
12
  ACTION["ACTIVATED"] = "activated";
13
13
  ACTION["ADDED"] = "added";
14
+ ACTION["ADOPTED"] = "adopted";
14
15
  ACTION["API_ERROR"] = "apiError";
15
16
  ACTION["API_RECEIVED"] = "apiReceived";
16
17
  ACTION["API_PURGED"] = "apiPurged";
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "133.2.0";
22
+ var packageVersion = "133.4.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -16,6 +16,10 @@ var snippetPreviewImageUrlsByKey = {
16
16
  light: "".concat(DAM_CDN_LINK, "/AT12OVMY.png"),
17
17
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJE.png")
18
18
  },
19
+ 'change-request': {
20
+ light: "".concat(DAM_CDN_LINK, "/AT12P40V.png"),
21
+ dark: "".concat(DAM_CDN_LINK, "/AT12P40Y.png")
22
+ },
19
23
  'colourful-layout': {
20
24
  light: "".concat(DAM_CDN_LINK, "/AT12OVN6.png"),
21
25
  dark: "".concat(DAM_CDN_LINK, "/AT12OVIG.png")
@@ -48,6 +52,10 @@ var snippetPreviewImageUrlsByKey = {
48
52
  light: "".concat(DAM_CDN_LINK, "/AT12OVMT.png"),
49
53
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJ9.png")
50
54
  },
55
+ 'incident-summary': {
56
+ light: "".concat(DAM_CDN_LINK, "/AT12P40X.png"),
57
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47X.png")
58
+ },
51
59
  'launch-checklist': {
52
60
  light: "".concat(DAM_CDN_LINK, "/AT12OVKW.png"),
53
61
  dark: "".concat(DAM_CDN_LINK, "/AT12OVHN.png")
@@ -80,6 +88,10 @@ var snippetPreviewImageUrlsByKey = {
80
88
  light: "".concat(DAM_CDN_LINK, "/AT12OVMZ.png"),
81
89
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJB.png")
82
90
  },
91
+ 'service-request': {
92
+ light: "".concat(DAM_CDN_LINK, "/AT12P40W.png"),
93
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47Y.png")
94
+ },
83
95
  'started-now': {
84
96
  light: "".concat(DAM_CDN_LINK, "/AT12OVN8.png"),
85
97
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJQ.png")
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "133.2.0";
23
+ var packageVersion = "133.4.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -53,7 +53,7 @@ type RegenerationSuggestionDetails = SuggestionRemixAttributes & TimeSinceGenera
53
53
  actionKind: string;
54
54
  outcome?: AiSuggestionsRegenerationOutcome;
55
55
  suggestionId: string;
56
- suggestionType: string;
56
+ suggestionType?: string;
57
57
  };
58
58
  type RegenerationCommonAttributes = {
59
59
  currentNodeCount: number;
@@ -62,7 +62,7 @@ type RegenerationCommonAttributes = {
62
62
  trigger: AiSuggestionsRegenerationTrigger;
63
63
  };
64
64
  type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
65
- suggestionType: string;
65
+ suggestionType?: string;
66
66
  toolCalls: {
67
67
  localIds: string[];
68
68
  name: string;
@@ -107,7 +107,7 @@ type SuggestionLifecycleAttributes = SuggestionRemixAttributes & TimeSinceGenera
107
107
  hasSources: boolean;
108
108
  interactionPoint: AiSuggestionInteractionPoint;
109
109
  suggestionId: string;
110
- suggestionType: string;
110
+ suggestionType?: string;
111
111
  };
112
112
  type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionLifecycleAttributes & {
113
113
  charactersAdded?: number;
@@ -117,7 +117,7 @@ type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIO
117
117
  type UndoAcceptedSuggestionAEP = TrackAEP<ACTION.UNDO_PERFORMED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, TimeSinceGenerationAttribute & {
118
118
  actionKind: string;
119
119
  suggestionId: string;
120
- suggestionType: string;
120
+ suggestionType?: string;
121
121
  }, undefined>;
122
122
  type DiscardedSuggestionAttributes = SuggestionLifecycleAttributes;
123
123
  type CancelSuggestionsAEP = TrackAEP<ACTION.CANCELLED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
@@ -141,7 +141,7 @@ type RightRailViewedAEP = TrackAEP<ACTION.RIGHT_RAIL_VIEWED, ACTION_SUBJECT.AI_S
141
141
  suggestionDetails: Array<SuggestionRemixAttributes & TimeSinceGenerationAttribute & {
142
142
  actionKind: string;
143
143
  affectedBlocks: number;
144
- suggestionType: string;
144
+ suggestionType?: string;
145
145
  }>;
146
146
  }, undefined>;
147
147
  type RightRailClosedAEP = TrackAEP<ACTION.RIGHT_RAIL_CLOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, undefined, undefined>;
@@ -153,7 +153,7 @@ type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJE
153
153
  interactionPoint: AiSuggestionInteractionPoint;
154
154
  reasoningCharacterCount: number;
155
155
  suggestionId: string;
156
- suggestionType: string;
156
+ suggestionType?: string;
157
157
  }, undefined>;
158
158
  type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
159
159
  generationDurationMs: number;
@@ -165,7 +165,7 @@ type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGG
165
165
  agentId?: string;
166
166
  hasSources: boolean;
167
167
  suggestionId: string;
168
- suggestionType: string;
168
+ suggestionType?: string;
169
169
  }>;
170
170
  }, undefined>;
171
171
  type EmptyStateExposedAEP = TrackAEP<ACTION.EMPTY_STATE_EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
@@ -44,7 +44,9 @@ type AIUnifiedAgentAttributes = {
44
44
  };
45
45
  type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
46
46
  type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
47
- type AIInteractionDiscardedAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
47
+ type AIInteractionDiscardedAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
48
+ aiResultAction?: string;
49
+ }, undefined>;
48
50
  type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
49
51
  /**
50
52
  * Generated image / MAUI app block counts of the Rovo page edit behind an AI result, copied from the
@@ -68,6 +70,19 @@ type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, A
68
70
  refinementCount?: number;
69
71
  wasRedone?: boolean;
70
72
  }, undefined>;
73
+ export type AIRovoModifiedObject = {
74
+ actionName: 'create' | 'update';
75
+ objectId: string;
76
+ objectType: string;
77
+ targetProduct: string;
78
+ };
79
+ /**
80
+ * Fires once an AI result has successfully created or modified a work item (page, issue, etc.).
81
+ * Sequence to `aiResult actioned`.
82
+ */
83
+ export type AIResultAdoptedEventPayload = TrackAEP<ACTION.ADOPTED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
84
+ rovoModifiedObjects: AIRovoModifiedObject[];
85
+ }, undefined>;
71
86
  type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
72
87
  aiErrorCode?: number;
73
88
  aiErrorMessage?: string;
@@ -75,5 +90,5 @@ type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_
75
90
  type AIFeedbackSubmittedAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_FEEDBACK, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
76
91
  aiFeedbackResult: 'up' | 'down';
77
92
  }, undefined>;
78
- export type AIUnifiedEventPayload = AIInteractionInitiatedAEP | AIResultViewedAEP | AIResultErrorAEP | AIInteractionDismissedAEP | AIResultActionedAEP | AIFeedbackSubmittedAEP | AIInteractionDiscardedAEP;
93
+ export type AIUnifiedEventPayload = AIInteractionInitiatedAEP | AIResultViewedAEP | AIResultErrorAEP | AIInteractionDismissedAEP | AIResultActionedAEP | AIResultAdoptedEventPayload | AIFeedbackSubmittedAEP | AIInteractionDiscardedAEP;
79
94
  export {};
@@ -8,6 +8,7 @@ export declare enum ACTION {
8
8
  ACTIONED = "actioned",
9
9
  ACTIVATED = "activated",
10
10
  ADDED = "added",
11
+ ADOPTED = "adopted",
11
12
  API_ERROR = "apiError",
12
13
  API_RECEIVED = "apiReceived",
13
14
  API_PURGED = "apiPurged",
@@ -79,7 +79,19 @@ export interface EmbedCardTransformers {
79
79
  createEmbedCardTransformCommand: CreateEmbedCardTransformCommand;
80
80
  embedCardNodeTransformer: EmbedCardNodeTransformer;
81
81
  }
82
+ /** Resolved card metadata and its live node-view position getter. */
83
+ export type CardRegistration = {
84
+ /** Read the node view's current position after document edits. */
85
+ getPos: () => number | undefined;
86
+ id: string;
87
+ title?: string;
88
+ url?: string;
89
+ };
90
+ /** Immutable registrations keyed by card ID. */
91
+ export type CardRegistrations = Readonly<Record<string, Readonly<CardRegistration>>>;
82
92
  export type CardPluginActions = {
93
+ /** Returns current registrations keyed by card ID. */
94
+ getCardRegistrations: () => CardRegistrations;
83
95
  getEndingToolbarItems: GetEndingToolbarItems;
84
96
  getStartingToolbarItems: GetStartingToolbarItems;
85
97
  hideLinkToolbar: HideLinkToolbarAction;
@@ -94,7 +106,9 @@ export type CardPluginActions = {
94
106
  * `queueCardsFromChangedTr` when unavailable.
95
107
  */
96
108
  queueCardsFromRange?: QueueCardsFromRangeAction;
109
+ registerCard: (info: CardRegistration) => void;
97
110
  registerEmbedCardTransformer: (transformers: EmbedCardTransformers) => void;
111
+ removeRegisteredCard: (id: string) => void;
98
112
  /**
99
113
  * Resolves a URL via the Object Resolver Service and returns the canonical
100
114
  * expanded URL. Useful for expanding Confluence short-link URLs
@@ -105,4 +119,5 @@ export type CardPluginActions = {
105
119
  */
106
120
  resolveShortLinkUrl: (url: string) => Promise<string | undefined>;
107
121
  setProvider: (provider: Promise<CardProvider>) => Promise<boolean>;
122
+ subscribeToCardRegistry: (listener: () => void) => () => void;
108
123
  };
@@ -142,6 +142,8 @@ export type FloatingToolbarButton<T extends object> = {
142
142
  confirmDialog?: ConfirmDialogOptions | (() => ConfirmDialogOptions);
143
143
  disabled?: boolean;
144
144
  focusEditoronEnter?: boolean;
145
+ /** Keep the tooltip open when the button is pressed. Set it when a press changes the tooltip content. */
146
+ hasNewContentOnTriggerClick?: boolean;
145
147
  hidden?: boolean;
146
148
  hideTooltipOnClick?: boolean;
147
149
  href?: string;
@@ -164,8 +166,6 @@ export type FloatingToolbarButton<T extends object> = {
164
166
  /** If true, the component will have pulse onboarding effect around it. */
165
167
  pulse?: boolean;
166
168
  selected?: boolean;
167
- /** Keep the tooltip open when the button is pressed. Set it when a press changes the tooltip content. */
168
- hasNewContentOnTriggerClick?: boolean;
169
169
  showTitle?: boolean;
170
170
  supportsViewMode?: boolean;
171
171
  tabIndex?: number | null | undefined;
@@ -340,6 +340,11 @@ export interface FloatingToolbarConfig {
340
340
  * behind it. Defaults to `'default'` (the wrapper's surface, as today).
341
341
  */
342
342
  containerSurface?: 'default' | 'none';
343
+ /** Refresh items when data outside EditorState changes. Snapshots must be stable between updates. */
344
+ externalStore?: {
345
+ getSnapshot: () => unknown;
346
+ subscribe: (listener: () => void) => () => void;
347
+ };
343
348
  /**
344
349
  * Enable Popup component's focus trap
345
350
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "133.3.0",
3
+ "version": "133.5.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/activity-provider": "^3.1.0",
32
32
  "@atlaskit/adf-schema": "^57.7.0",
33
33
  "@atlaskit/adf-utils": "^20.9.0",
34
- "@atlaskit/afm-i18n-platform-editor-editor-common": "2.270.0",
34
+ "@atlaskit/afm-i18n-platform-editor-editor-common": "2.287.0",
35
35
  "@atlaskit/analytics-listeners": "^11.4.0",
36
36
  "@atlaskit/analytics-namespaced-context": "^8.2.0",
37
37
  "@atlaskit/analytics-next": "^12.6.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/editor-toolbar": "^2.8.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.2.0",
52
52
  "@atlaskit/editor-ui-control-model": "^2.10.0",
53
- "@atlaskit/emoji": "^73.0.0",
53
+ "@atlaskit/emoji": "^73.1.0",
54
54
  "@atlaskit/feature-gate-js-client": "^7.0.0",
55
55
  "@atlaskit/icon": "^38.0.0",
56
56
  "@atlaskit/link": "^5.1.0",
@@ -63,9 +63,9 @@
63
63
  "@atlaskit/media-common": "^14.7.0",
64
64
  "@atlaskit/media-file-preview": "^2.0.0",
65
65
  "@atlaskit/media-picker": "^73.2.0",
66
- "@atlaskit/media-ui": "^31.4.0",
66
+ "@atlaskit/media-ui": "^31.5.0",
67
67
  "@atlaskit/media-viewer": "^54.11.0",
68
- "@atlaskit/mention": "^30.3.0",
68
+ "@atlaskit/mention": "^30.4.0",
69
69
  "@atlaskit/menu": "^11.0.0",
70
70
  "@atlaskit/object": "^2.3.0",
71
71
  "@atlaskit/onboarding": "^15.4.0",
@@ -82,11 +82,11 @@
82
82
  "@atlaskit/smart-card": "^46.7.0",
83
83
  "@atlaskit/smart-user-picker": "^12.5.0",
84
84
  "@atlaskit/spinner": "^20.4.0",
85
- "@atlaskit/task-decision": "^21.12.0",
85
+ "@atlaskit/task-decision": "^21.13.0",
86
86
  "@atlaskit/teams-app-config": "^3.1.0",
87
87
  "@atlaskit/textfield": "^10.2.0",
88
- "@atlaskit/tmp-editor-statsig": "^244.0.0",
89
- "@atlaskit/tokens": "^20.6.0",
88
+ "@atlaskit/tmp-editor-statsig": "^245.0.0",
89
+ "@atlaskit/tokens": "^20.7.0",
90
90
  "@atlaskit/tooltip": "^24.4.0",
91
91
  "@atlaskit/width-detector": "^7.2.0",
92
92
  "@babel/runtime": "^7.0.0",