@atlaskit/editor-common 107.31.2 → 107.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/messages/text-color.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-providers.js +1 -2
- package/dist/cjs/ui/ResizerLegacy/index.js +4 -1
- package/dist/es2019/messages/text-color.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-providers.js +1 -2
- package/dist/es2019/ui/ResizerLegacy/index.js +4 -1
- package/dist/esm/messages/text-color.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-providers.js +1 -2
- package/dist/esm/ui/ResizerLegacy/index.js +4 -1
- package/dist/types/messages/text-color.d.ts +5 -0
- package/dist/types-ts4.5/messages/text-color.d.ts +5 -0
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.32.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9383d1ef58fe1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9383d1ef58fe1) -
|
|
8
|
+
Cleanup feature gate cc_mention_ssr_placeholder
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 107.32.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`cd499bc159c22`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd499bc159c22) -
|
|
16
|
+
fix initial resizer width in SSR
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`1eba43a7b680d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1eba43a7b680d) -
|
|
21
|
+
[ux] ED-29000 - Address paper cut issues in ColorPalette
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 107.31.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -15,5 +15,10 @@ var textColorMessages = exports.textColorMessages = (0, _reactIntlNext.defineMes
|
|
|
15
15
|
id: 'fabric.editor.textColorTooltip',
|
|
16
16
|
defaultMessage: 'Text color',
|
|
17
17
|
description: 'Toolip of menu that provides access to various colors of text.'
|
|
18
|
+
},
|
|
19
|
+
textColorHighlightTooltip: {
|
|
20
|
+
id: 'fabric.editor.textColorHighlightTooltip',
|
|
21
|
+
defaultMessage: 'Text and Highlight color',
|
|
22
|
+
description: 'Tooltip of menu that provides access to various colors of highlight.'
|
|
18
23
|
}
|
|
19
24
|
});
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "107.
|
|
19
|
+
var packageVersion = "107.32.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "107.
|
|
27
|
+
var packageVersion = "107.32.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -9,7 +9,6 @@ exports.MentionWithProviders = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _element = require("@atlaskit/mention/element");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _mentionWithProfilecard = _interopRequireDefault(require("./mention-with-profilecard"));
|
|
14
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
14
|
var GENERIC_USER_IDS = ['HipChat', 'all', 'here'];
|
|
@@ -48,7 +47,7 @@ var MentionWithProviders = exports.MentionWithProviders = /*#__PURE__*/_react.de
|
|
|
48
47
|
});
|
|
49
48
|
}, [profilecardProviderResolver]);
|
|
50
49
|
var MentionComponent = profilecardProvider && profilecardProviderResolver && GENERIC_USER_IDS.indexOf(id) === -1 ? _mentionWithProfilecard.default : _element.ResourcedMention;
|
|
51
|
-
var ssrPlaceholderId =
|
|
50
|
+
var ssrPlaceholderId = "mention-".concat(id);
|
|
52
51
|
return /*#__PURE__*/_react.default.createElement(MentionComponent, {
|
|
53
52
|
id: id,
|
|
54
53
|
text: text,
|
|
@@ -15,6 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
16
|
var _reResizable = require("re-resizable");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
19
|
var _analytics = require("../../analytics");
|
|
19
20
|
var _styles = require("../../styles");
|
|
20
21
|
var _utils = require("../../utils");
|
|
@@ -189,13 +190,15 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
189
190
|
pointerEvents: 'none'
|
|
190
191
|
};
|
|
191
192
|
}
|
|
193
|
+
var nonZeroWidth = (0, _expValEquals.expValEquals)('platform_editor_smart_card_otp', 'isEnabled', true) ? width || '100%' // In SSR width could be 0 initially
|
|
194
|
+
: width;
|
|
192
195
|
|
|
193
196
|
// Ideally, Resizable would let you pass in the component rather than
|
|
194
197
|
// the div. For now, we just apply the same styles using CSS
|
|
195
198
|
return /*#__PURE__*/_react.default.createElement(_reResizable.Resizable, {
|
|
196
199
|
ref: this.resizable,
|
|
197
200
|
size: {
|
|
198
|
-
width:
|
|
201
|
+
width: nonZeroWidth,
|
|
199
202
|
// just content itself (no paddings)
|
|
200
203
|
height: 'auto'
|
|
201
204
|
}
|
|
@@ -9,5 +9,10 @@ export const textColorMessages = defineMessages({
|
|
|
9
9
|
id: 'fabric.editor.textColorTooltip',
|
|
10
10
|
defaultMessage: 'Text color',
|
|
11
11
|
description: 'Toolip of menu that provides access to various colors of text.'
|
|
12
|
+
},
|
|
13
|
+
textColorHighlightTooltip: {
|
|
14
|
+
id: 'fabric.editor.textColorHighlightTooltip',
|
|
15
|
+
defaultMessage: 'Text and Highlight color',
|
|
16
|
+
description: 'Tooltip of menu that provides access to various colors of highlight.'
|
|
12
17
|
}
|
|
13
18
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "107.
|
|
4
|
+
const packageVersion = "107.32.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "107.
|
|
17
|
+
const packageVersion = "107.32.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
2
2
|
import { ResourcedMention } from '@atlaskit/mention/element';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import ResourcedMentionWithProfilecard from './mention-with-profilecard';
|
|
5
4
|
const GENERIC_USER_IDS = ['HipChat', 'all', 'here'];
|
|
6
5
|
export const MentionWithProviders = /*#__PURE__*/React.memo(({
|
|
@@ -36,7 +35,7 @@ export const MentionWithProviders = /*#__PURE__*/React.memo(({
|
|
|
36
35
|
});
|
|
37
36
|
}, [profilecardProviderResolver]);
|
|
38
37
|
const MentionComponent = profilecardProvider && profilecardProviderResolver && GENERIC_USER_IDS.indexOf(id) === -1 ? ResourcedMentionWithProfilecard : ResourcedMention;
|
|
39
|
-
const ssrPlaceholderId =
|
|
38
|
+
const ssrPlaceholderId = `mention-${id}`;
|
|
40
39
|
return /*#__PURE__*/React.createElement(MentionComponent, {
|
|
41
40
|
id: id,
|
|
42
41
|
text: text,
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Resizable } from 're-resizable';
|
|
5
5
|
import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
7
8
|
import { richMediaClassName } from '../../styles';
|
|
8
9
|
import { gridTypeForLayout } from '../../utils';
|
|
@@ -180,13 +181,15 @@ export default class Resizer extends React.Component {
|
|
|
180
181
|
pointerEvents: 'none'
|
|
181
182
|
};
|
|
182
183
|
}
|
|
184
|
+
const nonZeroWidth = expValEquals('platform_editor_smart_card_otp', 'isEnabled', true) ? width || '100%' // In SSR width could be 0 initially
|
|
185
|
+
: width;
|
|
183
186
|
|
|
184
187
|
// Ideally, Resizable would let you pass in the component rather than
|
|
185
188
|
// the div. For now, we just apply the same styles using CSS
|
|
186
189
|
return /*#__PURE__*/React.createElement(Resizable, {
|
|
187
190
|
ref: this.resizable,
|
|
188
191
|
size: {
|
|
189
|
-
width,
|
|
192
|
+
width: nonZeroWidth,
|
|
190
193
|
// just content itself (no paddings)
|
|
191
194
|
height: 'auto'
|
|
192
195
|
}
|
|
@@ -9,5 +9,10 @@ export var textColorMessages = defineMessages({
|
|
|
9
9
|
id: 'fabric.editor.textColorTooltip',
|
|
10
10
|
defaultMessage: 'Text color',
|
|
11
11
|
description: 'Toolip of menu that provides access to various colors of text.'
|
|
12
|
+
},
|
|
13
|
+
textColorHighlightTooltip: {
|
|
14
|
+
id: 'fabric.editor.textColorHighlightTooltip',
|
|
15
|
+
defaultMessage: 'Text and Highlight color',
|
|
16
|
+
description: 'Tooltip of menu that provides access to various colors of highlight.'
|
|
12
17
|
}
|
|
13
18
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "107.
|
|
10
|
+
var packageVersion = "107.32.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "107.
|
|
24
|
+
var packageVersion = "107.32.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { ResourcedMention } from '@atlaskit/mention/element';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import ResourcedMentionWithProfilecard from './mention-with-profilecard';
|
|
6
5
|
var GENERIC_USER_IDS = ['HipChat', 'all', 'here'];
|
|
7
6
|
export var MentionWithProviders = /*#__PURE__*/React.memo(function (_ref) {
|
|
@@ -39,7 +38,7 @@ export var MentionWithProviders = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
39
38
|
});
|
|
40
39
|
}, [profilecardProviderResolver]);
|
|
41
40
|
var MentionComponent = profilecardProvider && profilecardProviderResolver && GENERIC_USER_IDS.indexOf(id) === -1 ? ResourcedMentionWithProfilecard : ResourcedMention;
|
|
42
|
-
var ssrPlaceholderId =
|
|
41
|
+
var ssrPlaceholderId = "mention-".concat(id);
|
|
43
42
|
return /*#__PURE__*/React.createElement(MentionComponent, {
|
|
44
43
|
id: id,
|
|
45
44
|
text: text,
|
|
@@ -12,6 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import { Resizable } from 're-resizable';
|
|
14
14
|
import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
16
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
16
17
|
import { richMediaClassName } from '../../styles';
|
|
17
18
|
import { gridTypeForLayout } from '../../utils';
|
|
@@ -182,13 +183,15 @@ var Resizer = /*#__PURE__*/function (_React$Component) {
|
|
|
182
183
|
pointerEvents: 'none'
|
|
183
184
|
};
|
|
184
185
|
}
|
|
186
|
+
var nonZeroWidth = expValEquals('platform_editor_smart_card_otp', 'isEnabled', true) ? width || '100%' // In SSR width could be 0 initially
|
|
187
|
+
: width;
|
|
185
188
|
|
|
186
189
|
// Ideally, Resizable would let you pass in the component rather than
|
|
187
190
|
// the div. For now, we just apply the same styles using CSS
|
|
188
191
|
return /*#__PURE__*/React.createElement(Resizable, {
|
|
189
192
|
ref: this.resizable,
|
|
190
193
|
size: {
|
|
191
|
-
width:
|
|
194
|
+
width: nonZeroWidth,
|
|
192
195
|
// just content itself (no paddings)
|
|
193
196
|
height: 'auto'
|
|
194
197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.32.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/"
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
144
144
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
145
145
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
146
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
146
|
+
"@atlaskit/editor-toolbar": "^0.4.0",
|
|
147
147
|
"@atlaskit/editor-toolbar-model": "^0.1.0",
|
|
148
148
|
"@atlaskit/emoji": "^69.5.0",
|
|
149
149
|
"@atlaskit/icon": "^28.1.0",
|
|
@@ -339,9 +339,6 @@
|
|
|
339
339
|
"confluence_connect_macro_preset_height": {
|
|
340
340
|
"type": "boolean"
|
|
341
341
|
},
|
|
342
|
-
"cc_mention_ssr_placeholder": {
|
|
343
|
-
"type": "boolean"
|
|
344
|
-
},
|
|
345
342
|
"platform_editor_breakout_resizing_hello_release": {
|
|
346
343
|
"type": "boolean"
|
|
347
344
|
},
|