@atlaskit/editor-common 114.4.0 → 114.5.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 +17 -0
- package/dist/cjs/analytics/types/contextual-typeahead-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/extensibility/ExtensionComponent.js +3 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/contextual-typeahead-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/extensibility/ExtensionComponent.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/contextual-typeahead-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/extensibility/ExtensionComponent.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/contextual-typeahead-events.d.ts +6 -0
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/extensions/extension-handlers.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/contextual-typeahead-events.d.ts +6 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 114.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`6940e6da4162d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6940e6da4162d) -
|
|
14
|
+
Wire up sendSelectedChange for native embeds
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 114.4.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -365,6 +365,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
365
365
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
366
366
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
367
367
|
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
368
|
+
ACTION_SUBJECT["CONTEXTUAL_TYPEAHEAD"] = "contextualTypeahead";
|
|
368
369
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
369
370
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
370
371
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -159,6 +159,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
159
159
|
parameters = _pmNode$attrs.parameters,
|
|
160
160
|
text = _pmNode$attrs.text;
|
|
161
161
|
var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
162
|
+
var selection = editorView.state.selection;
|
|
163
|
+
var isSelected = selection instanceof _state.NodeSelection && selection.node === pmNode;
|
|
162
164
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
163
165
|
return;
|
|
164
166
|
}
|
|
@@ -201,6 +203,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
201
203
|
return /*#__PURE__*/_react.default.createElement(NodeRenderer, {
|
|
202
204
|
node: node,
|
|
203
205
|
references: _this.props.references,
|
|
206
|
+
isSelected: isSelected,
|
|
204
207
|
showUnknownMacroPlaceholder: (0, _platformFeatureFlags.fg)('tinymce_display_unknown_macro_body_content')
|
|
205
208
|
});
|
|
206
209
|
}
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
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 = "114.
|
|
22
|
+
var packageVersion = "114.5.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.
|
|
27
|
+
var packageVersion = "114.5.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -359,6 +359,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
359
359
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
360
360
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
361
361
|
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
362
|
+
ACTION_SUBJECT["CONTEXTUAL_TYPEAHEAD"] = "contextualTypeahead";
|
|
362
363
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
363
364
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
364
365
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -117,6 +117,10 @@ class ExtensionComponentInner extends Component {
|
|
|
117
117
|
text
|
|
118
118
|
} = pmNode.attrs;
|
|
119
119
|
const isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
120
|
+
const {
|
|
121
|
+
selection
|
|
122
|
+
} = editorView.state;
|
|
123
|
+
const isSelected = selection instanceof NodeSelection && selection.node === pmNode;
|
|
120
124
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
121
125
|
return;
|
|
122
126
|
}
|
|
@@ -157,6 +161,7 @@ class ExtensionComponentInner extends Component {
|
|
|
157
161
|
return /*#__PURE__*/React.createElement(NodeRenderer, {
|
|
158
162
|
node: node,
|
|
159
163
|
references: this.props.references,
|
|
164
|
+
isSelected: isSelected,
|
|
160
165
|
showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
|
|
161
166
|
});
|
|
162
167
|
}
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.
|
|
7
|
+
const packageVersion = "114.5.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.
|
|
17
|
+
const packageVersion = "114.5.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -359,6 +359,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
359
359
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
360
360
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
361
361
|
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
362
|
+
ACTION_SUBJECT["CONTEXTUAL_TYPEAHEAD"] = "contextualTypeahead";
|
|
362
363
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
363
364
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
364
365
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -150,6 +150,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
150
150
|
parameters = _pmNode$attrs.parameters,
|
|
151
151
|
text = _pmNode$attrs.text;
|
|
152
152
|
var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
153
|
+
var selection = editorView.state.selection;
|
|
154
|
+
var isSelected = selection instanceof NodeSelection && selection.node === pmNode;
|
|
153
155
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
@@ -192,6 +194,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
192
194
|
return /*#__PURE__*/React.createElement(NodeRenderer, {
|
|
193
195
|
node: node,
|
|
194
196
|
references: _this.props.references,
|
|
197
|
+
isSelected: isSelected,
|
|
195
198
|
showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
|
|
196
199
|
});
|
|
197
200
|
}
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.
|
|
13
|
+
var packageVersion = "114.5.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.
|
|
24
|
+
var packageVersion = "114.5.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type ContextualTypeaheadViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
4
|
+
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
5
|
+
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP;
|
|
6
|
+
export {};
|
|
@@ -351,6 +351,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
351
351
|
AI_DEFINITIONS = "aiDefinitions",
|
|
352
352
|
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
353
353
|
AI_AUTOCOMPLETE = "aiAutocomplete",
|
|
354
|
+
CONTEXTUAL_TYPEAHEAD = "contextualTypeahead",
|
|
354
355
|
USER_PREFERENCES = "userPreferences",
|
|
355
356
|
ALIGNMENT = "alignment",
|
|
356
357
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -19,6 +19,7 @@ import type { BlockMenuEventPayload, ElementTransformErrorAEP } from './block-me
|
|
|
19
19
|
import type { BreakoutEventPayload } from './breakout-events';
|
|
20
20
|
import type { TextColorEventPayload } from './color-events';
|
|
21
21
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
22
|
+
import type { ContextualTypeaheadEventPayload } from './contextual-typeahead-events';
|
|
22
23
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
23
24
|
import type { DatasourceClickedPayload } from './datasource-clicked-events';
|
|
24
25
|
import type { DateEventPayload } from './date-events';
|
|
@@ -68,7 +69,7 @@ export type SimplifiedNode = {
|
|
|
68
69
|
pos: number;
|
|
69
70
|
type: string;
|
|
70
71
|
};
|
|
71
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
72
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | ContextualTypeaheadEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
72
73
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
73
74
|
newColor: string;
|
|
74
75
|
previousColor: string;
|
|
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
17
17
|
actions?: MultiBodiedExtensionActions;
|
|
18
|
+
isSelected?: boolean;
|
|
18
19
|
node: ExtensionParams<T>;
|
|
19
20
|
references?: ReferenceEntity[];
|
|
20
21
|
showUnknownMacroPlaceholder?: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type ContextualTypeaheadViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
4
|
+
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
5
|
+
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP;
|
|
6
|
+
export {};
|
|
@@ -351,6 +351,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
351
351
|
AI_DEFINITIONS = "aiDefinitions",
|
|
352
352
|
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
353
353
|
AI_AUTOCOMPLETE = "aiAutocomplete",
|
|
354
|
+
CONTEXTUAL_TYPEAHEAD = "contextualTypeahead",
|
|
354
355
|
USER_PREFERENCES = "userPreferences",
|
|
355
356
|
ALIGNMENT = "alignment",
|
|
356
357
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -19,6 +19,7 @@ import type { BlockMenuEventPayload, ElementTransformErrorAEP } from './block-me
|
|
|
19
19
|
import type { BreakoutEventPayload } from './breakout-events';
|
|
20
20
|
import type { TextColorEventPayload } from './color-events';
|
|
21
21
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
22
|
+
import type { ContextualTypeaheadEventPayload } from './contextual-typeahead-events';
|
|
22
23
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
23
24
|
import type { DatasourceClickedPayload } from './datasource-clicked-events';
|
|
24
25
|
import type { DateEventPayload } from './date-events';
|
|
@@ -68,7 +69,7 @@ export type SimplifiedNode = {
|
|
|
68
69
|
pos: number;
|
|
69
70
|
type: string;
|
|
70
71
|
};
|
|
71
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
72
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | ContextualTypeaheadEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
72
73
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
73
74
|
newColor: string;
|
|
74
75
|
previousColor: string;
|
|
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
17
17
|
actions?: MultiBodiedExtensionActions;
|
|
18
|
+
isSelected?: boolean;
|
|
18
19
|
node: ExtensionParams<T>;
|
|
19
20
|
references?: ReferenceEntity[];
|
|
20
21
|
showUnknownMacroPlaceholder?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.5.1",
|
|
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/"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@atlaskit/icon": "^34.2.0",
|
|
62
62
|
"@atlaskit/icon-object": "^7.5.0",
|
|
63
63
|
"@atlaskit/link": "^3.4.0",
|
|
64
|
-
"@atlaskit/link-datasource": "^5.
|
|
65
|
-
"@atlaskit/link-picker": "^5.
|
|
64
|
+
"@atlaskit/link-datasource": "^5.1.0",
|
|
65
|
+
"@atlaskit/link-picker": "^5.1.0",
|
|
66
66
|
"@atlaskit/media-card": "^80.1.0",
|
|
67
67
|
"@atlaskit/media-client": "^36.0.0",
|
|
68
68
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^19.0.0",
|
|
80
80
|
"@atlaskit/profilecard": "^25.1.0",
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
|
-
"@atlaskit/react-ufo": "^5.
|
|
82
|
+
"@atlaskit/react-ufo": "^5.16.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.12.0",
|
|
84
|
-
"@atlaskit/smart-card": "^44.
|
|
84
|
+
"@atlaskit/smart-card": "^44.3.0",
|
|
85
85
|
"@atlaskit/smart-user-picker": "^10.0.0",
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.0.0",
|
|
88
88
|
"@atlaskit/textfield": "^8.3.0",
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^64.0.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^21.1.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.1.0",
|