@atlaskit/editor-common 103.17.0 → 103.17.1

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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 103.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#146650](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146650)
8
+ [`9074704f03590`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9074704f03590) -
9
+ add data attribute to media single component
10
+ - Updated dependencies
11
+
3
12
  ## 103.17.0
4
13
 
5
14
  ### Minor Changes
@@ -125,6 +125,9 @@
125
125
  {
126
126
  "path": "../../../people-and-teams/profilecard/afm-cc/tsconfig.json"
127
127
  },
128
+ {
129
+ "path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
130
+ },
128
131
  {
129
132
  "path": "../../../design-system/section-message/afm-cc/tsconfig.json"
130
133
  },
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "103.17.0";
20
+ var packageVersion = "103.17.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -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 = "103.17.0";
26
+ var packageVersion = "103.17.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -12,6 +12,7 @@ var _react2 = require("@emotion/react");
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ var _vcMedia = require("@atlaskit/react-ufo/vc-media");
15
16
  var _constants = require("../../media-single/constants");
16
17
  var _utils = require("../../media-single/utils");
17
18
  var _richMediaUtils = require("../../utils/rich-media-utils");
@@ -124,7 +125,7 @@ function MediaSingle(_ref) {
124
125
  })
125
126
  // Ignored via go/ees005
126
127
  // eslint-disable-next-line react/jsx-props-no-spreading
127
- }, dataAttributes), (0, _react2.jsx)(_styled.MediaWrapper, {
128
+ }, dataAttributes, (0, _platformFeatureFlags.fg)('platform_exclude_media_single_from_vc') && _vcMedia.VcMediaWrapperProps), (0, _react2.jsx)(_styled.MediaWrapper, {
128
129
  hasFallbackContainer: hasFallbackContainer,
129
130
  height: mediaWrapperHeight,
130
131
  paddingBottom: paddingBottom
@@ -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 = "103.17.0";
4
+ const packageVersion = "103.17.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -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 = "103.17.0";
16
+ const packageVersion = "103.17.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -10,6 +10,7 @@ import { jsx } from '@emotion/react';
10
10
  import classnames from 'classnames';
11
11
  import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
+ import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
13
14
  import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
14
15
  import { getMediaSinglePixelWidth } from '../../media-single/utils';
15
16
  import { shouldAddDefaultWrappedWidth } from '../../utils/rich-media-utils';
@@ -109,7 +110,7 @@ export default function MediaSingle({
109
110
  })
110
111
  // Ignored via go/ees005
111
112
  // eslint-disable-next-line react/jsx-props-no-spreading
112
- }, dataAttributes), jsx(MediaWrapper, {
113
+ }, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
113
114
  hasFallbackContainer: hasFallbackContainer,
114
115
  height: mediaWrapperHeight,
115
116
  paddingBottom: paddingBottom
@@ -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 = "103.17.0";
10
+ var packageVersion = "103.17.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -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 = "103.17.0";
23
+ var packageVersion = "103.17.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -11,6 +11,7 @@ import { jsx } from '@emotion/react';
11
11
  import classnames from 'classnames';
12
12
  import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
14
15
  import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
15
16
  import { getMediaSinglePixelWidth } from '../../media-single/utils';
16
17
  import { shouldAddDefaultWrappedWidth } from '../../utils/rich-media-utils';
@@ -116,7 +117,7 @@ export default function MediaSingle(_ref) {
116
117
  })
117
118
  // Ignored via go/ees005
118
119
  // eslint-disable-next-line react/jsx-props-no-spreading
119
- }, dataAttributes), jsx(MediaWrapper, {
120
+ }, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
120
121
  hasFallbackContainer: hasFallbackContainer,
121
122
  height: mediaWrapperHeight,
122
123
  paddingBottom: paddingBottom
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/i18n",
3
+ "main": "../dist/cjs/i18n/index.js",
4
+ "module": "../dist/esm/i18n/index.js",
5
+ "module:es2019": "../dist/es2019/i18n/index.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/i18n/index.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.4": {
12
+ "*": [
13
+ "../dist/types-ts4.5/i18n/index.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "103.17.0",
3
+ "version": "103.17.1",
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/"
@@ -30,6 +30,7 @@
30
30
  "runReact18": true
31
31
  },
32
32
  "af:exports": {
33
+ "./i18n": "./src/i18n/index.ts",
33
34
  "./prosemirror-dom-metadata": "./src/prosemirror-dom-metadata/index.ts",
34
35
  "./whitespace": "./src/whitespace/index.ts",
35
36
  "./event-dispatcher": "./src/event-dispatcher/index.ts",
@@ -156,6 +157,7 @@
156
157
  "@atlaskit/popper": "^7.0.0",
157
158
  "@atlaskit/primitives": "^14.4.0",
158
159
  "@atlaskit/profilecard": "^23.8.0",
160
+ "@atlaskit/react-ufo": "^3.7.0",
159
161
  "@atlaskit/section-message": "^8.2.0",
160
162
  "@atlaskit/smart-card": "^36.10.0",
161
163
  "@atlaskit/smart-user-picker": "^8.0.0",
@@ -354,6 +356,9 @@
354
356
  },
355
357
  "platform_editor_refactor_view_more": {
356
358
  "type": "boolean"
359
+ },
360
+ "platform_exclude_media_single_from_vc": {
361
+ "type": "boolean"
357
362
  }
358
363
  }
359
364
  }