@atlaskit/editor-card-provider 5.6.3 → 5.6.4
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 +9 -0
- package/dist/cjs/api.js +4 -1
- package/dist/cjs/provider.js +5 -5
- package/dist/es2019/api.js +4 -1
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/provider.js +8 -6
- package/dist/esm/api.js +4 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/provider.js +7 -5
- package/dist/types/provider.d.ts +1 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/provider.d.ts +1 -2
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 5.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`12965b4e6ff8c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/12965b4e6ff8c) -
|
|
8
|
+
[https://product-fabric.atlassian.net/browse/ED-29210](ED-29210) - change
|
|
9
|
+
`@atlaskit/editor-card-provider` package ownership from
|
|
10
|
+
`Navigation Experiences - Linking Platform` to `Editor: Lego`
|
|
11
|
+
|
|
3
12
|
## 5.6.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/api.js
CHANGED
|
@@ -21,6 +21,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
22
|
var ALLOWED_RESPONSE_STATUS_CODES = [200, 401, 404];
|
|
23
23
|
var NetworkError = exports.NetworkError = /*#__PURE__*/function (_Error) {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
function NetworkError(error) {
|
|
25
26
|
(0, _classCallCheck2.default)(this, NetworkError);
|
|
26
27
|
return _callSuper(this, NetworkError, [error]);
|
|
@@ -34,7 +35,9 @@ function request(_x, _x2, _x3, _x4) {
|
|
|
34
35
|
return _request.apply(this, arguments);
|
|
35
36
|
}
|
|
36
37
|
function _request() {
|
|
37
|
-
_request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(method, url,
|
|
38
|
+
_request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(method, url,
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
+
data, headers) {
|
|
38
41
|
var requestConfig, response;
|
|
39
42
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
40
43
|
while (1) switch (_context.prev = _context.next) {
|
package/dist/cjs/provider.js
CHANGED
|
@@ -23,11 +23,10 @@ var _dataloader = _interopRequireDefault(require("dataloader"));
|
|
|
23
23
|
var _transformer = require("./transformer");
|
|
24
24
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
25
25
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
|
-
var
|
|
27
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
|
+
var _api = require("./api");
|
|
28
27
|
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)); }
|
|
29
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
-
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); }
|
|
29
|
+
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 */
|
|
31
30
|
var BATCH_WAIT_TIME = 50;
|
|
32
31
|
|
|
33
32
|
// Check if it is matching a Jira Roadmaps or Jira Timeline url
|
|
@@ -331,7 +330,7 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_re
|
|
|
331
330
|
case 0:
|
|
332
331
|
endpoint = "".concat(this.resolverUrl, "/providers");
|
|
333
332
|
_context4.next = 3;
|
|
334
|
-
return
|
|
333
|
+
return (0, _api.request)('post', endpoint, undefined, this.requestHeaders);
|
|
335
334
|
case 3:
|
|
336
335
|
response = _context4.sent;
|
|
337
336
|
return _context4.abrupt("return", {
|
|
@@ -797,4 +796,5 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_re
|
|
|
797
796
|
}()
|
|
798
797
|
}]);
|
|
799
798
|
}(_nodeDataProvider.NodeDataProvider);
|
|
800
|
-
var editorCardProvider = exports.editorCardProvider = new EditorCardProvider();
|
|
799
|
+
var editorCardProvider = exports.editorCardProvider = new EditorCardProvider();
|
|
800
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
package/dist/es2019/api.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const ALLOWED_RESPONSE_STATUS_CODES = [200, 401, 404];
|
|
2
2
|
export class NetworkError extends Error {
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
4
|
constructor(error) {
|
|
4
5
|
super(error);
|
|
5
6
|
}
|
|
@@ -8,7 +9,9 @@ export class NetworkError extends Error {
|
|
|
8
9
|
// NOTE: This is copied from @atlaskit/link-provider as we are in the middle of a deprecation.
|
|
9
10
|
// To read more, see https://hello.atlassian.net/browse/ENGHEALTH-661
|
|
10
11
|
// Also: https://product-fabric.atlassian.net/browse/EDM-5755
|
|
11
|
-
export async function request(method, url,
|
|
12
|
+
export async function request(method, url,
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
+
data, headers) {
|
|
12
15
|
const requestConfig = {
|
|
13
16
|
method,
|
|
14
17
|
credentials: 'include',
|
package/dist/es2019/index.js
CHANGED
package/dist/es2019/provider.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
/* eslint-disable require-unicode-regexp,prefer-regex-literals */
|
|
2
|
+
|
|
1
3
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
2
4
|
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
3
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
|
-
import { getStatus } from '@atlaskit/linking-common';
|
|
6
|
+
import { getStatus, getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
|
|
5
7
|
import DataLoader from 'dataloader';
|
|
6
8
|
import { Transformer } from './transformer';
|
|
7
9
|
import { CardClient } from '@atlaskit/link-provider';
|
|
8
|
-
import { getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import
|
|
11
|
+
import { request } from './api';
|
|
11
12
|
const BATCH_WAIT_TIME = 50;
|
|
12
13
|
|
|
13
14
|
// Check if it is matching a Jira Roadmaps or Jira Timeline url
|
|
@@ -147,7 +148,7 @@ export class EditorCardProvider extends NodeDataProvider {
|
|
|
147
148
|
}
|
|
148
149
|
async fetchProvidersData() {
|
|
149
150
|
const endpoint = `${this.resolverUrl}/providers`;
|
|
150
|
-
const response = await
|
|
151
|
+
const response = await request('post', endpoint, undefined, this.requestHeaders);
|
|
151
152
|
return {
|
|
152
153
|
patterns: response.providers.reduce((allSources, provider) => {
|
|
153
154
|
return allSources.concat(provider.patterns);
|
|
@@ -319,7 +320,7 @@ export class EditorCardProvider extends NodeDataProvider {
|
|
|
319
320
|
if (shouldForceAppearance === false && userPreference === 'url') {
|
|
320
321
|
return Promise.reject(undefined);
|
|
321
322
|
}
|
|
322
|
-
|
|
323
|
+
const isSupported = !!matchedProviderPattern || (await this.checkLinkResolved(url));
|
|
323
324
|
if (isSupported) {
|
|
324
325
|
const providerDefaultAppearance = matchedProviderPattern === null || matchedProviderPattern === void 0 ? void 0 : matchedProviderPattern.defaultView;
|
|
325
326
|
let preferredAppearance = shouldForceAppearance === undefined ?
|
|
@@ -366,4 +367,5 @@ export class EditorCardProvider extends NodeDataProvider {
|
|
|
366
367
|
return Promise.reject(undefined);
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
|
-
export const editorCardProvider = new EditorCardProvider();
|
|
370
|
+
export const editorCardProvider = new EditorCardProvider();
|
|
371
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
package/dist/esm/api.js
CHANGED
|
@@ -13,6 +13,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
var ALLOWED_RESPONSE_STATUS_CODES = [200, 401, 404];
|
|
15
15
|
export var NetworkError = /*#__PURE__*/function (_Error) {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
17
|
function NetworkError(error) {
|
|
17
18
|
_classCallCheck(this, NetworkError);
|
|
18
19
|
return _callSuper(this, NetworkError, [error]);
|
|
@@ -28,7 +29,9 @@ export function request(_x, _x2, _x3, _x4) {
|
|
|
28
29
|
return _request.apply(this, arguments);
|
|
29
30
|
}
|
|
30
31
|
function _request() {
|
|
31
|
-
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(method, url,
|
|
32
|
+
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(method, url,
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
data, headers) {
|
|
32
35
|
var requestConfig, response;
|
|
33
36
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
34
37
|
while (1) switch (_context.prev = _context.next) {
|
package/dist/esm/index.js
CHANGED
package/dist/esm/provider.js
CHANGED
|
@@ -11,16 +11,17 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
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); }
|
|
14
|
+
/* eslint-disable require-unicode-regexp,prefer-regex-literals */
|
|
15
|
+
|
|
14
16
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
15
17
|
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
16
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { getStatus } from '@atlaskit/linking-common';
|
|
19
|
+
import { getStatus, getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
|
|
18
20
|
import DataLoader from 'dataloader';
|
|
19
21
|
import { Transformer } from './transformer';
|
|
20
22
|
import { CardClient } from '@atlaskit/link-provider';
|
|
21
|
-
import { getBaseUrl, getResolverUrl } from '@atlaskit/linking-common';
|
|
22
23
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
|
-
import
|
|
24
|
+
import { request } from './api';
|
|
24
25
|
var BATCH_WAIT_TIME = 50;
|
|
25
26
|
|
|
26
27
|
// Check if it is matching a Jira Roadmaps or Jira Timeline url
|
|
@@ -324,7 +325,7 @@ export var EditorCardProvider = /*#__PURE__*/function (_ref) {
|
|
|
324
325
|
case 0:
|
|
325
326
|
endpoint = "".concat(this.resolverUrl, "/providers");
|
|
326
327
|
_context4.next = 3;
|
|
327
|
-
return
|
|
328
|
+
return request('post', endpoint, undefined, this.requestHeaders);
|
|
328
329
|
case 3:
|
|
329
330
|
response = _context4.sent;
|
|
330
331
|
return _context4.abrupt("return", {
|
|
@@ -790,4 +791,5 @@ export var EditorCardProvider = /*#__PURE__*/function (_ref) {
|
|
|
790
791
|
}()
|
|
791
792
|
}]);
|
|
792
793
|
}(NodeDataProvider);
|
|
793
|
-
export var editorCardProvider = new EditorCardProvider();
|
|
794
|
+
export var editorCardProvider = new EditorCardProvider();
|
|
795
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { JSONNode } from '@atlaskit/editor-json-transformer';
|
|
2
2
|
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
3
|
-
import { type BlockCardAdf, type EmbedCardAdf, type CardAdf, type InlineCardAdf, type CardAppearance, type DatasourceAdf, type ProductType } from '@atlaskit/linking-common';
|
|
3
|
+
import { type BlockCardAdf, type EmbedCardAdf, type CardAdf, type InlineCardAdf, type CardAppearance, type DatasourceAdf, type ProductType, type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
4
4
|
import { type CardProvider } from './types';
|
|
5
5
|
import { CardClient } from '@atlaskit/link-provider';
|
|
6
|
-
import { type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
7
6
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
8
7
|
export declare const isJiraWorkItem: (url: string) => boolean;
|
|
9
8
|
type CardNode = InlineCardAdf | BlockCardAdf | EmbedCardAdf;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CardAppearance } from '@atlaskit/linking-common';
|
|
2
2
|
export interface CardProvider {
|
|
3
|
-
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean)
|
|
3
|
+
resolve: (url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean) => Promise<any>;
|
|
4
4
|
}
|
|
5
5
|
export type ORSCheckResponse = {
|
|
6
6
|
isSupported: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { JSONNode } from '@atlaskit/editor-json-transformer';
|
|
2
2
|
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
3
|
-
import { type BlockCardAdf, type EmbedCardAdf, type CardAdf, type InlineCardAdf, type CardAppearance, type DatasourceAdf, type ProductType } from '@atlaskit/linking-common';
|
|
3
|
+
import { type BlockCardAdf, type EmbedCardAdf, type CardAdf, type InlineCardAdf, type CardAppearance, type DatasourceAdf, type ProductType, type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
4
4
|
import { type CardProvider } from './types';
|
|
5
5
|
import { CardClient } from '@atlaskit/link-provider';
|
|
6
|
-
import { type EnvironmentsKeys } from '@atlaskit/linking-common';
|
|
7
6
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
8
7
|
export declare const isJiraWorkItem: (url: string) => boolean;
|
|
9
8
|
type CardNode = InlineCardAdf | BlockCardAdf | EmbedCardAdf;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CardAppearance } from '@atlaskit/linking-common';
|
|
2
2
|
export interface CardProvider {
|
|
3
|
-
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean)
|
|
3
|
+
resolve: (url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean) => Promise<any>;
|
|
4
4
|
}
|
|
5
5
|
export type ORSCheckResponse = {
|
|
6
6
|
isSupported: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
12
|
"website": {
|
|
13
13
|
"name": "EditorCardProvider"
|
|
14
14
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/linking-types": "^14.0.0",
|
|
39
39
|
"@atlaskit/node-data-provider": "^5.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"dataloader": "^2.1.0"
|
|
44
44
|
},
|