@atlaskit/embedded-document 4.0.3 → 4.0.5
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 +14 -0
- package/dist/cjs/components/document.js +2 -0
- package/dist/cjs/components/toolbar.js +1 -0
- package/dist/es2019/components/document.js +2 -0
- package/dist/es2019/components/toolbar.js +1 -0
- package/dist/esm/components/document.js +2 -0
- package/dist/esm/components/toolbar.js +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/embedded-document
|
|
2
2
|
|
|
3
|
+
## 4.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d3461a5b84b81`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d3461a5b84b81) -
|
|
14
|
+
Suppress i18n errors
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -87,9 +87,11 @@ var Document = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
editorProps = _this$props4.editorProps,
|
|
88
88
|
rendererProps = _this$props4.rendererProps;
|
|
89
89
|
if (hasError) {
|
|
90
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
90
91
|
return /*#__PURE__*/_react.default.createElement("div", null, "Something went wrong \uD83D\uDE14");
|
|
91
92
|
}
|
|
92
93
|
if (isLoading) {
|
|
94
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
93
95
|
return /*#__PURE__*/_react.default.createElement("div", null, "Loading document... \uD83D\uDC28");
|
|
94
96
|
}
|
|
95
97
|
switch (mode) {
|
|
@@ -59,6 +59,7 @@ var _default = exports.default = function _default(props) {
|
|
|
59
59
|
}
|
|
60
60
|
}, _callee, null, [[3, 8]]);
|
|
61
61
|
}))
|
|
62
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
62
63
|
}, "Publish"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
63
64
|
appearance: "subtle",
|
|
64
65
|
onClick: function onClick() {
|
|
@@ -59,9 +59,11 @@ export default class Document extends Component {
|
|
|
59
59
|
rendererProps
|
|
60
60
|
} = this.props;
|
|
61
61
|
if (hasError) {
|
|
62
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
62
63
|
return /*#__PURE__*/React.createElement("div", null, "Something went wrong \uD83D\uDE14");
|
|
63
64
|
}
|
|
64
65
|
if (isLoading) {
|
|
66
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
65
67
|
return /*#__PURE__*/React.createElement("div", null, "Loading document... \uD83D\uDC28");
|
|
66
68
|
}
|
|
67
69
|
switch (mode) {
|
|
@@ -35,6 +35,7 @@ export default (props => {
|
|
|
35
35
|
await (mode === 'create' ? actions.createDocument(value) : actions.updateDocument(value));
|
|
36
36
|
} catch (err) {}
|
|
37
37
|
}
|
|
38
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
38
39
|
}, "Publish"), /*#__PURE__*/React.createElement(Button, {
|
|
39
40
|
appearance: "subtle",
|
|
40
41
|
onClick: () => actions.cancelEdit()
|
|
@@ -78,9 +78,11 @@ var Document = /*#__PURE__*/function (_Component) {
|
|
|
78
78
|
editorProps = _this$props4.editorProps,
|
|
79
79
|
rendererProps = _this$props4.rendererProps;
|
|
80
80
|
if (hasError) {
|
|
81
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
81
82
|
return /*#__PURE__*/React.createElement("div", null, "Something went wrong \uD83D\uDE14");
|
|
82
83
|
}
|
|
83
84
|
if (isLoading) {
|
|
85
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
84
86
|
return /*#__PURE__*/React.createElement("div", null, "Loading document... \uD83D\uDC28");
|
|
85
87
|
}
|
|
86
88
|
switch (mode) {
|
|
@@ -51,6 +51,7 @@ export default (function (props) {
|
|
|
51
51
|
}
|
|
52
52
|
}, _callee, null, [[3, 8]]);
|
|
53
53
|
}))
|
|
54
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
54
55
|
}, "Publish"), /*#__PURE__*/React.createElement(Button, {
|
|
55
56
|
appearance: "subtle",
|
|
56
57
|
onClick: function onClick() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/embedded-document",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "DEPRECATED Embedded Document component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/button": "^23.
|
|
34
|
-
"@atlaskit/editor-core": "^215.
|
|
35
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
36
|
-
"@atlaskit/renderer": "^124.
|
|
37
|
-
"@atlaskit/tokens": "^
|
|
33
|
+
"@atlaskit/button": "^23.9.0",
|
|
34
|
+
"@atlaskit/editor-core": "^215.23.0",
|
|
35
|
+
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
36
|
+
"@atlaskit/renderer": "^124.22.0",
|
|
37
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
38
38
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/editor-common": "^110.
|
|
42
|
+
"@atlaskit/editor-common": "^110.46.0",
|
|
43
43
|
"react": "^18.2.0",
|
|
44
44
|
"styled-components": "^3.2.6"
|
|
45
45
|
},
|