@arantic/bugpin-widget 0.1.2 → 1.0.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/LICENSE +21 -0
- package/README.md +19 -18
- package/dist/widget.cjs.js +74 -119
- package/dist/widget.cjs.js.map +1 -1
- package/dist/widget.esm.js +7932 -4244
- package/dist/widget.esm.js.map +1 -1
- package/dist/widget.js +74 -119
- package/dist/widget.js.map +1 -1
- package/package.json +13 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arantic Digital
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -26,21 +26,20 @@ import BugPin from '@arantic/bugpin-widget';
|
|
|
26
26
|
|
|
27
27
|
BugPin.init({
|
|
28
28
|
apiKey: 'your-project-api-key',
|
|
29
|
-
serverUrl: 'https://your-bugpin-server.com'
|
|
29
|
+
serverUrl: 'https://your-bugpin-server.com',
|
|
30
30
|
});
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Configuration
|
|
34
34
|
|
|
35
|
-
The widget automatically fetches its configuration from the BugPin server based on your API key. All visual settings (theme, position, colors, button text) are managed in the BugPin admin
|
|
35
|
+
The widget automatically fetches its configuration from the BugPin server based on your API key. All visual settings (theme, position, colors, button text) are managed in the BugPin admin portal.
|
|
36
36
|
|
|
37
37
|
### Required Options
|
|
38
38
|
|
|
39
|
-
| Option
|
|
40
|
-
|
|
41
|
-
| `apiKey`
|
|
42
|
-
| `serverUrl` | `string` | Your BugPin server URL
|
|
43
|
-
|
|
39
|
+
| Option | Type | Description |
|
|
40
|
+
| ----------- | -------- | ---------------------------------------- |
|
|
41
|
+
| `apiKey` | `string` | Your project API key (from BugPin admin) |
|
|
42
|
+
| `serverUrl` | `string` | Your BugPin server URL |
|
|
44
43
|
|
|
45
44
|
## Framework Examples
|
|
46
45
|
|
|
@@ -54,7 +53,7 @@ function App() {
|
|
|
54
53
|
useEffect(() => {
|
|
55
54
|
BugPin.init({
|
|
56
55
|
apiKey: import.meta.env.VITE_BUGPIN_API_KEY,
|
|
57
|
-
serverUrl: import.meta.env.VITE_BUGPIN_SERVER_URL
|
|
56
|
+
serverUrl: import.meta.env.VITE_BUGPIN_SERVER_URL,
|
|
58
57
|
});
|
|
59
58
|
}, []);
|
|
60
59
|
|
|
@@ -72,7 +71,7 @@ function App() {
|
|
|
72
71
|
useEffect(() => {
|
|
73
72
|
BugPin.init({
|
|
74
73
|
apiKey: process.env.NEXT_PUBLIC_BUGPIN_API_KEY,
|
|
75
|
-
serverUrl: process.env.NEXT_PUBLIC_BUGPIN_SERVER_URL
|
|
74
|
+
serverUrl: process.env.NEXT_PUBLIC_BUGPIN_SERVER_URL,
|
|
76
75
|
});
|
|
77
76
|
}, []);
|
|
78
77
|
|
|
@@ -90,7 +89,7 @@ import BugPin from '@arantic/bugpin-widget';
|
|
|
90
89
|
onMounted(() => {
|
|
91
90
|
BugPin.init({
|
|
92
91
|
apiKey: import.meta.env.VITE_BUGPIN_API_KEY,
|
|
93
|
-
serverUrl: import.meta.env.VITE_BUGPIN_SERVER_URL
|
|
92
|
+
serverUrl: import.meta.env.VITE_BUGPIN_SERVER_URL,
|
|
94
93
|
});
|
|
95
94
|
});
|
|
96
95
|
</script>
|
|
@@ -105,13 +104,13 @@ import BugPin from '@arantic/bugpin-widget';
|
|
|
105
104
|
|
|
106
105
|
@Component({
|
|
107
106
|
selector: 'app-root',
|
|
108
|
-
templateUrl: './app.component.html'
|
|
107
|
+
templateUrl: './app.component.html',
|
|
109
108
|
})
|
|
110
109
|
export class AppComponent implements OnInit {
|
|
111
110
|
ngOnInit() {
|
|
112
111
|
BugPin.init({
|
|
113
112
|
apiKey: environment.bugpinApiKey,
|
|
114
|
-
serverUrl: environment.bugpinServerUrl
|
|
113
|
+
serverUrl: environment.bugpinServerUrl,
|
|
115
114
|
});
|
|
116
115
|
}
|
|
117
116
|
}
|
|
@@ -126,7 +125,7 @@ import BugPin from '@arantic/bugpin-widget';
|
|
|
126
125
|
document.addEventListener('DOMContentLoaded', () => {
|
|
127
126
|
BugPin.init({
|
|
128
127
|
apiKey: 'your-api-key',
|
|
129
|
-
serverUrl: 'https://bugpin.example.com'
|
|
128
|
+
serverUrl: 'https://bugpin.example.com',
|
|
130
129
|
});
|
|
131
130
|
});
|
|
132
131
|
```
|
|
@@ -188,7 +187,7 @@ NEXT_PUBLIC_BUGPIN_SERVER_URL=https://bugpin.example.com
|
|
|
188
187
|
# .NET (appsettings.json)
|
|
189
188
|
{
|
|
190
189
|
"BugPin": {
|
|
191
|
-
"ApiKey": "your-api-key",
|
|
190
|
+
"ApiKey": "your-project-api-key",
|
|
192
191
|
"ServerUrl": "https://bugpin.example.com"
|
|
193
192
|
}
|
|
194
193
|
}
|
|
@@ -196,10 +195,12 @@ NEXT_PUBLIC_BUGPIN_SERVER_URL=https://bugpin.example.com
|
|
|
196
195
|
|
|
197
196
|
## Getting Your API Key
|
|
198
197
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
You need an API key from your BugPin server to initialize the widget.
|
|
199
|
+
|
|
200
|
+
1. Deploy BugPin server on your infrastructure (e.g. using [Docker](https://docs.bugpin.io/installation/docker))
|
|
201
|
+
2. Log in to the BugPin admin portal
|
|
202
|
+
3. Open **Projects**, create a new project or select an existing one
|
|
203
|
+
4. Copy the API key (shown in the project card or in **Project Settings**)
|
|
203
204
|
|
|
204
205
|
## Documentation
|
|
205
206
|
|