@atlaskit/editor-common 61.0.1 → 63.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 +126 -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 -921
- package/dist/cjs/messages/codeBidiWarning.js +2 -2
- package/dist/cjs/messages/link.js +2 -2
- package/dist/cjs/messages/unsupportedContent.js +2 -2
- 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/Caption/index.js +2 -2
- package/dist/cjs/ui/Caption/messages.js +2 -2
- package/dist/cjs/ui/Expand/index.js +2 -2
- package/dist/cjs/ui/IntlLegacyFallbackProvider/index.js +60 -0
- package/dist/cjs/ui/IntlNextErrorBoundary/index.js +90 -0
- package/dist/cjs/ui/LegacyToNextIntlProvider/index.js +67 -0
- 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/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui/index.js +28 -14
- package/dist/cjs/utils/date.js +2 -3
- 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/messages/codeBidiWarning.js +1 -1
- package/dist/es2019/messages/link.js +1 -1
- package/dist/es2019/messages/unsupportedContent.js +1 -1
- 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/Caption/index.js +1 -1
- package/dist/es2019/ui/Caption/messages.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/IntlLegacyFallbackProvider/index.js +21 -0
- package/dist/es2019/ui/IntlNextErrorBoundary/index.js +43 -0
- package/dist/es2019/ui/LegacyToNextIntlProvider/index.js +24 -0
- package/dist/es2019/ui/Popup/index.js +2 -2
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui/index.js +5 -9
- package/dist/es2019/utils/date.js +2 -3
- 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/messages/codeBidiWarning.js +1 -1
- package/dist/esm/messages/link.js +1 -1
- package/dist/esm/messages/unsupportedContent.js +1 -1
- 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/Caption/index.js +1 -1
- package/dist/esm/ui/Caption/messages.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/IntlLegacyFallbackProvider/index.js +45 -0
- package/dist/esm/ui/IntlNextErrorBoundary/index.js +73 -0
- package/dist/esm/ui/LegacyToNextIntlProvider/index.js +51 -0
- 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/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui/index.js +5 -9
- package/dist/esm/utils/date.js +2 -3
- 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 +2 -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/Caption/index.d.ts +4 -4
- package/dist/types/ui/IntlLegacyFallbackProvider/index.d.ts +8 -0
- package/dist/types/ui/IntlNextErrorBoundary/index.d.ts +15 -0
- package/dist/types/ui/LegacyToNextIntlProvider/index.d.ts +8 -0
- package/dist/types/ui/Popup/index.d.ts +1 -1
- package/dist/types/ui/UnsupportedBlock/index.d.ts +3 -3
- package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types/ui/WidthProvider/index.d.ts +3 -1
- package/dist/types/ui/index.d.ts +3 -3
- package/dist/types/ui/unsupported-content-helper.d.ts +2 -2
- package/dist/types/utils/date.d.ts +3 -3
- package/icons/package.json +7 -0
- package/package.json +21 -19
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
|
|
8
|
+
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; }
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
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); }; }
|
|
13
|
+
|
|
14
|
+
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; } }
|
|
15
|
+
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { intlShape } from 'react-intl';
|
|
18
|
+
import { createIntl, RawIntlProvider } from 'react-intl-next';
|
|
19
|
+
export var LegacyToNextIntlProvider = /*#__PURE__*/function (_React$Component) {
|
|
20
|
+
_inherits(LegacyToNextIntlProvider, _React$Component);
|
|
21
|
+
|
|
22
|
+
var _super = _createSuper(LegacyToNextIntlProvider);
|
|
23
|
+
|
|
24
|
+
function LegacyToNextIntlProvider() {
|
|
25
|
+
_classCallCheck(this, LegacyToNextIntlProvider);
|
|
26
|
+
|
|
27
|
+
return _super.apply(this, arguments);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
_createClass(LegacyToNextIntlProvider, [{
|
|
31
|
+
key: "render",
|
|
32
|
+
value: function render() {
|
|
33
|
+
var oldIntl = this.context.intl;
|
|
34
|
+
|
|
35
|
+
if (oldIntl) {
|
|
36
|
+
var nextIntl = createIntl(_objectSpread({}, oldIntl));
|
|
37
|
+
return /*#__PURE__*/React.createElement(RawIntlProvider, {
|
|
38
|
+
value: nextIntl
|
|
39
|
+
}, this.props.children);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return this.props.children;
|
|
43
|
+
}
|
|
44
|
+
}]);
|
|
45
|
+
|
|
46
|
+
return LegacyToNextIntlProvider;
|
|
47
|
+
}(React.Component);
|
|
48
|
+
|
|
49
|
+
_defineProperty(LegacyToNextIntlProvider, "contextTypes", {
|
|
50
|
+
intl: intlShape
|
|
51
|
+
});
|
|
@@ -7,9 +7,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
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; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
12
|
+
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; }
|
|
13
13
|
|
|
14
14
|
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); }; }
|
|
15
15
|
|
|
@@ -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;
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
import React, { useCallback, useRef } from 'react';
|
|
6
|
-
import { injectIntl } from 'react-intl';
|
|
6
|
+
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
import React, { useCallback, useRef } from 'react';
|
|
6
|
-
import { injectIntl } from 'react-intl';
|
|
6
|
+
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
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';
|
|
@@ -20,4 +13,7 @@ export { default as overflowShadow, shadowClassNames } from './OverflowShadow';
|
|
|
20
13
|
export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
|
|
21
14
|
export { messages as expandMessages, sharedExpandStyles, ExpandIconWrapper, ExpandLayoutWrapper } from './Expand';
|
|
22
15
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
23
|
-
export { ClearNextSiblingMarginTop } from './clear-next-sibling-margin-top';
|
|
16
|
+
export { ClearNextSiblingMarginTop } from './clear-next-sibling-margin-top';
|
|
17
|
+
export { IntlNextErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlNextErrorBoundary';
|
|
18
|
+
export { IntlLegacyFallbackProvider } from './IntlLegacyFallbackProvider';
|
|
19
|
+
export { LegacyToNextIntlProvider } from './LegacyToNextIntlProvider';
|
package/dist/esm/utils/date.js
CHANGED
|
@@ -70,9 +70,8 @@ export var timestampToTaskContext = function timestampToTaskContext(timestamp, i
|
|
|
70
70
|
var sameYear = givenDate.getUTCFullYear() === curDate.getUTCFullYear();
|
|
71
71
|
|
|
72
72
|
if (intl && [-1, 0, 1].indexOf(distance) > -1) {
|
|
73
|
-
return capitalizeFirstLetter(intl.
|
|
74
|
-
|
|
75
|
-
now: Number(todayTimestampInUTC())
|
|
73
|
+
return capitalizeFirstLetter(intl.formatRelativeTime(distance, 'day', {
|
|
74
|
+
numeric: 'auto'
|
|
76
75
|
}));
|
|
77
76
|
}
|
|
78
77
|
|
|
@@ -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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ADFEntity } from '@atlaskit/adf-utils';
|
|
2
3
|
import { Parameters } from './extension-parameters';
|
|
3
4
|
export interface ExtensionParams<T extends Parameters> {
|
|
@@ -20,6 +21,7 @@ export declare type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
|
20
21
|
allowSelectionToNewNode?: boolean;
|
|
21
22
|
}) => void;
|
|
22
23
|
scrollTo: (localId: string) => void;
|
|
24
|
+
update: (localId: string, mutationCallback: (currentValue: Pick<ADFEntity, 'attrs' | 'marks'>) => Pick<ADFEntity, 'attrs' | 'marks'>) => void;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
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, } 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[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
hasContent?: boolean;
|
|
@@ -8,10 +8,10 @@ declare type Props = {
|
|
|
8
8
|
'data-renderer-start-pos': number;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare class CaptionComponent extends React.Component<Props &
|
|
11
|
+
export declare class CaptionComponent extends React.Component<Props & WrappedComponentProps> {
|
|
12
12
|
render(): JSX.Element;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: React.
|
|
15
|
-
WrappedComponent:
|
|
14
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
15
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
}
|
|
4
|
+
interface ErrorBoundaryState {
|
|
5
|
+
missingIntlProviderInAncestry: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const REACT_INTL_ERROR_MESSAGE = "<IntlProvider> needs to exist in the component ancestry";
|
|
8
|
+
export declare class IntlNextErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
9
|
+
state: {
|
|
10
|
+
missingIntlProviderInAncestry: boolean;
|
|
11
|
+
};
|
|
12
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
13
|
+
render(): {} | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
5
5
|
export interface Props {
|
|
6
6
|
node?: PMNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
5
5
|
export interface Props {
|
|
6
6
|
node?: PMNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -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';
|
|
@@ -24,3 +21,6 @@ export { messages as expandMessages, sharedExpandStyles, ExpandIconWrapper, Expa
|
|
|
24
21
|
export type { StyleProps as ExpandStyleProps } from './Expand';
|
|
25
22
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
26
23
|
export { ClearNextSiblingMarginTop } from './clear-next-sibling-margin-top';
|
|
24
|
+
export { IntlNextErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlNextErrorBoundary';
|
|
25
|
+
export { IntlLegacyFallbackProvider } from './IntlLegacyFallbackProvider';
|
|
26
|
+
export { LegacyToNextIntlProvider } from './LegacyToNextIntlProvider';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getUnsupportedContent(message: any, prefix: string, node?: PMNode, intl?:
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
|
+
export declare function getUnsupportedContent(message: any, prefix: string, node?: PMNode, intl?: IntlShape): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IntlShape } from 'react-intl-next';
|
|
2
2
|
declare enum FORMATS {
|
|
3
3
|
ISO_FORMAT = "YYYY-MM-DD",
|
|
4
4
|
CURRENT_YEAR_FORMAT_WITHOUT_YEAR = "CURRENT_YEAR_FORMAT_WITHOUT_YEAR",
|
|
@@ -11,8 +11,8 @@ export interface Date {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const timestampToUTCDate: (timestamp: string | number) => Date;
|
|
13
13
|
export declare const todayTimestampInUTC: () => string;
|
|
14
|
-
export declare const timestampToString: (timestamp: string | number, intl:
|
|
14
|
+
export declare const timestampToString: (timestamp: string | number, intl: IntlShape | null, pattern?: FORMATS | undefined) => string;
|
|
15
15
|
export declare const timestampToIsoFormat: (timestamp: string | number) => string;
|
|
16
16
|
export declare const isPastDate: (timestamp: string | number) => boolean;
|
|
17
|
-
export declare const timestampToTaskContext: (timestamp: string | number, intl:
|
|
17
|
+
export declare const timestampToTaskContext: (timestamp: string | number, intl: IntlShape) => string;
|
|
18
18
|
export {};
|