Closed bunsyy closed 1 month ago
When I define the zone of my custom widget, I don't get the suggestion of the available zones.
Medusa version (including plugins): 1.20.6-preview-20240712030459 Node.js version: v20.15.0 Database: PostgreSQL Operating system: mac Sonoma Browser (if relevant):
./src/admin/widgets/
defineWidgetConfig
export const config = defineWidgetConfig({ zone: "" // <- I expect typescript to suggest all the available injection zones });
N/A
For now, I have to dive deep into index node_modules/@medusajs/admin-shared/dist/index.d.ts to see the list of INJECTION_ZONES.
node_modules/@medusajs/admin-shared/dist/index.d.ts
INJECTION_ZONES
Hi @srindom, can I take this up ?
@surajgjadhav sure thanks! @kasperkristensen might already have looked into this though so let's just check with him if it makes sense?
Bug report
Describe the bug
When I define the zone of my custom widget, I don't get the suggestion of the available zones.
System information
Medusa version (including plugins): 1.20.6-preview-20240712030459 Node.js version: v20.15.0 Database: PostgreSQL Operating system: mac Sonoma Browser (if relevant):
Steps to reproduce the behavior
./src/admin/widgets/
defineWidgetConfig
Expected behavior
Screenshots
Code snippets
N/A
Additional context
For now, I have to dive deep into index
node_modules/@medusajs/admin-shared/dist/index.d.ts
to see the list ofINJECTION_ZONES
.