@atlaskit/native-embeds-common 2.1.1 → 2.2.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 +20 -0
- package/dist/cjs/utils/constants.js +1 -0
- package/dist/cjs/utils/utils.js +1 -0
- package/dist/es2019/utils/constants.js +1 -0
- package/dist/es2019/utils/utils.js +1 -0
- package/dist/esm/utils/constants.js +1 -0
- package/dist/esm/utils/utils.js +1 -0
- package/dist/types/utils/types.d.ts +7 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/native-embeds-common
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`53006a460ecb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53006a460ecb2) -
|
|
8
|
+
[ux] Allow opted-in native embed experiences to use the editor text layout width as their maximum
|
|
9
|
+
width when the `platform_native_embeds_max_width` dynamic configuration is enabled. MAUI opts in
|
|
10
|
+
to the new `allowMaxWidth` manifest capability. Other experiences can opt in with:
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
const MyExperienceManifest: ExperienceManifest = {
|
|
14
|
+
allowMaxWidth: true,
|
|
15
|
+
// other manifest fields
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 2.1.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/utils/utils.js
CHANGED
package/dist/esm/utils/utils.js
CHANGED
|
@@ -20,6 +20,12 @@ export type NativeEmbedParameterValues = {
|
|
|
20
20
|
borderSize?: number;
|
|
21
21
|
displayText?: string;
|
|
22
22
|
height: number;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the embed should follow the editor text layout maximum width.
|
|
25
|
+
*
|
|
26
|
+
* Omitted for existing embeds; parameter resolution treats an omitted value as `false`.
|
|
27
|
+
*/
|
|
28
|
+
isMaxWidth?: boolean;
|
|
23
29
|
url?: string;
|
|
24
30
|
width?: number;
|
|
25
31
|
};
|
|
@@ -35,6 +41,7 @@ export type NativeEmbedParameters = {
|
|
|
35
41
|
borderSize?: NativeEmbedParameterValue;
|
|
36
42
|
displayText?: NativeEmbedParameterValue;
|
|
37
43
|
height?: NativeEmbedParameterValue;
|
|
44
|
+
isMaxWidth?: NativeEmbedParameterValue;
|
|
38
45
|
url?: NativeEmbedParameterValue;
|
|
39
46
|
width?: NativeEmbedParameterValue;
|
|
40
47
|
};
|
package/package.json
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"atlaskit:src": "src/index.ts",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@atlaskit/button": "^24.3.0",
|
|
20
|
-
"@atlaskit/editor-common": "^116.
|
|
20
|
+
"@atlaskit/editor-common": "^116.30.0",
|
|
21
21
|
"@atlaskit/editor-plugin-local-id": "^10.1.0",
|
|
22
22
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
23
23
|
"@atlaskit/heading": "^6.2.0",
|
|
24
24
|
"@atlaskit/icon": "^37.0.0",
|
|
25
|
-
"@atlaskit/primitives": "^20.
|
|
26
|
-
"@atlaskit/tokens": "^15.
|
|
25
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
26
|
+
"@atlaskit/tokens": "^15.8.0",
|
|
27
27
|
"@atlassian/afm-i18n-platform-native-embeds-native-embeds-common": "1.7.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"@compiled/react": "^0.20.0"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"name": "@atlaskit/native-embeds-common",
|
|
83
|
-
"version": "2.
|
|
83
|
+
"version": "2.2.0",
|
|
84
84
|
"description": "A shared package for native embeds to be used across experiences and plugin",
|
|
85
85
|
"author": "Atlassian Pty Ltd",
|
|
86
86
|
"license": "Apache-2.0",
|