@atlaskit/editor-card-provider 2.0.4 → 3.0.1
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 +17 -0
- package/dist/cjs/api.js +44 -47
- package/dist/cjs/provider.js +263 -279
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api.js +44 -47
- package/dist/esm/provider.js +261 -280
- package/dist/esm/version.json +1 -1
- package/dist/types/environments.d.ts +3 -3
- package/dist/types/types.d.ts +6 -6
- package/package.json +12 -4
- package/report.api.md +1 -1
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type EnvironmentsKeys = keyof typeof BaseUrls;
|
|
2
2
|
export declare const BaseUrls: {
|
|
3
3
|
dev: string;
|
|
4
4
|
development: string;
|
|
@@ -8,6 +8,6 @@ export declare const BaseUrls: {
|
|
|
8
8
|
prod: string;
|
|
9
9
|
production: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const getBaseUrl: (envKey?:
|
|
12
|
-
export declare const getResolverUrl: (envKey?:
|
|
11
|
+
export declare const getBaseUrl: (envKey?: keyof typeof BaseUrls) => string;
|
|
12
|
+
export declare const getResolverUrl: (envKey?: EnvironmentsKeys, baseUrlOverride?: string) => string;
|
|
13
13
|
export default BaseUrls;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,20 +2,20 @@ import { CardAppearance } from '@atlaskit/linking-common';
|
|
|
2
2
|
export interface CardProvider {
|
|
3
3
|
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<any>;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type ORSCheckResponse = {
|
|
6
6
|
isSupported: boolean;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
export
|
|
8
|
+
type DisplayViews = 'inline' | 'block' | 'embed';
|
|
9
|
+
export type ProviderPattern = {
|
|
10
10
|
source: string;
|
|
11
11
|
supportedViews?: DisplayViews[];
|
|
12
12
|
defaultView?: DisplayViews;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type Provider = {
|
|
15
15
|
key: string;
|
|
16
16
|
patterns: ProviderPattern[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type LinkAppearance = CardAppearance | 'url';
|
|
19
19
|
export interface UserPreferences {
|
|
20
20
|
defaultAppearance: LinkAppearance;
|
|
21
21
|
appearances: {
|
|
@@ -23,7 +23,7 @@ export interface UserPreferences {
|
|
|
23
23
|
appearance: LinkAppearance;
|
|
24
24
|
}[];
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type ORSProvidersResponse = {
|
|
27
27
|
providers: Provider[];
|
|
28
28
|
userPreferences?: UserPreferences;
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
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",
|
|
@@ -20,25 +20,33 @@
|
|
|
20
20
|
"module": "dist/esm/index.js",
|
|
21
21
|
"module:es2019": "dist/es2019/index.js",
|
|
22
22
|
"types": "dist/types/index.d.ts",
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
">=4.5 <4.9": {
|
|
25
|
+
"*": [
|
|
26
|
+
"dist/types-ts4.5/*",
|
|
27
|
+
"dist/types-ts4.5/index.d.ts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
23
31
|
"sideEffects": false,
|
|
24
32
|
"atlaskit:src": "src/index.ts",
|
|
25
33
|
"af:exports": {
|
|
26
34
|
".": "./src/index.ts"
|
|
27
35
|
},
|
|
28
36
|
"dependencies": {
|
|
29
|
-
"@atlaskit/linking-common": "^2.
|
|
37
|
+
"@atlaskit/linking-common": "^2.9.0",
|
|
30
38
|
"@babel/runtime": "^7.0.0",
|
|
31
39
|
"dataloader": "^2.0.0",
|
|
32
40
|
"json-ld-types": "3.7.0",
|
|
33
41
|
"setimmediate": "^1.0.5"
|
|
34
42
|
},
|
|
35
43
|
"peerDependencies": {
|
|
36
|
-
"@atlaskit/link-provider": "^1.
|
|
44
|
+
"@atlaskit/link-provider": "^1.6.1",
|
|
37
45
|
"react": "^16.8.0"
|
|
38
46
|
},
|
|
39
47
|
"devDependencies": {
|
|
40
48
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
41
|
-
"typescript": "4.
|
|
49
|
+
"typescript": "~4.9.5"
|
|
42
50
|
},
|
|
43
51
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
44
52
|
}
|