feedback-vos 1.0.29 → 1.0.31
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 +19 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +503 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +506 -73
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +456 -41
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A beautiful, customizable feedback widget for Next.js applications with built-in
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- 🎨 Modern and responsive design
|
|
7
|
+
- 🎨 Modern and responsive design with dark/light theme support
|
|
8
8
|
- 📸 Screenshot functionality
|
|
9
9
|
- 🎯 Three feedback types: Bug, Idea, Other
|
|
10
10
|
- ⚡ Built for Next.js 14+ (App Router)
|
|
@@ -37,6 +37,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
|
37
37
|
}}
|
|
38
38
|
position={process.env.NEXT_PUBLIC_FEEDBACK_POSITION as 'bottom-right' | 'bottom-left' | undefined}
|
|
39
39
|
language={process.env.NEXT_PUBLIC_FEEDBACK_LANG as 'en' | 'nl' | undefined}
|
|
40
|
+
theme={process.env.NEXT_PUBLIC_FEEDBACK_THEME as 'light' | 'dark' | undefined}
|
|
40
41
|
/>
|
|
41
42
|
</body>
|
|
42
43
|
</html>
|
|
@@ -56,10 +57,26 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
|
56
57
|
NEXT_PUBLIC_GITHUB_REPO=your-repo-name
|
|
57
58
|
NEXT_PUBLIC_FEEDBACK_POSITION=bottom-right # optional: bottom-left, top-right, top-left
|
|
58
59
|
NEXT_PUBLIC_FEEDBACK_LANG=nl # optional: 'nl' for Dutch, 'en' for English (default)
|
|
60
|
+
NEXT_PUBLIC_FEEDBACK_THEME=light
|
|
61
|
+
NEXT_PUBLIC_FEEDBACK_ENABLED=true # optional: set to 'false' to disable widget (default: 'true')
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
**Important:** `owner` and `repo` are case-sensitive. Ensure Issues are enabled in your repository.
|
|
62
65
|
|
|
66
|
+
### Environment-Specific Configuration
|
|
67
|
+
|
|
68
|
+
You can control widget visibility per environment using `NEXT_PUBLIC_FEEDBACK_ENABLED`:
|
|
69
|
+
|
|
70
|
+
```env
|
|
71
|
+
# Production - disable widget
|
|
72
|
+
NEXT_PUBLIC_FEEDBACK_ENABLED=false
|
|
73
|
+
|
|
74
|
+
# Staging - enable widget
|
|
75
|
+
NEXT_PUBLIC_FEEDBACK_ENABLED=true
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Note:** The widget is enabled by default if `NEXT_PUBLIC_FEEDBACK_ENABLED` is not set, ensuring backward compatibility.
|
|
79
|
+
|
|
63
80
|
## API Reference
|
|
64
81
|
|
|
65
82
|
```typescript
|
|
@@ -73,6 +90,7 @@ interface WidgetProps {
|
|
|
73
90
|
};
|
|
74
91
|
position?: 'bottom-right' | 'bottom-left'; // or use NEXT_PUBLIC_FEEDBACK_POSITION env var
|
|
75
92
|
language?: 'en' | 'nl'; // defaults to 'en', or use NEXT_PUBLIC_FEEDBACK_LANG env var
|
|
93
|
+
theme?: 'light' | 'dark'; // defaults to 'dark', or use NEXT_PUBLIC_FEEDBACK_THEME env var
|
|
76
94
|
}
|
|
77
95
|
```
|
|
78
96
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
type Theme = 'light' | 'dark';
|
|
3
4
|
interface GitHubConfig {
|
|
4
5
|
token: string;
|
|
5
6
|
owner: string;
|
|
@@ -11,8 +12,9 @@ interface WidgetProps {
|
|
|
11
12
|
githubConfig: GitHubConfig;
|
|
12
13
|
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
13
14
|
language?: 'en' | 'nl';
|
|
15
|
+
theme?: Theme;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
declare function Widget({ integration, githubConfig, position, language, }: WidgetProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function Widget({ integration, githubConfig, position, language, theme, }: WidgetProps): react_jsx_runtime.JSX.Element | null;
|
|
17
19
|
|
|
18
|
-
export { type GitHubConfig, Widget, type WidgetProps };
|
|
20
|
+
export { type GitHubConfig, type Theme, Widget, type WidgetProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
type Theme = 'light' | 'dark';
|
|
3
4
|
interface GitHubConfig {
|
|
4
5
|
token: string;
|
|
5
6
|
owner: string;
|
|
@@ -11,8 +12,9 @@ interface WidgetProps {
|
|
|
11
12
|
githubConfig: GitHubConfig;
|
|
12
13
|
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
13
14
|
language?: 'en' | 'nl';
|
|
15
|
+
theme?: Theme;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
declare function Widget({ integration, githubConfig, position, language, }: WidgetProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function Widget({ integration, githubConfig, position, language, theme, }: WidgetProps): react_jsx_runtime.JSX.Element | null;
|
|
17
19
|
|
|
18
|
-
export { type GitHubConfig, Widget, type WidgetProps };
|
|
20
|
+
export { type GitHubConfig, type Theme, Widget, type WidgetProps };
|