@cucumber/react-components 22.1.0 → 22.3.0
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/README.md +11 -0
- package/dist/src/components/CucumberReact.js +1 -1
- package/dist/src/components/CucumberReact.js.map +1 -1
- package/dist/src/components/customise/customRendering.d.ts +1 -1
- package/dist/src/components/customise/customRendering.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinStep.js +1 -1
- package/dist/src/components/gherkin/GherkinStep.js.map +1 -1
- package/dist/src/components/gherkin/HookStep.js +1 -1
- package/dist/src/components/gherkin/HookStep.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.d.ts +4 -0
- package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Attachment.js +48 -0
- package/dist/src/components/gherkin/attachment/Attachment.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Attachment.module.scss +57 -0
- package/dist/src/components/gherkin/attachment/Image.d.ts +8 -0
- package/dist/src/components/gherkin/attachment/Image.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Image.js +18 -0
- package/dist/src/components/gherkin/attachment/Image.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Links.d.ts +8 -0
- package/dist/src/components/gherkin/attachment/Links.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Links.js +17 -0
- package/dist/src/components/gherkin/attachment/Links.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Log.d.ts +8 -0
- package/dist/src/components/gherkin/attachment/Log.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Log.js +12 -0
- package/dist/src/components/gherkin/attachment/Log.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Text.d.ts +9 -0
- package/dist/src/components/gherkin/attachment/Text.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Text.js +18 -0
- package/dist/src/components/gherkin/attachment/Text.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Unknown.d.ts +4 -0
- package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Unknown.js +69 -0
- package/dist/src/components/gherkin/attachment/Unknown.js.map +1 -0
- package/dist/src/components/gherkin/attachment/Video.d.ts +6 -0
- package/dist/src/components/gherkin/attachment/Video.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/Video.js +20 -0
- package/dist/src/components/gherkin/attachment/Video.js.map +1 -0
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +1 -0
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts +2 -0
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/base64Decode.js +5 -0
- package/dist/src/components/gherkin/attachment/base64Decode.js.map +1 -0
- package/dist/src/components/gherkin/attachment/index.d.ts +2 -0
- package/dist/src/components/gherkin/attachment/index.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/index.js +2 -0
- package/dist/src/components/gherkin/attachment/index.js.map +1 -0
- package/dist/src/components/gherkin/attachment/useText.d.ts +8 -0
- package/dist/src/components/gherkin/attachment/useText.d.ts.map +1 -0
- package/dist/src/components/gherkin/attachment/useText.js +28 -0
- package/dist/src/components/gherkin/attachment/useText.js.map +1 -0
- package/dist/src/components/gherkin/index.d.ts +1 -1
- package/dist/src/components/gherkin/index.d.ts.map +1 -1
- package/dist/src/components/gherkin/index.js +1 -1
- package/dist/src/components/gherkin/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/src/components/gherkin/Attachment.d.ts +0 -5
- package/dist/src/components/gherkin/Attachment.d.ts.map +0 -1
- package/dist/src/components/gherkin/Attachment.js +0 -125
- package/dist/src/components/gherkin/Attachment.js.map +0 -1
- package/dist/src/components/gherkin/Attachment.module.scss +0 -23
- package/dist/src/components/gherkin/attachmentFilename.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachmentFilename.js.map +0 -1
- /package/dist/src/components/gherkin/{attachmentFilename.d.ts → attachment/attachmentFilename.d.ts} +0 -0
- /package/dist/src/components/gherkin/{attachmentFilename.js → attachment/attachmentFilename.js} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AttachmentClasses, AttachmentProps, DefaultComponent } from '../customise/index.js';
|
|
3
|
-
export declare const DefaultRenderer: DefaultComponent<AttachmentProps, AttachmentClasses>;
|
|
4
|
-
export declare const Attachment: React.FunctionComponent<AttachmentProps>;
|
|
5
|
-
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Attachment.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAGnE,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAEjB,MAAM,uBAAuB,CAAA;AAK9B,eAAO,MAAM,eAAe,EAAE,gBAAgB,CAAC,eAAe,EAAE,iBAAiB,CAiBhF,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAO/D,CAAA"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { AttachmentContentEncoding } from '@cucumber/messages';
|
|
2
|
-
import { faPaperclip } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import Convert from 'ansi-to-html';
|
|
6
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
7
|
-
import { NavigationButton } from '../app/NavigationButton.js';
|
|
8
|
-
import { useCustomRendering, } from '../customise/index.js';
|
|
9
|
-
import defaultStyles from './Attachment.module.scss';
|
|
10
|
-
import { attachmentFilename } from './attachmentFilename.js';
|
|
11
|
-
import { ErrorMessage } from './ErrorMessage.js';
|
|
12
|
-
export const DefaultRenderer = ({ attachment, styles, }) => {
|
|
13
|
-
if (attachment.mediaType.match(/^image\//)) {
|
|
14
|
-
return image(attachment, styles);
|
|
15
|
-
}
|
|
16
|
-
else if (attachment.mediaType.match(/^video\//)) {
|
|
17
|
-
return video(attachment);
|
|
18
|
-
}
|
|
19
|
-
else if (attachment.mediaType == 'text/x.cucumber.log+plain') {
|
|
20
|
-
return text(attachment, prettyANSI, true, styles);
|
|
21
|
-
}
|
|
22
|
-
else if (attachment.mediaType.match(/^text\//)) {
|
|
23
|
-
return text(attachment, (s) => s, false, styles);
|
|
24
|
-
}
|
|
25
|
-
else if (attachment.mediaType.match(/^application\/json/)) {
|
|
26
|
-
return text(attachment, prettyJSON, false, styles);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return React.createElement(Unknown, { attachment: attachment });
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export const Attachment = (props) => {
|
|
33
|
-
const ResolvedRenderer = useCustomRendering('Attachment', defaultStyles, DefaultRenderer);
|
|
34
|
-
return React.createElement(ResolvedRenderer, { ...props });
|
|
35
|
-
};
|
|
36
|
-
const Unknown = ({ attachment }) => {
|
|
37
|
-
const [downloadUrl, setDownloadUrl] = useState();
|
|
38
|
-
useEffect(() => () => cleanupDownloadUrl(downloadUrl), [downloadUrl]);
|
|
39
|
-
const filename = attachmentFilename(attachment);
|
|
40
|
-
const onClick = useCallback(() => {
|
|
41
|
-
let href;
|
|
42
|
-
if (downloadUrl) {
|
|
43
|
-
href = downloadUrl;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
const createdUrl = createDownloadUrl(attachment);
|
|
47
|
-
setDownloadUrl(createdUrl);
|
|
48
|
-
href = createdUrl;
|
|
49
|
-
}
|
|
50
|
-
const anchor = document.createElement('a');
|
|
51
|
-
anchor.href = href;
|
|
52
|
-
anchor.download = filename;
|
|
53
|
-
anchor.click();
|
|
54
|
-
}, [attachment, filename, downloadUrl]);
|
|
55
|
-
return (React.createElement(NavigationButton, { onClick: onClick },
|
|
56
|
-
React.createElement(FontAwesomeIcon, { icon: faPaperclip }),
|
|
57
|
-
"Download ",
|
|
58
|
-
filename));
|
|
59
|
-
};
|
|
60
|
-
function createDownloadUrl(attachment) {
|
|
61
|
-
console.debug('Creating download url');
|
|
62
|
-
const body = attachment.contentEncoding === AttachmentContentEncoding.BASE64
|
|
63
|
-
? base64Decode(attachment.body)
|
|
64
|
-
: attachment.body;
|
|
65
|
-
const bytes = Uint8Array.from(body, (m) => m.codePointAt(0));
|
|
66
|
-
const file = new File([bytes], 'attachment', {
|
|
67
|
-
type: attachment.mediaType,
|
|
68
|
-
});
|
|
69
|
-
return URL.createObjectURL(file);
|
|
70
|
-
}
|
|
71
|
-
function cleanupDownloadUrl(url) {
|
|
72
|
-
if (url) {
|
|
73
|
-
console.debug('Revoking download url');
|
|
74
|
-
URL.revokeObjectURL(url);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function image(attachment, classes) {
|
|
78
|
-
if (attachment.contentEncoding !== 'BASE64') {
|
|
79
|
-
return (React.createElement(ErrorMessage, { message: `Couldn't display ${attachment.mediaType} image because it wasn't base64 encoded` }));
|
|
80
|
-
}
|
|
81
|
-
const attachmentTitle = attachment.fileName ?? 'Attached Image (' + attachment.mediaType + ')';
|
|
82
|
-
return (React.createElement("details", null,
|
|
83
|
-
React.createElement("summary", null, attachmentTitle),
|
|
84
|
-
React.createElement("img", { alt: "Embedded Image", src: `data:${attachment.mediaType};base64,${attachment.body}`, className: classes.image })));
|
|
85
|
-
}
|
|
86
|
-
function video(attachment) {
|
|
87
|
-
const attachmentTitle = attachment.fileName ?? 'Attached Video (' + attachment.mediaType + ')';
|
|
88
|
-
if (attachment.contentEncoding !== 'BASE64') {
|
|
89
|
-
return (React.createElement(ErrorMessage, { message: `Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded` }));
|
|
90
|
-
}
|
|
91
|
-
return (React.createElement("details", null,
|
|
92
|
-
React.createElement("summary", null, attachmentTitle),
|
|
93
|
-
React.createElement("video", { controls: true },
|
|
94
|
-
React.createElement("source", { src: `data:${attachment.mediaType};base64,${attachment.body}` }),
|
|
95
|
-
"Your browser is unable to display video")));
|
|
96
|
-
}
|
|
97
|
-
function base64Decode(body) {
|
|
98
|
-
return atob(body);
|
|
99
|
-
}
|
|
100
|
-
function text(attachment, prettify, dangerouslySetInnerHTML, classes) {
|
|
101
|
-
const body = attachment.contentEncoding === 'IDENTITY' ? attachment.body : base64Decode(attachment.body);
|
|
102
|
-
const attachmentTitle = attachment.fileName ?? 'Attached Text (' + attachment.mediaType + ')';
|
|
103
|
-
if (dangerouslySetInnerHTML) {
|
|
104
|
-
return (React.createElement("details", null,
|
|
105
|
-
React.createElement("summary", null, attachmentTitle),
|
|
106
|
-
React.createElement("pre", { className: classes.text },
|
|
107
|
-
React.createElement("span", { dangerouslySetInnerHTML: { __html: prettify(body) } }))));
|
|
108
|
-
}
|
|
109
|
-
return (React.createElement("details", null,
|
|
110
|
-
React.createElement("summary", null, attachmentTitle),
|
|
111
|
-
React.createElement("pre", { className: classes.text },
|
|
112
|
-
React.createElement("span", null, prettify(body)))));
|
|
113
|
-
}
|
|
114
|
-
function prettyJSON(s) {
|
|
115
|
-
try {
|
|
116
|
-
return JSON.stringify(JSON.parse(s), null, 2);
|
|
117
|
-
}
|
|
118
|
-
catch (ignore) {
|
|
119
|
-
return s;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function prettyANSI(s) {
|
|
123
|
-
return new Convert().toHtml(s);
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=Attachment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Attachment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,WAAW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OAAO,CACL;QACE,qCAAU,eAAe,CAAW;QACpC,6BAAK,SAAS,EAAE,OAAO,CAAC,IAAI;YAC1B,kCAAO,QAAQ,CAAC,IAAI,CAAC,CAAQ,CACzB,CACE,CACX,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,IAAI;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;KAC9C;IAAC,OAAO,MAAM,EAAE;QACf,OAAO,CAAC,CAAA;KACT;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,IAAI,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@import '../../styles/theming';
|
|
2
|
-
|
|
3
|
-
.text {
|
|
4
|
-
white-space: pre-wrap;
|
|
5
|
-
font-family: $monoFamily;
|
|
6
|
-
font-size: 0.875em;
|
|
7
|
-
padding: 0.666em 0.75em;
|
|
8
|
-
border-radius: 0.25em;
|
|
9
|
-
margin: 0;
|
|
10
|
-
overflow-x: auto;
|
|
11
|
-
background-color: $codeBackgroundColor;
|
|
12
|
-
color: $codeTextColor;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.icon {
|
|
16
|
-
margin-right: 0.75em;
|
|
17
|
-
opacity: 0.333;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.image {
|
|
21
|
-
max-width: 100%;
|
|
22
|
-
margin-top: 0.5em;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentFilename.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAG/C,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CASjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAA;KAC3B;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE;QACb,OAAO,cAAc,SAAS,EAAE,CAAA;KACjC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
/package/dist/src/components/gherkin/{attachmentFilename.d.ts → attachment/attachmentFilename.d.ts}
RENAMED
|
File without changes
|
/package/dist/src/components/gherkin/{attachmentFilename.js → attachment/attachmentFilename.js}
RENAMED
|
File without changes
|