@atlaskit/editor-card-provider 6.2.5 → 6.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,17 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 6.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`77df724ec737e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/77df724ec737e) -
8
+ [https://product-fabric.atlassian.net/browse/ED-28631](ED-28631) - cleanup the
9
+ platform_editor_smart_card_otp Statsig experiment
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 6.2.5
4
16
 
5
17
  ### Patch Changes
@@ -503,29 +503,17 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_re
503
503
  return _regenerator.default.wrap(function _callee9$(_context9) {
504
504
  while (1) switch (_context9.prev = _context9.next) {
505
505
  case 0:
506
- if (!(0, _expValEquals.expValEquals)('platform_editor_smart_card_otp', 'isEnabled', true)) {
507
- _context9.next = 6;
508
- break;
509
- }
510
- _context9.next = 3;
506
+ _context9.next = 2;
511
507
  return this.getDataAsPromise_DO_NOT_USE_OUTSIDE_MIGRATIONS({
508
+ // It's ok to cast any resourceUrl to inlineCard here, because only URL is important for the request.
512
509
  type: 'inlineCard',
513
510
  attrs: {
514
511
  url: url
515
512
  }
516
513
  });
514
+ case 2:
515
+ return _context9.abrupt("return", _context9.sent);
517
516
  case 3:
518
- _context9.t0 = _context9.sent;
519
- _context9.next = 9;
520
- break;
521
- case 6:
522
- _context9.next = 8;
523
- return this.cardClient.fetchData(url);
524
- case 8:
525
- _context9.t0 = _context9.sent;
526
- case 9:
527
- return _context9.abrupt("return", _context9.t0);
528
- case 10:
529
517
  case "end":
530
518
  return _context9.stop();
531
519
  }
@@ -219,14 +219,13 @@ export class EditorCardProvider extends NodeDataProvider {
219
219
  }
220
220
  async fetchData(url) {
221
221
  // it uses fetchNodesData internally and caches the result
222
- return expValEquals('platform_editor_smart_card_otp', 'isEnabled', true) ?
223
- // It's ok to cast any resourceUrl to inlineCard here, because only URL is important for the request.
224
- await this.getDataAsPromise_DO_NOT_USE_OUTSIDE_MIGRATIONS({
222
+ return await this.getDataAsPromise_DO_NOT_USE_OUTSIDE_MIGRATIONS({
223
+ // It's ok to cast any resourceUrl to inlineCard here, because only URL is important for the request.
225
224
  type: 'inlineCard',
226
225
  attrs: {
227
226
  url
228
227
  }
229
- }) : await this.cardClient.fetchData(url);
228
+ });
230
229
  }
231
230
 
232
231
  /**
@@ -498,29 +498,17 @@ export var EditorCardProvider = /*#__PURE__*/function (_ref) {
498
498
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
499
499
  while (1) switch (_context9.prev = _context9.next) {
500
500
  case 0:
501
- if (!expValEquals('platform_editor_smart_card_otp', 'isEnabled', true)) {
502
- _context9.next = 6;
503
- break;
504
- }
505
- _context9.next = 3;
501
+ _context9.next = 2;
506
502
  return this.getDataAsPromise_DO_NOT_USE_OUTSIDE_MIGRATIONS({
503
+ // It's ok to cast any resourceUrl to inlineCard here, because only URL is important for the request.
507
504
  type: 'inlineCard',
508
505
  attrs: {
509
506
  url: url
510
507
  }
511
508
  });
509
+ case 2:
510
+ return _context9.abrupt("return", _context9.sent);
512
511
  case 3:
513
- _context9.t0 = _context9.sent;
514
- _context9.next = 9;
515
- break;
516
- case 6:
517
- _context9.next = 8;
518
- return this.cardClient.fetchData(url);
519
- case 8:
520
- _context9.t0 = _context9.sent;
521
- case 9:
522
- return _context9.abrupt("return", _context9.t0);
523
- case 10:
524
512
  case "end":
525
513
  return _context9.stop();
526
514
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "6.2.5",
3
+ "version": "6.3.0",
4
4
  "description": "Contains the EditorCardProvider, for determining smart card behaviour in the editor.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,12 +38,12 @@
38
38
  "@atlaskit/linking-types": "^14.2.0",
39
39
  "@atlaskit/node-data-provider": "^8.0.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
41
+ "@atlaskit/tmp-editor-statsig": "^16.6.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "dataloader": "^2.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/link-provider": "^4.0.0",
46
+ "@atlaskit/link-provider": "^4.1.0",
47
47
  "react": "^18.2.0"
48
48
  },
49
49
  "devDependencies": {