@atlaskit/editor-plugin-card 21.0.7 → 21.0.9

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,20 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 21.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a285770e5decb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a285770e5decb) -
8
+ Use @atlaskit/platform-feature-experiments directly for
9
+ platform_editor_inline_card_dispatch_guard.
10
+ - Updated dependencies
11
+
12
+ ## 21.0.8
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 21.0.7
4
19
 
5
20
  ### Patch Changes
@@ -11,6 +11,7 @@ var _rafSchd = _interopRequireDefault(require("raf-schd"));
11
11
  var _v = _interopRequireDefault(require("uuid/v4"));
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _ui = require("@atlaskit/editor-common/ui");
14
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
14
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _smartCard = require("@atlaskit/smart-card");
16
17
  var _ssr = require("@atlaskit/smart-card/ssr");
@@ -50,7 +51,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
50
51
  var id = refId.current;
51
52
  removeCardDispatched.current = false;
52
53
  return function () {
53
- if ((0, _expValEquals.expValEquals)('platform_editor_inline_card_dispatch_guard', 'isEnabled', true) && removeCardDispatched.current) {
54
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_inline_card_dispatch_guard') && removeCardDispatched.current) {
54
55
  return;
55
56
  }
56
57
  removeCardDispatched.current = true;
@@ -4,6 +4,7 @@ import rafSchedule from 'raf-schd';
4
4
  import uuid from 'uuid/v4';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
7
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
7
8
  import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { Card as SmartCard } from '@atlaskit/smart-card';
9
10
  import { CardSSR } from '@atlaskit/smart-card/ssr';
@@ -43,7 +44,7 @@ export const InlineCard = /*#__PURE__*/memo(({
43
44
  const id = refId.current;
44
45
  removeCardDispatched.current = false;
45
46
  return () => {
46
- if (expValEquals('platform_editor_inline_card_dispatch_guard', 'isEnabled', true) && removeCardDispatched.current) {
47
+ if (isExperimentEnabled('platform_editor_inline_card_dispatch_guard') && removeCardDispatched.current) {
47
48
  return;
48
49
  }
49
50
  removeCardDispatched.current = true;
@@ -4,6 +4,7 @@ import rafSchedule from 'raf-schd';
4
4
  import uuid from 'uuid/v4';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
7
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
7
8
  import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { Card as SmartCard } from '@atlaskit/smart-card';
9
10
  import { CardSSR } from '@atlaskit/smart-card/ssr';
@@ -40,7 +41,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
40
41
  var id = refId.current;
41
42
  removeCardDispatched.current = false;
42
43
  return function () {
43
- if (expValEquals('platform_editor_inline_card_dispatch_guard', 'isEnabled', true) && removeCardDispatched.current) {
44
+ if (isExperimentEnabled('platform_editor_inline_card_dispatch_guard') && removeCardDispatched.current) {
44
45
  return;
45
46
  }
46
47
  removeCardDispatched.current = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "21.0.7",
3
+ "version": "21.0.9",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -58,10 +58,10 @@
58
58
  "@atlaskit/platform-feature-experiments": "^0.3.0",
59
59
  "@atlaskit/platform-feature-flags": "^2.1.0",
60
60
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
61
- "@atlaskit/primitives": "^22.2.0",
61
+ "@atlaskit/primitives": "^22.3.0",
62
62
  "@atlaskit/prosemirror-history": "^1.2.0",
63
63
  "@atlaskit/smart-card": "^45.17.0",
64
- "@atlaskit/tmp-editor-statsig": "^153.0.0",
64
+ "@atlaskit/tmp-editor-statsig": "^155.0.0",
65
65
  "@atlaskit/tokens": "^16.7.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^119.9.0",
74
+ "@atlaskit/editor-common": "^119.10.0",
75
75
  "@atlaskit/link-provider": "^5.3.0",
76
76
  "react": "^18.2.0 || ^19.2.0",
77
77
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"