@atlaskit/editor-plugin-card 12.1.4 → 12.2.0

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,22 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`110cf61eebfdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/110cf61eebfdd) -
8
+ [ux] Cleanup prompt_whiteboard_competitor_link_gate
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 12.1.5
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 12.1.4
4
21
 
5
22
  ### Patch Changes
@@ -15,7 +15,6 @@ var _v = _interopRequireDefault(require("uuid/v4"));
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _hooks = require("@atlaskit/editor-common/hooks");
17
17
  var _ui = require("@atlaskit/editor-common/ui");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _smartCard = require("@atlaskit/smart-card");
20
19
  var _ssr = require("@atlaskit/smart-card/ssr");
21
20
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -200,7 +199,7 @@ function InlineCardNodeView(props) {
200
199
  appearance: "inline"
201
200
  // Ignored via go/ees005
202
201
  // eslint-disable-next-line react/jsx-props-no-spreading
203
- }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
202
+ }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), CompetitorPromptComponent);
204
203
  }
205
204
  var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref3) {
206
205
  var inlineCardViewProducer = _ref3.inlineCardViewProducer;
@@ -187,7 +187,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
187
187
  // otherwise a use can click on smartlink itself to open the link in a new tab.
188
188
  var isPreviewAvailable = isPreviewPanelAvailable || isPreviewModalAvailable;
189
189
  // When inside preview panel iframe, hide the overlay button
190
- var isInPreviewPanel = (0, _expValEquals.expValEquals)('platform_hover_card_preview_panel_modal', 'cohort', 'test') && (0, _utils.isWithinPreviewPanelIFrame)();
190
+ var isInPreviewPanel = (0, _utils.isWithinPreviewPanelIFrame)();
191
191
  var showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
192
192
  if (isPreviewAvailable) {
193
193
  var _pluginInjectionApi$a4;
@@ -6,7 +6,6 @@ import uuid from 'uuid/v4';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { UnsupportedInline, findOverflowScrollParent } from '@atlaskit/editor-common/ui';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Card as SmartCard } from '@atlaskit/smart-card';
11
10
  import { CardSSR } from '@atlaskit/smart-card/ssr';
12
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -198,7 +197,7 @@ export function InlineCardNodeView(props) {
198
197
  appearance: "inline"
199
198
  // Ignored via go/ees005
200
199
  // eslint-disable-next-line react/jsx-props-no-spreading
201
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
200
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), CompetitorPromptComponent);
202
201
  }
203
202
  export const inlineCardNodeView = ({
204
203
  inlineCardViewProducer
@@ -166,7 +166,7 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
166
166
  // otherwise a use can click on smartlink itself to open the link in a new tab.
167
167
  const isPreviewAvailable = isPreviewPanelAvailable || isPreviewModalAvailable;
168
168
  // When inside preview panel iframe, hide the overlay button
169
- const isInPreviewPanel = expValEquals('platform_hover_card_preview_panel_modal', 'cohort', 'test') && isWithinPreviewPanelIFrame();
169
+ const isInPreviewPanel = isWithinPreviewPanelIFrame();
170
170
  const showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
171
171
  if (isPreviewAvailable) {
172
172
  var _pluginInjectionApi$a5;
@@ -6,7 +6,6 @@ import uuid from 'uuid/v4';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { UnsupportedInline, findOverflowScrollParent } from '@atlaskit/editor-common/ui';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Card as SmartCard } from '@atlaskit/smart-card';
11
10
  import { CardSSR } from '@atlaskit/smart-card/ssr';
12
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -188,7 +187,7 @@ export function InlineCardNodeView(props) {
188
187
  appearance: "inline"
189
188
  // Ignored via go/ees005
190
189
  // eslint-disable-next-line react/jsx-props-no-spreading
191
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
190
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, mode === 'view'))), CompetitorPromptComponent);
192
191
  }
193
192
  export var inlineCardNodeView = function inlineCardNodeView(_ref3) {
194
193
  var inlineCardViewProducer = _ref3.inlineCardViewProducer;
@@ -178,7 +178,7 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
178
178
  // otherwise a use can click on smartlink itself to open the link in a new tab.
179
179
  var isPreviewAvailable = isPreviewPanelAvailable || isPreviewModalAvailable;
180
180
  // When inside preview panel iframe, hide the overlay button
181
- var isInPreviewPanel = expValEquals('platform_hover_card_preview_panel_modal', 'cohort', 'test') && isWithinPreviewPanelIFrame();
181
+ var isInPreviewPanel = isWithinPreviewPanelIFrame();
182
182
  var showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
183
183
  if (isPreviewAvailable) {
184
184
  var _pluginInjectionApi$a4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "12.1.4",
3
+ "version": "12.2.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/link": "^3.3.0",
51
51
  "@atlaskit/link-analytics": "^11.0.0",
52
52
  "@atlaskit/link-client-extension": "^6.0.0",
53
- "@atlaskit/link-datasource": "^4.32.0",
53
+ "@atlaskit/link-datasource": "^4.33.0",
54
54
  "@atlaskit/link-extractors": "^2.4.0",
55
55
  "@atlaskit/linking-common": "^9.9.0",
56
56
  "@atlaskit/linking-types": "^14.2.0",
@@ -59,9 +59,9 @@
59
59
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
60
60
  "@atlaskit/primitives": "^17.1.0",
61
61
  "@atlaskit/prosemirror-history": "^0.2.0",
62
- "@atlaskit/smart-card": "^43.22.0",
62
+ "@atlaskit/smart-card": "^43.23.0",
63
63
  "@atlaskit/theme": "^21.0.0",
64
- "@atlaskit/tmp-editor-statsig": "^16.35.0",
64
+ "@atlaskit/tmp-editor-statsig": "^17.5.0",
65
65
  "@atlaskit/tokens": "^10.1.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": "^111.9.0",
74
+ "@atlaskit/editor-common": "^111.11.0",
75
75
  "@atlaskit/link-provider": "^4.1.0",
76
76
  "react": "^18.2.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -113,9 +113,6 @@
113
113
  "confluence-issue-terminology-refresh": {
114
114
  "type": "boolean"
115
115
  },
116
- "prompt_whiteboard_competitor_link_gate": {
117
- "type": "boolean"
118
- },
119
116
  "dst-a11y__replace-anchor-with-link__linking-platfo": {
120
117
  "type": "boolean"
121
118
  },