@atlaskit/editor-core 172.3.2 → 173.0.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 +45 -0
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/plugins/base/index.js +8 -0
- package/dist/cjs/plugins/base/pm-plugins/composition.js +60 -0
- package/dist/cjs/plugins/breakout/index.js +5 -4
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
- package/dist/cjs/plugins/card/pm-plugins/doc.js +8 -1
- package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +2 -36
- package/dist/cjs/plugins/collab-edit/plugin-state.js +16 -9
- package/dist/cjs/plugins/collab-edit/utils.js +16 -2
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +24 -22
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +20 -15
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +8 -5
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +3 -3
- package/dist/cjs/plugins/paste/actions.js +13 -0
- package/dist/cjs/plugins/paste/commands.js +44 -0
- package/dist/cjs/plugins/paste/handlers.js +48 -7
- package/dist/cjs/plugins/paste/index.js +3 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +34 -9
- package/dist/cjs/plugins/paste/pm-plugins/plugin-factory.js +62 -0
- package/dist/cjs/plugins/paste/reducer.js +47 -0
- package/dist/cjs/plugins/paste/types.js +5 -0
- package/dist/cjs/plugins/placeholder/index.js +3 -1
- package/dist/cjs/plugins/placeholder-text/index.js +9 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +4 -1
- package/dist/cjs/plugins/table/commands-with-analytics.js +59 -52
- package/dist/cjs/plugins/table/index.js +53 -36
- package/dist/cjs/plugins/table/toolbar.js +136 -20
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +1 -16
- package/dist/cjs/plugins/type-ahead/constants.js +3 -1
- package/dist/cjs/plugins/type-ahead/messages.js +16 -1
- package/dist/cjs/plugins/type-ahead/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +143 -0
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +59 -11
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +156 -31
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +55 -29
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +3 -3
- package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -2
- package/dist/cjs/plugins/type-ahead/utils.js +1 -1
- package/dist/cjs/ui/MediaAndEmbedsToolbar/index.js +8 -0
- package/dist/cjs/ui/PortalProvider/PortalProviderThemesProvider.js +2 -6
- package/dist/cjs/ui/PortalProvider/index.js +26 -32
- package/dist/cjs/utils/index.js +8 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/plugins/base/index.js +5 -0
- package/dist/es2019/plugins/base/pm-plugins/composition.js +45 -0
- package/dist/es2019/plugins/breakout/index.js +5 -4
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +1 -3
- package/dist/es2019/plugins/card/pm-plugins/doc.js +10 -1
- package/dist/es2019/plugins/code-block/pm-plugins/ide-ux.js +3 -40
- package/dist/es2019/plugins/collab-edit/plugin-state.js +9 -3
- package/dist/es2019/plugins/collab-edit/utils.js +17 -3
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +24 -22
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +15 -7
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +9 -5
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +3 -3
- package/dist/es2019/plugins/paste/actions.js +6 -0
- package/dist/es2019/plugins/paste/commands.js +27 -0
- package/dist/es2019/plugins/paste/handlers.js +50 -8
- package/dist/es2019/plugins/paste/index.js +3 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +29 -6
- package/dist/es2019/plugins/paste/pm-plugins/plugin-factory.js +33 -0
- package/dist/es2019/plugins/paste/reducer.js +24 -0
- package/dist/es2019/plugins/paste/types.js +1 -0
- package/dist/es2019/plugins/placeholder/index.js +2 -1
- package/dist/es2019/plugins/placeholder-text/index.js +13 -3
- package/dist/es2019/plugins/status/ui/statusPicker.js +5 -1
- package/dist/es2019/plugins/table/commands-with-analytics.js +6 -3
- package/dist/es2019/plugins/table/index.js +22 -4
- package/dist/es2019/plugins/table/toolbar.js +118 -14
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +0 -9
- package/dist/es2019/plugins/type-ahead/constants.js +1 -0
- package/dist/es2019/plugins/type-ahead/messages.js +16 -1
- package/dist/es2019/plugins/type-ahead/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/es2019/plugins/type-ahead/ui/AssistiveText.js +95 -0
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +49 -12
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +143 -29
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +64 -31
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +3 -3
- package/dist/es2019/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -2
- package/dist/es2019/plugins/type-ahead/utils.js +1 -1
- package/dist/es2019/ui/MediaAndEmbedsToolbar/index.js +17 -0
- package/dist/es2019/ui/PortalProvider/PortalProviderThemesProvider.js +2 -5
- package/dist/es2019/ui/PortalProvider/index.js +5 -8
- package/dist/es2019/utils/index.js +6 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/plugins/base/index.js +7 -0
- package/dist/esm/plugins/base/pm-plugins/composition.js +45 -0
- package/dist/esm/plugins/breakout/index.js +5 -4
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -3
- package/dist/esm/plugins/card/pm-plugins/doc.js +8 -1
- package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +3 -37
- package/dist/esm/plugins/collab-edit/plugin-state.js +9 -3
- package/dist/esm/plugins/collab-edit/utils.js +17 -3
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +24 -22
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +20 -15
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +8 -5
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +3 -3
- package/dist/esm/plugins/paste/actions.js +6 -0
- package/dist/esm/plugins/paste/commands.js +31 -0
- package/dist/esm/plugins/paste/handlers.js +46 -8
- package/dist/esm/plugins/paste/index.js +3 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +27 -6
- package/dist/esm/plugins/paste/pm-plugins/plugin-factory.js +46 -0
- package/dist/esm/plugins/paste/reducer.js +34 -0
- package/dist/esm/plugins/paste/types.js +1 -0
- package/dist/esm/plugins/placeholder/index.js +2 -1
- package/dist/esm/plugins/placeholder-text/index.js +9 -3
- package/dist/esm/plugins/status/ui/statusPicker.js +4 -1
- package/dist/esm/plugins/table/commands-with-analytics.js +56 -49
- package/dist/esm/plugins/table/index.js +54 -37
- package/dist/esm/plugins/table/toolbar.js +124 -15
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
- package/dist/esm/plugins/tasks-and-decisions/commands.js +0 -12
- package/dist/esm/plugins/type-ahead/constants.js +1 -0
- package/dist/esm/plugins/type-ahead/messages.js +16 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/esm/plugins/type-ahead/ui/AssistiveText.js +129 -0
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +56 -12
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +151 -32
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +54 -31
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +3 -3
- package/dist/esm/plugins/type-ahead/ui/WrapperTypeAhead.js +5 -2
- package/dist/esm/plugins/type-ahead/utils.js +1 -1
- package/dist/esm/ui/MediaAndEmbedsToolbar/index.js +7 -0
- package/dist/esm/ui/PortalProvider/PortalProviderThemesProvider.js +2 -5
- package/dist/esm/ui/PortalProvider/index.js +26 -35
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/composition.d.ts +8 -0
- package/dist/types/plugins/code-block/pm-plugins/ide-ux.d.ts +1 -4
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +2 -0
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -0
- package/dist/types/plugins/paste/actions.d.ts +15 -0
- package/dist/types/plugins/paste/commands.d.ts +16 -0
- package/dist/types/plugins/paste/handlers.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +3 -3
- package/dist/types/plugins/paste/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types/plugins/paste/reducer.d.ts +3 -0
- package/dist/types/plugins/paste/types.d.ts +6 -0
- package/dist/types/plugins/table/commands-with-analytics.d.ts +5 -5
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +0 -2
- package/dist/types/plugins/type-ahead/constants.d.ts +1 -0
- package/dist/types/plugins/type-ahead/messages.d.ts +15 -0
- package/dist/types/plugins/type-ahead/ui/AssistiveText.d.ts +33 -0
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +3 -0
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +6 -3
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +2 -2
- package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types-ts4.0/index.d.ts +1 -1
- package/dist/types-ts4.0/plugins/base/pm-plugins/composition.d.ts +8 -0
- package/dist/types-ts4.0/plugins/code-block/pm-plugins/ide-ux.d.ts +1 -4
- package/dist/types-ts4.0/plugins/floating-toolbar/ui/Dropdown.d.ts +2 -0
- package/dist/types-ts4.0/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -0
- package/dist/types-ts4.0/plugins/paste/actions.d.ts +15 -0
- package/dist/types-ts4.0/plugins/paste/commands.d.ts +16 -0
- package/dist/types-ts4.0/plugins/paste/handlers.d.ts +1 -1
- package/dist/types-ts4.0/plugins/paste/pm-plugins/main.d.ts +3 -3
- package/dist/types-ts4.0/plugins/paste/pm-plugins/plugin-factory.d.ts +3 -0
- package/dist/types-ts4.0/plugins/paste/reducer.d.ts +3 -0
- package/dist/types-ts4.0/plugins/paste/types.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +5 -5
- package/dist/types-ts4.0/plugins/tasks-and-decisions/commands.d.ts +0 -2
- package/dist/types-ts4.0/plugins/type-ahead/constants.d.ts +1 -0
- package/dist/types-ts4.0/plugins/type-ahead/messages.d.ts +15 -0
- package/dist/types-ts4.0/plugins/type-ahead/ui/AssistiveText.d.ts +33 -0
- package/dist/types-ts4.0/plugins/type-ahead/ui/InputQuery.d.ts +3 -0
- package/dist/types-ts4.0/plugins/type-ahead/ui/TypeAheadList.d.ts +6 -3
- package/dist/types-ts4.0/plugins/type-ahead/ui/TypeAheadListItem.d.ts +2 -2
- package/dist/types-ts4.0/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -1
- package/dist/types-ts4.0/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.0/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.0/utils/index.d.ts +1 -0
- package/package.json +30 -31
- package/report.api.md +161 -49
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-core"
|
|
1
|
+
## API Report File for "@atlaskit/editor-core".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
````ts
|
|
6
8
|
/// <reference types="node" />
|
|
@@ -36,6 +38,7 @@ import { Fragment } from 'prosemirror-model';
|
|
|
36
38
|
import { IntlShape } from 'react-intl-next';
|
|
37
39
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
38
40
|
import { jsx } from '@emotion/react';
|
|
41
|
+
import { LinkPickerProps } from '@atlaskit/link-picker';
|
|
39
42
|
import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
40
43
|
import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
41
44
|
import { Mapping } from 'prosemirror-transform';
|
|
@@ -365,6 +368,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
365
368
|
EDIT_LINK = 'editLink',
|
|
366
369
|
UNLINK = 'unlink',
|
|
367
370
|
OPEN_LINK = 'openLink',
|
|
371
|
+
GOTO_SMART_LINK_SETTINGS = 'goToSmartLinkSettings',
|
|
368
372
|
EMBEDS = 'embeds',
|
|
369
373
|
HYPERLINK = 'hyperlink',
|
|
370
374
|
}
|
|
@@ -452,6 +456,7 @@ export declare type AnalyticsEventPayload<T = void> =
|
|
|
452
456
|
| TypeAheadPayload
|
|
453
457
|
| UnlinkToolbarAEP
|
|
454
458
|
| EditLinkToolbarAEP
|
|
459
|
+
| OpenSettingsToolbarAEP
|
|
455
460
|
| CustomPanelEventPayload
|
|
456
461
|
| FeatureExposureAEP
|
|
457
462
|
| NewCollabSyncUpErrorAEP
|
|
@@ -595,6 +600,7 @@ export declare class BaseReactEditorView<T = {}> extends React_2.Component<
|
|
|
595
600
|
transactionTracker: TransactionTracker;
|
|
596
601
|
validTransactionCount: number;
|
|
597
602
|
experienceStore?: ExperienceStore;
|
|
603
|
+
editorRef: React_2.RefObject<HTMLDivElement>;
|
|
598
604
|
static contextTypes: {
|
|
599
605
|
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<
|
|
600
606
|
(...args: any[]) => any
|
|
@@ -740,6 +746,8 @@ declare type BrowserFreezetracking = {
|
|
|
740
746
|
severityDegradedThreshold?: number;
|
|
741
747
|
};
|
|
742
748
|
|
|
749
|
+
declare type Browsers = typeof SupportedBrowsers[number];
|
|
750
|
+
|
|
743
751
|
declare type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<
|
|
744
752
|
ACTION.CLICKED,
|
|
745
753
|
ACTION_SUBJECT.BUTTON,
|
|
@@ -1095,6 +1103,8 @@ declare type CopyAEP = TrackAEP<
|
|
|
1095
1103
|
undefined,
|
|
1096
1104
|
{
|
|
1097
1105
|
content: string[];
|
|
1106
|
+
inputMethod?: string;
|
|
1107
|
+
nodeType?: string;
|
|
1098
1108
|
},
|
|
1099
1109
|
undefined
|
|
1100
1110
|
>;
|
|
@@ -1322,6 +1332,7 @@ declare type DefaultPresetPluginOptions = {
|
|
|
1322
1332
|
codeBlock?: CodeBlockOptions;
|
|
1323
1333
|
selection?: SelectionPluginOptions;
|
|
1324
1334
|
cardOptions?: CardOptions;
|
|
1335
|
+
hyperlinkOptions?: HyperlinkPluginOptions;
|
|
1325
1336
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
1326
1337
|
typeAhead?: TypeAheadPluginOptions;
|
|
1327
1338
|
};
|
|
@@ -1375,6 +1386,10 @@ declare type DeletePanelAEP = TrackAEP<
|
|
|
1375
1386
|
undefined
|
|
1376
1387
|
>;
|
|
1377
1388
|
|
|
1389
|
+
declare type DisableSpellcheckByBrowser = {
|
|
1390
|
+
[b in Browsers]?: Range_2;
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1378
1393
|
declare type DismissedCreateLinkInlineDialogAEP = UIAEP<
|
|
1379
1394
|
ACTION.DISMISSED,
|
|
1380
1395
|
ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG,
|
|
@@ -1442,6 +1457,7 @@ export declare interface DropdownOptionT<T> {
|
|
|
1442
1457
|
hidden?: boolean;
|
|
1443
1458
|
testId?: string;
|
|
1444
1459
|
tooltip?: string;
|
|
1460
|
+
elemAfter?: React_2.ReactNode;
|
|
1445
1461
|
}
|
|
1446
1462
|
|
|
1447
1463
|
declare type EditInsertedState = {
|
|
@@ -1635,6 +1651,7 @@ declare interface EditorAppearanceComponentProps {
|
|
|
1635
1651
|
enableToolbarMinWidth?: boolean;
|
|
1636
1652
|
featureFlags?: EditorFeatureFlags;
|
|
1637
1653
|
useStickyToolbar?: boolean | RefObject<HTMLElement>;
|
|
1654
|
+
innerRef?: RefObject<HTMLDivElement>;
|
|
1638
1655
|
}
|
|
1639
1656
|
|
|
1640
1657
|
declare interface EditorConfig {
|
|
@@ -1853,23 +1870,6 @@ export declare type EditorFeatureFlags = {
|
|
|
1853
1870
|
* @default false
|
|
1854
1871
|
*/
|
|
1855
1872
|
tableOverflowShadowsOptimization?: boolean;
|
|
1856
|
-
/**
|
|
1857
|
-
* @decsription
|
|
1858
|
-
* Enables optional code syntax highlighting for code-block nodes
|
|
1859
|
-
*
|
|
1860
|
-
* @see https://product-fabric.atlassian.net/browse/ED-10368
|
|
1861
|
-
* @default false
|
|
1862
|
-
*/
|
|
1863
|
-
codeBlockSyntaxHighlighting?: boolean;
|
|
1864
|
-
/**
|
|
1865
|
-
* @description
|
|
1866
|
-
* Disables decorating code snippets with bidi character warnings
|
|
1867
|
-
* when they are used in inline code and code blocks.
|
|
1868
|
-
*
|
|
1869
|
-
* @see https://product-fabric.atlassian.net/browse/ED-13860
|
|
1870
|
-
* @default true
|
|
1871
|
-
*/
|
|
1872
|
-
codeBidiWarnings?: boolean;
|
|
1873
1873
|
/**
|
|
1874
1874
|
* @description
|
|
1875
1875
|
* Yield to user interaction work before sending analytics
|
|
@@ -1949,12 +1949,6 @@ export declare type EditorFeatureFlags = {
|
|
|
1949
1949
|
* @default false
|
|
1950
1950
|
*/
|
|
1951
1951
|
saferDispatchedTransactions?: boolean;
|
|
1952
|
-
/**
|
|
1953
|
-
* Disable Spellchecking for chrome version below the max unsafe number
|
|
1954
|
-
* @see https://ops.internal.atlassian.com/jira/browse/HOT-97409
|
|
1955
|
-
* @default null
|
|
1956
|
-
*/
|
|
1957
|
-
maxUnsafeChromeSpellcheckingVersion?: number;
|
|
1958
1952
|
/**
|
|
1959
1953
|
* Create non-smart hyperlinks on plain text paste (Cmd/Ctrl+Shift+v)
|
|
1960
1954
|
* @see https://product-fabric.atlassian.net/browse/EDM-2492
|
|
@@ -1975,6 +1969,12 @@ export declare type EditorFeatureFlags = {
|
|
|
1975
1969
|
* @default undefined
|
|
1976
1970
|
*/
|
|
1977
1971
|
chromeCursorHandlerFixedVersion?: number;
|
|
1972
|
+
/**
|
|
1973
|
+
* Enable table cell options in the floating toolbar
|
|
1974
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14418
|
|
1975
|
+
* @default false
|
|
1976
|
+
*/
|
|
1977
|
+
tableCellOptionsInFloatingToolbar?: boolean;
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Number to distinguish between which different toolbar is being displayed
|
|
1980
1980
|
* as part of the smart link view changing experiment run by the Linking Platform.
|
|
@@ -1984,12 +1984,66 @@ export declare type EditorFeatureFlags = {
|
|
|
1984
1984
|
viewChangingExperimentToolbarStyle?: string;
|
|
1985
1985
|
/**
|
|
1986
1986
|
* @description
|
|
1987
|
-
* Enable display of a
|
|
1987
|
+
* Enable display of a preview modal on mouse over of inline smart card
|
|
1988
1988
|
*
|
|
1989
1989
|
* @see https://product-fabric.atlassian.net/browse/EDM-2860
|
|
1990
1990
|
* @default false
|
|
1991
1991
|
*/
|
|
1992
1992
|
showHoverPreview?: boolean;
|
|
1993
|
+
/**
|
|
1994
|
+
* @description
|
|
1995
|
+
* Generic way of disabling spellcheck per browser by version range
|
|
1996
|
+
*
|
|
1997
|
+
* @see https://product-fabric.atlassian.net/browse/ED-14510
|
|
1998
|
+
* @default {}
|
|
1999
|
+
* Example:
|
|
2000
|
+
* {
|
|
2001
|
+
* ie: {
|
|
2002
|
+
* minimum: 101,
|
|
2003
|
+
* },
|
|
2004
|
+
* chrome: {
|
|
2005
|
+
* minimum: 96,
|
|
2006
|
+
* maximum: 109,
|
|
2007
|
+
* },
|
|
2008
|
+
* };
|
|
2009
|
+
*/
|
|
2010
|
+
disableSpellcheckByBrowser?: DisableSpellcheckByBrowser | undefined;
|
|
2011
|
+
/**
|
|
2012
|
+
* @description
|
|
2013
|
+
* Show indentation buttons in the Editor toolbar
|
|
2014
|
+
*
|
|
2015
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237512038/EXPLORE+Indentation+buttons+in+the+Editor+toolbar
|
|
2016
|
+
* @see https://product-fabric.atlassian.net/browse/ED-15067
|
|
2017
|
+
* @default false
|
|
2018
|
+
*/
|
|
2019
|
+
indentationButtonsInTheToolbar?: boolean;
|
|
2020
|
+
/**
|
|
2021
|
+
* @description
|
|
2022
|
+
* Show copy buttons in the Floating toolbar
|
|
2023
|
+
*
|
|
2024
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237609689/Cubone+Mini+project+-+Copy+button+in+the+floating+toolbar
|
|
2025
|
+
* @see https://product-fabric.atlassian.net/browse/ED-15090
|
|
2026
|
+
* @default false
|
|
2027
|
+
*/
|
|
2028
|
+
floatingToolbarCopyButton?: boolean;
|
|
2029
|
+
/**
|
|
2030
|
+
* @description
|
|
2031
|
+
* Use the linking platform link picker for link insertion and edit
|
|
2032
|
+
*
|
|
2033
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
|
|
2034
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-2577
|
|
2035
|
+
* @default false
|
|
2036
|
+
*/
|
|
2037
|
+
lpLinkPicker?: boolean;
|
|
2038
|
+
/**
|
|
2039
|
+
* @description
|
|
2040
|
+
* Show link settings button in the Floating toolbar
|
|
2041
|
+
*
|
|
2042
|
+
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3199172609/POP+Some+users+need+to+work+with+URLs+to+get+their+job+done
|
|
2043
|
+
* @see https://product-fabric.atlassian.net/browse/EDM-3268
|
|
2044
|
+
* @default null
|
|
2045
|
+
*/
|
|
2046
|
+
floatingToolbarLinkSettingsButton?: string;
|
|
1993
2047
|
};
|
|
1994
2048
|
|
|
1995
2049
|
export declare interface EditorInstance {
|
|
@@ -2026,6 +2080,7 @@ declare type EditorPerfAEP = OperationalAEPWithObjectId<
|
|
|
2026
2080
|
nodes?: Record<string, number>;
|
|
2027
2081
|
ttfb?: number;
|
|
2028
2082
|
severity?: SEVERITY;
|
|
2083
|
+
distortedDuration?: boolean;
|
|
2029
2084
|
},
|
|
2030
2085
|
undefined
|
|
2031
2086
|
>;
|
|
@@ -2109,11 +2164,6 @@ export declare interface EditorProps {
|
|
|
2109
2164
|
| {
|
|
2110
2165
|
menuDisabled: boolean;
|
|
2111
2166
|
};
|
|
2112
|
-
/**
|
|
2113
|
-
* @deprecated [ED-14507] This feature has been turned off since 2020
|
|
2114
|
-
* and is no longer affecting any behaviour
|
|
2115
|
-
*/
|
|
2116
|
-
allowDynamicTextSizing?: boolean;
|
|
2117
2167
|
allowTextAlignment?: boolean;
|
|
2118
2168
|
allowIndentation?: boolean;
|
|
2119
2169
|
/**
|
|
@@ -2131,7 +2181,12 @@ export declare interface EditorProps {
|
|
|
2131
2181
|
quickInsert?: QuickInsertOptions;
|
|
2132
2182
|
/** @deprecated Use smartLinks instead. */
|
|
2133
2183
|
UNSAFE_cards?: CardOptions;
|
|
2184
|
+
/** @deprecated Use linking instead. */
|
|
2134
2185
|
smartLinks?: CardOptions;
|
|
2186
|
+
/**
|
|
2187
|
+
* Configure and extend editor linking behaviour
|
|
2188
|
+
*/
|
|
2189
|
+
linking?: LinkingOptions;
|
|
2135
2190
|
allowExpand?:
|
|
2136
2191
|
| boolean
|
|
2137
2192
|
| {
|
|
@@ -2398,6 +2453,7 @@ declare interface EditorViewProps {
|
|
|
2398
2453
|
eventDispatcher: EventDispatcher;
|
|
2399
2454
|
transformer?: Transformer_2<string>;
|
|
2400
2455
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
2456
|
+
editorRef: React_2.RefObject<HTMLDivElement>;
|
|
2401
2457
|
}) => JSX.Element;
|
|
2402
2458
|
onEditorCreated: (instance: {
|
|
2403
2459
|
view: EditorView;
|
|
@@ -2804,6 +2860,8 @@ export declare type FloatingToolbarDropdown<T> = {
|
|
|
2804
2860
|
hideExpandIcon?: boolean;
|
|
2805
2861
|
disabled?: boolean;
|
|
2806
2862
|
tooltip?: string;
|
|
2863
|
+
dropdownWidth?: number;
|
|
2864
|
+
showSelected?: boolean;
|
|
2807
2865
|
};
|
|
2808
2866
|
|
|
2809
2867
|
export declare type FloatingToolbarEmojiPicker<T> = FloatingToolbarSelectBase<
|
|
@@ -2841,7 +2899,6 @@ declare type FloatingToolbarHandler = (
|
|
|
2841
2899
|
state: EditorState,
|
|
2842
2900
|
intl: IntlShape,
|
|
2843
2901
|
providerFactory: ProviderFactory,
|
|
2844
|
-
cardOptions?: CardOptions,
|
|
2845
2902
|
) => FloatingToolbarConfig | undefined;
|
|
2846
2903
|
|
|
2847
2904
|
export declare type FloatingToolbarInput<T> = {
|
|
@@ -3211,6 +3268,15 @@ export declare enum HyperlinkInsertStatus {
|
|
|
3211
3268
|
EDIT_INSERTED_TOOLBAR = 'EDIT_INSERTED',
|
|
3212
3269
|
}
|
|
3213
3270
|
|
|
3271
|
+
/**
|
|
3272
|
+
* Configuration for the Hyperlink plugin
|
|
3273
|
+
*/
|
|
3274
|
+
declare interface HyperlinkPluginOptions {
|
|
3275
|
+
cardOptions?: CardOptions;
|
|
3276
|
+
linkPicker?: LinkPickerOptions;
|
|
3277
|
+
platform?: 'mobile' | 'web';
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3214
3280
|
export declare interface HyperlinkState {
|
|
3215
3281
|
activeText?: string;
|
|
3216
3282
|
activeLinkMark?: LinkToolbarState;
|
|
@@ -3793,17 +3859,6 @@ declare type InsertTableAEP = InsertAEP<
|
|
|
3793
3859
|
undefined
|
|
3794
3860
|
>;
|
|
3795
3861
|
|
|
3796
|
-
export declare const insertTaskDecision: (
|
|
3797
|
-
view: EditorView,
|
|
3798
|
-
listType: TaskDecisionListType,
|
|
3799
|
-
inputMethod?:
|
|
3800
|
-
| INPUT_METHOD.FORMATTING
|
|
3801
|
-
| INPUT_METHOD.QUICK_INSERT
|
|
3802
|
-
| InsertBlockInputMethodToolbar,
|
|
3803
|
-
listLocalId?: string | undefined,
|
|
3804
|
-
itemLocalId?: string | undefined,
|
|
3805
|
-
) => Command;
|
|
3806
|
-
|
|
3807
3862
|
export declare const insertTaskDecisionCommand: (
|
|
3808
3863
|
listType: TaskDecisionListType,
|
|
3809
3864
|
inputMethod?:
|
|
@@ -3923,10 +3978,32 @@ declare enum LINK_STATUS {
|
|
|
3923
3978
|
UNRESOLVED = 'unresolved',
|
|
3924
3979
|
}
|
|
3925
3980
|
|
|
3981
|
+
/**
|
|
3982
|
+
* Configuration for editor linking behaviours
|
|
3983
|
+
*/
|
|
3984
|
+
declare interface LinkingOptions {
|
|
3985
|
+
/**
|
|
3986
|
+
* Initial props to configure the link picker component with. Primarily used to provide link search and suggestions capabilities.
|
|
3987
|
+
* @see https://atlaskit.atlassian.com/packages/editor/editor-core/example/full-page-with-link-picker
|
|
3988
|
+
* @see https://atlaskit.atlassian.com/packages/linking-platform/link-picker
|
|
3989
|
+
*/
|
|
3990
|
+
linkPicker?: LinkPickerOptions;
|
|
3991
|
+
/**
|
|
3992
|
+
* Enables and configure smart link behaviour
|
|
3993
|
+
*/
|
|
3994
|
+
smartLinks?: CardOptions;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3926
3997
|
export declare type LinkInputMethod =
|
|
3927
3998
|
| INPUT_METHOD.MANUAL
|
|
3928
3999
|
| INPUT_METHOD.TYPEAHEAD;
|
|
3929
4000
|
|
|
4001
|
+
/**
|
|
4002
|
+
* Configuration for the link picker
|
|
4003
|
+
* Extends `LinkPickerProps` to provide future extensibility out-of-the-box
|
|
4004
|
+
*/
|
|
4005
|
+
declare interface LinkPickerOptions extends Partial<LinkPickerProps> {}
|
|
4006
|
+
|
|
3930
4007
|
declare type LinkToolbarState =
|
|
3931
4008
|
| EditState
|
|
3932
4009
|
| EditInsertedState
|
|
@@ -4202,7 +4279,6 @@ declare interface MediaPluginState {
|
|
|
4202
4279
|
layout: RichMediaLayout;
|
|
4203
4280
|
mediaNodes: MediaNodeWithPosHandler[];
|
|
4204
4281
|
mediaGroupNodes: Record<string, any>;
|
|
4205
|
-
mobileUploadComplete: Record<string, boolean>;
|
|
4206
4282
|
options: MediaPluginOptions;
|
|
4207
4283
|
mediaProvider?: MediaProvider_2;
|
|
4208
4284
|
pickers: PickerFacade[];
|
|
@@ -4247,7 +4323,6 @@ declare interface MediaPluginState {
|
|
|
4247
4323
|
attrs: object,
|
|
4248
4324
|
isMediaSingle: boolean,
|
|
4249
4325
|
) => undefined | boolean;
|
|
4250
|
-
isMobileUploadCompleted: (mediaId: string) => boolean | undefined;
|
|
4251
4326
|
removeNodeById: (state: MediaState) => void;
|
|
4252
4327
|
removeSelectedMediaContainer: () => boolean;
|
|
4253
4328
|
selectedMediaContainerNode: () => Node_2 | undefined;
|
|
@@ -4634,6 +4709,14 @@ declare type OpenAEP_2 = UIAEP<
|
|
|
4634
4709
|
|
|
4635
4710
|
export declare const openDatePicker: () => Command;
|
|
4636
4711
|
|
|
4712
|
+
declare type OpenSettingsToolbarAEP = UIAEP<
|
|
4713
|
+
ACTION.CLICKED,
|
|
4714
|
+
ACTION_SUBJECT.BUTTON,
|
|
4715
|
+
ACTION_SUBJECT_ID.GOTO_SMART_LINK_SETTINGS,
|
|
4716
|
+
{},
|
|
4717
|
+
undefined
|
|
4718
|
+
>;
|
|
4719
|
+
|
|
4637
4720
|
declare type OperationalAEP<
|
|
4638
4721
|
Action,
|
|
4639
4722
|
ActionSubject,
|
|
@@ -4797,6 +4880,7 @@ declare type PastedTimedAEP = PasteBaseOperationalAEP<
|
|
|
4797
4880
|
pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
|
|
4798
4881
|
content: Array<string>;
|
|
4799
4882
|
time: number;
|
|
4883
|
+
distortedDuration: boolean;
|
|
4800
4884
|
},
|
|
4801
4885
|
undefined
|
|
4802
4886
|
>;
|
|
@@ -5077,7 +5161,13 @@ export declare class PortalProviderAPI extends EventDispatcher {
|
|
|
5077
5161
|
hasAnalyticsContext?: boolean,
|
|
5078
5162
|
hasIntlContext?: boolean,
|
|
5079
5163
|
): void;
|
|
5080
|
-
forceUpdate({
|
|
5164
|
+
forceUpdate({
|
|
5165
|
+
intl,
|
|
5166
|
+
themeMode,
|
|
5167
|
+
}: {
|
|
5168
|
+
intl: IntlShape;
|
|
5169
|
+
themeMode: ThemeModes | undefined;
|
|
5170
|
+
}): void;
|
|
5081
5171
|
remove(container: HTMLElement): void;
|
|
5082
5172
|
}
|
|
5083
5173
|
|
|
@@ -5241,6 +5331,11 @@ declare type QuickSearchPerfAEP = OperationalAEP<
|
|
|
5241
5331
|
}
|
|
5242
5332
|
>;
|
|
5243
5333
|
|
|
5334
|
+
declare type Range_2 = {
|
|
5335
|
+
minimum: number;
|
|
5336
|
+
maximum?: number;
|
|
5337
|
+
};
|
|
5338
|
+
|
|
5244
5339
|
declare type ReactComponents = ReactElement<any> | ReactElement<any>[];
|
|
5245
5340
|
|
|
5246
5341
|
export declare const ReactEditorView: React_2.FC<
|
|
@@ -5727,6 +5822,8 @@ declare type SubstituteSymbolAEP = SubstituteAEP<
|
|
|
5727
5822
|
}
|
|
5728
5823
|
>;
|
|
5729
5824
|
|
|
5825
|
+
declare const SupportedBrowsers: readonly ['ie', 'gecko', 'chrome', 'safari'];
|
|
5826
|
+
|
|
5730
5827
|
declare enum SYMBOL {
|
|
5731
5828
|
ARROW_RIGHT = 'rightArrow',
|
|
5732
5829
|
ARROW_LEFT = 'leftArrow',
|
|
@@ -5777,6 +5874,7 @@ declare enum TABLE_ACTION {
|
|
|
5777
5874
|
REPLACED = 'replaced',
|
|
5778
5875
|
ATTEMPTED_TABLE_WIDTH_CHANGE = 'attemptedTableWidthChange',
|
|
5779
5876
|
DISTRIBUTED_COLUMNS_WIDTHS = 'distributedColumnsWidths',
|
|
5877
|
+
FIXED = 'fixed',
|
|
5780
5878
|
}
|
|
5781
5879
|
|
|
5782
5880
|
declare enum TABLE_BREAKOUT {
|
|
@@ -5845,6 +5943,8 @@ declare type TableCollapsedAEP = TableAEP<
|
|
|
5845
5943
|
declare type TableColorAEP = TableAEP<
|
|
5846
5944
|
TABLE_ACTION.COLORED,
|
|
5847
5945
|
{
|
|
5946
|
+
inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB;
|
|
5947
|
+
} & {
|
|
5848
5948
|
cellColor: string;
|
|
5849
5949
|
} & AllCellInfo,
|
|
5850
5950
|
undefined
|
|
@@ -5880,7 +5980,7 @@ declare type TableDeleteRowOrColumnAEP = TableAEP<
|
|
|
5880
5980
|
declare type TableDistributeColumnsWidthsAEP = TableAEP<
|
|
5881
5981
|
TABLE_ACTION.DISTRIBUTED_COLUMNS_WIDTHS,
|
|
5882
5982
|
{
|
|
5883
|
-
inputMethod: INPUT_METHOD.CONTEXT_MENU;
|
|
5983
|
+
inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB;
|
|
5884
5984
|
position: number;
|
|
5885
5985
|
count: number;
|
|
5886
5986
|
} & TotalRowAndColCount,
|
|
@@ -5901,11 +6001,22 @@ declare type TableEventPayload =
|
|
|
5901
6001
|
| TableReplaceAEP
|
|
5902
6002
|
| TableAttemptedResizeAEP
|
|
5903
6003
|
| TableDistributeColumnsWidthsAEP
|
|
5904
|
-
| TableCollapsedAEP
|
|
6004
|
+
| TableCollapsedAEP
|
|
6005
|
+
| TableFixedAEP;
|
|
6006
|
+
|
|
6007
|
+
declare type TableFixedAEP = TableAEP<
|
|
6008
|
+
TABLE_ACTION.FIXED,
|
|
6009
|
+
{
|
|
6010
|
+
reason: string;
|
|
6011
|
+
},
|
|
6012
|
+
undefined
|
|
6013
|
+
>;
|
|
5905
6014
|
|
|
5906
6015
|
declare type TableMergeSplitAEP = TableAEP<
|
|
5907
6016
|
TABLE_ACTION.MERGED | TABLE_ACTION.SPLIT,
|
|
5908
|
-
|
|
6017
|
+
{
|
|
6018
|
+
inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB;
|
|
6019
|
+
} & AllCellInfo,
|
|
5909
6020
|
undefined
|
|
5910
6021
|
>;
|
|
5911
6022
|
|
|
@@ -5924,6 +6035,7 @@ declare type TableSortColumnAEP = TableAEP<
|
|
|
5924
6035
|
| INPUT_METHOD.SHORTCUT
|
|
5925
6036
|
| INPUT_METHOD.CONTEXT_MENU
|
|
5926
6037
|
| INPUT_METHOD.BUTTON
|
|
6038
|
+
| INPUT_METHOD.FLOATING_TB
|
|
5927
6039
|
| INPUT_METHOD.KEYBOARD;
|
|
5928
6040
|
position: number;
|
|
5929
6041
|
} & TotalRowAndColCount &
|