@allurereport/core-api 3.14.2 → 3.15.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/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export type DefaultLabelsConfig = Record<string, string | string[]>;
2
+ export type KnownIssuesPathConfig = string;
2
3
  export type AllureServiceConfig = {
3
4
  accessToken?: string;
4
5
  private?: boolean;
package/dist/known.d.ts CHANGED
@@ -1,8 +1,20 @@
1
1
  import type { TestLink } from "./metadata.js";
2
2
  import type { TestError } from "./model.js";
3
- export interface KnownTestFailure {
3
+ export interface KnownIssueDecision {
4
+ reason: string;
5
+ links?: TestLink[];
6
+ }
7
+ export interface KnownTestFailure extends KnownIssueDecision {
4
8
  historyId: string;
5
- issues?: TestLink[];
6
- comment?: string;
7
9
  error?: TestError;
8
10
  }
11
+ export interface KnownIssueDescriptor {
12
+ messageRegexp?: string;
13
+ testCaseId?: string;
14
+ retryHash?: string;
15
+ environmentId?: string;
16
+ decision: KnownIssueDecision;
17
+ }
18
+ export interface KnownIssuesConfig {
19
+ rules: KnownIssueDescriptor[];
20
+ }
package/dist/model.d.ts CHANGED
@@ -123,6 +123,10 @@ export type AttachmentLinkInvalid = Omit<AttachmentLinkExpected, "originalFileNa
123
123
  ext: "";
124
124
  };
125
125
  export type AttachmentLink = AttachmentLinkFile | AttachmentLinkExpected | AttachmentLinkLinked | AttachmentLinkInvalid;
126
+ export type GlobalAttachmentLink = AttachmentLink & {
127
+ name: string;
128
+ environment?: string;
129
+ };
126
130
  export interface AttachmentTestStepResult {
127
131
  link: AttachmentLinkExpected | AttachmentLinkLinked | AttachmentLinkInvalid;
128
132
  type: "attachment";
package/dist/static.d.ts CHANGED
@@ -5,6 +5,10 @@ export declare const createScriptTag: (src: string, options?: {
5
5
  export declare const createStylesLinkTag: (src: string) => string;
6
6
  export declare const createFontLinkTag: (src: string) => string;
7
7
  export declare const createFaviconLinkTag: (src: string) => string;
8
+ export declare const appLoaderFaviconDataUri = "data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.09.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.981-4.61-2.587-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23a)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.392 3.6a3.6 3.6 0 0 1 3.6-3.6c4.41 0 8.401 1.807 11.296 4.662a3.6 3.6 0 1 1-5.056 5.126C20.602 8.18 18.398 7.2 15.992 7.2a3.6 3.6 0 0 1-3.6-3.6Z' fill='url(%23b)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 15.992C0 7.157 7.157 0 15.992 0a3.6 3.6 0 0 1 0 7.2A8.789 8.789 0 0 0 7.2 15.992c0 2.406.981 4.61 2.588 6.24a3.6 3.6 0 0 1-5.126 5.056C1.807 24.393 0 20.402 0 15.992Z' fill='url(%23c)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.661 22.232a3.6 3.6 0 0 1 5.091-.035c1.63 1.606 3.834 2.587 6.24 2.587a3.6 3.6 0 0 1 0 7.2c-4.41 0-8.401-1.807-11.295-4.661a3.6 3.6 0 0 1-.036-5.091Z' fill='url(%23d)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.384 12.392a3.6 3.6 0 0 1 3.6 3.6c0 8.835-7.157 15.992-15.992 15.992a3.6 3.6 0 0 1 0-7.2 8.789 8.789 0 0 0 8.792-8.792 3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23e)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.385 12.392a3.6 3.6 0 0 1 3.6 3.6v12.392a3.6 3.6 0 0 1-7.2 0V15.992a3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23f)'/%3E%3Cg clip-path='url(%23g)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.091.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.982-4.61-2.588-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23h)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='a' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='26.8' y1='9.4' x2='17.8' y2='3.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EF4444'/%3E%3Cstop offset='1' stop-color='%23DC2626'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='3.6' y1='14' x2='5.4' y2='24.8' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2322C55E'/%3E%3Cstop offset='1' stop-color='%2315803D'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='4.8' y1='22.2' x2='14.4' y2='29.2' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2394A3B8'/%3E%3Cstop offset='.958' stop-color='%2364748B'/%3E%3Cstop offset='1' stop-color='%2364748B'/%3E%3C/linearGradient%3E%3ClinearGradient id='e' x1='28.4' y1='22.173' x2='22.188' y2='28.384' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23D97706'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='29.2' y1='54.4' x2='30.626' y2='54.256' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23FBBF24'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3CclipPath id='g'%3E%3Cpath fill='%23fff' transform='translate(24.8 12)' d='M0 0h7.2v8H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E";
9
+ export declare const appLoaderLogoSvg = "<svg class=\"allure-app-loader__logo\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.232 4.662a3.6 3.6 0 0 1 5.09.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.981-4.61-2.587-6.24a3.6 3.6 0 0 1 .035-5.09Z\" fill=\"url(#allure-loader-a)\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.392 3.6a3.6 3.6 0 0 1 3.6-3.6c4.41 0 8.401 1.807 11.296 4.662a3.6 3.6 0 1 1-5.056 5.126C20.602 8.18 18.398 7.2 15.992 7.2a3.6 3.6 0 0 1-3.6-3.6Z\" fill=\"url(#allure-loader-b)\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 15.992C0 7.157 7.157 0 15.992 0a3.6 3.6 0 0 1 0 7.2A8.789 8.789 0 0 0 7.2 15.992c0 2.406.981 4.61 2.588 6.24a3.6 3.6 0 0 1-5.126 5.056C1.807 24.393 0 20.402 0 15.992Z\" fill=\"url(#allure-loader-c)\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.661 22.232a3.6 3.6 0 0 1 5.091-.035c1.63 1.606 3.834 2.587 6.24 2.587a3.6 3.6 0 0 1 0 7.2c-4.41 0-8.401-1.807-11.295-4.661a3.6 3.6 0 0 1-.036-5.091Z\" fill=\"url(#allure-loader-d)\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M28.384 12.392a3.6 3.6 0 0 1 3.6 3.6c0 8.835-7.157 15.992-15.992 15.992a3.6 3.6 0 0 1 0-7.2 8.789 8.789 0 0 0 8.792-8.792 3.6 3.6 0 0 1 3.6-3.6Z\" fill=\"url(#allure-loader-e)\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M28.385 12.392a3.6 3.6 0 0 1 3.6 3.6v12.392a3.6 3.6 0 0 1-7.2 0V15.992a3.6 3.6 0 0 1 3.6-3.6Z\" fill=\"url(#allure-loader-f)\"/><g clip-path=\"url(#allure-loader-g)\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.232 4.662a3.6 3.6 0 0 1 5.091.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.982-4.61-2.588-6.24a3.6 3.6 0 0 1 .035-5.09Z\" fill=\"url(#allure-loader-h)\"/></g><defs><linearGradient id=\"allure-loader-a\" x1=\"26.4\" y1=\"9.6\" x2=\"28.8\" y2=\"15\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#7E22CE\"/><stop offset=\"1\" stop-color=\"#8B5CF6\"/></linearGradient><linearGradient id=\"allure-loader-b\" x1=\"26.8\" y1=\"9.4\" x2=\"17.8\" y2=\"3.6\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#EF4444\"/><stop offset=\"1\" stop-color=\"#DC2626\"/></linearGradient><linearGradient id=\"allure-loader-c\" x1=\"3.6\" y1=\"14\" x2=\"5.4\" y2=\"24.8\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#22C55E\"/><stop offset=\"1\" stop-color=\"#15803D\"/></linearGradient><linearGradient id=\"allure-loader-d\" x1=\"4.8\" y1=\"22.2\" x2=\"14.4\" y2=\"29.2\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#94A3B8\"/><stop offset=\".958\" stop-color=\"#64748B\"/><stop offset=\"1\" stop-color=\"#64748B\"/></linearGradient><linearGradient id=\"allure-loader-e\" x1=\"28.4\" y1=\"22.173\" x2=\"22.188\" y2=\"28.384\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#D97706\"/><stop offset=\"1\" stop-color=\"#FBBF24\"/></linearGradient><linearGradient id=\"allure-loader-f\" x1=\"29.2\" y1=\"54.4\" x2=\"30.626\" y2=\"54.256\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#FBBF24\"/><stop offset=\"1\" stop-color=\"#FBBF24\"/></linearGradient><linearGradient id=\"allure-loader-h\" x1=\"26.4\" y1=\"9.6\" x2=\"28.8\" y2=\"15\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#7E22CE\"/><stop offset=\"1\" stop-color=\"#8B5CF6\"/></linearGradient><clipPath id=\"allure-loader-g\"><path fill=\"#fff\" transform=\"translate(24.8 12)\" d=\"M0 0h7.2v8H0z\"/></clipPath></defs></svg>";
10
+ export declare const appLoaderStyles = "\n <style>\n .allure-app-loader {\n position: fixed;\n inset: 0;\n z-index: 2147483647;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 24px;\n background: #f7f8fb;\n color: #22252a;\n font: 14px/20px Arial, Helvetica, sans-serif;\n }\n\n .allure-app-loader__spinner {\n width: 24px;\n height: 24px;\n border: 2px solid rgba(34, 37, 42, 0.16);\n border-bottom-color: #3d7eff;\n border-radius: 50%;\n animation: allure-app-loader-spin 0.7s linear infinite;\n }\n\n .allure-app-loader__logo {\n width: 40px;\n height: 40px;\n }\n\n @media (prefers-color-scheme: dark) {\n .allure-app-loader {\n background: #1c1c1e;\n color: #e5e5e7;\n }\n\n .allure-app-loader__spinner {\n border-color: rgba(229, 229, 231, 0.2);\n border-bottom-color: #8ab4ff;\n }\n }\n\n @keyframes allure-app-loader-spin {\n to {\n transform: rotate(360deg);\n }\n }\n </style>\n";
11
+ export declare const createAppLoaderMarkup: () => string;
8
12
  export declare const createBaseUrlScript: () => string;
9
13
  export declare const stringifyForInlineScript: (value: unknown) => string;
10
14
  export declare const createReportDataScript: (reportFiles?: {
package/dist/static.js CHANGED
@@ -10,6 +10,65 @@ export const createFontLinkTag = (src) => {
10
10
  export const createFaviconLinkTag = (src) => {
11
11
  return `<link rel="icon" href="${src}">`;
12
12
  };
13
+ export const appLoaderFaviconDataUri = "data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.09.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.981-4.61-2.587-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23a)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.392 3.6a3.6 3.6 0 0 1 3.6-3.6c4.41 0 8.401 1.807 11.296 4.662a3.6 3.6 0 1 1-5.056 5.126C20.602 8.18 18.398 7.2 15.992 7.2a3.6 3.6 0 0 1-3.6-3.6Z' fill='url(%23b)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 15.992C0 7.157 7.157 0 15.992 0a3.6 3.6 0 0 1 0 7.2A8.789 8.789 0 0 0 7.2 15.992c0 2.406.981 4.61 2.588 6.24a3.6 3.6 0 0 1-5.126 5.056C1.807 24.393 0 20.402 0 15.992Z' fill='url(%23c)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.661 22.232a3.6 3.6 0 0 1 5.091-.035c1.63 1.606 3.834 2.587 6.24 2.587a3.6 3.6 0 0 1 0 7.2c-4.41 0-8.401-1.807-11.295-4.661a3.6 3.6 0 0 1-.036-5.091Z' fill='url(%23d)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.384 12.392a3.6 3.6 0 0 1 3.6 3.6c0 8.835-7.157 15.992-15.992 15.992a3.6 3.6 0 0 1 0-7.2 8.789 8.789 0 0 0 8.792-8.792 3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23e)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.385 12.392a3.6 3.6 0 0 1 3.6 3.6v12.392a3.6 3.6 0 0 1-7.2 0V15.992a3.6 3.6 0 0 1 3.6-3.6Z' fill='url(%23f)'/%3E%3Cg clip-path='url(%23g)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.232 4.662a3.6 3.6 0 0 1 5.091.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.982-4.61-2.588-6.24a3.6 3.6 0 0 1 .035-5.09Z' fill='url(%23h)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='a' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='26.8' y1='9.4' x2='17.8' y2='3.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EF4444'/%3E%3Cstop offset='1' stop-color='%23DC2626'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='3.6' y1='14' x2='5.4' y2='24.8' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2322C55E'/%3E%3Cstop offset='1' stop-color='%2315803D'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='4.8' y1='22.2' x2='14.4' y2='29.2' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2394A3B8'/%3E%3Cstop offset='.958' stop-color='%2364748B'/%3E%3Cstop offset='1' stop-color='%2364748B'/%3E%3C/linearGradient%3E%3ClinearGradient id='e' x1='28.4' y1='22.173' x2='22.188' y2='28.384' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23D97706'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='29.2' y1='54.4' x2='30.626' y2='54.256' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23FBBF24'/%3E%3Cstop offset='1' stop-color='%23FBBF24'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='26.4' y1='9.6' x2='28.8' y2='15' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237E22CE'/%3E%3Cstop offset='1' stop-color='%238B5CF6'/%3E%3C/linearGradient%3E%3CclipPath id='g'%3E%3Cpath fill='%23fff' transform='translate(24.8 12)' d='M0 0h7.2v8H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E";
14
+ export const appLoaderLogoSvg = `<svg class="allure-app-loader__logo" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.232 4.662a3.6 3.6 0 0 1 5.09.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.981-4.61-2.587-6.24a3.6 3.6 0 0 1 .035-5.09Z" fill="url(#allure-loader-a)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.392 3.6a3.6 3.6 0 0 1 3.6-3.6c4.41 0 8.401 1.807 11.296 4.662a3.6 3.6 0 1 1-5.056 5.126C20.602 8.18 18.398 7.2 15.992 7.2a3.6 3.6 0 0 1-3.6-3.6Z" fill="url(#allure-loader-b)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0 15.992C0 7.157 7.157 0 15.992 0a3.6 3.6 0 0 1 0 7.2A8.789 8.789 0 0 0 7.2 15.992c0 2.406.981 4.61 2.588 6.24a3.6 3.6 0 0 1-5.126 5.056C1.807 24.393 0 20.402 0 15.992Z" fill="url(#allure-loader-c)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.661 22.232a3.6 3.6 0 0 1 5.091-.035c1.63 1.606 3.834 2.587 6.24 2.587a3.6 3.6 0 0 1 0 7.2c-4.41 0-8.401-1.807-11.295-4.661a3.6 3.6 0 0 1-.036-5.091Z" fill="url(#allure-loader-d)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M28.384 12.392a3.6 3.6 0 0 1 3.6 3.6c0 8.835-7.157 15.992-15.992 15.992a3.6 3.6 0 0 1 0-7.2 8.789 8.789 0 0 0 8.792-8.792 3.6 3.6 0 0 1 3.6-3.6Z" fill="url(#allure-loader-e)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M28.385 12.392a3.6 3.6 0 0 1 3.6 3.6v12.392a3.6 3.6 0 0 1-7.2 0V15.992a3.6 3.6 0 0 1 3.6-3.6Z" fill="url(#allure-loader-f)"/><g clip-path="url(#allure-loader-g)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.232 4.662a3.6 3.6 0 0 1 5.091.035c2.855 2.894 4.662 6.885 4.662 11.295a3.6 3.6 0 0 1-7.2 0c0-2.406-.982-4.61-2.588-6.24a3.6 3.6 0 0 1 .035-5.09Z" fill="url(#allure-loader-h)"/></g><defs><linearGradient id="allure-loader-a" x1="26.4" y1="9.6" x2="28.8" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#7E22CE"/><stop offset="1" stop-color="#8B5CF6"/></linearGradient><linearGradient id="allure-loader-b" x1="26.8" y1="9.4" x2="17.8" y2="3.6" gradientUnits="userSpaceOnUse"><stop stop-color="#EF4444"/><stop offset="1" stop-color="#DC2626"/></linearGradient><linearGradient id="allure-loader-c" x1="3.6" y1="14" x2="5.4" y2="24.8" gradientUnits="userSpaceOnUse"><stop stop-color="#22C55E"/><stop offset="1" stop-color="#15803D"/></linearGradient><linearGradient id="allure-loader-d" x1="4.8" y1="22.2" x2="14.4" y2="29.2" gradientUnits="userSpaceOnUse"><stop stop-color="#94A3B8"/><stop offset=".958" stop-color="#64748B"/><stop offset="1" stop-color="#64748B"/></linearGradient><linearGradient id="allure-loader-e" x1="28.4" y1="22.173" x2="22.188" y2="28.384" gradientUnits="userSpaceOnUse"><stop stop-color="#D97706"/><stop offset="1" stop-color="#FBBF24"/></linearGradient><linearGradient id="allure-loader-f" x1="29.2" y1="54.4" x2="30.626" y2="54.256" gradientUnits="userSpaceOnUse"><stop stop-color="#FBBF24"/><stop offset="1" stop-color="#FBBF24"/></linearGradient><linearGradient id="allure-loader-h" x1="26.4" y1="9.6" x2="28.8" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#7E22CE"/><stop offset="1" stop-color="#8B5CF6"/></linearGradient><clipPath id="allure-loader-g"><path fill="#fff" transform="translate(24.8 12)" d="M0 0h7.2v8H0z"/></clipPath></defs></svg>`;
15
+ export const appLoaderStyles = `
16
+ <style>
17
+ .allure-app-loader {
18
+ position: fixed;
19
+ inset: 0;
20
+ z-index: 2147483647;
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ justify-content: center;
25
+ gap: 24px;
26
+ background: #f7f8fb;
27
+ color: #22252a;
28
+ font: 14px/20px Arial, Helvetica, sans-serif;
29
+ }
30
+
31
+ .allure-app-loader__spinner {
32
+ width: 24px;
33
+ height: 24px;
34
+ border: 2px solid rgba(34, 37, 42, 0.16);
35
+ border-bottom-color: #3d7eff;
36
+ border-radius: 50%;
37
+ animation: allure-app-loader-spin 0.7s linear infinite;
38
+ }
39
+
40
+ .allure-app-loader__logo {
41
+ width: 40px;
42
+ height: 40px;
43
+ }
44
+
45
+ @media (prefers-color-scheme: dark) {
46
+ .allure-app-loader {
47
+ background: #1c1c1e;
48
+ color: #e5e5e7;
49
+ }
50
+
51
+ .allure-app-loader__spinner {
52
+ border-color: rgba(229, 229, 231, 0.2);
53
+ border-bottom-color: #8ab4ff;
54
+ }
55
+ }
56
+
57
+ @keyframes allure-app-loader-spin {
58
+ to {
59
+ transform: rotate(360deg);
60
+ }
61
+ }
62
+ </style>
63
+ `;
64
+ export const createAppLoaderMarkup = () => {
65
+ return `
66
+ <div id="allure-app-loader" class="allure-app-loader" role="status" aria-label="Loading report" aria-live="polite">
67
+ ${appLoaderLogoSvg}
68
+ <div class="allure-app-loader__spinner" aria-hidden="true"></div>
69
+ </div>
70
+ `;
71
+ };
13
72
  export const createBaseUrlScript = () => {
14
73
  return `
15
74
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/core-api",
3
- "version": "3.14.2",
3
+ "version": "3.15.0",
4
4
  "description": "Allure Core API",
5
5
  "keywords": [
6
6
  "allure"