bitsnap-react 1.7.0 → 1.7.1

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.d.mts CHANGED
@@ -403,6 +403,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
403
403
  }, z__default.core.$strip>;
404
404
 
405
405
  declare namespace Bitsnap {
406
+ /**
407
+ * Adds a product or variant to the cart. Returns an `Err` instead of adding
408
+ * anything when the backend does not know the id
409
+ * (`item-ids-not-found`, with the unknown ids in `data`).
410
+ */
406
411
  function addProductToCart(id: string, quantity?: number, metadata?: Record<string, string | undefined>, args?: {
407
412
  name?: string;
408
413
  price?: number;
package/dist/index.d.ts CHANGED
@@ -403,6 +403,11 @@ declare const linkRequestSchema: z__default.ZodObject<{
403
403
  }, z__default.core.$strip>;
404
404
 
405
405
  declare namespace Bitsnap {
406
+ /**
407
+ * Adds a product or variant to the cart. Returns an `Err` instead of adding
408
+ * anything when the backend does not know the id
409
+ * (`item-ids-not-found`, with the unknown ids in `data`).
410
+ */
406
411
  function addProductToCart(id: string, quantity?: number, metadata?: Record<string, string | undefined>, args?: {
407
412
  name?: string;
408
413
  price?: number;