@atlaskit/editor-card-provider 5.5.0 → 5.6.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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-card-provider
2
2
 
3
+ ## 5.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1b7d48c39ae03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b7d48c39ae03) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 5.6.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`6b61788ba65a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b61788ba65a2) - -
16
+ Added a new `custom` environment to `EnvironmentsKeys`. Now, you can pass the `baseUrlOverride`
17
+ parameter to both `EditorCardProvider` and `CardClient` to access a service directly.
18
+
19
+ - Introduced a new `setHeaders` method in CardClient, allowing you to specify custom HTTP headers
20
+ for requests to the object-resolver service.
21
+ - `EditorCardProvider` now supports passing a custom `CardClient` instance, so you can use your
22
+ own client instead of the built-in one.
23
+
24
+ These changes provide more flexibility for configuring access to the object-resolver service,
25
+ including support for SSR and integration with custom infrastructures.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 5.5.0
4
32
 
5
33
  ### Minor Changes
@@ -7,9 +7,9 @@ export type ORSCheckResponse = {
7
7
  };
8
8
  type DisplayViews = 'inline' | 'block' | 'embed';
9
9
  export type ProviderPattern = {
10
+ defaultView?: DisplayViews;
10
11
  source: string;
11
12
  supportedViews?: DisplayViews[];
12
- defaultView?: DisplayViews;
13
13
  };
14
14
  type Provider = {
15
15
  key: string;
@@ -17,11 +17,11 @@ type Provider = {
17
17
  };
18
18
  export type LinkAppearance = CardAppearance | 'url';
19
19
  export interface UserPreferences {
20
- defaultAppearance: LinkAppearance;
21
20
  appearances: {
22
- urlSegment: string;
23
21
  appearance: LinkAppearance;
22
+ urlSegment: string;
24
23
  }[];
24
+ defaultAppearance: LinkAppearance;
25
25
  }
26
26
  export type ORSProvidersResponse = {
27
27
  providers: Provider[];
@@ -7,9 +7,9 @@ export type ORSCheckResponse = {
7
7
  };
8
8
  type DisplayViews = 'inline' | 'block' | 'embed';
9
9
  export type ProviderPattern = {
10
+ defaultView?: DisplayViews;
10
11
  source: string;
11
12
  supportedViews?: DisplayViews[];
12
- defaultView?: DisplayViews;
13
13
  };
14
14
  type Provider = {
15
15
  key: string;
@@ -17,11 +17,11 @@ type Provider = {
17
17
  };
18
18
  export type LinkAppearance = CardAppearance | 'url';
19
19
  export interface UserPreferences {
20
- defaultAppearance: LinkAppearance;
21
20
  appearances: {
22
- urlSegment: string;
23
21
  appearance: LinkAppearance;
22
+ urlSegment: string;
24
23
  }[];
24
+ defaultAppearance: LinkAppearance;
25
25
  }
26
26
  export type ORSProvidersResponse = {
27
27
  providers: Provider[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-card-provider",
3
- "version": "5.5.0",
3
+ "version": "5.6.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",
@@ -32,21 +32,21 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-json-transformer": "^8.25.0",
35
+ "@atlaskit/editor-json-transformer": "^8.27.0",
36
36
  "@atlaskit/feature-gate-js-client": "^5.5.0",
37
37
  "@atlaskit/json-ld-types": "^1.4.0",
38
38
  "@atlaskit/link-client-extension": "^5.0.0",
39
39
  "@atlaskit/link-extractors": "^2.4.0",
40
- "@atlaskit/linking-common": "^9.4.0",
40
+ "@atlaskit/linking-common": "^9.5.0",
41
41
  "@atlaskit/linking-types": "^14.0.0",
42
42
  "@atlaskit/node-data-provider": "^4.5.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.6.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "dataloader": "^2.1.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/link-provider": "^3.6.0",
49
+ "@atlaskit/link-provider": "^3.7.0",
50
50
  "react": "^18.2.0"
51
51
  },
52
52
  "devDependencies": {