@atlaskit/smart-card 23.5.1 → 23.5.2

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,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 23.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0b8bfb1a2d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0b8bfb1a2d9) - Force http call (and not use cache) when reload action is called
8
+ - Updated dependencies
9
+
3
10
  ## 23.5.1
4
11
 
5
12
  ### Patch Changes
@@ -160,7 +160,7 @@ var useSmartCardActions = function useSmartCardActions(id, url, analytics) {
160
160
  break;
161
161
  }
162
162
 
163
- return _context.abrupt("return", connections.client.fetchData(resourceUrl).then(function (response) {
163
+ return _context.abrupt("return", connections.client.fetchData(resourceUrl, isReloading).then(function (response) {
164
164
  return handleResolvedLinkResponse(resourceUrl, response, isReloading, isMetadataRequest);
165
165
  }).catch(function (error) {
166
166
  return handleResolvedLinkError(resourceUrl, error, undefined, isMetadataRequest);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.5.1",
3
+ "version": "23.5.2",
4
4
  "sideEffects": false
5
5
  }
@@ -113,11 +113,11 @@ export const useSmartCardActions = (id, url, analytics) => {
113
113
  }
114
114
  }, [dispatch, handleResolvedLinkError, hasAuthFlowSupported, setMetadataStatus]);
115
115
  const resolve = useCallback(async (resourceUrl = url, isReloading = false, isMetadataRequest = false) => {
116
- // Request JSON-LD data for the card from ORS, iff it has extended
116
+ // Request JSON-LD data for the card from ORS, if it has extended
117
117
  // its cache lifespan OR there is no data for it currently. Once the data
118
118
  // has come back asynchronously, dispatch the resolved action for the card.
119
119
  if (isReloading || !hasData || isMetadataRequest) {
120
- return connections.client.fetchData(resourceUrl).then(response => handleResolvedLinkResponse(resourceUrl, response, isReloading, isMetadataRequest)).catch(error => handleResolvedLinkError(resourceUrl, error, undefined, isMetadataRequest));
120
+ return connections.client.fetchData(resourceUrl, isReloading).then(response => handleResolvedLinkResponse(resourceUrl, response, isReloading, isMetadataRequest)).catch(error => handleResolvedLinkError(resourceUrl, error, undefined, isMetadataRequest));
121
121
  } else {
122
122
  addMetadataToExperience('smart-link-rendered', id, {
123
123
  cached: true
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.5.1",
3
+ "version": "23.5.2",
4
4
  "sideEffects": false
5
5
  }
@@ -133,7 +133,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url, analytics
133
133
  break;
134
134
  }
135
135
 
136
- return _context.abrupt("return", connections.client.fetchData(resourceUrl).then(function (response) {
136
+ return _context.abrupt("return", connections.client.fetchData(resourceUrl, isReloading).then(function (response) {
137
137
  return handleResolvedLinkResponse(resourceUrl, response, isReloading, isMetadataRequest);
138
138
  }).catch(function (error) {
139
139
  return handleResolvedLinkError(resourceUrl, error, undefined, isMetadataRequest);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.5.1",
3
+ "version": "23.5.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.5.1",
3
+ "version": "23.5.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,7 +58,7 @@
58
58
  "uuid": "^3.1.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@atlaskit/link-provider": "^1.3.5",
61
+ "@atlaskit/link-provider": "^1.3.6",
62
62
  "react": "^16.8.0",
63
63
  "react-dom": "^16.8.0",
64
64
  "react-intl-next": "npm:react-intl@^5.18.1"