@atlaskit/renderer 123.3.1 → 123.3.3

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,21 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 123.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`45c6f8d40f9ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/45c6f8d40f9ac) -
8
+ Bump i18n pkg versions for atlaskit packages for including license field
9
+ - Updated dependencies
10
+
11
+ ## 123.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`6b6eca9cee16d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b6eca9cee16d) -
16
+ Switch to use editorExperiment to use productKey for responsive preview panel changes.
17
+ - Updated dependencies
18
+
3
19
  ## 123.3.1
4
20
 
5
21
  ### Patch Changes
@@ -16,7 +16,7 @@ var _ui = require("@atlaskit/editor-common/ui");
16
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
18
  var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
19
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
20
  var _fallback = require("./fallback");
21
21
  var _style = require("../../ui/Renderer/style");
22
22
  var _getCardClickHandler = require("../utils/getCardClickHandler");
@@ -263,6 +263,8 @@ var EmbedOrBlockCardInternal = exports.EmbedOrBlockCardInternal = function Embed
263
263
  });
264
264
  };
265
265
  var EmbedCardWithCondition = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
266
- return (0, _expValEquals.expValEquals)('platform_editor_preview_panel_responsiveness', 'isEnabled', true);
266
+ return (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
267
+ exposure: true
268
+ });
267
269
  }, EmbedOrBlockCardInternal, EmbedCardInternal);
268
270
  var _default = exports.default = EmbedCardWithCondition;
@@ -30,7 +30,6 @@ var _SmartCardStorage = require("../../ui/SmartCardStorage");
30
30
  var _sticky = require("./table/sticky");
31
31
  var _table = require("./table/table");
32
32
  var _appearance = require("../utils/appearance");
33
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
34
33
  var _TableStickyScrollbar = require("./TableStickyScrollbar");
35
34
  var _tableNew = require("./tableNew");
36
35
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
@@ -426,7 +425,9 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
426
425
  // Please consider changes below carefully to not negatively impact SSR
427
426
  // `renderWidth` cannot be depended on during SSR
428
427
  var isRenderWidthValid = !!renderWidth && renderWidth > 0;
429
- var fullPageRendererWidthCSS = (0, _expValEquals.expValEquals)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(_style.FullPagePadding, "px * 2");
428
+ var fullPageRendererWidthCSS = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
429
+ exposure: true
430
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(_style.FullPagePadding, "px * 2");
430
431
  var renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : "100cqw";
431
432
  var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
432
433
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -16,7 +16,6 @@ var _styles = require("@atlaskit/editor-common/styles");
16
16
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
17
17
  var _style = require("../../ui/Renderer/style");
18
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
19
  var _utils = require("@atlaskit/editor-common/utils");
21
20
  var _types = require("@atlaskit/editor-common/types");
22
21
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -400,7 +399,9 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
400
399
  var stickyMode = this.state.stickyMode;
401
400
  var lineLengthFixedWidth = _editorSharedStyles.akEditorDefaultLayoutWidth;
402
401
  var updatedLayout;
403
- var fullPageRendererWidthCSS = (0, _expValEquals.expValEquals)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(_style.FullPagePadding, "px * 2");
402
+ var fullPageRendererWidthCSS = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
403
+ exposure: true
404
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(_style.FullPagePadding, "px * 2");
404
405
  var renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : "100cqw";
405
406
  var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
406
407
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
63
63
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
64
64
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "123.3.0";
66
+ var packageVersion = "0.0.0-development";
67
67
  var setAsQueryContainerStyles = (0, _react2.css)({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -13,7 +13,7 @@ import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle, WidthCon
13
13
  import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
16
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
17
  import { CardErrorBoundary } from './fallback';
18
18
  import { FullPagePadding } from '../../ui/Renderer/style';
19
19
  import { getCardClickHandler } from '../utils/getCardClickHandler';
@@ -252,5 +252,7 @@ export const EmbedOrBlockCardInternal = ({
252
252
  isInsideOfInlineExtension: isInsideOfInlineExtension
253
253
  });
254
254
  };
255
- const EmbedCardWithCondition = componentWithCondition(() => expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true), EmbedOrBlockCardInternal, EmbedCardInternal);
255
+ const EmbedCardWithCondition = componentWithCondition(() => editorExperiment('platform_editor_preview_panel_responsiveness', true, {
256
+ exposure: true
257
+ }), EmbedOrBlockCardInternal, EmbedCardInternal);
256
258
  export default EmbedCardWithCondition;
@@ -17,7 +17,6 @@ import { withSmartCardStorage } from '../../ui/SmartCardStorage';
17
17
  import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
18
18
  import { Table } from './table/table';
19
19
  import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
20
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
20
  import { TableStickyScrollbar } from './TableStickyScrollbar';
22
21
  import { TableProcessorWithContainerStyles } from './tableNew';
23
22
  export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
