@atlaskit/editor-card-provider 7.3.9 → 7.3.11

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/editor-card-provider
2
2
 
3
+ ## 7.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3422261e7a40e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3422261e7a40e) -
8
+ Clean up experiment `platform_editor_smartlink_local_cache`.
9
+ - Updated dependencies
10
+
11
+ ## 7.3.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 7.3.9
4
18
 
5
19
  ### Patch Changes
@@ -16,14 +16,12 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
16
16
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
17
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
18
18
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
19
- var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
20
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
20
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
22
21
  var _setPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/setPrototypeOf"));
23
22
  var _extractSmartLinkEmbed = require("@atlaskit/link-extractors/extract-smart-link-embed");
24
23
  var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link-url");
25
24
  var _nodeDataProvider = require("@atlaskit/node-data-provider");
26
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
27
25
  var _linkingCommon = require("@atlaskit/linking-common");
28
26
  var _dataloader = _interopRequireDefault(require("dataloader"));
29
27
  var _transformer = require("./transformer");
@@ -34,7 +32,6 @@ var _api = require("./api");
34
32
  var _smartCardLocalCacheClient = require("./smart-card-local-cache-client");
35
33
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
36
34
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
37
- function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
38
35
  function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), (0, _setPrototypeOf2.default)(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return (0, _inherits2.default)(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); } /* eslint-disable require-unicode-regexp,prefer-regex-literals */
39
36
  var BATCH_WAIT_TIME = 50;
40
37
  // Check if it is matching a Jira Roadmaps or Jira Timeline url
@@ -264,10 +261,6 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_No
264
261
  key: "getData",
265
262
  value: function getData(node, callback) {
266
263
  var _this2 = this;
267
- if ((0, _expValEquals.expValEquals)('platform_editor_smartlink_local_cache', 'isEnabled', true) === false) {
268
- // if local cache feature flag is disabled, fall back to the base implementation
269
- return _superPropGet(EditorCardProvider, "getData", this, 3)([node, callback]);
270
- }
271
264
  var jsonNode = 'toJSON' in node ? node.toJSON() : node;
272
265
  if (!this.isNodeSupported(jsonNode)) {
273
266
  return;
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
5
5
  import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-link-url';
6
6
  import { NodeDataProvider } from '@atlaskit/node-data-provider';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { getStatus, getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
9
8
  import DataLoader from 'dataloader';
10
9
  import { Transformer } from './transformer';
@@ -178,10 +177,6 @@ export class EditorCardProvider extends NodeDataProvider {
178
177
  }
179
178
  }
180
179
  getData(node, callback) {
181
- if (expValEquals('platform_editor_smartlink_local_cache', 'isEnabled', true) === false) {
182
- // if local cache feature flag is disabled, fall back to the base implementation
183
- return super.getData(node, callback);
184
- }
185
180
  const jsonNode = 'toJSON' in node ? node.toJSON() : node;
186
181
  if (!this.isNodeSupported(jsonNode)) {
187
182
  return;
@@ -5,21 +5,18 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/createClass";
6
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _get from "@babel/runtime/helpers/get";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
9
  import _inherits from "@babel/runtime/helpers/inherits";
11
10
  import _setPrototypeOf from "@babel/runtime/helpers/setPrototypeOf";
12
11
  import _regeneratorRuntime from "@babel/runtime/regenerator";
13
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
- function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
16
14
  function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
17
15
  /* eslint-disable require-unicode-regexp,prefer-regex-literals */
18
16
 
19
17
  import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
20
18
  import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-link-url';
21
19
  import { NodeDataProvider } from '@atlaskit/node-data-provider';
22
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
20
  import { getStatus, getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
24
21
  import DataLoader from 'dataloader';
25
22
  import { Transformer } from './transformer';
@@ -256,10 +253,6 @@ export var EditorCardProvider = /*#__PURE__*/function (_NodeDataProvider) {
256
253
  key: "getData",
257
254
  value: function getData(node, callback) {
258
255
  var _this2 = this;
259
- if (expValEquals('platform_editor_smartlink_local_cache', 'isEnabled', true) === false) {
260
- // if local cache feature flag is disabled, fall back to the base implementation
261
- return _superPropGet(EditorCardProvider, "getData", this, 3)([node, callback]);
262
- }
263
256
  var jsonNode = 'toJSON' in node ? node.toJSON() : node;
264
257
  if (!this.isNodeSupported(jsonNode)) {
265
258
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "7.3.9",
3
+ "version": "7.3.11",
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",
@@ -30,9 +30,9 @@
30
30
  "@atlaskit/link-extractors": "^4.2.0",
31
31
  "@atlaskit/linking-common": "^12.1.0",
32
32
  "@atlaskit/linking-types": "^15.2.0",
33
- "@atlaskit/node-data-provider": "^17.0.0",
33
+ "@atlaskit/node-data-provider": "^18.0.0",
34
34
  "@atlaskit/platform-feature-flags": "^2.2.0",
35
- "@atlaskit/tmp-editor-statsig": "^177.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^179.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "dataloader": "^2.1.0"
38
38
  },