@atlaskit/editor-core 226.1.7 → 226.2.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,16 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 226.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 226.1.7
4
15
 
5
16
  ### Patch Changes
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "226.1.6";
9
+ var version = exports.version = "226.1.7";
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "226.1.6";
3
+ export const version = "226.1.7";
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "226.1.6";
3
+ export var version = "226.1.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "226.1.7",
3
+ "version": "226.2.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,46 +37,46 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/activity-provider": "^3.0.0",
40
+ "@atlaskit/activity-provider": "^3.1.0",
41
41
  "@atlaskit/adf-schema": "^57.2.0",
42
42
  "@atlaskit/afm-i18n-platform-editor-editor-core": "2.200.0",
43
- "@atlaskit/analytics-namespaced-context": "^8.1.0",
44
- "@atlaskit/analytics-next": "^12.4.0",
43
+ "@atlaskit/analytics-namespaced-context": "^8.2.0",
44
+ "@atlaskit/analytics-next": "^12.5.0",
45
45
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
46
- "@atlaskit/button": "^25.2.0",
46
+ "@atlaskit/button": "^25.3.0",
47
47
  "@atlaskit/css": "^1.1.0",
48
- "@atlaskit/editor-json-transformer": "^9.7.0",
48
+ "@atlaskit/editor-json-transformer": "^9.8.0",
49
49
  "@atlaskit/editor-performance-metrics": "^3.2.0",
50
50
  "@atlaskit/editor-plugin-block-menu": "^15.0.0",
51
51
  "@atlaskit/editor-plugin-connectivity": "^16.0.0",
52
- "@atlaskit/editor-plugin-quick-insert": "^16.1.0",
53
- "@atlaskit/editor-plugin-selection-extension": "^19.0.0",
52
+ "@atlaskit/editor-plugin-quick-insert": "^16.2.0",
53
+ "@atlaskit/editor-plugin-selection-extension": "^19.1.0",
54
54
  "@atlaskit/editor-plugin-user-preferences": "^14.0.0",
55
55
  "@atlaskit/editor-plugins": "^16.1.0",
56
56
  "@atlaskit/editor-prosemirror": "^8.0.0",
57
- "@atlaskit/editor-shared-styles": "^4.0.0",
57
+ "@atlaskit/editor-shared-styles": "^4.1.0",
58
58
  "@atlaskit/editor-ssr-renderer": "^11.0.0",
59
59
  "@atlaskit/editor-toolbar": "^2.6.0",
60
60
  "@atlaskit/editor-toolbar-model": "^1.2.0",
61
- "@atlaskit/emoji": "^72.1.0",
61
+ "@atlaskit/emoji": "^72.2.0",
62
62
  "@atlaskit/feature-gate-js-client": "^6.0.0",
63
- "@atlaskit/heading": "^7.1.0",
64
- "@atlaskit/icon": "^37.5.0",
63
+ "@atlaskit/heading": "^7.2.0",
64
+ "@atlaskit/icon": "^37.6.0",
65
65
  "@atlaskit/link": "^5.1.0",
66
- "@atlaskit/media-card": "^81.8.0",
67
- "@atlaskit/mention": "^27.18.0",
66
+ "@atlaskit/media-card": "^81.9.0",
67
+ "@atlaskit/mention": "^27.19.0",
68
68
  "@atlaskit/platform-feature-experiments": "^0.3.0",
69
- "@atlaskit/platform-feature-flags": "^2.1.0",
69
+ "@atlaskit/platform-feature-flags": "^2.2.0",
70
70
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
71
- "@atlaskit/popup": "^6.2.0",
72
- "@atlaskit/primitives": "^22.4.0",
71
+ "@atlaskit/popup": "^6.3.0",
72
+ "@atlaskit/primitives": "^22.5.0",
73
73
  "@atlaskit/react-compiler-gating": "^0.2.0",
74
74
  "@atlaskit/react-ufo": "^7.7.0",
75
- "@atlaskit/task-decision": "^21.8.0",
75
+ "@atlaskit/task-decision": "^21.9.0",
76
76
  "@atlaskit/tmp-editor-statsig": "^168.0.0",
77
- "@atlaskit/tokens": "^16.9.0",
78
- "@atlaskit/tooltip": "^24.2.0",
79
- "@atlaskit/width-detector": "^7.1.0",
77
+ "@atlaskit/tokens": "^16.10.0",
78
+ "@atlaskit/tooltip": "^24.3.0",
79
+ "@atlaskit/width-detector": "^7.2.0",
80
80
  "@babel/runtime": "^7.0.0",
81
81
  "@compiled/react": "^1.0.2",
82
82
  "@emotion/react": "^11.7.1",
@@ -91,9 +91,9 @@
91
91
  "uuid": "^3.1.0"
92
92
  },
93
93
  "peerDependencies": {
94
- "@atlaskit/editor-common": "^120.7.0",
95
- "@atlaskit/link-provider": "^5.4.0",
96
- "@atlaskit/media-core": "^38.1.0",
94
+ "@atlaskit/editor-common": "^120.9.0",
95
+ "@atlaskit/link-provider": "^5.5.0",
96
+ "@atlaskit/media-core": "^38.2.0",
97
97
  "react": "^18.2.0",
98
98
  "react-dom": "^18.2.0",
99
99
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -103,75 +103,75 @@
103
103
  "@af/editor-libra": "workspace:^",
104
104
  "@af/suppress-react-warnings": "workspace:^",
105
105
  "@af/visual-regression": "workspace:^",
106
- "@atlaskit/adf-utils": "^20.7.0",
107
- "@atlaskit/analytics-gas-types": "^6.1.0",
108
- "@atlaskit/analytics-listeners": "^11.2.0",
109
- "@atlaskit/code": "^19.1.0",
110
- "@atlaskit/collab-provider": "^25.0.0",
106
+ "@atlaskit/adf-utils": "^20.8.0",
107
+ "@atlaskit/analytics-gas-types": "^6.2.0",
108
+ "@atlaskit/analytics-listeners": "^11.3.0",
109
+ "@atlaskit/code": "^19.2.0",
110
+ "@atlaskit/collab-provider": "^25.1.0",
111
111
  "@atlaskit/docs": "^12.2.0",
112
- "@atlaskit/drawer": "^14.2.0",
112
+ "@atlaskit/drawer": "^14.3.0",
113
113
  "@atlaskit/editor-plugin-alignment": "^17.0.0",
114
114
  "@atlaskit/editor-plugin-annotation": "^16.0.0",
115
- "@atlaskit/editor-plugin-base": "^17.0.0",
116
- "@atlaskit/editor-plugin-card": "^22.0.0",
115
+ "@atlaskit/editor-plugin-base": "^17.1.0",
116
+ "@atlaskit/editor-plugin-card": "^22.1.0",
117
117
  "@atlaskit/editor-plugin-code-block-advanced": "^16.0.0",
118
118
  "@atlaskit/editor-plugin-collab-edit": "^17.0.0",
119
- "@atlaskit/editor-plugin-content-insertion": "^16.0.0",
119
+ "@atlaskit/editor-plugin-content-insertion": "^16.1.0",
120
120
  "@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
121
- "@atlaskit/editor-plugin-extension": "^19.0.0",
122
- "@atlaskit/editor-plugin-grid": "^16.0.0",
123
- "@atlaskit/editor-plugin-guideline": "^16.0.0",
121
+ "@atlaskit/editor-plugin-extension": "^19.1.0",
122
+ "@atlaskit/editor-plugin-grid": "^16.1.0",
123
+ "@atlaskit/editor-plugin-guideline": "^16.1.0",
124
124
  "@atlaskit/editor-plugin-highlight": "^16.0.0",
125
- "@atlaskit/editor-plugin-insert-block": "^17.0.0",
126
- "@atlaskit/editor-plugin-layout": "^17.1.0",
127
- "@atlaskit/editor-plugin-list": "^18.0.0",
128
- "@atlaskit/editor-plugin-media": "^18.0.0",
129
- "@atlaskit/editor-plugin-paste": "^17.0.0",
125
+ "@atlaskit/editor-plugin-insert-block": "^17.1.0",
126
+ "@atlaskit/editor-plugin-layout": "^17.2.0",
127
+ "@atlaskit/editor-plugin-list": "^18.1.0",
128
+ "@atlaskit/editor-plugin-media": "^18.1.0",
129
+ "@atlaskit/editor-plugin-paste": "^17.1.0",
130
130
  "@atlaskit/editor-plugin-selection-marker": "^16.0.0",
131
131
  "@atlaskit/editor-plugin-show-diff": "^14.2.0",
132
132
  "@atlaskit/editor-plugin-synced-block": "^14.0.0",
133
- "@atlaskit/editor-plugin-table": "^28.0.0",
134
- "@atlaskit/editor-plugin-tasks-and-decisions": "^19.0.0",
135
- "@atlaskit/editor-plugin-text-color": "^16.0.0",
136
- "@atlaskit/editor-plugin-toolbar-lists-indentation": "^17.0.0",
133
+ "@atlaskit/editor-plugin-table": "^28.1.0",
134
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^19.1.0",
135
+ "@atlaskit/editor-plugin-text-color": "^16.1.0",
136
+ "@atlaskit/editor-plugin-toolbar-lists-indentation": "^17.1.0",
137
137
  "@atlaskit/editor-plugin-track-changes": "^15.0.0",
138
138
  "@atlaskit/editor-synced-block-provider": "^12.1.0",
139
139
  "@atlaskit/editor-synced-block-renderer": "^14.1.0",
140
140
  "@atlaskit/editor-test-helpers": "workspace:^",
141
- "@atlaskit/form": "^17.1.0",
142
- "@atlaskit/link-provider": "^5.4.0",
143
- "@atlaskit/linking-common": "^12.0.0",
144
- "@atlaskit/logo": "^21.5.0",
145
- "@atlaskit/media-core": "^38.1.0",
141
+ "@atlaskit/form": "^17.2.0",
142
+ "@atlaskit/link-provider": "^5.5.0",
143
+ "@atlaskit/linking-common": "^12.1.0",
144
+ "@atlaskit/logo": "^21.6.0",
145
+ "@atlaskit/media-core": "^38.2.0",
146
146
  "@atlaskit/media-integration-test-helpers": "workspace:^",
147
- "@atlaskit/media-picker": "^72.3.0",
148
- "@atlaskit/media-test-helpers": "^42.3.0",
149
- "@atlaskit/media-ui": "^30.14.0",
150
- "@atlaskit/modal-dialog": "^16.5.0",
147
+ "@atlaskit/media-picker": "^72.4.0",
148
+ "@atlaskit/media-test-helpers": "^42.4.0",
149
+ "@atlaskit/media-ui": "^30.15.0",
150
+ "@atlaskit/modal-dialog": "^16.6.0",
151
151
  "@atlaskit/navigation-system": "^10.16.0",
152
- "@atlaskit/popper": "^9.3.0",
153
- "@atlaskit/portal": "^6.3.0",
154
- "@atlaskit/profilecard": "^26.20.0",
155
- "@atlaskit/radio": "^10.1.0",
156
- "@atlaskit/renderer": "^137.1.0",
157
- "@atlaskit/section-message": "^10.1.0",
158
- "@atlaskit/spinner": "^20.3.0",
152
+ "@atlaskit/popper": "^9.4.0",
153
+ "@atlaskit/portal": "^6.4.0",
154
+ "@atlaskit/profilecard": "^26.21.0",
155
+ "@atlaskit/radio": "^10.2.0",
156
+ "@atlaskit/renderer": "^137.2.0",
157
+ "@atlaskit/section-message": "^10.2.0",
158
+ "@atlaskit/spinner": "^20.4.0",
159
159
  "@atlaskit/synchrony-test-helpers": "workspace:^",
160
- "@atlaskit/textarea": "^10.1.0",
161
- "@atlaskit/textfield": "^10.1.0",
162
- "@atlaskit/toggle": "^17.2.0",
160
+ "@atlaskit/textarea": "^10.2.0",
161
+ "@atlaskit/textfield": "^10.2.0",
162
+ "@atlaskit/toggle": "^17.3.0",
163
163
  "@atlaskit/util-data-test": "^19.1.0",
164
164
  "@atlassian/a11y-jest-testing": "^0.17.0",
165
165
  "@atlassian/a11y-playwright-testing": "^0.12.0",
166
166
  "@atlassian/adf-schema-json": "^1.35.0",
167
167
  "@atlassian/editor-rovo-bridge": "^14.0.0",
168
168
  "@atlassian/experiment-test-utils": "^0.2.0",
169
- "@atlassian/feature-flags-test-utils": "^1.2.0",
170
- "@atlassian/search-client": "^2.17.0",
171
- "@atlassian/search-provider": "^17.0.0",
169
+ "@atlassian/feature-flags-test-utils": "^1.3.0",
170
+ "@atlassian/search-client": "^2.18.0",
171
+ "@atlassian/search-provider": "^17.1.0",
172
172
  "@atlassian/structured-docs-types": "workspace:^",
173
173
  "@atlassian/testing-library": "^0.11.0",
174
- "@atlassian/user-profile-card": "^1.31.0",
174
+ "@atlassian/user-profile-card": "^1.32.0",
175
175
  "@emotion/jest": "^11.8.0",
176
176
  "@testing-library/react": "^16.3.0",
177
177
  "@types/diff": "^5.0.2",
package/report.api.md DELETED
@@ -1,805 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-core"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- /// <reference types="node" />
20
-
21
- import { ACTION } from '@atlaskit/editor-common/analytics';
22
- import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
23
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
24
- import type { ActivityProvider } from '@atlaskit/activity-provider';
25
- import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
26
- import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
27
- import type { AnnotationTypes } from '@atlaskit/adf-schema';
28
- import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
29
- import type { CardOptions } from '@atlaskit/editor-common/card';
30
- import { CardProvider } from '@atlaskit/editor-common/provider-factory';
31
- import type { CodeBlockOptions } from '@atlaskit/editor-plugin-code-block';
32
- import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
33
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
34
- import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
35
- import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
36
- import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
37
- import { EditorAppearance } from '@atlaskit/editor-common/types';
38
- import { EditorPlugin } from '@atlaskit/editor-common/types';
39
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
40
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
41
- import { EmojiResource } from '@atlaskit/emoji/resource';
42
- import { EmptyStateHandler } from '@atlaskit/editor-common/types';
43
- import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
44
- import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
45
- import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
46
- import { EventEmitter as EventEmitter_2 } from 'events';
47
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
48
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
49
- import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
50
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
51
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
52
- import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
53
- import { jsx } from '@emotion/react';
54
- import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
55
- import type { LinkingOptions } from '@atlaskit/editor-common/types';
56
- import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
57
- import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
58
- import { MediaOptions } from '@atlaskit/editor-plugin-media/types';
59
- import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
60
- import type { MediaState } from '@atlaskit/editor-plugin-media/types';
61
- import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
62
- import { MentionProvider } from '@atlaskit/mention/resource';
63
- import { MentionResource } from '@atlaskit/mention/resource';
64
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
65
- import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
66
- import type { PanelPluginConfig } from '@atlaskit/editor-plugin-panel';
67
- import { PerformanceTracking } from '@atlaskit/editor-common/types';
68
- import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
69
- import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
70
- import type { PositionType } from '@atlaskit/tooltip/types';
71
- import { PresenceProvider } from '@atlaskit/mention/resource';
72
- import PropTypes from 'prop-types';
73
- import type { Providers } from '@atlaskit/editor-common/provider-factory';
74
- import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
75
- import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
76
- import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
77
- import { default as React_2 } from 'react';
78
- import type { ReactElement } from 'react';
79
- import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
80
- import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
81
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
82
- import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
83
- import { setTextSelection } from '@atlaskit/editor-common/utils';
84
- import type { TaskDecisionProvider } from '@atlaskit/task-decision';
85
- import { TeamMentionResource } from '@atlaskit/mention/team-resource';
86
- import type { TextColorPluginConfig } from '@atlaskit/editor-plugin-text-color';
87
- import type { TextFormattingOptions } from '@atlaskit/editor-common/types';
88
- import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
89
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
90
- import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
91
- import { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
92
- import { UIComponentFactory } from '@atlaskit/editor-common/types';
93
- import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
94
- import { WithIntlProps } from 'react-intl';
95
- import type { WrappedComponentProps } from 'react-intl';
96
-
97
- export { ACTION };
98
-
99
- export { ACTION_SUBJECT };
100
-
101
- export { ACTION_SUBJECT_ID };
102
-
103
- export { AnalyticsEventPayload };
104
-
105
- // @public (undocumented)
106
- type AnnotationCallback = (params: string) => void;
107
-
108
- // @public (undocumented)
109
- type AnnotationComponentProps = {
110
- textSelection?: string;
111
- dom?: HTMLElement;
112
- onClose?: () => void;
113
- };
114
-
115
- // @public (undocumented)
116
- export type AnnotationInfo = {
117
- id: string;
118
- type: AnnotationTypes.INLINE_COMMENT;
119
- };
120
-
121
- // @public (undocumented)
122
- export interface AnnotationProviders {
123
- // (undocumented)
124
- inlineComment: InlineCommentAnnotationProvider;
125
- }
126
-
127
- // @public (undocumented)
128
- export interface AnnotationState<Type, State> {
129
- // (undocumented)
130
- annotationType: Type;
131
- // (undocumented)
132
- id: string;
133
- // (undocumented)
134
- state: State;
135
- }
136
-
137
- // @public (undocumented)
138
- export interface AnnotationTypeProvider<Type, State> {
139
- // (undocumented)
140
- disallowOnWhitespace?: boolean;
141
- // (undocumented)
142
- getState: (annotationIds: string[]) => Promise<AnnotationState<Type, State>[]>;
143
- // (undocumented)
144
- updateSubscriber?: AnnotationUpdateEmitter;
145
- }
146
-
147
- // @public (undocumented)
148
- export class AnnotationUpdateEmitter extends EventEmitter_2 {
149
- // (undocumented)
150
- off(event: string, listener: AnnotationCallback | VisibilityCallback): this;
151
- // (undocumented)
152
- on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
153
- // (undocumented)
154
- on(event: UpdateEvent, listener: (annotationId: string) => void): this;
155
- }
156
-
157
- // @public (undocumented)
158
- type BeforeAndAfterToolbarComponents = {
159
- before: ReactComponents;
160
- after: ReactComponents;
161
- };
162
-
163
- export { CardProvider };
164
-
165
- // @public (undocumented)
166
- export class CollapsedEditor extends React_2.Component<Props, State> {
167
- // (undocumented)
168
- componentDidUpdate(): void;
169
- // (undocumented)
170
- editorComponent?: Editor;
171
- // (undocumented)
172
- functionalEditor?: boolean;
173
- // (undocumented)
174
- handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
175
- // (undocumented)
176
- previouslyExpanded?: boolean;
177
- // (undocumented)
178
- render(): any;
179
- }
180
-
181
- // @public (undocumented)
182
- export type Command = (
183
- state: EditorState,
184
- dispatch?: CommandDispatch,
185
- view?: EditorView,
186
- ) => boolean;
187
-
188
- // @public (undocumented)
189
- export type CommandDispatch = (tr: Transaction) => void;
190
-
191
- // @public (undocumented)
192
- export function ContextPanel(props: Props_4): jsx.JSX.Element;
193
-
194
- // @public (undocumented)
195
- export class Editor extends React_2.Component<EditorProps> {
196
- constructor(props: EditorProps);
197
- // (undocumented)
198
- static defaultProps: EditorProps;
199
- // (undocumented)
200
- render(): jsx.JSX.Element;
201
- }
202
-
203
- // @public (undocumented)
204
- export class EditorActions<T = any> implements EditorActionsOptions<T> {
205
- // (undocumented)
206
- __temporaryFixForConfigPanel(): Promise<void>;
207
- // (undocumented)
208
- appendText(text: string): boolean;
209
- // (undocumented)
210
- blur(): boolean;
211
- // (undocumented)
212
- clear(): boolean;
213
- // (undocumented)
214
- dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
215
- // (undocumented)
216
- focus(): boolean;
217
- // (undocumented)
218
- static from<T>(
219
- view: EditorView,
220
- eventDispatcher: EventDispatcher,
221
- transformer?: Transformer_2<T>,
222
- ): EditorActions<T>;
223
- // (undocumented)
224
- getNodeByFragmentLocalId(id: string): Node_2 | undefined;
225
- // (undocumented)
226
- getNodeByLocalId(id: string): Node_2 | undefined;
227
- getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
228
- getSelectedNode(): Node_2 | undefined;
229
- // (undocumented)
230
- getValue(): Promise<T | JSONDocNode | undefined>;
231
- // (undocumented)
232
- isDocumentEmpty(): boolean;
233
- // (undocumented)
234
- _privateGetEditorView(): EditorView | undefined;
235
- // (undocumented)
236
- _privateGetEventDispatcher(): EventDispatcher | undefined;
237
- // (undocumented)
238
- _privateRegisterEditor(
239
- editorView: EditorView,
240
- eventDispatcher: EventDispatcher,
241
- contentTransformer?: Transformer_2<T>,
242
- getFeatureFlags?: () => FeatureFlags,
243
- ): void;
244
- // (undocumented)
245
- _privateSubscribe(cb: ContextUpdateHandler): void;
246
- // (undocumented)
247
- _privateUnregisterEditor(): void;
248
- // (undocumented)
249
- _privateUnsubscribe(cb: ContextUpdateHandler): void;
250
- // (undocumented)
251
- replaceDocument(
252
- rawValue: any,
253
- shouldScrollToBottom?: boolean,
254
- shouldAddToHistory?: boolean,
255
- ): boolean;
256
- // (undocumented)
257
- replaceSelection(
258
- rawValue: Array<ReplaceRawValue> | ReplaceRawValue,
259
- tryToReplace?: boolean,
260
- ): boolean;
261
- }
262
-
263
- // @public (undocumented)
264
- interface EditorBaseProps {
265
- // (undocumented)
266
- appearance?: EditorAppearance;
267
- // (undocumented)
268
- assistiveLabel?: string;
269
- // (undocumented)
270
- contentComponents?: ReactComponents;
271
- // (undocumented)
272
- contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
273
- // (undocumented)
274
- contextPanel?: ReactComponents;
275
- // (undocumented)
276
- defaultValue?: Node_2 | Object | string;
277
- // (undocumented)
278
- disabled?: boolean;
279
- // (undocumented)
280
- editorActions?: EditorActions;
281
- // (undocumented)
282
- errorReporterHandler?: ErrorReportingHandler;
283
- // (undocumented)
284
- extensionProviders?: ExtensionProvidersProp;
285
- featureFlags?: {
286
- [featureFlag: string]: boolean | string;
287
- };
288
- // @deprecated
289
- inputSamplingLimit?: number;
290
- // (undocumented)
291
- maxHeight?: number;
292
- // (undocumented)
293
- minHeight?: number;
294
- // (undocumented)
295
- onCancel?: (editorView: EditorView) => void;
296
- // (undocumented)
297
- onChange?: EditorOnChangeHandler;
298
- // (undocumented)
299
- onDestroy?: () => void;
300
- // (undocumented)
301
- onEditorReady?: (editorActions: EditorActions) => void;
302
- // (undocumented)
303
- persistScrollGutter?: boolean;
304
- // (undocumented)
305
- placeholder?: string;
306
- // (undocumented)
307
- placeholderBracketHint?: string;
308
- // (undocumented)
309
- popupsBoundariesElement?: HTMLElement;
310
- // (undocumented)
311
- popupsMountPoint?: HTMLElement;
312
- // (undocumented)
313
- popupsScrollableElement?: HTMLElement;
314
- // (undocumented)
315
- primaryToolbarIconBefore?: ReactElement;
316
- // (undocumented)
317
- quickInsert?: QuickInsertOptions;
318
- // (undocumented)
319
- secondaryToolbarComponents?: ReactComponents;
320
- // (undocumented)
321
- shouldFocus?: boolean;
322
- trackValidTransactions?:
323
- | boolean
324
- | {
325
- samplingRate: number;
326
- };
327
- // (undocumented)
328
- UNSAFE_useAnalyticsContext?: boolean;
329
- useStickyToolbar?: UseStickyToolbarType;
330
- }
331
-
332
- // @public (undocumented)
333
- export class EditorContext extends React_2.Component<EditorContextProps, {}> {
334
- constructor(props: EditorContextProps);
335
- // (undocumented)
336
- static childContextTypes: {
337
- editorActions: PropTypes.Requireable<object>;
338
- };
339
- // (undocumented)
340
- getChildContext(): {
341
- editorActions: EditorActions<any>;
342
- };
343
- // (undocumented)
344
- render(): JSX.Element;
345
- }
346
-
347
- // @public (undocumented)
348
- type EditorContextProps = {
349
- editorActions?: EditorActions;
350
- };
351
-
352
- // @public (undocumented)
353
- export interface EditorInstance {
354
- // (undocumented)
355
- contentComponents: UIComponentFactory[];
356
- // (undocumented)
357
- contentTransformer?: Transformer<string>;
358
- // (undocumented)
359
- editorView: EditorView;
360
- // (undocumented)
361
- eventDispatcher: EventDispatcher;
362
- // (undocumented)
363
- insertMenuItems?: MenuItem[];
364
- // (undocumented)
365
- onEditorViewStateUpdatedCallbacks: {
366
- pluginName: string;
367
- callback: OnEditorViewStateUpdated;
368
- }[];
369
- // (undocumented)
370
- primaryToolbarComponents: ToolbarUIComponentFactory[];
371
- // (undocumented)
372
- secondaryToolbarComponents: UIComponentFactory[];
373
- }
374
-
375
- // @public (undocumented)
376
- type EditorOnChangeHandler = (
377
- editorView: EditorView,
378
- meta: {
379
- source: 'local' | 'remote';
380
- },
381
- ) => void;
382
-
383
- export { EditorPlugin };
384
-
385
- // @public (undocumented)
386
- interface EditorPluginFeatureProps {
387
- // (undocumented)
388
- allowAnalyticsGASV3?: boolean;
389
- // (undocumented)
390
- allowBlockType?: BlockTypePluginOptions['allowBlockType'];
391
- allowBorderMark?: boolean;
392
- // (undocumented)
393
- allowBreakout?: boolean;
394
- // (undocumented)
395
- allowConfluenceInlineComment?: boolean;
396
- // (undocumented)
397
- allowDate?: DatePluginConfig | boolean;
398
- // (undocumented)
399
- allowExpand?:
400
- | boolean
401
- | {
402
- allowInsertion?: boolean;
403
- allowInteractiveExpand?: boolean;
404
- };
405
- // (undocumented)
406
- allowExtension?: ExtensionConfig | boolean;
407
- // (undocumented)
408
- allowFindReplace?: FindReplaceOptions | boolean;
409
- allowFragmentMark?: boolean;
410
- // (undocumented)
411
- allowHelpDialog?: boolean;
412
- // (undocumented)
413
- allowIndentation?: boolean;
414
- // (undocumented)
415
- allowJiraIssue?: boolean;
416
- // (undocumented)
417
- allowLayouts?: LayoutPluginOptions | boolean;
418
- // (undocumented)
419
- allowNestedTasks?: boolean;
420
- allowNewInsertionBehaviour?: boolean;
421
- // (undocumented)
422
- allowPanel?: PanelPluginConfig | boolean;
423
- // (undocumented)
424
- allowRule?: boolean;
425
- // (undocumented)
426
- allowStatus?:
427
- | boolean
428
- | {
429
- menuDisabled: boolean;
430
- };
431
- // (undocumented)
432
- allowTables?: PluginConfig | boolean;
433
- // (undocumented)
434
- allowTasksAndDecisions?: boolean;
435
- // (undocumented)
436
- allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
437
- // (undocumented)
438
- allowTextAlignment?: boolean;
439
- // (undocumented)
440
- allowTextColor?: TextColorPluginConfig | boolean;
441
- autoScrollIntoView?: boolean;
442
- // (undocumented)
443
- codeBlock?: CodeBlockOptions;
444
- // (undocumented)
445
- elementBrowser?: {
446
- showModal?: boolean;
447
- replacePlusMenu?: boolean;
448
- helpUrl?: string;
449
- emptyStateHandler?: EmptyStateHandler;
450
- };
451
- // (undocumented)
452
- extensionHandlers?: ExtensionHandlers;
453
- // (undocumented)
454
- feedbackInfo?: FeedbackInfo;
455
- // (undocumented)
456
- insertMenuItems?: MenuItem[];
457
- // (undocumented)
458
- maxContentSize?: number;
459
- // (undocumented)
460
- mention?: MentionPluginConfig;
461
- // @deprecated
462
- mentionInsertDisplayName?: boolean;
463
- // (undocumented)
464
- saveOnEnter?: boolean;
465
- // (undocumented)
466
- showIndentationButtons?: boolean;
467
- // @deprecated (undocumented)
468
- smartLinks?: CardOptions;
469
- // (undocumented)
470
- textFormatting?: TextFormattingOptions;
471
- // @deprecated
472
- UNSAFE_allowBorderMark?: boolean;
473
- // @deprecated (undocumented)
474
- UNSAFE_cards?: CardOptions;
475
- // (undocumented)
476
- uploadErrorHandler?: (state: MediaState) => void;
477
- // (undocumented)
478
- waitForMediaUpload?: boolean;
479
- }
480
-
481
- // @public (undocumented)
482
- type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
483
-
484
- // @public (undocumented)
485
- export interface EditorProps
486
- extends EditorBaseProps,
487
- EditorPluginFeatureProps,
488
- EditorSharedPropsWithPlugins,
489
- EditorProviderProps {
490
- // @deprecated (undocumented)
491
- dangerouslyAppendPlugins?: {
492
- __plugins: EditorPlugin[];
493
- };
494
- }
495
-
496
- // @public (undocumented)
497
- interface EditorProviderProps {
498
- // (undocumented)
499
- activityProvider?: Promise<ActivityProvider>;
500
- // (undocumented)
501
- annotationProviders?: AnnotationProviders;
502
- // (undocumented)
503
- autoformattingProvider?: Providers['autoformattingProvider'];
504
- // (undocumented)
505
- collabEditProvider?: Providers['collabEditProvider'];
506
- // (undocumented)
507
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
508
- // (undocumented)
509
- emojiProvider?: Providers['emojiProvider'];
510
- // (undocumented)
511
- legacyImageUploadProvider?: Providers['imageUploadProvider'];
512
- // (undocumented)
513
- macroProvider?: Providers['macroProvider'];
514
- // (undocumented)
515
- mentionProvider?: Promise<MentionProvider>;
516
- // (undocumented)
517
- presenceProvider?: Promise<any>;
518
- // (undocumented)
519
- searchProvider?: Promise<SearchProvider>;
520
- // (undocumented)
521
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
522
- }
523
-
524
- // @public (undocumented)
525
- interface EditorSharedPropsWithPlugins {
526
- // (undocumented)
527
- allowUndoRedoButtons?: boolean;
528
- // (undocumented)
529
- collabEdit?: CollabEditOptions;
530
- // (undocumented)
531
- hideAvatarGroup?: boolean;
532
- linking?: LinkingOptions;
533
- // (undocumented)
534
- media?: MediaOptions;
535
- // (undocumented)
536
- onSave?: (editorView: EditorView) => void;
537
- performanceTracking?: PerformanceTracking;
538
- // (undocumented)
539
- primaryToolbarComponents?: PrimaryToolbarComponents;
540
- // (undocumented)
541
- sanitizePrivateContent?: boolean;
542
- }
543
-
544
- export { EmojiResource };
545
-
546
- export { EVENT_TYPE };
547
-
548
- // @public (undocumented)
549
- interface ExtensionConfig {
550
- // (undocumented)
551
- allowAutoSave?: boolean;
552
- // (undocumented)
553
- allowBreakout?: boolean;
554
- // (undocumented)
555
- allowExtendFloatingToolbars?: boolean;
556
- }
557
-
558
- // @public (undocumented)
559
- type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
560
-
561
- // @public (undocumented)
562
- type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
563
-
564
- // @public (undocumented)
565
- type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
566
-
567
- export { ExtensionType };
568
-
569
- // @public (undocumented)
570
- type FeedbackInfo = {
571
- product?: string;
572
- packageVersion?: string;
573
- packageName?: string;
574
- labels?: Array<string>;
575
- sessionId?: string;
576
- contentId?: string;
577
- tabId?: string;
578
- };
579
-
580
- // @public (undocumented)
581
- type FindReplaceOptions = {
582
- allowMatchCase?: boolean;
583
- };
584
-
585
- // @public (undocumented)
586
- export function getNodesCount(node: Node_2): Record<string, number>;
587
-
588
- // @public (undocumented)
589
- export type InlineCommentAnnotationProvider = AnnotationTypeProvider<
590
- AnnotationTypes.INLINE_COMMENT,
591
- InlineCommentState
592
- > & {
593
- createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
594
- viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
595
- isToolbarAbove?: boolean;
596
- };
597
-
598
- // @public (undocumented)
599
- export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
600
- onCreate: (id: string) => void;
601
- };
602
-
603
- // @public (undocumented)
604
- export type InlineCommentState = {
605
- resolved: boolean;
606
- };
607
-
608
- // @public (undocumented)
609
- export type InlineCommentViewComponentProps = AnnotationComponentProps & {
610
- annotations: Array<AnnotationInfo>;
611
- onResolve: (id: string) => void;
612
- onDelete?: (id: string) => void;
613
- annotationsList?: string[];
614
- };
615
-
616
- export { INPUT_METHOD };
617
-
618
- export { MacroAttributes };
619
-
620
- export { MacroProvider };
621
-
622
- // @public (undocumented)
623
- export const measurements: {
624
- EDITOR_MOUNTED: string;
625
- PROSEMIRROR_RENDERED: string;
626
- PROSEMIRROR_CONTENT_RENDERED: string;
627
- ON_EDITOR_READY_CALLBACK: string;
628
- PASTE: string;
629
- };
630
-
631
- export { MediaOptions };
632
-
633
- export { MediaProvider_2 as MediaProvider };
634
-
635
- export { MentionProvider };
636
-
637
- export { MentionResource };
638
-
639
- // @public (undocumented)
640
- const name_2: string;
641
- export { name_2 as name };
642
-
643
- // @public (undocumented)
644
- type OnEditorViewStateUpdated = (props: {
645
- readonly originalTransaction: Readonly<Transaction>;
646
- readonly transactions: ReadonlyArray<Transaction>;
647
- readonly oldEditorState: Readonly<EditorState>;
648
- readonly newEditorState: Readonly<EditorState>;
649
- }) => void;
650
-
651
- export { PortalProvider };
652
-
653
- export { PortalProviderAPI };
654
-
655
- export { PortalRenderer };
656
-
657
- export { PresenceProvider };
658
-
659
- // @public (undocumented)
660
- type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
661
-
662
- // @public (undocumented)
663
- interface Props {
664
- // (undocumented)
665
- children?: any;
666
- // (undocumented)
667
- isExpanded?: boolean;
668
- // (undocumented)
669
- onExpand?: () => void;
670
- // (undocumented)
671
- onFocus?: (e: React_2.FocusEvent<HTMLInputElement>) => void;
672
- // (undocumented)
673
- placeholder?: string;
674
- }
675
-
676
- // @public (undocumented)
677
- interface Props_2 {
678
- // (undocumented)
679
- title?: string;
680
- // (undocumented)
681
- titlePosition?: PositionType;
682
- }
683
-
684
- // @public (undocumented)
685
- interface Props_3 {
686
- // @deprecated (undocumented)
687
- labels?: string[];
688
- // @deprecated (undocumented)
689
- packageName?: string;
690
- // @deprecated (undocumented)
691
- packageVersion?: string;
692
- // (undocumented)
693
- popupsBoundariesElement?: HTMLElement;
694
- // (undocumented)
695
- popupsMountPoint?: HTMLElement;
696
- // (undocumented)
697
- popupsScrollableElement?: HTMLElement;
698
- // (undocumented)
699
- product?: EditorProduct;
700
- }
701
-
702
- // @public (undocumented)
703
- type Props_4 = {
704
- visible: boolean;
705
- children?: React_2.ReactElement;
706
- };
707
-
708
- export { QuickInsertItem };
709
-
710
- export { QuickInsertProvider };
711
-
712
- // @public (undocumented)
713
- type ReactComponents = ReactElement<any> | ReactElement<any>[];
714
-
715
- export { setTextSelection };
716
-
717
- // @public (undocumented)
718
- interface State {}
719
-
720
- export { TeamMentionResource };
721
-
722
- // @public (undocumented)
723
- export function ToolbarFeedback(props: Props_3): jsx.JSX.Element;
724
-
725
- // @public (undocumented)
726
- export const ToolbarHelp: React_2.FC<WithIntlProps<Props_2 & WrappedComponentProps<'intl'>>> & {
727
- WrappedComponent: React_2.ComponentType<Props_2 & WrappedComponentProps<'intl'>>;
728
- };
729
-
730
- export { TypeAheadItem };
731
-
732
- // @public (undocumented)
733
- export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'setselectedannotation' | 'unresolve';
734
-
735
- // @public (undocumented)
736
- export const version: string;
737
-
738
- // @public (undocumented)
739
- type VisibilityCallback = (params: boolean) => void;
740
-
741
- // @public (undocumented)
742
- type VisibilityEvent = 'setvisibility';
743
-
744
- // @public (undocumented)
745
- export class WithEditorActions extends React_2.Component<WithEditorActionsProps, any> {
746
- // (undocumented)
747
- componentDidMount(): void;
748
- // (undocumented)
749
- componentWillUnmount(): void;
750
- // (undocumented)
751
- context: {
752
- editorActions: EditorActions;
753
- };
754
- // (undocumented)
755
- static contextTypes: {
756
- editorActions: PropTypes.Validator<object>;
757
- };
758
- // (undocumented)
759
- render(): React_2.ReactElement<any, React_2.JSXElementConstructor<any> | string> | null;
760
- }
761
-
762
- // @public (undocumented)
763
- interface WithEditorActionsProps {
764
- // (undocumented)
765
- render(actions: EditorActions): React_2.ReactElement<any> | null;
766
- }
767
-
768
- // @public (undocumented)
769
- export class WithHelpTrigger extends React_2.Component<WithHelpTriggerProps, any> {
770
- // (undocumented)
771
- static contextTypes: {
772
- editorActions: PropTypes.Validator<object>;
773
- };
774
- // (undocumented)
775
- openHelp: () => void;
776
- // (undocumented)
777
- render(): React_2.ReactNode;
778
- }
779
-
780
- // @public (undocumented)
781
- interface WithHelpTriggerProps {
782
- // (undocumented)
783
- render: (openHelp: () => void) => React_2.ReactNode;
784
- }
785
-
786
- // (No @packageDocumentation comment for this package)
787
- ```
788
-
789
- <!--SECTION END: Main Entry Types-->
790
-
791
- ### Peer Dependencies
792
-
793
- <!--SECTION START: Peer Dependencies-->
794
-
795
- ```json
796
- {
797
- "@atlaskit/link-provider": "^1.6.2",
798
- "@atlaskit/media-core": "^34.1.2",
799
- "react": "^16.8.0",
800
- "react-dom": "^16.8.0",
801
- "react-intl": "npm:react-intl@^5.18.1"
802
- }
803
- ```
804
-
805
- <!--SECTION END: Peer Dependencies-->