@nosto/nosto-react 0.4.3 → 1.0.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 +1 -6
- package/dist/index.d.ts +1201 -0
- package/dist/index.es.js +872 -564
- package/dist/index.umd.js +18 -2
- package/package.json +8 -6
- package/src/components/Nosto404.tsx +1 -8
- package/src/components/NostoCategory.tsx +1 -11
- package/src/components/NostoCheckout.tsx +1 -9
- package/src/components/NostoHome.tsx +1 -8
- package/src/components/NostoOrder.tsx +3 -13
- package/src/components/NostoOther.tsx +1 -8
- package/src/components/NostoProduct.tsx +3 -95
- package/src/components/NostoSearch.tsx +1 -11
- package/src/components/NostoSession.tsx +2 -2
- package/src/components/context.ts +2 -2
- package/src/index.ts +1 -2
- package/src/types.ts +792 -101
- package/src/utils/hooks.ts +1 -1
package/README.md
CHANGED
|
@@ -251,21 +251,16 @@ You can personalise your order-confirmation/thank-you page by using the `NostoOr
|
|
|
251
251
|
|
|
252
252
|
By default, your account, when created, has one other-page placement named `thankyou-nosto-1`. You may omit this and use any identifier you need. The identifier used here is simply provided to illustrate the example.
|
|
253
253
|
|
|
254
|
-
The `order` prop requires a value that adheres to the type `Purchase`.
|
|
255
|
-
|
|
256
254
|
```jsx
|
|
257
255
|
import {
|
|
258
|
-
Buyer,
|
|
259
|
-
Item,
|
|
260
256
|
NostoOrder,
|
|
261
257
|
NostoPlacement,
|
|
262
|
-
Purchase,
|
|
263
258
|
} from "@nosto/nosto-react";
|
|
264
259
|
|
|
265
260
|
<div className="thankyou-page">
|
|
266
261
|
... ... ...
|
|
267
262
|
<NostoPlacement id="thankyou-nosto-1" />
|
|
268
|
-
<NostoOrder order={
|
|
263
|
+
<NostoOrder order={ order } />
|
|
269
264
|
</div>;
|
|
270
265
|
```
|
|
271
266
|
|