@atlaskit/editor-synced-block-renderer 5.0.1 → 5.0.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 +7 -0
- package/afm-jira/tsconfig.json +69 -0
- package/dist/cjs/ui/AKRendererWrapper.js +3 -1
- package/dist/es2019/ui/AKRendererWrapper.js +3 -1
- package/dist/esm/ui/AKRendererWrapper.js +3 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 5.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`56260a2c9fc76`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56260a2c9fc76) -
|
|
8
|
+
EDITOR-4252 Add appearance prop to Synced Block renderer options.
|
|
9
|
+
|
|
3
10
|
## 5.0.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-synced-block-renderer/app",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
24
|
+
],
|
|
25
|
+
"references": [
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/css/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../editor-plugin-synced-block/afm-jira/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../editor-synced-block-provider/afm-jira/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/heading/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/icon-lab/afm-jira/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/image/afm-jira/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../renderer/afm-jira/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -51,6 +51,7 @@ var DisabledTaskWithTooltip = function DisabledTaskWithTooltip(_ref2) {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
var defaultOptions = {
|
|
54
|
+
appearance: 'full-width',
|
|
54
55
|
allowAltTextOnImages: true,
|
|
55
56
|
allowAnnotations: true,
|
|
56
57
|
allowColumnSorting: true,
|
|
@@ -77,6 +78,7 @@ var AKRendererWrapper = exports.AKRendererWrapper = /*#__PURE__*/(0, _react.memo
|
|
|
77
78
|
options = _ref3.options;
|
|
78
79
|
var mergedOptions = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
79
80
|
var _ref4 = mergedOptions !== null && mergedOptions !== void 0 ? mergedOptions : {},
|
|
81
|
+
appearance = _ref4.appearance,
|
|
80
82
|
allowAltTextOnImages = _ref4.allowAltTextOnImages,
|
|
81
83
|
allowAnnotations = _ref4.allowAnnotations,
|
|
82
84
|
allowColumnSorting = _ref4.allowColumnSorting,
|
|
@@ -111,7 +113,7 @@ var AKRendererWrapper = exports.AKRendererWrapper = /*#__PURE__*/(0, _react.memo
|
|
|
111
113
|
return /*#__PURE__*/_react.default.createElement(_actions.RendererActionsContext, null, /*#__PURE__*/_react.default.createElement(ValidationContextWrapper, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
112
114
|
"data-testid": "sync-block-renderer-wrapper"
|
|
113
115
|
}, /*#__PURE__*/_react.default.createElement(_renderer.ReactRenderer, {
|
|
114
|
-
appearance:
|
|
116
|
+
appearance: appearance,
|
|
115
117
|
adfStage: "stage0",
|
|
116
118
|
document: doc,
|
|
117
119
|
disableHeadingIDs: true,
|
|
@@ -35,6 +35,7 @@ const DisabledTaskWithTooltip = ({
|
|
|
35
35
|
}))));
|
|
36
36
|
};
|
|
37
37
|
const defaultOptions = {
|
|
38
|
+
appearance: 'full-width',
|
|
38
39
|
allowAltTextOnImages: true,
|
|
39
40
|
allowAnnotations: true,
|
|
40
41
|
allowColumnSorting: true,
|
|
@@ -65,6 +66,7 @@ export const AKRendererWrapper = /*#__PURE__*/memo(({
|
|
|
65
66
|
...options
|
|
66
67
|
};
|
|
67
68
|
const {
|
|
69
|
+
appearance,
|
|
68
70
|
allowAltTextOnImages,
|
|
69
71
|
allowAnnotations,
|
|
70
72
|
allowColumnSorting,
|
|
@@ -100,7 +102,7 @@ export const AKRendererWrapper = /*#__PURE__*/memo(({
|
|
|
100
102
|
return /*#__PURE__*/React.createElement(RendererActionsContext, null, /*#__PURE__*/React.createElement(ValidationContextWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
101
103
|
"data-testid": "sync-block-renderer-wrapper"
|
|
102
104
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
103
|
-
appearance:
|
|
105
|
+
appearance: appearance,
|
|
104
106
|
adfStage: "stage0",
|
|
105
107
|
document: doc,
|
|
106
108
|
disableHeadingIDs: true,
|
|
@@ -42,6 +42,7 @@ var DisabledTaskWithTooltip = function DisabledTaskWithTooltip(_ref2) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
var defaultOptions = {
|
|
45
|
+
appearance: 'full-width',
|
|
45
46
|
allowAltTextOnImages: true,
|
|
46
47
|
allowAnnotations: true,
|
|
47
48
|
allowColumnSorting: true,
|
|
@@ -68,6 +69,7 @@ export var AKRendererWrapper = /*#__PURE__*/memo(function (_ref3) {
|
|
|
68
69
|
options = _ref3.options;
|
|
69
70
|
var mergedOptions = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
70
71
|
var _ref4 = mergedOptions !== null && mergedOptions !== void 0 ? mergedOptions : {},
|
|
72
|
+
appearance = _ref4.appearance,
|
|
71
73
|
allowAltTextOnImages = _ref4.allowAltTextOnImages,
|
|
72
74
|
allowAnnotations = _ref4.allowAnnotations,
|
|
73
75
|
allowColumnSorting = _ref4.allowColumnSorting,
|
|
@@ -102,7 +104,7 @@ export var AKRendererWrapper = /*#__PURE__*/memo(function (_ref3) {
|
|
|
102
104
|
return /*#__PURE__*/React.createElement(RendererActionsContext, null, /*#__PURE__*/React.createElement(ValidationContextWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
103
105
|
"data-testid": "sync-block-renderer-wrapper"
|
|
104
106
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
105
|
-
appearance:
|
|
107
|
+
appearance: appearance,
|
|
106
108
|
adfStage: "stage0",
|
|
107
109
|
document: doc,
|
|
108
110
|
disableHeadingIDs: true,
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type RendererProps } from '@atlaskit/renderer';
|
|
2
|
-
export type SyncedBlockRendererOptions = Pick<RendererProps, 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'media' | 'smartLinks' | 'stickyHeaders'>;
|
|
2
|
+
export type SyncedBlockRendererOptions = Pick<RendererProps, 'appearance' | 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'media' | 'smartLinks' | 'stickyHeaders'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type RendererProps } from '@atlaskit/renderer';
|
|
2
|
-
export type SyncedBlockRendererOptions = Pick<RendererProps, 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'media' | 'smartLinks' | 'stickyHeaders'>;
|
|
2
|
+
export type SyncedBlockRendererOptions = Pick<RendererProps, 'appearance' | 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'media' | 'smartLinks' | 'stickyHeaders'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/button": "^23.9.0",
|
|
32
32
|
"@atlaskit/css": "^0.19.0",
|
|
33
|
-
"@atlaskit/editor-plugin-synced-block": "^5.
|
|
34
|
-
"@atlaskit/editor-synced-block-provider": "^3.
|
|
33
|
+
"@atlaskit/editor-plugin-synced-block": "^5.1.0",
|
|
34
|
+
"@atlaskit/editor-synced-block-provider": "^3.5.0",
|
|
35
35
|
"@atlaskit/heading": "^5.2.0",
|
|
36
36
|
"@atlaskit/icon": "^29.3.0",
|
|
37
37
|
"@atlaskit/icon-lab": "^5.13.0",
|
|
38
38
|
"@atlaskit/image": "^3.0.0",
|
|
39
39
|
"@atlaskit/primitives": "^17.0.0",
|
|
40
|
-
"@atlaskit/renderer": "^125.
|
|
40
|
+
"@atlaskit/renderer": "^125.1.0",
|
|
41
41
|
"@atlaskit/spinner": "^19.0.0",
|
|
42
|
-
"@atlaskit/tokens": "^9.
|
|
42
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
43
43
|
"@atlaskit/tooltip": "^20.11.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"react-relay": "npm:atl-react-relay@0.0.0-main-39e79f66",
|
|
46
46
|
"relay-runtime": "npm:atl-relay-runtime@0.0.0-main-39e79f66"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^111.
|
|
49
|
+
"@atlaskit/editor-common": "^111.4.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
52
52
|
},
|