@atlaskit/editor-common 76.23.2 → 76.23.4

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/media-inline/index.js +11 -4
  3. package/dist/cjs/media-inline/inline-image-wrapper.js +18 -0
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/ui/DropList/index.js +1 -1
  6. package/dist/es2019/media-inline/index.js +3 -2
  7. package/dist/es2019/media-inline/inline-image-wrapper.js +13 -0
  8. package/dist/es2019/monitoring/error.js +1 -1
  9. package/dist/es2019/ui/DropList/index.js +1 -1
  10. package/dist/esm/media-inline/index.js +3 -2
  11. package/dist/esm/media-inline/inline-image-wrapper.js +12 -0
  12. package/dist/esm/monitoring/error.js +1 -1
  13. package/dist/esm/ui/DropList/index.js +1 -1
  14. package/dist/types/media-inline/index.d.ts +3 -2
  15. package/dist/types/media-inline/inline-image-wrapper.d.ts +7 -0
  16. package/dist/types/types/feature-flags.d.ts +0 -9
  17. package/dist/types-ts4.5/media-inline/index.d.ts +3 -2
  18. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +7 -0
  19. package/dist/types-ts4.5/types/feature-flags.d.ts +0 -9
  20. package/package.json +2 -2
  21. /package/dist/cjs/media-inline/{MediaInlineImageCard.js → media-inline-image-card.js} +0 -0
  22. /package/dist/cjs/media-inline/{shouldShowInlineImage.js → utils.js} +0 -0
  23. /package/dist/es2019/media-inline/{MediaInlineImageCard.js → media-inline-image-card.js} +0 -0
  24. /package/dist/es2019/media-inline/{shouldShowInlineImage.js → utils.js} +0 -0
  25. /package/dist/esm/media-inline/{MediaInlineImageCard.js → media-inline-image-card.js} +0 -0
  26. /package/dist/esm/media-inline/{shouldShowInlineImage.js → utils.js} +0 -0
  27. /package/dist/types/media-inline/{MediaInlineImageCard.d.ts → media-inline-image-card.d.ts} +0 -0
  28. /package/dist/types/media-inline/{shouldShowInlineImage.d.ts → utils.d.ts} +0 -0
  29. /package/dist/types-ts4.5/media-inline/{MediaInlineImageCard.d.ts → media-inline-image-card.d.ts} +0 -0
  30. /package/dist/types-ts4.5/media-inline/{shouldShowInlineImage.d.ts → utils.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.23.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43900](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43900) [`663463557aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/663463557aa) - [ED-20984] Add placeholder code for inline image wrapper
8
+
9
+ ## 76.23.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#42839](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42839) [`7324375d4fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7324375d4fa) - [ux] Cleansup feature flag `prevent-popup-overflow` so that it is permanently enabled when `lp-link-picker` flag is enabled, improving the positioning of the link picker.
14
+ - Updated dependencies
15
+
3
16
  ## 76.23.2
4
17
 
5
18
  ### Patch Changes
@@ -3,17 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "InlineImageWrapper", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _inlineImageWrapper.InlineImageWrapper;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "MediaInlineImageCard", {
7
13
  enumerable: true,
8
14
  get: function get() {
9
- return _MediaInlineImageCard.MediaInlineImageCard;
15
+ return _mediaInlineImageCard.MediaInlineImageCard;
10
16
  }
11
17
  });
12
18
  Object.defineProperty(exports, "shouldShowInlineImage", {
13
19
  enumerable: true,
14
20
  get: function get() {
15
- return _shouldShowInlineImage.shouldShowInlineImage;
21
+ return _utils.shouldShowInlineImage;
16
22
  }
17
23
  });
18
- var _MediaInlineImageCard = require("./MediaInlineImageCard");
19
- var _shouldShowInlineImage = require("./shouldShowInlineImage");
24
+ var _mediaInlineImageCard = require("./media-inline-image-card");
25
+ var _utils = require("./utils");
26
+ var _inlineImageWrapper = require("./inline-image-wrapper");
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InlineImageWrapper = void 0;
7
+ var _react = require("@emotion/react");
8
+ /** @jsx jsx */
9
+
10
+ var wrapperStyle = (0, _react.css)({
11
+ display: 'inline-block'
12
+ });
13
+ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrapper(_ref) {
14
+ var children = _ref.children;
15
+ return (0, _react.jsx)("div", {
16
+ css: wrapperStyle
17
+ }, children);
18
+ };
@@ -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.23.2";
19
+ var packageVersion = "76.23.4";
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 = "76.23.2";
27
+ var packageVersion = "76.23.4";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,2 +1,3 @@
1
- export { MediaInlineImageCard } from './MediaInlineImageCard';
2
- export { shouldShowInlineImage } from './shouldShowInlineImage';
1
+ export { MediaInlineImageCard } from './media-inline-image-card';
2
+ export { shouldShowInlineImage } from './utils';
3
+ export { InlineImageWrapper } from './inline-image-wrapper';
@@ -0,0 +1,13 @@
1
+ /** @jsx jsx */
2
+
3
+ import { css, jsx } from '@emotion/react';
4
+ const wrapperStyle = css({
5
+ display: 'inline-block'
6
+ });
7
+ export const InlineImageWrapper = ({
8
+ children
9
+ }) => {
10
+ return jsx("div", {
11
+ css: wrapperStyle
12
+ }, children);
13
+ };
@@ -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.23.2";
3
+ const packageVersion = "76.23.4";
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
@@ -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.23.2";
12
+ const packageVersion = "76.23.4";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -1,2 +1,3 @@
1
- export { MediaInlineImageCard } from './MediaInlineImageCard';
2
- export { shouldShowInlineImage } from './shouldShowInlineImage';
1
+ export { MediaInlineImageCard } from './media-inline-image-card';
2
+ export { shouldShowInlineImage } from './utils';
3
+ export { InlineImageWrapper } from './inline-image-wrapper';
@@ -0,0 +1,12 @@
1
+ /** @jsx jsx */
2
+
3
+ import { css, jsx } from '@emotion/react';
4
+ var wrapperStyle = css({
5
+ display: 'inline-block'
6
+ });
7
+ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
8
+ var children = _ref.children;
9
+ return jsx("div", {
10
+ css: wrapperStyle
11
+ }, children);
12
+ };
@@ -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.23.2";
9
+ var packageVersion = "76.23.4";
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
@@ -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.23.2";
22
+ var packageVersion = "76.23.4";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,2 +1,3 @@
1
- export { MediaInlineImageCard } from './MediaInlineImageCard';
2
- export { shouldShowInlineImage } from './shouldShowInlineImage';
1
+ export { MediaInlineImageCard } from './media-inline-image-card';
2
+ export { shouldShowInlineImage } from './utils';
3
+ export { InlineImageWrapper } from './inline-image-wrapper';
@@ -0,0 +1,7 @@
1
+ /** @jsx jsx */
2
+ import type { FC, ReactElement } from 'react';
3
+ type Prop = {
4
+ children: ReactElement;
5
+ };
6
+ export declare const InlineImageWrapper: FC<Prop>;
7
+ export {};
@@ -229,15 +229,6 @@ export type FeatureFlags = {
229
229
  * @default false
230
230
  */
231
231
  restartNumberedLists?: boolean;
232
- /**
233
- * @description
234
- * Force the Popup placement if the space does not accomodate the Popup fitHeight
235
- *
236
- * @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
237
- * @see https://product-fabric.atlassian.net/browse/EDM-2577
238
- * @default false
239
- */
240
- preventPopupOverflow?: boolean;
241
232
  /**
242
233
  * @description
243
234
  * Enable the new editor media resize experience.
@@ -1,2 +1,3 @@
1
- export { MediaInlineImageCard } from './MediaInlineImageCard';
2
- export { shouldShowInlineImage } from './shouldShowInlineImage';
1
+ export { MediaInlineImageCard } from './media-inline-image-card';
2
+ export { shouldShowInlineImage } from './utils';
3
+ export { InlineImageWrapper } from './inline-image-wrapper';
@@ -0,0 +1,7 @@
1
+ /** @jsx jsx */
2
+ import type { FC, ReactElement } from 'react';
3
+ type Prop = {
4
+ children: ReactElement;
5
+ };
6
+ export declare const InlineImageWrapper: FC<Prop>;
7
+ export {};
@@ -229,15 +229,6 @@ export type FeatureFlags = {
229
229
  * @default false
230
230
  */
231
231
  restartNumberedLists?: boolean;
232
- /**
233
- * @description
234
- * Force the Popup placement if the space does not accomodate the Popup fitHeight
235
- *
236
- * @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
237
- * @see https://product-fabric.atlassian.net/browse/EDM-2577
238
- * @default false
239
- */
240
- preventPopupOverflow?: boolean;
241
232
  /**
242
233
  * @description
243
234
  * Enable the new editor media resize experience.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.23.2",
3
+ "version": "76.23.4",
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/"
@@ -110,7 +110,7 @@
110
110
  "@atlaskit/link-datasource": "^1.19.0",
111
111
  "@atlaskit/link-picker": "^1.30.0",
112
112
  "@atlaskit/media-card": "^77.4.0",
113
- "@atlaskit/media-client": "^25.0.0",
113
+ "@atlaskit/media-client": "^25.1.0",
114
114
  "@atlaskit/media-picker": "^66.2.0",
115
115
  "@atlaskit/mention": "^22.1.0",
116
116
  "@atlaskit/menu": "^2.1.0",