PromucFlow_constructor/app/client/src/pages/Editor/CustomWidgetBuilder
Pawan Kumar 819881989e
chore: Refactor WDS custom widget (#38038)
/ok-to-test tags="@tag.Widget"

Fixes #38028 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced a new `IframeMessenger` class for improved communication
between the parent window and iframe.
- Added `onConsole`, `onTriggerEvent`, and `onUpdateModel` props to the
`Preview` component for enhanced event handling.
- Streamlined HTML template generation with the `createHtmlTemplate`
function.

- **Bug Fixes**
- Removed unnecessary UI-related event handling from the widget,
simplifying the communication structure.
- Updated event names in template files from `"onReset"` to
`"onResetClick"` for clarity.

- **Refactor**
	- Renamed `CustomComponent` to `CustomWidgetComponent` for clarity.
	- Modularized message handling logic in the `CustomWidgetComponent`.
- Refactored the `defaultApp.ts` to use dynamic template data instead of
hardcoded values.

- **Style**
	- Updated CSS for the `.container` class to enhance layout consistency.

- **Tests**
	- Simplified test assertions in the `customWidgetscript` test suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/12234751176>
> Commit: eb55fbdf716e48b677fc01ea40bf6a894ffd75ba
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12234751176&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Widget`
> Spec:
> <hr>Mon, 09 Dec 2024 12:47:13 UTC
<!-- end of auto-generated comment: Cypress test results  -->
2024-12-10 13:03:03 +05:30
..
Editor chore: Refactor WDS custom widget (#38038) 2024-12-10 13:03:03 +05:30
Preview chore: Refactor WDS custom widget (#38038) 2024-12-10 13:03:03 +05:30
connectionLost.tsx
constants.ts feat: Custom Widget Editor integration with AI (#37257) 2024-11-11 10:29:32 +00:00
header.tsx chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
index.tsx chore: add custom widget to anvil (#37878) 2024-12-06 16:03:40 +05:30
loader.tsx chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
styles.module.css chore: add custom widget to anvil (#37878) 2024-12-06 16:03:40 +05:30
types.ts feat: Custom Widget Editor integration with AI (#37257) 2024-11-11 10:29:32 +00:00
useCustomBuilder.tsx feat: Custom Widget Editor integration with AI (#37257) 2024-11-11 10:29:32 +00:00
utility.test.ts feat: [custom widget] support SCSS syntax (#31042) 2024-02-12 17:25:30 +05:30
utility.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00