@atlaskit/editor-card-provider 1.0.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/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@atlaskit/editor-card-provider",
3
+ "version": "1.0.0",
4
+ "description": "Contains the EditorCardProvider, for determining smart card behaviour in the editor.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Linking Platform",
12
+ "inPublicMirror": false,
13
+ "releaseModel": "continuous",
14
+ "website": {
15
+ "name": "EditorCardProvider"
16
+ }
17
+ },
18
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
19
+ "main": "dist/cjs/index.js",
20
+ "module": "dist/esm/index.js",
21
+ "module:es2019": "dist/es2019/index.js",
22
+ "types": "dist/types/index.d.ts",
23
+ "sideEffects": false,
24
+ "atlaskit:src": "src/index.ts",
25
+ "af:exports": {
26
+ ".": "./src/index.ts"
27
+ },
28
+ "dependencies": {
29
+ "@atlaskit/linking-common": "^2.0.0",
30
+ "@babel/runtime": "^7.0.0",
31
+ "dataloader": "^2.0.0",
32
+ "json-ld-types": "3.2.0",
33
+ "setimmediate": "^1.0.5"
34
+ },
35
+ "peerDependencies": {
36
+ "@atlaskit/link-provider": "^1.4.3",
37
+ "react": "^16.8.0"
38
+ },
39
+ "devDependencies": {
40
+ "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
41
+ "typescript": "4.5.5"
42
+ },
43
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
44
+ }
package/report.api.md ADDED
@@ -0,0 +1,77 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
3
+ ## API Report File for "@atlaskit/editor-card-provider"
4
+
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
12
+
13
+ ### Main Entry Types
14
+
15
+ <!--SECTION START: Main Entry Types-->
16
+
17
+ ```ts
18
+ import { CardAdf } from '@atlaskit/linking-common';
19
+ import { CardAppearance } from '@atlaskit/linking-common';
20
+
21
+ // @public (undocumented)
22
+ const BaseUrls: {
23
+ dev: string;
24
+ development: string;
25
+ stg: string;
26
+ staging: string;
27
+ prd: string;
28
+ prod: string;
29
+ production: string;
30
+ };
31
+
32
+ // @public (undocumented)
33
+ interface CardProvider {
34
+ // (undocumented)
35
+ resolve(
36
+ url: string,
37
+ appearance: CardAppearance,
38
+ shouldForceAppearance?: boolean,
39
+ ): Promise<any>;
40
+ }
41
+
42
+ // @public (undocumented)
43
+ export class EditorCardProvider implements CardProvider {
44
+ constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
45
+ // (undocumented)
46
+ findPattern(url: string): Promise<boolean>;
47
+ // (undocumented)
48
+ resolve(
49
+ url: string,
50
+ appearance: CardAppearance,
51
+ shouldForceAppearance?: boolean,
52
+ ): Promise<CardAdf>;
53
+ }
54
+
55
+ // @public (undocumented)
56
+ export const editorCardProvider: EditorCardProvider;
57
+
58
+ // @public (undocumented)
59
+ type EnvironmentsKeys = keyof typeof BaseUrls;
60
+
61
+ // (No @packageDocumentation comment for this package)
62
+ ```
63
+
64
+ <!--SECTION END: Main Entry Types-->
65
+
66
+ ### Peer Dependencies
67
+
68
+ <!--SECTION START: Peer Dependencies-->
69
+
70
+ ```json
71
+ {
72
+ "@atlaskit/link-provider": "^1.4.3",
73
+ "react": "^16.8.0"
74
+ }
75
+ ```
76
+
77
+ <!--SECTION END: Peer Dependencies-->
@@ -0,0 +1,44 @@
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
+
10
+ // @public (undocumented)
11
+ const BaseUrls: {
12
+ dev: string;
13
+ development: string;
14
+ stg: string;
15
+ staging: string;
16
+ prd: string;
17
+ prod: string;
18
+ production: string;
19
+ };
20
+
21
+ // @public (undocumented)
22
+ interface CardProvider {
23
+ // (undocumented)
24
+ resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
25
+ }
26
+
27
+ // @public (undocumented)
28
+ export class EditorCardProvider implements CardProvider {
29
+ constructor(envKey?: EnvironmentsKeys, baseUrlOverride?: string);
30
+ // (undocumented)
31
+ findPattern(url: string): Promise<boolean>;
32
+ // (undocumented)
33
+ resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<CardAdf>;
34
+ }
35
+
36
+ // @public (undocumented)
37
+ export const editorCardProvider: EditorCardProvider;
38
+
39
+ // @public (undocumented)
40
+ type EnvironmentsKeys = keyof typeof BaseUrls;
41
+
42
+ // (No @packageDocumentation comment for this package)
43
+
44
+ ```