@mhosaic/feedback 0.12.2 → 0.13.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.
@@ -1,4 +1,4 @@
1
- import { F as FeedbackApi } from './types-ZCdu32FU.js';
1
+ import { F as FeedbackApi } from './types-BrsktaE1.js';
2
2
 
3
3
  /**
4
4
  * Always-on debugger module. Hooks `window.error` and `unhandledrejection`,
@@ -1,4 +1,4 @@
1
- import { a as FeedbackConfig, F as FeedbackApi, R as ReportTransformer } from './types-ZCdu32FU.js';
1
+ import { a as FeedbackConfig, F as FeedbackApi, R as ReportTransformer } from './types-BrsktaE1.js';
2
2
 
3
3
  interface InternalConfig extends FeedbackConfig {
4
4
  fetchImpl?: typeof fetch;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as createFeedback } from './index-DK9sbiTf.js';
2
- export { C as CapturedContext, F as FeedbackApi, a as FeedbackConfig, b as FeedbackEnv, c as FeedbackSeverity, d as FeedbackType, e as ReportPayload, S as SubmittedReport, U as UserIdentity } from './types-ZCdu32FU.js';
1
+ export { c as createFeedback } from './index-snrtK3_E.js';
2
+ export { C as CapturedContext, F as FeedbackApi, a as FeedbackConfig, b as FeedbackEnv, c as FeedbackSeverity, d as FeedbackType, e as ReportPayload, S as SubmittedReport, U as UserIdentity } from './types-BrsktaE1.js';
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createFeedback
3
- } from "./chunk-TBT2OODO.mjs";
3
+ } from "./chunk-64HXWJCH.mjs";
4
4
  import "./chunk-DKE6ELJ4.mjs";
5
5
  export {
6
6
  createFeedback
package/dist/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { I as InternalConfig } from './index-DK9sbiTf.js';
4
- import { F as FeedbackApi } from './types-ZCdu32FU.js';
3
+ import { I as InternalConfig } from './index-snrtK3_E.js';
4
+ import { F as FeedbackApi } from './types-BrsktaE1.js';
5
5
 
6
6
  interface FeedbackProviderProps extends InternalConfig {
7
7
  children?: ReactNode;
package/dist/react.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createFeedback
3
- } from "./chunk-TBT2OODO.mjs";
3
+ } from "./chunk-64HXWJCH.mjs";
4
4
  import "./chunk-DKE6ELJ4.mjs";
5
5
 
6
6
  // src/react/FeedbackProvider.tsx
package/dist/replay.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as FeedbackApi } from './types-ZCdu32FU.js';
1
+ import { F as FeedbackApi } from './types-BrsktaE1.js';
2
2
 
3
3
  interface ReplayOptions {
4
4
  durationMs?: number;
@@ -9,6 +9,17 @@ interface UserIdentity {
9
9
  id?: string | number;
10
10
  email?: string;
11
11
  name?: string;
12
+ /**
13
+ * v0.13 — host-computed HMAC over `v1\x00{project_id}\x00{external_id}
14
+ * \x00{email}\x00{exp}` using the project's signing secret. When
15
+ * present together with `exp`, the widget forwards both as
16
+ * `X-Mhosaic-User-Hmac` + `X-Mhosaic-User-Exp` headers and the
17
+ * backend rejects unsigned requests for projects that have opted in.
18
+ * Hosts compute this server-side; the secret never leaves the host's
19
+ * backend. Omit both fields for the legacy unsigned path. */
20
+ userHash?: string;
21
+ /** Unix-seconds expiry of the signature, e.g. `Math.floor(Date.now()/1000) + 3600`. */
22
+ exp?: number;
12
23
  }
13
24
  interface FeedbackConfig {
14
25
  apiKey: string;
@@ -1,4 +1,4 @@
1
- import { F as FeedbackApi } from './types-ZCdu32FU.js';
1
+ import { F as FeedbackApi } from './types-BrsktaE1.js';
2
2
 
3
3
  interface WebVitalsOptions {
4
4
  reportAllChanges?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhosaic/feedback",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {