@atlaskit/editor-common 74.54.0 → 74.55.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 +17 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/cjs/card/utils.js +2 -2
- package/dist/cjs/commands/index.js +2 -2
- package/dist/cjs/extensions/manifest-helpers.js +2 -2
- package/dist/cjs/extensions/module-helpers.js +2 -2
- package/dist/cjs/guideline/dynamicGuideline.js +2 -2
- package/dist/cjs/guideline/updateGuideline.js +2 -2
- package/dist/cjs/hooks/useSharedPluginState.js +2 -2
- package/dist/cjs/insert/index.js +2 -2
- package/dist/cjs/monitoring/error.js +3 -3
- package/dist/cjs/provider-factory/with-providers.js +2 -2
- package/dist/cjs/quick-insert/index.js +0 -6
- package/dist/cjs/quick-insert/utils.js +2 -29
- package/dist/cjs/resizer/Resizer.js +2 -2
- package/dist/cjs/styles/shared/panel.js +20 -23
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +14 -14
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -2
- package/dist/cjs/ui/FloatingToolbar/styles.js +11 -14
- package/dist/cjs/ui/Layer/index.js +2 -2
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui/Popup/utils.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +19 -22
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/cjs/utils/filter/privacy-filter.js +2 -2
- package/dist/cjs/utils/input-rules.js +2 -2
- package/dist/cjs/utils/profiler/render-count.js +2 -2
- package/dist/cjs/utils/rich-media-utils.js +2 -2
- package/dist/cjs/utils/track-unsupported-content.js +2 -2
- package/dist/cjs/utils/validator.js +2 -2
- package/dist/cjs/with-plugin-state/index.js +2 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/index.js +1 -1
- package/dist/es2019/quick-insert/utils.js +1 -20
- package/dist/es2019/styles/shared/panel.js +20 -20
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +14 -14
- package/dist/es2019/ui/FloatingToolbar/styles.js +11 -11
- package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +19 -19
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/esm/card/utils.js +2 -2
- package/dist/esm/commands/index.js +2 -2
- package/dist/esm/extensions/manifest-helpers.js +2 -2
- package/dist/esm/extensions/module-helpers.js +2 -2
- package/dist/esm/guideline/dynamicGuideline.js +2 -2
- package/dist/esm/guideline/updateGuideline.js +2 -2
- package/dist/esm/hooks/useSharedPluginState.js +2 -2
- package/dist/esm/insert/index.js +2 -2
- package/dist/esm/monitoring/error.js +3 -3
- package/dist/esm/provider-factory/with-providers.js +2 -2
- package/dist/esm/quick-insert/index.js +1 -1
- package/dist/esm/quick-insert/utils.js +1 -27
- package/dist/esm/resizer/Resizer.js +2 -2
- package/dist/esm/styles/shared/panel.js +20 -20
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +14 -14
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +11 -11
- package/dist/esm/ui/Layer/index.js +2 -2
- package/dist/esm/ui/Popup/index.js +2 -2
- package/dist/esm/ui/Popup/utils.js +2 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +2 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +2 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +19 -19
- package/dist/esm/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/esm/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/esm/utils/filter/privacy-filter.js +2 -2
- package/dist/esm/utils/input-rules.js +2 -2
- package/dist/esm/utils/profiler/render-count.js +2 -2
- package/dist/esm/utils/rich-media-utils.js +2 -2
- package/dist/esm/utils/track-unsupported-content.js +2 -2
- package/dist/esm/utils/validator.js +2 -2
- package/dist/esm/with-plugin-state/index.js +2 -2
- package/dist/types/quick-insert/index.d.ts +1 -1
- package/dist/types/quick-insert/utils.d.ts +1 -6
- package/dist/types/styles/shared/panel.d.ts +1 -1
- package/dist/types/types/quick-insert.d.ts +1 -2
- package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/utils.d.ts +1 -6
- package/dist/types-ts4.5/styles/shared/panel.d.ts +1 -1
- package/dist/types-ts4.5/types/quick-insert.d.ts +1 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +1 -1
- package/package.json +4 -4
|
@@ -12,8 +12,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
12
12
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
13
13
|
var _excluded = ["children"];
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
19
19
|
/** @jsx jsx */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
// This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
|
|
7
7
|
// If you make any change here, copy it to above file as well
|
|
8
8
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
5
5
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
5
5
|
import { canJoin, findWrapping } from '@atlaskit/editor-prosemirror/transform';
|
|
6
6
|
import { JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST } from '../analytics';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
export var PROFILER_KEY = '__editorRenderCountProfiler';
|
|
7
7
|
export var RenderCountProfiler = /*#__PURE__*/function () {
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { calcPxFromColumns, wrappedLayouts } from '../ui/MediaSingle/grid';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
5
5
|
var whitelistedAttributes = ['align', 'annotationType', 'extensionKey', 'extensionType', 'layout', 'type', 'localId', 'mode', 'language', 'timestamp', 'state', 'originalWidth', 'originalHeight', 'height', 'width', 'shortName', 'level', 'userType', 'order', 'panelType', 'color', 'style', 'isNumberColumnEnabled', 'colspan', 'rowspan', 'colwidth', 'background'];
|
|
6
6
|
function concatAncestorHierarchy(node, ancestoryHierarchy) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
6
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
7
7
|
export var ADFStages = {
|
|
@@ -5,8 +5,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, } from './assets';
|
|
2
|
-
export { memoProcessQuickInsertItems,
|
|
2
|
+
export { memoProcessQuickInsertItems, find } from './utils';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { QuickInsertItem } from '../provider-factory';
|
|
3
|
-
import type { QuickInsertHandler
|
|
3
|
+
import type { QuickInsertHandler } from '../types';
|
|
4
4
|
declare const processQuickInsertItems: (items: Array<QuickInsertHandler | QuickInsertItem>, intl: IntlShape) => QuickInsertItem[];
|
|
5
5
|
export declare const memoProcessQuickInsertItems: typeof processQuickInsertItems;
|
|
6
6
|
export declare function find(query: string, items: QuickInsertItem[]): QuickInsertItem[];
|
|
7
|
-
export declare const getQuickInsertSuggestions: ({ searchOptions, lazyDefaultItems, providedItems, }: {
|
|
8
|
-
searchOptions: QuickInsertSearchOptions;
|
|
9
|
-
lazyDefaultItems?: (() => QuickInsertItem[]) | undefined;
|
|
10
|
-
providedItems?: QuickInsertItem[] | undefined;
|
|
11
|
-
}) => QuickInsertItem[];
|
|
12
7
|
export {};
|
|
@@ -20,7 +20,6 @@ export type QuickInsertPluginState = {
|
|
|
20
20
|
providedItems?: QuickInsertItem[];
|
|
21
21
|
provider?: QuickInsertProvider;
|
|
22
22
|
emptyStateHandler?: EmptyStateHandler;
|
|
23
|
-
suggestions?: QuickInsertItem[];
|
|
24
23
|
searchOptions?: QuickInsertSearchOptions;
|
|
25
24
|
};
|
|
26
25
|
export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
|
|
@@ -32,7 +31,7 @@ export interface QuickInsertPluginOptions {
|
|
|
32
31
|
emptyStateHandler?: EmptyStateHandler;
|
|
33
32
|
}
|
|
34
33
|
export type QuickInsertSharedState = {
|
|
35
|
-
suggestions: QuickInsertItem[];
|
|
36
34
|
lazyDefaultItems: () => QuickInsertItem[];
|
|
37
35
|
emptyStateHandler?: EmptyStateHandler;
|
|
36
|
+
providedItems?: QuickInsertItem[];
|
|
38
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaletteColor } from './type';
|
|
1
|
+
import type { PaletteColor } from './type';
|
|
2
2
|
/** this is not new usage - old code extracted from editor-core */
|
|
3
3
|
export declare const lightModeStatusColorPalette: PaletteColor[];
|
|
4
4
|
export declare const darkModeStatusColorPalette: PaletteColor[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, } from './assets';
|
|
2
|
-
export { memoProcessQuickInsertItems,
|
|
2
|
+
export { memoProcessQuickInsertItems, find } from './utils';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { QuickInsertItem } from '../provider-factory';
|
|
3
|
-
import type { QuickInsertHandler
|
|
3
|
+
import type { QuickInsertHandler } from '../types';
|
|
4
4
|
declare const processQuickInsertItems: (items: Array<QuickInsertHandler | QuickInsertItem>, intl: IntlShape) => QuickInsertItem[];
|
|
5
5
|
export declare const memoProcessQuickInsertItems: typeof processQuickInsertItems;
|
|
6
6
|
export declare function find(query: string, items: QuickInsertItem[]): QuickInsertItem[];
|
|
7
|
-
export declare const getQuickInsertSuggestions: ({ searchOptions, lazyDefaultItems, providedItems, }: {
|
|
8
|
-
searchOptions: QuickInsertSearchOptions;
|
|
9
|
-
lazyDefaultItems?: (() => QuickInsertItem[]) | undefined;
|
|
10
|
-
providedItems?: QuickInsertItem[] | undefined;
|
|
11
|
-
}) => QuickInsertItem[];
|
|
12
7
|
export {};
|
|
@@ -20,7 +20,6 @@ export type QuickInsertPluginState = {
|
|
|
20
20
|
providedItems?: QuickInsertItem[];
|
|
21
21
|
provider?: QuickInsertProvider;
|
|
22
22
|
emptyStateHandler?: EmptyStateHandler;
|
|
23
|
-
suggestions?: QuickInsertItem[];
|
|
24
23
|
searchOptions?: QuickInsertSearchOptions;
|
|
25
24
|
};
|
|
26
25
|
export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
|
|
@@ -32,7 +31,7 @@ export interface QuickInsertPluginOptions {
|
|
|
32
31
|
emptyStateHandler?: EmptyStateHandler;
|
|
33
32
|
}
|
|
34
33
|
export type QuickInsertSharedState = {
|
|
35
|
-
suggestions: QuickInsertItem[];
|
|
36
34
|
lazyDefaultItems: () => QuickInsertItem[];
|
|
37
35
|
emptyStateHandler?: EmptyStateHandler;
|
|
36
|
+
providedItems?: QuickInsertItem[];
|
|
38
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaletteColor } from './type';
|
|
1
|
+
import type { PaletteColor } from './type';
|
|
2
2
|
/** this is not new usage - old code extracted from editor-core */
|
|
3
3
|
export declare const lightModeStatusColorPalette: PaletteColor[];
|
|
4
4
|
export declare const darkModeStatusColorPalette: PaletteColor[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.55.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/link-picker": "^1.28.0",
|
|
104
104
|
"@atlaskit/media-card": "^76.1.0",
|
|
105
105
|
"@atlaskit/media-client": "^23.1.0",
|
|
106
|
-
"@atlaskit/media-picker": "^66.
|
|
106
|
+
"@atlaskit/media-picker": "^66.2.0",
|
|
107
107
|
"@atlaskit/mention": "^22.1.0",
|
|
108
108
|
"@atlaskit/menu": "^1.10.0",
|
|
109
109
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@atlaskit/spinner": "^15.5.0",
|
|
113
113
|
"@atlaskit/task-decision": "^17.7.0",
|
|
114
114
|
"@atlaskit/theme": "^12.5.0",
|
|
115
|
-
"@atlaskit/tokens": "^1.
|
|
115
|
+
"@atlaskit/tokens": "^1.18.0",
|
|
116
116
|
"@atlaskit/tooltip": "^17.8.0",
|
|
117
117
|
"@atlaskit/ufo": "^0.2.0",
|
|
118
118
|
"@atlaskit/width-detector": "^4.1.0",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"devDependencies": {
|
|
147
147
|
"@atlaskit/media-core": "^34.1.0",
|
|
148
148
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
149
|
-
"@atlaskit/smart-card": "^26.
|
|
149
|
+
"@atlaskit/smart-card": "^26.19.0",
|
|
150
150
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
151
151
|
"@atlaskit/visual-regression": "*",
|
|
152
152
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|