@vtex/order-items
Advanced tools
Comparing version 0.0.1-8 to 0.1.0
@@ -8,6 +8,8 @@ # Changelog | ||
## [0.1.0] - 2021-03-17 | ||
## [Unreleased] | ||
## [0.1.0] - 2021-03-22 | ||
### Added | ||
- Release first version. |
/*! | ||
* @vtex/order-items v0.0.1-8 | ||
* @vtex/order-items v0.1.0 | ||
* (c) VTEX | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* @vtex/order-items v0.0.1-8 | ||
* @vtex/order-items v0.1.0 | ||
* (c) VTEX | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"name": "@vtex/order-items", | ||
"version": "0.0.1-8", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -17,3 +17,3 @@ "cdn": "dist/index.umd.js", | ||
"@types/uuid": "^8.3.0", | ||
"@vtex/order-manager": "0.0.3-17", | ||
"@vtex/order-manager": "^0.1.0", | ||
"react": "17.0.1", | ||
@@ -20,0 +20,0 @@ "uuid": "^8.3.2" |
@@ -38,2 +38,6 @@ # Order Items (NPM Package) | ||
## Releasing | ||
Use [releasy](https://www.npmjs.com/package/releasy) to create new tag to be released. After the tag is created, run `npm publish` | ||
## Documentation | ||
@@ -40,0 +44,0 @@ |
@@ -32,20 +32,27 @@ /// <reference types="react" /> | ||
export declare type AddItemFn = (items: AddItemItemParam[], marketingData?: Partial<MarketingData>, salesChannel?: string) => void; | ||
declare type UpdateQuantityItemParam = { | ||
seller: string; | ||
quantity: number; | ||
} & ({ | ||
interface ItemIdentificationById { | ||
id: string; | ||
uniqueId?: string; | ||
index?: number; | ||
} | { | ||
} | ||
interface ItemIdentificationByUniqueId { | ||
id?: string; | ||
uniqueId: string; | ||
index?: number; | ||
} | { | ||
} | ||
interface ItemIdentificationByIndex { | ||
id?: string; | ||
uniqueId?: string; | ||
index: number; | ||
}); | ||
} | ||
declare type ItemIdentification = ItemIdentificationById | ItemIdentificationByUniqueId | ItemIdentificationByIndex; | ||
declare type UpdateQuantityItemParam = { | ||
seller: string; | ||
quantity: number; | ||
} & ItemIdentification; | ||
export declare type UpdateQuantityFn = (item: UpdateQuantityItemParam) => void; | ||
export declare type RemoveItemFn = (input: UpdateQuantityItemParam) => void; | ||
declare type RemoveItemParam = { | ||
seller: string; | ||
} & ItemIdentification; | ||
export declare type RemoveItemFn = (input: RemoveItemParam) => void; | ||
export declare type SetManualPriceFn = (price: number, itemIndex: number) => void; | ||
@@ -52,0 +59,0 @@ export declare const OrderItemsContext: import("react").Context<Context>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211002
1829
49
1
+ Added@vtex/order-manager@0.1.0(transitive)
- Removed@vtex/order-manager@0.0.3-17(transitive)
Updated@vtex/order-manager@^0.1.0