@atlaskit/editor-common 76.22.4 → 76.22.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 +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/code-mark.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/code-mark.js +2 -3
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/code-mark.js +2 -3
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/styles/shared/code-mark.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.22.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41498](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41498) [`73adf14896c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73adf14896c) - Remove usage of legacy theming from the Code component and refactor where necessary to accomodate the updated API.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 76.22.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "76.22.
|
|
19
|
+
var packageVersion = "76.22.5";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -12,9 +12,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
12
12
|
var _components = require("@atlaskit/theme/components");
|
|
13
13
|
var _templateObject;
|
|
14
14
|
var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles(props) {
|
|
15
|
-
var theme = (0, _components.getTheme)(props);
|
|
16
15
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), (0, _components.themed)({
|
|
17
16
|
light: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
18
17
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
|
|
19
|
-
})(props), (0, _inline.getCodeStyles)(
|
|
18
|
+
})(props), (0, _inline.getCodeStyles)());
|
|
20
19
|
};
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
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; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.22.
|
|
27
|
+
var packageVersion = "76.22.5";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.22.
|
|
3
|
+
const packageVersion = "76.22.5";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { getCodeStyles } from '@atlaskit/code/inline';
|
|
3
3
|
import { DN70, N30A } from '@atlaskit/theme/colors';
|
|
4
|
-
import {
|
|
4
|
+
import { themed } from '@atlaskit/theme/components';
|
|
5
5
|
export const codeMarkSharedStyles = props => {
|
|
6
|
-
const theme = getTheme(props);
|
|
7
6
|
return css`
|
|
8
7
|
.code {
|
|
9
8
|
--ds--code--bg-color: ${themed({
|
|
10
9
|
light: `var(--ds-background-neutral, ${N30A})`,
|
|
11
10
|
dark: `var(--ds-background-neutral, ${DN70})`
|
|
12
11
|
})(props)};
|
|
13
|
-
${getCodeStyles(
|
|
12
|
+
${getCodeStyles()}
|
|
14
13
|
}
|
|
15
14
|
`;
|
|
16
15
|
};
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.22.
|
|
12
|
+
const packageVersion = "76.22.5";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.22.
|
|
9
|
+
var packageVersion = "76.22.5";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -3,11 +3,10 @@ var _templateObject;
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { getCodeStyles } from '@atlaskit/code/inline';
|
|
5
5
|
import { DN70, N30A } from '@atlaskit/theme/colors';
|
|
6
|
-
import {
|
|
6
|
+
import { themed } from '@atlaskit/theme/components';
|
|
7
7
|
export var codeMarkSharedStyles = function codeMarkSharedStyles(props) {
|
|
8
|
-
var theme = getTheme(props);
|
|
9
8
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), themed({
|
|
10
9
|
light: "var(--ds-background-neutral, ".concat(N30A, ")"),
|
|
11
10
|
dark: "var(--ds-background-neutral, ".concat(DN70, ")")
|
|
12
|
-
})(props), getCodeStyles(
|
|
11
|
+
})(props), getCodeStyles());
|
|
13
12
|
};
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.22.
|
|
22
|
+
var packageVersion = "76.22.5";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeProps } from '@atlaskit/theme/types';
|
|
1
|
+
import type { ThemeProps } from '@atlaskit/theme/types';
|
|
2
2
|
export declare const codeMarkSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeProps } from '@atlaskit/theme/types';
|
|
1
|
+
import type { ThemeProps } from '@atlaskit/theme/types';
|
|
2
2
|
export declare const codeMarkSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.22.
|
|
3
|
+
"version": "76.22.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/"
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
95
95
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
96
96
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
97
|
-
"@atlaskit/button": "^16.
|
|
98
|
-
"@atlaskit/code": "^
|
|
97
|
+
"@atlaskit/button": "^16.17.0",
|
|
98
|
+
"@atlaskit/code": "^15.0.0",
|
|
99
99
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
100
100
|
"@atlaskit/custom-steps": "^0.0.3",
|
|
101
101
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|