Closed ulises-jeremias closed 3 months ago
The changes introduce and update functionalities related to Zendesk and Google ReCaptcha third-party integrations within a React application. This includes the addition of context and provider for Zendesk, defining Zendesk-related TypeScript interfaces, and updating script handling functions. These modifications facilitate interaction with the Zendesk API and streamline the management of ReCaptcha scripts.
File Path | Change Summary |
---|---|
...zendesk/Context.tsx |
Added Zendesk context with a context provider and a custom hook for usage within components. |
...zendesk/Provider.tsx |
Introduced ZendeskProvider to manage Zendesk script injection and context provision. |
...zendesk/Zendesk.tsx |
Created Zendesk component to handle Zendesk script loading on mount and unmount. |
...zendesk/zendesk.d.ts |
Added TypeScript interfaces defining structures for Zendesk settings and widget commands. |
...recaptcha/scripts.ts |
Updated ReCaptcha script handling functions and renamed removeScript function. |
...zendesk/scripts.ts |
Added Zendesk script generation, injection, and removal functions with support for callbacks. |
A script was written in the night, To manage Zen's helpful light. ✨ ReCaptcha's guard, a vigilant knight, Keeps bots away from users' sight. 🤖🚫 Contexts and hooks, all so tight, CodeRabbit sings, with pure delight! 🐇🎶
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Warnings | |
---|---|
:warning: | This PR is changing more than 200 lines. |
:warning: | This PR is changing more than 10 files. |
Messages | |
---|---|
:book: | Thanks for updating docs! We :heart: documentation! |
Generated by :no_entry_sign: dangerJS against 13226e41b1ed9e79f2104a7a8790697fa8c36293
@coderabbitai review
What's this PR do?
@nanlabs/thirdparty
@nanlabs/react-thirdparty
@ulises-jeremias @rpmolina
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes