@tracelane/report 0.1.0-alpha.2 → 0.1.0-alpha.4

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 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,gDAAgD;IAChD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACjB;AA6GD,qDAAqD;AACrD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CA4CjE"}
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,gDAAgD;IAChD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACjB;AAgID,qDAAqD;AACrD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CA6CjE"}
package/dist/template.js CHANGED
@@ -113,6 +113,23 @@ const BOOTSTRAP = `
113
113
  }
114
114
  })();
115
115
  `;
116
+ /**
117
+ * Self-marketing footer (Phase 5 indirect-virality artifact).
118
+ *
119
+ * Every report shared in a PR comment or attached to a JIRA ticket becomes a
120
+ * tracked acquisition channel — the Loom / Calendly / Statuspage compounding
121
+ * pattern. UTM params let us attribute click-through downstream; the link
122
+ * targets the repo's `packages/tracelane-wdio` directory because the install
123
+ * command (`npm i @tracelane/wdio`) is what we want a reader to see first
124
+ * (per the research's "link to the install command, not the marketing site"
125
+ * rule). Inline styles only — the report has no external CSS, runs offline,
126
+ * and there is no CSP meta tag in this document (verified in the renderer
127
+ * above) so the inline `style` attribute is safe. `rel="noopener"` because
128
+ * the report is shared widely and we never trust the click target.
129
+ */
130
+ const FOOTER_HTML = '<footer style="text-align: center; padding: 1.5rem 0; font-size: 0.875rem; color: #6b7280; border-top: 1px solid #e5e7eb; margin-top: 2rem;">\n' +
131
+ ' Generated by <a href="https://github.com/Cubenest/rrweb-stack/tree/main/packages/tracelane-wdio?utm_source=tracelane-report&utm_medium=html-footer&utm_campaign=indirect-virality" style="color: #6b7280; text-decoration: underline;" rel="noopener">tracelane</a> — the reporter for your WebdriverIO, Playwright, and Cypress tests.\n' +
132
+ '</footer>';
116
133
  /** Compose the full self-contained HTML document. */
117
134
  export function renderReportHtml(data) {
118
135
  const { meta, eventsGzB64, console: consoleRows, network, markdown, pruned } = data;
@@ -152,6 +169,7 @@ ${banner}
152
169
  <script>${loadPlayerUmd()}</script>
153
170
  <script>${dataScript}</script>
154
171
  <script>${BOOTSTRAP}</script>
172
+ ${FOOTER_HTML}
155
173
  </body>
156
174
  </html>`;
157
175
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAAA,gEAAgE;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uEAAuE;IACvE,iEAAiE;IACjE,MAAM,UAAU,GACd,gBAAgB,kBAAkB,CAAC,IAAI,CAAC,KAAK;QAC7C,0BAA0B,WAAW,MAAM;QAC3C,mBAAmB,kBAAkB,CAAC,WAAW,CAAC,KAAK;QACvD,mBAAmB,kBAAkB,CAAC,OAAO,CAAC,KAAK;QACnD,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC;IAEtD,OAAO;;;;;SAKA,UAAU,CAAC,KAAK,CAAC;SACjB,aAAa,EAAE;SACf,SAAS;;;EAGhB,gBAAgB,CAAC,IAAI,CAAC;EACtB,MAAM;;;;;;;;;UASE,sBAAsB,EAAE;UACxB,aAAa,EAAE;UACf,UAAU;UACV,SAAS;EACjB,WAAW;;QAEL,CAAC;AACT,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracelane/report",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Self-contained, offline HTML report builder for tracelane. Embeds the rrweb player and a gzipped event blob into a single .html file.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "fflate": "^0.8.2",
22
22
  "rrweb-player": "1.0.0-alpha.4",
23
23
  "@cubenest/rrweb-core": "0.1.0-alpha.1",
24
- "@tracelane/core": "0.1.0-alpha.2"
24
+ "@tracelane/core": "0.1.0-alpha.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "jsdom": "^25.0.1"