obi-sdk 0.2.0 → 0.3.1
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/core/constants.d.ts +1 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/init.d.ts +1 -0
- package/dist/core/types.d.ts +46 -0
- package/dist/empty-loader.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/loader.d.ts +29 -0
- package/dist/obi-sdk.es.js +12683 -10687
- package/dist/obi-sdk.umd.js +118 -93
- package/dist/ui/components/audio-equalizer.d.ts +20 -0
- package/dist/ui/components/control-panel.d.ts +12 -0
- package/dist/ui/components/courses/course-modal.d.ts +18 -0
- package/dist/ui/components/courses/courses.d.ts +26 -0
- package/dist/ui/components/courses/index.d.ts +1 -0
- package/dist/ui/components/dot-loader.d.ts +20 -0
- package/dist/ui/components/icons.d.ts +6 -0
- package/dist/ui/components/index.d.ts +11 -0
- package/dist/ui/components/nav-icon.d.ts +10 -0
- package/dist/ui/components/navigation-bar.d.ts +19 -0
- package/dist/ui/components/obi-widget.d.ts +50 -0
- package/dist/ui/components/searching-loader.d.ts +5 -0
- package/dist/ui/components/status-widget.d.ts +8 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/storage.d.ts +45 -0
- package/package.json +18 -19
- package/dist/modular/chunks/index-2d0b05af.js +0 -26738
- package/dist/modular/chunks/index-2d0b05af.js.map +0 -1
- package/dist/modular/chunks/obi-widget-0970cbbe.js +0 -2221
- package/dist/modular/chunks/obi-widget-0970cbbe.js.map +0 -1
- package/dist/modular/core.js +0 -9
- package/dist/modular/core.js.map +0 -1
- package/dist/modular/index.js +0 -29
- package/dist/modular/index.js.map +0 -1
- package/dist/modular/ui.js +0 -253
- package/dist/modular/ui.js.map +0 -1
- package/dist/obi-loader.js +0 -8
- package/dist/obi-sdk.standalone.iife.js +0 -558
- package/dist/obi-sdk.standalone.iife.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const API_BASE_URL: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initializeObiWidget(): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ObiSDKConfigSchema: z.ZodObject<{
|
|
3
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
4
|
+
enableVoice: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
enableScreenCapture: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
debug: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
metadata?: any;
|
|
19
|
+
}>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
enableVoice: boolean;
|
|
22
|
+
enableScreenCapture: boolean;
|
|
23
|
+
debug: boolean;
|
|
24
|
+
apiKey?: string | undefined;
|
|
25
|
+
user?: {
|
|
26
|
+
id: string;
|
|
27
|
+
email?: string | undefined;
|
|
28
|
+
metadata?: any;
|
|
29
|
+
} | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
apiKey?: string | undefined;
|
|
32
|
+
enableVoice?: boolean | undefined;
|
|
33
|
+
enableScreenCapture?: boolean | undefined;
|
|
34
|
+
debug?: boolean | undefined;
|
|
35
|
+
user?: {
|
|
36
|
+
id: string;
|
|
37
|
+
email?: string | undefined;
|
|
38
|
+
metadata?: any;
|
|
39
|
+
} | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export type ObiSDKConfig = z.infer<typeof ObiSDKConfigSchema>;
|
|
42
|
+
export interface ObiError {
|
|
43
|
+
code: string;
|
|
44
|
+
message: string;
|
|
45
|
+
details?: unknown;
|
|
46
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/loader.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Obi Widget Loader Script
|
|
3
|
+
*
|
|
4
|
+
* This script dynamically loads the Obi Widget web component on any webpage
|
|
5
|
+
* with a simple script tag inclusion.
|
|
6
|
+
*/
|
|
7
|
+
interface ObiWidgetConfig {
|
|
8
|
+
apiKey: string;
|
|
9
|
+
position?: "bottom-right" | "bottom-left" | "bottom-center" | "top-right" | "top-left" | "top-center" | "middle-left" | "middle-right";
|
|
10
|
+
user?: {
|
|
11
|
+
id: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
metadata?: any;
|
|
14
|
+
};
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare class ObiWidgetLoader {
|
|
18
|
+
private config;
|
|
19
|
+
private widget;
|
|
20
|
+
constructor(config?: Partial<ObiWidgetConfig>);
|
|
21
|
+
private init;
|
|
22
|
+
private loadScript;
|
|
23
|
+
private fetchLatestVersion;
|
|
24
|
+
private createWidget;
|
|
25
|
+
private initializeWidget;
|
|
26
|
+
initialize(): void;
|
|
27
|
+
getWidget(): HTMLElement | null;
|
|
28
|
+
}
|
|
29
|
+
export { ObiWidgetLoader };
|