@atlaskit/editor-core 189.1.3 → 189.1.5
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 +7 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +2 -3
- package/dist/cjs/plugins/analytics/index.js +1 -160
- package/dist/cjs/plugins/annotation/commands/index.js +1 -1
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
- package/dist/cjs/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +3 -5
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/cjs/plugins/collab-edit/utils.js +4 -4
- package/dist/cjs/plugins/extension/actions.js +3 -2
- package/dist/cjs/plugins/extension/extension-api.js +6 -5
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/cjs/plugins/find-replace/commands-with-analytics.js +23 -22
- package/dist/cjs/plugins/find-replace/keymap.js +1 -1
- package/dist/cjs/plugins/find-replace/ui/Find.js +6 -6
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -3
- package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -6
- package/dist/cjs/plugins/indentation/commands/index.js +1 -1
- package/dist/cjs/plugins/insert-block/index.js +1 -1
- package/dist/cjs/plugins/layout/actions.js +6 -7
- package/dist/cjs/plugins/macro/actions.js +3 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +2 -5
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
- package/dist/cjs/plugins/undo-redo/enums.js +3 -3
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +3 -4
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
- package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +1 -2
- package/dist/es2019/plugins/analytics/index.js +0 -3
- package/dist/es2019/plugins/annotation/commands/index.js +1 -1
- package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +1 -1
- package/dist/es2019/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +3 -3
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/es2019/plugins/collab-edit/utils.js +1 -1
- package/dist/es2019/plugins/extension/actions.js +2 -1
- package/dist/es2019/plugins/extension/extension-api.js +2 -1
- package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/es2019/plugins/find-replace/commands-with-analytics.js +2 -1
- package/dist/es2019/plugins/find-replace/keymap.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/Find.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/Replace.js +1 -1
- package/dist/es2019/plugins/indentation/commands/index.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/layout/actions.js +1 -2
- package/dist/es2019/plugins/macro/actions.js +2 -1
- package/dist/es2019/plugins/paste/pm-plugins/main.js +2 -4
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
- package/dist/es2019/plugins/undo-redo/enums.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +1 -2
- package/dist/es2019/ui/ErrorBoundary/index.js +1 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
- package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +1 -2
- package/dist/esm/plugins/analytics/index.js +0 -3
- package/dist/esm/plugins/annotation/commands/index.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/keymap.js +1 -1
- package/dist/esm/plugins/annotation/ui/InlineCommentView.js +3 -3
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
- package/dist/esm/plugins/collab-edit/utils.js +1 -1
- package/dist/esm/plugins/extension/actions.js +2 -1
- package/dist/esm/plugins/extension/extension-api.js +2 -1
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/esm/plugins/find-replace/commands-with-analytics.js +2 -1
- package/dist/esm/plugins/find-replace/keymap.js +1 -1
- package/dist/esm/plugins/find-replace/ui/Find.js +1 -1
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/esm/plugins/find-replace/ui/Replace.js +1 -1
- package/dist/esm/plugins/indentation/commands/index.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/layout/actions.js +1 -2
- package/dist/esm/plugins/macro/actions.js +2 -1
- package/dist/esm/plugins/paste/pm-plugins/main.js +2 -4
- package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
- package/dist/esm/plugins/undo-redo/enums.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -2
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/analytics/index.d.ts +0 -5
- package/dist/types/plugins/annotation/commands/index.d.ts +2 -3
- package/dist/types/plugins/annotation/commands/transform.d.ts +1 -2
- package/dist/types/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
- package/dist/types/plugins/annotation/utils.d.ts +1 -1
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +2 -2
- package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +3 -2
- package/dist/types/plugins/macro/actions.d.ts +1 -1
- package/dist/types/plugins/paste/util/index.d.ts +1 -2
- package/dist/types/presets/default.d.ts +20 -0
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types/ui/ErrorBoundary/index.d.ts +2 -3
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +2 -3
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +1 -2
- package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +1 -1
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +2 -2
- package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +3 -2
- package/dist/types-ts4.5/plugins/macro/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +1 -2
- package/dist/types-ts4.5/presets/default.d.ts +20 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { RESOLVE_METHOD } from '
|
|
3
|
+
import type { RESOLVE_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
addAnnotationMark: (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
7
6
|
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { AnnotationProviders } from '../types';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
interface InlineCommentViewProps {
|
|
7
7
|
providers: AnnotationProviders;
|
|
8
8
|
editorView: EditorView;
|
|
@@ -6,7 +6,7 @@ import { hasAnnotationMark, containsAnyAnnotations } from '@atlaskit/editor-comm
|
|
|
6
6
|
import type { AnnotationInfo } from './types';
|
|
7
7
|
import { AnnotationSelectionType } from './types';
|
|
8
8
|
import type { InlineCommentPluginState } from './pm-plugins/types';
|
|
9
|
-
import type { AnalyticsEventPayloadCallback } from '
|
|
9
|
+
import type { AnalyticsEventPayloadCallback } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
export { hasAnnotationMark, containsAnyAnnotations };
|
|
12
12
|
/**
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
7
|
declare const AvatarGroupPluginWrapper: (props: {
|
|
8
8
|
collabEdit?: CollabEditOptions | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { DispatchAnalyticsEvent } from '
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
export type FindReplaceToolbarButtonWithStateProps = {
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { Command } from '../../types';
|
|
3
|
-
import type { TRIGGER_METHOD } from '
|
|
3
|
+
import type { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
export declare const activateWithAnalytics: ({ triggerMethod, }: {
|
|
5
5
|
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR;
|
|
6
6
|
}) => Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { TRIGGER_METHOD } from '
|
|
4
|
+
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { MatchCaseProps } from '../types';
|
|
6
6
|
export declare const FIND_DEBOUNCE_MS = 100;
|
|
7
7
|
export type FindProps = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '
|
|
5
|
-
import { MatchCaseProps } from '../types';
|
|
4
|
+
import type { TRIGGER_METHOD, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import type { MatchCaseProps } from '../types';
|
|
6
6
|
export type FindReplaceProps = {
|
|
7
7
|
findText?: string;
|
|
8
8
|
replaceText?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { FindReplaceProps } from './FindReplace';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '
|
|
5
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
|
|
7
7
|
index: number;
|
|
8
8
|
numMatches: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import {
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
6
|
export type ReplaceProps = {
|
|
6
7
|
canReplace: boolean;
|
|
7
8
|
replaceText?: string;
|
|
@@ -4,5 +4,5 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { Providers, MacroProvider, MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
export declare const insertMacroFromMacroBrowser: (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
6
6
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
7
|
-
export declare const runMacroAutoConvert: (state: EditorState, text:
|
|
7
|
+
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
8
8
|
export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { Slice, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { PasteSource } from '
|
|
5
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { PasteSource, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
5
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
7
6
|
export declare function isPastedFromWord(html?: string): boolean;
|
|
8
7
|
export declare function isPastedFromExcel(html?: string): boolean;
|
|
@@ -68,6 +68,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
68
68
|
sharedState: {
|
|
69
69
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
70
70
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
71
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
71
72
|
};
|
|
72
73
|
dependencies: [
|
|
73
74
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -142,6 +143,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
142
143
|
sharedState: {
|
|
143
144
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
144
145
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
146
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
145
147
|
};
|
|
146
148
|
dependencies: [
|
|
147
149
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -175,6 +177,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
175
177
|
sharedState: {
|
|
176
178
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
177
179
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
180
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
178
181
|
};
|
|
179
182
|
dependencies: [
|
|
180
183
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -204,6 +207,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
204
207
|
sharedState: {
|
|
205
208
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
206
209
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
210
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
207
211
|
};
|
|
208
212
|
dependencies: [
|
|
209
213
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -302,6 +306,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
302
306
|
sharedState: {
|
|
303
307
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
304
308
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
309
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
305
310
|
};
|
|
306
311
|
dependencies: [
|
|
307
312
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -375,6 +380,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
375
380
|
sharedState: {
|
|
376
381
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
377
382
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
383
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
378
384
|
};
|
|
379
385
|
dependencies: [
|
|
380
386
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -428,6 +434,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
428
434
|
sharedState: {
|
|
429
435
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
430
436
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
437
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
431
438
|
};
|
|
432
439
|
dependencies: [
|
|
433
440
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -482,6 +489,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
482
489
|
sharedState: {
|
|
483
490
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
484
491
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
492
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
485
493
|
};
|
|
486
494
|
dependencies: [
|
|
487
495
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -547,6 +555,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
547
555
|
sharedState: {
|
|
548
556
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
549
557
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
558
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
550
559
|
};
|
|
551
560
|
dependencies: [
|
|
552
561
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -580,6 +589,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
580
589
|
sharedState: {
|
|
581
590
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
582
591
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
592
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
583
593
|
};
|
|
584
594
|
dependencies: [
|
|
585
595
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -637,6 +647,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
637
647
|
sharedState: {
|
|
638
648
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
639
649
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
650
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
640
651
|
};
|
|
641
652
|
dependencies: [
|
|
642
653
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -711,6 +722,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
711
722
|
sharedState: {
|
|
712
723
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
713
724
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
725
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
714
726
|
};
|
|
715
727
|
dependencies: [
|
|
716
728
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -744,6 +756,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
744
756
|
sharedState: {
|
|
745
757
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
746
758
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
759
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
747
760
|
};
|
|
748
761
|
dependencies: [
|
|
749
762
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -773,6 +786,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
773
786
|
sharedState: {
|
|
774
787
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
775
788
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
789
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
776
790
|
};
|
|
777
791
|
dependencies: [
|
|
778
792
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -871,6 +885,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
871
885
|
sharedState: {
|
|
872
886
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
873
887
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
888
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
874
889
|
};
|
|
875
890
|
dependencies: [
|
|
876
891
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -944,6 +959,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
944
959
|
sharedState: {
|
|
945
960
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
946
961
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
962
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
947
963
|
};
|
|
948
964
|
dependencies: [
|
|
949
965
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -997,6 +1013,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
997
1013
|
sharedState: {
|
|
998
1014
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
999
1015
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1016
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1000
1017
|
};
|
|
1001
1018
|
dependencies: [
|
|
1002
1019
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1051,6 +1068,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1051
1068
|
sharedState: {
|
|
1052
1069
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
1053
1070
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1071
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1054
1072
|
};
|
|
1055
1073
|
dependencies: [
|
|
1056
1074
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1116,6 +1134,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1116
1134
|
sharedState: {
|
|
1117
1135
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
1118
1136
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1137
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1119
1138
|
};
|
|
1120
1139
|
dependencies: [
|
|
1121
1140
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1149,6 +1168,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1149
1168
|
sharedState: {
|
|
1150
1169
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
1151
1170
|
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1171
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1152
1172
|
};
|
|
1153
1173
|
dependencies: [
|
|
1154
1174
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -7,8 +7,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
|
|
9
9
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
10
|
-
import type { DispatchAnalyticsEvent } from '
|
|
11
|
-
import type { EventDispatcher } from '
|
|
10
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
12
12
|
import type { EditorActions } from '../../..';
|
|
13
13
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
14
14
|
export interface FullPageToolbarProps {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
6
|
interface Props {
|
|
7
7
|
fields: FieldDefinition[];
|
|
8
8
|
extensionKey: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '
|
|
3
|
-
import
|
|
4
|
-
import { ACTION } from '../../plugins/analytics';
|
|
2
|
+
import type { DispatchAnalyticsEvent, ErrorEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
type ErrorCrashPayload = Extract<ErrorEventPayload, {
|
|
6
5
|
action: ACTION.EDITOR_CRASHED;
|
|
7
6
|
}>;
|
|
@@ -2,9 +2,9 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { EditorAppearance } from '../../types/editor-appearance';
|
|
4
4
|
import type { ToolbarSize, ToolbarUIComponentFactory } from './types';
|
|
5
|
-
import type { EventDispatcher } from '
|
|
5
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
6
|
import type EditorActions from '../../actions';
|
|
7
|
-
import type { DispatchAnalyticsEvent } from '
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
export interface ToolbarBreakPoint {
|
|
9
9
|
width: number;
|
|
10
10
|
size: ToolbarSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.1.
|
|
3
|
+
"version": "189.1.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
58
58
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
59
59
|
"@atlaskit/editor-palette": "1.5.1",
|
|
60
|
-
"@atlaskit/editor-plugin-analytics": "^0.
|
|
60
|
+
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
61
61
|
"@atlaskit/editor-plugin-base": "^0.2.0",
|
|
62
62
|
"@atlaskit/editor-plugin-better-type-history": "^0.1.0",
|
|
63
63
|
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@atlaskit/radio": "^5.6.0",
|
|
123
123
|
"@atlaskit/section-message": "^6.4.0",
|
|
124
124
|
"@atlaskit/select": "^16.7.0",
|
|
125
|
-
"@atlaskit/smart-card": "^26.
|
|
125
|
+
"@atlaskit/smart-card": "^26.41.0",
|
|
126
126
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
127
127
|
"@atlaskit/spinner": "^15.6.0",
|
|
128
128
|
"@atlaskit/tabs": "^13.4.0",
|