@atlaskit/native-embeds-common 1.3.1 → 1.4.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,23 @@
1
1
  # @atlaskit/native-embeds-common
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`ffe37ecd72b10`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffe37ecd72b10) -
14
+ MAUI-478: Add border options to Infographic, Chart and Visualization native embed toolbar behind
15
+ the cc-maui-experiment experiment gate.
16
+
17
+ Users can now toggle "Add border" / "No border" from the native embed toolbar when the MAUI
18
+ experiment is enabled. The border state is persisted as a `showBorder` macro parameter on the node
19
+ and reflected in the embed frame.
20
+
3
21
  ## 1.3.1
4
22
 
5
23
  ### Patch Changes
@@ -44,6 +44,8 @@ var NATIVE_EMBED_PARAMETER_DEFAULTS = exports.NATIVE_EMBED_PARAMETER_DEFAULTS =
44
44
  url: undefined,
45
45
  alwaysShowTitle: false,
46
46
  alignment: DEFAULT_ALIGNMENT,
47
+ borderColor: undefined,
48
+ borderSize: undefined,
47
49
  displayText: undefined,
48
50
  height: 600,
49
51
  aspectRatio: 1,
@@ -40,6 +40,8 @@ var PARAMETER_TYPES = {
40
40
  alignment: 'string',
41
41
  alwaysShowTitle: 'boolean',
42
42
  aspectRatio: 'number',
43
+ borderColor: 'string',
44
+ borderSize: 'number',
43
45
  displayText: 'string',
44
46
  height: 'number',
45
47
  url: 'string',
@@ -38,6 +38,8 @@ export const NATIVE_EMBED_PARAMETER_DEFAULTS = {
38
38
  url: undefined,
39
39
  alwaysShowTitle: false,
40
40
  alignment: DEFAULT_ALIGNMENT,
41
+ borderColor: undefined,
42
+ borderSize: undefined,
41
43
  displayText: undefined,
42
44
  height: 600,
43
45
  aspectRatio: 1,
@@ -24,6 +24,8 @@ const PARAMETER_TYPES = {
24
24
  alignment: 'string',
25
25
  alwaysShowTitle: 'boolean',
26
26
  aspectRatio: 'number',
27
+ borderColor: 'string',
28
+ borderSize: 'number',
27
29
  displayText: 'string',
28
30
  height: 'number',
29
31
  url: 'string',
@@ -38,6 +38,8 @@ export var NATIVE_EMBED_PARAMETER_DEFAULTS = {
38
38
  url: undefined,
39
39
  alwaysShowTitle: false,
40
40
  alignment: DEFAULT_ALIGNMENT,
41
+ borderColor: undefined,
42
+ borderSize: undefined,
41
43
  displayText: undefined,
42
44
  height: 600,
43
45
  aspectRatio: 1,
@@ -31,6 +31,8 @@ var PARAMETER_TYPES = {
31
31
  alignment: 'string',
32
32
  alwaysShowTitle: 'boolean',
33
33
  aspectRatio: 'number',
34
+ borderColor: 'string',
35
+ borderSize: 'number',
34
36
  displayText: 'string',
35
37
  height: 'number',
36
38
  url: 'string',
@@ -8,6 +8,16 @@ export type NativeEmbedParameterValues = {
8
8
  alignment: AlignmentValue;
9
9
  alwaysShowTitle: boolean;
10
10
  aspectRatio: number;
11
+ /**
12
+ * Border color as a hex string (e.g. '#091E4224'). When present and non-empty the border is shown.
13
+ * Matches the `color` field of `BorderMarkAttributes` used by the image border feature.
14
+ */
15
+ borderColor?: string;
16
+ /**
17
+ * Border size: 1 = Subtle, 2 = Medium, 3 = Bold.
18
+ * Matches the `size` field of `BorderMarkAttributes` used by the image border feature.
19
+ */
20
+ borderSize?: number;
11
21
  displayText?: string;
12
22
  height: number;
13
23
  url?: string;
@@ -21,6 +31,8 @@ export type NativeEmbedParameters = {
21
31
  alignment?: NativeEmbedParameterValue;
22
32
  alwaysShowTitle?: NativeEmbedParameterValue;
23
33
  aspectRatio?: NativeEmbedParameterValue;
34
+ borderColor?: NativeEmbedParameterValue;
35
+ borderSize?: NativeEmbedParameterValue;
24
36
  displayText?: NativeEmbedParameterValue;
25
37
  height?: NativeEmbedParameterValue;
26
38
  url?: NativeEmbedParameterValue;
@@ -8,6 +8,16 @@ export type NativeEmbedParameterValues = {
8
8
  alignment: AlignmentValue;
9
9
  alwaysShowTitle: boolean;
10
10
  aspectRatio: number;
11
+ /**
12
+ * Border color as a hex string (e.g. '#091E4224'). When present and non-empty the border is shown.
13
+ * Matches the `color` field of `BorderMarkAttributes` used by the image border feature.
14
+ */
15
+ borderColor?: string;
16
+ /**
17
+ * Border size: 1 = Subtle, 2 = Medium, 3 = Bold.
18
+ * Matches the `size` field of `BorderMarkAttributes` used by the image border feature.
19
+ */
20
+ borderSize?: number;
11
21
  displayText?: string;
12
22
  height: number;
13
23
  url?: string;
@@ -21,6 +31,8 @@ export type NativeEmbedParameters = {
21
31
  alignment?: NativeEmbedParameterValue;
22
32
  alwaysShowTitle?: NativeEmbedParameterValue;
23
33
  aspectRatio?: NativeEmbedParameterValue;
34
+ borderColor?: NativeEmbedParameterValue;
35
+ borderSize?: NativeEmbedParameterValue;
24
36
  displayText?: NativeEmbedParameterValue;
25
37
  height?: NativeEmbedParameterValue;
26
38
  url?: NativeEmbedParameterValue;
package/package.json CHANGED
@@ -25,13 +25,13 @@
25
25
  "atlaskit:src": "src/index.ts",
26
26
  "dependencies": {
27
27
  "@atlaskit/button": "^23.11.0",
28
- "@atlaskit/editor-common": "^114.35.0",
29
- "@atlaskit/editor-plugin-local-id": "^8.1.0",
28
+ "@atlaskit/editor-common": "^115.0.0",
29
+ "@atlaskit/editor-plugin-local-id": "^9.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^7.3.0",
31
31
  "@atlaskit/heading": "^5.4.0",
32
- "@atlaskit/icon": "^35.0.0",
32
+ "@atlaskit/icon": "^35.3.0",
33
33
  "@atlaskit/primitives": "^19.0.0",
34
- "@atlaskit/tokens": "^13.0.0",
34
+ "@atlaskit/tokens": "^13.1.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@compiled/react": "^0.20.0"
37
37
  },
@@ -44,6 +44,7 @@
44
44
  "@af/visual-regression": "workspace:^",
45
45
  "@atlaskit/ssr": "workspace:^",
46
46
  "@testing-library/react": "^16.3.0",
47
+ "react": "^18.2.0",
47
48
  "react-dom": "^18.2.0",
48
49
  "react-intl": "^6.6.2"
49
50
  },
@@ -86,7 +87,7 @@
86
87
  }
87
88
  },
88
89
  "name": "@atlaskit/native-embeds-common",
89
- "version": "1.3.1",
90
+ "version": "1.4.1",
90
91
  "description": "A shared package for native embeds to be used across experiences and plugin",
91
92
  "author": "Atlassian Pty Ltd",
92
93
  "license": "Apache-2.0",