@mhosaic/feedback 0.22.0 → 0.23.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-6OAG72JW.mjs → chunk-NCNRU3SR.mjs} +99 -15
- package/dist/chunk-NCNRU3SR.mjs.map +1 -0
- package/dist/embed.min.js +5 -5
- package/dist/embed.min.js.map +1 -1
- package/dist/error-tracking.d.ts +1 -1
- package/dist/{index-CmHNkJsj.d.ts → index-DHNIgEcR.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/loader/react.d.ts +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/replay.d.ts +1 -1
- package/dist/telemetry.d.ts +1 -1
- package/dist/{types-CfSqqfkw.d.ts → types-CKwnZDsE.d.ts} +16 -0
- package/dist/webvitals.d.ts +1 -1
- package/dist/widget.min.js +6 -6
- package/dist/widget.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6OAG72JW.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-CKwnZDsE.js';
|
|
2
2
|
|
|
3
3
|
interface InternalConfig extends FeedbackConfig {
|
|
4
4
|
fetchImpl?: typeof fetch;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-DHNIgEcR.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-CKwnZDsE.js';
|
|
3
3
|
import './types-CRbb2Pp0.js';
|
package/dist/index.mjs
CHANGED
package/dist/loader/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
3
|
import { ErrorTrackingOptions } from '../error-tracking.js';
|
|
4
|
-
import { a as FeedbackConfig, F as FeedbackApi } from '../types-
|
|
4
|
+
import { a as FeedbackConfig, F as FeedbackApi } from '../types-CKwnZDsE.js';
|
|
5
5
|
import '../types-CRbb2Pp0.js';
|
|
6
6
|
|
|
7
7
|
interface FeedbackProviderProps extends FeedbackConfig {
|
package/dist/loader.d.ts
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { I as InternalConfig } from './index-
|
|
3
|
+
import { I as InternalConfig } from './index-DHNIgEcR.js';
|
|
4
4
|
import { ErrorTrackingOptions } from './error-tracking.js';
|
|
5
|
-
import { Q as QaMeterConfig, F as FeedbackApi } from './types-
|
|
5
|
+
import { Q as QaMeterConfig, F as FeedbackApi } from './types-CKwnZDsE.js';
|
|
6
6
|
import './types-CRbb2Pp0.js';
|
|
7
7
|
|
|
8
8
|
interface FeedbackProviderProps extends InternalConfig {
|
package/dist/react.mjs
CHANGED
package/dist/replay.d.ts
CHANGED
package/dist/telemetry.d.ts
CHANGED
|
@@ -69,6 +69,17 @@ interface FeedbackConfig {
|
|
|
69
69
|
theme?: 'light' | 'dark' | 'auto' | 'none';
|
|
70
70
|
/** Opt-in QA Meter second FAB. Set `qaMeter.source` to enable it. */
|
|
71
71
|
qaMeter?: QaMeterConfig;
|
|
72
|
+
/** Return the current page path for "feedback on this page" scoping. Same
|
|
73
|
+
* contract as QaMeterConfig.getCurrentPage — return null to fall back to
|
|
74
|
+
* window.location.pathname. The widget sends the path as `page_path`;
|
|
75
|
+
* the backend's derive_page_key is the single key implementation. */
|
|
76
|
+
getCurrentPage?: () => string | null;
|
|
77
|
+
/** When true, opening the FAB jumps straight to the Board scoped to the
|
|
78
|
+
* current page IF that page already has feedback (else the Send form).
|
|
79
|
+
* Default false — the FAB opens to Send, so the primary submit flow is
|
|
80
|
+
* never hijacked. Opt-in for triage-focused hosts. The "Cette page" chip
|
|
81
|
+
* is always available inside the Board regardless of this flag. */
|
|
82
|
+
openToCurrentPageFeedback?: boolean;
|
|
72
83
|
}
|
|
73
84
|
interface ConsoleEntry {
|
|
74
85
|
level: string;
|
|
@@ -170,6 +181,11 @@ interface ReportPayload {
|
|
|
170
181
|
* submissions never set this.
|
|
171
182
|
*/
|
|
172
183
|
synthetic?: boolean;
|
|
184
|
+
/** Current page path at submit time — the backend's derive_page_key turns
|
|
185
|
+
* this into a canonical PageKey for "feedback on this page" grouping.
|
|
186
|
+
* Set automatically by core.ts from FeedbackConfig.getCurrentPage or
|
|
187
|
+
* window.location.pathname; consumers don't pass this directly. */
|
|
188
|
+
page_path?: string;
|
|
173
189
|
}
|
|
174
190
|
interface SubmittedReport {
|
|
175
191
|
id: string;
|
package/dist/webvitals.d.ts
CHANGED