@atlaskit/renderer 131.1.0 → 131.1.2
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,22 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 131.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2ee094c6df7e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2ee094c6df7e1) -
|
|
8
|
+
`nativeEmbedsFallbackTransform` now renders an `embedCard` when the parent context allows it (per
|
|
9
|
+
the supplied ProseMirror schema), and falls back to the existing `paragraph > inlineCard` shape
|
|
10
|
+
only when `embedCard` would not be valid in that position. The function now requires a `Schema`
|
|
11
|
+
argument, which the renderer passes from the schema being used for the current render.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 131.1.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 131.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -94,7 +94,7 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
if (result && !(0, _expValEquals.expValEquals)('cc-maui-experiment', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_native_embeds_fallback_transform')) {
|
|
97
|
-
var _nativeEmbedsFallback = (0, _transforms.nativeEmbedsFallbackTransform)(result),
|
|
97
|
+
var _nativeEmbedsFallback = (0, _transforms.nativeEmbedsFallbackTransform)(result, schema),
|
|
98
98
|
_transformedAdf2 = _nativeEmbedsFallback.transformedAdf,
|
|
99
99
|
hasValidTransform = _nativeEmbedsFallback.hasValidTransform;
|
|
100
100
|
if (hasValidTransform && _transformedAdf2) {
|
|
@@ -91,7 +91,7 @@ const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnaly
|
|
|
91
91
|
const {
|
|
92
92
|
transformedAdf,
|
|
93
93
|
hasValidTransform
|
|
94
|
-
} = nativeEmbedsFallbackTransform(result);
|
|
94
|
+
} = nativeEmbedsFallbackTransform(result, schema);
|
|
95
95
|
if (hasValidTransform && transformedAdf) {
|
|
96
96
|
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
|
|
97
97
|
action: ACTION.NATIVE_EMBEDS_TRANSFORMED,
|
|
@@ -87,7 +87,7 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
if (result && !expValEquals('cc-maui-experiment', 'isEnabled', true) && fg('platform_editor_native_embeds_fallback_transform')) {
|
|
90
|
-
var _nativeEmbedsFallback = nativeEmbedsFallbackTransform(result),
|
|
90
|
+
var _nativeEmbedsFallback = nativeEmbedsFallbackTransform(result, schema),
|
|
91
91
|
_transformedAdf2 = _nativeEmbedsFallback.transformedAdf,
|
|
92
92
|
hasValidTransform = _nativeEmbedsFallback.hasValidTransform;
|
|
93
93
|
if (hasValidTransform && _transformedAdf2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "131.1.
|
|
3
|
+
"version": "131.1.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^52.
|
|
33
|
+
"@atlaskit/adf-schema": "^52.13.0",
|
|
34
34
|
"@atlaskit/adf-utils": "^19.30.0",
|
|
35
35
|
"@atlaskit/afm-i18n-platform-editor-renderer": "2.10.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
46
46
|
"@atlaskit/editor-smart-link-draggable": "^0.5.0",
|
|
47
|
-
"@atlaskit/emoji": "^70.
|
|
47
|
+
"@atlaskit/emoji": "^70.10.0",
|
|
48
48
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
49
49
|
"@atlaskit/icon": "^35.0.0",
|
|
50
50
|
"@atlaskit/link": "^3.4.0",
|
|
51
|
-
"@atlaskit/link-datasource": "^5.
|
|
51
|
+
"@atlaskit/link-datasource": "^5.4.0",
|
|
52
52
|
"@atlaskit/link-extractors": "^2.6.0",
|
|
53
53
|
"@atlaskit/linking-common": "^9.11.0",
|
|
54
54
|
"@atlaskit/media-card": "^80.5.0",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
63
63
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
64
|
-
"@atlaskit/react-ufo": "^5.
|
|
64
|
+
"@atlaskit/react-ufo": "^5.22.0",
|
|
65
65
|
"@atlaskit/smart-card": "^44.12.0",
|
|
66
66
|
"@atlaskit/status": "^4.1.0",
|
|
67
67
|
"@atlaskit/task-decision": "^20.1.0",
|
|
68
68
|
"@atlaskit/theme": "^23.2.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^82.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^22.2.0",
|
|
72
72
|
"@atlaskit/visually-hidden": "^3.1.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"uuid": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atlaskit/editor-common": "^114.
|
|
83
|
+
"@atlaskit/editor-common": "^114.38.0",
|
|
84
84
|
"@atlaskit/link-provider": "^4.4.0",
|
|
85
85
|
"@atlaskit/media-core": "^37.1.0",
|
|
86
86
|
"react": "^18.2.0",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"@atlaskit/navigation-system": "^9.4.0",
|
|
103
103
|
"@atlaskit/profilecard": "^25.7.0",
|
|
104
104
|
"@atlaskit/side-nav-items": "^1.13.0",
|
|
105
|
-
"@atlaskit/util-data-test": "^18.
|
|
105
|
+
"@atlaskit/util-data-test": "^18.6.0",
|
|
106
106
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
107
|
-
"@atlassian/a11y-playwright-testing": "^0.
|
|
107
|
+
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
108
108
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
109
109
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
110
110
|
"@atlassian/structured-docs-types": "workspace:^",
|