@atlaskit/renderer 124.8.0 → 124.8.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 +16 -0
- package/dist/cjs/react/nodes/bodiedSyncBlock.js +18 -0
- package/dist/cjs/react/nodes/index.js +13 -0
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/bodiedSyncBlock.js +13 -0
- package/dist/es2019/react/nodes/index.js +5 -0
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/bodiedSyncBlock.js +11 -0
- package/dist/esm/react/nodes/index.js +11 -0
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/bodiedSyncBlock.d.ts +8 -0
- package/dist/types-ts4.5/react/nodes/bodiedSyncBlock.d.ts +8 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7eb66badf6a43`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7eb66badf6a43) -
|
|
8
|
+
[ux] [EDITOR-2397] update extension styles to exclude nested renderers/ bodied extensions
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 124.8.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`68b3394583485`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/68b3394583485) -
|
|
16
|
+
[ux] [EDITOR-2378] Add renderer support for bodied sync block
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 124.8.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = BodiedSyncBlock;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function BodiedSyncBlock(props) {
|
|
10
|
+
var children = props.children,
|
|
11
|
+
localId = props.localId,
|
|
12
|
+
resourceId = props.resourceId;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
14
|
+
"data-bodied-sync-block": true,
|
|
15
|
+
"data-local-id": localId,
|
|
16
|
+
"data-resource-id": resourceId
|
|
17
|
+
}, children);
|
|
18
|
+
}
|
|
@@ -447,6 +447,18 @@ var SyncBlockLoader = (0, _reactLoadable.default)({
|
|
|
447
447
|
return null;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
+
var BodiedSyncBlock = (0, _reactLoadable.default)({
|
|
451
|
+
loader: function loader() {
|
|
452
|
+
return Promise.resolve().then(function () {
|
|
453
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_renderer-node_BodiedSyncBlock" */'./bodiedSyncBlock'));
|
|
454
|
+
}).then(function (mod) {
|
|
455
|
+
return mod.default;
|
|
456
|
+
});
|
|
457
|
+
},
|
|
458
|
+
loading: function loading() {
|
|
459
|
+
return null;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
450
462
|
var nodeToReact = exports.nodeToReact = {
|
|
451
463
|
blockquote: _blockquote.default,
|
|
452
464
|
bulletList: _bulletList.default,
|
|
@@ -490,6 +502,7 @@ var nodeToReact = exports.nodeToReact = {
|
|
|
490
502
|
unsupportedInline: _ui.UnsupportedInline,
|
|
491
503
|
expand: Expand,
|
|
492
504
|
syncBlock: SyncBlockLoader,
|
|
505
|
+
bodiedSyncBlock: BodiedSyncBlock,
|
|
493
506
|
nestedExpand: Expand,
|
|
494
507
|
embedCard: EmbedCard,
|
|
495
508
|
blockTaskItem: TaskItem
|
|
@@ -717,7 +717,7 @@ var codeMarkSharedStyles = (0, _react.css)({
|
|
|
717
717
|
});
|
|
718
718
|
var extensionStyle = (0, _react.css)({
|
|
719
719
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
720
|
-
'.ak-renderer-extension :not(
|
|
720
|
+
'.ak-renderer-extension :not(.ak-renderer-extension .ak-renderer-document *)': {
|
|
721
721
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
722
722
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
723
723
|
}
|
|
@@ -68,7 +68,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
68
68
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
69
69
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
70
70
|
var packageName = "@atlaskit/renderer";
|
|
71
|
-
var packageVersion = "
|
|
71
|
+
var packageVersion = "124.8.1";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function BodiedSyncBlock(props) {
|
|
3
|
+
const {
|
|
4
|
+
children,
|
|
5
|
+
localId,
|
|
6
|
+
resourceId
|
|
7
|
+
} = props;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
"data-bodied-sync-block": true,
|
|
10
|
+
"data-local-id": localId,
|
|
11
|
+
"data-resource-id": resourceId
|
|
12
|
+
}, children);
|
|
13
|
+
}
|
|
@@ -131,6 +131,10 @@ const SyncBlockLoader = Loadable({
|
|
|
131
131
|
'./syncBlock').then(mod => mod.default),
|
|
132
132
|
loading: () => null
|
|
133
133
|
});
|
|
134
|
+
const BodiedSyncBlock = Loadable({
|
|
135
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_renderer-node_BodiedSyncBlock" */'./bodiedSyncBlock').then(mod => mod.default),
|
|
136
|
+
loading: () => null
|
|
137
|
+
});
|
|
134
138
|
export const nodeToReact = {
|
|
135
139
|
blockquote: Blockquote,
|
|
136
140
|
bulletList: BulletList,
|
|
@@ -174,6 +178,7 @@ export const nodeToReact = {
|
|
|
174
178
|
unsupportedInline: UnsupportedInline,
|
|
175
179
|
expand: Expand,
|
|
176
180
|
syncBlock: SyncBlockLoader,
|
|
181
|
+
bodiedSyncBlock: BodiedSyncBlock,
|
|
177
182
|
nestedExpand: Expand,
|
|
178
183
|
embedCard: EmbedCard,
|
|
179
184
|
blockTaskItem: TaskItem
|
|
@@ -824,7 +824,7 @@ const codeMarkSharedStyles = css({
|
|
|
824
824
|
});
|
|
825
825
|
const extensionStyle = css({
|
|
826
826
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
827
|
-
'.ak-renderer-extension :not(
|
|
827
|
+
'.ak-renderer-extension :not(.ak-renderer-extension .ak-renderer-document *)': {
|
|
828
828
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
829
829
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
830
830
|
}
|
|
@@ -54,7 +54,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
54
54
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
55
55
|
const TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
56
56
|
const packageName = "@atlaskit/renderer";
|
|
57
|
-
const packageVersion = "
|
|
57
|
+
const packageVersion = "124.8.1";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function BodiedSyncBlock(props) {
|
|
3
|
+
var children = props.children,
|
|
4
|
+
localId = props.localId,
|
|
5
|
+
resourceId = props.resourceId;
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
+
"data-bodied-sync-block": true,
|
|
8
|
+
"data-local-id": localId,
|
|
9
|
+
"data-resource-id": resourceId
|
|
10
|
+
}, children);
|
|
11
|
+
}
|
|
@@ -254,6 +254,16 @@ var SyncBlockLoader = Loadable({
|
|
|
254
254
|
return null;
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
|
+
var BodiedSyncBlock = Loadable({
|
|
258
|
+
loader: function loader() {
|
|
259
|
+
return import( /* webpackChunkName: "@atlaskit-internal_renderer-node_BodiedSyncBlock" */'./bodiedSyncBlock').then(function (mod) {
|
|
260
|
+
return mod.default;
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
loading: function loading() {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
257
267
|
export var nodeToReact = {
|
|
258
268
|
blockquote: Blockquote,
|
|
259
269
|
bulletList: BulletList,
|
|
@@ -297,6 +307,7 @@ export var nodeToReact = {
|
|
|
297
307
|
unsupportedInline: UnsupportedInline,
|
|
298
308
|
expand: Expand,
|
|
299
309
|
syncBlock: SyncBlockLoader,
|
|
310
|
+
bodiedSyncBlock: BodiedSyncBlock,
|
|
300
311
|
nestedExpand: Expand,
|
|
301
312
|
embedCard: EmbedCard,
|
|
302
313
|
blockTaskItem: TaskItem
|
|
@@ -710,7 +710,7 @@ var codeMarkSharedStyles = css({
|
|
|
710
710
|
});
|
|
711
711
|
var extensionStyle = css({
|
|
712
712
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
713
|
-
'.ak-renderer-extension :not(
|
|
713
|
+
'.ak-renderer-extension :not(.ak-renderer-extension .ak-renderer-document *)': {
|
|
714
714
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
715
715
|
fontSize: 'var(--ak-renderer-base-font-size)'
|
|
716
716
|
}
|
|
@@ -59,7 +59,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
60
60
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
61
61
|
var packageName = "@atlaskit/renderer";
|
|
62
|
-
var packageVersion = "
|
|
62
|
+
var packageVersion = "124.8.1";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.8.
|
|
3
|
+
"version": "124.8.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
42
|
"@atlaskit/icon": "^28.5.0",
|
|
43
43
|
"@atlaskit/link": "^3.2.0",
|
|
44
|
-
"@atlaskit/link-datasource": "^4.
|
|
44
|
+
"@atlaskit/link-datasource": "^4.27.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
46
|
-
"@atlaskit/media-card": "^79.
|
|
46
|
+
"@atlaskit/media-card": "^79.6.0",
|
|
47
47
|
"@atlaskit/media-client": "^35.5.0",
|
|
48
48
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
49
49
|
"@atlaskit/media-common": "^12.3.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/status": "^3.0.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.2.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^13.17.0",
|
|
61
61
|
"@atlaskit/tokens": "^7.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.6.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.16.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|