@atlaskit/editor-plugin-media 13.2.0 → 13.3.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,24 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 13.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`6e3b4e2317b34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e3b4e2317b34) -
14
+ [EDITOR-7476](https://hello.jira.atlassian.cloud/browse/EDITOR-7476) - centralize SSR streaming
15
+ checks behind `isSSRStreaming()` so SSR eligibility is checked before emitting exposure for the
16
+ `platform_editor_editor_ssr_streaming` experiment.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 13.2.0
4
23
 
5
24
  ### Minor Changes
@@ -8,11 +8,10 @@ exports.MediaSSRReactContextsProvider = MediaSSRReactContextsProvider;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
10
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  function MediaSSRReactContextsProvider(_ref) {
13
12
  var children = _ref.children,
14
13
  intl = _ref.intl;
15
- if (!(0, _expValEquals.expValEquals)('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !(0, _coreUtils.isSSR)()) {
14
+ if (!(0, _coreUtils.isSSR)() || !(0, _coreUtils.isSSRStreaming)()) {
16
15
  return children;
17
16
  }
18
17
  if (!intl) {
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { RawIntlProvider } from 'react-intl';
3
- import { isSSR } from '@atlaskit/editor-common/core-utils';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
5
4
  export function MediaSSRReactContextsProvider({
6
5
  children,
7
6
  intl
8
7
  }) {
9
- if (!expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !isSSR()) {
8
+ if (!isSSR() || !isSSRStreaming()) {
10
9
  return children;
11
10
  }
12
11
  if (!intl) {
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { RawIntlProvider } from 'react-intl';
3
- import { isSSR } from '@atlaskit/editor-common/core-utils';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
5
4
  export function MediaSSRReactContextsProvider(_ref) {
6
5
  var children = _ref.children,
7
6
  intl = _ref.intl;
8
- if (!expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) || !isSSR()) {
7
+ if (!isSSR() || !isSSRStreaming()) {
9
8
  return children;
10
9
  }
11
10
  if (!intl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "13.2.0",
3
+ "version": "13.3.1",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/form": "^15.5.0",
55
55
  "@atlaskit/icon": "^35.4.0",
56
56
  "@atlaskit/icon-lab": "^6.13.0",
57
- "@atlaskit/media-card": "^80.7.0",
57
+ "@atlaskit/media-card": "^80.8.0",
58
58
  "@atlaskit/media-client": "^36.3.0",
59
59
  "@atlaskit/media-client-react": "^5.2.0",
60
60
  "@atlaskit/media-common": "^13.3.0",
@@ -65,8 +65,8 @@
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/primitives": "^19.0.0",
67
67
  "@atlaskit/textfield": "^8.3.0",
68
- "@atlaskit/tmp-editor-statsig": "^89.0.0",
69
- "@atlaskit/tokens": "^13.1.0",
68
+ "@atlaskit/tmp-editor-statsig": "^90.0.0",
69
+ "@atlaskit/tokens": "^13.3.0",
70
70
  "@atlaskit/tooltip": "^22.6.0",
71
71
  "@babel/runtime": "^7.0.0",
72
72
  "@emotion/react": "^11.7.1",
@@ -77,7 +77,7 @@
77
77
  "uuid": "^3.1.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@atlaskit/editor-common": "^115.5.0",
80
+ "@atlaskit/editor-common": "^115.7.0",
81
81
  "@atlaskit/media-core": "^37.1.0",
82
82
  "react": "^18.2.0",
83
83
  "react-dom": "^18.2.0",