@atlaskit/smart-card 43.26.11 → 43.26.13

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,19 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.26.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6f1aadb138410`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f1aadb138410) -
8
+ Migrate to new FG: jpx-1074-smart-links-iframe
9
+ - Updated dependencies
10
+
11
+ ## 43.26.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 43.26.11
4
18
 
5
19
  ### Patch Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "43.26.10"
14
+ packageVersion: "43.26.12"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -87,7 +87,7 @@ var Frame = exports.Frame = /*#__PURE__*/_react.default.forwardRef(function (_re
87
87
  (0, _react.useEffect)(function () {
88
88
  var onBlur = function onBlur() {
89
89
  setWindowFocused(false);
90
- if ((0, _platformFeatureFlags.fg)('jpx-833-smart-links-graphql-provider')) {
90
+ if ((0, _platformFeatureFlags.fg)('jpx-1074-smart-links-iframe')) {
91
91
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
92
92
  onIframeFocus && onIframeFocus();
93
93
  }
@@ -172,7 +172,7 @@ var FrameUpdated = exports.FrameUpdated = /*#__PURE__*/_react.default.forwardRef
172
172
  var _useState13 = (0, _react.useState)(
173
173
  // The below will be removed as part of FG cleanup
174
174
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
175
- (0, _platformFeatureFlags.fg)('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus()),
175
+ (0, _platformFeatureFlags.fg)('jpx-1074-smart-links-iframe') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus()),
176
176
  _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
177
177
  isWindowFocused = _useState14[0],
178
178
  setWindowFocused = _useState14[1];
@@ -215,10 +215,10 @@ var FrameUpdated = exports.FrameUpdated = /*#__PURE__*/_react.default.forwardRef
215
215
  // Initialize with current focus state
216
216
  // The below will be removed as part of FG cleanup
217
217
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
218
- setWindowFocused((0, _platformFeatureFlags.fg)('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
218
+ setWindowFocused((0, _platformFeatureFlags.fg)('jpx-1074-smart-links-iframe') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
219
219
  var onBlur = function onBlur() {
220
220
  setWindowFocused(false);
221
- if ((0, _platformFeatureFlags.fg)('jpx-833-smart-links-graphql-provider')) {
221
+ if ((0, _platformFeatureFlags.fg)('jpx-1074-smart-links-iframe')) {
222
222
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
223
223
  onIframeFocus && onIframeFocus();
224
224
  }
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "43.26.10",
25
+ packageVersion: "43.26.12",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "43.26.10"
5
+ packageVersion: "43.26.12"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -65,7 +65,7 @@ export const Frame = /*#__PURE__*/React.forwardRef(({
65
65
  useEffect(() => {
66
66
  const onBlur = () => {
67
67
  setWindowFocused(false);
68
- if (fg('jpx-833-smart-links-graphql-provider')) {
68
+ if (fg('jpx-1074-smart-links-iframe')) {
69
69
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
70
70
  onIframeFocus && onIframeFocus();
71
71
  }
@@ -144,7 +144,7 @@ export const FrameUpdated = /*#__PURE__*/React.forwardRef(({
144
144
  const [isWindowFocused, setWindowFocused] = useState(
145
145
  // The below will be removed as part of FG cleanup
146
146
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
147
- fg('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus());
147
+ fg('jpx-1074-smart-links-iframe') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus());
148
148
 
149
149
  // Use prop if provided (from wrapper), otherwise use local state (for backward compatibility)
150
150
  const effectiveMouseOver = isMouseOverProp !== undefined ? isMouseOverProp : isMouseOver;
@@ -179,10 +179,10 @@ export const FrameUpdated = /*#__PURE__*/React.forwardRef(({
179
179
  // Initialize with current focus state
180
180
  // The below will be removed as part of FG cleanup
181
181
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
182
- setWindowFocused(fg('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
182
+ setWindowFocused(fg('jpx-1074-smart-links-iframe') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
183
183
  const onBlur = () => {
184
184
  setWindowFocused(false);
185
- if (fg('jpx-833-smart-links-graphql-provider')) {
185
+ if (fg('jpx-1074-smart-links-iframe')) {
186
186
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
187
187
  onIframeFocus && onIframeFocus();
188
188
  }
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "43.26.10",
15
+ packageVersion: "43.26.12",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "43.26.10"
7
+ packageVersion: "43.26.12"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -80,7 +80,7 @@ export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
80
80
  useEffect(function () {
81
81
  var onBlur = function onBlur() {
82
82
  setWindowFocused(false);
83
- if (fg('jpx-833-smart-links-graphql-provider')) {
83
+ if (fg('jpx-1074-smart-links-iframe')) {
84
84
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
85
85
  onIframeFocus && onIframeFocus();
86
86
  }
@@ -165,7 +165,7 @@ export var FrameUpdated = /*#__PURE__*/React.forwardRef(function (_ref2, iframeR
165
165
  var _useState13 = useState(
166
166
  // The below will be removed as part of FG cleanup
167
167
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
168
- fg('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus()),
168
+ fg('jpx-1074-smart-links-iframe') ? (_doc$hasFocus = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus !== void 0 ? _doc$hasFocus : false : document.hasFocus()),
169
169
  _useState14 = _slicedToArray(_useState13, 2),
170
170
  isWindowFocused = _useState14[0],
171
171
  setWindowFocused = _useState14[1];
@@ -208,10 +208,10 @@ export var FrameUpdated = /*#__PURE__*/React.forwardRef(function (_ref2, iframeR
208
208
  // Initialize with current focus state
209
209
  // The below will be removed as part of FG cleanup
210
210
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
211
- setWindowFocused(fg('jpx-833-smart-links-graphql-provider') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
211
+ setWindowFocused(fg('jpx-1074-smart-links-iframe') ? (_doc$hasFocus2 = doc === null || doc === void 0 ? void 0 : doc.hasFocus()) !== null && _doc$hasFocus2 !== void 0 ? _doc$hasFocus2 : false : document.hasFocus());
212
212
  var onBlur = function onBlur() {
213
213
  setWindowFocused(false);
214
- if (fg('jpx-833-smart-links-graphql-provider')) {
214
+ if (fg('jpx-1074-smart-links-iframe')) {
215
215
  if ((doc === null || doc === void 0 ? void 0 : doc.activeElement) === ref.current) {
216
216
  onIframeFocus && onIframeFocus();
217
217
  }
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "43.26.10",
18
+ packageVersion: "43.26.12",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.26.11",
3
+ "version": "43.26.13",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
64
64
  "@atlaskit/platform-feature-flags": "^1.1.0",
65
65
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
66
- "@atlaskit/popup": "^4.13.0",
66
+ "@atlaskit/popup": "^4.14.0",
67
67
  "@atlaskit/primitives": "^18.0.0",
68
68
  "@atlaskit/react-ufo": "^5.4.0",
69
69
  "@atlaskit/rovo-triggers": "^5.30.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/textfield": "^8.2.0",
75
75
  "@atlaskit/theme": "^22.0.0",
76
76
  "@atlaskit/tile": "^1.0.0",
77
- "@atlaskit/tmp-editor-statsig": "^41.0.0",
77
+ "@atlaskit/tmp-editor-statsig": "^43.0.0",
78
78
  "@atlaskit/tokens": "^11.1.0",
79
79
  "@atlaskit/tooltip": "^21.0.0",
80
80
  "@atlaskit/ufo": "^0.4.0",
@@ -102,7 +102,7 @@
102
102
  "@af/integration-testing": "workspace:^",
103
103
  "@af/visual-regression": "workspace:^",
104
104
  "@atlaskit/analytics-listeners": "^10.0.0",
105
- "@atlaskit/css-reset": "^7.3.0",
105
+ "@atlaskit/css-reset": "^7.4.0",
106
106
  "@atlaskit/media-test-helpers": "^40.0.0",
107
107
  "@atlaskit/ssr": "workspace:^",
108
108
  "@atlassian/a11y-jest-testing": "^0.10.0",
@@ -227,7 +227,7 @@
227
227
  "platform_sl_3p_auth_rovo_action_kill_switch": {
228
228
  "type": "boolean"
229
229
  },
230
- "jpx-833-smart-links-graphql-provider": {
230
+ "jpx-1074-smart-links-iframe": {
231
231
  "type": "boolean"
232
232
  }
233
233
  },