@atlaskit/editor-card-provider 3.0.0 → 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 +7 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- 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/tmp/api-report-tmp.d.ts +44 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 3.0.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
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.0.
|
|
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.6.
|
|
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
|
}
|
package/report.api.md
CHANGED
|
@@ -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
|
+
```
|