@atlaskit/editor-common 107.4.1 → 107.4.2

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
+ ## 107.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#178862](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178862)
8
+ [`c85957c962811`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c85957c962811) -
9
+ clean up fg
10
+ - Updated dependencies
11
+
3
12
  ## 107.4.1
4
13
 
5
14
  ### Patch Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
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 = "107.4.0";
19
+ var packageVersion = "107.4.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "107.4.0";
26
+ var packageVersion = "107.4.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -132,7 +132,7 @@ function MediaSingle(_ref) {
132
132
  nodeType: nodeType
133
133
  })
134
134
  // eslint-disable-next-line react/jsx-props-no-spreading
135
- }, (0, _platformFeatureFlags.fg)('platform_fix_media_image_resizing') || (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
135
+ }, (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
136
136
  'data-layout': layout
137
137
  }, {
138
138
  "data-width": mediaSingleWidth,
@@ -147,7 +147,7 @@ function MediaSingle(_ref) {
147
147
  })
148
148
  // Ignored via go/ees005
149
149
  // eslint-disable-next-line react/jsx-props-no-spreading
150
- }, dataAttributes, (0, _platformFeatureFlags.fg)('platform_exclude_media_single_from_vc') && _vcMedia.VcMediaWrapperProps), (0, _react2.jsx)(_styled.MediaWrapper, {
150
+ }, dataAttributes, _vcMedia.VcMediaWrapperProps), (0, _react2.jsx)(_styled.MediaWrapper, {
151
151
  hasFallbackContainer: hasFallbackContainer,
152
152
  height: mediaWrapperHeight,
153
153
  paddingBottom: paddingBottom
@@ -223,18 +223,13 @@ var MediaSingleDimensionHelper = exports.MediaSingleDimensionHelper = function M
223
223
 
224
224
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
225
225
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
226
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t/* For nested rich media items, set max-width to 100% */\n\t\ttr &,\n\t\t[data-layout-column] &,\n\t\t[data-node-type='expand'] &,\n\t\t[data-panel-type] &,\n\t\tli & {\n\t\t\tmax-width: 100%;\n\t\t}\n\n\t\twidth: ", ";\n\t\t", "\n\t\t", "\n\t\t/* If container doesn't exists, it will fallback to this */\n\t\tmax-width: ", ";\n\t\t", "\n\n\t\t&:not(.is-resizing) {\n\t\t\ttransition: width 100ms ease-in;\n\t\t}\n\n\t\tfloat: ", ";\n\t\tmargin: ", ";\n\n\t\t&[class*='not-resizing'] {\n\t\t\t", "\n\t\t}\n\n\t\t", ";\n\t"])), calculatedWidth, layout === 'full-width' &&
226
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t/* For nested rich media items, set max-width to 100% */\n\t\ttr &,\n\t\t[data-layout-column] &,\n\t\t[data-node-type='expand'] &,\n\t\t[data-panel-type] &,\n\t\tli & {\n\t\t\tmax-width: 100%;\n\t\t}\n\n\t\twidth: ", ";\n\t\t", "\n\n\t\t/* If container doesn't exists, it will fallback to this */\n\t\tmax-width: ", ";\n\t\t", "\n\n\t\t&:not(.is-resizing) {\n\t\t\ttransition: width 100ms ease-in;\n\t\t}\n\n\t\tfloat: ", ";\n\t\tmargin: ", ";\n\n\t\t&[class*='not-resizing'] {\n\t\t\t", "\n\t\t}\n\n\t\t", ";\n\t"])), calculatedWidth, layout === 'full-width' &&
227
227
  /* This causes issues for new experience where we don't strip layout attributes
228
228
  when copying top-level node and pasting into a table/layout,
229
229
  because full-width layout will remain, causing node to be edge-to-edge */
230
230
  !isExtendedResizeExperienceOn && (0, _react2.css)({
231
231
  minWidth: '100%'
232
- }), isExtendedResizeExperienceOn && (0, _platformFeatureFlags.fg)('platform_fix_media_image_resizing') ? (0, _react2.css)({
233
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
234
- '@container view-page-content (min-width: 1px)': {
235
- maxWidth: '100cqw'
236
- }
237
- }) : '', (0, _isSsr.isSSR)() && !calculatedMaxWidth.endsWith('%') && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
232
+ }), (0, _isSsr.isSSR)() && !calculatedMaxWidth.endsWith('%') && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
238
233
  };
239
234
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
240
235
  var hasFallbackContainer = _ref2.hasFallbackContainer,
@@ -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 = "107.4.0";
4
+ const packageVersion = "107.4.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 = "107.4.0";
16
+ const packageVersion = "107.4.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -117,7 +117,7 @@ export default function MediaSingle({
117
117
  nodeType
118
118
  })
119
119
  // eslint-disable-next-line react/jsx-props-no-spreading
120
- }, fg('platform_fix_media_image_resizing') || fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
120
+ }, fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
121
121
  'data-layout': layout
