@usecrow/ui 0.1.62 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1256,6 +1256,13 @@ function useCrowAPI({ onIdentified, onReset } = {}) {
1256
1256
  new CustomEvent("crow:setGreeting", { detail: options })
1257
1257
  );
1258
1258
  break;
1259
+ case "ask": {
1260
+ if (!opts || typeof opts !== "object") {
1261
+ console.error("[Crow] ask() requires an options object");
1262
+ return;
1263
+ }
1264
+ return client.crowAsk(opts);
1265
+ }
1259
1266
  case "setSuggestedActions":
1260
1267
  if (!Array.isArray(options)) {
1261
1268
  console.error("[Crow] setSuggestedActions() requires an array of { label, message }");