@product7/product7-js 0.4.2 → 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 +4 -3
- package/dist/README.md +4 -3
- package/dist/product7-js.js +487 -725
- 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/widgets/MessengerWidget.js +9 -5
- package/src/widgets/SurveyWidget.js +149 -225
package/README.md
CHANGED
|
@@ -134,12 +134,13 @@ new Product7({
|
|
|
134
134
|
|
|
135
135
|
```javascript
|
|
136
136
|
await sdk.identify({
|
|
137
|
-
user_id: 'user_123',
|
|
137
|
+
user_id: 'user_123', // required: user_id or email
|
|
138
138
|
email: 'user@example.com',
|
|
139
139
|
name: 'Jane Doe',
|
|
140
|
-
avatar: 'https://...',
|
|
140
|
+
avatar: 'https://...', // optional
|
|
141
141
|
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
142
|
-
company: {
|
|
142
|
+
company: {
|
|
143
|
+
// optional
|
|
143
144
|
id: 'company_123',
|
|
144
145
|
name: 'Acme Inc',
|
|
145
146
|
monthly_spend: 99.99,
|
package/dist/README.md
CHANGED
|
@@ -134,12 +134,13 @@ new Product7({
|
|
|
134
134
|
|
|
135
135
|
```javascript
|
|
136
136
|
await sdk.identify({
|
|
137
|
-
user_id: 'user_123',
|
|
137
|
+
user_id: 'user_123', // required: user_id or email
|
|
138
138
|
email: 'user@example.com',
|
|
139
139
|
name: 'Jane Doe',
|
|
140
|
-
avatar: 'https://...',
|
|
140
|
+
avatar: 'https://...', // optional
|
|
141
141
|
attributes: { plan: 'pro', role: 'admin' }, // optional, for segmentation
|
|
142
|
-
company: {
|
|
142
|
+
company: {
|
|
143
|
+
// optional
|
|
143
144
|
id: 'company_123',
|
|
144
145
|
name: 'Acme Inc',
|
|
145
146
|
monthly_spend: 99.99,
|