@allurereport/plugin-dashboard 3.3.0 → 3.4.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.
Files changed (2) hide show
  1. package/dist/generators.js +6 -6
  2. package/package.json +21 -32
@@ -1,11 +1,11 @@
1
- import { defaultChartsConfig } from "@allurereport/charts-api";
2
- import { createBaseUrlScript, createFontLinkTag, createReportDataScript, createScriptTag, createStylesLinkTag, } from "@allurereport/core-api";
3
- import { generateCharts } from "@allurereport/web-commons";
4
- import Handlebars from "handlebars";
5
1
  import { randomUUID } from "node:crypto";
6
2
  import { readFile } from "node:fs/promises";
7
3
  import { createRequire } from "node:module";
8
4
  import { basename, join } from "node:path";
5
+ import { defaultChartsConfig } from "@allurereport/charts-api";
6
+ import { createBaseUrlScript, createFontLinkTag, createReportDataScript, stringifyForInlineScript, createScriptTag, createStylesLinkTag, } from "@allurereport/core-api";
7
+ import { generateCharts } from "@allurereport/web-commons";
8
+ import Handlebars from "handlebars";
9
9
  const require = createRequire(import.meta.url);
10
10
  const template = `<!DOCTYPE html>
11
11
  <html dir="ltr" lang="en">
@@ -56,7 +56,7 @@ export const generateAllCharts = async (writer, store, options, context, filter)
56
56
  }
57
57
  };
58
58
  export const generateEnvirontmentsList = async (writer, store) => {
59
- const environments = await store.allEnvironments();
59
+ const environments = await store.allEnvironmentIdentities();
60
60
  await writer.writeWidget("environments.json", environments);
61
61
  };
62
62
  export const generateStaticFiles = async (payload) => {
@@ -105,7 +105,7 @@ export const generateStaticFiles = async (payload) => {
105
105
  headTags: headTags.join("\n"),
106
106
  bodyTags: bodyTags.join("\n"),
107
107
  reportFilesScript: createReportDataScript(reportDataFiles),
108
- reportOptions: JSON.stringify(reportOptions),
108
+ reportOptions: stringifyForInlineScript(reportOptions),
109
109
  analyticsEnable: true,
110
110
  allureVersion,
111
111
  reportUuid,
package/package.json CHANGED
@@ -1,61 +1,50 @@
1
1
  {
2
2
  "name": "@allurereport/plugin-dashboard",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Allure Dashboard Plugin – plugin for generating dashboard with a mix of charts",
5
5
  "keywords": [
6
6
  "allure",
7
- "testing",
8
- "report",
9
- "plugin",
10
- "dashboard",
11
7
  "charts",
8
+ "dashboard",
9
+ "plugin",
10
+ "report",
11
+ "testing",
12
12
  "trends"
13
13
  ],
14
- "repository": "https://github.com/allure-framework/allure3",
15
14
  "license": "Apache-2.0",
16
15
  "author": "Qameta Software",
16
+ "repository": "https://github.com/allure-framework/allure3",
17
+ "files": [
18
+ "./dist"
19
+ ],
17
20
  "type": "module",
18
- "exports": {
19
- ".": "./dist/index.js"
20
- },
21
21
  "main": "./dist/index.js",
22
22
  "module": "./dist/index.js",
23
23
  "types": "./dist/index.d.ts",
24
- "files": [
25
- "./dist"
26
- ],
24
+ "exports": {
25
+ ".": "./dist/index.js"
26
+ },
27
27
  "scripts": {
28
28
  "build": "run clean && tsc --project ./tsconfig.json",
29
29
  "clean": "rimraf ./dist",
30
- "eslint": "eslint ./src/**/*.{js,jsx,ts,tsx}",
31
- "eslint:format": "eslint --fix ./src/**/*.{js,jsx,ts,tsx}",
32
- "test": "rimraf ./out && vitest run"
30
+ "test": "rimraf ./out && vitest run",
31
+ "lint": "oxlint --import-plugin src test features stories",
32
+ "lint:fix": "oxlint --import-plugin --fix src test features stories"
33
33
  },
34
34
  "dependencies": {
35
- "@allurereport/charts-api": "3.3.0",
36
- "@allurereport/core-api": "3.3.0",
37
- "@allurereport/plugin-api": "3.3.0",
38
- "@allurereport/web-commons": "3.3.0",
39
- "@allurereport/web-dashboard": "3.3.0",
35
+ "@allurereport/charts-api": "3.4.0",
36
+ "@allurereport/core-api": "3.4.0",
37
+ "@allurereport/plugin-api": "3.4.0",
38
+ "@allurereport/web-commons": "3.4.0",
39
+ "@allurereport/web-dashboard": "3.4.0",
40
40
  "d3-shape": "^3.2.0",
41
- "handlebars": "^4.7.8"
41
+ "handlebars": "^4.7.9"
42
42
  },
43
43
  "devDependencies": {
44
- "@stylistic/eslint-plugin": "^2.6.1",
45
44
  "@types/d3-shape": "^3.1.6",
46
- "@types/eslint": "^8.56.11",
47
45
  "@types/node": "^20.17.9",
48
- "@typescript-eslint/eslint-plugin": "^8.0.0",
49
- "@typescript-eslint/parser": "^8.0.0",
50
46
  "@vitest/runner": "^2.1.9",
51
47
  "allure-vitest": "^3.3.3",
52
- "eslint": "^8.57.0",
53
- "eslint-config-prettier": "^9.1.0",
54
- "eslint-plugin-import": "^2.29.1",
55
- "eslint-plugin-jsdoc": "^50.0.0",
56
- "eslint-plugin-n": "^17.10.1",
57
- "eslint-plugin-no-null": "^1.0.2",
58
- "eslint-plugin-prefer-arrow": "^1.2.3",
59
48
  "rimraf": "^6.0.1",
60
49
  "typescript": "^5.6.3",
61
50
  "vitest": "^2.1.9"