@atlaskit/renderer 124.8.0 → 124.8.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,13 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 124.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`68b3394583485`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/68b3394583485) -
8
+ [ux] [EDITOR-2378] Add renderer support for bodied sync block
9
+ - Updated dependencies
10
+
3
11
  ## 124.8.0
4
12
 
5
13
  ### 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
@@ -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
@@ -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
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ localId: string;
5
+ resourceId: string;
6
+ }
7
+ export default function BodiedSyncBlock(props: Props): React.JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ localId: string;
5
+ resourceId: string;
6
+ }
7
+ export default function BodiedSyncBlock(props: Props): React.JSX.Element;
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "124.8.0",
3
+ "version": "124.8.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
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.26.0",
44
+ "@atlaskit/link-datasource": "^4.27.0",
45
45
  "@atlaskit/link-extractors": "^2.4.0",
46
46
  "@atlaskit/media-card": "^79.5.0",
47
47
  "@atlaskit/media-client": "^35.5.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.14.0",
60
+ "@atlaskit/tmp-editor-statsig": "^13.16.0",
61
61
  "@atlaskit/tokens": "^7.0.0",
62
62
  "@atlaskit/tooltip": "^20.6.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",