@constructor-io/constructorio-ui-plp 1.4.7 → 1.6.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 -1
- package/dist/constructorio-ui-plp-bundled.js +14 -14
- package/lib/cjs/components/ProductCard/ProductCard.css +14 -1
- package/lib/cjs/components/ProductCard/ProductCard.js +52 -19
- package/lib/cjs/components/ProductCard/index.js +0 -1
- package/lib/cjs/components/RenderPropsWrapper/CustomHtmlRender.js +24 -0
- package/lib/cjs/components/RenderPropsWrapper/RenderPropsWrapper.js +15 -0
- package/lib/cjs/constants.js +4 -1
- package/lib/cjs/hooks/useCioPlpProvider.js +3 -1
- package/lib/cjs/hooks/useProduct.js +14 -7
- package/lib/cjs/hooks/useProductSwatch.js +4 -3
- package/lib/cjs/utils/itemFieldGetters.js +8 -2
- package/lib/cjs/version.js +1 -1
- package/lib/mjs/components/ProductCard/ProductCard.css +14 -1
- package/lib/mjs/components/ProductCard/ProductCard.js +50 -19
- package/lib/mjs/components/ProductCard/index.js +0 -1
- package/lib/mjs/components/RenderPropsWrapper/CustomHtmlRender.js +20 -0
- package/lib/mjs/components/RenderPropsWrapper/RenderPropsWrapper.js +11 -0
- package/lib/mjs/constants.js +3 -0
- package/lib/mjs/hooks/useCioPlpProvider.js +3 -1
- package/lib/mjs/hooks/useProduct.js +8 -1
- package/lib/mjs/hooks/useProductSwatch.js +4 -3
- package/lib/mjs/utils/itemFieldGetters.js +6 -1
- package/lib/mjs/version.js +1 -1
- package/lib/types/components/ProductCard/ProductCard.d.ts +1 -37
- package/lib/types/components/ProductCard/index.d.ts +0 -1
- package/lib/types/components/RenderPropsWrapper/CustomHtmlRender.d.ts +7 -0
- package/lib/types/components/RenderPropsWrapper/RenderPropsWrapper.d.ts +25 -0
- package/lib/types/constants.d.ts +3 -0
- package/lib/types/index.d.ts +0 -1
- package/lib/types/types.d.ts +63 -1
- package/lib/types/utils/itemFieldGetters.d.ts +2 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ function YourComponent() {
|
|
|
37
37
|
|
|
38
38
|
This is a framework agnostic method that can be used in any JavaScript project. The `CioPlp` function provides a simple interface to inject an entire PLP UI into the provided `selector`.
|
|
39
39
|
|
|
40
|
-
In addition to [PLP component props](https://constructor-io.github.io/constructorio-ui-plp/?path=/docs/
|
|
40
|
+
In addition to [PLP component props](https://constructor-io.github.io/constructorio-ui-plp/?path=/docs/components-cioplp--props), this function also accepts `selector` and `includeCSS`.
|
|
41
41
|
|
|
42
42
|
```js
|
|
43
43
|
import CioPlp from '@constructor-io/constructorio-ui-plp/constructorio-ui-plp-bundled';
|