@introspection-sdk/introspection-browser 0.20.0 → 0.21.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/README.md +9 -4
- package/dist/api/client.d.ts +10 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +17 -8
- package/dist/api/client.js.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/tasks.d.ts +7 -1
- package/dist/api/tasks.d.ts.map +1 -1
- package/dist/api/tasks.js.map +1 -1
- package/dist/client.d.ts +14 -38
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +90 -35
- package/dist/client.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +12 -6
- package/.turbo/turbo-build.log +0 -4
- package/eslint.config.mjs +0 -3
- package/src/api/client.ts +0 -196
- package/src/api/fetch.ts +0 -31
- package/src/api/http.ts +0 -88
- package/src/api/index.ts +0 -133
- package/src/api/tasks.ts +0 -87
- package/src/client.ts +0 -796
- package/src/index.ts +0 -41
- package/src/types.ts +0 -13
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -9
package/src/index.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Introspection Browser SDK
|
|
3
|
-
*
|
|
4
|
-
* Provides an API for tracking events and feedback in the browser.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import { IntrospectionClient } from "@introspection-sdk/introspection-browser";
|
|
9
|
-
*
|
|
10
|
-
* const client = new IntrospectionClient({
|
|
11
|
-
* token: "intro_xxx",
|
|
12
|
-
* });
|
|
13
|
-
*
|
|
14
|
-
* // Set identity once
|
|
15
|
-
* client.identify("user_123", { email: "user@example.com" });
|
|
16
|
-
*
|
|
17
|
-
* // Track events
|
|
18
|
-
* client.track("Button Clicked", { buttonId: "submit" });
|
|
19
|
-
*
|
|
20
|
-
* // Track feedback
|
|
21
|
-
* client.feedback("thumbs_up", { comments: "Very helpful response" });
|
|
22
|
-
* client.feedback("thumbs_down", {
|
|
23
|
-
* responseId: "msg_123",
|
|
24
|
-
* comments: "Off topic",
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
// Client exports
|
|
30
|
-
export { IntrospectionClient } from "./client.js";
|
|
31
|
-
|
|
32
|
-
// Type exports
|
|
33
|
-
export type {
|
|
34
|
-
AdvancedOptions,
|
|
35
|
-
IntrospectionClientOptions,
|
|
36
|
-
FeedbackOptions,
|
|
37
|
-
UserTraits,
|
|
38
|
-
} from "./types.js";
|
|
39
|
-
|
|
40
|
-
// Version
|
|
41
|
-
export { VERSION } from "./version.js";
|
package/src/types.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Re-export shared types and functions from @introspection-sdk/types
|
|
3
|
-
*/
|
|
4
|
-
export type {
|
|
5
|
-
AdvancedOptions,
|
|
6
|
-
IntrospectionClientOptions,
|
|
7
|
-
FeedbackOptions,
|
|
8
|
-
UserTraits,
|
|
9
|
-
GenAiContext,
|
|
10
|
-
IdentityContext,
|
|
11
|
-
} from "@introspection-sdk/types";
|
|
12
|
-
|
|
13
|
-
export { generateEventId } from "@introspection-sdk/types";
|
package/src/version.ts
DELETED