obi-sdk 0.4.4 → 0.5.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.
Files changed (31) hide show
  1. package/README.md +0 -1
  2. package/dist/core/constants.d.ts +1 -1
  3. package/dist/core/init.d.ts +1 -1
  4. package/dist/loader.d.ts +0 -1
  5. package/dist/modular/chunks/index-ade17481.js +6 -0
  6. package/dist/modular/chunks/index-ade17481.js.map +1 -0
  7. package/dist/modular/chunks/{obi-widget-f540f7e0.js → obi-widget-2b8e7b28.js} +520 -136
  8. package/dist/modular/chunks/obi-widget-2b8e7b28.js.map +1 -0
  9. package/dist/modular/chunks/{types-e0297e7b.js → types-fad85d8c.js} +2 -2
  10. package/dist/modular/chunks/types-fad85d8c.js.map +1 -0
  11. package/dist/modular/core.js +1 -1
  12. package/dist/modular/index.js +37 -52
  13. package/dist/modular/index.js.map +1 -1
  14. package/dist/modular/ui.js +11 -11
  15. package/dist/modular/ui.js.map +1 -1
  16. package/dist/obi-sdk.es.js +556 -185
  17. package/dist/obi-sdk.es.js.map +1 -1
  18. package/dist/obi-sdk.standalone.iife.js +360 -127
  19. package/dist/obi-sdk.standalone.iife.js.map +1 -1
  20. package/dist/obi-sdk.umd.js +347 -114
  21. package/dist/obi-sdk.umd.js.map +1 -1
  22. package/dist/ui/components/courses/course-modal.d.ts +3 -0
  23. package/dist/ui/components/courses/courses.d.ts +4 -2
  24. package/dist/ui/components/obi-widget/index.d.ts +1 -0
  25. package/dist/ui/components/{obi-widget.d.ts → obi-widget/obi-widget.d.ts} +11 -6
  26. package/dist/utils/color.d.ts +12 -0
  27. package/dist/utils/index.d.ts +1 -0
  28. package/package.json +11 -3
  29. package/dist/modular/chunks/obi-widget-f540f7e0.js.map +0 -1
  30. package/dist/modular/chunks/types-e0297e7b.js.map +0 -1
  31. package/dist/ui/components/session-start-modal/session-start-modal.stories.d.ts +0 -37
package/README.md CHANGED
@@ -23,7 +23,6 @@ The loader accepts the following configuration options:
23
23
  | `isActive` | boolean | `true` | Whether to show the widget. Set to `false` to disable the widget for specific users |
24
24
  | `linkOnlyAccess` | boolean | `false` | Hide the widget unless accessed via a session link. Perfect for trial periods where only customers with direct links should see the widget |
25
25
  | `primaryColor` | string | - | Custom primary color for the widget UI (CSS color value) |
26
- | `secondaryColor` | string | - | Custom secondary color for the widget UI (CSS color value) |
27
26
 
28
27
  ## Installation
29
28
 
@@ -1 +1 @@
1
- export declare const API_BASE_URL: any;
1
+ export declare const API_BASE_URL: string;
@@ -1 +1 @@
1
- export declare function initializeObiWidget(): void;
1
+ export declare function initializeObiWidget(): Promise<void>;
package/dist/loader.d.ts CHANGED
@@ -15,7 +15,6 @@ interface ObiWidgetConfig {
15
15
  isActive?: boolean;
16
16
  linkOnlyAccess?: boolean;
17
17
  primaryColor?: string;
18
- secondaryColor?: string;
19
18
  }
20
19
  declare class ObiWidgetLoader {
21
20
  private config;
@@ -0,0 +1,6 @@
1
+ import { O } from "./obi-widget-2b8e7b28.js";
2
+ import "./types-fad85d8c.js";
3
+ export {
4
+ O as ObiWidget
5
+ };
6
+ //# sourceMappingURL=index-ade17481.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ade17481.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}