obi-sdk 0.17.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.
- package/README.md +1 -1
- package/dist/index.js +62 -0
- package/dist/obi-sdk.standalone.iife.js +62 -2646
- package/dist/src/loader.d.ts +11 -0
- package/dist/src/mount.d.ts +1 -0
- package/dist/src/sdk.d.ts +77 -0
- package/dist/src/types.d.ts +12 -0
- package/dist/src/widget.d.ts +6 -0
- package/package.json +13 -31
- package/dist/core/config-logger.d.ts +0 -30
- package/dist/core/constants.d.ts +0 -1
- package/dist/core/index.d.ts +0 -3
- package/dist/core/init.d.ts +0 -1
- package/dist/core/types.d.ts +0 -46
- package/dist/empty-loader.d.ts +0 -5
- package/dist/index.d.ts +0 -2
- package/dist/loader.d.ts +0 -33
- package/dist/modular/chunks/index-a481947c.js +0 -6
- package/dist/modular/chunks/index-a481947c.js.map +0 -1
- package/dist/modular/chunks/obi-widget-eab5da7a.js +0 -22450
- package/dist/modular/chunks/obi-widget-eab5da7a.js.map +0 -1
- package/dist/modular/chunks/types-f38a47f6.js +0 -22431
- package/dist/modular/chunks/types-f38a47f6.js.map +0 -1
- package/dist/modular/core.js +0 -4086
- package/dist/modular/core.js.map +0 -1
- package/dist/modular/index.js +0 -361
- package/dist/modular/index.js.map +0 -1
- package/dist/modular/ui.js +0 -110
- package/dist/modular/ui.js.map +0 -1
- package/dist/obi-sdk.standalone.iife.js.map +0 -1
- package/dist/react.d.ts +0 -6
- package/dist/react.es.js +0 -32910
- package/dist/react.es.js.map +0 -1
- package/dist/react.umd.js +0 -2843
- package/dist/react.umd.js.map +0 -1
- package/dist/ui/components/audio-equalizer.d.ts +0 -21
- package/dist/ui/components/courses/course-modal.d.ts +0 -20
- package/dist/ui/components/courses/courses.d.ts +0 -31
- package/dist/ui/components/courses/index.d.ts +0 -1
- package/dist/ui/components/dot-loader.d.ts +0 -20
- package/dist/ui/components/icons.d.ts +0 -6
- package/dist/ui/components/index.d.ts +0 -10
- package/dist/ui/components/nav-icon.d.ts +0 -10
- package/dist/ui/components/navigation-bar.d.ts +0 -19
- package/dist/ui/components/obi-widget/index.d.ts +0 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +0 -104
- package/dist/ui/components/obi-widget/user-update.test.d.ts +0 -1
- package/dist/ui/components/searching-loader.d.ts +0 -5
- package/dist/ui/components/status-widget.d.ts +0 -8
- package/dist/ui/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/storage.d.ts +0 -45
- package/index.d.ts +0 -8
- /package/dist/{test/setup.d.ts → src/empty.test.d.ts} +0 -0
- /package/dist/{ui/components/obi-widget/obi-widget.test.d.ts → src/index.d.ts} +0 -0
- /package/dist/{sentry.d.ts → src/sentry.d.ts} +0 -0
- /package/dist/{utils → src}/url-matcher.d.ts +0 -0
- /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) |
|