@archbee/app-widget 1.1.25 → 1.1.27
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 -0
- package/index.esm.js +457 -311
- package/package.json +1 -1
- package/src/lib/main.d.ts +13 -20
- package/src/lib/scripts/initScripts.d.ts +1 -1
- package/src/lib/scripts/render.d.ts +1 -1
- package/src/lib/types.d.ts +5 -4
package/README.md
CHANGED
|
@@ -106,6 +106,7 @@ ReactDOM.render(<App />, appElement);
|
|
|
106
106
|
| `widgetType` | `docs \| search` | `optional` | Default value is `docs`. This opens the widget with the desired behaviour. ` docs`` type will open the widget with the default behaviour, `search` will open a search widget bar that shows a search bar with AI support (if included in your subscription) |
|
|
107
107
|
| `bubble` | `ask \| invisible` | `optional` | Default value is `invisible`. This prop will display an ask bubble in the bottom-right of your screen. Whenever someone clicks on it, the search widget will open. |
|
|
108
108
|
| `loadingStrategy` | `eager \| lazy` | `optional` | Default value is `lazy`. While `lazy` loading delays the initialization of a resource, `eager` loading initializes or loads the widget as soon as the code is executed. |
|
|
109
|
+
| `anchor` | `string` | `optional` | You can provide your `class`, `id` or `path` to a DOM element where you would like the widget to anchor and instantiate. The container provided should have `position: relative` as the widget will be displayed based on the first relative parent found. |
|
|
109
110
|
| `onWidgetOpen` | `void` | `optional` | Callback that is called after widget opens. |
|
|
110
111
|
| `onWidgetClose` | `void` | `optional` | Callback that is called after widget closes. |
|
|
111
112
|
|