Commit Graph

9 Commits

Author SHA1 Message Date
mlogclub bd9fad68a7 refactor: update Kefu widget configuration to use dynamic user token retrieval
- Changed `userToken` property to `getUserToken` function in KefuWidgetHostConfig for dynamic token fetching.
- Introduced KefuWidgetRuntimeConfig to manage runtime-specific configurations.
- Updated readKefuWidgetConfig and setKefuWidgetConfig functions to accommodate new configuration structure.
- Enhanced cs-ai-agent-sdk.js to handle user token resolution and frame configuration.
- Added tests for dynamic user token retrieval in cs-ai-agent-sdk.test.mjs.
- Removed deprecated cs-agent-widget.js file as part of the refactor.
2026-05-06 18:19:49 +08:00
mlogclub 7592203f77 feat(widget-demo): add copy functionality for widget snippet with visual feedback 2026-04-28 23:13:49 +08:00
mlogclub 55d55101df feat(widget-demo): add direct chat URL generation and copy functionality 2026-04-28 23:00:22 +08:00
mlogclub f287727c59 feat: add JWT authentication support to KefuWidgetDemo 2026-04-28 18:31:47 +08:00
mlogclub c1ab26ed71 feat: add origin state to KefuWidgetDemo for dynamic script source 2026-04-24 22:42:59 +08:00
mlogclub ea94837db2 feat: add web channel configuration support and update widget response structure 2026-04-24 22:24:19 +08:00
mlogclub c945f1e73d feat: add minified SDK build script and update widget script references 2026-04-24 19:43:59 +08:00
mlogclub 197631b4db fix: update import paths and enhance scrollbar styles in layout and main.scss 2026-04-24 19:26:10 +08:00
mlogclub 92fd571f28 feat: add Kefu widget and related components for customer service integration 2026-04-24 19:17:07 +08:00