@atlaskit/editor-common 94.23.1 → 95.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 +74 -0
- package/dist/cjs/analytics/index.js +60 -47
- package/dist/cjs/analytics/linking-utils.js +28 -28
- package/dist/cjs/card/index.js +11 -5
- package/dist/cjs/commands/index.js +3 -1
- package/dist/cjs/emoji.js +3 -0
- package/dist/cjs/extensibility/Extension/styles.js +1 -15
- package/dist/cjs/extensions.js +32 -24
- package/dist/cjs/floating-toolbar/index.js +3 -1
- package/dist/cjs/icons/index.js +2 -1
- package/dist/cjs/keymaps/index.js +3 -1
- package/dist/cjs/lazy-node-view/index.js +3 -0
- package/dist/cjs/messages/index.js +2 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +3 -0
- package/dist/cjs/prosemirror-dom-metadata/index.js +2 -1
- package/dist/cjs/quick-insert/assets/index.js +1 -17
- package/dist/cjs/quick-insert/index.js +5 -2
- package/dist/cjs/react-node-view/index.js +2 -0
- package/dist/cjs/selection/index.js +16 -12
- package/dist/cjs/styles/shared/emoji.js +4 -0
- package/dist/cjs/styles/shared/table.js +3 -0
- package/dist/cjs/type-ahead/index.js +2 -0
- package/dist/cjs/types/annotation/index.js +1 -14
- package/dist/cjs/types/index.js +5 -3
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +0 -7
- package/dist/cjs/ui/Popup/index.js +0 -6
- package/dist/cjs/ui/index.js +9 -7
- package/dist/cjs/ui-color/index.js +5 -5
- package/dist/cjs/ui-menu/ToolbarButton/index.js +1 -2
- package/dist/cjs/ui-menu/index.js +3 -2
- package/dist/cjs/utils/hyperlink.js +5 -5
- package/dist/cjs/utils/index.js +3 -0
- package/dist/es2019/analytics/index.js +18 -1
- package/dist/es2019/analytics/linking-utils.js +1 -1
- package/dist/es2019/card/index.js +7 -1
- package/dist/es2019/commands/index.js +2 -0
- package/dist/es2019/core-utils/index.js +3 -0
- package/dist/es2019/doc-utils/index.js +3 -0
- package/dist/es2019/editor-analytics/index.js +3 -0
- package/dist/es2019/element-browser/index.js +3 -0
- package/dist/es2019/emoji.js +3 -0
- package/dist/es2019/extensibility/Extension/styles.js +0 -3
- package/dist/es2019/extensibility/index.js +3 -0
- package/dist/es2019/extensions.js +11 -1
- package/dist/es2019/floating-toolbar/index.js +2 -0
- package/dist/es2019/guideline/index.js +3 -0
- package/dist/es2019/hooks/index.js +3 -0
- package/dist/es2019/i18n/index.js +3 -0
- package/dist/es2019/icons/index.js +3 -0
- package/dist/es2019/keymaps/index.js +27 -1
- package/dist/es2019/lazy-node-view/index.js +3 -0
- package/dist/es2019/link/index.js +3 -0
- package/dist/es2019/lists/index.js +3 -0
- package/dist/es2019/mark/index.js +3 -0
- package/dist/es2019/media/index.js +3 -0
- package/dist/es2019/media-inline/index.js +3 -0
- package/dist/es2019/media-single/index.js +3 -0
- package/dist/es2019/mention.js +3 -0
- package/dist/es2019/messages/index.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/monitoring/index.js +3 -0
- package/dist/es2019/node-width/index.js +3 -0
- package/dist/es2019/panel.js +3 -0
- package/dist/es2019/paste/index.js +3 -0
- package/dist/es2019/portal/index.js +3 -0
- package/dist/es2019/preset/index.js +3 -0
- package/dist/es2019/prosemirror-dom-metadata/index.js +3 -0
- package/dist/es2019/provider-factory.js +3 -0
- package/dist/es2019/provider-helpers/index.js +3 -0
- package/dist/es2019/quick-insert/assets/index.js +0 -2
- package/dist/es2019/quick-insert/index.js +6 -1
- package/dist/es2019/react-node-view/index.js +3 -0
- package/dist/es2019/resizer/index.js +3 -0
- package/dist/es2019/selection/index.js +5 -1
- package/dist/es2019/selection-based-node-view/index.js +3 -0
- package/dist/es2019/styles/index.js +3 -0
- package/dist/es2019/styles/shared/emoji.js +4 -0
- package/dist/es2019/styles/shared/table.js +3 -0
- package/dist/es2019/table/index.js +3 -0
- package/dist/es2019/transforms/index.js +3 -0
- package/dist/es2019/type-ahead/index.js +3 -0
- package/dist/es2019/types/annotation/index.js +1 -2
- package/dist/es2019/types/index.js +4 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -2
- package/dist/es2019/ui/Popup/index.js +1 -2
- package/dist/es2019/ui/index.js +7 -2
- package/dist/es2019/ui-color/index.js +4 -1
- package/dist/es2019/ui-menu/ToolbarButton/index.js +1 -2
- package/dist/es2019/ui-menu/index.js +5 -1
- package/dist/es2019/ui-react/index.js +3 -0
- package/dist/es2019/utils/hyperlink.js +1 -1
- package/dist/es2019/utils/index.js +3 -0
- package/dist/es2019/validator.js +3 -0
- package/dist/es2019/whitespace/index.js +3 -0
- package/dist/esm/analytics/index.js +18 -1
- package/dist/esm/analytics/linking-utils.js +1 -1
- package/dist/esm/card/index.js +7 -1
- package/dist/esm/commands/index.js +2 -0
- package/dist/esm/core-utils/index.js +3 -0
- package/dist/esm/doc-utils/index.js +3 -0
- package/dist/esm/editor-analytics/index.js +3 -0
- package/dist/esm/element-browser/index.js +3 -0
- package/dist/esm/emoji.js +3 -0
- package/dist/esm/extensibility/Extension/styles.js +0 -3
- package/dist/esm/extensibility/index.js +3 -0
- package/dist/esm/extensions.js +11 -1
- package/dist/esm/floating-toolbar/index.js +2 -0
- package/dist/esm/guideline/index.js +3 -0
- package/dist/esm/hooks/index.js +3 -0
- package/dist/esm/i18n/index.js +3 -0
- package/dist/esm/icons/index.js +3 -0
- package/dist/esm/keymaps/index.js +27 -1
- package/dist/esm/lazy-node-view/index.js +3 -0
- package/dist/esm/link/index.js +3 -0
- package/dist/esm/lists/index.js +3 -0
- package/dist/esm/mark/index.js +3 -0
- package/dist/esm/media/index.js +3 -0
- package/dist/esm/media-inline/index.js +3 -0
- package/dist/esm/media-single/index.js +3 -0
- package/dist/esm/mention.js +3 -0
- package/dist/esm/messages/index.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/monitoring/index.js +3 -0
- package/dist/esm/node-width/index.js +3 -0
- package/dist/esm/panel.js +3 -0
- package/dist/esm/paste/index.js +3 -0
- package/dist/esm/portal/index.js +3 -0
- package/dist/esm/preset/index.js +3 -0
- package/dist/esm/prosemirror-dom-metadata/index.js +3 -0
- package/dist/esm/provider-factory.js +3 -0
- package/dist/esm/provider-helpers/index.js +3 -0
- package/dist/esm/quick-insert/assets/index.js +0 -2
- package/dist/esm/quick-insert/index.js +6 -1
- package/dist/esm/react-node-view/index.js +3 -0
- package/dist/esm/resizer/index.js +3 -0
- package/dist/esm/selection/index.js +5 -1
- package/dist/esm/selection-based-node-view/index.js +3 -0
- package/dist/esm/styles/index.js +3 -0
- package/dist/esm/styles/shared/emoji.js +4 -0
- package/dist/esm/styles/shared/table.js +3 -0
- package/dist/esm/table/index.js +3 -0
- package/dist/esm/transforms/index.js +3 -0
- package/dist/esm/type-ahead/index.js +3 -0
- package/dist/esm/types/annotation/index.js +1 -2
- package/dist/esm/types/index.js +4 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -2
- package/dist/esm/ui/Popup/index.js +1 -2
- package/dist/esm/ui/index.js +7 -2
- package/dist/esm/ui-color/index.js +4 -1
- package/dist/esm/ui-menu/ToolbarButton/index.js +1 -2
- package/dist/esm/ui-menu/index.js +5 -1
- package/dist/esm/ui-react/index.js +3 -0
- package/dist/esm/utils/hyperlink.js +1 -1
- package/dist/esm/utils/index.js +3 -0
- package/dist/esm/validator.js +3 -0
- package/dist/esm/whitespace/index.js +3 -0
- package/dist/types/analytics/api.d.ts +1 -1
- package/dist/types/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types/analytics/index.d.ts +38 -2
- package/dist/types/analytics/linking-utils.d.ts +2 -2
- package/dist/types/analytics/utils.d.ts +1 -1
- package/dist/types/card/index.d.ts +4 -1
- package/dist/types/collab/index.d.ts +5 -0
- package/dist/types/core-utils/document-logger.d.ts +0 -1
- package/dist/types/extensibility/Extension/styles.d.ts +0 -2
- package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +3 -1
- package/dist/types/extensions/extension-handlers.d.ts +5 -3
- package/dist/types/extensions/module-helpers.d.ts +6 -1
- package/dist/types/extensions.d.ts +15 -2
- package/dist/types/provider-factory/card-provider.d.ts +0 -1
- package/dist/types/provider-factory/types.d.ts +1 -1
- package/dist/types/provider-factory.d.ts +1 -1
- package/dist/types/quick-insert/assets/index.d.ts +1 -2
- package/dist/types/quick-insert/index.d.ts +3 -1
- package/dist/types/selection/index.d.ts +2 -1
- package/dist/types/types/annotation/index.d.ts +2 -5
- package/dist/types/types/index.d.ts +3 -2
- package/dist/types/ui/Expand/index.d.ts +0 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +0 -1
- package/dist/types/ui/MediaSingle/index.d.ts +1 -2
- package/dist/types/ui/Popup/index.d.ts +0 -2
- package/dist/types/ui/index.d.ts +9 -5
- package/dist/types/ui-color/index.d.ts +1 -1
- package/dist/types/ui-menu/DropdownMenu/index.d.ts +0 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -2
- package/dist/types/ui-menu/index.d.ts +3 -2
- package/dist/types/utils/extension-handler.d.ts +2 -1
- package/dist/types/utils/hyperlink.d.ts +2 -1
- package/dist/types-ts4.5/analytics/api.d.ts +1 -1
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +38 -2
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +2 -2
- package/dist/types-ts4.5/analytics/utils.d.ts +1 -1
- package/dist/types-ts4.5/card/index.d.ts +4 -1
- package/dist/types-ts4.5/collab/index.d.ts +5 -0
- package/dist/types-ts4.5/core-utils/document-logger.d.ts +0 -1
- package/dist/types-ts4.5/extensibility/Extension/styles.d.ts +0 -2
- package/dist/types-ts4.5/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +3 -1
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +5 -3
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +6 -1
- package/dist/types-ts4.5/extensions.d.ts +15 -2
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +0 -1
- package/dist/types-ts4.5/provider-factory/types.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +1 -2
- package/dist/types-ts4.5/quick-insert/index.d.ts +3 -1
- package/dist/types-ts4.5/selection/index.d.ts +2 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -5
- package/dist/types-ts4.5/types/index.d.ts +3 -2
- package/dist/types-ts4.5/ui/Expand/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/Popup/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/index.d.ts +9 -5
- package/dist/types-ts4.5/ui-color/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +0 -1
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -2
- package/dist/types-ts4.5/ui-menu/index.d.ts +3 -2
- package/dist/types-ts4.5/utils/extension-handler.d.ts +2 -1
- package/dist/types-ts4.5/utils/hyperlink.d.ts +2 -1
- package/package.json +7 -7
- package/dist/cjs/analytics/types/index.js +0 -283
- package/dist/cjs/card/ui/assets/index.js +0 -33
- package/dist/cjs/extensions/index.js +0 -152
- package/dist/cjs/extensions/types/index.js +0 -36
- package/dist/cjs/selection/gap-cursor/utils/index.js +0 -19
- package/dist/cjs/ui/Mention/types.js +0 -5
- package/dist/cjs/ui-color/ColorPalette/Palettes/index.js +0 -37
- package/dist/es2019/analytics/types/index.js +0 -14
- package/dist/es2019/card/ui/assets/index.js +0 -5
- package/dist/es2019/extensions/index.js +0 -8
- package/dist/es2019/extensions/types/index.js +0 -1
- package/dist/es2019/selection/gap-cursor/utils/index.js +0 -2
- package/dist/es2019/ui/Mention/types.js +0 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/index.js +0 -2
- package/dist/esm/analytics/types/index.js +0 -14
- package/dist/esm/card/ui/assets/index.js +0 -5
- package/dist/esm/extensions/index.js +0 -8
- package/dist/esm/extensions/types/index.js +0 -1
- package/dist/esm/selection/gap-cursor/utils/index.js +0 -2
- package/dist/esm/ui/Mention/types.js +0 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/index.js +0 -2
- package/dist/types/analytics/types/index.d.ts +0 -40
- package/dist/types/card/ui/assets/index.d.ts +0 -4
- package/dist/types/extensions/index.d.ts +0 -9
- package/dist/types/extensions/types/index.d.ts +0 -8
- package/dist/types/selection/gap-cursor/utils/index.d.ts +0 -2
- package/dist/types/ui/Mention/types.d.ts +0 -2
- package/dist/types/ui-color/ColorPalette/Palettes/index.d.ts +0 -3
- package/dist/types-ts4.5/analytics/types/index.d.ts +0 -40
- package/dist/types-ts4.5/card/ui/assets/index.d.ts +0 -4
- package/dist/types-ts4.5/extensions/index.d.ts +0 -9
- package/dist/types-ts4.5/extensions/types/index.d.ts +0 -8
- package/dist/types-ts4.5/selection/gap-cursor/utils/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/Mention/types.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/index.d.ts +0 -3
|
@@ -31,8 +31,11 @@ export var TableSharedCssClassName = {
|
|
|
31
31
|
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "".concat(tablePrefixSelector, "-sticky-scrollbar-sentinel-bottom"),
|
|
32
32
|
TABLE_SHADOW_SENTINEL_LEFT: "".concat(tablePrefixSelector, "-shadow-sentinel-left"),
|
|
33
33
|
TABLE_SHADOW_SENTINEL_RIGHT: "".concat(tablePrefixSelector, "-shadow-sentinel-right"),
|
|
34
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
|
34
35
|
TABLE_CELL_NODEVIEW_CONTENT_DOM: tableCellContentDomSelector,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
|
35
37
|
TABLE_CELL_WRAPPER: tableCellSelector,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
|
36
39
|
TABLE_HEADER_CELL_WRAPPER: tableHeaderSelector,
|
|
37
40
|
TABLE_ROW_CONTROLS_WRAPPER: "".concat(tablePrefixSelector, "-row-controls-wrapper"),
|
|
38
41
|
TABLE_COLUMN_CONTROLS_DECORATIONS: "".concat(tablePrefixSelector, "-column-controls-decoration"),
|
package/dist/esm/table/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes } from './layout';
|
|
2
5
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from './expand';
|
|
3
6
|
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension } from './extension';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export var TypeAheadAvailableNodes = /*#__PURE__*/function (TypeAheadAvailableNodes) {
|
|
2
5
|
TypeAheadAvailableNodes["EMOJI"] = "emojiTypeAhead";
|
|
3
6
|
TypeAheadAvailableNodes["MENTION"] = "mentionTypeAhead";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { AnnotationUpdateEmitter, AnnotationUpdateEvent };
|
|
1
|
+
export {};
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export var SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
2
5
|
SortOrder["ASC"] = "asc";
|
|
3
6
|
SortOrder["DESC"] = "desc";
|
|
4
7
|
SortOrder["NO_ORDER"] = "no_order";
|
|
5
8
|
return SortOrder;
|
|
6
9
|
}({});
|
|
7
|
-
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
10
|
+
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emitter';
|
|
8
11
|
export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
|
|
9
12
|
|
|
10
13
|
// DEPREACTED
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "95.0.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { default as Caption } from './Caption';
|
|
2
5
|
export { default as MediaSingle } from './MediaSingle';
|
|
3
6
|
export { MediaSingleDimensionHelper, MediaBorderGapFiller } from './MediaSingle/styled';
|
|
4
7
|
export { layoutSupportsWidth, calcPxFromColumns, calcPctFromPx, calcPxFromPct, calcColumnsFromPx, snapToGrid, calcMediaPxWidth, wrappedLayouts } from './MediaSingle/grid';
|
|
5
8
|
export { mediaLinkStyle } from './MediaSingle/link';
|
|
6
|
-
export { default as Popup
|
|
9
|
+
export { default as Popup } from './Popup';
|
|
10
|
+
export { findOverflowScrollParent } from './Popup/utils';
|
|
7
11
|
export { default as UnsupportedBlock } from './UnsupportedBlock';
|
|
8
12
|
export { default as UnsupportedInline } from './UnsupportedInline';
|
|
9
13
|
export { BaseTheme, mapBreakpointToLayoutMaxWidth } from './BaseTheme';
|
|
@@ -12,7 +16,8 @@ export { WidthContext, WidthConsumer, WidthProvider, createWidthContext, getBrea
|
|
|
12
16
|
export { default as overflowShadow, shadowClassNames } from './OverflowShadow';
|
|
13
17
|
export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
|
|
14
18
|
export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
|
|
15
|
-
export { messages as expandMessages,
|
|
19
|
+
export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef } from './Expand';
|
|
20
|
+
export { sharedExpandStyles } from './Expand/sharedStyles';
|
|
16
21
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
17
22
|
export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from './clear-next-sibling-margin-top';
|
|
18
23
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { default as ColorPalette } from './ColorPalette';
|
|
2
5
|
export { default as Color } from './ColorPalette/Color';
|
|
3
6
|
export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRowAndColumn, getSelectedRowAndColumnFromPalette } from './ColorPalette/utils';
|
|
@@ -6,6 +9,6 @@ export { default as colorPaletteMessages } from './ColorPalette/Palettes/palette
|
|
|
6
9
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
10
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
8
11
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
|
|
9
|
-
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
|
|
12
|
+
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
|
|
10
13
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
11
14
|
export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
|
|
@@ -13,10 +13,9 @@ import React, { useCallback } from 'react';
|
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
15
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE
|
|
16
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
17
17
|
import { ToolTipContent } from '../../keymaps';
|
|
18
18
|
import Button from './styles';
|
|
19
|
-
export var TOOLBAR_BUTTON = TOOLBAR_ACTION_SUBJECT_ID;
|
|
20
19
|
var buttonWrapper = css({
|
|
21
20
|
display: 'flex',
|
|
22
21
|
height: '100%'
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { default as DropdownMenu, DropdownMenuItem, DropdownMenuWithKeyboardNavigation } from './DropdownMenu';
|
|
2
|
-
export { default as ToolbarButton
|
|
5
|
+
export { default as ToolbarButton } from './ToolbarButton';
|
|
6
|
+
export { TOOLBAR_ACTION_SUBJECT_ID as TOOLBAR_BUTTON } from '../analytics';
|
|
3
7
|
export { ArrowKeyNavigationProvider } from './ArrowKeyNavigationProvider';
|
|
4
8
|
export { ToolbarArrowKeyNavigationProvider, KeyDownHandlerContext } from './ToolbarArrowKeyNavigationProvider';
|
|
5
9
|
export { ArrowKeyNavigationType } from './ArrowKeyNavigationProvider/types';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { default as ReactEditorViewContext } from './ReactEditorViewContext';
|
|
2
5
|
export { default as withReactEditorViewOuterListeners, OutsideClickTargetRefContext } from './with-react-editor-view-outer-listeners';
|
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
// If changes are made to this file, please make the same update in the linked file.
|
|
5
5
|
|
|
6
6
|
import { isSafeUrl, linkify, normalizeUrl as normaliseLinkHref } from '@atlaskit/adf-schema';
|
|
7
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics/types';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics/types/enums';
|
|
8
8
|
import { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
|
|
9
9
|
import { mapSlice } from './slice';
|
|
10
10
|
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
2
5
|
import { hasDocAsParent } from './document';
|
|
3
6
|
import { isEmptyParagraph } from './editor-core-utils';
|
package/dist/esm/validator.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { getMarksByOrder, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, isSameMark, isSubSupType, markOrder, ADFStages } from './utils/validator';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { AnalyticsEventPayload } from './types';
|
|
2
|
+
import type { AnalyticsEventPayload } from './types/events';
|
|
3
3
|
export type EditorAnalyticsAPI = {
|
|
4
4
|
/**
|
|
5
5
|
* attachAnalyticsEvent is used to attach an analytics payloads to a transaction
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
|
-
import type { FireAnalyticsEvent } from './types';
|
|
2
|
+
import type { FireAnalyticsEvent } from './types/events';
|
|
3
3
|
export declare const editorAnalyticsChannel = FabricChannel.editor;
|
|
4
4
|
export declare const fireAnalyticsEvent: FireAnalyticsEvent;
|
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, ErrorEventAttributes, ErrorEventPayload, FeatureExposureAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, SimplifiedNode, TransactionEventPayload, } from './types/events';
|
|
2
|
+
export type { FormatEventPayload } from './types/format-events';
|
|
3
|
+
export type { SubstituteEventPayload } from './types/substitute-events';
|
|
4
|
+
export type { ColorPickerAEP, GeneralEventPayload } from './types/general-events';
|
|
5
|
+
export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, INSERT_MEDIA_VIA, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, } from './types/enums';
|
|
6
|
+
export { INDENT_DIRECTION, INDENT_TYPE } from './types/format-events';
|
|
7
|
+
export { PUNC, SYMBOL } from './types/substitute-events';
|
|
8
|
+
export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS, } from './types/general-events';
|
|
9
|
+
export { LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, USER_CONTEXT, } from './types/insert-events';
|
|
10
|
+
export type { InputMethodInsertLink, InputMethodInsertMedia, InsertMediaVia, InsertEventPayload, } from './types/insert-events';
|
|
11
|
+
export { CHANGE_ALIGNMENT_REASON, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TABLE_DISPLAY_MODE, } from './types/table-events';
|
|
12
|
+
export type { TableEventPayload, OverflowStateInfo } from './types/table-events';
|
|
13
|
+
export { PasteContents, PasteSources, PasteTypes } from './types/paste-events';
|
|
14
|
+
export type { PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, } from './types/paste-events';
|
|
15
|
+
export type { MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, CaptionTrackAction, MediaResizeTrackAction, MediaInputResizeTrackAction, } from './types/media-events';
|
|
16
|
+
export type { MoveContentEventPayload } from './types/move-content-events';
|
|
17
|
+
export type { DispatchAnalyticsEvent } from './types/dispatch-analytics-event';
|
|
18
|
+
export { DELETE_DIRECTION, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, } from './types/list-events';
|
|
19
|
+
export type { ListEventPayload, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, } from './types/list-events';
|
|
20
|
+
export type { CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, RecentActivitiesPerfAEP, QuickSearchPerfAEP, ViewedCreateLinkInlineDialogAEP, DismissedCreateLinkInlineDialogAEP, EnteredTextLinkSearchInputAEP, ShownPreQuerySearchResultsAEP, ShownPostQuerySearchResultsAEP, HighlightedSearchResultsAEP, SelectedSearchResultsAEP, EditLinkToolbarAEP, UnlinkToolbarAEP, } from './types/link-tool-bar-events';
|
|
21
|
+
export type { TextColorSelectedAttr, TextColorSelectedAEP, TextColorShowPaletteToggleAttr, TextColorShowPaletteToggleAEP, ExperimentalEventPayload, } from './types/experimental-events';
|
|
22
|
+
export { GAP_CURSOR_POSITION, TARGET_SELECTION_SOURCE } from './types/extension-events';
|
|
23
|
+
export type { SelectionJson, ExtensionType, ExtensionEventPayload } from './types/extension-events';
|
|
24
|
+
export type { AnnotationActionType, AnnotationAEP, AnnotationAEPAttributes, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, } from './types/inline-comment-events';
|
|
25
|
+
export { RESOLVE_METHOD, VIEW_METHOD } from './types/inline-comment-events';
|
|
26
|
+
export { LAYOUT_TYPE, SMART_LINK_TYPE } from './types/node-events';
|
|
27
|
+
export type { NodeEventPayload } from './types/node-events';
|
|
28
|
+
export type { SelectNodeAEP, SelectRangeAEP, SelectAllAEP, SelectCellAEP, SelectionEventPayload, } from './types/selection-events';
|
|
29
|
+
export { SmartLinkNodeContexts } from './types/smart-links';
|
|
30
|
+
export type { SmartLinkNodeContext, InsertSmartLinkAEP } from './types/smart-links';
|
|
31
|
+
export { TOOLBAR_ACTION_SUBJECT_ID } from './types/toolbar-button';
|
|
32
|
+
export type { ToolbarEventPayload } from './types/toolbar-button';
|
|
33
|
+
export type { TypeAheadPayload } from './types/type-ahead';
|
|
34
|
+
export { SELECTION_POSITION, SELECTION_TYPE } from './types/utils';
|
|
35
|
+
export type { OperationalAEP } from './types/utils';
|
|
36
|
+
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './types/performance-report';
|
|
37
|
+
export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './types/referentiality-events';
|
|
38
|
+
export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types/view-events';
|
|
3
39
|
export type { EditorAnalyticsAPI } from './api';
|
|
4
40
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
5
41
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
2
|
+
import type { AnalyticsEventPayload } from './types/events';
|
|
3
3
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
4
4
|
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
5
5
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { AnalyticsEventPayloadWithChannel } from './types';
|
|
2
|
+
import type { AnalyticsEventPayloadWithChannel } from './types/events';
|
|
3
3
|
export declare function getAnalyticsEventsFromTransaction(tr: Transaction | ReadonlyTransaction): AnalyticsEventPayloadWithChannel[];
|
|
@@ -6,4 +6,7 @@ export type { OptionConfig, CardPluginActions, QueueCardsFromTransactionAction,
|
|
|
6
6
|
export { LinkToolbarButtonGroup } from './LinkToolbarButtonGroup';
|
|
7
7
|
export { getButtonGroupOption } from './link-toolbar-button-group-options';
|
|
8
8
|
export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
|
|
9
|
-
export {
|
|
9
|
+
export { IconCard } from './ui/assets/card';
|
|
10
|
+
export { IconInline } from './ui/assets/inline';
|
|
11
|
+
export { IconEmbed } from './ui/assets/embed';
|
|
12
|
+
export { IconUrl } from './ui/assets/url';
|
|
@@ -298,6 +298,11 @@ export type CollabActivityJoinPayload = CollabActivityData & {
|
|
|
298
298
|
export type CollabActivityAckPayload = CollabActivityData & {
|
|
299
299
|
type: 'activity:ack';
|
|
300
300
|
};
|
|
301
|
+
export type CollabActivityAIProviderChangedPayload = CollabActivityData & {
|
|
302
|
+
type: 'ai-provider:change';
|
|
303
|
+
action: 'add' | 'remove';
|
|
304
|
+
providerId?: string;
|
|
305
|
+
};
|
|
301
306
|
export interface CollabEventTelepointerData {
|
|
302
307
|
type: 'telepointer';
|
|
303
308
|
selection: CollabSendableSelection;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SimplifiedNode } from '../analytics';
|
|
3
|
-
export type { SimplifiedNode };
|
|
4
3
|
export declare const getDocStructure: (doc: PMNode, options?: {
|
|
5
4
|
compact?: boolean;
|
|
6
5
|
}) => SimplifiedNode | string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
|
|
2
|
-
export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
|
|
3
1
|
export declare const wrapperDefault: import("@emotion/react").SerializedStyles;
|
|
4
2
|
export declare const overlay: import("@emotion/react").SerializedStyles;
|
|
5
3
|
export declare const placeholderFallback: import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionProvider } from './types';
|
|
1
|
+
import type { ExtensionProvider } from './types/extension-provider';
|
|
2
2
|
/**
|
|
3
3
|
* Allow to run methods from the `ExtensionProvider` interface across all providers seamlessly.
|
|
4
4
|
* This handles promise racing and discards rejected promises safely.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { ExtensionAutoConvertHandler, ExtensionKey, ExtensionManifest,
|
|
1
|
+
import type { ExtensionAutoConvertHandler, ExtensionKey, ExtensionManifest, ExtensionType } from './types/extension-manifest';
|
|
2
|
+
import type { Parameters } from './types/extension-parameters';
|
|
3
|
+
import type { ExtensionProvider } from './types/extension-provider';
|
|
2
4
|
export default class DefaultExtensionProvider<T extends Parameters> implements ExtensionProvider<T> {
|
|
3
5
|
private manifestsPromise;
|
|
4
6
|
private autoConvertHandlers?;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
|
|
3
|
+
import type { ExtensionParams, MultiBodiedExtensionActions, ReferenceEntity } from './types/extension-handler';
|
|
4
|
+
import type { ExtensionKey, ExtensionType } from './types/extension-manifest';
|
|
5
|
+
import type { Parameters } from './types/extension-parameters';
|
|
6
|
+
import type { ExtensionProvider } from './types/extension-provider';
|
|
7
|
+
export declare function getExtensionModuleNode(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): Promise<import("./types/extension-manifest").ExtensionModuleNode<any>>;
|
|
6
8
|
/**
|
|
7
9
|
* Gets `__` prefixed properties from an extension node module definition
|
|
8
10
|
*/
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
|
-
import type { ExtensionAPI
|
|
2
|
+
import type { ExtensionAPI } from './types/extension-handler';
|
|
3
|
+
import type { ExtensionAutoConvertHandler, ExtensionManifest, ExtensionModule } from './types/extension-manifest';
|
|
4
|
+
import type { ExtensionToolbarButton } from './types/extension-manifest-toolbar-item';
|
|
5
|
+
import type { Parameters } from './types/extension-parameters';
|
|
6
|
+
import type { ExtensionProvider } from './types/extension-provider';
|
|
7
|
+
import type { MenuItem } from './types/utils';
|
|
3
8
|
export declare const groupBy: <T>(arr: T[], attr: keyof T, keyRenamer: (key: T[keyof T]) => string) => {
|
|
4
9
|
[k: string]: T;
|
|
5
10
|
};
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
1
|
+
export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './extensions/types/field-definitions';
|
|
2
|
+
export { createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getQuickInsertItemsFromModule, getContextualToolbarItemsFromModule, buildMenuItem, } from './extensions/module-helpers';
|
|
3
|
+
export { default as DefaultExtensionProvider } from './extensions/default-extension-provider';
|
|
4
|
+
export { default as combineExtensionProviders } from './extensions/combine-extension-providers';
|
|
5
|
+
export { getExtensionKeyAndNodeKey, resolveImport } from './extensions/manifest-helpers';
|
|
6
|
+
export { getExtensionModuleNode, getNodeRenderer, getExtensionModuleNodePrivateProps, } from './extensions/extension-handlers';
|
|
7
|
+
export { getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, getUserFieldContextProvider, } from './extensions/extension-fields-helpers';
|
|
8
|
+
export { configPanelMessages, messages } from './extensions/messages';
|
|
9
|
+
export type { Extension, ExtensionHandler, ExtensionHandlers, ExtensionParams, UpdateExtension, OnSaveCallback, ExtensionAPI, TransformBefore, TransformAfter, ReferenceEntity, MultiBodiedExtensionActions, ParametersGetter, AsyncParametersGetter, } from './extensions/types/extension-handler';
|
|
10
|
+
export type { ExtensionAutoConvertHandler, ExtensionComponentProps, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionModules, ExtensionQuickInsertModule, ExtensionType, Icon, MaybeADFEntity, CustomFieldResolver, UserFieldContextProvider, DynamicFieldDefinitions, } from './extensions/types/extension-manifest';
|
|
11
|
+
export type { ExtensionProvider } from './extensions/types/extension-provider';
|
|
12
|
+
export type { ExtensionToolbarButton, ContextualToolbar, ToolbarItem, } from './extensions/types/extension-manifest-toolbar-item';
|
|
13
|
+
export type { MenuItem, MenuItemMap } from './extensions/types/utils';
|
|
14
|
+
export type { Parameters, ParametersWithDuplicateFields, } from './extensions/types/extension-parameters';
|
|
15
|
+
export type { BooleanField, CustomField, UserFieldContext, UserField, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, FieldHandlerLink, } from './extensions/types/field-definitions';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CardAdf, DatasourceAdf } from '@atlaskit/smart-card';
|
|
2
2
|
export type CardAppearance = 'inline' | 'block' | 'embed';
|
|
3
|
-
export type { CardAdf, DatasourceAdf };
|
|
4
3
|
export interface CardProvider {
|
|
5
4
|
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean): Promise<CardAdf | DatasourceAdf>;
|
|
6
5
|
findPattern(url: string): Promise<boolean>;
|
|
@@ -3,7 +3,7 @@ import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
|
3
3
|
import type { MentionProvider } from '@atlaskit/mention/types';
|
|
4
4
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
5
5
|
import type { CollabEditProvider } from '../collab';
|
|
6
|
-
import type { ExtensionProvider } from '../extensions/types';
|
|
6
|
+
import type { ExtensionProvider } from '../extensions/types/extension-provider';
|
|
7
7
|
import type { AutoformattingProvider } from './autoformatting-provider';
|
|
8
8
|
import type { CardProvider } from './card-provider';
|
|
9
9
|
import type { ContextIdentifierProvider } from './context-identifier-provider';
|
|
@@ -6,7 +6,7 @@ export type { MediaProvider } from './provider-factory/media-provider';
|
|
|
6
6
|
export type { ImageUploadProvider, InsertedImageProperties, } from './provider-factory/image-upload-provider';
|
|
7
7
|
export type { MacroProvider, MacroAttributes, ExtensionType, } from './provider-factory/macro-provider';
|
|
8
8
|
export type { SearchProvider, LinkContentType, QuickSearchResult, } from './provider-factory/search-provider';
|
|
9
|
-
export type { CardProvider, CardAppearance
|
|
9
|
+
export type { CardProvider, CardAppearance } from './provider-factory/card-provider';
|
|
10
10
|
export type { QuickInsertItem, QuickInsertItemId, QuickInsertActionInsert, QuickInsertProvider, } from './provider-factory/quick-insert-provider';
|
|
11
11
|
export type { TypeAheadItem, TypeAheadItemRenderProps } from './types/type-ahead';
|
|
12
12
|
export type { AutoformatReplacement, AutoformattingProvider, AutoformatHandler, AutoformatRuleset, } from './provider-factory/autoformatting-provider';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import type { HeadingLevels, IconProps } from '../../types';
|
|
4
|
-
export { default as IconCustomPanel } from './custom-panel';
|
|
5
|
-
export { default as IconFallback } from './fallback';
|
|
6
4
|
export declare const IconAction: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
7
5
|
export declare const IconCode: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
8
6
|
export declare const IconDate: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
@@ -37,3 +35,4 @@ export declare const IconDatasourceJiraIssue: React.ComponentType<React.PropsWit
|
|
|
37
35
|
export declare const IconDatasourceAssetsObjects: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
38
36
|
export declare const IconDatasourceConfluenceSearch: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
39
37
|
export declare const IconLoom: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
38
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand,
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconDatasourceConfluenceSearch, IconLoom, IconOneColumnLayout, IconTwoColumnLayout, IconThreeColumnLayout, IconFourColumnLayout, IconFiveColumnLayout, } from './assets';
|
|
2
|
+
export { default as IconCustomPanel } from './assets/custom-panel';
|
|
3
|
+
export { default as IconFallback } from './assets/fallback';
|
|
2
4
|
export { memoProcessQuickInsertItems, find } from './utils';
|
|
3
5
|
export { messages } from './messages';
|
|
@@ -7,7 +7,8 @@ export { RelativeSelectionPos } from './types';
|
|
|
7
7
|
export type { SelectionPluginState, EditorSelectionAPI, SelectionPluginOptions, SelectionSharedState, SetSelectionRelativeToNode, } from './types';
|
|
8
8
|
export { GapCursorSelection, Side, JSON_ID, GapBookmark } from './gap-cursor/selection';
|
|
9
9
|
export { setSelectionTopLevelBlocks, setGapCursorAtPos } from './gap-cursor/actions';
|
|
10
|
-
export { isIgnored
|
|
10
|
+
export { isIgnored } from './gap-cursor/utils/is-ignored';
|
|
11
|
+
export { isValidTargetNode } from './gap-cursor/utils/is-valid-target-node';
|
|
11
12
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
12
13
|
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
13
14
|
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
4
|
import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
-
import type { AnnotationState,
|
|
6
|
-
import { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './emitter';
|
|
7
|
-
export type { AnnotationState };
|
|
5
|
+
import type { AnnotationState, AnnotationUpdateEmitter } from './emitter';
|
|
8
6
|
export type AnnotationByMatches = {
|
|
9
7
|
originalSelection: string;
|
|
10
8
|
numMatches: number;
|
|
@@ -147,5 +145,4 @@ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationT
|
|
|
147
145
|
export type AnnotationProviders = {
|
|
148
146
|
inlineComment: InlineCommentAnnotationProvider;
|
|
149
147
|
};
|
|
150
|
-
export {
|
|
151
|
-
export type { AnnotationUpdateEventPayloads, OnAnnotationClickPayload };
|
|
148
|
+
export {};
|
|
@@ -3,8 +3,9 @@ export declare enum SortOrder {
|
|
|
3
3
|
DESC = "desc",
|
|
4
4
|
NO_ORDER = "no_order"
|
|
5
5
|
}
|
|
6
|
-
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
7
|
-
export type { AnnotationState,
|
|
6
|
+
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emitter';
|
|
7
|
+
export type { AnnotationState, AnnotationUpdateEventPayloads, OnAnnotationClickPayload, } from './annotation/emitter';
|
|
8
|
+
export type { AnnotationProviders, InlineCommentSelectionComponentProps, InlineCommentHoverComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
8
9
|
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue } from './editor-actions';
|
|
9
10
|
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
10
11
|
export type { CommandDispatch, Command, HigherOrderCommand, Predicate } from './command';
|
|
@@ -27,4 +27,3 @@ export declare const ExpandIconWrapper: ({ children, expanded, }: React.HTMLAttr
|
|
|
27
27
|
}) => jsx.JSX.Element;
|
|
28
28
|
export declare const expandLayoutWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
29
29
|
export declare const ExpandLayoutWrapperWithRef: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<any>>;
|
|
30
|
-
export { sharedExpandStyles, type StyleProps } from './sharedStyles';
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { type TooltipProps } from '@atlaskit/tooltip';
|
|
3
3
|
import type { ButtonAppearance } from '../../types';
|
|
4
4
|
import type { FloatingToolbarButtonSpotlightConfig } from '../../types/floating-toolbar';
|
|
5
|
-
export type { ButtonAppearance };
|
|
6
5
|
export interface Props {
|
|
7
6
|
title?: string;
|
|
8
7
|
icon?: React.ReactElement<any>;
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
8
8
|
import type { EditorAppearance } from '../../types';
|
|
9
|
-
import type { MediaSingleSize
|
|
9
|
+
import type { MediaSingleSize } from './types';
|
|
10
10
|
export interface Props {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
layout: MediaSingleLayout;
|
|
@@ -31,5 +31,4 @@ export interface Props {
|
|
|
31
31
|
dataAttributes?: Record<string, any>;
|
|
32
32
|
editorAppearance?: EditorAppearance;
|
|
33
33
|
}
|
|
34
|
-
export type { MediaSingleWidthType, MediaSingleSize };
|
|
35
34
|
export default function MediaSingle({ layout, width, height, containerWidth, isLoading, pctWidth, size, className, children: propsChildren, nodeType, fullWidthMode, lineLength: editorWidth, hasFallbackContainer, handleMediaSingleRef, isInsideOfInlineExtension, dataAttributes, }: Props): jsx.JSX.Element;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export { default as Caption } from './Caption';
|
|
2
2
|
export { default as MediaSingle } from './MediaSingle';
|
|
3
|
-
export type { Props as MediaSingleProps
|
|
3
|
+
export type { Props as MediaSingleProps } from './MediaSingle';
|
|
4
|
+
export type { MediaSingleWidthType, MediaSingleSize } from './MediaSingle/types';
|
|
4
5
|
export { MediaSingleDimensionHelper, MediaBorderGapFiller } from './MediaSingle/styled';
|
|
5
6
|
export type { MediaSingleWrapperProps as MediaSingleDimensionHelperProps } from './MediaSingle/styled';
|
|
6
7
|
export { layoutSupportsWidth, calcPxFromColumns, calcPctFromPx, calcPxFromPct, calcColumnsFromPx, snapToGrid, calcMediaPxWidth, wrappedLayouts, } from './MediaSingle/grid';
|
|
7
8
|
export { mediaLinkStyle } from './MediaSingle/link';
|
|
8
|
-
export { default as Popup
|
|
9
|
-
export
|
|
9
|
+
export { default as Popup } from './Popup';
|
|
10
|
+
export { findOverflowScrollParent } from './Popup/utils';
|
|
11
|
+
export type { Props as PopupProps } from './Popup';
|
|
12
|
+
export type { Position as PopupPosition } from './Popup/utils';
|
|
10
13
|
export { default as UnsupportedBlock } from './UnsupportedBlock';
|
|
11
14
|
export { default as UnsupportedInline } from './UnsupportedInline';
|
|
12
15
|
export { BaseTheme, mapBreakpointToLayoutMaxWidth } from './BaseTheme';
|
|
@@ -19,8 +22,9 @@ export { default as overflowShadow, shadowClassNames } from './OverflowShadow';
|
|
|
19
22
|
export type { OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, } from './OverflowShadow';
|
|
20
23
|
export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
|
|
21
24
|
export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
|
|
22
|
-
export { messages as expandMessages,
|
|
23
|
-
export
|
|
25
|
+
export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, } from './Expand';
|
|
26
|
+
export { sharedExpandStyles } from './Expand/sharedStyles';
|
|
27
|
+
export type { StyleProps as ExpandStyleProps } from './Expand/sharedStyles';
|
|
24
28
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
25
29
|
export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle, } from './clear-next-sibling-margin-top';
|
|
26
30
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
|
|
@@ -6,7 +6,7 @@ export { default as colorPaletteMessages } from './ColorPalette/Palettes/palette
|
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
7
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
8
8
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
|
|
9
|
-
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
|
|
9
|
+
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes/paletteMessagesTokenModeNames';
|
|
10
10
|
export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
|
|
11
11
|
export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
|
|
12
12
|
export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import React, { PureComponent } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { MenuItem, Props, State } from './types';
|
|
8
|
-
export type { MenuItem } from './types';
|
|
9
8
|
/**
|
|
10
9
|
* Wrapper around @atlaskit/droplist which uses Popup and Portal to render
|
|
11
10
|
* dropdown-menu outside of "overflow: hidden" containers when needed.
|
|
@@ -7,8 +7,7 @@ import type { ButtonProps } from '@atlaskit/button/types';
|
|
|
7
7
|
import type { PositionType } from '@atlaskit/tooltip';
|
|
8
8
|
import { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
9
9
|
import { type Keymap } from '../../keymaps';
|
|
10
|
-
import type { MenuItem } from '../DropdownMenu';
|
|
11
|
-
export declare const TOOLBAR_BUTTON: typeof TOOLBAR_ACTION_SUBJECT_ID;
|
|
10
|
+
import type { MenuItem } from '../DropdownMenu/types';
|
|
12
11
|
export type Props = {
|
|
13
12
|
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
14
13
|
className?: string;
|