@atlaskit/native-embeds-common 1.3.0 → 1.4.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/CHANGELOG.md +19 -1
- package/dist/cjs/utils/constants.js +2 -0
- package/dist/cjs/utils/utils.js +2 -0
- package/dist/es2019/utils/constants.js +2 -0
- package/dist/es2019/utils/utils.js +2 -0
- package/dist/esm/utils/constants.js +2 -0
- package/dist/esm/utils/utils.js +2 -0
- package/dist/types/utils/types.d.ts +12 -0
- package/dist/types-ts4.5/utils/types.d.ts +12 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
# @atlaskit/native-embeds-common
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ffe37ecd72b10`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffe37ecd72b10) -
|
|
8
|
+
MAUI-478: Add border options to Infographic, Chart and Visualization native embed toolbar behind
|
|
9
|
+
the cc-maui-experiment experiment gate.
|
|
10
|
+
|
|
11
|
+
Users can now toggle "Add border" / "No border" from the native embed toolbar when the MAUI
|
|
12
|
+
experiment is enabled. The border state is persisted as a `showBorder` macro parameter on the node
|
|
13
|
+
and reflected in the embed frame.
|
|
14
|
+
|
|
15
|
+
## 1.3.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.3.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
6
24
|
|
|
7
|
-
- [`
|
|
25
|
+
- [`ebab8f80bfc40`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebab8f80bfc40) -
|
|
8
26
|
Autofix: add explicit package exports (barrel removal)
|
|
9
27
|
|
|
10
28
|
### 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,
|
package/dist/cjs/utils/utils.js
CHANGED
package/dist/esm/utils/utils.js
CHANGED
|
@@ -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,11 +25,11 @@
|
|
|
25
25
|
"atlaskit:src": "src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/button": "^23.11.0",
|
|
28
|
-
"@atlaskit/editor-common": "^114.
|
|
29
|
-
"@atlaskit/editor-plugin-local-id": "^8.
|
|
28
|
+
"@atlaskit/editor-common": "^114.42.0",
|
|
29
|
+
"@atlaskit/editor-plugin-local-id": "^8.3.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
31
31
|
"@atlaskit/heading": "^5.4.0",
|
|
32
|
-
"@atlaskit/icon": "^
|
|
32
|
+
"@atlaskit/icon": "^35.0.0",
|
|
33
33
|
"@atlaskit/primitives": "^19.0.0",
|
|
34
34
|
"@atlaskit/tokens": "^13.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -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.
|
|
90
|
+
"version": "1.4.0",
|
|
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",
|