@atlaskit/editor-common 115.0.3 → 115.1.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 +11 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/table/NewSortingIcon.compiled.css +8 -0
- package/dist/cjs/table/NewSortingIcon.js +30 -0
- package/dist/cjs/table/SortingIcon.js +5 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/table/NewSortingIcon.compiled.css +8 -0
- package/dist/es2019/table/NewSortingIcon.js +23 -0
- package/dist/es2019/table/SortingIcon.js +5 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/table/NewSortingIcon.compiled.css +8 -0
- package/dist/esm/table/NewSortingIcon.js +22 -0
- package/dist/esm/table/SortingIcon.js +5 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/table/NewSortingIcon.d.ts +11 -0
- package/dist/types-ts4.5/table/NewSortingIcon.d.ts +11 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 115.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`84066f0a13142`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/84066f0a13142) -
|
|
8
|
+
Update table sort icons
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 115.0.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "115.0.
|
|
22
|
+
var packageVersion = "115.0.3";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._v5642l60{transition:transform .3s cubic-bezier(.15,1,.3,1)}._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
7
|
+
._8hrz1qre{transform-origin:50% 50%}
|
|
8
|
+
._tzy415iw{opacity:.7}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* NewSortingIcon.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.NewSortingIcon = void 0;
|
|
9
|
+
require("./NewSortingIcon.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
|
+
var _types = require("../types");
|
|
14
|
+
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
|
+
var newIconWrapperStyles = {
|
|
16
|
+
base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
|
|
17
|
+
inactive: "_tzy415iw"
|
|
18
|
+
};
|
|
19
|
+
var NewSortingIcon = exports.NewSortingIcon = function NewSortingIcon(_ref) {
|
|
20
|
+
var sortOrdered = _ref.sortOrdered;
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: (0, _runtime.ax)([newIconWrapperStyles.base, sortOrdered === _types.SortOrder.NO_ORDER && newIconWrapperStyles.inactive])
|
|
23
|
+
}, sortOrdered === _types.SortOrder.DESC ? /*#__PURE__*/React.createElement(_editorToolbar.SortAscendingIcon, {
|
|
24
|
+
spacing: "none",
|
|
25
|
+
label: ""
|
|
26
|
+
}) : /*#__PURE__*/React.createElement(_editorToolbar.SortDescendingIcon, {
|
|
27
|
+
spacing: "none",
|
|
28
|
+
label: ""
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
@@ -8,10 +8,12 @@ exports.default = exports.StatusClassNames = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _reactIntl = require("react-intl");
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
13
|
var _types = require("../types");
|
|
13
14
|
var _consts = require("./consts");
|
|
14
15
|
var _messages = require("./messages");
|
|
16
|
+
var _NewSortingIcon = require("./NewSortingIcon");
|
|
15
17
|
var _templateObject, _templateObject2;
|
|
16
18
|
/**
|
|
17
19
|
* @jsxRuntime classic
|
|
@@ -142,7 +144,9 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
142
144
|
"aria-hidden": !isSortingAllowed,
|
|
143
145
|
onClick: handleClick,
|
|
144
146
|
onKeyDown: handleKeyDown
|
|
145
|
-
}, (0, _react.jsx)(
|
|
147
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_table_menu_updates', 'isEnabled', true) ? (0, _react.jsx)(_NewSortingIcon.NewSortingIcon, {
|
|
148
|
+
sortOrdered: sortOrdered
|
|
149
|
+
}) : (0, _react.jsx)("div", {
|
|
146
150
|
css: iconWrapperStyles
|
|
147
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
148
152
|
,
|
|
@@ -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 = "115.0.
|
|
27
|
+
var packageVersion = "115.0.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "115.0.
|
|
7
|
+
const packageVersion = "115.0.3";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._v5642l60{transition:transform .3s cubic-bezier(.15,1,.3,1)}._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
7
|
+
._8hrz1qre{transform-origin:50% 50%}
|
|
8
|
+
._tzy415iw{opacity:.7}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* NewSortingIcon.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import "./NewSortingIcon.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { SortAscendingIcon, SortDescendingIcon } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { SortOrder } from '../types';
|
|
7
|
+
const newIconWrapperStyles = {
|
|
8
|
+
base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
|
|
9
|
+
inactive: "_tzy415iw"
|
|
10
|
+
};
|
|
11
|
+
export const NewSortingIcon = ({
|
|
12
|
+
sortOrdered
|
|
13
|
+
}) => {
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: ax([newIconWrapperStyles.base, sortOrdered === SortOrder.NO_ORDER && newIconWrapperStyles.inactive])
|
|
16
|
+
}, sortOrdered === SortOrder.DESC ? /*#__PURE__*/React.createElement(SortAscendingIcon, {
|
|
17
|
+
spacing: "none",
|
|
18
|
+
label: ""
|
|
19
|
+
}) : /*#__PURE__*/React.createElement(SortDescendingIcon, {
|
|
20
|
+
spacing: "none",
|
|
21
|
+
label: ""
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
12
|
import { SortOrder } from '../types';
|
|
12
13
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
13
14
|
import { sortingAriaLabelMessages, sortingIconMessages } from './messages';
|
|
15
|
+
import { NewSortingIcon } from './NewSortingIcon';
|
|
14
16
|
export let StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
15
17
|
StatusClassNames["ASC"] = "sorting-icon-svg__asc";
|
|
16
18
|
StatusClassNames["DESC"] = "sorting-icon-svg__desc";
|
|
@@ -182,7 +184,9 @@ const SortingIcon = ({
|
|
|
182
184
|
"aria-hidden": !isSortingAllowed,
|
|
183
185
|
onClick: handleClick,
|
|
184
186
|
onKeyDown: handleKeyDown
|
|
185
|
-
}, jsx(
|
|
187
|
+
}, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) ? jsx(NewSortingIcon, {
|
|
188
|
+
sortOrdered: sortOrdered
|
|
189
|
+
}) : jsx("div", {
|
|
186
190
|
css: iconWrapperStyles
|
|
187
191
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
188
192
|
,
|
|
@@ -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 = "115.0.
|
|
17
|
+
const packageVersion = "115.0.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "115.0.
|
|
13
|
+
var packageVersion = "115.0.3";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
._v5642l60{transition:transform .3s cubic-bezier(.15,1,.3,1)}._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
7
|
+
._8hrz1qre{transform-origin:50% 50%}
|
|
8
|
+
._tzy415iw{opacity:.7}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* NewSortingIcon.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import "./NewSortingIcon.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { SortAscendingIcon, SortDescendingIcon } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { SortOrder } from '../types';
|
|
7
|
+
var newIconWrapperStyles = {
|
|
8
|
+
base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
|
|
9
|
+
inactive: "_tzy415iw"
|
|
10
|
+
};
|
|
11
|
+
export var NewSortingIcon = function NewSortingIcon(_ref) {
|
|
12
|
+
var sortOrdered = _ref.sortOrdered;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: ax([newIconWrapperStyles.base, sortOrdered === SortOrder.NO_ORDER && newIconWrapperStyles.inactive])
|
|
15
|
+
}, sortOrdered === SortOrder.DESC ? /*#__PURE__*/React.createElement(SortAscendingIcon, {
|
|
16
|
+
spacing: "none",
|
|
17
|
+
label: ""
|
|
18
|
+
}) : /*#__PURE__*/React.createElement(SortDescendingIcon, {
|
|
19
|
+
spacing: "none",
|
|
20
|
+
label: ""
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
@@ -9,10 +9,12 @@ var _templateObject, _templateObject2;
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import { SortOrder } from '../types';
|
|
14
15
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
15
16
|
import { sortingAriaLabelMessages, sortingIconMessages } from './messages';
|
|
17
|
+
import { NewSortingIcon } from './NewSortingIcon';
|
|
16
18
|
export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
17
19
|
StatusClassNames["ASC"] = "sorting-icon-svg__asc";
|
|
18
20
|
StatusClassNames["DESC"] = "sorting-icon-svg__desc";
|
|
@@ -138,7 +140,9 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
138
140
|
"aria-hidden": !isSortingAllowed,
|
|
139
141
|
onClick: handleClick,
|
|
140
142
|
onKeyDown: handleKeyDown
|
|
141
|
-
}, jsx(
|
|
143
|
+
}, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) ? jsx(NewSortingIcon, {
|
|
144
|
+
sortOrdered: sortOrdered
|
|
145
|
+
}) : jsx("div", {
|
|
142
146
|
css: iconWrapperStyles
|
|
143
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
144
148
|
,
|
|
@@ -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 = "115.0.
|
|
24
|
+
var packageVersion = "115.0.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactElement } from 'react';
|
|
6
|
+
import { SortOrder } from '../types';
|
|
7
|
+
type NewSortingIconProps = {
|
|
8
|
+
sortOrdered?: SortOrder;
|
|
9
|
+
};
|
|
10
|
+
export declare const NewSortingIcon: ({ sortOrdered }: NewSortingIconProps) => ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactElement } from 'react';
|
|
6
|
+
import { SortOrder } from '../types';
|
|
7
|
+
type NewSortingIconProps = {
|
|
8
|
+
sortOrdered?: SortOrder;
|
|
9
|
+
};
|
|
10
|
+
export declare const NewSortingIcon: ({ sortOrdered }: NewSortingIconProps) => ReactElement;
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "115.0
|
|
3
|
+
"version": "115.1.0",
|
|
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/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
57
57
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
58
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
58
|
+
"@atlaskit/editor-toolbar": "^1.10.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
60
60
|
"@atlaskit/emoji": "^70.15.0",
|
|
61
61
|
"@atlaskit/icon": "^35.4.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/media-picker": "^71.4.0",
|
|
71
71
|
"@atlaskit/media-ui": "^29.3.0",
|
|
72
72
|
"@atlaskit/media-viewer": "^53.2.0",
|
|
73
|
-
"@atlaskit/mention": "^26.
|
|
73
|
+
"@atlaskit/mention": "^26.1.0",
|
|
74
74
|
"@atlaskit/menu": "^8.5.0",
|
|
75
75
|
"@atlaskit/object": "^1.0.0",
|
|
76
76
|
"@atlaskit/onboarding": "^14.6.0",
|