@jobber/components 2.83.0 → 2.83.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 +11 -0
- package/dist/Markdown/index.js +38 -34
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@ menu: Changelog
|
|
|
8
8
|
All notable changes to this project will be documented in this file.
|
|
9
9
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
10
10
|
|
|
11
|
+
## [2.83.1](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.83.0...@jobber/components@2.83.1) (2022-06-03)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **deps:** update markdown to v6.0.3 ([#896](https://github.com/GetJobber/atlantis/issues/896)) ([93b36de](https://github.com/GetJobber/atlantis/commit/93b36de87bc8a5184eb794c7dce46d7e8f47dbfd))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
11
22
|
# [2.83.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.82.1...@jobber/components@2.83.0) (2022-05-04)
|
|
12
23
|
|
|
13
24
|
|
package/dist/Markdown/index.js
CHANGED
|
@@ -19,49 +19,53 @@ var index$4 = require('../Emphasis/index.js');
|
|
|
19
19
|
function Markdown(_a) {
|
|
20
20
|
var content = _a.content, externalLink = _a.externalLink, basicUsage = _a.basicUsage;
|
|
21
21
|
var props = __chunk_1.__assign({}, (basicUsage && {
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
disallowedElements: [
|
|
23
|
+
"p",
|
|
24
|
+
"h1",
|
|
25
|
+
"h2",
|
|
26
|
+
"h3",
|
|
27
|
+
"h4",
|
|
28
|
+
"h5",
|
|
29
|
+
"h6",
|
|
25
30
|
"table",
|
|
26
|
-
"
|
|
31
|
+
"ul",
|
|
32
|
+
"li",
|
|
27
33
|
"code",
|
|
28
34
|
"image",
|
|
29
35
|
],
|
|
30
36
|
unwrapDisallowed: true,
|
|
31
37
|
}));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
var Tag = basicUsage ? React__default.Fragment : index$2.Content;
|
|
39
|
+
return (React__default.createElement(Tag, null,
|
|
40
|
+
React__default.createElement(ReactMarkdown, __chunk_1.__assign({}, props, { linkTarget: externalLink ? "_blank" : undefined, components: {
|
|
41
|
+
p: renderParagraph,
|
|
42
|
+
strong: renderStrong,
|
|
43
|
+
em: renderEmphasis,
|
|
44
|
+
h1: renderHeading(1),
|
|
45
|
+
h2: renderHeading(2),
|
|
46
|
+
h3: renderHeading(3),
|
|
47
|
+
h4: renderHeading(4),
|
|
48
|
+
h5: renderHeading(5),
|
|
49
|
+
} }), content)));
|
|
50
|
+
}
|
|
51
|
+
function renderParagraph(_a) {
|
|
52
|
+
var children = _a.children;
|
|
53
|
+
return React__default.createElement(index$1.Text, null, children);
|
|
54
|
+
}
|
|
55
|
+
function renderStrong(_a) {
|
|
56
|
+
var children = _a.children;
|
|
57
|
+
return React__default.createElement(index$4.Emphasis, { variation: "bold" }, children);
|
|
58
|
+
}
|
|
59
|
+
function renderEmphasis(_a) {
|
|
60
|
+
var children = _a.children;
|
|
61
|
+
return React__default.createElement(index$4.Emphasis, { variation: "italic" }, children);
|
|
62
|
+
}
|
|
63
|
+
function renderHeading(level) {
|
|
64
|
+
function buildHeading(_a) {
|
|
40
65
|
var children = _a.children;
|
|
41
|
-
if (basicUsage) {
|
|
42
|
-
return React__default.createElement(React__default.Fragment, null, children);
|
|
43
|
-
}
|
|
44
|
-
return React__default.createElement(index$2.Content, null, children);
|
|
45
|
-
}
|
|
46
|
-
function renderParagraph(_a) {
|
|
47
|
-
var children = _a.children;
|
|
48
|
-
return React__default.createElement(index$1.Text, null, children);
|
|
49
|
-
}
|
|
50
|
-
function renderEmphasis(_a) {
|
|
51
|
-
var children = _a.children;
|
|
52
|
-
return React__default.createElement(index$4.Emphasis, { variation: "italic" }, children);
|
|
53
|
-
}
|
|
54
|
-
function renderStrong(_a) {
|
|
55
|
-
var children = _a.children;
|
|
56
|
-
return React__default.createElement(index$4.Emphasis, { variation: "bold" }, children);
|
|
57
|
-
}
|
|
58
|
-
function renderHeading(_a) {
|
|
59
|
-
var level = _a.level, children = _a.children;
|
|
60
|
-
if (level === 6) {
|
|
61
|
-
return React__default.createElement("h6", null, children);
|
|
62
|
-
}
|
|
63
66
|
return React__default.createElement(index$3.Heading, { level: level }, children);
|
|
64
67
|
}
|
|
68
|
+
return buildHeading;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
exports.Markdown = Markdown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "2.83.
|
|
3
|
+
"version": "2.83.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-dropzone": "^11.0.2",
|
|
40
40
|
"react-hook-form": "^6.7.2",
|
|
41
41
|
"react-image-lightbox": "^5.1.1",
|
|
42
|
-
"react-markdown": "^
|
|
42
|
+
"react-markdown": "^6.0.3",
|
|
43
43
|
"react-popper": "^2.2.5",
|
|
44
44
|
"react-router-dom": "^5.2.0",
|
|
45
45
|
"time-input-polyfill": "^1.0.7",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"> 1%",
|
|
86
86
|
"IE 10"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "6cc8ee125a496fcffaea2e9514e6e58dff9ebd6f"
|
|
89
89
|
}
|