znode-plugin 0.1.3 → 0.1.5
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 +7 -5
- package/lib/next-imports.mjs +105 -41
- package/lib/znode-package.mjs +873 -680
- package/package.json +1 -1
- package/types/extension-api.d.ts +3 -0
package/package.json
CHANGED
package/types/extension-api.d.ts
CHANGED
|
@@ -188,6 +188,9 @@ export interface IBrowserHost {
|
|
|
188
188
|
// render options from them, not from a fetch, so they are in the server HTML),
|
|
189
189
|
// part(name) => ref (parts: product.image, product.variants, product.addToCart moved into
|
|
190
190
|
// your layout, logic intact)
|
|
191
|
+
// product.basicInfo the store's ProductBasicInfo (children) props: every prop it gets (productData,
|
|
192
|
+
// isQuickView, configurableProducts, ...) and product; return children to keep it, or your own
|
|
193
|
+
// component (e.g. a copy of the store's file) to replace just this component
|
|
191
194
|
// product.card a product card props: product, selectedMode
|
|
192
195
|
// productList.layout a category / search listing props: productData, isFromSearch
|
|
193
196
|
// addToCart.notification the added-to-cart popup props: data
|