@pitcher/js-api 1.26.0-beta.4 → 1.26.0-beta.5

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/js-api.esm.js CHANGED
@@ -2771,6 +2771,7 @@ var PitcherResponseStatus = /* @__PURE__ */ ((PitcherResponseStatus2) => {
2771
2771
  var PitcherEventName = /* @__PURE__ */ ((PitcherEventName2) => {
2772
2772
  PitcherEventName2["ENV_CHANGED"] = "env_changed";
2773
2773
  PitcherEventName2["PHOTOS_CAPTURED"] = "photos_captured";
2774
+ PitcherEventName2["GLOBAL_PHOTO_CAPTURED"] = "global_photo_captured";
2774
2775
  PitcherEventName2["FILE_DOWNLOADED"] = "file_downloaded";
2775
2776
  PitcherEventName2["FILE_UPLOAD_PROGRESS"] = "file_upload_progress";
2776
2777
  PitcherEventName2["UPDATE_LOCATION"] = "update_location";
@@ -3396,6 +3397,24 @@ function createHighLevelApi(options) {
3396
3397
  * })
3397
3398
  */
3398
3399
  broadcast: (event) => API.request("broadcast", event),
3400
+ /**
3401
+ * Broadcast an event to webviews only (iOS only).
3402
+ * @param {PitcherEvent} event - The event to broadcast.
3403
+ *
3404
+ * @example
3405
+ * usePitcherApi()
3406
+ * .broadcastToWebviews({
3407
+ * type: "canvas_updated",
3408
+ * body: { context: { myContextProperty: 'test' } },
3409
+ * })
3410
+ * .then(function (result) {
3411
+ * useUi().toast({
3412
+ * message: "Canvas Populated.",
3413
+ * type: "info",
3414
+ * })
3415
+ * })
3416
+ */
3417
+ broadcastToWebviews: (event) => API.request("broadcast_to_webviews", event),
3399
3418
  /**
3400
3419
  * Subscribe to updates.
3401
3420
  *