122
122
  }, {
123
123
  "data-width": mediaSingleWidth,
@@ -132,7 +132,7 @@ export default function MediaSingle({
132
132
  })
133
133
  // Ignored via go/ees005
134
134
  // eslint-disable-next-line react/jsx-props-no-spreading
135
- }, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
135
+ }, dataAttributes, VcMediaWrapperProps), jsx(MediaWrapper, {
136
136
  hasFallbackContainer: hasFallbackContainer,
137
137
  height: mediaWrapperHeight,
138
138
  paddingBottom: paddingBottom
@@ -218,12 +218,7 @@ export const MediaSingleDimensionHelper = ({
218
218
  !isExtendedResizeExperienceOn && css({
219
219
  minWidth: '100%'
220
220
  })}
221
- ${isExtendedResizeExperienceOn && fg('platform_fix_media_image_resizing') ? css({
222
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
223
- '@container view-page-content (min-width: 1px)': {
224
- maxWidth: '100cqw'
225
- }
226
- }) : ''}
221
+
227
222
  /* If container doesn't exists, it will fallback to this */
228
223
  max-width: ${isSSR() && !calculatedMaxWidth.endsWith('%') && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth};
229
224
  ${isExtendedResizeExperienceOn && `&[class*='is-resizing'] {
@@ -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 = "107.4.0";
10
+ var packageVersion = "107.4.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 = "107.4.0";
23
+ var packageVersion = "107.4.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -124,7 +124,7 @@ export default function MediaSingle(_ref) {
124
124
  nodeType: nodeType
125
125
  })
126
126
  // eslint-disable-next-line react/jsx-props-no-spreading
127
- }, fg('platform_fix_media_image_resizing') || fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
127
+ }, fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
128
128
  'data-layout': layout
129
129
  }, {
130
130
  "data-width": mediaSingleWidth,
@@ -139,7 +139,7 @@ export default function MediaSingle(_ref) {
139
139
  })
140
140
  // Ignored via go/ees005
141
141
  // eslint-disable-next-line react/jsx-props-no-spreading
142
- }, dataAttributes, fg('platform_exclude_media_single_from_vc') && VcMediaWrapperProps), jsx(MediaWrapper, {
142
+ }, dataAttributes, VcMediaWrapperProps), jsx(MediaWrapper, {
143
143
  hasFallbackContainer: hasFallbackContainer,
144
144
  height: mediaWrapperHeight,
145
145
  paddingBottom: paddingBottom
@@ -213,18 +213,13 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
213
213
 
214
214
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
215
215
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
216
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t/* For nested rich media items, set max-width to 100% */\n\t\ttr &,\n\t\t[data-layout-column] &,\n\t\t[data-node-type='expand'] &,\n\t\t[data-panel-type] &,\n\t\tli & {\n\t\t\tmax-width: 100%;\n\t\t}\n\n\t\twidth: ", ";\n\t\t", "\n\t\t", "\n\t\t/* If container doesn't exists, it will fallback to this */\n\t\tmax-width: ", ";\n\t\t", "\n\n\t\t&:not(.is-resizing) {\n\t\t\ttransition: width 100ms ease-in;\n\t\t}\n\n\t\tfloat: ", ";\n\t\tmargin: ", ";\n\n\t\t&[class*='not-resizing'] {\n\t\t\t", "\n\t\t}\n\n\t\t", ";\n\t"])), calculatedWidth, layout === 'full-width' &&
216
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t/* For nested rich media items, set max-width to 100% */\n\t\ttr &,\n\t\t[data-layout-column] &,\n\t\t[data-node-type='expand'] &,\n\t\t[data-panel-type] &,\n\t\tli & {\n\t\t\tmax-width: 100%;\n\t\t}\n\n\t\twidth: ", ";\n\t\t", "\n\n\t\t/* If container doesn't exists, it will fallback to this */\n\t\tmax-width: ", ";\n\t\t", "\n\n\t\t&:not(.is-resizing) {\n\t\t\ttransition: width 100ms ease-in;\n\t\t}\n\n\t\tfloat: ", ";\n\t\tmargin: ", ";\n\n\t\t&[class*='not-resizing'] {\n\t\t\t", "\n\t\t}\n\n\t\t", ";\n\t"])), calculatedWidth, layout === 'full-width' &&
217
217
  /* This causes issues for new experience where we don't strip layout attributes
218
218
  when copying top-level node and pasting into a table/layout,
219
219
  because full-width layout will remain, causing node to be edge-to-edge */
220
220
  !isExtendedResizeExperienceOn && css({
221
221
  minWidth: '100%'
222
- }), isExtendedResizeExperienceOn && fg('platform_fix_media_image_resizing') ? css({
223
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
224
- '@container view-page-content (min-width: 1px)': {
225
- maxWidth: '100cqw'
226
- }
227
- }) : '', isSSR() && !calculatedMaxWidth.endsWith('%') && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
222
+ }), isSSR() && !calculatedMaxWidth.endsWith('%') && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
228
223
  };
229
224
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
230
225
  var hasFallbackContainer = _ref2.hasFallbackContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.4.1",
3
+ "version": "107.4.2",
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/"
@@ -151,7 +151,7 @@
151
151
  "@atlaskit/media-common": "^12.3.0",
152
152
  "@atlaskit/media-file-preview": "^0.11.0",
153
153
  "@atlaskit/media-picker": "^70.0.0",
154
- "@atlaskit/media-ui": "^28.5.0",
154
+ "@atlaskit/media-ui": "^28.6.0",
155
155
  "@atlaskit/media-viewer": "^52.4.0",
156
156
  "@atlaskit/mention": "^24.2.0",
157
157
  "@atlaskit/menu": "^8.0.0",
@@ -313,9 +313,6 @@
313
313
  "editor_a11y_aria_label_removal_popup": {
314
314
  "type": "boolean"
315
315
  },
316
- "platform_fix_media_image_resizing": {
317
- "type": "boolean"
318
- },
319
316
  "platform_editor_fix_image_size_diff_during_ssr": {
320
317
  "type": "boolean"
321
318
  },
@@ -328,9 +325,6 @@
328
325
  "platform_editor_refactor_view_more": {
329
326
  "type": "boolean"
330
327
  },
331
- "platform_exclude_media_single_from_vc": {
332
- "type": "boolean"
333
- },
334
328
  "platform_editor_add_border_for_nested_panel": {
335
329
  "type": "boolean"
336
330
  },