@product7/product7-js 0.4.1 → 0.4.3
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 +11 -2
- package/dist/README.md +11 -2
- package/dist/product7-js.js +491 -735
- package/dist/product7-js.js.map +1 -1
- package/dist/product7-js.min.js +1 -1
- package/dist/product7-js.min.js.map +1 -1
- package/package.json +1 -1
- package/src/api/services/FeedbackService.js +2 -2
- package/src/api/services/SurveyService.js +2 -2
- package/src/core/Product7.js +3 -1
- package/src/styles/survey.js +177 -345
- package/src/utils/NotificationSound.js +3 -3
- package/src/widgets/MessengerWidget.js +11 -13
- package/src/widgets/SurveyWidget.js +149 -225
package/README.md
CHANGED
|
@@ -39,7 +39,9 @@ await sdk.identify({
|
|
|
39
39
|
user_id: 'user_123',
|
|
40
40
|
email: 'user@example.com',
|
|
41
41
|
name: 'Jane Doe',
|
|
42
|
-
|
|
42
|
+
avatar: 'https://example.com/avatar.png', // optional
|
|
43
|
+
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
44
|
+
company: { id: 'company_123', name: 'Acme Inc' }, // optional
|
|
43
45
|
});
|
|
44
46
|
|
|
45
47
|
const widget = sdk.createFeedbackWidget({ position: 'bottom-right' });
|
|
@@ -135,7 +137,14 @@ await sdk.identify({
|
|
|
135
137
|
user_id: 'user_123', // required: user_id or email
|
|
136
138
|
email: 'user@example.com',
|
|
137
139
|
name: 'Jane Doe',
|
|
138
|
-
|
|
140
|
+
avatar: 'https://...', // optional
|
|
141
|
+
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
142
|
+
company: {
|
|
143
|
+
// optional
|
|
144
|
+
id: 'company_123',
|
|
145
|
+
name: 'Acme Inc',
|
|
146
|
+
monthly_spend: 99.99,
|
|
147
|
+
},
|
|
139
148
|
});
|
|
140
149
|
```
|
|
141
150
|
|
package/dist/README.md
CHANGED
|
@@ -39,7 +39,9 @@ await sdk.identify({
|
|
|
39
39
|
user_id: 'user_123',
|
|
40
40
|
email: 'user@example.com',
|
|
41
41
|
name: 'Jane Doe',
|
|
42
|
-
|
|
42
|
+
avatar: 'https://example.com/avatar.png', // optional
|
|
43
|
+
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
44
|
+
company: { id: 'company_123', name: 'Acme Inc' }, // optional
|
|
43
45
|
});
|
|
44
46
|
|
|
45
47
|
const widget = sdk.createFeedbackWidget({ position: 'bottom-right' });
|
|
@@ -135,7 +137,14 @@ await sdk.identify({
|
|
|
135
137
|
user_id: 'user_123', // required: user_id or email
|
|
136
138
|
email: 'user@example.com',
|
|
137
139
|
name: 'Jane Doe',
|
|
138
|
-
|
|
140
|
+
avatar: 'https://...', // optional
|
|
141
|
+
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
142
|
+
company: {
|
|
143
|
+
// optional
|
|
144
|
+
id: 'company_123',
|
|
145
|
+
name: 'Acme Inc',
|
|
146
|
+
monthly_spend: 99.99,
|
|
147
|
+
},
|
|
139
148
|
});
|
|
140
149
|
```
|
|
141
150
|
|