Skip to content

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

Merged
merged 38 commits into from
Oct 10, 2024
Merged

Update methods.mdx #86

merged 38 commits into from
Oct 10, 2024

Conversation

Atul-Butola
Copy link
Contributor

ISS-94327

@Atul-Butola Atul-Butola requested a review from a team as a code owner August 29, 2024 05:11
@Atul-Butola Atul-Butola marked this pull request as draft August 29, 2024 05:14
@Atul-Butola Atul-Butola changed the title **WIP** Update methods.mdx Update methods.mdx Sep 13, 2024
@Atul-Butola Atul-Butola marked this pull request as ready for review September 13, 2024 09:38
Copy link
Contributor

Copy link
Contributor

window.plugSDK.toggleWidget(true);
window.plugSDK.toggleSearchAgent(true);
plugSDK.toggleWidget(true, 'create_conversation', {
startConversationContent: 'Hi',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent.

Suggested change
startConversationContent: 'Hi',
startConversationContent: 'Hi',

Copy link
Contributor

github-actions bot commented Oct 1, 2024

Copy link
Contributor

github-actions bot commented Oct 1, 2024

Copy link
Contributor

github-actions bot commented Oct 9, 2024

Copy link
Contributor

github-actions bot commented Oct 9, 2024

@Atul-Butola Atul-Butola requested a review from bc-devrev October 9, 2024 11:39
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Copy link
Contributor

github-actions bot commented Oct 9, 2024

🌟 EkLine Reviewer

Hello! 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.
Copy link
Contributor

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)

Suggested change
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).
Copy link
Contributor

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) |
Copy link
Contributor

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)

Copy link
Contributor

github-actions bot commented Oct 9, 2024

Copy link
Contributor

github-actions bot commented Oct 9, 2024

|`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) |
Copy link
Contributor

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)

Suggested change
|`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;}` |
Copy link
Contributor

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)

Suggested change
|`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 |
Copy link
Contributor

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)

Suggested change
|`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 |

Copy link
Contributor

github-actions bot commented Oct 9, 2024

@Atul-Butola Atul-Butola requested a review from bc-devrev October 10, 2024 11:51
@Atul-Butola Atul-Butola merged commit ead3e62 into main Oct 10, 2024
3 checks passed
@Atul-Butola Atul-Butola deleted the SDK-methods branch October 10, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants