URGENCY
A slim scarcity/countdown banner (e.g. "Only 3 left in stock!"), reusing
COUPON/ABANDONEDCART's end_time countdown contract.
{
"type": "URGENCY",
"params": {
"stock_left": 3,
"threshold": 10,
"end_time": 1782000000
}
}
text— full override; when set, it's shown as-is andstock_left/thresholdare ignored.stock_left/threshold— whentextis omitted, the widget builds its text fromtheme.urgencyStockLabel("Only {count} left in stock!") with{count}replaced bystock_left. Hides itself whenstock_leftis abovethreshold(default10) — the point being to only nudge once stock is actually low.end_time— a Unix timestamp in seconds, or an ISO-8601 string. When set, a countdown renders next to the text and the widget hides itself entirely once it passes, matching COUPON/FLASHSALE/ABANDONEDCART.- Hides itself entirely when there's nothing to show: no
textoverride, nostock_left, or astock_leftabovethreshold.