@cucumber/react-components 20.0.2 → 20.1.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/dist/src/components/app/CICommitLink.js +2 -1
- package/dist/src/components/app/CICommitLink.js.map +1 -1
- package/dist/src/components/app/CIJobLink.d.ts +8 -0
- package/dist/src/components/app/CIJobLink.d.ts.map +1 -0
- package/dist/src/components/app/CIJobLink.js +22 -0
- package/dist/src/components/app/CIJobLink.js.map +1 -0
- package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -1
- package/dist/src/components/app/ExecutionSummary.js +4 -1
- package/dist/src/components/app/ExecutionSummary.js.map +1 -1
- package/dist/src/components/customise/customRendering.d.ts +12 -10
- package/dist/src/components/customise/customRendering.d.ts.map +1 -1
- package/dist/src/components/customise/customRendering.js.map +1 -1
- package/dist/src/components/gherkin/Background.d.ts.map +1 -1
- package/dist/src/components/gherkin/Background.js +6 -6
- package/dist/src/components/gherkin/Background.js.map +1 -1
- package/dist/src/components/gherkin/DataTable.module.scss +1 -37
- package/dist/src/components/gherkin/ExampleDetail.d.ts +8 -0
- package/dist/src/components/gherkin/ExampleDetail.d.ts.map +1 -0
- package/dist/src/components/gherkin/ExampleDetail.js +69 -0
- package/dist/src/components/gherkin/ExampleDetail.js.map +1 -0
- package/dist/src/components/gherkin/ExampleDetail.module.scss +24 -0
- package/dist/src/components/gherkin/ExamplesContext.d.ts +5 -0
- package/dist/src/components/gherkin/ExamplesContext.d.ts.map +1 -0
- package/dist/src/components/gherkin/ExamplesContext.js +8 -0
- package/dist/src/components/gherkin/ExamplesContext.js.map +1 -0
- package/dist/src/components/gherkin/ExamplesTable.d.ts.map +1 -1
- package/dist/src/components/gherkin/ExamplesTable.js +35 -27
- package/dist/src/components/gherkin/ExamplesTable.js.map +1 -1
- package/dist/src/components/gherkin/ExamplesTable.module.scss +14 -0
- package/dist/src/components/gherkin/GherkinStep.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinStep.js +14 -3
- package/dist/src/components/gherkin/GherkinStep.js.map +1 -1
- package/dist/src/components/gherkin/GherkinSteps.d.ts +4 -0
- package/dist/src/components/gherkin/GherkinSteps.d.ts.map +1 -0
- package/dist/src/components/gherkin/GherkinSteps.js +22 -0
- package/dist/src/components/gherkin/GherkinSteps.js.map +1 -0
- package/dist/src/components/gherkin/{HookList.d.ts → HookSteps.d.ts} +2 -2
- package/dist/src/components/gherkin/HookSteps.d.ts.map +1 -0
- package/dist/src/components/gherkin/{HookList.js → HookSteps.js} +4 -4
- package/dist/src/components/gherkin/HookSteps.js.map +1 -0
- package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
- package/dist/src/components/gherkin/Parameter.js +2 -2
- package/dist/src/components/gherkin/Parameter.js.map +1 -1
- package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
- package/dist/src/components/gherkin/Scenario.js +40 -13
- package/dist/src/components/gherkin/Scenario.js.map +1 -1
- package/dist/src/components/gherkin/StepItem.d.ts +0 -1
- package/dist/src/components/gherkin/StepItem.d.ts.map +1 -1
- package/dist/src/components/gherkin/StepItem.js +0 -1
- package/dist/src/components/gherkin/StepItem.js.map +1 -1
- package/dist/src/components/gherkin/StepsList.d.ts +3 -0
- package/dist/src/components/gherkin/StepsList.d.ts.map +1 -0
- package/dist/src/components/gherkin/StepsList.js +13 -0
- package/dist/src/components/gherkin/StepsList.js.map +1 -0
- package/dist/src/components/gherkin/{Background.module.scss → StepsList.module.scss} +0 -0
- package/dist/src/components/gherkin/Tags.js +1 -1
- package/dist/src/components/gherkin/Tags.js.map +1 -1
- package/dist/src/components/gherkin/index.d.ts +2 -2
- package/dist/src/components/gherkin/index.d.ts.map +1 -1
- package/dist/src/components/gherkin/index.js +2 -2
- package/dist/src/components/gherkin/index.js.map +1 -1
- package/dist/src/styles/tables.scss +24 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +30 -28
- package/dist/src/components/gherkin/HookList.d.ts.map +0 -1
- package/dist/src/components/gherkin/HookList.js.map +0 -1
- package/dist/src/components/gherkin/Scenario.module.scss +0 -12
- package/dist/src/components/gherkin/StepList.d.ts +0 -4
- package/dist/src/components/gherkin/StepList.d.ts.map +0 -1
- package/dist/src/components/gherkin/StepList.js +0 -19
- package/dist/src/components/gherkin/StepList.js.map +0 -1
|
@@ -14,11 +14,12 @@ const CICommitLink = ({ ci: ci }) => {
|
|
|
14
14
|
if (commitLink && ((_a = ci.git) === null || _a === void 0 ? void 0 : _a.remote)) {
|
|
15
15
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
16
|
react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faLink }),
|
|
17
|
+
"Git Ref ",
|
|
17
18
|
react_1.default.createElement("a", { href: commitLink }, ci.git.revision.substring(0, 7))));
|
|
18
19
|
}
|
|
19
20
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
21
|
react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faLink }),
|
|
21
|
-
" ", (_b = ci.git) === null || _b === void 0 ? void 0 :
|
|
22
|
+
" Git Ref ", (_b = ci.git) === null || _b === void 0 ? void 0 :
|
|
22
23
|
_b.revision.substring(0, 7)));
|
|
23
24
|
};
|
|
24
25
|
exports.CICommitLink = CICommitLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CICommitLink.js","sourceRoot":"","sources":["../../../../src/components/app/CICommitLink.tsx"],"names":[],"mappings":";;;;;;AACA,4EAA0D;AAC1D,sEAAgE;AAChE,kDAAyB;AAEzB,sEAA6C;AAMtC,MAAM,YAAY,GAAoC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;;IAC1E,MAAM,UAAU,GAAG,IAAA,sBAAY,EAAC,EAAE,CAAC,CAAA;IAEnC,IAAI,UAAU,KAAI,MAAA,EAAE,CAAC,GAAG,0CAAE,MAAM,CAAA,EAAE;QAChC,OAAO,CACL;YACE,8BAAC,mCAAe,IAAC,IAAI,EAAE,6BAAM,GAAI
|
|
1
|
+
{"version":3,"file":"CICommitLink.js","sourceRoot":"","sources":["../../../../src/components/app/CICommitLink.tsx"],"names":[],"mappings":";;;;;;AACA,4EAA0D;AAC1D,sEAAgE;AAChE,kDAAyB;AAEzB,sEAA6C;AAMtC,MAAM,YAAY,GAAoC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;;IAC1E,MAAM,UAAU,GAAG,IAAA,sBAAY,EAAC,EAAE,CAAC,CAAA;IAEnC,IAAI,UAAU,KAAI,MAAA,EAAE,CAAC,GAAG,0CAAE,MAAM,CAAA,EAAE;QAChC,OAAO,CACL;YACE,8BAAC,mCAAe,IAAC,IAAI,EAAE,6BAAM,GAAI;;YACzB,qCAAG,IAAI,EAAE,UAAU,IAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAK,CACjE,CACJ,CAAA;KACF;IACD,OAAO,CACL;QACE,8BAAC,mCAAe,IAAC,IAAI,EAAE,6BAAM,GAAI;qBAAU,MAAA,EAAE,CAAC,GAAG;WAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAC1E,CACJ,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,YAAY,gBAgBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CIJobLink.d.ts","sourceRoot":"","sources":["../../../../src/components/app/CIJobLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAG9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,MAAM;IACd,EAAE,EAAE,QAAQ,CAAC,EAAE,CAAA;CAChB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAUrD,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CIJobLink = void 0;
|
|
7
|
+
const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
|
|
8
|
+
const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
|
+
const CIJobLink = ({ ci: ci }) => {
|
|
11
|
+
if (ci.url && ci.buildNumber) {
|
|
12
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
13
|
+
react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faLink }),
|
|
14
|
+
"Job ",
|
|
15
|
+
react_1.default.createElement("a", { href: ci.url },
|
|
16
|
+
" ",
|
|
17
|
+
ci.buildNumber)));
|
|
18
|
+
}
|
|
19
|
+
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
20
|
+
};
|
|
21
|
+
exports.CIJobLink = CIJobLink;
|
|
22
|
+
//# sourceMappingURL=CIJobLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CIJobLink.js","sourceRoot":"","sources":["../../../../src/components/app/CIJobLink.tsx"],"names":[],"mappings":";;;;;;AACA,4EAA0D;AAC1D,sEAAgE;AAChE,kDAAyB;AAMlB,MAAM,SAAS,GAAoC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IACvE,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE;QAC5B,OAAO,CACL;YACE,8BAAC,mCAAe,IAAC,IAAI,EAAE,6BAAM,GAAI;;YAC7B,qCAAG,IAAI,EAAE,EAAE,CAAC,GAAG;;gBAAI,EAAE,CAAC,WAAW,CAAK,CACzC,CACJ,CAAA;KACF;IACD,OAAO,6DAAK,CAAA;AACd,CAAC,CAAA;AAVY,QAAA,SAAS,aAUrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/app/ExecutionSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EACL,eAAe,EACf,cAAc,EAGf,MAAM,oBAAoB,CAAA;AAI3B,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ExecutionSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/app/ExecutionSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EACL,eAAe,EACf,cAAc,EAGf,MAAM,oBAAoB,CAAA;AAI3B,OAAO,KAAK,MAAM,OAAO,CAAA;AAoBzB,MAAM,WAAW,sBAAsB;IACrC,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAA;IACpE,kBAAkB,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,aAAa,CAAC,EAAE,IAAI,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAA;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CAoG5E,CAAA"}
|
|
@@ -10,6 +10,7 @@ const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
|
|
|
10
10
|
const date_fns_1 = require("date-fns");
|
|
11
11
|
const react_1 = __importDefault(require("react"));
|
|
12
12
|
const CICommitLink_1 = require("./CICommitLink");
|
|
13
|
+
const CIJobLink_1 = require("./CIJobLink");
|
|
13
14
|
const ExecutionSummary_module_scss_1 = __importDefault(require("./ExecutionSummary.module.scss"));
|
|
14
15
|
const CucumberLogo_1 = require("./icons/CucumberLogo");
|
|
15
16
|
const OSIcon_1 = require("./OSIcon");
|
|
@@ -62,7 +63,9 @@ const ExecutionSummary = ({ scenarioCountByStatus, totalScenarioCount, testRunSt
|
|
|
62
63
|
react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faTag }),
|
|
63
64
|
meta.ci.git.tag)),
|
|
64
65
|
react_1.default.createElement("span", { className: ExecutionSummary_module_scss_1.default.gitItem },
|
|
65
|
-
react_1.default.createElement(CICommitLink_1.CICommitLink, { ci: meta.ci }))
|
|
66
|
+
react_1.default.createElement(CICommitLink_1.CICommitLink, { ci: meta.ci })),
|
|
67
|
+
react_1.default.createElement("span", { className: ExecutionSummary_module_scss_1.default.gitItem },
|
|
68
|
+
react_1.default.createElement(CIJobLink_1.CIJobLink, { ci: meta.ci })))) : ('-')),
|
|
66
69
|
react_1.default.createElement("dd", { className: ExecutionSummary_module_scss_1.default.value }, meta.ci.name))),
|
|
67
70
|
meta && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
71
|
react_1.default.createElement("div", { className: ExecutionSummary_module_scss_1.default.item },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionSummary.js","sourceRoot":"","sources":["../../../../src/components/app/ExecutionSummary.tsx"],"names":[],"mappings":";;;;;;AACA,iDAK2B;AAC3B,4EAAuE;AACvE,sEAAgE;AAChE,uCAAmF;AACnF,kDAAyB;AAEzB,iDAA6C;AAC7C,kGAAmD;AACnD,uDAAmD;AACnD,qCAAiC;AACjC,+CAA2C;AAE3C,SAAS,oBAAoB,CAAC,SAAe,EAAE,UAAgB;IAC7D,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,CAAA;IAC5D,0DAA0D;IAC1D,IAAI,SAAS,GAAG,KAAK,EAAE;QACrB,OAAO,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,E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CAAC,KAAK;wBACzB,8BAAC,2BAAY,OAAG,CACb,CACD,CACL,CACJ,CACE,CACD,CACP,CAAA;AACH,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"ExecutionSummary.js","sourceRoot":"","sources":["../../../../src/components/app/ExecutionSummary.tsx"],"names":[],"mappings":";;;;;;AACA,iDAK2B;AAC3B,4EAAuE;AACvE,sEAAgE;AAChE,uCAAmF;AACnF,kDAAyB;AAEzB,iDAA6C;AAC7C,2CAAuC;AACvC,kGAAmD;AACnD,uDAAmD;AACnD,qCAAiC;AACjC,+CAA2C;AAE3C,SAAS,oBAAoB,CAAC,SAAe,EAAE,UAAgB;IAC7D,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,CAAA;IAC5D,0DAA0D;IAC1D,IAAI,SAAS,GAAG,KAAK,EAAE;QACrB,OAAO,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;YACzC,qBAAqB,EAAE,CAAC;SACzB,CAAC,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;KACtC;IACD,OAAO,IAAA,yBAAc,EAAC,IAAA,6BAAkB,EAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;AACtF,CAAC;AAWM,MAAM,gBAAgB,GAAoD,CAAC,EAChF,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,IAAI,GACL,EAAE,EAAE;IACH,MAAM,gBAAgB,GACpB,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;QAC/B,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,+BAAoB,CAAC,MAAM,CAAC,GAAG,kBAAkB,CAAC,GAAG,SAAS,CAAA;IAChG,MAAM,SAAS,GAAG,CAAA,cAAc,aAAd,cAAc,uBAAd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AM,CAAC,MAAM,IAAG,IAAI,CAAC,EAAE,CAAC,IAAI,CAAM;oBACjD,sCAAI,SAAS,EAAE,sCAAM,CAAC,KAAK;wBACzB,8BAAC,eAAM,IAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,GAAI,CAC3B,CACD;gBACN,uCAAK,SAAS,EAAE,sCAAM,CAAC,IAAI;oBACzB,sCAAI,SAAS,EAAE,sCAAM,CAAC,MAAM,IAAG,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAM;oBACnF,sCAAI,SAAS,EAAE,sCAAM,CAAC,KAAK;wBACzB,8BAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,GAAI,CACrC,CACD;gBACN,uCAAK,SAAS,EAAE,sCAAM,CAAC,IAAI;oBACzB,sCAAI,SAAS,EAAE,sCAAM,CAAC,MAAM,IACzB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAC1D;oBACL,sCAAI,SAAS,EAAE,sCAAM,CAAC,KAAK;wBACzB,8BAAC,2BAAY,OAAG,CACb,CACD,CACL,CACJ,CACE,CACD,CACP,CAAA;AACH,CAAC,CAAA;AApGY,QAAA,gBAAgB,oBAoG5B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as messages from '@cucumber/messages';
|
|
2
|
+
import { Pickle, PickleStep } from '@cucumber/messages';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
declare type Styles<C extends string> = Record<C, string>;
|
|
4
5
|
export interface AnchorProps {
|
|
@@ -12,11 +13,10 @@ export declare type AttachmentClasses = Styles<'text' | 'icon' | 'image'>;
|
|
|
12
13
|
export interface BackgroundProps {
|
|
13
14
|
background: messages.Background;
|
|
14
15
|
}
|
|
15
|
-
export declare type BackgroundClasses = Styles<'steps'>;
|
|
16
16
|
export declare type ChildrenProps = Record<string, unknown>;
|
|
17
17
|
export declare type ChildrenClasses = Styles<'children'>;
|
|
18
18
|
export interface DataTableProps {
|
|
19
|
-
dataTable: messages.DataTable;
|
|
19
|
+
dataTable: messages.DataTable | messages.PickleTable;
|
|
20
20
|
}
|
|
21
21
|
export declare type DataTableClasses = Styles<'table'>;
|
|
22
22
|
export interface DescriptionProps {
|
|
@@ -24,7 +24,7 @@ export interface DescriptionProps {
|
|
|
24
24
|
}
|
|
25
25
|
export declare type DescriptionClasses = Styles<'content'>;
|
|
26
26
|
export interface DocStringProps {
|
|
27
|
-
docString: messages.DocString;
|
|
27
|
+
docString: messages.DocString | messages.PickleDocString;
|
|
28
28
|
}
|
|
29
29
|
export declare type DocStringClasses = Styles<'docString'>;
|
|
30
30
|
export interface ErrorMessageProps {
|
|
@@ -38,7 +38,7 @@ export interface ExamplesTableProps {
|
|
|
38
38
|
tableHeader: messages.TableRow;
|
|
39
39
|
tableBody: readonly messages.TableRow[];
|
|
40
40
|
}
|
|
41
|
-
export declare type ExamplesTableClasses = Styles<'examplesTable'
|
|
41
|
+
export declare type ExamplesTableClasses = Styles<'examplesTable'>;
|
|
42
42
|
export interface FeatureProps {
|
|
43
43
|
feature: messages.Feature;
|
|
44
44
|
}
|
|
@@ -48,6 +48,7 @@ export interface GherkinDocumentProps {
|
|
|
48
48
|
}
|
|
49
49
|
export interface GherkinStepProps {
|
|
50
50
|
step: messages.Step;
|
|
51
|
+
pickleStep?: PickleStep;
|
|
51
52
|
hasExamples: boolean;
|
|
52
53
|
}
|
|
53
54
|
export declare type Header = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
@@ -57,6 +58,7 @@ export interface HookStepProps {
|
|
|
57
58
|
export declare type KeywordClasses = Styles<'keyword'>;
|
|
58
59
|
export interface ParameterProps {
|
|
59
60
|
parameterTypeName: string;
|
|
61
|
+
value: string;
|
|
60
62
|
}
|
|
61
63
|
export declare type ParameterClasses = Styles<'parameter'>;
|
|
62
64
|
export interface StatusIconProps {
|
|
@@ -68,14 +70,14 @@ export interface RuleProps {
|
|
|
68
70
|
export interface ScenarioProps {
|
|
69
71
|
scenario: messages.Scenario;
|
|
70
72
|
}
|
|
71
|
-
export declare type ScenarioClasses = Styles<'steps'>;
|
|
72
73
|
export declare type StatusIconClasses = Styles<'icon'>;
|
|
73
|
-
export interface
|
|
74
|
+
export interface GherkinStepsProps {
|
|
74
75
|
steps: readonly messages.Step[];
|
|
76
|
+
pickle?: Pickle;
|
|
75
77
|
hasExamples: boolean;
|
|
76
78
|
}
|
|
77
79
|
export interface TagsProps {
|
|
78
|
-
tags: readonly messages.Tag[];
|
|
80
|
+
tags: readonly messages.Tag[] | readonly messages.PickleTag[];
|
|
79
81
|
}
|
|
80
82
|
export declare type TagsClasses = Styles<'tags' | 'tag'>;
|
|
81
83
|
export interface TitleProps {
|
|
@@ -93,7 +95,7 @@ export declare type CustomisedComponent<Props, Classes = Record<string, string>>
|
|
|
93
95
|
export declare type Customised<Props, Classes = Record<string, string>> = CustomisedComponent<Props, Classes> | Partial<Classes>;
|
|
94
96
|
export interface CustomRenderingSupport {
|
|
95
97
|
Anchor?: Customised<AnchorProps, AnchorClasses>;
|
|
96
|
-
Background?: Customised<BackgroundProps
|
|
98
|
+
Background?: Customised<BackgroundProps>;
|
|
97
99
|
Attachment?: Customised<AttachmentProps, AttachmentClasses>;
|
|
98
100
|
Children?: Customised<ChildrenProps, ChildrenClasses>;
|
|
99
101
|
DataTable?: Customised<DataTableProps, DataTableClasses>;
|
|
@@ -105,13 +107,13 @@ export interface CustomRenderingSupport {
|
|
|
105
107
|
Feature?: Customised<FeatureProps>;
|
|
106
108
|
GherkinDocument?: Customised<GherkinDocumentProps>;
|
|
107
109
|
GherkinStep?: Customised<GherkinStepProps>;
|
|
110
|
+
GherkinSteps?: Customised<GherkinStepsProps>;
|
|
108
111
|
HookStep?: Customised<HookStepProps>;
|
|
109
112
|
Keyword?: Customised<unknown, KeywordClasses>;
|
|
110
113
|
Parameter?: Customised<ParameterProps, ParameterClasses>;
|
|
111
114
|
Rule?: Customised<RuleProps>;
|
|
112
|
-
Scenario?: Customised<ScenarioProps
|
|
115
|
+
Scenario?: Customised<ScenarioProps>;
|
|
113
116
|
StatusIcon?: Customised<StatusIconProps, StatusIconClasses>;
|
|
114
|
-
StepList?: Customised<StepListProps>;
|
|
115
117
|
Tags?: Customised<TagsProps, TagsClasses>;
|
|
116
118
|
Title?: Customised<TitleProps, TitleClasses>;
|
|
117
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customRendering.d.ts","sourceRoot":"","sources":["../../../../src/components/customise/customRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAkBzC,aAAK,MAAM,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;CACX;AAED,oBAAY,aAAa,GAAG,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAA;AAExD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAA;CAChC;AAED,oBAAY,iBAAiB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;AAEjE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAA;CAChC;AAED,oBAAY,
|
|
1
|
+
{"version":3,"file":"customRendering.d.ts","sourceRoot":"","sources":["../../../../src/components/customise/customRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAqB,MAAM,OAAO,CAAA;AAkBzC,aAAK,MAAM,CAAC,CAAC,SA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C,CAAA;CAC7C;AAED,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAAG,MAAM,sBAAsB,CAAA;AAEnE,eAAO,MAAM,sBAAsB,uCAAkD,CAAA;AAErF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/F,SAAS,EAAE,gBAAgB,EAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACrC,eAAe,EAAE,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,GAChD,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAehC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/customRendering.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/customRendering.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAAyC;AAEzC,SAAS,WAAW,CAClB,OAA+B,EAC/B,MAAyD;IAEzD,MAAM,KAAK,GAA4B,EAAE,CAAA;IACzC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE;YAChB,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;SAC1B;QACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE;YACzD,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACzB;IACH,CAAC,CAAC,CAAA;IACF,OAAO,KAAgB,CAAA;AACzB,CAAC;AAwKY,QAAA,sBAAsB,GAAG,eAAK,CAAC,aAAa,CAAyB,EAAE,CAAC,CAAA;AAErF,SAAgB,kBAAkB,CAChC,SAA2B,EAC3B,aAAqC,EACrC,eAAiD;IAEjD,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,8BAAsB,CAAC,CAAA;IAClE,aAAa;IACb,MAAM,cAAc,GAAG,WAAW,CAAU,aAAa,EAAE,MAAM,CAAC,CAAA;IAClE,MAAM,qBAAqB,GAAmC,CAAC,KAAK,EAAE,EAAE;QACtE,OAAO,8BAAC,eAAe,oBAAK,KAAK,IAAE,MAAM,EAAE,cAAc,IAAI,CAAA;IAC/D,CAAC,CAAA;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;QAChC,MAAM,oBAAoB,GAAmC,CAAC,KAAK,EAAE,EAAE;YACrE,aAAa;YACb,OAAO,8BAAC,MAAM,oBAAK,KAAK,IAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,IAAI,CAAA;QAC9F,CAAC,CAAA;QACD,OAAO,oBAAoB,CAAA;KAC5B;IACD,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAnBD,gDAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,
|
|
1
|
+
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAwC,MAAM,cAAc,CAAA;AAsBpF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAG/D,CAAA"}
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Background = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const customise_1 = require("../customise");
|
|
9
|
-
const Background_module_scss_1 = __importDefault(require("./Background.module.scss"));
|
|
10
9
|
const Description_1 = require("./Description");
|
|
10
|
+
const GherkinSteps_1 = require("./GherkinSteps");
|
|
11
11
|
const Keyword_1 = require("./Keyword");
|
|
12
|
-
const
|
|
12
|
+
const StepsList_1 = require("./StepsList");
|
|
13
13
|
const Title_1 = require("./Title");
|
|
14
|
-
const DefaultRenderer = ({ background
|
|
14
|
+
const DefaultRenderer = ({ background }) => {
|
|
15
15
|
return (react_1.default.createElement("section", null,
|
|
16
16
|
react_1.default.createElement(Title_1.Title, { header: "h2", id: background.id },
|
|
17
17
|
react_1.default.createElement(Keyword_1.Keyword, null,
|
|
@@ -19,11 +19,11 @@ const DefaultRenderer = ({ background, styles, }) => {
|
|
|
19
19
|
":"),
|
|
20
20
|
react_1.default.createElement("span", null, background.name)),
|
|
21
21
|
react_1.default.createElement(Description_1.Description, { description: background.description }),
|
|
22
|
-
react_1.default.createElement(
|
|
23
|
-
react_1.default.createElement(
|
|
22
|
+
react_1.default.createElement(StepsList_1.StepsList, null,
|
|
23
|
+
react_1.default.createElement(GherkinSteps_1.GherkinSteps, { steps: background.steps || [], hasExamples: false }))));
|
|
24
24
|
};
|
|
25
25
|
const Background = (props) => {
|
|
26
|
-
const ResolvedRenderer = (0, customise_1.useCustomRendering)('Background',
|
|
26
|
+
const ResolvedRenderer = (0, customise_1.useCustomRendering)('Background', {}, DefaultRenderer);
|
|
27
27
|
return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
|
|
28
28
|
};
|
|
29
29
|
exports.Background = Background;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,
|
|
1
|
+
{"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAAoF;AACpF,+CAA2C;AAC3C,iDAA6C;AAC7C,uCAAmC;AACnC,2CAAuC;AACvC,mCAA+B;AAE/B,MAAM,eAAe,GAAsC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL;QACE,8BAAC,aAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,UAAU,CAAC,EAAE;YAClC,8BAAC,iBAAO;gBAAE,UAAU,CAAC,OAAO;oBAAY;YACxC,4CAAO,UAAU,CAAC,IAAI,CAAQ,CACxB;QACR,8BAAC,yBAAW,IAAC,WAAW,EAAE,UAAU,CAAC,WAAW,GAAI;QACpD,8BAAC,qBAAS;YACR,8BAAC,2BAAY,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,EAAE,WAAW,EAAE,KAAK,GAAI,CACzD,CACJ,CACX,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,UAAU,GAA6C,CAAC,KAAK,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EAAkB,YAAY,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC/F,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAHY,QAAA,UAAU,cAGtB"}
|
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
@import '../../styles/
|
|
2
|
-
|
|
3
|
-
@mixin cucumber-table-style {
|
|
4
|
-
border-collapse: collapse;
|
|
5
|
-
margin: 0;
|
|
6
|
-
|
|
7
|
-
thead tr {
|
|
8
|
-
border-bottom: 6px solid transparent;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
tr + tr {
|
|
12
|
-
border-top: 6px solid transparent;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
th, td {
|
|
16
|
-
padding: 0.4em 0.6em;
|
|
17
|
-
border-width: 2px;
|
|
18
|
-
border-style: solid;
|
|
19
|
-
border-top: none;
|
|
20
|
-
border-bottom: none;
|
|
21
|
-
border-color: $keywordColor;
|
|
22
|
-
color: $parameterColor;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
@import '../../styles/tables';
|
|
25
2
|
|
|
26
3
|
.table {
|
|
27
4
|
@include cucumber-table-style;
|
|
28
5
|
}
|
|
29
|
-
|
|
30
|
-
.examplesTable {
|
|
31
|
-
@include cucumber-table-style;
|
|
32
|
-
|
|
33
|
-
th:first-child, td:first-child {
|
|
34
|
-
border-left: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.detailRow.detailRow {
|
|
39
|
-
border-top: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Scenario } from '@cucumber/messages';
|
|
2
|
+
import { VoidFunctionComponent } from 'react';
|
|
3
|
+
export declare const ExampleDetail: VoidFunctionComponent<{
|
|
4
|
+
scenario: Scenario;
|
|
5
|
+
pickleId: string;
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=ExampleDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleDetail.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExampleDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAc,EAAc,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAchE,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAAC;IAChD,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CA4BA,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ExampleDetail = void 0;
|
|
30
|
+
const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
|
|
31
|
+
const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
|
|
32
|
+
const react_1 = __importStar(require("react"));
|
|
33
|
+
const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
|
|
34
|
+
const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
|
|
35
|
+
const HighLight_1 = require("../app/HighLight");
|
|
36
|
+
const Description_1 = require("./Description");
|
|
37
|
+
const ExampleDetail_module_scss_1 = __importDefault(require("./ExampleDetail.module.scss"));
|
|
38
|
+
const GherkinSteps_1 = require("./GherkinSteps");
|
|
39
|
+
const HookSteps_1 = require("./HookSteps");
|
|
40
|
+
const Keyword_1 = require("./Keyword");
|
|
41
|
+
const StepsList_1 = require("./StepsList");
|
|
42
|
+
const Tags_1 = require("./Tags");
|
|
43
|
+
const Title_1 = require("./Title");
|
|
44
|
+
const ExampleDetail = ({ scenario, pickleId, onBack }) => {
|
|
45
|
+
const gherkinQuery = (0, react_1.useContext)(GherkinQueryContext_1.default);
|
|
46
|
+
const cucumberQuery = (0, react_1.useContext)(CucumberQueryContext_1.default);
|
|
47
|
+
const pickle = gherkinQuery.getPickles().find((item) => item.id === pickleId);
|
|
48
|
+
const beforeHooks = cucumberQuery.getBeforeHookSteps(pickleId);
|
|
49
|
+
const afterHooks = cucumberQuery.getAfterHookSteps(pickleId);
|
|
50
|
+
const examplesCount = scenario.examples.flatMap((examples) => examples.tableBody).length;
|
|
51
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
52
|
+
react_1.default.createElement("button", { className: ExampleDetail_module_scss_1.default.backButton, onClick: onBack },
|
|
53
|
+
react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faArrowLeft }),
|
|
54
|
+
"Back to outline and all ",
|
|
55
|
+
examplesCount,
|
|
56
|
+
" examples"),
|
|
57
|
+
react_1.default.createElement("section", null,
|
|
58
|
+
react_1.default.createElement(Tags_1.Tags, { tags: pickle.tags }),
|
|
59
|
+
react_1.default.createElement(Title_1.Title, { header: "h2", id: scenario.id },
|
|
60
|
+
react_1.default.createElement(Keyword_1.Keyword, null, "Example:"),
|
|
61
|
+
react_1.default.createElement(HighLight_1.HighLight, { text: pickle.name })),
|
|
62
|
+
react_1.default.createElement(Description_1.Description, { description: scenario.description }),
|
|
63
|
+
react_1.default.createElement(StepsList_1.StepsList, null,
|
|
64
|
+
react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: beforeHooks }),
|
|
65
|
+
react_1.default.createElement(GherkinSteps_1.GherkinSteps, { steps: scenario.steps || [], pickle: pickle, hasExamples: false }),
|
|
66
|
+
react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: afterHooks })))));
|
|
67
|
+
};
|
|
68
|
+
exports.ExampleDetail = ExampleDetail;
|
|
69
|
+
//# sourceMappingURL=ExampleDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleDetail.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExampleDetail.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4EAA+D;AAC/D,sEAAgE;AAChE,+CAAgE;AAEhE,sFAA6D;AAC7D,oFAA2D;AAC3D,gDAA4C;AAC5C,+CAA2C;AAC3C,4FAAgD;AAChD,iDAA6C;AAC7C,2CAAuC;AACvC,uCAAmC;AACnC,2CAAuC;AACvC,iCAA6B;AAC7B,mCAA+B;AAExB,MAAM,aAAa,GAIrB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IACtC,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,6BAAmB,CAAC,CAAA;IACpD,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAA;IACtD,MAAM,MAAM,GAAW,YAAY,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,QAAQ,CAAW,CAAA;IAC/F,MAAM,WAAW,GAAG,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IAC9D,MAAM,UAAU,GAAG,aAAa,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IAC5D,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,MAAM,CAAA;IACxF,OAAO,CACL;QACE,0CAAQ,SAAS,EAAE,mCAAM,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM;YACnD,8BAAC,mCAAe,IAAC,IAAI,EAAE,kCAAW,GAAI;;YACb,aAAa;wBAC/B;QACT;YACE,8BAAC,WAAI,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAI;YAC3B,8BAAC,aAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE;gBAChC,8BAAC,iBAAO,mBAAmB;gBAC3B,8BAAC,qBAAS,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAI,CAC1B;YACR,8BAAC,yBAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI;YAClD,8BAAC,qBAAS;gBACR,8BAAC,qBAAS,IAAC,SAAS,EAAE,WAAW,GAAI;gBACrC,8BAAC,2BAAY,IAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,GAAI;gBACjF,8BAAC,qBAAS,IAAC,SAAS,EAAE,UAAU,GAAI,CAC1B,CACJ,CACT,CACJ,CAAA;AACH,CAAC,CAAA;AAhCY,QAAA,aAAa,iBAgCzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import '../../styles/theming';
|
|
2
|
+
|
|
3
|
+
.backButton {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 4px;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
color: $anchorColor;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
font-size: inherit;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 0;
|
|
13
|
+
margin: 0 0 0.5em 0;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
&:hover,
|
|
17
|
+
&:focus {
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
svg {
|
|
22
|
+
transform: rotate(45deg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExamplesContext.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,eAAe;oCACM,MAAM,KAAK,IAAI;EAG/C,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExamplesContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
exports.ExamplesContext = (0, react_1.createContext)({
|
|
6
|
+
setSelectedExample: () => undefined,
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=ExamplesContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExamplesContext.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesContext.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAExB,QAAA,eAAe,GAAG,IAAA,qBAAa,EAEzC;IACD,kBAAkB,EAAE,GAAG,EAAE,CAAC,SAAS;CACpC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplesTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ExamplesTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,EAGL,kBAAkB,EAEnB,MAAM,cAAc,CAAA;AA8BrB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAOrE,CAAA"}
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.ExamplesTable = void 0;
|
|
7
30
|
const messages_1 = require("@cucumber/messages");
|
|
8
|
-
const react_1 =
|
|
31
|
+
const react_1 = __importStar(require("react"));
|
|
9
32
|
const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
|
|
10
33
|
const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
|
|
11
34
|
const UriContext_1 = __importDefault(require("../../UriContext"));
|
|
12
35
|
const customise_1 = require("../customise");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const ErrorMessage_1 = require("./ErrorMessage");
|
|
36
|
+
const ExamplesContext_1 = require("./ExamplesContext");
|
|
37
|
+
const ExamplesTable_module_scss_1 = __importDefault(require("./ExamplesTable.module.scss"));
|
|
16
38
|
const isNumber_1 = __importDefault(require("./isNumber"));
|
|
17
39
|
const StatusIcon_1 = require("./StatusIcon");
|
|
18
40
|
const DefaultRenderer = ({ tableHeader, tableBody, styles, }) => {
|
|
@@ -21,38 +43,24 @@ const DefaultRenderer = ({ tableHeader, tableBody, styles, }) => {
|
|
|
21
43
|
react_1.default.createElement("tr", null,
|
|
22
44
|
react_1.default.createElement("th", null, "\u00A0"),
|
|
23
45
|
tableHeader.cells.map((cell, j) => (react_1.default.createElement("th", { key: j }, cell.value))))),
|
|
24
|
-
react_1.default.createElement(
|
|
46
|
+
react_1.default.createElement("tbody", null, tableBody.map((row, i) => (react_1.default.createElement(ExampleRow, { row: row, key: i }))))));
|
|
25
47
|
};
|
|
26
48
|
const ExamplesTable = (props) => {
|
|
27
|
-
const ResolvedRenderer = (0, customise_1.useCustomRendering)('ExamplesTable',
|
|
49
|
+
const ResolvedRenderer = (0, customise_1.useCustomRendering)('ExamplesTable', ExamplesTable_module_scss_1.default, DefaultRenderer);
|
|
28
50
|
return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
|
|
29
51
|
};
|
|
30
52
|
exports.ExamplesTable = ExamplesTable;
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const cucumberQuery = react_1.default.useContext(CucumberQueryContext_1.default);
|
|
37
|
-
const uri = react_1.default.useContext(UriContext_1.default);
|
|
53
|
+
const ExampleRow = ({ row }) => {
|
|
54
|
+
const gherkinQuery = (0, react_1.useContext)(GherkinQueryContext_1.default);
|
|
55
|
+
const cucumberQuery = (0, react_1.useContext)(CucumberQueryContext_1.default);
|
|
56
|
+
const uri = (0, react_1.useContext)(UriContext_1.default);
|
|
57
|
+
const { setSelectedExample } = (0, react_1.useContext)(ExamplesContext_1.ExamplesContext);
|
|
38
58
|
const pickleIds = uri ? gherkinQuery.getPickleIds(uri, row.id) : [];
|
|
39
59
|
const testStepResult = (0, messages_1.getWorstTestStepResult)(cucumberQuery.getPickleTestStepResults(pickleIds));
|
|
40
|
-
const pickleStepIds = gherkinQuery.getPickleStepIds(row.id);
|
|
41
|
-
const attachments = cucumberQuery.getPickleStepAttachments(pickleStepIds);
|
|
42
60
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
43
|
-
react_1.default.createElement("tr",
|
|
61
|
+
react_1.default.createElement("tr", { onClick: () => setSelectedExample(pickleIds[0]) },
|
|
44
62
|
react_1.default.createElement("td", null,
|
|
45
63
|
react_1.default.createElement(StatusIcon_1.StatusIcon, { status: testStepResult.status })),
|
|
46
|
-
row.cells.map((cell, j) => (react_1.default.createElement("td", { key: j, style: { textAlign: (0, isNumber_1.default)(cell.value) ? 'right' : 'left' } }, cell.value))))
|
|
47
|
-
react_1.default.createElement(AttachmentAndErrorRow, { key: "row-error", className: detailClass, attachments: attachments, errorMessage: testStepResult.message, colSpan: row.cells.length })));
|
|
48
|
-
};
|
|
49
|
-
const AttachmentAndErrorRow = ({ attachments, errorMessage, colSpan, className, }) => {
|
|
50
|
-
if (!errorMessage && attachments.length === 0)
|
|
51
|
-
return null;
|
|
52
|
-
return (react_1.default.createElement("tr", { className: className },
|
|
53
|
-
react_1.default.createElement("td", null, "\u00A0"),
|
|
54
|
-
react_1.default.createElement("td", { colSpan: colSpan },
|
|
55
|
-
errorMessage && react_1.default.createElement(ErrorMessage_1.ErrorMessage, { message: errorMessage }),
|
|
56
|
-
attachments.map((attachment, i) => (react_1.default.createElement(Attachment_1.Attachment, { key: i, attachment: attachment }))))));
|
|
64
|
+
row.cells.map((cell, j) => (react_1.default.createElement("td", { key: j, style: { textAlign: (0, isNumber_1.default)(cell.value) ? 'right' : 'left' } }, cell.value))))));
|
|
57
65
|
};
|
|
58
66
|
//# sourceMappingURL=ExamplesTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplesTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExamplesTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAA2D;AAC3D,+CAAyC;AAEzC,sFAA6D;AAC7D,oFAA2D;AAC3D,kEAAyC;AACzC,4CAKqB;AACrB,uDAAmD;AACnD,4FAAuD;AACvD,0DAAiC;AACjC,6CAAyC;AAEzC,MAAM,eAAe,GAA+D,CAAC,EACnF,WAAW,EACX,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,yCAAO,SAAS,EAAE,MAAM,CAAC,aAAa;QACpC;YACE;gBACE,mDAAe;gBACd,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,sCAAI,GAAG,EAAE,CAAC,IAAG,IAAI,CAAC,KAAK,CAAM,CAC9B,CAAC,CACC,CACC;QACR,6CACG,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,8BAAC,UAAU,IAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAI,CACjC,CAAC,CACI,CACF,CACT,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,aAAa,GAAgD,CAAC,KAAK,EAAE,EAAE;IAClF,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,eAAe,EACf,mCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA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
{"version":3,"file":"GherkinStep.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAoB,gBAAgB,EAAsB,MAAM,cAAc,CAAA;AA+GrF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAGjE,CAAA"}
|