obi-sdk 0.17.0 → 0.18.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 (53) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +62 -0
  3. package/dist/obi-sdk.standalone.iife.js +62 -2646
  4. package/package.json +13 -31
  5. package/dist/core/config-logger.d.ts +0 -30
  6. package/dist/core/constants.d.ts +0 -1
  7. package/dist/core/index.d.ts +0 -3
  8. package/dist/core/init.d.ts +0 -1
  9. package/dist/core/types.d.ts +0 -46
  10. package/dist/empty-loader.d.ts +0 -5
  11. package/dist/index.d.ts +0 -2
  12. package/dist/loader.d.ts +0 -33
  13. package/dist/modular/chunks/index-a481947c.js +0 -6
  14. package/dist/modular/chunks/index-a481947c.js.map +0 -1
  15. package/dist/modular/chunks/obi-widget-eab5da7a.js +0 -22450
  16. package/dist/modular/chunks/obi-widget-eab5da7a.js.map +0 -1
  17. package/dist/modular/chunks/types-f38a47f6.js +0 -22431
  18. package/dist/modular/chunks/types-f38a47f6.js.map +0 -1
  19. package/dist/modular/core.js +0 -4086
  20. package/dist/modular/core.js.map +0 -1
  21. package/dist/modular/index.js +0 -361
  22. package/dist/modular/index.js.map +0 -1
  23. package/dist/modular/ui.js +0 -110
  24. package/dist/modular/ui.js.map +0 -1
  25. package/dist/obi-sdk.standalone.iife.js.map +0 -1
  26. package/dist/react.d.ts +0 -6
  27. package/dist/react.es.js +0 -32910
  28. package/dist/react.es.js.map +0 -1
  29. package/dist/react.umd.js +0 -2843
  30. package/dist/react.umd.js.map +0 -1
  31. package/dist/sentry.d.ts +0 -39
  32. package/dist/test/setup.d.ts +0 -1
  33. package/dist/ui/components/audio-equalizer.d.ts +0 -21
  34. package/dist/ui/components/courses/course-modal.d.ts +0 -20
  35. package/dist/ui/components/courses/courses.d.ts +0 -31
  36. package/dist/ui/components/courses/index.d.ts +0 -1
  37. package/dist/ui/components/dot-loader.d.ts +0 -20
  38. package/dist/ui/components/icons.d.ts +0 -6
  39. package/dist/ui/components/index.d.ts +0 -10
  40. package/dist/ui/components/nav-icon.d.ts +0 -10
  41. package/dist/ui/components/navigation-bar.d.ts +0 -19
  42. package/dist/ui/components/obi-widget/index.d.ts +0 -1
  43. package/dist/ui/components/obi-widget/obi-widget.d.ts +0 -104
  44. package/dist/ui/components/obi-widget/obi-widget.test.d.ts +0 -1
  45. package/dist/ui/components/obi-widget/user-update.test.d.ts +0 -1
  46. package/dist/ui/components/searching-loader.d.ts +0 -5
  47. package/dist/ui/components/status-widget.d.ts +0 -8
  48. package/dist/ui/index.d.ts +0 -1
  49. package/dist/utils/index.d.ts +0 -2
  50. package/dist/utils/storage.d.ts +0 -45
  51. package/dist/utils/url-matcher.d.ts +0 -16
  52. package/dist/utils/url-matcher.test.d.ts +0 -1
  53. package/index.d.ts +0 -8
package/README.md CHANGED
@@ -19,7 +19,7 @@ The loader accepts the following configuration options:
19
19
  | ---------------- | ------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
20
  | `position` | string | `'bottom-right'` | Position of the widget on the page. Options: `'bottom-right'`, `'bottom-left'`, `'bottom-center'`, `'top-right'`, `'top-left'`, `'top-center'`, `'middle-left'`, `'middle-right'` |
21
21
  | `apiKey` | string | - | Your Obi API key (required for production) |
22
- | `user` | object | - | User information with `id` (required), `email` (optional) and `metadata` (optional) |
22
+ | `user` | object | - | User information with `id` (required), `email`, `first_name`, `last_name`, `company` (all optional), and `metadata` (optional) for additional custom fields |
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) |