fi-edback 0.2.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/README.md +155 -0
- package/dist/client.cjs +1088 -0
- package/dist/client.d.cts +15 -0
- package/dist/client.d.ts +15 -0
- package/dist/client.js +1062 -0
- package/dist/index.cjs +414 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +377 -0
- package/package.json +64 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Drop this into your root layout — it reads the two NEXT_PUBLIC_ env vars
|
|
5
|
+
* and renders nothing when feedback is disabled or the project slug is missing.
|
|
6
|
+
*
|
|
7
|
+
* The mounted check ensures the widget never renders during SSR, avoiding
|
|
8
|
+
* hydration mismatches. Feedback is purely interactive and has no value
|
|
9
|
+
* being server-rendered.
|
|
10
|
+
*
|
|
11
|
+
* <FeedbackRoot /> is the only component the host app needs to add.
|
|
12
|
+
*/
|
|
13
|
+
declare function FeedbackRoot(): react.JSX.Element | null;
|
|
14
|
+
|
|
15
|
+
export { FeedbackRoot };
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Drop this into your root layout — it reads the two NEXT_PUBLIC_ env vars
|
|
5
|
+
* and renders nothing when feedback is disabled or the project slug is missing.
|
|
6
|
+
*
|
|
7
|
+
* The mounted check ensures the widget never renders during SSR, avoiding
|
|
8
|
+
* hydration mismatches. Feedback is purely interactive and has no value
|
|
9
|
+
* being server-rendered.
|
|
10
|
+
*
|
|
11
|
+
* <FeedbackRoot /> is the only component the host app needs to add.
|
|
12
|
+
*/
|
|
13
|
+
declare function FeedbackRoot(): react.JSX.Element | null;
|
|
14
|
+
|
|
15
|
+
export { FeedbackRoot };
|