-
Notifications
You must be signed in to change notification settings - Fork 3
Update methods.mdx #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ISS-94327
Spelling.
This reverts commit 60736a4.
Published docs preview URL: https://devrev-preview-66d46d45-4fea-4eb4-ae9b-5571095b4047.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-fcc3d810-2d64-41f8-a160-94f131b42d73.docs.buildwithfern.com |
fern/docs/pages/plug-sdk/methods.mdx
Outdated
window.plugSDK.toggleWidget(true); | ||
window.plugSDK.toggleSearchAgent(true); | ||
plugSDK.toggleWidget(true, 'create_conversation', { | ||
startConversationContent: 'Hi', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent.
startConversationContent: 'Hi', | |
startConversationContent: 'Hi', |
Published docs preview URL: https://devrev-preview-77b936ea-e175-4c69-9b69-61d3cb3a440e.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-12515243-d60c-4216-8ca0-aaaa6d18569d.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-7bb89ab6-b4ac-47c9-863e-a03e86ae83d2.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-843a230c-41ce-4260-944f-9e70f0296002.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-b9d68904-3678-401e-a54c-3b96fe0afbe8.docs.buildwithfern.com |
🌟 EkLine ReviewerHello! I’m here to help improve your docs. I’ve reviewed your pull request, and left in-line suggestions for quick fixes. For details, visit the Analytics Page. For questions or feedback, please email [email protected]. |
|
||
- `ON_PLUG_WIDGET_CLOSED` The PLuG widget is closed. | ||
<Callout intent="note"> | ||
Once the `shutdown()` method is called, all other widget functionalities, such as session recording and Nudges, will also be stopped. You will need to reinitialize the widget to reactivate these features. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [EkLine] reported by reviewdog 🐶
Suggestions:
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
Once the `shutdown()` method is called, all other widget functionalities, such as session recording and Nudges, will also be stopped. You will need to reinitialize the widget to reactivate these features. | |
Once the `shutdown()` method is called, all other widget functionalities, such as session recording and Nudges, also stop. You need to reinitialize the widget to reactivate these features. |
|
||
## Track events | ||
|
||
To track user events using PLuG, utilize the `trackEvent` method available in the PLuG SDK. This method automatically links the event to the active user profile within the widget. For more details on user identification within the PLuG widget, refer to [Identify your users with PLuG](https://devrev.ai/docs/plug/identify-web-user). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [EkLine] reported by reviewdog 🐶
Confirm the link. The URL 'https://devrev.ai/docs/plug/identify-web-user' seems inaccessible with error code 404. It might be incorrect or improperly formatted. (EK20001)
|`enable_session_recording` |Instructs the widget to determine whether to start the session recording. |Boolean (True or False) | | ||
|`session_token` |Identifies the user interacting with your app. |String | | ||
|`primary_text_color` |The color of the launcher, button text for new tickets and conversations, conversation user text, and more. It must be a valid hex color code, such as `#f0f0f0`. |String | | ||
|`session_recording_options` |Options for recording observability sessions. |Refer to [Session recording options](https://devrev.ai/docs/plug/session-recording) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [EkLine] reported by reviewdog 🐶
Confirm the link. The URL 'https://devrev.ai/docs/plug/session-recording' seems inaccessible with error code 404. It might be incorrect or improperly formatted. (EK20001)
Published docs preview URL: https://devrev-preview-4531b68d-9ee3-4a8b-b663-d7daca0fab2e.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-9db144aa-e12c-43b8-a82a-49f8b740010c.docs.buildwithfern.com |
|`primary_text_color` |The color of the launcher, button text for new tickets and conversations, conversation user text, and more. It must be a valid hex color code, such as `#f0f0f0`. |String | | ||
|`session_recording_options` |Options for recording observability sessions. |Refer to [Session recording options](https://devrev.ai/docs/plug/session-recording) | | ||
|`accent_color` |The accent color of the PLuG affects the launcher, new ticket and conversation buttons, conversation user text, and more. |String | | ||
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget will be attached. You can also set this selector from the PLuG settings on app.devrev.ai. If both sources are set, this value will be considered the definitive source. |Boolean (True or False) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [EkLine] reported by reviewdog 🐶
Suggestions:
- Use 'DevRev' instead of 'devrev'. (EK25050)
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget will be attached. You can also set this selector from the PLuG settings on app.devrev.ai. If both sources are set, this value will be considered the definitive source. |Boolean (True or False) | | |
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget attaches. You can also set this selector from the PLuG settings on app.DevRev.ai. If both sources are set, this value is considered the definitive source. |Boolean (True or False) | |
|`session_recording_options` |Options for recording observability sessions. |Refer to [Session recording options](https://devrev.ai/docs/plug/session-recording) | | ||
|`accent_color` |The accent color of the PLuG affects the launcher, new ticket and conversation buttons, conversation user text, and more. |String | | ||
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget will be attached. You can also set this selector from the PLuG settings on app.devrev.ai. If both sources are set, this value will be considered the definitive source. |Boolean (True or False) | | ||
|`spacing` |Padding from the launcher: This padding can also be set in the PLuG settings on app.devrev.ai. If a value is specified in both places, this value will be considered the definitive source. Bottom: Padding from the bottom of the launcher. Side: Spacing from the sides of the launcher |object `{bottom: string; side: string;}` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [EkLine] reported by reviewdog 🐶
Suggestions:
- Use 'DevRev' instead of 'devrev'. (EK25050)
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`spacing` |Padding from the launcher: This padding can also be set in the PLuG settings on app.devrev.ai. If a value is specified in both places, this value will be considered the definitive source. Bottom: Padding from the bottom of the launcher. Side: Spacing from the sides of the launcher |object `{bottom: string; side: string;}` | | |
|`spacing` |Padding from the launcher: This padding can also be set in the PLuG settings on app.DevRev.ai. If a value is specified in both places, this value is considered the definitive source. Bottom: Padding from the bottom of the launcher. Side: Spacing from the sides of the launcher |object `{bottom: string; side: string;}` | |
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget will be attached. You can also set this selector from the PLuG settings on app.devrev.ai. If both sources are set, this value will be considered the definitive source. |Boolean (True or False) | | ||
|`spacing` |Padding from the launcher: This padding can also be set in the PLuG settings on app.devrev.ai. If a value is specified in both places, this value will be considered the definitive source. Bottom: Padding from the bottom of the launcher. Side: Spacing from the sides of the launcher |object `{bottom: string; side: string;}` | | ||
|`theme` |The color scheme for the launcher and widget. |`light` or `dark` | | ||
|`widget_alignment` |The PLuG widget can be positioned on either the left or right side of the launcher. You can also adjust the widget alignment through the PLuG settings at app.devrev.ai. If alignment settings are configured in both places, the value from app.devrev.ai will override the launcher setting. |left or right | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [EkLine] reported by reviewdog 🐶
Suggestions:
- Use 'DevRev' instead of 'devrev'. (EK25050)
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`widget_alignment` |The PLuG widget can be positioned on either the left or right side of the launcher. You can also adjust the widget alignment through the PLuG settings at app.devrev.ai. If alignment settings are configured in both places, the value from app.devrev.ai will override the launcher setting. |left or right | | |
|`widget_alignment` |The PLuG widget can be positioned on either the left or right side of the launcher. You can also adjust the widget alignment through the PLuG settings at app.DevRev.ai. If alignment settings are configured in both places, the value from app.DevRev.ai overrides the launcher setting. |left or right | |
Published docs preview URL: https://devrev-preview-ee931cdb-91f5-475c-bafc-628e91a573a8.docs.buildwithfern.com |
ISS-94327