PromucFlow_constructor/app/client/src/pages
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
..
AdminSettings chore: Move IDE header to ADS/Templates (#37764) 2024-11-27 07:05:20 +00:00
Applications feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
AppViewer chore: Move IDE header to ADS/Templates (#37764) 2024-11-27 07:05:20 +00:00
common chore: Updating the settings icon throughout the product (#37330) 2024-11-12 18:17:58 +05:30
Editor chore: Refactor WDS custom widget (#38038) 2024-12-10 13:03:03 +05:30
hooks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
setup chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
Templates chore: Updating generate page interaction to show it in a modal following the IDE 2.0 interaction pattern (#37414) 2024-11-19 12:05:10 +05:30
tests chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UserAuth chore: Remove unused JSON signup API handler (#37387) 2024-11-15 12:39:29 +05:30
UserProfile chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
users chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
workspace chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
utils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00