executable-stories-formatters 0.11.3 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executable-stories-formatters",
3
- "version": "0.11.3",
3
+ "version": "0.12.0",
4
4
  "description": "Cucumber-compatible report formats (HTML, Markdown, JUnit XML, Cucumber JSON) for executable-stories test results.",
5
5
  "author": "Jag Reehal <jag@jagreehal.com>",
6
6
  "license": "MIT",
@@ -57,18 +57,18 @@
57
57
  "@cucumber/html-formatter": "^23.1.0",
58
58
  "@cucumber/messages": "^32.3.1",
59
59
  "ajv": "^8.20.0",
60
- "yaml": "^2.8.3"
60
+ "yaml": "^2.9.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@faker-js/faker": "^10.4.0",
64
- "@storybook/html": "^10.3.6",
65
- "@storybook/html-vite": "^10.3.6",
66
- "@types/node": "^25.6.0",
67
- "storybook": "^10.3.6",
64
+ "@storybook/html": "^10.4.2",
65
+ "@storybook/html-vite": "^10.4.2",
66
+ "@types/node": "^25.9.2",
67
+ "storybook": "^10.4.2",
68
68
  "tsup": "^8.5.1",
69
- "tsx": "^4.21.0",
69
+ "tsx": "^4.22.4",
70
70
  "typescript": "~6.0.3",
71
- "vitest": "^4.1.5",
71
+ "vitest": "^4.1.8",
72
72
  "vitest-mock-extended": "^4.0.0"
73
73
  },
74
74
  "scripts": {
@@ -405,6 +405,27 @@
405
405
  "required": ["kind", "path", "phase"],
406
406
  "additionalProperties": false
407
407
  },
408
+ {
409
+ "type": "object",
410
+ "description": "Embedded HTML rendered in a sandboxed iframe. Exactly one of path/url/content.",
411
+ "properties": {
412
+ "kind": { "const": "html" },
413
+ "path": { "type": "string", "description": "Local HTML file path (inlined into the report by default)." },
414
+ "url": { "type": "string", "description": "Remote URL rendered via iframe src." },
415
+ "content": { "type": "string", "description": "Inline HTML content rendered via iframe srcdoc." },
416
+ "title": { "type": "string" },
417
+ "height": { "oneOf": [{ "type": "number" }, { "type": "string" }], "description": "Iframe height: number → px, string passed through (e.g. '60vh'). Default 400px." },
418
+ "phase": { "$ref": "#/$defs/DocPhase" },
419
+ "children": { "type": "array", "items": { "$ref": "#/$defs/DocEntry" }, "description": "Nested child doc entries for grouping." }
420
+ },
421
+ "required": ["kind", "phase"],
422
+ "oneOf": [
423
+ { "required": ["path"] },
424
+ { "required": ["url"] },
425
+ { "required": ["content"] }
426
+ ],
427
+ "additionalProperties": false
428
+ },
408
429
  {
409
430
  "type": "object",
410
431
  "description": "Custom documentation entry with arbitrary data.",
@@ -253,6 +253,7 @@
253
253
  { "$ref": "#/$defs/DocMermaid" },
254
254
  { "$ref": "#/$defs/DocScreenshot" },
255
255
  { "$ref": "#/$defs/DocVideo" },
256
+ { "$ref": "#/$defs/DocHtml" },
256
257
  { "$ref": "#/$defs/DocCustom" }
257
258
  ]
258
259
  },
@@ -413,6 +414,29 @@
413
414
  "required": ["kind", "path", "phase"],
414
415
  "additionalProperties": false
415
416
  },
417
+ "DocHtml": {
418
+ "type": "object",
419
+ "properties": {
420
+ "kind": { "const": "html" },
421
+ "path": { "type": "string" },
422
+ "url": { "type": "string" },
423
+ "content": { "type": "string" },
424
+ "title": { "type": "string" },
425
+ "height": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
426
+ "phase": { "$ref": "#/$defs/DocPhase" },
427
+ "children": {
428
+ "type": "array",
429
+ "items": { "$ref": "#/$defs/DocEntry" }
430
+ }
431
+ },
432
+ "required": ["kind", "phase"],
433
+ "oneOf": [
434
+ { "required": ["path"] },
435
+ { "required": ["url"] },
436
+ { "required": ["content"] }
437
+ ],
438
+ "additionalProperties": false
439
+ },
416
440
  "DocCustom": {
417
441
  "type": "object",
418
442
  "properties": {