@atlaskit/editor-common 62.0.0 → 63.0.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 +86 -0
- package/dist/cjs/extensions/manifest-helpers.js +2 -2
- package/dist/cjs/extensions/module-helpers.js +2 -2
- package/dist/cjs/icons/index.js +45 -0
- package/dist/cjs/icons/shared/PanelErrorIcon.js +37 -0
- package/dist/cjs/icons/shared/PanelInfoIcon.js +37 -0
- package/dist/cjs/icons/shared/PanelNoteIcon.js +37 -0
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +37 -0
- package/dist/cjs/icons/shared/PanelWarningIcon.js +37 -0
- package/dist/cjs/index.js +1 -945
- package/dist/cjs/provider-factory/with-providers.js +2 -2
- package/dist/cjs/styles/index.js +20 -16
- package/dist/cjs/styles/shared/panel.js +26 -8
- package/dist/cjs/styles/shared/table.js +2 -1
- package/dist/cjs/styles/shared/text-color.js +17 -0
- package/dist/cjs/ui/LegacyToNextIntlProvider/index.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/Popup/index.js +4 -4
- package/dist/cjs/ui/Popup/utils.js +2 -2
- package/dist/cjs/ui/index.js +0 -16
- package/dist/cjs/utils/browser.js +1 -1
- package/dist/cjs/utils/profiler/render-count.js +2 -2
- package/dist/cjs/utils/track-unsupported-content.js +2 -2
- package/dist/cjs/utils/validator.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/icons/index.js +5 -0
- package/dist/es2019/icons/shared/PanelErrorIcon.js +24 -0
- package/dist/es2019/icons/shared/PanelInfoIcon.js +24 -0
- package/dist/es2019/icons/shared/PanelNoteIcon.js +24 -0
- package/dist/es2019/icons/shared/PanelSuccessIcon.js +24 -0
- package/dist/es2019/icons/shared/PanelWarningIcon.js +24 -0
- package/dist/es2019/index.js +5 -25
- package/dist/es2019/styles/index.js +3 -6
- package/dist/es2019/styles/shared/panel.js +20 -8
- package/dist/es2019/styles/shared/table.js +3 -2
- package/dist/es2019/styles/shared/text-color.js +10 -0
- package/dist/es2019/ui/Popup/index.js +2 -2
- package/dist/es2019/ui/index.js +1 -8
- package/dist/es2019/utils/browser.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/extensions/manifest-helpers.js +2 -2
- package/dist/esm/extensions/module-helpers.js +2 -2
- package/dist/esm/icons/index.js +5 -0
- package/dist/esm/icons/shared/PanelErrorIcon.js +24 -0
- package/dist/esm/icons/shared/PanelInfoIcon.js +24 -0
- package/dist/esm/icons/shared/PanelNoteIcon.js +24 -0
- package/dist/esm/icons/shared/PanelSuccessIcon.js +24 -0
- package/dist/esm/icons/shared/PanelWarningIcon.js +24 -0
- package/dist/esm/index.js +5 -25
- package/dist/esm/provider-factory/with-providers.js +2 -2
- package/dist/esm/styles/index.js +3 -6
- package/dist/esm/styles/shared/panel.js +22 -8
- package/dist/esm/styles/shared/table.js +3 -2
- package/dist/esm/styles/shared/text-color.js +6 -0
- package/dist/esm/ui/LegacyToNextIntlProvider/index.js +2 -2
- package/dist/esm/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/esm/ui/Popup/index.js +4 -4
- package/dist/esm/ui/Popup/utils.js +2 -2
- package/dist/esm/ui/index.js +1 -8
- package/dist/esm/utils/browser.js +1 -1
- package/dist/esm/utils/profiler/render-count.js +2 -2
- package/dist/esm/utils/track-unsupported-content.js +2 -2
- package/dist/esm/utils/validator.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +1 -0
- package/dist/types/icons/index.d.ts +5 -0
- package/dist/types/icons/shared/PanelErrorIcon.d.ts +3 -0
- package/dist/types/icons/shared/PanelInfoIcon.d.ts +3 -0
- package/dist/types/icons/shared/PanelNoteIcon.d.ts +3 -0
- package/dist/types/icons/shared/PanelSuccessIcon.d.ts +3 -0
- package/dist/types/icons/shared/PanelWarningIcon.d.ts +3 -0
- package/dist/types/index.d.ts +12 -19
- package/dist/types/styles/index.d.ts +2 -3
- package/dist/types/styles/shared/panel.d.ts +56 -0
- package/dist/types/styles/shared/table.d.ts +1 -0
- package/dist/types/styles/shared/text-color.d.ts +1 -0
- package/dist/types/ui/Popup/index.d.ts +1 -1
- package/dist/types/ui/WidthProvider/index.d.ts +3 -1
- package/dist/types/ui/index.d.ts +0 -3
- package/icons/package.json +7 -0
- package/package.json +18 -17
|
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
|
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
11
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
|
|
13
13
|
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); }; }
|
|
14
14
|
|
|
@@ -55,7 +55,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
}));
|
|
56
56
|
|
|
57
57
|
_defineProperty(_assertThisInitialized(_this), "onResize", function () {
|
|
58
|
-
return _this.scheduledUpdatePosition();
|
|
58
|
+
return _this.scheduledUpdatePosition(_this.props);
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
return _this;
|
|
@@ -170,7 +170,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
|
|
|
170
170
|
* which is currently working for most of the floating toolbar and other popups.
|
|
171
171
|
*/
|
|
172
172
|
|
|
173
|
-
this.scheduledUpdatePosition();
|
|
173
|
+
this.scheduledUpdatePosition(this.props);
|
|
174
174
|
}
|
|
175
175
|
}, {
|
|
176
176
|
key: "UNSAFE_componentWillReceiveProps",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
export function isBody(elem) {
|
|
9
9
|
return elem === document.body;
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
// TODO: ED-13875 Remove Emoji & EmojiProps exports once root entry point for editor-common has been removed
|
|
2
|
-
export { default as Emoji } from './Emoji'; //exported from ./src/emoji.ts
|
|
3
|
-
|
|
4
|
-
//exported from ./src/emoji.ts
|
|
5
1
|
export { default as Caption } from './Caption';
|
|
6
2
|
export { default as MediaSingle, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, shouldAddDefaultWrappedWidth } from './MediaSingle';
|
|
7
3
|
export { MediaSingleDimensionHelper } from './MediaSingle/styled';
|
|
8
4
|
export { layoutSupportsWidth, calcPxFromColumns, calcPctFromPx, calcPxFromPct, calcColumnsFromPx, snapToGrid } from './MediaSingle/grid';
|
|
9
|
-
export { MediaLink } from './MediaSingle/link';
|
|
10
|
-
|
|
11
|
-
export { default as Mention } from './Mention'; //exported from ./src/mention.ts
|
|
12
|
-
|
|
5
|
+
export { MediaLink } from './MediaSingle/link';
|
|
13
6
|
export { default as Popup, findOverflowScrollParent } from './Popup';
|
|
14
7
|
export { default as UnsupportedBlock } from './UnsupportedBlock';
|
|
15
8
|
export { default as UnsupportedInline } from './UnsupportedInline';
|
|
@@ -22,7 +22,7 @@ if (typeof navigator !== 'undefined') {
|
|
|
22
22
|
result.ie_version = ieUpTo10 ? document.documentMode || 6 : ie11up ? +ie11up[1] : ieEdge ? +ieEdge[1] : null;
|
|
23
23
|
result.gecko = !ie && /gecko\/\d/i.test(navigator.userAgent);
|
|
24
24
|
result.chrome = !ie && /Chrome\//.test(navigator.userAgent);
|
|
25
|
-
result.chrome_version = parseInt((navigator.userAgent.match(/Chrome\/(\d
|
|
25
|
+
result.chrome_version = parseInt((navigator.userAgent.match(/Chrome\/(\d+)/) || [])[1], 10);
|
|
26
26
|
result.android = /Android \d/.test(navigator.userAgent);
|
|
27
27
|
result.ios = !ie && /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent);
|
|
28
28
|
result.webkit = !ie && !!document.documentElement && 'WebkitAppearance' in document.documentElement.style;
|
|
@@ -2,9 +2,9 @@ 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
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
export var PROFILER_KEY = '__editorRenderCountProfiler';
|
|
10
10
|
export var RenderCountProfiler = /*#__PURE__*/function () {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from './analytics';
|
|
8
8
|
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'];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
import { defaultSchema, inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
9
9
|
export var ADFStages = {
|
package/dist/esm/version.json
CHANGED
|
@@ -21,6 +21,7 @@ export declare type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
|
21
21
|
allowSelectionToNewNode?: boolean;
|
|
22
22
|
}) => void;
|
|
23
23
|
scrollTo: (localId: string) => void;
|
|
24
|
+
update: (localId: string, mutationCallback: (currentValue: Pick<ADFEntity, 'attrs' | 'marks'>) => Pick<ADFEntity, 'attrs' | 'marks'>) => void;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
export declare type UpdateExtension<T extends Parameters = Parameters> = (extensionParameters: T, actions?: ExtensionAPI<T>) => Promise<T | void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PanelInfoIcon } from './shared/PanelInfoIcon';
|
|
2
|
+
export { PanelWarningIcon } from './shared/PanelWarningIcon';
|
|
3
|
+
export { PanelErrorIcon } from './shared/PanelErrorIcon';
|
|
4
|
+
export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
|
|
5
|
+
export { PanelNoteIcon } from './shared/PanelNoteIcon';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type { CollabEditProvider, CollabEvent, CollabEventData, CollabEventConnectionData, CollabEventInitData, CollabParticipant, CollabEventPresenceData, CollabEventLocalStepData, CollabEventRemoteData, CollabSendableSelection, CollabEventTelepointerData, } from './collab/types';
|
|
7
|
-
export { DefaultExtensionProvider, combineExtensionProviders, getExtensionKeyAndNodeKey, getExtensionModuleNode, getExtensionModuleNodePrivateProps, getQuickInsertItemsFromModule, getNodeRenderer, getContextualToolbarItemsFromModule, buildMenuItem, resolveImport, } from './extensions';
|
|
8
|
-
export type { Extension, ExtensionComponentProps, ExtensionHandler, ExtensionHandlers, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionQuickInsertModule, ExtensionModules, ExtensionParams, ExtensionProvider, ExtensionType, ExtensionToolbarButton, ToolbarItem, ContextualToolbar, MaybeADFEntity, Parameters, MenuItem, MenuItemMap, UpdateExtension, ReferenceEntity, } from './extensions';
|
|
1
|
+
export type { ADDoc, // temporarily keep for confluence
|
|
2
|
+
ADNode, } from './utils';
|
|
3
|
+
export type { ExtensionHandler, // temporarily keep for confluence
|
|
4
|
+
ExtensionHandlers, // temporarily keep for confluence
|
|
5
|
+
ExtensionParams, } from './extensions';
|
|
9
6
|
export type { ContextIdentifierProvider } from './provider-factory/context-identifier-provider';
|
|
7
|
+
export type { SearchProvider } from './provider-factory';
|
|
10
8
|
export { ProviderFactory, WithProviders } from './provider-factory';
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ErrorMessage, ExpandIconWrapper, ExpandLayoutWrapper, HelperMessage, MediaSingle, MediaSingleDimensionHelper, Mention, //exported from ./src/mention.ts
|
|
18
|
-
Popup, UnsupportedBlock, UnsupportedInline, ValidMessage, WidthConsumer, WidthProvider, WithCreateAnalyticsEvent, calcColumnsFromPx, calcPctFromPx, calcPxFromColumns, calcPxFromPct, expandMessages, findOverflowScrollParent, getBreakpoint, layoutSupportsWidth, mapBreakpointToLayoutMaxWidth, overflowShadow, shadowClassNames, sharedExpandStyles, snapToGrid, withOuterListeners, MediaLink, wrappedLayouts, shouldAddDefaultWrappedWidth, IntlNextErrorBoundary, REACT_INTL_ERROR_MESSAGE, IntlLegacyFallbackProvider, LegacyToNextIntlProvider, } from './ui';
|
|
19
|
-
export type { CardEventClickHandler, CardSurroundings, EmojiProps, EventHandlers, LinkEventClickHandler, MediaSingleDimensionHelperProps, MediaSingleProps, MentionEventHandler, MentionEventHandlers, OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, PopupPosition, PopupProps, SmartCardEventClickHandler, WidthConsumerContext, ExpandStyleProps, } from './ui';
|
|
20
|
-
export { linkMessages } from './messages/link';
|
|
21
|
-
export { validateADFEntity, validationErrorHandler, } from './utils/validate-using-spec';
|
|
9
|
+
export { WidthConsumer, // temporarily keep for confluence
|
|
10
|
+
WidthProvider, } from './ui';
|
|
11
|
+
export type { EventHandlers, // temporarily keep for confluence
|
|
12
|
+
LinkEventClickHandler, // temporarily keep for confluence
|
|
13
|
+
MentionEventHandler, // temporarily keep for confluence
|
|
14
|
+
SmartCardEventClickHandler, } from './ui';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export { textColorStyles } from './shared/text-color';
|
|
1
2
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, } from './shared/table';
|
|
2
3
|
export { AnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
3
4
|
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
4
5
|
export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
|
|
5
6
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
6
7
|
export { headingsSharedStyles } from './shared/headings';
|
|
7
|
-
export { getPanelTypeBackground, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors, } from './shared/panel';
|
|
8
|
+
export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors, } from './shared/panel';
|
|
8
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
9
10
|
export { whitespaceSharedStyles } from './shared/whitespace';
|
|
10
11
|
export { paragraphSharedStyles } from './shared/paragraph';
|
|
@@ -17,7 +18,5 @@ export { codeMarkSharedStyles } from './shared/code-mark';
|
|
|
17
18
|
export { shadowSharedStyle } from './shared/shadow';
|
|
18
19
|
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
19
20
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, } from './shared/task-decision';
|
|
20
|
-
export { MentionSharedCssClassName } from './shared/mention';
|
|
21
|
-
export { EmojiSharedCssClassName } from './shared/emoji';
|
|
22
21
|
export { StatusSharedCssClassName } from './shared/status';
|
|
23
22
|
export { smartCardSharedStyles, SmartCardSharedCssClassName, } from './shared/smart-card';
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
2
|
import { ThemeProps } from '@atlaskit/theme/types';
|
|
3
|
+
export declare const darkPanelColors: {
|
|
4
|
+
info: string;
|
|
5
|
+
error: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
tip: string;
|
|
8
|
+
success: string;
|
|
9
|
+
note: string;
|
|
10
|
+
R900: string;
|
|
11
|
+
R100S: string;
|
|
12
|
+
R300S: string;
|
|
13
|
+
R500S: string;
|
|
14
|
+
R800S: string;
|
|
15
|
+
R1200S: string;
|
|
16
|
+
Y900: string;
|
|
17
|
+
Y100S: string;
|
|
18
|
+
Y300S: string;
|
|
19
|
+
Y500S: string;
|
|
20
|
+
Y800S: string;
|
|
21
|
+
Y1200S: string;
|
|
22
|
+
G900: string;
|
|
23
|
+
G100S: string;
|
|
24
|
+
G300S: string;
|
|
25
|
+
G400S: string;
|
|
26
|
+
G900S: string;
|
|
27
|
+
G1200S: string;
|
|
28
|
+
B900: string;
|
|
29
|
+
B100S: string;
|
|
30
|
+
B300S: string;
|
|
31
|
+
B500S: string;
|
|
32
|
+
B800S: string;
|
|
33
|
+
B1200S: string;
|
|
34
|
+
P900: string;
|
|
35
|
+
P100S: string;
|
|
36
|
+
P300S: string;
|
|
37
|
+
P500S: string;
|
|
38
|
+
P800S: string;
|
|
39
|
+
P1200S: string;
|
|
40
|
+
T900: string;
|
|
41
|
+
T100S: string;
|
|
42
|
+
T300S: string;
|
|
43
|
+
T400S: string;
|
|
44
|
+
T900S: string;
|
|
45
|
+
T1200S: string;
|
|
46
|
+
DarkGray: string;
|
|
47
|
+
Gray: string;
|
|
48
|
+
LightGray: string;
|
|
49
|
+
TextColor: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const getPanelDarkColor: (panelColor: string) => string;
|
|
3
52
|
export declare const getPanelBackgroundDarkModeColors: string;
|
|
4
53
|
export declare function getPanelDarkModeCSS(colorName: string, colorValue: string): string;
|
|
5
54
|
export declare const PanelSharedCssClassName: {
|
|
@@ -14,13 +63,20 @@ export declare const PanelSharedSelectors: {
|
|
|
14
63
|
errorPanel: string;
|
|
15
64
|
successPanel: string;
|
|
16
65
|
noteButton: string;
|
|
66
|
+
warningButton: string;
|
|
17
67
|
removeButton: string;
|
|
18
68
|
colorPalette: string;
|
|
19
69
|
selectedColor: string;
|
|
20
70
|
removeEmojiIcon: string;
|
|
21
71
|
emojiIcon: string;
|
|
22
72
|
selectedEmoji: string;
|
|
73
|
+
addYourOwnEmoji: string;
|
|
74
|
+
emojiNameInCustomEmoji: string;
|
|
23
75
|
title: string;
|
|
76
|
+
emojiPopup: string;
|
|
77
|
+
searchEmoji: string;
|
|
78
|
+
orangeWarningIcon: string;
|
|
79
|
+
yellowWarningIcon: string;
|
|
24
80
|
};
|
|
25
81
|
export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>, props?: ThemeProps) => string;
|
|
26
82
|
export declare const panelSharedStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme/types").AtlaskitThemeProps | import("@atlaskit/theme/types").CustomThemeProps | import("@atlaskit/theme/types").NoThemeProps | undefined, any>>[];
|
|
@@ -18,6 +18,7 @@ export declare const TableSharedCssClassName: {
|
|
|
18
18
|
TABLE_STICKY_SENTINEL_BOTTOM: string;
|
|
19
19
|
TABLE_CELL_NODEVIEW_CONTENT_DOM: string;
|
|
20
20
|
TABLE_CELL_WRAPPER: string;
|
|
21
|
+
TABLE_HEADER_CELL_WRAPPER: string;
|
|
21
22
|
};
|
|
22
23
|
declare const tableSharedStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
|
|
23
24
|
export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number | undefined, addControllerPadding?: boolean) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textColorStyles: import("styled-components").InterpolationValue[];
|
|
@@ -46,7 +46,7 @@ export default class Popup extends React.Component<Props, State> {
|
|
|
46
46
|
private initPopup;
|
|
47
47
|
private handleRef;
|
|
48
48
|
private scheduledUpdatePosition;
|
|
49
|
-
onResize: () =>
|
|
49
|
+
onResize: () => void;
|
|
50
50
|
UNSAFE_componentWillReceiveProps(newProps: Props): void;
|
|
51
51
|
componentDidMount(): void;
|
|
52
52
|
componentWillUnmount(): void;
|
|
@@ -20,6 +20,8 @@ export declare class WidthProvider extends React.Component<WidthProviderProps, W
|
|
|
20
20
|
};
|
|
21
21
|
constructor(props: any);
|
|
22
22
|
render(): JSX.Element;
|
|
23
|
-
setWidth:
|
|
23
|
+
setWidth: ((width: number) => void) & {
|
|
24
|
+
cancel(): void;
|
|
25
|
+
};
|
|
24
26
|
}
|
|
25
27
|
export { Consumer as WidthConsumer };
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { default as Emoji } from './Emoji';
|
|
2
|
-
export type { EmojiProps } from './Emoji';
|
|
3
1
|
export { default as Caption } from './Caption';
|
|
4
2
|
export { default as MediaSingle, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, shouldAddDefaultWrappedWidth, } from './MediaSingle';
|
|
5
3
|
export type { Props as MediaSingleProps } from './MediaSingle';
|
|
@@ -7,7 +5,6 @@ export { MediaSingleDimensionHelper } from './MediaSingle/styled';
|
|
|
7
5
|
export type { MediaSingleWrapperProps as MediaSingleDimensionHelperProps } from './MediaSingle/styled';
|
|
8
6
|
export { layoutSupportsWidth, calcPxFromColumns, calcPctFromPx, calcPxFromPct, calcColumnsFromPx, snapToGrid, } from './MediaSingle/grid';
|
|
9
7
|
export { MediaLink } from './MediaSingle/link';
|
|
10
|
-
export { default as Mention } from './Mention';
|
|
11
8
|
export { default as Popup, findOverflowScrollParent } from './Popup';
|
|
12
9
|
export type { Position as PopupPosition, Props as PopupProps } from './Popup';
|
|
13
10
|
export { default as UnsupportedBlock } from './UnsupportedBlock';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "63.0.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/"
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"releaseModel": "scheduled"
|
|
21
21
|
},
|
|
22
22
|
"af:exports": {
|
|
23
|
-
".": "./src/index.ts",
|
|
24
23
|
"./collab": "./src/collab.ts",
|
|
25
24
|
"./extensions": "./src/extensions.ts",
|
|
26
25
|
"./normalize-feature-flags": "./src/normalize-feature-flags.ts",
|
|
@@ -38,31 +37,32 @@
|
|
|
38
37
|
"./card": "./src/card/index.ts",
|
|
39
38
|
"./emoji": "./src/emoji.ts",
|
|
40
39
|
"./mention": "./src/mention.ts",
|
|
41
|
-
"./provider-helpers": "./src/provider-helpers/index.ts"
|
|
40
|
+
"./provider-helpers": "./src/provider-helpers/index.ts",
|
|
41
|
+
"./icons": "./src/icons/index.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
45
|
-
"@atlaskit/adf-schema": "^
|
|
46
|
-
"@atlaskit/adf-utils": "^
|
|
47
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
45
|
+
"@atlaskit/adf-schema": "^21.0.0",
|
|
46
|
+
"@atlaskit/adf-utils": "^15.0.0",
|
|
47
|
+
"@atlaskit/analytics-namespaced-context": "^6.4.0",
|
|
48
48
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
49
49
|
"@atlaskit/code": "^14.3.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^1.6.0",
|
|
52
|
-
"@atlaskit/emoji": "^64.
|
|
53
|
-
"@atlaskit/icon": "^21.
|
|
52
|
+
"@atlaskit/emoji": "^64.1.0",
|
|
53
|
+
"@atlaskit/icon": "^21.10.0",
|
|
54
54
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
55
|
-
"@atlaskit/media-card": "^73.
|
|
55
|
+
"@atlaskit/media-card": "^73.1.0",
|
|
56
56
|
"@atlaskit/media-client": "^14.3.0",
|
|
57
57
|
"@atlaskit/media-picker": "^59.0.0",
|
|
58
58
|
"@atlaskit/mention": "^19.7.0",
|
|
59
|
-
"@atlaskit/profilecard": "^16.
|
|
59
|
+
"@atlaskit/profilecard": "^16.2.0",
|
|
60
60
|
"@atlaskit/smart-card": "^17.0.0",
|
|
61
|
-
"@atlaskit/task-decision": "^17.
|
|
62
|
-
"@atlaskit/theme": "^12.
|
|
61
|
+
"@atlaskit/task-decision": "^17.3.0",
|
|
62
|
+
"@atlaskit/theme": "^12.1.0",
|
|
63
63
|
"@atlaskit/tooltip": "^17.5.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.0.6",
|
|
65
|
-
"@atlaskit/user-picker": "^8.
|
|
65
|
+
"@atlaskit/user-picker": "^8.4.0",
|
|
66
66
|
"@atlaskit/width-detector": "^3.0.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@types/prosemirror-model": "^1.11.0",
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"classnames": "^2.2.5",
|
|
73
73
|
"cypress-file-upload": "^5.0.2",
|
|
74
74
|
"date-fns": "^2.17.0",
|
|
75
|
-
"lodash": "^4.17.
|
|
75
|
+
"lodash": "^4.17.21",
|
|
76
76
|
"prosemirror-model": "1.14.3",
|
|
77
77
|
"prosemirror-state": "1.3.4",
|
|
78
78
|
"prosemirror-transform": "1.3.2",
|
|
79
|
-
"prosemirror-view": "1.23.
|
|
80
|
-
"raf-schd": "^
|
|
79
|
+
"prosemirror-view": "1.23.2",
|
|
80
|
+
"raf-schd": "^4.0.3",
|
|
81
81
|
"react-loadable": "^5.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -92,11 +92,12 @@
|
|
|
92
92
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
93
93
|
"@atlaskit/editor-test-helpers": "^16.0.0",
|
|
94
94
|
"@atlaskit/media-core": "^32.2.0",
|
|
95
|
-
"@atlaskit/util-data-test": "^17.
|
|
95
|
+
"@atlaskit/util-data-test": "^17.2.0",
|
|
96
96
|
"@atlaskit/visual-regression": "*",
|
|
97
97
|
"@atlaskit/webdriver-runner": "*",
|
|
98
98
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
99
99
|
"@testing-library/react": "^8.0.1",
|
|
100
|
+
"@types/raf-schd": "^4.0.1",
|
|
100
101
|
"cypress-file-upload": "^5.0.2",
|
|
101
102
|
"enzyme": "^3.10.0",
|
|
102
103
|
"local-cypress": "^1.2.1",
|