@atlaskit/editor-core 202.4.1 → 202.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/cjs/ui/ContentStyles/layout.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/es2019/ui/ContentStyles/layout.js +11 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/esm/ui/ContentStyles/layout.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +103 -9
- package/dist/types/presets/universal.d.ts +103 -9
- package/dist/types/presets/useUniversalPreset.d.ts +103 -9
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +121 -9
- package/dist/types-ts4.5/presets/universal.d.ts +121 -9
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +121 -9
- package/package.json +13 -13
|
@@ -1804,8 +1804,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1804
1804
|
];
|
|
1805
1805
|
actions: {
|
|
1806
1806
|
insertTaskDecision: (listType: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionListType, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.FORMATTING | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE | undefined, addItem?: import("@atlaskit/editor-plugins/tasks-and-decisions").AddItemTransactionCreator | undefined, listLocalId?: string | undefined, itemLocalId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1807
|
-
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1808
|
-
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1807
|
+
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1808
|
+
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1809
1809
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
1810
1810
|
};
|
|
1811
1811
|
commands: {
|
|
@@ -2339,10 +2339,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2339
2339
|
}, undefined>>
|
|
2340
2340
|
];
|
|
2341
2341
|
actions: {
|
|
2342
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
2343
|
-
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
2344
|
-
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | import("react").ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
2345
|
-
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2342
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE) => import("@atlaskit/editor-common/types").Command;
|
|
2346
2343
|
};
|
|
2347
2344
|
}, import("@atlaskit/editor-plugins/layout").LayoutPluginOptions | undefined> | undefined,
|
|
2348
2345
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
@@ -3607,8 +3604,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3607
3604
|
];
|
|
3608
3605
|
actions: {
|
|
3609
3606
|
insertTaskDecision: (listType: import("@atlaskit/editor-plugins/tasks-and-decisions").TaskDecisionListType, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.FORMATTING | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE | undefined, addItem?: import("@atlaskit/editor-plugins/tasks-and-decisions").AddItemTransactionCreator | undefined, listLocalId?: string | undefined, itemLocalId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3610
|
-
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3611
|
-
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3607
|
+
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3608
|
+
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3612
3609
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
3613
3610
|
};
|
|
3614
3611
|
commands: {
|
|
@@ -5426,7 +5423,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5426
5423
|
}, undefined>>
|
|
5427
5424
|
];
|
|
5428
5425
|
actions: {
|
|
5429
|
-
changeColor: (color: string) => import("@atlaskit/editor-common/types").Command;
|
|
5426
|
+
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugins/text-color").TextColorInputMethod | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
5430
5427
|
};
|
|
5431
5428
|
sharedState: import("@atlaskit/editor-plugins/text-color").TextColorPluginState | undefined;
|
|
5432
5429
|
}, (boolean | import("@atlaskit/editor-plugins/text-color").TextColorPluginConfig) | undefined> | undefined,
|
|
@@ -5465,6 +5462,121 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5465
5462
|
} | undefined>>,
|
|
5466
5463
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5467
5464
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5465
|
+
}, undefined>>,
|
|
5466
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5467
|
+
dependencies: [
|
|
5468
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5469
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5470
|
+
}, undefined>>,
|
|
5471
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
5472
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
5473
|
+
}, undefined>>,
|
|
5474
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5475
|
+
pluginConfiguration: FeatureFlags;
|
|
5476
|
+
sharedState: FeatureFlags;
|
|
5477
|
+
}, FeatureFlags>>,
|
|
5478
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5479
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5480
|
+
sharedState: {
|
|
5481
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
5482
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5483
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5484
|
+
};
|
|
5485
|
+
dependencies: [
|
|
5486
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5487
|
+
pluginConfiguration: FeatureFlags;
|
|
5488
|
+
sharedState: FeatureFlags;
|
|
5489
|
+
}, FeatureFlags>>
|
|
5490
|
+
];
|
|
5491
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5492
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
5493
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
5494
|
+
dependencies: [
|
|
5495
|
+
];
|
|
5496
|
+
actions: {
|
|
5497
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugins/accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
5498
|
+
};
|
|
5499
|
+
sharedState: import("@atlaskit/editor-plugins/accessibility-utils").AccessibilityUtilsPluginState;
|
|
5500
|
+
}, undefined>>,
|
|
5501
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
5502
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").QuickInsertPluginOptions | undefined;
|
|
5503
|
+
dependencies: [
|
|
5504
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
5505
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
5506
|
+
dependencies: [
|
|
5507
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5508
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5509
|
+
sharedState: {
|
|
5510
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
5511
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5512
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5513
|
+
};
|
|
5514
|
+
dependencies: [
|
|
5515
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5516
|
+
pluginConfiguration: FeatureFlags;
|
|
5517
|
+
sharedState: FeatureFlags;
|
|
5518
|
+
}, FeatureFlags>>
|
|
5519
|
+
];
|
|
5520
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5521
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
5522
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5523
|
+
pluginConfiguration: FeatureFlags;
|
|
5524
|
+
sharedState: FeatureFlags;
|
|
5525
|
+
}, FeatureFlags>>
|
|
5526
|
+
];
|
|
5527
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5528
|
+
actions: {
|
|
5529
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5530
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5531
|
+
insert: (props: {
|
|
5532
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5533
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
5534
|
+
query: string;
|
|
5535
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
5536
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
5537
|
+
}) => boolean;
|
|
5538
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
5539
|
+
open: (props: {
|
|
5540
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5541
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5542
|
+
query?: string | undefined;
|
|
5543
|
+
}) => boolean;
|
|
5544
|
+
close: (props: {
|
|
5545
|
+
insertCurrentQueryAsRawText: boolean;
|
|
5546
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
5547
|
+
}) => boolean;
|
|
5548
|
+
openAtTransaction: (props: {
|
|
5549
|
+
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
5550
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5551
|
+
query?: string | undefined;
|
|
5552
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5553
|
+
};
|
|
5554
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
5555
|
+
];
|
|
5556
|
+
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
5557
|
+
actions: {
|
|
5558
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
5559
|
+
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
5560
|
+
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
5561
|
+
};
|
|
5562
|
+
commands: {
|
|
5563
|
+
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
5564
|
+
addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5565
|
+
};
|
|
5566
|
+
}, import("@atlaskit/editor-common/types").QuickInsertPluginOptions | undefined>>
|
|
5567
|
+
];
|
|
5568
|
+
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
5569
|
+
commands: {
|
|
5570
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
5571
|
+
moveToEnd?: boolean | undefined;
|
|
5572
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5573
|
+
moveNode: (start: number, to: number, inputMethod?: import("@atlaskit/editor-plugin-block-controls").MoveNodeMethod | undefined, formatMessage?: {
|
|
5574
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
5575
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | import("react").ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
5576
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5577
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5578
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5579
|
+
};
|
|
5468
5580
|
}, undefined>>
|
|
5469
5581
|
];
|
|
5470
5582
|
sharedState: Partial<import("@atlaskit/editor-plugins/breakout").BreakoutPluginState>;
|
|
@@ -1755,8 +1755,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1755
1755
|
];
|
|
1756
1756
|
actions: {
|
|
1757
1757
|
insertTaskDecision: (listType: import("@atlaskit/editor-plugin-tasks-and-decisions").TaskDecisionListType, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.FORMATTING | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE | undefined, addItem?: import("@atlaskit/editor-plugin-tasks-and-decisions").AddItemTransactionCreator | undefined, listLocalId?: string | undefined, itemLocalId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1758
|
-
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1759
|
-
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1758
|
+
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1759
|
+
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1760
1760
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
1761
1761
|
};
|
|
1762
1762
|
commands: {
|
|
@@ -2290,10 +2290,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2290
2290
|
}, undefined>>
|
|
2291
2291
|
];
|
|
2292
2292
|
actions: {
|
|
2293
|
-
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE
|
|
2294
|
-
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
2295
|
-
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | import("react").ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
2296
|
-
} | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2293
|
+
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE) => import("@atlaskit/editor-common/types").Command;
|
|
2297
2294
|
};
|
|
2298
2295
|
}, import("@atlaskit/editor-plugin-layout").LayoutPluginOptions | undefined> | undefined,
|
|
2299
2296
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholderText", {
|
|
@@ -3558,8 +3555,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3558
3555
|
];
|
|
3559
3556
|
actions: {
|
|
3560
3557
|
insertTaskDecision: (listType: import("@atlaskit/editor-plugin-tasks-and-decisions").TaskDecisionListType, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.FORMATTING | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE | undefined, addItem?: import("@atlaskit/editor-plugin-tasks-and-decisions").AddItemTransactionCreator | undefined, listLocalId?: string | undefined, itemLocalId?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3561
|
-
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3562
|
-
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3558
|
+
indentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3559
|
+
outdentTaskList: (inputMethod?: (import("@atlaskit/editor-common/analytics").INPUT_METHOD.FLOATING_TB | import("@atlaskit/editor-common/analytics").INPUT_METHOD.KEYBOARD | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3563
3560
|
setProvider: (provider: Promise<import("@atlaskit/task-decision").TaskDecisionProvider>) => Promise<boolean>;
|
|
3564
3561
|
};
|
|
3565
3562
|
commands: {
|
|
@@ -5377,7 +5374,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5377
5374
|
}, undefined>>
|
|
5378
5375
|
];
|
|
5379
5376
|
actions: {
|
|
5380
|
-
changeColor: (color: string) => import("@atlaskit/editor-common/types").Command;
|
|
5377
|
+
changeColor: (color: string, inputMethod?: import("@atlaskit/editor-plugin-text-color").TextColorInputMethod | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
5381
5378
|
};
|
|
5382
5379
|
sharedState: import("@atlaskit/editor-plugin-text-color").TextColorPluginState | undefined;
|
|
5383
5380
|
}, (boolean | import("@atlaskit/editor-plugin-text-color").TextColorPluginConfig) | undefined> | undefined,
|
|
@@ -5416,6 +5413,121 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5416
5413
|
} | undefined>>,
|
|
5417
5414
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5418
5415
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5416
|
+
}, undefined>>,
|
|
5417
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5418
|
+
dependencies: [
|
|
5419
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5420
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5421
|
+
}, undefined>>,
|
|
5422
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
5423
|
+
sharedState: import("@atlaskit/editor-plugin-width").WidthPluginState | undefined;
|
|
5424
|
+
}, undefined>>,
|
|
5425
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5426
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5427
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5428
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
5429
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5430
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5431
|
+
sharedState: {
|
|
5432
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
5433
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5434
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5435
|
+
};
|
|
5436
|
+
dependencies: [
|
|
5437
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5438
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5439
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5440
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
5441
|
+
];
|
|
5442
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5443
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
5444
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"accessibilityUtils", {
|
|
5445
|
+
dependencies: [
|
|
5446
|
+
];
|
|
5447
|
+
actions: {
|
|
5448
|
+
ariaNotify: (message: string, ariaLiveElementAttributes?: import("@atlaskit/editor-plugin-accessibility-utils").AriaLiveElementAttributes | undefined) => void;
|
|
5449
|
+
};
|
|
5450
|
+
sharedState: import("@atlaskit/editor-plugin-accessibility-utils").AccessibilityUtilsPluginState;
|
|
5451
|
+
}, undefined>>,
|
|
5452
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
5453
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").QuickInsertPluginOptions | undefined;
|
|
5454
|
+
dependencies: [
|
|
5455
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
5456
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
5457
|
+
dependencies: [
|
|
5458
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
5459
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
5460
|
+
sharedState: {
|
|
5461
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
5462
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
5463
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
5464
|
+
};
|
|
5465
|
+
dependencies: [
|
|
5466
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5467
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5468
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5469
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
5470
|
+
];
|
|
5471
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
5472
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
5473
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5474
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5475
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5476
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
5477
|
+
];
|
|
5478
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
5479
|
+
actions: {
|
|
5480
|
+
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5481
|
+
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
5482
|
+
insert: (props: {
|
|
5483
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
5484
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
5485
|
+
query: string;
|
|
5486
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
5487
|
+
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
5488
|
+
}) => boolean;
|
|
5489
|
+
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | null;
|
|
5490
|
+
open: (props: {
|
|
5491
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
5492
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5493
|
+
query?: string | undefined;
|
|
5494
|
+
}) => boolean;
|
|
5495
|
+
close: (props: {
|
|
5496
|
+
insertCurrentQueryAsRawText: boolean;
|
|
5497
|
+
attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
|
|
5498
|
+
}) => boolean;
|
|
5499
|
+
openAtTransaction: (props: {
|
|
5500
|
+
triggerHandler: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler;
|
|
5501
|
+
inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod;
|
|
5502
|
+
query?: string | undefined;
|
|
5503
|
+
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5504
|
+
};
|
|
5505
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
5506
|
+
];
|
|
5507
|
+
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
5508
|
+
actions: {
|
|
5509
|
+
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
5510
|
+
insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
5511
|
+
getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
|
|
5512
|
+
};
|
|
5513
|
+
commands: {
|
|
5514
|
+
openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
|
|
5515
|
+
addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5516
|
+
};
|
|
5517
|
+
}, import("@atlaskit/editor-common/types").QuickInsertPluginOptions | undefined>>
|
|
5518
|
+
];
|
|
5519
|
+
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
5520
|
+
commands: {
|
|
5521
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
5522
|
+
moveToEnd?: boolean | undefined;
|
|
5523
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5524
|
+
moveNode: (start: number, to: number, inputMethod?: import("@atlaskit/editor-plugin-block-controls").MoveNodeMethod | undefined, formatMessage?: {
|
|
5525
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
5526
|
+
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | import("react").ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
|
|
5527
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5528
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5529
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5530
|
+
};
|
|
5419
5531
|
}, undefined>>
|
|
5420
5532
|
];
|
|
5421
5533
|
sharedState: Partial<import("@atlaskit/editor-plugin-breakout").BreakoutPluginState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "202.
|
|
3
|
+
"version": "202.5.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.3.0",
|
|
46
|
-
"@atlaskit/editor-common": "^95.
|
|
46
|
+
"@atlaskit/editor-common": "^95.9.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.7.1",
|
|
49
|
-
"@atlaskit/editor-plugins": "^5.
|
|
49
|
+
"@atlaskit/editor-plugins": "^5.8.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.11.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
54
|
-
"@atlaskit/media-card": "^78.
|
|
53
|
+
"@atlaskit/icon": "^22.27.0",
|
|
54
|
+
"@atlaskit/media-card": "^78.15.0",
|
|
55
55
|
"@atlaskit/mention": "^23.4.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.11.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "^2.21.0",
|
|
59
|
-
"@atlaskit/tokens": "^2.
|
|
59
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
60
60
|
"@atlaskit/tooltip": "^18.9.0",
|
|
61
61
|
"@atlaskit/width-detector": "^4.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@af/editor-libra": "*",
|
|
83
83
|
"@af/visual-regression": "*",
|
|
84
|
-
"@atlaskit/adf-utils": "^19.
|
|
84
|
+
"@atlaskit/adf-utils": "^19.14.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.13.0",
|
|
86
|
-
"@atlaskit/collab-provider": "10.
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.25.
|
|
86
|
+
"@atlaskit/collab-provider": "10.2.0",
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.25.4",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.4.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
90
|
"@atlaskit/editor-plugin-paste": "^2.0.0",
|
|
@@ -93,17 +93,17 @@
|
|
|
93
93
|
"@atlaskit/media-core": "^34.3.0",
|
|
94
94
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
95
95
|
"@atlaskit/media-test-helpers": "^34.6.0",
|
|
96
|
-
"@atlaskit/modal-dialog": "^12.
|
|
97
|
-
"@atlaskit/primitives": "^13.
|
|
96
|
+
"@atlaskit/modal-dialog": "^12.18.0",
|
|
97
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
98
98
|
"@atlaskit/renderer": "^112.6.0",
|
|
99
|
-
"@atlaskit/smart-card": "^
|
|
99
|
+
"@atlaskit/smart-card": "^32.1.0",
|
|
100
100
|
"@atlaskit/synchrony-test-helpers": "^3.0.0",
|
|
101
101
|
"@atlaskit/toggle": "^13.4.0",
|
|
102
102
|
"@atlaskit/util-data-test": "^17.13.0",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
105
105
|
"@atlassian/feature-flags-test-utils": "*",
|
|
106
|
-
"@atlassian/search-provider": "
|
|
106
|
+
"@atlassian/search-provider": "3.0.0",
|
|
107
107
|
"@emotion/jest": "^11.8.0",
|
|
108
108
|
"@storybook/addon-knobs": "^6.4.0",
|
|
109
109
|
"@testing-library/react": "^12.1.5",
|