@atlaskit/editor-common 107.8.4 → 107.8.5
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 +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/lists.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/lists.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/lists.js +3 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#187247](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187247)
|
|
8
|
+
[`4baf71295fd8e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4baf71295fd8e) -
|
|
9
|
+
[ux] Dynamically calculate the character width of ordered lists when number of list items is 2 or
|
|
10
|
+
more
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 107.8.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -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.8.
|
|
19
|
+
var packageVersion = "107.8.4";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -11,6 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = require("@emotion/react");
|
|
13
13
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _browser = require("../../utils/browser");
|
|
15
16
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
var listItemCounterPadding = exports.listItemCounterPadding = 24;
|
|
@@ -24,8 +25,8 @@ var getItemCounterLeftPadding = function getItemCounterLeftPadding(itemCounterDi
|
|
|
24
25
|
// character). We use "ch" so that this computed padding can now grow if
|
|
25
26
|
// the font-size ever enlarges.
|
|
26
27
|
var paddingLeft = "2.385ch";
|
|
27
|
-
if (itemCounterDigitsSize >= 3) {
|
|
28
|
-
// When there are
|
|
28
|
+
if (itemCounterDigitsSize >= ((0, _platformFeatureFlags.fg)('platform_editor_ol_padding_fix') ? 2 : 3)) {
|
|
29
|
+
// When there are 2 or more digits, we use a combination of "ch" units and
|
|
29
30
|
// pixel values so that while the computed padding grows if font-size ever
|
|
30
31
|
// enlarges, it doesn't over-scale with each digit (because of the fixed pixel
|
|
31
32
|
// portion of the computed value). This way, very large item counters will not
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "107.8.
|
|
26
|
+
var packageVersion = "107.8.4";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -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.8.
|
|
4
|
+
const packageVersion = "107.8.4";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { browser } from '../../utils/browser';
|
|
5
6
|
export const listItemCounterPadding = 24;
|
|
6
7
|
var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
|
|
@@ -13,8 +14,8 @@ const getItemCounterLeftPadding = itemCounterDigitsSize => {
|
|
|
13
14
|
// character). We use "ch" so that this computed padding can now grow if
|
|
14
15
|
// the font-size ever enlarges.
|
|
15
16
|
let paddingLeft = `2.385ch`;
|
|
16
|
-
if (itemCounterDigitsSize >= 3) {
|
|
17
|
-
// When there are
|
|
17
|
+
if (itemCounterDigitsSize >= (fg('platform_editor_ol_padding_fix') ? 2 : 3)) {
|
|
18
|
+
// When there are 2 or more digits, we use a combination of "ch" units and
|
|
18
19
|
// pixel values so that while the computed padding grows if font-size ever
|
|
19
20
|
// enlarges, it doesn't over-scale with each digit (because of the fixed pixel
|
|
20
21
|
// portion of the computed value). This way, very large item counters will not
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "107.8.
|
|
16
|
+
const packageVersion = "107.8.4";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -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.8.
|
|
10
|
+
var packageVersion = "107.8.4";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -5,6 +5,7 @@ var _templateObject;
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
7
|
import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { browser } from '../../utils/browser';
|
|
9
10
|
export var listItemCounterPadding = 24;
|
|
10
11
|
var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
|
|
@@ -17,8 +18,8 @@ var getItemCounterLeftPadding = function getItemCounterLeftPadding(itemCounterDi
|
|
|
17
18
|
// character). We use "ch" so that this computed padding can now grow if
|
|
18
19
|
// the font-size ever enlarges.
|
|
19
20
|
var paddingLeft = "2.385ch";
|
|
20
|
-
if (itemCounterDigitsSize >= 3) {
|
|
21
|
-
// When there are
|
|
21
|
+
if (itemCounterDigitsSize >= (fg('platform_editor_ol_padding_fix') ? 2 : 3)) {
|
|
22
|
+
// When there are 2 or more digits, we use a combination of "ch" units and
|
|
22
23
|
// pixel values so that while the computed padding grows if font-size ever
|
|
23
24
|
// enlarges, it doesn't over-scale with each digit (because of the fixed pixel
|
|
24
25
|
// portion of the computed value). This way, very large item counters will not
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "107.8.
|
|
23
|
+
var packageVersion = "107.8.4";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.8.
|
|
3
|
+
"version": "107.8.5",
|
|
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/"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
134
134
|
"@atlaskit/css": "^0.12.0",
|
|
135
135
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
136
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
136
|
+
"@atlaskit/dropdown-menu": "^16.2.0",
|
|
137
137
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
138
138
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
139
139
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@atlaskit/media-viewer": "^52.4.0",
|
|
156
156
|
"@atlaskit/mention": "^24.2.0",
|
|
157
157
|
"@atlaskit/menu": "^8.0.0",
|
|
158
|
-
"@atlaskit/onboarding": "^14.
|
|
158
|
+
"@atlaskit/onboarding": "^14.3.0",
|
|
159
159
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
160
160
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
161
161
|
"@atlaskit/popper": "^7.1.0",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@atlaskit/profilecard": "^23.21.0",
|
|
164
164
|
"@atlaskit/react-ufo": "^4.0.0",
|
|
165
165
|
"@atlaskit/section-message": "^8.2.0",
|
|
166
|
-
"@atlaskit/smart-card": "^40.
|
|
166
|
+
"@atlaskit/smart-card": "^40.3.0",
|
|
167
167
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
168
168
|
"@atlaskit/spinner": "^18.0.0",
|
|
169
169
|
"@atlaskit/status": "^3.0.0",
|
|
@@ -364,6 +364,9 @@
|
|
|
364
364
|
},
|
|
365
365
|
"platform_editor_find_and_replace_improvements_1": {
|
|
366
366
|
"type": "boolean"
|
|
367
|
+
},
|
|
368
|
+
"platform_editor_ol_padding_fix": {
|
|
369
|
+
"type": "boolean"
|
|
367
370
|
}
|
|
368
371
|
}
|
|
369
372
|
}
|