@telelogx/analytick-widget 1.0.0 → 1.0.2
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 +16 -4
- package/dist/analytick-widget.es.js +683 -595
- package/dist/analytick-widget.umd.js +1 -1
- package/package.json +12 -2
- package/src/index.d.ts +39 -0
package/README.md
CHANGED
|
@@ -41,14 +41,26 @@ init({
|
|
|
41
41
|
|
|
42
42
|
### Framework Integration (React, Vue, etc.)
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
The widget provides a functional component wrapper for easy integration with React and other JSX frameworks.
|
|
45
45
|
|
|
46
46
|
```javascript
|
|
47
|
-
import { AnalytickWidget } from 'analytick-widget';
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
import { AnalytickWidget } from '@telelogx/analytick-widget';
|
|
48
|
+
|
|
49
|
+
function MyComponent() {
|
|
50
|
+
return (
|
|
51
|
+
<AnalytickWidget
|
|
52
|
+
orgId="your-org-id"
|
|
53
|
+
widgetId="your-widget-id"
|
|
54
|
+
baseUrl="https://api.yourcompany.com"
|
|
55
|
+
primaryColor="#3C5BFF"
|
|
56
|
+
theme="dark"
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
50
60
|
```
|
|
51
61
|
|
|
62
|
+
Alternatively, since it's a Standard Web Component, you can use the custom element directly:
|
|
63
|
+
|
|
52
64
|
In your JSX/HTML:
|
|
53
65
|
```html
|
|
54
66
|
<analytick-widget
|