@reloop-sdk/vanilla 0.1.3 → 0.1.4
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 +39 -0
- package/package.json +7 -2
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @reloop-sdk/vanilla
|
|
2
|
+
|
|
3
|
+
The embeddable [Reloop](https://martystephan.github.io/Reloop/) feedback widget — a single `<script>` tag, no build step.
|
|
4
|
+
|
|
5
|
+
## Script tag (no install)
|
|
6
|
+
|
|
7
|
+
The widget auto-initialises from `data-*` attributes:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<script
|
|
11
|
+
src="https://feedback.example.com/embed/reloop.global.js"
|
|
12
|
+
data-reloop-key="rl_pub_..."
|
|
13
|
+
data-reloop-endpoint="https://feedback.example.com"
|
|
14
|
+
data-reloop-position="bottom-right"
|
|
15
|
+
></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## npm
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @reloop-sdk/vanilla
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { mountWidget } from "@reloop-sdk/vanilla";
|
|
26
|
+
|
|
27
|
+
mountWidget({
|
|
28
|
+
apiKey: "rl_pub_...",
|
|
29
|
+
endpoint: "https://feedback.example.com",
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
Full attributes and API: **https://martystephan.github.io/Reloop/sdk/vanilla**
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reloop-sdk/vanilla",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Standalone script-tag embeddable feedback widget",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -20,12 +20,17 @@
|
|
|
20
20
|
],
|
|
21
21
|
"sideEffects": true,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@reloop-sdk/core": "0.1.
|
|
23
|
+
"@reloop-sdk/core": "0.1.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsup": "^8.3.5",
|
|
27
27
|
"typescript": "^5.7.2"
|
|
28
28
|
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/martystephan/Reloop.git",
|
|
32
|
+
"directory": "packages/vanilla"
|
|
33
|
+
},
|
|
29
34
|
"scripts": {
|
|
30
35
|
"build": "tsup",
|
|
31
36
|
"dev": "tsup --watch",
|