@atlaskit/editor-common 74.26.6 → 74.26.8

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.26.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`01237de37e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01237de37e7) - [ED-17901] Update clear button on input to have tabindex and update tests to test for both chrome / firefox and safari
8
+
9
+ ## 74.26.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e4ae2b4792a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4ae2b4792a) - Added media-single constants
14
+
3
15
  ## 74.26.6
4
16
 
5
17
  ### Patch Changes
@@ -864,7 +864,8 @@ var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
864
864
  }, (0, _react2.jsx)("button", {
865
865
  type: "button",
866
866
  css: clearText,
867
- onClick: this.handleClearText
867
+ onClick: this.handleClearText,
868
+ tabIndex: 0
868
869
  }, (0, _react2.jsx)(_crossCircle.default, {
869
870
  label: formatClearLinkText
870
871
  })))), (0, _react2.jsx)("div", {
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MEDIA_SINGLE_SNAP_GAP = exports.MEDIA_SINGLE_MIN_PIXEL_WIDTH = exports.MEDIA_SINGLE_HIGHLIGHT_GAP = void 0;
7
+ var MEDIA_SINGLE_MIN_PIXEL_WIDTH = 24;
8
+ exports.MEDIA_SINGLE_MIN_PIXEL_WIDTH = MEDIA_SINGLE_MIN_PIXEL_WIDTH;
9
+ var MEDIA_SINGLE_SNAP_GAP = 3;
10
+ exports.MEDIA_SINGLE_SNAP_GAP = MEDIA_SINGLE_SNAP_GAP;
11
+ var MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
12
+ exports.MEDIA_SINGLE_HIGHLIGHT_GAP = MEDIA_SINGLE_HIGHLIGHT_GAP;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "MEDIA_SINGLE_HIGHLIGHT_GAP", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _constants.MEDIA_SINGLE_HIGHLIGHT_GAP;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "MEDIA_SINGLE_MIN_PIXEL_WIDTH", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _constants.MEDIA_SINGLE_MIN_PIXEL_WIDTH;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "MEDIA_SINGLE_SNAP_GAP", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _constants.MEDIA_SINGLE_SNAP_GAP;
22
+ }
23
+ });
24
+ var _constants = require("./constants");
@@ -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 = "74.26.6";
19
+ var packageVersion = "74.26.8";
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
@@ -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 = "74.26.6";
27
+ var packageVersion = "74.26.8";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.6",
3
+ "version": "74.26.8",
4
4
  "sideEffects": false
5
5
  }
@@ -721,7 +721,8 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
721
721
  }, jsx("button", {
722
722
  type: "button",
723
723
  css: clearText,
724
- onClick: this.handleClearText
724
+ onClick: this.handleClearText,
725
+ tabIndex: 0
725
726
  }, jsx(CrossCircleIcon, {
726
727
  label: formatClearLinkText
727
728
  })))), jsx("div", {
@@ -0,0 +1,3 @@
1
+ export const MEDIA_SINGLE_MIN_PIXEL_WIDTH = 24;
2
+ export const MEDIA_SINGLE_SNAP_GAP = 3;
3
+ export const MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
@@ -0,0 +1 @@
1
+ export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP } from './constants';
@@ -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 = "74.26.6";
3
+ const packageVersion = "74.26.8";
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
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.26.6";
11
+ const packageVersion = "74.26.8";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = '0, 8';
14
14
  class DropList extends Component {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.6",
3
+ "version": "74.26.8",
4
4
  "sideEffects": false
5
5
  }
@@ -852,7 +852,8 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
852
852
  }, jsx("button", {
853
853
  type: "button",
854
854
  css: clearText,
855
- onClick: this.handleClearText
855
+ onClick: this.handleClearText,
856
+ tabIndex: 0
856
857
  }, jsx(CrossCircleIcon, {
857
858
  label: formatClearLinkText
858
859
  })))), jsx("div", {
@@ -0,0 +1,3 @@
1
+ export var MEDIA_SINGLE_MIN_PIXEL_WIDTH = 24;
2
+ export var MEDIA_SINGLE_SNAP_GAP = 3;
3
+ export var MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
@@ -0,0 +1 @@
1
+ export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP } from './constants';
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
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
  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 = "74.26.6";
9
+ var packageVersion = "74.26.8";
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
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
18
18
  import { borderRadius } from '@atlaskit/theme/constants';
19
19
  import Layer from '../Layer';
20
20
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "74.26.6";
21
+ var packageVersion = "74.26.8";
22
22
  var halfFocusRing = 1;
23
23
  var dropOffset = '0, 8';
24
24
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.6",
3
+ "version": "74.26.8",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,3 @@
1
+ export declare const MEDIA_SINGLE_MIN_PIXEL_WIDTH = 24;
2
+ export declare const MEDIA_SINGLE_SNAP_GAP = 3;
3
+ export declare const MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
@@ -0,0 +1 @@
1
+ export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, } from './constants';
@@ -0,0 +1,3 @@
1
+ export declare const MEDIA_SINGLE_MIN_PIXEL_WIDTH = 24;
2
+ export declare const MEDIA_SINGLE_SNAP_GAP = 3;
3
+ export declare const MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
@@ -0,0 +1 @@
1
+ export { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, } from './constants';
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/media-single",
3
+ "main": "../dist/cjs/media-single/index.js",
4
+ "module": "../dist/esm/media-single/index.js",
5
+ "module:es2019": "../dist/es2019/media-single/index.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/media-single/index.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <4.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/media-single/index.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.6",
3
+ "version": "74.26.8",
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/"
@@ -66,6 +66,7 @@
66
66
  "./selection": "./src/selection/index.ts",
67
67
  "./preset": "./src/preset/index.ts",
68
68
  "./hooks": "./src/hooks/index.ts",
69
+ "./media-single": "./src/media-single/index.ts",
69
70
  "./monitoring": "./src/monitoring/index.ts",
70
71
  "./paste": "./src/paste/index.ts",
71
72
  "./resizer": "./src/resizer/index.ts",
@@ -144,7 +145,7 @@
144
145
  "@atlaskit/editor-test-helpers": "^18.10.0",
145
146
  "@atlaskit/media-core": "^34.1.0",
146
147
  "@atlaskit/media-test-helpers": "^33.0.0",
147
- "@atlaskit/smart-card": "^26.10.0",
148
+ "@atlaskit/smart-card": "^26.11.0",
148
149
  "@atlaskit/util-data-test": "^17.8.0",
149
150
  "@atlaskit/visual-regression": "*",
150
151
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",