@atlaskit/editor-plugin-caption 11.0.1 → 11.1.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-caption
2
2
 
3
+ ## 11.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.1.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
  ## 11.0.1
4
23
 
5
24
  ### Patch Changes
@@ -19,7 +19,6 @@ var _coreUtils = require("@atlaskit/editor-common/core-utils");
19
19
  var _reactNodeView = require("@atlaskit/editor-common/react-node-view");
20
20
  var _selectionBasedNodeView = require("@atlaskit/editor-common/selection-based-node-view");
21
21
  var _ui = require("@atlaskit/editor-common/ui");
22
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
23
22
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
24
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
24
  var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
@@ -88,7 +87,7 @@ var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_Selectio
88
87
  }, /*#__PURE__*/_react.default.createElement(_reactNodeView.NodeViewContentHole, {
89
88
  ref: forwardRef
90
89
  }));
91
- if (!this.intl || !(0, _coreUtils.isSSR)() || !(0, _expValEquals.expValEquals)('platform_editor_editor_ssr_streaming', 'isEnabled', true)) {
90
+ if (!this.intl || !(0, _coreUtils.isSSR)() || !(0, _coreUtils.isSSRStreaming)()) {
92
91
  return children;
93
92
  }
94
93
  return /*#__PURE__*/_react.default.createElement(_reactIntl.RawIntlProvider, {
@@ -2,11 +2,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { RawIntlProvider } from 'react-intl';
4
4
  import { getDocument } from '@atlaskit/browser-apis';
5
- import { isSSR } from '@atlaskit/editor-common/core-utils';
5
+ import { isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
6
6
  import { NodeViewContentHole } from '@atlaskit/editor-common/react-node-view';
7
7
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
8
8
  import { Caption } from '@atlaskit/editor-common/ui';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  export class CaptionNodeView extends SelectionBasedNodeView {
11
10
  constructor(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi, intl) {
12
11
  super(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate);
@@ -58,7 +57,7 @@ export class CaptionNodeView extends SelectionBasedNodeView {
58
57
  }, /*#__PURE__*/React.createElement(NodeViewContentHole, {
59
58
  ref: forwardRef
60
59
  }));
61
- if (!this.intl || !isSSR() || !expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true)) {
60
+ if (!this.intl || !isSSR() || !isSSRStreaming()) {
62
61
  return children;
63
62
  }
64
63
  return /*#__PURE__*/React.createElement(RawIntlProvider, {
@@ -9,11 +9,10 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
9
9
  import React from 'react';
10
10
  import { RawIntlProvider } from 'react-intl';
11
11
  import { getDocument } from '@atlaskit/browser-apis';
12
- import { isSSR } from '@atlaskit/editor-common/core-utils';
12
+ import { isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
13
13
  import { NodeViewContentHole } from '@atlaskit/editor-common/react-node-view';
14
14
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
15
15
  import { Caption } from '@atlaskit/editor-common/ui';
16
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
16
  export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
18
17
  function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi, intl) {
19
18
  var _this;
@@ -80,7 +79,7 @@ export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
80
79
  }, /*#__PURE__*/React.createElement(NodeViewContentHole, {
81
80
  ref: forwardRef
82
81
  }));
83
- if (!this.intl || !isSSR() || !expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true)) {
82
+ if (!this.intl || !isSSR() || !isSSRStreaming()) {
84
83
  return children;
85
84
  }
86
85
  return /*#__PURE__*/React.createElement(RawIntlProvider, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-caption",
3
- "version": "11.0.1",
3
+ "version": "11.1.1",
4
4
  "description": "Caption plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,16 +27,15 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^52.16.0",
30
+ "@atlaskit/adf-schema": "^53.0.0",
31
31
  "@atlaskit/browser-apis": "^0.0.2",
32
32
  "@atlaskit/editor-plugin-analytics": "^11.0.0",
33
33
  "@atlaskit/editor-plugin-editor-disabled": "^11.0.0",
34
34
  "@atlaskit/editor-prosemirror": "^7.3.0",
35
- "@atlaskit/tmp-editor-statsig": "^89.0.0",
36
35
  "@babel/runtime": "^7.0.0"
37
36
  },
38
37
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^115.2.0",
38
+ "@atlaskit/editor-common": "^115.10.0",
40
39
  "react": "^18.2.0",
41
40
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
42
41
  },