@@ -372,7 +371,9 @@ export class TableContainer extends React.Component {
372
371
  // Please consider changes below carefully to not negatively impact SSR
373
372
  // `renderWidth` cannot be depended on during SSR
374
373
  const isRenderWidthValid = !!renderWidth && renderWidth > 0;
375
- const fullPageRendererWidthCSS = expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : `100cqw - ${FullPagePadding}px * 2`;
374
+ const fullPageRendererWidthCSS = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
375
+ exposure: true
376
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : `100cqw - ${FullPagePadding}px * 2`;
376
377
  const renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : `100cqw`;
377
378
  const calcDefaultLayoutWidthByAppearance = (rendererAppearance, tableNode) => {
378
379
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -5,7 +5,6 @@ import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common
5
5
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
6
6
  import { FullPagePadding } from '../../ui/Renderer/style';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
10
9
  import { SortOrder } from '@atlaskit/editor-common/types';
11
10
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
@@ -344,7 +343,9 @@ export class TableContainer extends React.Component {
344
343
  } = this.state;
345
344
  const lineLengthFixedWidth = akEditorDefaultLayoutWidth;
346
345
  let updatedLayout;
347
- const fullPageRendererWidthCSS = expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : `100cqw - ${FullPagePadding}px * 2`;
346
+ const fullPageRendererWidthCSS = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
347
+ exposure: true
348
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : `100cqw - ${FullPagePadding}px * 2`;
348
349
  const renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : `100cqw`;
349
350
  const calcDefaultLayoutWidthByAppearance = (rendererAppearance, tableNode) => {
350
351
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
49
49
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
50
50
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
51
51
  const packageName = "@atlaskit/renderer";
52
- const packageVersion = "123.3.0";
52
+ const packageVersion = "0.0.0-development";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -14,7 +14,7 @@ import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle, WidthCon
14
14
  import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
17
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
18
18
  import { CardErrorBoundary } from './fallback';
19
19
  import { FullPagePadding } from '../../ui/Renderer/style';
20
20
  import { getCardClickHandler } from '../utils/getCardClickHandler';
@@ -255,6 +255,8 @@ export var EmbedOrBlockCardInternal = function EmbedOrBlockCardInternal(_ref5) {
255
255
  });
256
256
  };
257
257
  var EmbedCardWithCondition = componentWithCondition(function () {
258
- return expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true);
258
+ return editorExperiment('platform_editor_preview_panel_responsiveness', true, {
259
+ exposure: true
260
+ });
259
261
  }, EmbedOrBlockCardInternal, EmbedCardInternal);
260
262
  export default EmbedCardWithCondition;
@@ -28,7 +28,6 @@ import { withSmartCardStorage } from '../../ui/SmartCardStorage';
28
28
  import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
29
29
  import { Table } from './table/table';
30
30
  import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
31
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
32
31
  import { TableStickyScrollbar } from './TableStickyScrollbar';
33
32
  import { TableProcessorWithContainerStyles } from './tableNew';
34
33
  export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
@@ -419,7 +418,9 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
419
418
  // Please consider changes below carefully to not negatively impact SSR
420
419
  // `renderWidth` cannot be depended on during SSR
421
420
  var isRenderWidthValid = !!renderWidth && renderWidth > 0;
422
- var fullPageRendererWidthCSS = expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(FullPagePadding, "px * 2");
421
+ var fullPageRendererWidthCSS = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
422
+ exposure: true
423
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(FullPagePadding, "px * 2");
423
424
  var renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : "100cqw";
424
425
  var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
425
426
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -17,7 +17,6 @@ import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common
17
17
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
18
18
  import { FullPagePadding } from '../../ui/Renderer/style';
19
19
  import { fg } from '@atlaskit/platform-feature-flags';
20
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
20
  import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
22
21
  import { SortOrder } from '@atlaskit/editor-common/types';
23
22
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
@@ -394,7 +393,9 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
394
393
  var stickyMode = this.state.stickyMode;
395
394
  var lineLengthFixedWidth = akEditorDefaultLayoutWidth;
396
395
  var updatedLayout;
397
- var fullPageRendererWidthCSS = expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(FullPagePadding, "px * 2");
396
+ var fullPageRendererWidthCSS = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
397
+ exposure: true
398
+ }) ? 'calc(100cqw - var(--ak-renderer--full-page-gutter) * 2)' : "100cqw - ".concat(FullPagePadding, "px * 2");
398
399
  var renderWidthCSS = rendererAppearance === 'full-page' ? fullPageRendererWidthCSS : "100cqw";
399
400
  var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
400
401
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
@@ -54,7 +54,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "123.3.0";
57
+ var packageVersion = "0.0.0-development";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "123.3.1",
3
+ "version": "123.3.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@atlaskit/adf-schema": "^51.1.2",
27
27
  "@atlaskit/adf-utils": "^19.23.0",
28
- "@atlaskit/afm-i18n-platform-editor-renderer": "2.5.0",
28
+ "@atlaskit/afm-i18n-platform-editor-renderer": "2.7.0",
29
29
  "@atlaskit/analytics-listeners": "^9.0.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
31
31
  "@atlaskit/analytics-next": "^11.1.0",