@atlaskit/editor-card-provider 3.1.0 → 3.1.2

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,18 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
8
+
9
+ ## 3.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`1e7190077d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e7190077d4) - Move off deprecated @atlaskit/linking-common/extractors to @atlaskit/link-extractors
14
+ - Updated dependencies
15
+
3
16
  ## 3.1.0
4
17
 
5
18
  ### Minor Changes
@@ -15,7 +15,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
15
15
  var _setPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/setPrototypeOf"));
16
16
  require("setimmediate");
17
17
  var _dataloader = _interopRequireDefault(require("dataloader"));
18
- var _linkingCommon = require("@atlaskit/linking-common");
18
+ var _linkExtractors = require("@atlaskit/link-extractors");
19
19
  var _transformer = require("./transformer");
20
20
  var _environments = require("./environments");
21
21
  var _utils = require("./utils");
@@ -354,7 +354,7 @@ var EditorCardProvider = /*#__PURE__*/function () {
354
354
  }
355
355
  return _context8.abrupt("return", false);
356
356
  case 9:
357
- preview = (0, _linkingCommon.extractPreview)(data, 'web');
357
+ preview = (0, _linkExtractors.extractPreview)(data, 'web');
358
358
  return _context8.abrupt("return", !!preview);
359
359
  case 13:
360
360
  _context8.prev = 13;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@
2
2
  // @see https://github.com/graphql/dataloader/issues/249
3
3
  import 'setimmediate';
4
4
  import DataLoader from 'dataloader';
5
- import { extractPreview } from '@atlaskit/linking-common';
5
+ import { extractPreview } from '@atlaskit/link-extractors';
6
6
  import { Transformer } from './transformer';
7
7
  import { getBaseUrl, getResolverUrl } from './environments';
8
8
  import { getStatus } from './utils';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -11,7 +11,7 @@ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return
11
11
  // @see https://github.com/graphql/dataloader/issues/249
12
12
  import 'setimmediate';
13
13
  import DataLoader from 'dataloader';
14
- import { extractPreview } from '@atlaskit/linking-common';
14
+ import { extractPreview } from '@atlaskit/link-extractors';
15
15
  import { Transformer } from './transformer';
16
16
  import { getBaseUrl, getResolverUrl } from './environments';
17
17
  import { getStatus } from './utils';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
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,8 +34,10 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/link-client-extension": "^1.4.0",
38
- "@atlaskit/linking-common": "^3.1.0",
37
+ "@atlaskit/enforce-peer-dependencies": "^1.0.1",
38
+ "@atlaskit/link-client-extension": "^1.5.0",
39
+ "@atlaskit/link-extractors": "^1.1.0",
40
+ "@atlaskit/linking-common": "^3.4.0",
39
41
  "@babel/runtime": "^7.0.0",
40
42
  "dataloader": "^2.0.0",
41
43
  "json-ld-types": "3.7.0",
@@ -49,5 +51,8 @@
49
51
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
50
52
  "typescript": "~4.9.5"
51
53
  },
52
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
54
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
55
+ "scripts": {
56
+ "postinstall": "npx enforce-peer-dependencies --internal-packages"
57
+ }
53
58
  }
@@ -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
- ```