@atlaskit/renderer 126.2.4 → 126.3.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,23 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 126.3.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
+ ## 126.2.5
15
+
16
+ ### Patch Changes
17
+
18
+ - [`4547a732e1d15`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4547a732e1d15) -
19
+ add comment for block card ssr gate logic
20
+
3
21
  ## 126.2.4
4
22
 
5
23
  ### Patch Changes
@@ -132,7 +132,16 @@ function BlockCard(props) {
132
132
  });
133
133
  }
134
134
  var cardComponent;
135
- if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && ((0, _platformFeatureFlags.fg)('platform_ssr_smartlink_cards') || (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-links'))) {
135
+ if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (
136
+ // Clean up feature gates when both are fully rolled out.
137
+ // - platform_ssr_smartlink_cards: Controls SSR smart links for confluence (100% rolled out)
138
+ // - jfp-magma-ssr-iv-editor-links: Controls SSR smart links for jira (at time of comment: 50% rolled out)
139
+ // Once both gates are 100% rolled out, remove this condition entirely and make
140
+ // smart link SSR behavior the default.
141
+ // NOTE: This is a temporary solution to allow for the gradual rollout of SSR smart links for jira and keep it
142
+ // fully rolled out for confluence since both gates target different products keep only one gate to control the behavior
143
+ // isnt correct.
144
+ (0, _platformFeatureFlags.fg)('platform_ssr_smartlink_cards') || (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-links'))) {
136
145
  cardComponent = (0, _react.jsx)(_ssr.CardSSR, (0, _extends2.default)({
137
146
  appearance: "block",
138
147
  platform: platform
@@ -100,7 +100,7 @@ var OverlayWithCardContext = function OverlayWithCardContext(_ref) {
100
100
  var showPanelButtonIcon = isPreviewPanelAvailable ? 'panel' : isPreviewModalAvailable ? 'modal' : undefined;
101
101
 
102
102
  // When inside preview panel iframe, hide the overlay button
103
- var isInPreviewPanel = (0, _expValEquals.expValEquals)('platform_hover_card_preview_panel_modal', 'cohort', 'test') && (0, _utils.isWithinPreviewPanelIFrame)();
103
+ var isInPreviewPanel = (0, _utils.isWithinPreviewPanelIFrame)();
104
104
  var showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
105
105
  var Overlay = isPreviewAvailable ? HoverLinkOverlayWithCondition : HoverLinkOverlayNoop;
106
106
  return (0, _react2.jsx)(Overlay, {
@@ -173,7 +173,7 @@ var InlineCard = function InlineCard(props) {
173
173
  };
174
174
  var inlineAnnotationProps = (0, _useInlineAnnotationProps.useInlineAnnotationProps)(props);
175
175
  var CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
176
- var CompetitorPromptComponent = CompetitorPrompt && url && (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') ? (0, _react2.jsx)(CompetitorPrompt, {
176
+ var CompetitorPromptComponent = CompetitorPrompt && url ? (0, _react2.jsx)(CompetitorPrompt, {
177
177
  sourceUrl: url,
178
178
  linkType: "inline"
179
179
  }) : null;
@@ -214,7 +214,7 @@ var InlineCard = function InlineCard(props) {
214
214
  showHoverPreview: !hideHoverPreview,
215
215
  actionOptions: actionOptions,
216
216
  onClick: onClick
217
- }));
217
+ }), CompetitorPromptComponent);
218
218
  } else if (ssr && url && (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true, {
219
219
  exposure: true
220
220
  })) {
@@ -70,7 +70,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
70
70
  var TABLE_INFO_TIMEOUT = 10000;
71
71
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
72
72
  var packageName = "@atlaskit/renderer";
73
- var packageVersion = "126.2.3";
73
+ var packageVersion = "0.0.0-development";
74
74
  var setAsQueryContainerStyles = (0, _react2.css)({
75
75
  containerName: 'ak-renderer-wrapper',
76
76
  containerType: 'inline-size'
@@ -119,7 +119,16 @@ export default function BlockCard(props) {
119
119
  });
120
120
  }
121
121
  let cardComponent;
122
- if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
122
+ if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (
123
+ // Clean up feature gates when both are fully rolled out.
124
+ // - platform_ssr_smartlink_cards: Controls SSR smart links for confluence (100% rolled out)
125
+ // - jfp-magma-ssr-iv-editor-links: Controls SSR smart links for jira (at time of comment: 50% rolled out)
126
+ // Once both gates are 100% rolled out, remove this condition entirely and make
127
+ // smart link SSR behavior the default.
128
+ // NOTE: This is a temporary solution to allow for the gradual rollout of SSR smart links for jira and keep it
129
+ // fully rolled out for confluence since both gates target different products keep only one gate to control the behavior
130
+ // isnt correct.
131
+ fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
123
132
  cardComponent = jsx(CardSSR, _extends({
124
133
  appearance: "block",
125
134
  platform: platform
@@ -83,7 +83,7 @@ const OverlayWithCardContext = ({
83
83
  const showPanelButtonIcon = isPreviewPanelAvailable ? 'panel' : isPreviewModalAvailable ? 'modal' : undefined;
84
84
 
85
85
  // When inside preview panel iframe, hide the overlay button
86
- const isInPreviewPanel = expValEquals('platform_hover_card_preview_panel_modal', 'cohort', 'test') && isWithinPreviewPanelIFrame();
86
+ const isInPreviewPanel = isWithinPreviewPanelIFrame();
87
87
  const showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
88
88
  const Overlay = isPreviewAvailable ? HoverLinkOverlayWithCondition : HoverLinkOverlayNoop;
89
89
  return jsx(Overlay, {
@@ -156,7 +156,7 @@ const InlineCard = props => {
156
156
  };
157
157
  const inlineAnnotationProps = useInlineAnnotationProps(props);
158
158
  const CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
159
- const CompetitorPromptComponent = CompetitorPrompt && url && fg('prompt_whiteboard_competitor_link_gate') ? jsx(CompetitorPrompt, {
159
+ const CompetitorPromptComponent = CompetitorPrompt && url ? jsx(CompetitorPrompt, {
160
160
  sourceUrl: url,
161
161
  linkType: "inline"
162
162
  }) : null;
@@ -198,7 +198,7 @@ const InlineCard = props => {
198
198
  showHoverPreview: !hideHoverPreview,
199
199
  actionOptions: actionOptions,
200
200
  onClick: onClick
201
- }));
201
+ }), CompetitorPromptComponent);
202
202
  } else if (ssr && url && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
203
203
  exposure: true
204
204
  })) {
@@ -56,7 +56,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  const TABLE_INFO_TIMEOUT = 10000;
57
57
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
58
58
  const packageName = "@atlaskit/renderer";
59
- const packageVersion = "126.2.3";
59
+ const packageVersion = "0.0.0-development";
60
60
  const setAsQueryContainerStyles = css({
61
61
  containerName: 'ak-renderer-wrapper',
62
62
  containerType: 'inline-size'
@@ -124,7 +124,16 @@ export default function BlockCard(props) {
124
124
  });
125
125
  }
126
126
  var cardComponent;
127
- if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
127
+ if (smartLinks !== null && smartLinks !== void 0 && smartLinks.ssr && url && (
128
+ // Clean up feature gates when both are fully rolled out.
129
+ // - platform_ssr_smartlink_cards: Controls SSR smart links for confluence (100% rolled out)
130
+ // - jfp-magma-ssr-iv-editor-links: Controls SSR smart links for jira (at time of comment: 50% rolled out)
131
+ // Once both gates are 100% rolled out, remove this condition entirely and make
132
+ // smart link SSR behavior the default.
133
+ // NOTE: This is a temporary solution to allow for the gradual rollout of SSR smart links for jira and keep it
134
+ // fully rolled out for confluence since both gates target different products keep only one gate to control the behavior
135
+ // isnt correct.
136
+ fg('platform_ssr_smartlink_cards') || fg('jfp-magma-ssr-iv-editor-links'))) {
128
137
  cardComponent = jsx(CardSSR, _extends({
129
138
  appearance: "block",
130
139
  platform: platform
@@ -91,7 +91,7 @@ var OverlayWithCardContext = function OverlayWithCardContext(_ref) {
91
91
  var showPanelButtonIcon = isPreviewPanelAvailable ? 'panel' : isPreviewModalAvailable ? 'modal' : undefined;
92
92
 
93
93
  // When inside preview panel iframe, hide the overlay button
94
- var isInPreviewPanel = expValEquals('platform_hover_card_preview_panel_modal', 'cohort', 'test') && isWithinPreviewPanelIFrame();
94
+ var isInPreviewPanel = isWithinPreviewPanelIFrame();
95
95
  var showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
96
96
  var Overlay = isPreviewAvailable ? HoverLinkOverlayWithCondition : HoverLinkOverlayNoop;
97
97
  return jsx(Overlay, {
@@ -164,7 +164,7 @@ var InlineCard = function InlineCard(props) {
164
164
  };
165
165
  var inlineAnnotationProps = useInlineAnnotationProps(props);
166
166
  var CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
167
- var CompetitorPromptComponent = CompetitorPrompt && url && fg('prompt_whiteboard_competitor_link_gate') ? jsx(CompetitorPrompt, {
167
+ var CompetitorPromptComponent = CompetitorPrompt && url ? jsx(CompetitorPrompt, {
168
168
  sourceUrl: url,
169
169
  linkType: "inline"
170
170
  }) : null;
@@ -205,7 +205,7 @@ var InlineCard = function InlineCard(props) {
205
205
  showHoverPreview: !hideHoverPreview,
206
206
  actionOptions: actionOptions,
207
207
  onClick: onClick
208
- }));
208
+ }), CompetitorPromptComponent);
209
209
  } else if (ssr && url && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
210
210
  exposure: true
211
211
  })) {
@@ -61,7 +61,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
61
61
  var TABLE_INFO_TIMEOUT = 10000;
62
62
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
63
63
  var packageName = "@atlaskit/renderer";
64
- var packageVersion = "126.2.3";
64
+ var packageVersion = "0.0.0-development";
65
65
  var setAsQueryContainerStyles = css({
66
66
  containerName: 'ak-renderer-wrapper',
67
67
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "126.2.4",
3
+ "version": "126.3.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/feature-gate-js-client": "^5.5.0",
41
41
  "@atlaskit/icon": "^30.0.0",
42
42
  "@atlaskit/link": "^3.3.0",
43
- "@atlaskit/link-datasource": "^4.32.0",
43
+ "@atlaskit/link-datasource": "^4.33.0",
44
44
  "@atlaskit/link-extractors": "^2.4.0",
45
45
  "@atlaskit/linking-common": "^9.9.0",
46
46
  "@atlaskit/media-card": "^79.15.0",
@@ -53,11 +53,11 @@
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
55
55
  "@atlaskit/react-ufo": "^5.0.0",
56
- "@atlaskit/smart-card": "^43.22.0",
56
+ "@atlaskit/smart-card": "^43.23.0",
57
57
  "@atlaskit/status": "^3.1.0",
58
58
  "@atlaskit/task-decision": "^19.2.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^17.1.0",
60
+ "@atlaskit/tmp-editor-statsig": "^17.5.0",
61
61
  "@atlaskit/tokens": "^10.1.0",
62
62
  "@atlaskit/tooltip": "^20.14.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -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
  "@atlaskit/media-core": "^37.0.0",
77
77
  "react": "^18.2.0",
@@ -193,9 +193,6 @@
193
193
  "confluence_frontend_fix_view_page_slo": {
194
194
  "type": "boolean"
195
195
  },
196
- "prompt_whiteboard_competitor_link_gate": {
197
- "type": "boolean"
198
- },
199
196
  "platform_editor_numbered_column_in_include": {
200
197
  "type": "boolean"
201
198
  },