Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ts: Replace all occurance of widgetize.js with widgetize.ts.
Joydeep Bhattacharjee2842945e6d5c
diff --git a/docs/subsystems/widgets.md b/docs/subsystems/widgets.mdindex 62dd87c9594..1cae85a8553 100644--- a/docs/subsystems/widgets.md+++ b/docs/subsystems/widgets.md@@ -53,7 +53,7 @@ Some important code entities for the widget implementation are:- `/json/submessage` API endpoint- `web/src/submessage.js`- `web/src/poll_widget.js`-- `web/src/widgetize.js`+- `web/src/widgetize.ts`- `web/src/zform.js`- `web/templates/widgets/`- `zerver/lib/widget.py`@@ -79,7 +79,7 @@ appropriate widgets.The web app client will next collect poll options and votesfrom users. The web app client hascode in `submessage.js` that dispatches events-to `widgetize.js`, which in turn sends events to+to `widgetize.ts`, which in turn sends events toindividual widgets. The widgets know how to renderthemselves and set up click/input handlers to collectdata. They can then post back to `/json/submessage`@@ -299,7 +299,7 @@ When the message gets to the client, the codepath for **zform**is actually quite similar to what happens with a morecustomized widget like **poll**. (In fact, **zform** is asibling of **poll** and **zform** just has a somewhat more-generic job to do.) In `web/src/widgetize.js` you will see+generic job to do.) In `web/src/widgetize.ts` you will seewhere this code converges, with snippets like this:```jsdiff --git a/web/src/zcommand.ts b/web/src/zcommand.tsindex 6282e8ae0c5..1ab48030d48 100644--- a/web/src/zcommand.ts+++ b/web/src/zcommand.ts@@ -23,7 +23,7 @@ What in the heck is a zcommand?Not all slash commands use zcommand under the hood.For more exotic things like /poll see submessage.js- and widgetize.js+ and widgetize.ts*/