@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.
- package/dist/{chunk-TBT2OODO.mjs → chunk-64HXWJCH.mjs} +33 -7
- package/dist/chunk-64HXWJCH.mjs.map +1 -0
- package/dist/embed.min.js +4 -4
- package/dist/embed.min.js.map +1 -1
- package/dist/error-tracking.d.ts +1 -1
- package/dist/{index-DK9sbiTf.d.ts → index-snrtK3_E.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/replay.d.ts +1 -1
- package/dist/{types-ZCdu32FU.d.ts → types-BrsktaE1.d.ts} +11 -0
- package/dist/webvitals.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-TBT2OODO.mjs.map +0 -1
package/dist/error-tracking.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FeedbackConfig, F as FeedbackApi, R as ReportTransformer } from './types-
|
|
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-
|
|
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-
|
|
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
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-
|
|
4
|
-
import { F as FeedbackApi } from './types-
|
|
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
package/dist/replay.d.ts
CHANGED
|
@@ -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;
|
package/dist/webvitals.d.ts
CHANGED