@daffodil/cart 0.75.0 → 0.76.0
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/README.md +22 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
# @daffodil/cart
|
|
2
|
-
|
|
3
2
|
Building and maintaining a model and code for an ecommerce store is complex and mentally taxing. `@daffodil/cart`
|
|
4
3
|
provides clear interfaces, models, and factories for the frontend of an ecommerce store so that you don't have to.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
To install `@daffodil/cart`, use the following commands in your terminal.
|
|
7
|
+
|
|
8
|
+
Install with npm:
|
|
9
|
+
```
|
|
10
|
+
npm install @daffodil/cart --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Install with yarn:
|
|
14
|
+
```
|
|
15
|
+
yarn add @daffodil/cart
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Getting started
|
|
19
|
+
`@daffodil/cart` includes multiple layers of functionality that build on each other. The models can be used on their own. The recommended way to use Daffodil is with the state layer.
|
|
20
|
+
|
|
21
|
+
| Layer | Description |
|
|
22
|
+
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| [State](/libs/cart/guides/state.md) | Can be used with the models but also allow custom extensions to those models to be passed as generics |
|
|
24
|
+
| [Drivers](/libs/cart/guides/drivers.md) | Sits on top of the driver layer |
|
|
25
|
+
| [Extensions](/libs/cart/guides/extension.md) | Individual drivers can be overridden through driver injection tokens and custom extensions to models can be passed into the state layer's generics |
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/cart","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/cart"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/cart","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/cart"]}}},"version":"0.76.0","description":"Interfaces built for daffodil/state","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^17.0.0","@angular/core":"^17.0.0","@daffodil/core":"0.76.0","@daffodil/product":"0.76.0","@daffodil/geography":"0.76.0","@daffodil/payment":"0.76.0","@ngrx/effects":"^17.0.0","@ngrx/entity":"^17.0.0","@ngrx/store":"^17.0.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.0","angular-in-memory-web-api":"^0.17.0","apollo-angular":"^6.0.0","@apollo/client":"^3.0.0","@daffodil/driver":"0.76.0"},"module":"fesm2022/daffodil-cart.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-cart.mjs","esm":"./esm2022/daffodil-cart.mjs","default":"./fesm2022/daffodil-cart.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2022":"./esm2022/driver/daffodil-cart-driver.mjs","esm":"./esm2022/driver/daffodil-cart-driver.mjs","default":"./fesm2022/daffodil-cart-driver.mjs"},"./routing":{"types":"./routing/index.d.ts","esm2022":"./esm2022/routing/daffodil-cart-routing.mjs","esm":"./esm2022/routing/daffodil-cart-routing.mjs","default":"./fesm2022/daffodil-cart-routing.mjs"},"./state":{"types":"./state/index.d.ts","esm2022":"./esm2022/state/daffodil-cart-state.mjs","esm":"./esm2022/state/daffodil-cart-state.mjs","default":"./fesm2022/daffodil-cart-state.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2022":"./esm2022/testing/daffodil-cart-testing.mjs","esm":"./esm2022/testing/daffodil-cart-testing.mjs","default":"./fesm2022/daffodil-cart-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2022":"./esm2022/driver/in-memory/daffodil-cart-driver-in-memory.mjs","esm":"./esm2022/driver/in-memory/daffodil-cart-driver-in-memory.mjs","default":"./fesm2022/daffodil-cart-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","esm2022":"./esm2022/driver/magento/daffodil-cart-driver-magento.mjs","esm":"./esm2022/driver/magento/daffodil-cart-driver-magento.mjs","default":"./fesm2022/daffodil-cart-driver-magento.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2022":"./esm2022/driver/testing/daffodil-cart-driver-testing.mjs","esm":"./esm2022/driver/testing/daffodil-cart-driver-testing.mjs","default":"./fesm2022/daffodil-cart-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2022":"./esm2022/state/testing/daffodil-cart-state-testing.mjs","esm":"./esm2022/state/testing/daffodil-cart-state-testing.mjs","default":"./fesm2022/daffodil-cart-state-testing.mjs"},"./driver/magento/testing":{"types":"./driver/magento/testing/index.d.ts","esm2022":"./esm2022/driver/magento/testing/daffodil-cart-driver-magento-testing.mjs","esm":"./esm2022/driver/magento/testing/daffodil-cart-driver-magento-testing.mjs","default":"./fesm2022/daffodil-cart-driver-magento-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|