@snowcone-app/ui 0.11.17 → 0.12.1
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 +15 -0
- package/dist/index.cjs +937 -676
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -60
- package/dist/index.d.ts +185 -60
- package/dist/index.js +847 -597
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/composed/HeroProductImage.tsx +45 -3
- package/src/composed/__tests__/HeroProductImage.designRefusal.test.tsx +117 -0
- package/src/composed/carousels/MobileProductCarousel.tsx +10 -3
- package/src/composed/carousels/firstView.ts +81 -0
- package/src/composed/renderRefusalProbe.ts +35 -0
- package/src/composed/zoom/EnhancedImageViewer.tsx +68 -1
- package/src/composed/zoom/__tests__/EnhancedImageViewer.firstView.test.tsx +126 -0
- package/src/composed/zoom/types.ts +9 -0
- package/src/index.ts +15 -0
- package/src/patterns/GallerySkip.tsx +113 -0
- package/src/patterns/RealtimeProvider.tsx +46 -0
- package/src/patterns/__tests__/RealtimeProvider.designRefusal.test.tsx +125 -0
- package/src/patterns/__tests__/gallerySkipRules.test.ts +71 -0
- package/src/patterns/gallerySkipRules.ts +57 -0
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import * as React$1 from 'react';
|
|
|
5
5
|
import React__default, { ReactNode, CSSProperties, RefObject } from 'react';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
-
import { ProductPriceOptions, CatalogProduct, ImageAlignment, OptionSelection, ProductContext as ProductContext$1, WebSocketConfig, DesignElement, RealtimeRenderError, MockupView, ProductArtAlignmentOptions, ProductArtAlignmentContext, ArtworkData } from '@snowcone-app/sdk';
|
|
8
|
+
import { ProductPriceOptions, CatalogProduct, ImageAlignment, OptionSelection, ProductContext as ProductContext$1, WebSocketConfig, DesignElement, RealtimeRenderError, RealtimeDesignRefusal, MockupView, DesignRefusalCode, ProductArtAlignmentOptions, ProductArtAlignmentContext, ArtworkData } from '@snowcone-app/sdk';
|
|
9
9
|
export { ArtworkData, AspectRatio, ImageAlignment, ProductArtAlignmentContext, ProductArtAlignmentOptions, ProductData, ProductMockupData, ProductPlacement, ProductVariant, WebSocketConfig, describeProductArtAlignment, getMockupUrl, getProduct, getSnapPoints, listProducts } from '@snowcone-app/sdk';
|
|
10
10
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
11
11
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
@@ -2971,6 +2971,12 @@ interface RealtimeContextValue {
|
|
|
2971
2971
|
* — never as a stale or blank image.
|
|
2972
2972
|
*/
|
|
2973
2973
|
unavailableMockups: ReadonlyMap<string, RealtimeRenderError>;
|
|
2974
|
+
/**
|
|
2975
|
+
* The box cannot draw THIS design on a mockup (a hand that cannot hold it: E_HOLD_NO_GRIP; E_HOLD_GRIP_BUSY after
|
|
2976
|
+
* its one retry, which this provider sends). Never `renderError`, never `unavailableMockups`: a gallery
|
|
2977
|
+
* (GallerySkip) leaves that picture out for this design. Returns the unsubscribe.
|
|
2978
|
+
*/
|
|
2979
|
+
subscribeDesignRefusals: (callback: (refusal: RealtimeDesignRefusal) => void) => () => void;
|
|
2974
2980
|
isPendingMockups: boolean;
|
|
2975
2981
|
canvasBlobsSent: number;
|
|
2976
2982
|
colorBlobsSent: number;
|
|
@@ -4041,6 +4047,60 @@ declare const LoadingOverlayPrismCandy: React$1.NamedExoticComponent<LoadingOver
|
|
|
4041
4047
|
*/
|
|
4042
4048
|
declare const LoadingOverlayPrismCandyInline: React$1.NamedExoticComponent<LoadingOverlayPrismCandyProps>;
|
|
4043
4049
|
|
|
4050
|
+
/**
|
|
4051
|
+
* The gallery's skip rule: a picture whose render cannot draw THIS design (a hand that cannot hold it,
|
|
4052
|
+
* `@snowcone-app/sdk` DESIGN_REFUSALS) is not in that shopper's gallery, for that design. Pure, so the rule is
|
|
4053
|
+
* testable without a render.
|
|
4054
|
+
*
|
|
4055
|
+
* - `E_HOLD_NO_GRIP` (422): left out at once.
|
|
4056
|
+
* - `E_HOLD_GRIP_BUSY` (503): asked once more; a second design refusal leaves it out quietly.
|
|
4057
|
+
* - Anything else (another `E_*`, a 500, a network failure, no code): LOUD, exactly as before (the picture says it is
|
|
4058
|
+
* unavailable). The list is closed: a code nobody classified is never hidden.
|
|
4059
|
+
*
|
|
4060
|
+
* Machine-readable: a gallery that left pictures out stamps `data-gallery-skipped="<mockupId>:<code> …"` on its root.
|
|
4061
|
+
*/
|
|
4062
|
+
|
|
4063
|
+
type GallerySkipVerdict = "skip" | "retry" | "loud";
|
|
4064
|
+
/** What a gallery does with a picture whose render answered `code` (null: no typed code), `attempt` answers in (0 = the first). */
|
|
4065
|
+
declare function gallerySkipVerdict(code: string | null | undefined, attempt: number): GallerySkipVerdict;
|
|
4066
|
+
/** The pictures left out of the gallery for the design shown now: mockupId -> the code its render answered. */
|
|
4067
|
+
type GallerySkips = ReadonlyMap<string, DesignRefusalCode>;
|
|
4068
|
+
declare const NO_GALLERY_SKIPS: GallerySkips;
|
|
4069
|
+
/**
|
|
4070
|
+
* The gallery without the pictures left out, every other picture in its order (the first stays first). Only real
|
|
4071
|
+
* mockups are left out (an AI picture or a placeholder never is). Never empties a gallery: when every picture would
|
|
4072
|
+
* go, all stay and each says it is unavailable (loud). The same array comes back when nothing is left out.
|
|
4073
|
+
*/
|
|
4074
|
+
declare function galleryWithoutSkipped<T extends {
|
|
4075
|
+
mockupId?: string;
|
|
4076
|
+
isRealMockup?: boolean;
|
|
4077
|
+
}>(images: T[], skipped: GallerySkips): T[];
|
|
4078
|
+
/**
|
|
4079
|
+
* `data-gallery-skipped` for a gallery showing `shown`: each left-out picture as `<mockupId>:<code>`, space separated,
|
|
4080
|
+
* in a stable order. Only pictures really absent from `shown` (a host that did not filter stamps nothing).
|
|
4081
|
+
*/
|
|
4082
|
+
declare function gallerySkippedStamp(skipped: GallerySkips, shown: ReadonlyArray<{
|
|
4083
|
+
mockupId?: string;
|
|
4084
|
+
}>): string | undefined;
|
|
4085
|
+
|
|
4086
|
+
interface GallerySkipValue {
|
|
4087
|
+
/** The pictures left out for the design shown now: mockupId -> code. */
|
|
4088
|
+
skipped: GallerySkips;
|
|
4089
|
+
/** A picture's render answered a design refusal (after its retry, for a retry-once code): leave it out for this design. */
|
|
4090
|
+
report: (mockupId: string, code: DesignRefusalCode) => void;
|
|
4091
|
+
}
|
|
4092
|
+
/**
|
|
4093
|
+
* The gallery's skip state for `design` (any string that changes when the design shown changes: the artwork's src
|
|
4094
|
+
* and, for a product printed piece by piece, its per-placement map).
|
|
4095
|
+
*/
|
|
4096
|
+
declare function useGallerySkipState(design: string): GallerySkipValue;
|
|
4097
|
+
declare function GallerySkipProvider({ value, children }: {
|
|
4098
|
+
value: GallerySkipValue;
|
|
4099
|
+
children?: React__default.ReactNode;
|
|
4100
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4101
|
+
/** The gallery's skip state, or undefined outside a GallerySkipProvider. */
|
|
4102
|
+
declare function useGallerySkipOptional(): GallerySkipValue | undefined;
|
|
4103
|
+
|
|
4044
4104
|
interface MockupBackgroundProps {
|
|
4045
4105
|
/** Canonical background hex (lowercase 6-hex, no "#"), or undefined to leave URLs untouched. */
|
|
4046
4106
|
bg?: string;
|
|
@@ -4733,64 +4793,6 @@ declare const searchClient: _meilisearch_instant_meilisearch.InstantMeiliSearchI
|
|
|
4733
4793
|
|
|
4734
4794
|
declare const FACET_SECTIONS: FacetSection[];
|
|
4735
4795
|
|
|
4736
|
-
/**
|
|
4737
|
-
* Image interface for zoom components
|
|
4738
|
-
*/
|
|
4739
|
-
interface ZoomImage {
|
|
4740
|
-
src: string;
|
|
4741
|
-
alt?: string;
|
|
4742
|
-
naturalWidth?: number;
|
|
4743
|
-
naturalHeight?: number;
|
|
4744
|
-
isRealMockup?: boolean;
|
|
4745
|
-
placement?: string;
|
|
4746
|
-
mockupId?: string;
|
|
4747
|
-
/** `whole`: open the picture whole (contain), not cropped to the screen: the gallery's size picture (a diagram). */
|
|
4748
|
-
fit?: "cover" | "whole";
|
|
4749
|
-
}
|
|
4750
|
-
|
|
4751
|
-
interface ResponsiveZoomProps {
|
|
4752
|
-
imageIndex: number;
|
|
4753
|
-
children: React__default.ReactNode;
|
|
4754
|
-
className?: string;
|
|
4755
|
-
style?: React__default.CSSProperties;
|
|
4756
|
-
images?: ZoomImage[];
|
|
4757
|
-
imageUrl?: string;
|
|
4758
|
-
alt?: string;
|
|
4759
|
-
}
|
|
4760
|
-
/**
|
|
4761
|
-
* ResponsiveZoom - Adaptive zoom component that provides the best experience for each device type
|
|
4762
|
-
*
|
|
4763
|
-
* - Desktop (non-touch): Inline 2x zoom with custom cursor (ZoomOverlay)
|
|
4764
|
-
* - Touch devices (phones & tablets): Full-screen pinch-to-zoom viewer (EnhancedImageViewer)
|
|
4765
|
-
*
|
|
4766
|
-
* @example
|
|
4767
|
-
* <ResponsiveZoom imageIndex={0}>
|
|
4768
|
-
* <ProductImage className="w-full" />
|
|
4769
|
-
* </ResponsiveZoom>
|
|
4770
|
-
*/
|
|
4771
|
-
declare function ResponsiveZoom({ imageIndex, children, className, style, images, imageUrl, alt, }: ResponsiveZoomProps): react_jsx_runtime.JSX.Element;
|
|
4772
|
-
|
|
4773
|
-
interface ZoomOverlayProps {
|
|
4774
|
-
imageIndex: number;
|
|
4775
|
-
isLargeTouchDevice: boolean;
|
|
4776
|
-
isTouchDevice: boolean;
|
|
4777
|
-
onEnhancedViewer?: (index: number) => void;
|
|
4778
|
-
children: React__default.ReactNode;
|
|
4779
|
-
className?: string;
|
|
4780
|
-
style?: React__default.CSSProperties;
|
|
4781
|
-
}
|
|
4782
|
-
declare function ZoomOverlay({ imageIndex, isLargeTouchDevice, isTouchDevice, onEnhancedViewer, children, className, style, }: ZoomOverlayProps): react_jsx_runtime.JSX.Element;
|
|
4783
|
-
|
|
4784
|
-
interface EnhancedImageViewerProps {
|
|
4785
|
-
imageUrl: string;
|
|
4786
|
-
alt: string;
|
|
4787
|
-
onClose: () => void;
|
|
4788
|
-
images: ZoomImage[];
|
|
4789
|
-
onIndexChange?: (index: number) => void;
|
|
4790
|
-
currentIndex?: number;
|
|
4791
|
-
}
|
|
4792
|
-
declare const EnhancedImageViewer: ({ imageUrl, alt, onClose, images, onIndexChange, currentIndex: propCurrentIndex, }: EnhancedImageViewerProps) => React__default.ReactPortal;
|
|
4793
|
-
|
|
4794
4796
|
/**
|
|
4795
4797
|
* Carousel Types
|
|
4796
4798
|
*
|
|
@@ -4886,6 +4888,71 @@ interface CarouselImage {
|
|
|
4886
4888
|
*/
|
|
4887
4889
|
type HeroImage = CarouselImage;
|
|
4888
4890
|
|
|
4891
|
+
/**
|
|
4892
|
+
* Image interface for zoom components
|
|
4893
|
+
*/
|
|
4894
|
+
interface ZoomImage {
|
|
4895
|
+
src: string;
|
|
4896
|
+
alt?: string;
|
|
4897
|
+
naturalWidth?: number;
|
|
4898
|
+
naturalHeight?: number;
|
|
4899
|
+
isRealMockup?: boolean;
|
|
4900
|
+
placement?: string;
|
|
4901
|
+
mockupId?: string;
|
|
4902
|
+
/** `whole`: open the picture whole (contain), not cropped to the screen: the gallery's size picture (a diagram). */
|
|
4903
|
+
fit?: "cover" | "whole";
|
|
4904
|
+
/**
|
|
4905
|
+
* Where the product and the mockup's phone window are in this (16:9) picture, as the phone carousel's slide carries
|
|
4906
|
+
* them (carousels/firstView.ts). The viewer opens on them by the hero's first-view rule, so the product is on screen.
|
|
4907
|
+
* Absent = the picture's middle (as before).
|
|
4908
|
+
*/
|
|
4909
|
+
productBox?: CarouselImage["productBox"];
|
|
4910
|
+
phoneWindow?: CarouselImage["phoneWindow"];
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
interface ResponsiveZoomProps {
|
|
4914
|
+
imageIndex: number;
|
|
4915
|
+
children: React__default.ReactNode;
|
|
4916
|
+
className?: string;
|
|
4917
|
+
style?: React__default.CSSProperties;
|
|
4918
|
+
images?: ZoomImage[];
|
|
4919
|
+
imageUrl?: string;
|
|
4920
|
+
alt?: string;
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* ResponsiveZoom - Adaptive zoom component that provides the best experience for each device type
|
|
4924
|
+
*
|
|
4925
|
+
* - Desktop (non-touch): Inline 2x zoom with custom cursor (ZoomOverlay)
|
|
4926
|
+
* - Touch devices (phones & tablets): Full-screen pinch-to-zoom viewer (EnhancedImageViewer)
|
|
4927
|
+
*
|
|
4928
|
+
* @example
|
|
4929
|
+
* <ResponsiveZoom imageIndex={0}>
|
|
4930
|
+
* <ProductImage className="w-full" />
|
|
4931
|
+
* </ResponsiveZoom>
|
|
4932
|
+
*/
|
|
4933
|
+
declare function ResponsiveZoom({ imageIndex, children, className, style, images, imageUrl, alt, }: ResponsiveZoomProps): react_jsx_runtime.JSX.Element;
|
|
4934
|
+
|
|
4935
|
+
interface ZoomOverlayProps {
|
|
4936
|
+
imageIndex: number;
|
|
4937
|
+
isLargeTouchDevice: boolean;
|
|
4938
|
+
isTouchDevice: boolean;
|
|
4939
|
+
onEnhancedViewer?: (index: number) => void;
|
|
4940
|
+
children: React__default.ReactNode;
|
|
4941
|
+
className?: string;
|
|
4942
|
+
style?: React__default.CSSProperties;
|
|
4943
|
+
}
|
|
4944
|
+
declare function ZoomOverlay({ imageIndex, isLargeTouchDevice, isTouchDevice, onEnhancedViewer, children, className, style, }: ZoomOverlayProps): react_jsx_runtime.JSX.Element;
|
|
4945
|
+
|
|
4946
|
+
interface EnhancedImageViewerProps {
|
|
4947
|
+
imageUrl: string;
|
|
4948
|
+
alt: string;
|
|
4949
|
+
onClose: () => void;
|
|
4950
|
+
images: ZoomImage[];
|
|
4951
|
+
onIndexChange?: (index: number) => void;
|
|
4952
|
+
currentIndex?: number;
|
|
4953
|
+
}
|
|
4954
|
+
declare const EnhancedImageViewer: ({ imageUrl, alt, onClose, images, onIndexChange, currentIndex: propCurrentIndex, }: EnhancedImageViewerProps) => React__default.ReactPortal;
|
|
4955
|
+
|
|
4889
4956
|
/**
|
|
4890
4957
|
* What a phone carousel slide says about its picture, for a host that shows only PART of the picture.
|
|
4891
4958
|
*
|
|
@@ -4916,6 +4983,64 @@ interface SlideFirstViewProps {
|
|
|
4916
4983
|
[SLIDE_PHONE_WINDOW_ATTR]?: string;
|
|
4917
4984
|
style?: CSSProperties;
|
|
4918
4985
|
}
|
|
4986
|
+
/** The phone hero's default picture is 16:9 (a plate's `frames['16:9']` window; rendercenter shared/shapes.ts). */
|
|
4987
|
+
declare const FIRST_VIEW_PICTURE_ASPECT: number;
|
|
4988
|
+
/** The share of the view's width kept clear on each side of the product (the frame gate's product-on-a-surface margin). */
|
|
4989
|
+
declare const FIRST_VIEW_MARGIN = 0.03;
|
|
4990
|
+
/** The product's box in a mockup's default 16:9 picture, as fractions of that picture (`mockups[].productBox`). */
|
|
4991
|
+
type FirstViewProductBox = NonNullable<CarouselImage["productBox"]>;
|
|
4992
|
+
/** The mockup's own phone window (its 2:3 frame) along the default picture's width (`mockups[].phoneWindow`). */
|
|
4993
|
+
type FirstViewPhoneWindow = NonNullable<CarouselImage["phoneWindow"]>;
|
|
4994
|
+
/** What a first view is centred on, and the product it then holds. */
|
|
4995
|
+
type FirstViewAnchor =
|
|
4996
|
+
/** The mockup's own phone window (a plate). `product` null: its record has no product box, so nothing is held or judged. */
|
|
4997
|
+
{
|
|
4998
|
+
by: "phone-window";
|
|
4999
|
+
window: FirstViewPhoneWindow;
|
|
5000
|
+
product: FirstViewProductBox | null;
|
|
5001
|
+
}
|
|
5002
|
+
/** A product box but no phone window. */
|
|
5003
|
+
| {
|
|
5004
|
+
by: "product";
|
|
5005
|
+
product: FirstViewProductBox;
|
|
5006
|
+
}
|
|
5007
|
+
/** Neither (a mockup from before plates): its phone window is the centred one its 2:3 gate judged. */
|
|
5008
|
+
| {
|
|
5009
|
+
by: "picture-middle";
|
|
5010
|
+
why: "no-phone-window-no-product-box";
|
|
5011
|
+
};
|
|
5012
|
+
interface FirstView {
|
|
5013
|
+
/** The slice of the picture's width the box shows, as fractions of the picture (0 = its left edge, 1 = its right). */
|
|
5014
|
+
x0: number;
|
|
5015
|
+
x1: number;
|
|
5016
|
+
/** The picture's drawn width and its left edge relative to the box's left edge, px (left <= 0). */
|
|
5017
|
+
pictureWidth: number;
|
|
5018
|
+
left: number;
|
|
5019
|
+
/** `held`: the whole product is in view. `cut`: part of it is outside. `unjudged`: no product box to judge by. */
|
|
5020
|
+
product: "held" | "cut" | "unjudged";
|
|
5021
|
+
/** The share of the product's width that is in view (1 = all of it); null when unjudged. */
|
|
5022
|
+
inView: number | null;
|
|
5023
|
+
/** The part of the product in view as a share of the view's width; null when unjudged. */
|
|
5024
|
+
share: number | null;
|
|
5025
|
+
}
|
|
5026
|
+
/** The anchor of a slide's (already parsed) fields: its phone window, else its product, else the picture's middle. */
|
|
5027
|
+
declare function firstViewAnchorOfSlide(image: Pick<CarouselImage, "productBox" | "phoneWindow">): FirstViewAnchor;
|
|
5028
|
+
/**
|
|
5029
|
+
* THE first-view rule (one copy: the www phone hero's CSS, heroFirstView.ts, and the tap-to-enlarge viewer,
|
|
5030
|
+
* EnhancedImageViewer, both draw by it). What a box of `width` x `height` CSS px shows of a picture drawn
|
|
5031
|
+
* `object-fit: cover`: the picture is the box's height (or its width, when the box is wider than the picture), centred
|
|
5032
|
+
* on the anchor, slid as little as it must to hold the whole product with FIRST_VIEW_MARGIN of the view clear on each
|
|
5033
|
+
* side (a product too wide for that is centred in the view, reported `cut`), and never past its own edges.
|
|
5034
|
+
*/
|
|
5035
|
+
declare function firstView(box: {
|
|
5036
|
+
width: number;
|
|
5037
|
+
height: number;
|
|
5038
|
+
}, anchor: FirstViewAnchor, pictureAspect?: number): FirstView;
|
|
5039
|
+
/**
|
|
5040
|
+
* The fields a phone carousel slide hands the tap-to-enlarge viewer: a real mockup's product box and phone window (the
|
|
5041
|
+
* same pictures the slide stamps, `image.isRealMockup ? image : {}`), nothing for any other picture.
|
|
5042
|
+
*/
|
|
5043
|
+
declare function slideFirstViewFields(image: Pick<CarouselImage, "isRealMockup" | "productBox" | "phoneWindow">): Pick<CarouselImage, "productBox" | "phoneWindow">;
|
|
4919
5044
|
/** The attributes and CSS variables for one slide; `{}` when the picture has neither a phone window nor a product box. */
|
|
4920
5045
|
declare function slideFirstViewProps(image: Pick<CarouselImage, "productBox" | "phoneWindow">): SlideFirstViewProps;
|
|
4921
5046
|
|
|
@@ -5880,4 +6005,4 @@ declare function normalizeHex(color: string): string;
|
|
|
5880
6005
|
*/
|
|
5881
6006
|
declare function scrollInputAboveKeyboard(input: HTMLElement): void;
|
|
5882
6007
|
|
|
5883
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddToCart, type AddToCartProps, type AddToCartStatus, ArtAlignment, type ArtAlignmentProps, ArtSelector, type ArtSelectorProps, type Artwork, ArtworkCustomizer, type ArtworkCustomizerProps, Badge, type BadgeProps, BrandLogo, type BrandLogoProps, BrandName, type BrandNameProps, Button, type ButtonProps, CanvasEditor, type CanvasExportServiceConfig, CanvasIsolationBoundary, CanvasIsolationConfigurator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CarouselImage, type CarouselRenderProps, Checkbox, Chip, type ClipShape, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, ColorPalette, ColorPicker, type ColorPickerProps, ColorRow, ColorSwatch, type ColorSwatchChoice, type ColorSwatchProps, ColorTokenSwatch, type ContentRenderProps, CurrentRefinements, CurrentSelectionDisplay, type CurrentSelectionDisplayProps, DEFAULT_HERO_ZOOM_CONFIG, DEFAULT_IMAGE_CONFIG, DEFAULT_VISIBILITY_OPTIONS, DesignSystemPage, type DeviceDetectionResult, Disclosure, DisclosureContent, DisclosureTrigger, DragHintAnimation, type DragHintAnimationProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeBlurBox, type EdgeBlurBoxProps, EdgeSwipeGuards, type EdgeSwipeGuardsProps, EnhancedImageViewer, FACET_SECTIONS, type FacetSection, type FacetType, Fieldset, type FieldsetProps, Filters, FiltersButton, type FiltersButtonProps, FiltersDrawer, type FiltersProps, FloatingActionGroup, type FloatingActionGroupProps, type FloatingActionItem, type FormatCurrencyOptions, HeroCarousel, type HeroCarouselProps, type HeroImage, type HeroImageRenderProps, HeroProductImage, type HeroProductImageProps, type HeroShrinkConfig, HeroShrinkLayout, type HeroShrinkLayoutProps, type HeroZoomConfig, HeroZoomLayout, type HeroZoomLayoutProps, type HeroZoomScales, HorizontalProgressiveBlur, type HorizontalProgressiveBlurProps, Drawer as IOSDrawer, DrawerClose as IOSDrawerClose, DrawerContent as IOSDrawerContent, DrawerDescription as IOSDrawerDescription, DrawerFooter as IOSDrawerFooter, DrawerHeader as IOSDrawerHeader, DrawerTitle as IOSDrawerTitle, DrawerTrigger as IOSDrawerTrigger, ImageBlurExtension, type ImageBlurExtensionProps, ImageEdgeBlur, type ImageEdgeBlurProps, type ImageLayer, type ImageUpdateRequest, Input, type InputProps, Kbd, type KbdProps, Label, Legend, type LegendProps, Lightbox, type LightboxProps, Link, LinkIcon, type LinkProps, LoadingOverlayPrism, LoadingOverlayPrismCandy, LoadingOverlayPrismCandyInline, type LoadingOverlayPrismCandyProps, type LoadingOverlayPrismProps, MasonryGrid, type MasonryGridProps, MobileProductCarousel, type MobileProductCarouselProps, MockupBackground, type MockupBackgroundProps, type MockupPriorityContextValue, MockupPriorityProvider, type MockupPriorityProviderProps, type MockupResult, PDPLayout, type PDPLayoutProps, PersonalizationField, PersonalizationInputs, PersonalizationProvider, PersonalizationValues, PlacementArt, type PlacementArtMap, type PlacementArtProps, PlacementClipShapeSelector, type PlacementConfig, type PlacementDesign, PlacementTabs, type PlacementTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, type PriorityLevel, Product, ProductCard, type ProductCardProps, ProductContext, type ProductDataMode, ProductGallery, type ProductGalleryProps, ProductGrid, type ProductGridProps, type ProductHit, ProductHitComponent, ProductImage, type Artwork$1 as ProductImageArtwork, type ProductImageProps, ProductList, type ProductListProps, ProductOptions, type ProductPageContext, ProductPageProvider, ProductPageProviderMinimal, type ProductPageProviderMinimalProps, type ProductPageProviderProps, ProductPrice, type ProductPriceProps, type ProductProviderProps, ProgressiveBlur, type ProgressiveBlurProps, type ProviderStatus, Radio, RadioGroup, RadioGroupItem, RadiusScale, type ReactProductContext, type RealtimeContextValue, RealtimeMockup, type RealtimeMockupProps, RealtimeProvider, type RealtimeProviderProps, type RealtimeState, type RegularArtwork$1 as RegularArtwork, type ResponsiveColumns, type ResponsiveImageCapInfo, type ResponsiveImageCapOptions, ResponsiveZoom, RightToLeftProgressiveBlur, type RightToLeftProgressiveBlurProps, SLIDE_FIRST_VIEW_ATTR, SLIDE_FIRST_VIEW_X_VAR, SLIDE_PHONE_WINDOW_ATTR, SLIDE_PRODUCT_BOX_ATTR, SLIDE_PRODUCT_X0_VAR, SLIDE_PRODUCT_X1_VAR, SafeImg, type SafeImgProps, type ScrollDirection, ScrollFade, type ScrollFadeProps, type ScrollState, type SeamlessPattern$1 as SeamlessPattern, SearchBox, SearchProvider, type SearchProviderProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Shop, ShopContext, type ShopContextValue, type ShopProps, SimpleImageBlur, type SimpleImageBlurProps, type SlideFirstViewProps, Slider, SliderFill, SliderOutput, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Surface, SurfaceContext, type SurfaceProps, Switch, Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, TextArea, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeSwitcher, ThemeToggle, type ThemeToggleProps, TileCount, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, TypographyScale, type UiRouter, UiRouterProvider, type UseBrandResult, type UseImagePreloaderOptions, type UseImagePreloaderReturn, type UseImageTransitionOptions, type UseImageTransitionReturn, type UsePersonalizationShimmerReturn, type UseProductGalleryOptions, type UseProductGalleryReturn, VISIBILITY_THRESHOLDS, type ViewportDimensions, type ZoomImage, ZoomOverlay, badgeVariants, blockingSessionError, brandAssets, buttonVariants, canvasExportService, checkComponentStyles, checkTailwindConfig, checkThemeTokens, createScrollDirectionTracker, formatCurrency, formatDate, formatDateTime, getBrand, getObservedElementCount, getObserverCount, hasEdgeBlur, isObserved, isWideMonitor, kbdVariants, linkVariants, linkedPlacementsLabel, normalizeHex, observe, pictureRenderState, placementArtFor, runConfigChecks, scrollInputAboveKeyboard, searchClient, slideFirstViewProps, spinnerVariants, surfaceVariants, useArtworkAlignment, useBrand, useCanvasContext, useCanvasContextStatic, useCurrentPlacements, useDesign, useDesignOptional, useDeviceDetection, useFocusTrap, useHeroZoomScales, useImagePreloader, useImageTransition, useIsolatedCanvas, useLoadingOverlay, useMediaQuery, useMockupBackgroundOptional, useMockupPriority, useMockupPriorityOptional, usePersonalization, usePersonalizationOptional, usePersonalizationShimmer, usePlacementArtOptional, usePlacementClipShape, usePlacementsProcessor, useProduct, useProductGallery, useProductOptional, useProductPage, useProductPageOptional, useProductSelection, useProviderStatus, useRealtime, useRealtimeOptional, useRenderCount, useRenderGuard, useResponsiveImageCap, useScrollDirection, useSelectedArtwork, useSetArtworkAlignment, useShop, useShopOptional, useSurface, useViewportDimensions, useWideMonitorMode };
|
|
6008
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddToCart, type AddToCartProps, type AddToCartStatus, ArtAlignment, type ArtAlignmentProps, ArtSelector, type ArtSelectorProps, type Artwork, ArtworkCustomizer, type ArtworkCustomizerProps, Badge, type BadgeProps, BrandLogo, type BrandLogoProps, BrandName, type BrandNameProps, Button, type ButtonProps, CanvasEditor, type CanvasExportServiceConfig, CanvasIsolationBoundary, CanvasIsolationConfigurator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CarouselImage, type CarouselRenderProps, Checkbox, Chip, type ClipShape, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, ColorPalette, ColorPicker, type ColorPickerProps, ColorRow, ColorSwatch, type ColorSwatchChoice, type ColorSwatchProps, ColorTokenSwatch, type ContentRenderProps, CurrentRefinements, CurrentSelectionDisplay, type CurrentSelectionDisplayProps, DEFAULT_HERO_ZOOM_CONFIG, DEFAULT_IMAGE_CONFIG, DEFAULT_VISIBILITY_OPTIONS, DesignSystemPage, type DeviceDetectionResult, Disclosure, DisclosureContent, DisclosureTrigger, DragHintAnimation, type DragHintAnimationProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeBlurBox, type EdgeBlurBoxProps, EdgeSwipeGuards, type EdgeSwipeGuardsProps, EnhancedImageViewer, FACET_SECTIONS, FIRST_VIEW_MARGIN, FIRST_VIEW_PICTURE_ASPECT, type FacetSection, type FacetType, Fieldset, type FieldsetProps, Filters, FiltersButton, type FiltersButtonProps, FiltersDrawer, type FiltersProps, type FirstView, type FirstViewAnchor, type FirstViewPhoneWindow, type FirstViewProductBox, FloatingActionGroup, type FloatingActionGroupProps, type FloatingActionItem, type FormatCurrencyOptions, GallerySkipProvider, type GallerySkipValue, type GallerySkipVerdict, type GallerySkips, HeroCarousel, type HeroCarouselProps, type HeroImage, type HeroImageRenderProps, HeroProductImage, type HeroProductImageProps, type HeroShrinkConfig, HeroShrinkLayout, type HeroShrinkLayoutProps, type HeroZoomConfig, HeroZoomLayout, type HeroZoomLayoutProps, type HeroZoomScales, HorizontalProgressiveBlur, type HorizontalProgressiveBlurProps, Drawer as IOSDrawer, DrawerClose as IOSDrawerClose, DrawerContent as IOSDrawerContent, DrawerDescription as IOSDrawerDescription, DrawerFooter as IOSDrawerFooter, DrawerHeader as IOSDrawerHeader, DrawerTitle as IOSDrawerTitle, DrawerTrigger as IOSDrawerTrigger, ImageBlurExtension, type ImageBlurExtensionProps, ImageEdgeBlur, type ImageEdgeBlurProps, type ImageLayer, type ImageUpdateRequest, Input, type InputProps, Kbd, type KbdProps, Label, Legend, type LegendProps, Lightbox, type LightboxProps, Link, LinkIcon, type LinkProps, LoadingOverlayPrism, LoadingOverlayPrismCandy, LoadingOverlayPrismCandyInline, type LoadingOverlayPrismCandyProps, type LoadingOverlayPrismProps, MasonryGrid, type MasonryGridProps, MobileProductCarousel, type MobileProductCarouselProps, MockupBackground, type MockupBackgroundProps, type MockupPriorityContextValue, MockupPriorityProvider, type MockupPriorityProviderProps, type MockupResult, NO_GALLERY_SKIPS, PDPLayout, type PDPLayoutProps, PersonalizationField, PersonalizationInputs, PersonalizationProvider, PersonalizationValues, PlacementArt, type PlacementArtMap, type PlacementArtProps, PlacementClipShapeSelector, type PlacementConfig, type PlacementDesign, PlacementTabs, type PlacementTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, type PriorityLevel, Product, ProductCard, type ProductCardProps, ProductContext, type ProductDataMode, ProductGallery, type ProductGalleryProps, ProductGrid, type ProductGridProps, type ProductHit, ProductHitComponent, ProductImage, type Artwork$1 as ProductImageArtwork, type ProductImageProps, ProductList, type ProductListProps, ProductOptions, type ProductPageContext, ProductPageProvider, ProductPageProviderMinimal, type ProductPageProviderMinimalProps, type ProductPageProviderProps, ProductPrice, type ProductPriceProps, type ProductProviderProps, ProgressiveBlur, type ProgressiveBlurProps, type ProviderStatus, Radio, RadioGroup, RadioGroupItem, RadiusScale, type ReactProductContext, type RealtimeContextValue, RealtimeMockup, type RealtimeMockupProps, RealtimeProvider, type RealtimeProviderProps, type RealtimeState, type RegularArtwork$1 as RegularArtwork, type ResponsiveColumns, type ResponsiveImageCapInfo, type ResponsiveImageCapOptions, ResponsiveZoom, RightToLeftProgressiveBlur, type RightToLeftProgressiveBlurProps, SLIDE_FIRST_VIEW_ATTR, SLIDE_FIRST_VIEW_X_VAR, SLIDE_PHONE_WINDOW_ATTR, SLIDE_PRODUCT_BOX_ATTR, SLIDE_PRODUCT_X0_VAR, SLIDE_PRODUCT_X1_VAR, SafeImg, type SafeImgProps, type ScrollDirection, ScrollFade, type ScrollFadeProps, type ScrollState, type SeamlessPattern$1 as SeamlessPattern, SearchBox, SearchProvider, type SearchProviderProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Shop, ShopContext, type ShopContextValue, type ShopProps, SimpleImageBlur, type SimpleImageBlurProps, type SlideFirstViewProps, Slider, SliderFill, SliderOutput, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Surface, SurfaceContext, type SurfaceProps, Switch, Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, TextArea, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeSwitcher, ThemeToggle, type ThemeToggleProps, TileCount, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, TypographyScale, type UiRouter, UiRouterProvider, type UseBrandResult, type UseImagePreloaderOptions, type UseImagePreloaderReturn, type UseImageTransitionOptions, type UseImageTransitionReturn, type UsePersonalizationShimmerReturn, type UseProductGalleryOptions, type UseProductGalleryReturn, VISIBILITY_THRESHOLDS, type ViewportDimensions, type ZoomImage, ZoomOverlay, badgeVariants, blockingSessionError, brandAssets, buttonVariants, canvasExportService, checkComponentStyles, checkTailwindConfig, checkThemeTokens, createScrollDirectionTracker, firstView, firstViewAnchorOfSlide, formatCurrency, formatDate, formatDateTime, gallerySkipVerdict, gallerySkippedStamp, galleryWithoutSkipped, getBrand, getObservedElementCount, getObserverCount, hasEdgeBlur, isObserved, isWideMonitor, kbdVariants, linkVariants, linkedPlacementsLabel, normalizeHex, observe, pictureRenderState, placementArtFor, runConfigChecks, scrollInputAboveKeyboard, searchClient, slideFirstViewFields, slideFirstViewProps, spinnerVariants, surfaceVariants, useArtworkAlignment, useBrand, useCanvasContext, useCanvasContextStatic, useCurrentPlacements, useDesign, useDesignOptional, useDeviceDetection, useFocusTrap, useGallerySkipOptional, useGallerySkipState, useHeroZoomScales, useImagePreloader, useImageTransition, useIsolatedCanvas, useLoadingOverlay, useMediaQuery, useMockupBackgroundOptional, useMockupPriority, useMockupPriorityOptional, usePersonalization, usePersonalizationOptional, usePersonalizationShimmer, usePlacementArtOptional, usePlacementClipShape, usePlacementsProcessor, useProduct, useProductGallery, useProductOptional, useProductPage, useProductPageOptional, useProductSelection, useProviderStatus, useRealtime, useRealtimeOptional, useRenderCount, useRenderGuard, useResponsiveImageCap, useScrollDirection, useSelectedArtwork, useSetArtworkAlignment, useShop, useShopOptional, useSurface, useViewportDimensions, useWideMonitorMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as React$1 from 'react';
|
|
|
5
5
|
import React__default, { ReactNode, CSSProperties, RefObject } from 'react';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
-
import { ProductPriceOptions, CatalogProduct, ImageAlignment, OptionSelection, ProductContext as ProductContext$1, WebSocketConfig, DesignElement, RealtimeRenderError, MockupView, ProductArtAlignmentOptions, ProductArtAlignmentContext, ArtworkData } from '@snowcone-app/sdk';
|
|
8
|
+
import { ProductPriceOptions, CatalogProduct, ImageAlignment, OptionSelection, ProductContext as ProductContext$1, WebSocketConfig, DesignElement, RealtimeRenderError, RealtimeDesignRefusal, MockupView, DesignRefusalCode, ProductArtAlignmentOptions, ProductArtAlignmentContext, ArtworkData } from '@snowcone-app/sdk';
|
|
9
9
|
export { ArtworkData, AspectRatio, ImageAlignment, ProductArtAlignmentContext, ProductArtAlignmentOptions, ProductData, ProductMockupData, ProductPlacement, ProductVariant, WebSocketConfig, describeProductArtAlignment, getMockupUrl, getProduct, getSnapPoints, listProducts } from '@snowcone-app/sdk';
|
|
10
10
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
11
11
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
@@ -2971,6 +2971,12 @@ interface RealtimeContextValue {
|
|
|
2971
2971
|
* — never as a stale or blank image.
|
|
2972
2972
|
*/
|
|
2973
2973
|
unavailableMockups: ReadonlyMap<string, RealtimeRenderError>;
|
|
2974
|
+
/**
|
|
2975
|
+
* The box cannot draw THIS design on a mockup (a hand that cannot hold it: E_HOLD_NO_GRIP; E_HOLD_GRIP_BUSY after
|
|
2976
|
+
* its one retry, which this provider sends). Never `renderError`, never `unavailableMockups`: a gallery
|
|
2977
|
+
* (GallerySkip) leaves that picture out for this design. Returns the unsubscribe.
|
|
2978
|
+
*/
|
|
2979
|
+
subscribeDesignRefusals: (callback: (refusal: RealtimeDesignRefusal) => void) => () => void;
|
|
2974
2980
|
isPendingMockups: boolean;
|
|
2975
2981
|
canvasBlobsSent: number;
|
|
2976
2982
|
colorBlobsSent: number;
|
|
@@ -4041,6 +4047,60 @@ declare const LoadingOverlayPrismCandy: React$1.NamedExoticComponent<LoadingOver
|
|
|
4041
4047
|
*/
|
|
4042
4048
|
declare const LoadingOverlayPrismCandyInline: React$1.NamedExoticComponent<LoadingOverlayPrismCandyProps>;
|
|
4043
4049
|
|
|
4050
|
+
/**
|
|
4051
|
+
* The gallery's skip rule: a picture whose render cannot draw THIS design (a hand that cannot hold it,
|
|
4052
|
+
* `@snowcone-app/sdk` DESIGN_REFUSALS) is not in that shopper's gallery, for that design. Pure, so the rule is
|
|
4053
|
+
* testable without a render.
|
|
4054
|
+
*
|
|
4055
|
+
* - `E_HOLD_NO_GRIP` (422): left out at once.
|
|
4056
|
+
* - `E_HOLD_GRIP_BUSY` (503): asked once more; a second design refusal leaves it out quietly.
|
|
4057
|
+
* - Anything else (another `E_*`, a 500, a network failure, no code): LOUD, exactly as before (the picture says it is
|
|
4058
|
+
* unavailable). The list is closed: a code nobody classified is never hidden.
|
|
4059
|
+
*
|
|
4060
|
+
* Machine-readable: a gallery that left pictures out stamps `data-gallery-skipped="<mockupId>:<code> …"` on its root.
|
|
4061
|
+
*/
|
|
4062
|
+
|
|
4063
|
+
type GallerySkipVerdict = "skip" | "retry" | "loud";
|
|
4064
|
+
/** What a gallery does with a picture whose render answered `code` (null: no typed code), `attempt` answers in (0 = the first). */
|
|
4065
|
+
declare function gallerySkipVerdict(code: string | null | undefined, attempt: number): GallerySkipVerdict;
|
|
4066
|
+
/** The pictures left out of the gallery for the design shown now: mockupId -> the code its render answered. */
|
|
4067
|
+
type GallerySkips = ReadonlyMap<string, DesignRefusalCode>;
|
|
4068
|
+
declare const NO_GALLERY_SKIPS: GallerySkips;
|
|
4069
|
+
/**
|
|
4070
|
+
* The gallery without the pictures left out, every other picture in its order (the first stays first). Only real
|
|
4071
|
+
* mockups are left out (an AI picture or a placeholder never is). Never empties a gallery: when every picture would
|
|
4072
|
+
* go, all stay and each says it is unavailable (loud). The same array comes back when nothing is left out.
|
|
4073
|
+
*/
|
|
4074
|
+
declare function galleryWithoutSkipped<T extends {
|
|
4075
|
+
mockupId?: string;
|
|
4076
|
+
isRealMockup?: boolean;
|
|
4077
|
+
}>(images: T[], skipped: GallerySkips): T[];
|
|
4078
|
+
/**
|
|
4079
|
+
* `data-gallery-skipped` for a gallery showing `shown`: each left-out picture as `<mockupId>:<code>`, space separated,
|
|
4080
|
+
* in a stable order. Only pictures really absent from `shown` (a host that did not filter stamps nothing).
|
|
4081
|
+
*/
|
|
4082
|
+
declare function gallerySkippedStamp(skipped: GallerySkips, shown: ReadonlyArray<{
|
|
4083
|
+
mockupId?: string;
|
|
4084
|
+
}>): string | undefined;
|
|
4085
|
+
|
|
4086
|
+
interface GallerySkipValue {
|
|
4087
|
+
/** The pictures left out for the design shown now: mockupId -> code. */
|
|
4088
|
+
skipped: GallerySkips;
|
|
4089
|
+
/** A picture's render answered a design refusal (after its retry, for a retry-once code): leave it out for this design. */
|
|
4090
|
+
report: (mockupId: string, code: DesignRefusalCode) => void;
|
|
4091
|
+
}
|
|
4092
|
+
/**
|
|
4093
|
+
* The gallery's skip state for `design` (any string that changes when the design shown changes: the artwork's src
|
|
4094
|
+
* and, for a product printed piece by piece, its per-placement map).
|
|
4095
|
+
*/
|
|
4096
|
+
declare function useGallerySkipState(design: string): GallerySkipValue;
|
|
4097
|
+
declare function GallerySkipProvider({ value, children }: {
|
|
4098
|
+
value: GallerySkipValue;
|
|
4099
|
+
children?: React__default.ReactNode;
|
|
4100
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4101
|
+
/** The gallery's skip state, or undefined outside a GallerySkipProvider. */
|
|
4102
|
+
declare function useGallerySkipOptional(): GallerySkipValue | undefined;
|
|
4103
|
+
|
|
4044
4104
|
interface MockupBackgroundProps {
|
|
4045
4105
|
/** Canonical background hex (lowercase 6-hex, no "#"), or undefined to leave URLs untouched. */
|
|
4046
4106
|
bg?: string;
|
|
@@ -4733,64 +4793,6 @@ declare const searchClient: _meilisearch_instant_meilisearch.InstantMeiliSearchI
|
|
|
4733
4793
|
|
|
4734
4794
|
declare const FACET_SECTIONS: FacetSection[];
|
|
4735
4795
|
|
|
4736
|
-
/**
|
|
4737
|
-
* Image interface for zoom components
|
|
4738
|
-
*/
|
|
4739
|
-
interface ZoomImage {
|
|
4740
|
-
src: string;
|
|
4741
|
-
alt?: string;
|
|
4742
|
-
naturalWidth?: number;
|
|
4743
|
-
naturalHeight?: number;
|
|
4744
|
-
isRealMockup?: boolean;
|
|
4745
|
-
placement?: string;
|
|
4746
|
-
mockupId?: string;
|
|
4747
|
-
/** `whole`: open the picture whole (contain), not cropped to the screen: the gallery's size picture (a diagram). */
|
|
4748
|
-
fit?: "cover" | "whole";
|
|
4749
|
-
}
|
|
4750
|
-
|
|
4751
|
-
interface ResponsiveZoomProps {
|
|
4752
|
-
imageIndex: number;
|
|
4753
|
-
children: React__default.ReactNode;
|
|
4754
|
-
className?: string;
|
|
4755
|
-
style?: React__default.CSSProperties;
|
|
4756
|
-
images?: ZoomImage[];
|
|
4757
|
-
imageUrl?: string;
|
|
4758
|
-
alt?: string;
|
|
4759
|
-
}
|
|
4760
|
-
/**
|
|
4761
|
-
* ResponsiveZoom - Adaptive zoom component that provides the best experience for each device type
|
|
4762
|
-
*
|
|
4763
|
-
* - Desktop (non-touch): Inline 2x zoom with custom cursor (ZoomOverlay)
|
|
4764
|
-
* - Touch devices (phones & tablets): Full-screen pinch-to-zoom viewer (EnhancedImageViewer)
|
|
4765
|
-
*
|
|
4766
|
-
* @example
|
|
4767
|
-
* <ResponsiveZoom imageIndex={0}>
|
|
4768
|
-
* <ProductImage className="w-full" />
|
|
4769
|
-
* </ResponsiveZoom>
|
|
4770
|
-
*/
|
|
4771
|
-
declare function ResponsiveZoom({ imageIndex, children, className, style, images, imageUrl, alt, }: ResponsiveZoomProps): react_jsx_runtime.JSX.Element;
|
|
4772
|
-
|
|
4773
|
-
interface ZoomOverlayProps {
|
|
4774
|
-
imageIndex: number;
|
|
4775
|
-
isLargeTouchDevice: boolean;
|
|
4776
|
-
isTouchDevice: boolean;
|
|
4777
|
-
onEnhancedViewer?: (index: number) => void;
|
|
4778
|
-
children: React__default.ReactNode;
|
|
4779
|
-
className?: string;
|
|
4780
|
-
style?: React__default.CSSProperties;
|
|
4781
|
-
}
|
|
4782
|
-
declare function ZoomOverlay({ imageIndex, isLargeTouchDevice, isTouchDevice, onEnhancedViewer, children, className, style, }: ZoomOverlayProps): react_jsx_runtime.JSX.Element;
|
|
4783
|
-
|
|
4784
|
-
interface EnhancedImageViewerProps {
|
|
4785
|
-
imageUrl: string;
|
|
4786
|
-
alt: string;
|
|
4787
|
-
onClose: () => void;
|
|
4788
|
-
images: ZoomImage[];
|
|
4789
|
-
onIndexChange?: (index: number) => void;
|
|
4790
|
-
currentIndex?: number;
|
|
4791
|
-
}
|
|
4792
|
-
declare const EnhancedImageViewer: ({ imageUrl, alt, onClose, images, onIndexChange, currentIndex: propCurrentIndex, }: EnhancedImageViewerProps) => React__default.ReactPortal;
|
|
4793
|
-
|
|
4794
4796
|
/**
|
|
4795
4797
|
* Carousel Types
|
|
4796
4798
|
*
|
|
@@ -4886,6 +4888,71 @@ interface CarouselImage {
|
|
|
4886
4888
|
*/
|
|
4887
4889
|
type HeroImage = CarouselImage;
|
|
4888
4890
|
|
|
4891
|
+
/**
|
|
4892
|
+
* Image interface for zoom components
|
|
4893
|
+
*/
|
|
4894
|
+
interface ZoomImage {
|
|
4895
|
+
src: string;
|
|
4896
|
+
alt?: string;
|
|
4897
|
+
naturalWidth?: number;
|
|
4898
|
+
naturalHeight?: number;
|
|
4899
|
+
isRealMockup?: boolean;
|
|
4900
|
+
placement?: string;
|
|
4901
|
+
mockupId?: string;
|
|
4902
|
+
/** `whole`: open the picture whole (contain), not cropped to the screen: the gallery's size picture (a diagram). */
|
|
4903
|
+
fit?: "cover" | "whole";
|
|
4904
|
+
/**
|
|
4905
|
+
* Where the product and the mockup's phone window are in this (16:9) picture, as the phone carousel's slide carries
|
|
4906
|
+
* them (carousels/firstView.ts). The viewer opens on them by the hero's first-view rule, so the product is on screen.
|
|
4907
|
+
* Absent = the picture's middle (as before).
|
|
4908
|
+
*/
|
|
4909
|
+
productBox?: CarouselImage["productBox"];
|
|
4910
|
+
phoneWindow?: CarouselImage["phoneWindow"];
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
interface ResponsiveZoomProps {
|
|
4914
|
+
imageIndex: number;
|
|
4915
|
+
children: React__default.ReactNode;
|
|
4916
|
+
className?: string;
|
|
4917
|
+
style?: React__default.CSSProperties;
|
|
4918
|
+
images?: ZoomImage[];
|
|
4919
|
+
imageUrl?: string;
|
|
4920
|
+
alt?: string;
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* ResponsiveZoom - Adaptive zoom component that provides the best experience for each device type
|
|
4924
|
+
*
|
|
4925
|
+
* - Desktop (non-touch): Inline 2x zoom with custom cursor (ZoomOverlay)
|
|
4926
|
+
* - Touch devices (phones & tablets): Full-screen pinch-to-zoom viewer (EnhancedImageViewer)
|
|
4927
|
+
*
|
|
4928
|
+
* @example
|
|
4929
|
+
* <ResponsiveZoom imageIndex={0}>
|
|
4930
|
+
* <ProductImage className="w-full" />
|
|
4931
|
+
* </ResponsiveZoom>
|
|
4932
|
+
*/
|
|
4933
|
+
declare function ResponsiveZoom({ imageIndex, children, className, style, images, imageUrl, alt, }: ResponsiveZoomProps): react_jsx_runtime.JSX.Element;
|
|
4934
|
+
|
|
4935
|
+
interface ZoomOverlayProps {
|
|
4936
|
+
imageIndex: number;
|
|
4937
|
+
isLargeTouchDevice: boolean;
|
|
4938
|
+
isTouchDevice: boolean;
|
|
4939
|
+
onEnhancedViewer?: (index: number) => void;
|
|
4940
|
+
children: React__default.ReactNode;
|
|
4941
|
+
className?: string;
|
|
4942
|
+
style?: React__default.CSSProperties;
|
|
4943
|
+
}
|
|
4944
|
+
declare function ZoomOverlay({ imageIndex, isLargeTouchDevice, isTouchDevice, onEnhancedViewer, children, className, style, }: ZoomOverlayProps): react_jsx_runtime.JSX.Element;
|
|
4945
|
+
|
|
4946
|
+
interface EnhancedImageViewerProps {
|
|
4947
|
+
imageUrl: string;
|
|
4948
|
+
alt: string;
|
|
4949
|
+
onClose: () => void;
|
|
4950
|
+
images: ZoomImage[];
|
|
4951
|
+
onIndexChange?: (index: number) => void;
|
|
4952
|
+
currentIndex?: number;
|
|
4953
|
+
}
|
|
4954
|
+
declare const EnhancedImageViewer: ({ imageUrl, alt, onClose, images, onIndexChange, currentIndex: propCurrentIndex, }: EnhancedImageViewerProps) => React__default.ReactPortal;
|
|
4955
|
+
|
|
4889
4956
|
/**
|
|
4890
4957
|
* What a phone carousel slide says about its picture, for a host that shows only PART of the picture.
|
|
4891
4958
|
*
|
|
@@ -4916,6 +4983,64 @@ interface SlideFirstViewProps {
|
|
|
4916
4983
|
[SLIDE_PHONE_WINDOW_ATTR]?: string;
|
|
4917
4984
|
style?: CSSProperties;
|
|
4918
4985
|
}
|
|
4986
|
+
/** The phone hero's default picture is 16:9 (a plate's `frames['16:9']` window; rendercenter shared/shapes.ts). */
|
|
4987
|
+
declare const FIRST_VIEW_PICTURE_ASPECT: number;
|
|
4988
|
+
/** The share of the view's width kept clear on each side of the product (the frame gate's product-on-a-surface margin). */
|
|
4989
|
+
declare const FIRST_VIEW_MARGIN = 0.03;
|
|
4990
|
+
/** The product's box in a mockup's default 16:9 picture, as fractions of that picture (`mockups[].productBox`). */
|
|
4991
|
+
type FirstViewProductBox = NonNullable<CarouselImage["productBox"]>;
|
|
4992
|
+
/** The mockup's own phone window (its 2:3 frame) along the default picture's width (`mockups[].phoneWindow`). */
|
|
4993
|
+
type FirstViewPhoneWindow = NonNullable<CarouselImage["phoneWindow"]>;
|
|
4994
|
+
/** What a first view is centred on, and the product it then holds. */
|
|
4995
|
+
type FirstViewAnchor =
|
|
4996
|
+
/** The mockup's own phone window (a plate). `product` null: its record has no product box, so nothing is held or judged. */
|
|
4997
|
+
{
|
|
4998
|
+
by: "phone-window";
|
|
4999
|
+
window: FirstViewPhoneWindow;
|
|
5000
|
+
product: FirstViewProductBox | null;
|
|
5001
|
+
}
|
|
5002
|
+
/** A product box but no phone window. */
|
|
5003
|
+
| {
|
|
5004
|
+
by: "product";
|
|
5005
|
+
product: FirstViewProductBox;
|
|
5006
|
+
}
|
|
5007
|
+
/** Neither (a mockup from before plates): its phone window is the centred one its 2:3 gate judged. */
|
|
5008
|
+
| {
|
|
5009
|
+
by: "picture-middle";
|
|
5010
|
+
why: "no-phone-window-no-product-box";
|
|
5011
|
+
};
|
|
5012
|
+
interface FirstView {
|
|
5013
|
+
/** The slice of the picture's width the box shows, as fractions of the picture (0 = its left edge, 1 = its right). */
|
|
5014
|
+
x0: number;
|
|
5015
|
+
x1: number;
|
|
5016
|
+
/** The picture's drawn width and its left edge relative to the box's left edge, px (left <= 0). */
|
|
5017
|
+
pictureWidth: number;
|
|
5018
|
+
left: number;
|
|
5019
|
+
/** `held`: the whole product is in view. `cut`: part of it is outside. `unjudged`: no product box to judge by. */
|
|
5020
|
+
product: "held" | "cut" | "unjudged";
|
|
5021
|
+
/** The share of the product's width that is in view (1 = all of it); null when unjudged. */
|
|
5022
|
+
inView: number | null;
|
|
5023
|
+
/** The part of the product in view as a share of the view's width; null when unjudged. */
|
|
5024
|
+
share: number | null;
|
|
5025
|
+
}
|
|
5026
|
+
/** The anchor of a slide's (already parsed) fields: its phone window, else its product, else the picture's middle. */
|
|
5027
|
+
declare function firstViewAnchorOfSlide(image: Pick<CarouselImage, "productBox" | "phoneWindow">): FirstViewAnchor;
|
|
5028
|
+
/**
|
|
5029
|
+
* THE first-view rule (one copy: the www phone hero's CSS, heroFirstView.ts, and the tap-to-enlarge viewer,
|
|
5030
|
+
* EnhancedImageViewer, both draw by it). What a box of `width` x `height` CSS px shows of a picture drawn
|
|
5031
|
+
* `object-fit: cover`: the picture is the box's height (or its width, when the box is wider than the picture), centred
|
|
5032
|
+
* on the anchor, slid as little as it must to hold the whole product with FIRST_VIEW_MARGIN of the view clear on each
|
|
5033
|
+
* side (a product too wide for that is centred in the view, reported `cut`), and never past its own edges.
|
|
5034
|
+
*/
|
|
5035
|
+
declare function firstView(box: {
|
|
5036
|
+
width: number;
|
|
5037
|
+
height: number;
|
|
5038
|
+
}, anchor: FirstViewAnchor, pictureAspect?: number): FirstView;
|
|
5039
|
+
/**
|
|
5040
|
+
* The fields a phone carousel slide hands the tap-to-enlarge viewer: a real mockup's product box and phone window (the
|
|
5041
|
+
* same pictures the slide stamps, `image.isRealMockup ? image : {}`), nothing for any other picture.
|
|
5042
|
+
*/
|
|
5043
|
+
declare function slideFirstViewFields(image: Pick<CarouselImage, "isRealMockup" | "productBox" | "phoneWindow">): Pick<CarouselImage, "productBox" | "phoneWindow">;
|
|
4919
5044
|
/** The attributes and CSS variables for one slide; `{}` when the picture has neither a phone window nor a product box. */
|
|
4920
5045
|
declare function slideFirstViewProps(image: Pick<CarouselImage, "productBox" | "phoneWindow">): SlideFirstViewProps;
|
|
4921
5046
|
|
|
@@ -5880,4 +6005,4 @@ declare function normalizeHex(color: string): string;
|
|
|
5880
6005
|
*/
|
|
5881
6006
|
declare function scrollInputAboveKeyboard(input: HTMLElement): void;
|
|
5882
6007
|
|
|
5883
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddToCart, type AddToCartProps, type AddToCartStatus, ArtAlignment, type ArtAlignmentProps, ArtSelector, type ArtSelectorProps, type Artwork, ArtworkCustomizer, type ArtworkCustomizerProps, Badge, type BadgeProps, BrandLogo, type BrandLogoProps, BrandName, type BrandNameProps, Button, type ButtonProps, CanvasEditor, type CanvasExportServiceConfig, CanvasIsolationBoundary, CanvasIsolationConfigurator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CarouselImage, type CarouselRenderProps, Checkbox, Chip, type ClipShape, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, ColorPalette, ColorPicker, type ColorPickerProps, ColorRow, ColorSwatch, type ColorSwatchChoice, type ColorSwatchProps, ColorTokenSwatch, type ContentRenderProps, CurrentRefinements, CurrentSelectionDisplay, type CurrentSelectionDisplayProps, DEFAULT_HERO_ZOOM_CONFIG, DEFAULT_IMAGE_CONFIG, DEFAULT_VISIBILITY_OPTIONS, DesignSystemPage, type DeviceDetectionResult, Disclosure, DisclosureContent, DisclosureTrigger, DragHintAnimation, type DragHintAnimationProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeBlurBox, type EdgeBlurBoxProps, EdgeSwipeGuards, type EdgeSwipeGuardsProps, EnhancedImageViewer, FACET_SECTIONS, type FacetSection, type FacetType, Fieldset, type FieldsetProps, Filters, FiltersButton, type FiltersButtonProps, FiltersDrawer, type FiltersProps, FloatingActionGroup, type FloatingActionGroupProps, type FloatingActionItem, type FormatCurrencyOptions, HeroCarousel, type HeroCarouselProps, type HeroImage, type HeroImageRenderProps, HeroProductImage, type HeroProductImageProps, type HeroShrinkConfig, HeroShrinkLayout, type HeroShrinkLayoutProps, type HeroZoomConfig, HeroZoomLayout, type HeroZoomLayoutProps, type HeroZoomScales, HorizontalProgressiveBlur, type HorizontalProgressiveBlurProps, Drawer as IOSDrawer, DrawerClose as IOSDrawerClose, DrawerContent as IOSDrawerContent, DrawerDescription as IOSDrawerDescription, DrawerFooter as IOSDrawerFooter, DrawerHeader as IOSDrawerHeader, DrawerTitle as IOSDrawerTitle, DrawerTrigger as IOSDrawerTrigger, ImageBlurExtension, type ImageBlurExtensionProps, ImageEdgeBlur, type ImageEdgeBlurProps, type ImageLayer, type ImageUpdateRequest, Input, type InputProps, Kbd, type KbdProps, Label, Legend, type LegendProps, Lightbox, type LightboxProps, Link, LinkIcon, type LinkProps, LoadingOverlayPrism, LoadingOverlayPrismCandy, LoadingOverlayPrismCandyInline, type LoadingOverlayPrismCandyProps, type LoadingOverlayPrismProps, MasonryGrid, type MasonryGridProps, MobileProductCarousel, type MobileProductCarouselProps, MockupBackground, type MockupBackgroundProps, type MockupPriorityContextValue, MockupPriorityProvider, type MockupPriorityProviderProps, type MockupResult, PDPLayout, type PDPLayoutProps, PersonalizationField, PersonalizationInputs, PersonalizationProvider, PersonalizationValues, PlacementArt, type PlacementArtMap, type PlacementArtProps, PlacementClipShapeSelector, type PlacementConfig, type PlacementDesign, PlacementTabs, type PlacementTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, type PriorityLevel, Product, ProductCard, type ProductCardProps, ProductContext, type ProductDataMode, ProductGallery, type ProductGalleryProps, ProductGrid, type ProductGridProps, type ProductHit, ProductHitComponent, ProductImage, type Artwork$1 as ProductImageArtwork, type ProductImageProps, ProductList, type ProductListProps, ProductOptions, type ProductPageContext, ProductPageProvider, ProductPageProviderMinimal, type ProductPageProviderMinimalProps, type ProductPageProviderProps, ProductPrice, type ProductPriceProps, type ProductProviderProps, ProgressiveBlur, type ProgressiveBlurProps, type ProviderStatus, Radio, RadioGroup, RadioGroupItem, RadiusScale, type ReactProductContext, type RealtimeContextValue, RealtimeMockup, type RealtimeMockupProps, RealtimeProvider, type RealtimeProviderProps, type RealtimeState, type RegularArtwork$1 as RegularArtwork, type ResponsiveColumns, type ResponsiveImageCapInfo, type ResponsiveImageCapOptions, ResponsiveZoom, RightToLeftProgressiveBlur, type RightToLeftProgressiveBlurProps, SLIDE_FIRST_VIEW_ATTR, SLIDE_FIRST_VIEW_X_VAR, SLIDE_PHONE_WINDOW_ATTR, SLIDE_PRODUCT_BOX_ATTR, SLIDE_PRODUCT_X0_VAR, SLIDE_PRODUCT_X1_VAR, SafeImg, type SafeImgProps, type ScrollDirection, ScrollFade, type ScrollFadeProps, type ScrollState, type SeamlessPattern$1 as SeamlessPattern, SearchBox, SearchProvider, type SearchProviderProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Shop, ShopContext, type ShopContextValue, type ShopProps, SimpleImageBlur, type SimpleImageBlurProps, type SlideFirstViewProps, Slider, SliderFill, SliderOutput, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Surface, SurfaceContext, type SurfaceProps, Switch, Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, TextArea, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeSwitcher, ThemeToggle, type ThemeToggleProps, TileCount, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, TypographyScale, type UiRouter, UiRouterProvider, type UseBrandResult, type UseImagePreloaderOptions, type UseImagePreloaderReturn, type UseImageTransitionOptions, type UseImageTransitionReturn, type UsePersonalizationShimmerReturn, type UseProductGalleryOptions, type UseProductGalleryReturn, VISIBILITY_THRESHOLDS, type ViewportDimensions, type ZoomImage, ZoomOverlay, badgeVariants, blockingSessionError, brandAssets, buttonVariants, canvasExportService, checkComponentStyles, checkTailwindConfig, checkThemeTokens, createScrollDirectionTracker, formatCurrency, formatDate, formatDateTime, getBrand, getObservedElementCount, getObserverCount, hasEdgeBlur, isObserved, isWideMonitor, kbdVariants, linkVariants, linkedPlacementsLabel, normalizeHex, observe, pictureRenderState, placementArtFor, runConfigChecks, scrollInputAboveKeyboard, searchClient, slideFirstViewProps, spinnerVariants, surfaceVariants, useArtworkAlignment, useBrand, useCanvasContext, useCanvasContextStatic, useCurrentPlacements, useDesign, useDesignOptional, useDeviceDetection, useFocusTrap, useHeroZoomScales, useImagePreloader, useImageTransition, useIsolatedCanvas, useLoadingOverlay, useMediaQuery, useMockupBackgroundOptional, useMockupPriority, useMockupPriorityOptional, usePersonalization, usePersonalizationOptional, usePersonalizationShimmer, usePlacementArtOptional, usePlacementClipShape, usePlacementsProcessor, useProduct, useProductGallery, useProductOptional, useProductPage, useProductPageOptional, useProductSelection, useProviderStatus, useRealtime, useRealtimeOptional, useRenderCount, useRenderGuard, useResponsiveImageCap, useScrollDirection, useSelectedArtwork, useSetArtworkAlignment, useShop, useShopOptional, useSurface, useViewportDimensions, useWideMonitorMode };
|
|
6008
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddToCart, type AddToCartProps, type AddToCartStatus, ArtAlignment, type ArtAlignmentProps, ArtSelector, type ArtSelectorProps, type Artwork, ArtworkCustomizer, type ArtworkCustomizerProps, Badge, type BadgeProps, BrandLogo, type BrandLogoProps, BrandName, type BrandNameProps, Button, type ButtonProps, CanvasEditor, type CanvasExportServiceConfig, CanvasIsolationBoundary, CanvasIsolationConfigurator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CarouselImage, type CarouselRenderProps, Checkbox, Chip, type ClipShape, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, ColorPalette, ColorPicker, type ColorPickerProps, ColorRow, ColorSwatch, type ColorSwatchChoice, type ColorSwatchProps, ColorTokenSwatch, type ContentRenderProps, CurrentRefinements, CurrentSelectionDisplay, type CurrentSelectionDisplayProps, DEFAULT_HERO_ZOOM_CONFIG, DEFAULT_IMAGE_CONFIG, DEFAULT_VISIBILITY_OPTIONS, DesignSystemPage, type DeviceDetectionResult, Disclosure, DisclosureContent, DisclosureTrigger, DragHintAnimation, type DragHintAnimationProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeBlurBox, type EdgeBlurBoxProps, EdgeSwipeGuards, type EdgeSwipeGuardsProps, EnhancedImageViewer, FACET_SECTIONS, FIRST_VIEW_MARGIN, FIRST_VIEW_PICTURE_ASPECT, type FacetSection, type FacetType, Fieldset, type FieldsetProps, Filters, FiltersButton, type FiltersButtonProps, FiltersDrawer, type FiltersProps, type FirstView, type FirstViewAnchor, type FirstViewPhoneWindow, type FirstViewProductBox, FloatingActionGroup, type FloatingActionGroupProps, type FloatingActionItem, type FormatCurrencyOptions, GallerySkipProvider, type GallerySkipValue, type GallerySkipVerdict, type GallerySkips, HeroCarousel, type HeroCarouselProps, type HeroImage, type HeroImageRenderProps, HeroProductImage, type HeroProductImageProps, type HeroShrinkConfig, HeroShrinkLayout, type HeroShrinkLayoutProps, type HeroZoomConfig, HeroZoomLayout, type HeroZoomLayoutProps, type HeroZoomScales, HorizontalProgressiveBlur, type HorizontalProgressiveBlurProps, Drawer as IOSDrawer, DrawerClose as IOSDrawerClose, DrawerContent as IOSDrawerContent, DrawerDescription as IOSDrawerDescription, DrawerFooter as IOSDrawerFooter, DrawerHeader as IOSDrawerHeader, DrawerTitle as IOSDrawerTitle, DrawerTrigger as IOSDrawerTrigger, ImageBlurExtension, type ImageBlurExtensionProps, ImageEdgeBlur, type ImageEdgeBlurProps, type ImageLayer, type ImageUpdateRequest, Input, type InputProps, Kbd, type KbdProps, Label, Legend, type LegendProps, Lightbox, type LightboxProps, Link, LinkIcon, type LinkProps, LoadingOverlayPrism, LoadingOverlayPrismCandy, LoadingOverlayPrismCandyInline, type LoadingOverlayPrismCandyProps, type LoadingOverlayPrismProps, MasonryGrid, type MasonryGridProps, MobileProductCarousel, type MobileProductCarouselProps, MockupBackground, type MockupBackgroundProps, type MockupPriorityContextValue, MockupPriorityProvider, type MockupPriorityProviderProps, type MockupResult, NO_GALLERY_SKIPS, PDPLayout, type PDPLayoutProps, PersonalizationField, PersonalizationInputs, PersonalizationProvider, PersonalizationValues, PlacementArt, type PlacementArtMap, type PlacementArtProps, PlacementClipShapeSelector, type PlacementConfig, type PlacementDesign, PlacementTabs, type PlacementTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, type PriorityLevel, Product, ProductCard, type ProductCardProps, ProductContext, type ProductDataMode, ProductGallery, type ProductGalleryProps, ProductGrid, type ProductGridProps, type ProductHit, ProductHitComponent, ProductImage, type Artwork$1 as ProductImageArtwork, type ProductImageProps, ProductList, type ProductListProps, ProductOptions, type ProductPageContext, ProductPageProvider, ProductPageProviderMinimal, type ProductPageProviderMinimalProps, type ProductPageProviderProps, ProductPrice, type ProductPriceProps, type ProductProviderProps, ProgressiveBlur, type ProgressiveBlurProps, type ProviderStatus, Radio, RadioGroup, RadioGroupItem, RadiusScale, type ReactProductContext, type RealtimeContextValue, RealtimeMockup, type RealtimeMockupProps, RealtimeProvider, type RealtimeProviderProps, type RealtimeState, type RegularArtwork$1 as RegularArtwork, type ResponsiveColumns, type ResponsiveImageCapInfo, type ResponsiveImageCapOptions, ResponsiveZoom, RightToLeftProgressiveBlur, type RightToLeftProgressiveBlurProps, SLIDE_FIRST_VIEW_ATTR, SLIDE_FIRST_VIEW_X_VAR, SLIDE_PHONE_WINDOW_ATTR, SLIDE_PRODUCT_BOX_ATTR, SLIDE_PRODUCT_X0_VAR, SLIDE_PRODUCT_X1_VAR, SafeImg, type SafeImgProps, type ScrollDirection, ScrollFade, type ScrollFadeProps, type ScrollState, type SeamlessPattern$1 as SeamlessPattern, SearchBox, SearchProvider, type SearchProviderProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Shop, ShopContext, type ShopContextValue, type ShopProps, SimpleImageBlur, type SimpleImageBlurProps, type SlideFirstViewProps, Slider, SliderFill, SliderOutput, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Surface, SurfaceContext, type SurfaceProps, Switch, Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, TextArea, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeSwitcher, ThemeToggle, type ThemeToggleProps, TileCount, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, TypographyScale, type UiRouter, UiRouterProvider, type UseBrandResult, type UseImagePreloaderOptions, type UseImagePreloaderReturn, type UseImageTransitionOptions, type UseImageTransitionReturn, type UsePersonalizationShimmerReturn, type UseProductGalleryOptions, type UseProductGalleryReturn, VISIBILITY_THRESHOLDS, type ViewportDimensions, type ZoomImage, ZoomOverlay, badgeVariants, blockingSessionError, brandAssets, buttonVariants, canvasExportService, checkComponentStyles, checkTailwindConfig, checkThemeTokens, createScrollDirectionTracker, firstView, firstViewAnchorOfSlide, formatCurrency, formatDate, formatDateTime, gallerySkipVerdict, gallerySkippedStamp, galleryWithoutSkipped, getBrand, getObservedElementCount, getObserverCount, hasEdgeBlur, isObserved, isWideMonitor, kbdVariants, linkVariants, linkedPlacementsLabel, normalizeHex, observe, pictureRenderState, placementArtFor, runConfigChecks, scrollInputAboveKeyboard, searchClient, slideFirstViewFields, slideFirstViewProps, spinnerVariants, surfaceVariants, useArtworkAlignment, useBrand, useCanvasContext, useCanvasContextStatic, useCurrentPlacements, useDesign, useDesignOptional, useDeviceDetection, useFocusTrap, useGallerySkipOptional, useGallerySkipState, useHeroZoomScales, useImagePreloader, useImageTransition, useIsolatedCanvas, useLoadingOverlay, useMediaQuery, useMockupBackgroundOptional, useMockupPriority, useMockupPriorityOptional, usePersonalization, usePersonalizationOptional, usePersonalizationShimmer, usePlacementArtOptional, usePlacementClipShape, usePlacementsProcessor, useProduct, useProductGallery, useProductOptional, useProductPage, useProductPageOptional, useProductSelection, useProviderStatus, useRealtime, useRealtimeOptional, useRenderCount, useRenderGuard, useResponsiveImageCap, useScrollDirection, useSelectedArtwork, useSetArtworkAlignment, useShop, useShopOptional, useSurface, useViewportDimensions, useWideMonitorMode };
|