@getuserfeedback/sdk 0.21.0 → 0.22.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/dist/index.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +8 -7
- package/dist/internal/customer-occurrence-command.d.ts +13 -3
- package/dist/internal/customer-occurrence-command.js +2 -2
- package/dist/internal/customer-occurrence-command.js.map +3 -3
- package/dist/internal/feedback-command.d.ts +7 -0
- package/dist/internal/feedback-command.js +4 -0
- package/dist/internal/feedback-command.js.map +25 -0
- package/dist/internal/inline-flow.d.ts +6 -3
- package/dist/internal/inline-flow.js +2 -2
- package/dist/internal/inline-flow.js.map +2 -2
- package/dist/internal/react-container.d.ts +6 -3
- package/package.json +6 -2
|
@@ -168,9 +168,12 @@ type Client = {
|
|
|
168
168
|
*/
|
|
169
169
|
track: (eventName: string, properties?: EventProperties, options?: EventOptions) => Promise<void>;
|
|
170
170
|
/**
|
|
171
|
-
* Record the current browser page
|
|
171
|
+
* Record the current browser page with an optional name. URL, path and query
|
|
172
|
+
* string are captured when called; an omitted name stays absent. Some invalid
|
|
172
173
|
* arguments throw synchronously; other validation or command-processing
|
|
173
174
|
* failures reject the returned promise.
|
|
175
|
+
*
|
|
176
|
+
* @see https://getuserfeedback.com/docs/reference/events
|
|
174
177
|
*/
|
|
175
178
|
page: (name?: string, properties?: EventProperties, options?: EventOptions) => Promise<void>;
|
|
176
179
|
/**
|
|
@@ -181,7 +184,7 @@ type Client = {
|
|
|
181
184
|
* @example
|
|
182
185
|
* Submit one text answer:
|
|
183
186
|
* ```ts
|
|
184
|
-
* await client.feedback("Love
|
|
187
|
+
* await client.feedback("Love this app!");
|
|
185
188
|
* ```
|
|
186
189
|
*
|
|
187
190
|
* @example
|
|
@@ -212,7 +215,7 @@ type Client = {
|
|
|
212
215
|
*
|
|
213
216
|
* @see https://getuserfeedback.com/docs/reference/javascript-sdk-reference#feedback
|
|
214
217
|
*/
|
|
215
|
-
feedback: (
|
|
218
|
+
feedback: (answers: string | Answer | readonly Answer[], options?: FeedbackOptions) => Promise<FeedbackResult>;
|
|
216
219
|
/** Record directed relationship observations through the analytics pipeline. */
|
|
217
220
|
graph: GraphOperations;
|
|
218
221
|
/** Subscribe to explicit SDK and client-side targeting open requests, or suppress them — for example if you know the user should not be interrupted.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getuserfeedback/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "getuserfeedback Typescript SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"getuserfeedback",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
"import": "./dist/internal/inline-flow.js",
|
|
41
41
|
"types": "./dist/internal/inline-flow.d.ts"
|
|
42
42
|
},
|
|
43
|
+
"./internal/feedback-command": {
|
|
44
|
+
"import": "./dist/internal/feedback-command.js",
|
|
45
|
+
"types": "./dist/internal/feedback-command.d.ts"
|
|
46
|
+
},
|
|
43
47
|
"./internal/customer-occurrence-command": {
|
|
44
48
|
"import": "./dist/internal/customer-occurrence-command.js",
|
|
45
49
|
"types": "./dist/internal/customer-occurrence-command.d.ts"
|
|
@@ -65,7 +69,7 @@
|
|
|
65
69
|
"dist"
|
|
66
70
|
],
|
|
67
71
|
"dependencies": {
|
|
68
|
-
"@getuserfeedback/protocol": "^7.
|
|
72
|
+
"@getuserfeedback/protocol": "^7.2.0"
|
|
69
73
|
},
|
|
70
74
|
"devDependencies": {
|
|
71
75
|
"@typescript/typescript6": "^6.0.2",
|