@atlaskit/editor-card-provider 3.1.9 → 3.1.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 +30 -18
- package/dist/cjs/api.js +1 -2
- package/dist/cjs/environments.js +4 -8
- package/dist/cjs/provider.js +3 -5
- package/dist/cjs/transformer.js +2 -3
- package/dist/es2019/provider.js +1 -1
- package/dist/esm/provider.js +1 -1
- package/package.json +4 -4
- package/tmp/api-report-tmp.d.ts +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 3.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#62385](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62385) [`f3e422857a54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3e422857a54) - [ux] Updated default smart card view for Confluence Databases to include check for unsavedView parameter
|
|
8
|
+
|
|
9
|
+
## 3.1.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#42239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42239) [`3ebc0b4f999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ebc0b4f999) - [ux] Updated default smart card view for Confluence Databases to include check for entryId and savedViewId parameters
|
|
14
|
+
|
|
3
15
|
## 3.1.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,32 +22,32 @@
|
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update json-ld-types dependencies to be compatible with version
|
|
25
|
+
- [#40491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40491) [`1fedffbd64b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fedffbd64b) - Update json-ld-types dependencies to be compatible with version
|
|
14
26
|
|
|
15
27
|
## 3.1.7
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump json-ld-types 3.8.0 -> 3.9.1
|
|
31
|
+
- [#40127](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40127) [`2cd7af71b63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cd7af71b63) - Bump json-ld-types 3.8.0 -> 3.9.1
|
|
20
32
|
|
|
21
33
|
## 3.1.6
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update dependency json-ld-types@3.8.0
|
|
37
|
+
- [#37720](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37720) [`e74ae7f06d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e74ae7f06d4) - Update dependency json-ld-types@3.8.0
|
|
26
38
|
|
|
27
39
|
## 3.1.5
|
|
28
40
|
|
|
29
41
|
### Patch Changes
|
|
30
42
|
|
|
31
|
-
- [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update to use 'getStatus' from '@atlaskit/linking-common'
|
|
43
|
+
- [#37136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37136) [`83f06b6e7f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f06b6e7f6) - Update to use 'getStatus' from '@atlaskit/linking-common'
|
|
32
44
|
- Updated dependencies
|
|
33
45
|
|
|
34
46
|
## 3.1.4
|
|
35
47
|
|
|
36
48
|
### Patch Changes
|
|
37
49
|
|
|
38
|
-
- [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
50
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340) [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
|
|
39
51
|
|
|
40
52
|
## 3.1.3
|
|
41
53
|
|
|
@@ -47,20 +59,20 @@
|
|
|
47
59
|
|
|
48
60
|
### Patch Changes
|
|
49
61
|
|
|
50
|
-
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
62
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757) [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
51
63
|
|
|
52
64
|
## 3.1.1
|
|
53
65
|
|
|
54
66
|
### Patch Changes
|
|
55
67
|
|
|
56
|
-
- [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
|
|
68
|
+
- [#36089](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36089) [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
|
|
57
69
|
- Updated dependencies
|
|
58
70
|
|
|
59
71
|
## 3.1.0
|
|
60
72
|
|
|
61
73
|
### Minor Changes
|
|
62
74
|
|
|
63
|
-
- [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux] Updating ORS response to include datasources and facilitating pasting JQL links turning into datasource tables
|
|
75
|
+
- [#35032](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35032) [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux] Updating ORS response to include datasources and facilitating pasting JQL links turning into datasource tables
|
|
64
76
|
|
|
65
77
|
### Patch Changes
|
|
66
78
|
|
|
@@ -76,34 +88,34 @@
|
|
|
76
88
|
|
|
77
89
|
### Patch Changes
|
|
78
90
|
|
|
79
|
-
- [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux] Make confluence whiteboard urls default to embed view
|
|
91
|
+
- [#35428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35428) [`1674b5907b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1674b5907b4) - [ux] Make confluence whiteboard urls default to embed view
|
|
80
92
|
|
|
81
93
|
## 3.0.3
|
|
82
94
|
|
|
83
95
|
### Patch Changes
|
|
84
96
|
|
|
85
|
-
- [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With the renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in conjunction to roadmaps
|
|
97
|
+
- [#33699](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33699) [`f10ed88032c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f10ed88032c) - With the renaming of Jira Roadmaps to Timeline, we are updating the regex rules to match timeline in conjunction to roadmaps
|
|
86
98
|
- Updated dependencies
|
|
87
99
|
|
|
88
100
|
## 3.0.2
|
|
89
101
|
|
|
90
102
|
### Patch Changes
|
|
91
103
|
|
|
92
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
104
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
93
105
|
- Updated dependencies
|
|
94
106
|
|
|
95
107
|
## 3.0.1
|
|
96
108
|
|
|
97
109
|
### Patch Changes
|
|
98
110
|
|
|
99
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
111
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
100
112
|
- Updated dependencies
|
|
101
113
|
|
|
102
114
|
## 3.0.0
|
|
103
115
|
|
|
104
116
|
### Minor Changes
|
|
105
117
|
|
|
106
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
118
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
107
119
|
|
|
108
120
|
### Patch Changes
|
|
109
121
|
|
|
@@ -113,28 +125,28 @@
|
|
|
113
125
|
|
|
114
126
|
### Patch Changes
|
|
115
127
|
|
|
116
|
-
- [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump json-ld-types dependency
|
|
128
|
+
- [#32541](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32541) [`0624df1ffe1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0624df1ffe1) - Bump json-ld-types dependency
|
|
117
129
|
- Updated dependencies
|
|
118
130
|
|
|
119
131
|
## 2.0.3
|
|
120
132
|
|
|
121
133
|
### Patch Changes
|
|
122
134
|
|
|
123
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
135
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
124
136
|
- Updated dependencies
|
|
125
137
|
|
|
126
138
|
## 2.0.2
|
|
127
139
|
|
|
128
140
|
### Patch Changes
|
|
129
141
|
|
|
130
|
-
- [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update json-ld-types
|
|
142
|
+
- [#32360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32360) [`0ee9370595a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ee9370595a) - Update json-ld-types
|
|
131
143
|
- Updated dependencies
|
|
132
144
|
|
|
133
145
|
## 2.0.1
|
|
134
146
|
|
|
135
147
|
### Patch Changes
|
|
136
148
|
|
|
137
|
-
- [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) - Dependency update json-ld-types@3.4.0
|
|
149
|
+
- [#31388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31388) [`0af4a6b6426`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0af4a6b6426) - Dependency update json-ld-types@3.4.0
|
|
138
150
|
- Updated dependencies
|
|
139
151
|
|
|
140
152
|
## 2.0.0
|
|
@@ -147,7 +159,7 @@
|
|
|
147
159
|
|
|
148
160
|
### Major Changes
|
|
149
161
|
|
|
150
|
-
- [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
|
|
162
|
+
- [#30266](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30266) [`12223b3ee04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12223b3ee04) - Move EditorCardProvider to new package instead of using imports from Link Provider and Smart Card
|
|
151
163
|
|
|
152
164
|
### Patch Changes
|
|
153
165
|
|
package/dist/cjs/api.js
CHANGED
|
@@ -20,7 +20,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
22
|
var ALLOWED_RESPONSE_STATUS_CODES = [200, 401, 404];
|
|
23
|
-
var NetworkError = /*#__PURE__*/function (_Error) {
|
|
23
|
+
var NetworkError = exports.NetworkError = /*#__PURE__*/function (_Error) {
|
|
24
24
|
(0, _inherits2.default)(NetworkError, _Error);
|
|
25
25
|
var _super = _createSuper(NetworkError);
|
|
26
26
|
function NetworkError(error) {
|
|
@@ -31,7 +31,6 @@ var NetworkError = /*#__PURE__*/function (_Error) {
|
|
|
31
31
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); // NOTE: This is copied from @atlaskit/link-provider as we are in the middle of a deprecation.
|
|
32
32
|
// To read more, see https://hello.atlassian.net/browse/ENGHEALTH-661
|
|
33
33
|
// Also: https://product-fabric.atlassian.net/browse/EDM-5755
|
|
34
|
-
exports.NetworkError = NetworkError;
|
|
35
34
|
function request(_x, _x2, _x3, _x4) {
|
|
36
35
|
return _request.apply(this, arguments);
|
|
37
36
|
}
|
package/dist/cjs/environments.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.getResolverUrl = exports.getBaseUrl = exports.default = exports.BaseUrls
|
|
|
10
10
|
var devBaseUrl = 'https://api-private.dev.atlassian.com';
|
|
11
11
|
var stgBaseUrl = 'https://pug.jira-dev.com/gateway/api';
|
|
12
12
|
var prodBaseUrl = 'https://api-private.atlassian.com';
|
|
13
|
-
var BaseUrls = {
|
|
13
|
+
var BaseUrls = exports.BaseUrls = {
|
|
14
14
|
dev: devBaseUrl,
|
|
15
15
|
development: devBaseUrl,
|
|
16
16
|
stg: stgBaseUrl,
|
|
@@ -19,8 +19,7 @@ var BaseUrls = {
|
|
|
19
19
|
prod: prodBaseUrl,
|
|
20
20
|
production: prodBaseUrl
|
|
21
21
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var getBaseUrl = function getBaseUrl(envKey) {
|
|
22
|
+
var getBaseUrl = exports.getBaseUrl = function getBaseUrl(envKey) {
|
|
24
23
|
// If an environment is provided, then use Stargate.
|
|
25
24
|
if (envKey) {
|
|
26
25
|
return envKey in BaseUrls ? BaseUrls[envKey] : prodBaseUrl;
|
|
@@ -29,8 +28,7 @@ var getBaseUrl = function getBaseUrl(envKey) {
|
|
|
29
28
|
// Otherwise, use the current origin of the page.
|
|
30
29
|
return window.location.origin;
|
|
31
30
|
};
|
|
32
|
-
exports.
|
|
33
|
-
var getResolverUrl = function getResolverUrl(envKey, baseUrlOverride) {
|
|
31
|
+
var getResolverUrl = exports.getResolverUrl = function getResolverUrl(envKey, baseUrlOverride) {
|
|
34
32
|
// If an environment is provided, then use Stargate directly for requests.
|
|
35
33
|
if (envKey || baseUrlOverride) {
|
|
36
34
|
var baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
@@ -41,6 +39,4 @@ var getResolverUrl = function getResolverUrl(envKey, baseUrlOverride) {
|
|
|
41
39
|
return '/gateway/api/object-resolver';
|
|
42
40
|
}
|
|
43
41
|
};
|
|
44
|
-
exports.
|
|
45
|
-
var _default = BaseUrls;
|
|
46
|
-
exports.default = _default;
|
|
42
|
+
var _default = exports.default = BaseUrls;
|
package/dist/cjs/provider.js
CHANGED
|
@@ -52,9 +52,9 @@ var isConfluenceWhiteboard = function isConfluenceWhiteboard(url) {
|
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
54
|
var isConfluenceDatabase = function isConfluenceDatabase(url) {
|
|
55
|
-
return url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d
|
|
55
|
+
return url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d+(\?.*(savedViewId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|entryId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|unsavedView=.+).*)?$/);
|
|
56
56
|
};
|
|
57
|
-
var EditorCardProvider = /*#__PURE__*/function () {
|
|
57
|
+
var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function () {
|
|
58
58
|
function EditorCardProvider(envKey, baseUrlOverride) {
|
|
59
59
|
var _this = this;
|
|
60
60
|
(0, _classCallCheck2.default)(this, EditorCardProvider);
|
|
@@ -528,6 +528,4 @@ var EditorCardProvider = /*#__PURE__*/function () {
|
|
|
528
528
|
}]);
|
|
529
529
|
return EditorCardProvider;
|
|
530
530
|
}();
|
|
531
|
-
exports.
|
|
532
|
-
var editorCardProvider = new EditorCardProvider();
|
|
533
|
-
exports.editorCardProvider = editorCardProvider;
|
|
531
|
+
var editorCardProvider = exports.editorCardProvider = new EditorCardProvider();
|
package/dist/cjs/transformer.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Transformer = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var Transformer = /*#__PURE__*/function () {
|
|
10
|
+
var Transformer = exports.Transformer = /*#__PURE__*/function () {
|
|
11
11
|
function Transformer() {
|
|
12
12
|
(0, _classCallCheck2.default)(this, Transformer);
|
|
13
13
|
}
|
|
@@ -72,5 +72,4 @@ var Transformer = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
}]);
|
|
74
74
|
return Transformer;
|
|
75
|
-
}();
|
|
76
|
-
exports.Transformer = Transformer;
|
|
75
|
+
}();
|
package/dist/es2019/provider.js
CHANGED
|
@@ -18,7 +18,7 @@ const isJwmView = url => url.match(/^https:\/\/.*?\/jira\/core\/projects\/[^\/]+
|
|
|
18
18
|
const isGiphyMedia = url => url.match(/^https:\/\/(.*?\.)?giphy\.com\/(gifs|media|clips)\//);
|
|
19
19
|
const isProformaView = url => url.match(/^https:\/\/[^/]+\/jira\/(core|software(\/c)?|servicedesk)\/projects\/\w+\/forms\/form\/direct\/\d+\/\d+.*$/);
|
|
20
20
|
const isConfluenceWhiteboard = url => url.match(/\/wiki\/spaces\/?.*\/whiteboard\/(?<resourceId>\d+)(\?\/)?/) || url.match(/\/wiki\/spaces\/?.*\/whiteboard\/(?<resourceId>[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})(\?\/)?/);
|
|
21
|
-
const isConfluenceDatabase = url => url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d
|
|
21
|
+
const isConfluenceDatabase = url => url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d+(\?.*(savedViewId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|entryId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|unsavedView=.+).*)?$/);
|
|
22
22
|
export class EditorCardProvider {
|
|
23
23
|
constructor(envKey, baseUrlOverride) {
|
|
24
24
|
this.baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
package/dist/esm/provider.js
CHANGED
|
@@ -44,7 +44,7 @@ var isConfluenceWhiteboard = function isConfluenceWhiteboard(url) {
|
|
|
44
44
|
}));
|
|
45
45
|
};
|
|
46
46
|
var isConfluenceDatabase = function isConfluenceDatabase(url) {
|
|
47
|
-
return url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d
|
|
47
|
+
return url.match(/\/wiki\/spaces\/~?[\d\w]+\/database\/\d+(\?.*(savedViewId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|entryId=[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}|unsavedView=.+).*)?$/);
|
|
48
48
|
};
|
|
49
49
|
export var EditorCardProvider = /*#__PURE__*/function () {
|
|
50
50
|
function EditorCardProvider(envKey, baseUrlOverride) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.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",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
".": "./src/index.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/link-client-extension": "^1.
|
|
38
|
-
"@atlaskit/link-extractors": "^1.
|
|
39
|
-
"@atlaskit/linking-common": "^4.
|
|
37
|
+
"@atlaskit/link-client-extension": "^1.8.0",
|
|
38
|
+
"@atlaskit/link-extractors": "^1.2.0",
|
|
39
|
+
"@atlaskit/linking-common": "^4.21.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"dataloader": "^2.0.0",
|
|
42
42
|
"json-ld-types": "^3.9.1",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-card-provider"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { CardAdf } from '@atlaskit/linking-common';
|
|
8
|
-
import { CardAppearance } from '@atlaskit/linking-common';
|
|
9
|
-
import { DatasourceAdf } from '@atlaskit/linking-common';
|
|
10
|
-
|
|
11
|
-
// @public (undocumented)
|
|
12
|
-
const BaseUrls: {
|
|
13
|
-
dev: string;
|
|
14
|
-
development: string;
|
|
15
|
-
stg: string;
|
|
16
|
-
staging: string;
|
|
17
|
-
prd: string;
|
|
18
|
-
prod: string;
|
|
19
|
-
production: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
interface CardProvider {
|
|
24
|
-
// (undocumented)
|
|
25
|
-
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// @public (undocumented)
|
|
29
|
-
export class EditorCardProvider implements CardProvider {
|
|
30
|
-
constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
|
|
31
|
-
// (undocumented)
|
|
32
|
-
findPattern(url: string): Promise<boolean>;
|
|
33
|
-
// (undocumented)
|
|
34
|
-
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<CardAdf | DatasourceAdf>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
export const editorCardProvider: EditorCardProvider;
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
type EnvironmentsKeys = keyof typeof BaseUrls;
|
|
42
|
-
|
|
43
|
-
// (No @packageDocumentation comment for this package)
|
|
44
|
-
|
|
45
|
-
```
|