obi-sdk 0.16.0 → 0.18.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.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +62 -0
  3. package/dist/obi-sdk.standalone.iife.js +62 -2645
  4. package/dist/src/loader.d.ts +11 -0
  5. package/dist/src/mount.d.ts +1 -0
  6. package/dist/src/sdk.d.ts +77 -0
  7. package/dist/src/types.d.ts +12 -0
  8. package/dist/src/widget.d.ts +6 -0
  9. package/package.json +11 -29
  10. package/dist/core/config-logger.d.ts +0 -30
  11. package/dist/core/constants.d.ts +0 -1
  12. package/dist/core/index.d.ts +0 -3
  13. package/dist/core/init.d.ts +0 -1
  14. package/dist/core/types.d.ts +0 -46
  15. package/dist/empty-loader.d.ts +0 -5
  16. package/dist/index.d.ts +0 -2
  17. package/dist/loader.d.ts +0 -33
  18. package/dist/modular/chunks/index-0ae60d8f.js +0 -6
  19. package/dist/modular/chunks/index-0ae60d8f.js.map +0 -1
  20. package/dist/modular/chunks/obi-widget-1f912837.js +0 -22390
  21. package/dist/modular/chunks/obi-widget-1f912837.js.map +0 -1
  22. package/dist/modular/chunks/types-f38a47f6.js +0 -22431
  23. package/dist/modular/chunks/types-f38a47f6.js.map +0 -1
  24. package/dist/modular/core.js +0 -4086
  25. package/dist/modular/core.js.map +0 -1
  26. package/dist/modular/index.js +0 -361
  27. package/dist/modular/index.js.map +0 -1
  28. package/dist/modular/ui.js +0 -110
  29. package/dist/modular/ui.js.map +0 -1
  30. package/dist/obi-sdk.standalone.iife.js.map +0 -1
  31. package/dist/react.d.ts +0 -6
  32. package/dist/react.es.js +0 -32868
  33. package/dist/react.es.js.map +0 -1
  34. package/dist/react.umd.js +0 -2842
  35. package/dist/react.umd.js.map +0 -1
  36. package/dist/ui/components/audio-equalizer.d.ts +0 -21
  37. package/dist/ui/components/courses/course-modal.d.ts +0 -20
  38. package/dist/ui/components/courses/courses.d.ts +0 -31
  39. package/dist/ui/components/courses/index.d.ts +0 -1
  40. package/dist/ui/components/dot-loader.d.ts +0 -20
  41. package/dist/ui/components/icons.d.ts +0 -6
  42. package/dist/ui/components/index.d.ts +0 -10
  43. package/dist/ui/components/nav-icon.d.ts +0 -10
  44. package/dist/ui/components/navigation-bar.d.ts +0 -19
  45. package/dist/ui/components/obi-widget/index.d.ts +0 -1
  46. package/dist/ui/components/obi-widget/obi-widget.d.ts +0 -103
  47. package/dist/ui/components/obi-widget/user-update.test.d.ts +0 -1
  48. package/dist/ui/components/searching-loader.d.ts +0 -5
  49. package/dist/ui/components/status-widget.d.ts +0 -8
  50. package/dist/ui/index.d.ts +0 -1
  51. package/dist/utils/index.d.ts +0 -2
  52. package/dist/utils/storage.d.ts +0 -45
  53. package/index.d.ts +0 -8
  54. /package/dist/{test/setup.d.ts → src/empty.test.d.ts} +0 -0
  55. /package/dist/{ui/components/obi-widget/obi-widget.test.d.ts → src/index.d.ts} +0 -0
  56. /package/dist/{sentry.d.ts → src/sentry.d.ts} +0 -0
  57. /package/dist/{utils → src}/url-matcher.d.ts +0 -0
  58. /package/dist/{utils → src}/url-matcher.test.d.ts +0 -0
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) |