@snowcone-app/ui 0.9.1 → 0.9.2
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/composed/ArtworkCustomizer.tsx +2 -2
- package/src/composed/CurrentSelectionDisplay.tsx +1 -1
- package/src/composed/ProductGallery.tsx +1 -1
- package/src/hooks/useProductGallery.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1510,7 +1510,7 @@ interface UseProductGalleryReturn {
|
|
|
1510
1510
|
* ```tsx
|
|
1511
1511
|
* // Fetch specific products
|
|
1512
1512
|
* const { products, loading, error, refetch } = useProductGallery(
|
|
1513
|
-
* ['
|
|
1513
|
+
* ['BC43BE', 'CAXHQC'],
|
|
1514
1514
|
* { endpoint: 'http://localhost:3000', mode: 'mock' }
|
|
1515
1515
|
* );
|
|
1516
1516
|
*
|
|
@@ -1599,7 +1599,7 @@ interface ProductGalleryProps extends UseProductGalleryOptions {
|
|
|
1599
1599
|
* 2. List all products: Pass empty array or omit productIds
|
|
1600
1600
|
*
|
|
1601
1601
|
* @example Specific products
|
|
1602
|
-
* <ProductGallery productIds={["
|
|
1602
|
+
* <ProductGallery productIds={["BC43BE", "CAXHQC", "XTNA6J"]}>
|
|
1603
1603
|
* {(products, loading, error) => (
|
|
1604
1604
|
* <div className="grid grid-cols-3 gap-4">
|
|
1605
1605
|
* {products.map(product => (
|
|
@@ -1917,7 +1917,7 @@ interface CurrentSelectionDisplayProps {
|
|
|
1917
1917
|
* ```tsx
|
|
1918
1918
|
* import { Product, ProductOptions, CurrentSelectionDisplay } from '@yourorg/ui-react';
|
|
1919
1919
|
*
|
|
1920
|
-
* <Product productId="
|
|
1920
|
+
* <Product productId="BC43BE">
|
|
1921
1921
|
* <ProductOptions />
|
|
1922
1922
|
* <CurrentSelectionDisplay />
|
|
1923
1923
|
* </Product>
|
|
@@ -4265,7 +4265,7 @@ type ArtworkCustomizerProps = {
|
|
|
4265
4265
|
* // CORRECT: Use with ArtSelector to manage artwork via context
|
|
4266
4266
|
* import { Product, ArtSelector, ArtworkCustomizer } from '@snowcone-app/ui';
|
|
4267
4267
|
*
|
|
4268
|
-
* <Product productId="
|
|
4268
|
+
* <Product productId="BC43BE">
|
|
4269
4269
|
* <ArtSelector artworks={[
|
|
4270
4270
|
* { type: 'regular', src: 'https://example.com/photo.jpg' },
|
|
4271
4271
|
* { type: 'pattern', src: 'https://example.com/pattern.jpg', tileCount: 1 }
|
|
@@ -4279,7 +4279,7 @@ type ArtworkCustomizerProps = {
|
|
|
4279
4279
|
* // CORRECT: Full example with ProductImage
|
|
4280
4280
|
* import { Product, ProductImage, ArtSelector, ArtworkCustomizer } from '@snowcone-app/ui';
|
|
4281
4281
|
*
|
|
4282
|
-
* <Product productId="
|
|
4282
|
+
* <Product productId="BC43BE">
|
|
4283
4283
|
* <div className="grid grid-cols-2 gap-8">
|
|
4284
4284
|
* <ProductImage />
|
|
4285
4285
|
* <div>
|
package/dist/index.d.ts
CHANGED
|
@@ -1510,7 +1510,7 @@ interface UseProductGalleryReturn {
|
|
|
1510
1510
|
* ```tsx
|
|
1511
1511
|
* // Fetch specific products
|
|
1512
1512
|
* const { products, loading, error, refetch } = useProductGallery(
|
|
1513
|
-
* ['
|
|
1513
|
+
* ['BC43BE', 'CAXHQC'],
|
|
1514
1514
|
* { endpoint: 'http://localhost:3000', mode: 'mock' }
|
|
1515
1515
|
* );
|
|
1516
1516
|
*
|
|
@@ -1599,7 +1599,7 @@ interface ProductGalleryProps extends UseProductGalleryOptions {
|
|
|
1599
1599
|
* 2. List all products: Pass empty array or omit productIds
|
|
1600
1600
|
*
|
|
1601
1601
|
* @example Specific products
|
|
1602
|
-
* <ProductGallery productIds={["
|
|
1602
|
+
* <ProductGallery productIds={["BC43BE", "CAXHQC", "XTNA6J"]}>
|
|
1603
1603
|
* {(products, loading, error) => (
|
|
1604
1604
|
* <div className="grid grid-cols-3 gap-4">
|
|
1605
1605
|
* {products.map(product => (
|
|
@@ -1917,7 +1917,7 @@ interface CurrentSelectionDisplayProps {
|
|
|
1917
1917
|
* ```tsx
|
|
1918
1918
|
* import { Product, ProductOptions, CurrentSelectionDisplay } from '@yourorg/ui-react';
|
|
1919
1919
|
*
|
|
1920
|
-
* <Product productId="
|
|
1920
|
+
* <Product productId="BC43BE">
|
|
1921
1921
|
* <ProductOptions />
|
|
1922
1922
|
* <CurrentSelectionDisplay />
|
|
1923
1923
|
* </Product>
|
|
@@ -4265,7 +4265,7 @@ type ArtworkCustomizerProps = {
|
|
|
4265
4265
|
* // CORRECT: Use with ArtSelector to manage artwork via context
|
|
4266
4266
|
* import { Product, ArtSelector, ArtworkCustomizer } from '@snowcone-app/ui';
|
|
4267
4267
|
*
|
|
4268
|
-
* <Product productId="
|
|
4268
|
+
* <Product productId="BC43BE">
|
|
4269
4269
|
* <ArtSelector artworks={[
|
|
4270
4270
|
* { type: 'regular', src: 'https://example.com/photo.jpg' },
|
|
4271
4271
|
* { type: 'pattern', src: 'https://example.com/pattern.jpg', tileCount: 1 }
|
|
@@ -4279,7 +4279,7 @@ type ArtworkCustomizerProps = {
|
|
|
4279
4279
|
* // CORRECT: Full example with ProductImage
|
|
4280
4280
|
* import { Product, ProductImage, ArtSelector, ArtworkCustomizer } from '@snowcone-app/ui';
|
|
4281
4281
|
*
|
|
4282
|
-
* <Product productId="
|
|
4282
|
+
* <Product productId="BC43BE">
|
|
4283
4283
|
* <div className="grid grid-cols-2 gap-8">
|
|
4284
4284
|
* <ProductImage />
|
|
4285
4285
|
* <div>
|