@atlaskit/smart-card 23.1.0 → 23.1.1

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.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d2cde0ebdfd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2cde0ebdfd) - fix editor cypress tests and delete media cypress tests
8
+ - [`8f95d913495`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f95d913495) - Smart Link: Add default view to inline/block/embed appearance
9
+
3
10
  ## 23.1.0
4
11
 
5
12
  ### Minor Changes
@@ -10,15 +10,13 @@ var _inProductTesting = require("@atlaskit/in-product-testing");
10
10
  var _EmbedCard = require("../page-objects/EmbedCard");
11
11
 
12
12
  var embedSmartLinkRendersTestCase = function embedSmartLinkRendersTestCase(_ref) {
13
- var url = _ref.url,
14
- _ref$status = _ref.status,
13
+ var _ref$status = _ref.status,
15
14
  status = _ref$status === void 0 ? 'resolved' : _ref$status;
16
15
  return new _inProductTesting.InProductTestCase({
17
16
  title: 'Embed Smart Link is visible in the resolved state',
18
17
  id: 'embed-smart-link-resolved',
19
18
  assertions: function assertions(cy) {
20
19
  var embedCard = new _EmbedCard.EmbedCardPageObject(cy);
21
- embedCard.assertHrefRendered(url);
22
20
  embedCard.expectCardReady(1, status);
23
21
  }
24
22
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.1.0",
3
+ "version": "23.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -214,6 +214,7 @@ var BlockCard = function BlockCard(_ref) {
214
214
 
215
215
  case 'fallback':
216
216
  case 'errored':
217
+ default:
217
218
  if (onError) {
218
219
  onError({
219
220
  url: url,
@@ -182,6 +182,7 @@ var EmbedCard = /*#__PURE__*/_react.default.forwardRef(function (_ref, iframeRef
182
182
 
183
183
  case 'fallback':
184
184
  case 'errored':
185
+ default:
185
186
  if (onError) {
186
187
  onError({
187
188
  url: url,
@@ -175,6 +175,7 @@ var InlineCard = function InlineCard(_ref) {
175
175
 
176
176
  case 'fallback':
177
177
  case 'errored':
178
+ default:
178
179
  if (onError) {
179
180
  onError({
180
181
  url: url,
@@ -1,14 +1,12 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
2
  import { EmbedCardPageObject } from '../page-objects/EmbedCard';
3
3
  export const embedSmartLinkRendersTestCase = ({
4
- url,
5
4
  status = 'resolved'
6
5
  }) => new InProductTestCase({
7
6
  title: 'Embed Smart Link is visible in the resolved state',
8
7
  id: 'embed-smart-link-resolved',
9
8
  assertions: cy => {
10
9
  const embedCard = new EmbedCardPageObject(cy);
11
- embedCard.assertHrefRendered(url);
12
10
  embedCard.expectCardReady(1, status);
13
11
  }
14
12
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.1.0",
3
+ "version": "23.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -137,6 +137,7 @@ export const BlockCard = ({
137
137
 
138
138
  case 'fallback':
139
139
  case 'errored':
140
+ default:
140
141
  if (onError) {
141
142
  onError({
142
143
  url,
@@ -160,6 +160,7 @@ export const EmbedCard = /*#__PURE__*/React.forwardRef(({
160
160
 
161
161
  case 'fallback':
162
162
  case 'errored':
163
+ default:
163
164
  if (onError) {
164
165
  onError({
165
166
  url,
@@ -128,6 +128,7 @@ export const InlineCard = ({
128
128
 
129
129
  case 'fallback':
130
130
  case 'errored':
131
+ default:
131
132
  if (onError) {
132
133
  onError({
133
134
  url,
@@ -1,15 +1,13 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
2
  import { EmbedCardPageObject } from '../page-objects/EmbedCard';
3
3
  export var embedSmartLinkRendersTestCase = function embedSmartLinkRendersTestCase(_ref) {
4
- var url = _ref.url,
5
- _ref$status = _ref.status,
4
+ var _ref$status = _ref.status,
6
5
  status = _ref$status === void 0 ? 'resolved' : _ref$status;
7
6
  return new InProductTestCase({
8
7
  title: 'Embed Smart Link is visible in the resolved state',
9
8
  id: 'embed-smart-link-resolved',
10
9
  assertions: function assertions(cy) {
11
10
  var embedCard = new EmbedCardPageObject(cy);
12
- embedCard.assertHrefRendered(url);
13
11
  embedCard.expectCardReady(1, status);
14
12
  }
15
13
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.1.0",
3
+ "version": "23.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -135,6 +135,7 @@ export var BlockCard = function BlockCard(_ref) {
135
135
 
136
136
  case 'fallback':
137
137
  case 'errored':
138
+ default:
138
139
  if (onError) {
139
140
  onError({
140
141
  url: url,
@@ -158,6 +158,7 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef)
158
158
 
159
159
  case 'fallback':
160
160
  case 'errored':
161
+ default:
161
162
  if (onError) {
162
163
  onError({
163
164
  url: url,
@@ -125,6 +125,7 @@ export var InlineCard = function InlineCard(_ref) {
125
125
 
126
126
  case 'fallback':
127
127
  case 'errored':
128
+ default:
128
129
  if (onError) {
129
130
  onError({
130
131
  url: url,
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
2
  import { SmartLinkTestCaseOpts } from './types';
3
- export declare const embedSmartLinkRendersTestCase: ({ url, status, }: SmartLinkTestCaseOpts) => InProductTestCase;
3
+ export declare const embedSmartLinkRendersTestCase: ({ status, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
2
  import { SmartLinkTestCaseOpts } from './types';
3
- export declare const embedSmartLinkRendersTestCase: ({ url, status, }: SmartLinkTestCaseOpts) => InProductTestCase;
3
+ export declare const embedSmartLinkRendersTestCase: ({ status, }: SmartLinkTestCaseOpts) => InProductTestCase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.1.0",
3
+ "version": "23.1.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"