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/{CartProvider-FQCDE3HZ.mjs → CartProvider-F2VH7WFO.mjs} +2 -2
- package/dist/catalog.mjs +1 -1
- package/dist/{chunk-6W4FCL22.mjs → chunk-FTYJTO6O.mjs} +2 -2
- package/dist/{chunk-6N24OFUB.mjs → chunk-RATFYRKZ.mjs} +3 -3
- package/dist/chunk-RATFYRKZ.mjs.map +1 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{methods-J7S63RTQ.mjs → methods-PFZSMZFU.mjs} +2 -2
- package/package.json +2 -2
- package/dist/chunk-6N24OFUB.mjs.map +0 -1
- /package/dist/{CartProvider-FQCDE3HZ.mjs.map → CartProvider-F2VH7WFO.mjs.map} +0 -0
- /package/dist/{chunk-6W4FCL22.mjs.map → chunk-FTYJTO6O.mjs.map} +0 -0
- /package/dist/{methods-J7S63RTQ.mjs.map → methods-PFZSMZFU.mjs.map} +0 -0
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;
|