chore: update support channels (#27188)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Nite Knite
2025-10-21 15:48:02 +08:00
committed by GitHub
parent 05f66fcf0d
commit 9a9d6a4a2b
26 changed files with 70 additions and 27 deletions

View File

@@ -21,3 +21,13 @@ export const setZendeskConversationFields = (fields: ConversationField[], callba
if (!IS_CE_EDITION && window.zE)
window.zE('messenger:set', 'conversationFields', fields, callback)
}
export const setZendeskWidgetVisibility = (visible: boolean) => {
if (!IS_CE_EDITION && window.zE)
window.zE('messenger', visible ? 'show' : 'hide')
}
export const toggleZendeskWindow = (open: boolean) => {
if (!IS_CE_EDITION && window.zE)
window.zE('messenger', open ? 'open' : 'close')
}