@atlaskit/editor-common 102.2.1 → 102.3.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 +25 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +26 -0
- package/dist/cjs/extensions/module-helpers.js +31 -14
- package/dist/cjs/keymaps/index.js +3 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/index.js +13 -1
- package/dist/cjs/ui/Mention/mention-with-providers.js +105 -2
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +27 -1
- package/dist/es2019/extensions/module-helpers.js +24 -5
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/index.js +14 -2
- package/dist/es2019/ui/Mention/mention-with-providers.js +83 -2
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +27 -1
- package/dist/esm/extensions/module-helpers.js +31 -14
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/index.js +14 -2
- package/dist/esm/ui/Mention/mention-with-providers.js +105 -2
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/selection-events.d.ts +5 -1
- package/dist/types/extensions/module-helpers.d.ts +2 -2
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +3 -1
- package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/types/floating-toolbar.d.ts +2 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Mention/mention-with-providers.d.ts +8 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +5 -1
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +2 -2
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +3 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +2 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +8 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/package.json +9 -3
|
@@ -89,6 +89,7 @@ export declare const toggleTaskItemCheckbox: Keymap;
|
|
|
89
89
|
export declare const selectRow: Keymap[];
|
|
90
90
|
export declare const selectColumn: Keymap[];
|
|
91
91
|
export declare const selectTable: Keymap;
|
|
92
|
+
export declare const selectNode: Keymap;
|
|
92
93
|
export declare const increaseMediaSize: Keymap;
|
|
93
94
|
export declare const decreaseMediaSize: Keymap;
|
|
94
95
|
export declare const activateVideoControls: Keymap;
|
|
@@ -240,6 +240,7 @@ export type FloatingToolbarSeparator = {
|
|
|
240
240
|
fullHeight?: boolean;
|
|
241
241
|
supportsViewMode?: boolean;
|
|
242
242
|
};
|
|
243
|
+
export type ExtensionDropdownOptions = () => DropdownOptions<Function>;
|
|
243
244
|
export type FloatingToolbarDropdown<T extends Object> = {
|
|
244
245
|
testId?: string;
|
|
245
246
|
id?: string;
|
|
@@ -250,7 +251,7 @@ export type FloatingToolbarDropdown<T extends Object> = {
|
|
|
250
251
|
* Places an icon before the title as a representation
|
|
251
252
|
*/
|
|
252
253
|
iconBefore?: Icon;
|
|
253
|
-
options: DropdownOptions<T
|
|
254
|
+
options: DropdownOptions<T> | ExtensionDropdownOptions;
|
|
254
255
|
hidden?: boolean;
|
|
255
256
|
hideExpandIcon?: boolean;
|
|
256
257
|
disabled?: boolean;
|
|
@@ -13,7 +13,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
|
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
14
14
|
export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
|
|
15
15
|
export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
|
|
16
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdownOptions, } from './floating-toolbar';
|
|
16
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdownOptions, } from './floating-toolbar';
|
|
17
17
|
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
18
18
|
export type { ContextPanelHandler } from './context-panel';
|
|
19
19
|
export type { EditorAppearance } from './editor-appearance';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
3
3
|
import type { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
4
|
import type { MentionEventHandlers } from '../EventHandlers';
|
|
@@ -15,3 +15,10 @@ export interface State {
|
|
|
15
15
|
profilecardProvider: ProfilecardProvider | null;
|
|
16
16
|
}
|
|
17
17
|
export declare const MentionWithProviders: ({ accessLevel, eventHandlers, id, mentionProvider, profilecardProvider: profilecardProviderResolver, text, localId, }: Props) => React.JSX.Element;
|
|
18
|
+
export declare class MentionWithProvidersOld extends PureComponent<Props, State> {
|
|
19
|
+
state: State;
|
|
20
|
+
UNSAFE_componentWillMount(): void;
|
|
21
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
22
|
+
private updateProfilecardProvider;
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
|
+
}
|
|
@@ -14,7 +14,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
14
14
|
colorPalette: PaletteColor[];
|
|
15
15
|
placement: string;
|
|
16
16
|
cols?: number | undefined;
|
|
17
|
-
alignX?: "
|
|
17
|
+
alignX?: "end" | "left" | "right" | "center" | undefined;
|
|
18
18
|
size?: {
|
|
19
19
|
width: string;
|
|
20
20
|
height: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.
|
|
3
|
+
"version": "102.3.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/"
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
"@atlaskit/spinner": "^18.0.0",
|
|
161
161
|
"@atlaskit/task-decision": "^19.0.0",
|
|
162
162
|
"@atlaskit/textfield": "^8.0.0",
|
|
163
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
164
|
-
"@atlaskit/tokens": "^4.
|
|
163
|
+
"@atlaskit/tmp-editor-statsig": "^3.5.0",
|
|
164
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
165
165
|
"@atlaskit/tooltip": "^20.0.0",
|
|
166
166
|
"@atlaskit/width-detector": "^5.0.0",
|
|
167
167
|
"@babel/runtime": "^7.0.0",
|
|
@@ -253,6 +253,9 @@
|
|
|
253
253
|
"editor_inline_comments_paste_insert_nodes": {
|
|
254
254
|
"type": "boolean"
|
|
255
255
|
},
|
|
256
|
+
"platform_editor_react18_mention_with_provider_fix": {
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
},
|
|
256
259
|
"platform_editor_react18_phase2_v2": {
|
|
257
260
|
"type": "boolean"
|
|
258
261
|
},
|
|
@@ -324,6 +327,9 @@
|
|
|
324
327
|
},
|
|
325
328
|
"platform_editor_elements_dnd_multi_select_patch_1": {
|
|
326
329
|
"type": "boolean"
|
|
330
|
+
},
|
|
331
|
+
"forge_macro_autoconvert": {
|
|
332
|
+
"type": "boolean"
|
|
327
333
|
}
|
|
328
334
|
}
|
|
329
335
|
}
|