obi-sdk 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/dist/modular/chunks/{obi-widget-58dc98b0.js → obi-widget-ad91b91a.js} +71 -44
- package/dist/modular/chunks/obi-widget-ad91b91a.js.map +1 -0
- package/dist/modular/index.js +5736 -7
- package/dist/modular/index.js.map +1 -1
- package/dist/modular/ui.js +10 -10
- package/dist/obi-sdk.es.js +5959 -190
- package/dist/obi-sdk.es.js.map +1 -1
- package/dist/obi-sdk.standalone.iife.js +74 -61
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/obi-sdk.umd.js +68 -55
- package/dist/obi-sdk.umd.js.map +1 -1
- package/dist/sentry.d.ts +1 -0
- package/dist/ui/components/session-start-modal/index.d.ts +1 -0
- package/dist/ui/components/{session-start-modal.d.ts → session-start-modal/session-start-modal.d.ts} +1 -1
- package/dist/ui/components/session-start-modal/session-start-modal.stories.d.ts +37 -0
- package/package.json +13 -4
- package/dist/modular/chunks/obi-widget-58dc98b0.js.map +0 -1
package/dist/sentry.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function captureException(error: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./session-start-modal";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { SessionStartModal } from './session-start-modal';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
render: (args: SessionStartModal) => SessionStartModal;
|
|
7
|
+
argTypes: {
|
|
8
|
+
session: {
|
|
9
|
+
control: "object";
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
onStart: {
|
|
13
|
+
action: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
onClose: {
|
|
17
|
+
action: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
args: {
|
|
22
|
+
session: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
imageSrc: string;
|
|
27
|
+
};
|
|
28
|
+
onStart: (sessionToken: string) => void;
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<SessionStartModal>;
|
|
34
|
+
export declare const Primary: Story;
|
|
35
|
+
export declare const LongDescription: Story;
|
|
36
|
+
export declare const ShortTitle: Story;
|
|
37
|
+
export declare const WithCustomImage: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "obi-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "JavaScript SDK for Obi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/obi-sdk.umd.js",
|
|
@@ -24,20 +24,25 @@
|
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
25
25
|
"homepage": "https://www.iamobi.ai",
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@sentry/browser": "^9.23.0",
|
|
28
|
+
"@sentry/vite-plugin": "^3.5.0",
|
|
27
29
|
"html2canvas-pro": "^1.5.11",
|
|
28
30
|
"lit": "^3.0.0",
|
|
29
31
|
"ts-pattern": "^5.7.0",
|
|
30
32
|
"zod": "^3.22.0",
|
|
31
|
-
"@obi/obi-
|
|
33
|
+
"@obi/obi-client": "0.2.0",
|
|
32
34
|
"@obi/url-params": "0.2.0",
|
|
33
|
-
"@obi/obi-
|
|
35
|
+
"@obi/obi-session": "0.3.0"
|
|
34
36
|
},
|
|
35
37
|
"peerDependencies": {
|
|
36
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
37
39
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
42
|
+
"@chromatic-com/storybook": "^4.0.0-0",
|
|
40
43
|
"@eslint/js": "^8.56.0",
|
|
44
|
+
"@storybook/addon-docs": "^9.0.0",
|
|
45
|
+
"@storybook/web-components-vite": "^9.0.0",
|
|
41
46
|
"@types/node": "^22.15.18",
|
|
42
47
|
"@types/react": "^18.0.0",
|
|
43
48
|
"@types/react-dom": "^18.0.0",
|
|
@@ -47,10 +52,12 @@
|
|
|
47
52
|
"eslint": "^8.45.0",
|
|
48
53
|
"eslint-config-prettier": "^9.0.0",
|
|
49
54
|
"eslint-plugin-import": "^2.28.0",
|
|
55
|
+
"eslint-plugin-storybook": "^9.0.0",
|
|
50
56
|
"prettier": "^3.0.0",
|
|
51
57
|
"react": "^18.2.0",
|
|
52
58
|
"react-dom": "^18.2.0",
|
|
53
59
|
"rimraf": "^6.0.1",
|
|
60
|
+
"storybook": "^9.0.0",
|
|
54
61
|
"terser": "^5.39.0",
|
|
55
62
|
"typescript": "^5.8.3",
|
|
56
63
|
"vite": "^4.5.0"
|
|
@@ -65,6 +72,8 @@
|
|
|
65
72
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
66
73
|
"preview": "vite preview",
|
|
67
74
|
"types": "tsc --emitDeclarationOnly",
|
|
68
|
-
"clean": "rimraf dist"
|
|
75
|
+
"clean": "rimraf dist",
|
|
76
|
+
"storybook": "storybook dev -p 6006",
|
|
77
|
+
"build-storybook": "storybook build"
|
|
69
78
|
}
|
|
70
79
|
}
|