@allurereport/plugin-dashboard 3.0.0-beta.24 → 3.0.0-beta.26

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.
@@ -1,3 +1,4 @@
1
+ import { defaultChartsConfig } from "@allurereport/charts-api";
1
2
  import { createBaseUrlScript, createFontLinkTag, createReportDataScript, createScriptTag, createStylesLinkTag, } from "@allurereport/core-api";
2
3
  import { generateCharts } from "@allurereport/web-commons";
3
4
  import Handlebars from "handlebars";
@@ -48,10 +49,7 @@ export const readTemplateManifest = async (singleFileMode) => {
48
49
  return JSON.parse(templateManifest);
49
50
  };
50
51
  export const generateAllCharts = async (writer, store, options, context) => {
51
- const { layout } = options;
52
- if (!layout) {
53
- return;
54
- }
52
+ const { layout = defaultChartsConfig } = options;
55
53
  const generatedChartsData = await generateCharts(layout, store, context.reportName, randomUUID);
56
54
  if (Object.keys(generatedChartsData.general).length > 0) {
57
55
  await writer.writeWidget("charts.json", generatedChartsData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/plugin-dashboard",
3
- "version": "3.0.0-beta.24",
3
+ "version": "3.0.0-beta.26",
4
4
  "description": "Allure Dashboard Plugin – plugin for generating dashboard with a mix of charts",
5
5
  "keywords": [
6
6
  "allure",
@@ -32,11 +32,11 @@
32
32
  "test": "rimraf ./out && vitest run"
33
33
  },
34
34
  "dependencies": {
35
- "@allurereport/charts-api": "3.0.0-beta.24",
36
- "@allurereport/core-api": "3.0.0-beta.24",
37
- "@allurereport/plugin-api": "3.0.0-beta.24",
38
- "@allurereport/web-commons": "3.0.0-beta.24",
39
- "@allurereport/web-dashboard": "3.0.0-beta.24",
35
+ "@allurereport/charts-api": "3.0.0-beta.26",
36
+ "@allurereport/core-api": "3.0.0-beta.26",
37
+ "@allurereport/plugin-api": "3.0.0-beta.26",
38
+ "@allurereport/web-commons": "3.0.0-beta.26",
39
+ "@allurereport/web-dashboard": "3.0.0-beta.26",
40
40
  "d3-shape": "^3.2.0",
41
41
  "handlebars": "^4.7.8"
42
42
  },