@photoroom/ui 0.1.112 → 0.1.114
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/components/content/ProductTile/ProductTile.d.ts +3 -3
- package/components/content/ProductTile/ProductTile.d.ts.map +1 -1
- package/components/content/ProgressTimer/ProgressTimer.d.ts +8 -1
- package/components/content/ProgressTimer/ProgressTimer.d.ts.map +1 -1
- package/components/content/VideoTile/VideoTile.d.ts +10 -3
- package/components/content/VideoTile/VideoTile.d.ts.map +1 -1
- package/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ type ProductTileProps = {
|
|
|
4
4
|
imageUrl?: string;
|
|
5
5
|
mediaCount: number;
|
|
6
6
|
onClick?: () => void;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
hasUnpublishedChanges?: boolean;
|
|
8
|
+
unpublishedChangesLabel: React.ReactNode;
|
|
9
9
|
sellScore?: SellScoreProps;
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const ProductTile: ({ title, imageUrl, sellScore, mediaCount, onClick,
|
|
12
|
+
export declare const ProductTile: ({ title, imageUrl, sellScore, mediaCount, onClick, hasUnpublishedChanges, unpublishedChangesLabel, className, }: ProductTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=ProductTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductTile/ProductTile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"ProductTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductTile/ProductTile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC;IACzC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,iHASzB,gBAAgB,4CAqBlB,CAAC"}
|
|
@@ -8,6 +8,13 @@ export type ProgressTimerProps = {
|
|
|
8
8
|
* bar never reaches full before the backend responds.
|
|
9
9
|
*/
|
|
10
10
|
totalExpectedDuration: number;
|
|
11
|
+
/**
|
|
12
|
+
* Unix timestamp (ms) when generation started. When provided the elapsed
|
|
13
|
+
* timer and progress bar resume from that point instead of resetting to
|
|
14
|
+
* zero on mount — needed when the component re-mounts after the user
|
|
15
|
+
* leaves and returns to a modal while generation is still in progress.
|
|
16
|
+
*/
|
|
17
|
+
generationStartedAt?: number;
|
|
11
18
|
/**
|
|
12
19
|
* When true, the background behind the overlay is already CSS-blurred,
|
|
13
20
|
* so backdrop-blur and the mask gradient are skipped to avoid double-blur.
|
|
@@ -15,5 +22,5 @@ export type ProgressTimerProps = {
|
|
|
15
22
|
loadingBlur?: boolean;
|
|
16
23
|
className?: string;
|
|
17
24
|
};
|
|
18
|
-
export declare function ProgressTimer({ messages, totalExpectedDuration, loadingBlur, className, }: ProgressTimerProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function ProgressTimer({ messages, totalExpectedDuration, generationStartedAt, loadingBlur, className, }: ProgressTimerProps): import("react/jsx-runtime").JSX.Element;
|
|
19
26
|
//# sourceMappingURL=ProgressTimer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressTimer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProgressTimer/ProgressTimer.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgressTimer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProgressTimer/ProgressTimer.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuBF,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,SAAS,GACV,EAAE,kBAAkB,2CA2HpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type VideoTileAspectRatio = "9/16" | "16/9" | "1/1";
|
|
2
1
|
export type VideoTileProps = {
|
|
3
|
-
|
|
2
|
+
/** Applied directly to the inner content element. */
|
|
3
|
+
contentStyle?: React.CSSProperties;
|
|
4
4
|
label: string;
|
|
5
5
|
showLabel?: boolean;
|
|
6
6
|
sizeLabel?: string;
|
|
@@ -8,14 +8,21 @@ export type VideoTileProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
messages?: readonly string[];
|
|
10
10
|
totalExpectedDuration?: number;
|
|
11
|
+
generationStartedAt?: number;
|
|
11
12
|
loadingBlur?: boolean;
|
|
13
|
+
/** Passed directly to `Tile.trailingTop` without wrapping — use when the caller already provides a fully-rendered menu node. Takes precedence over `moreMenu`. */
|
|
14
|
+
trailingTop?: React.ReactNode;
|
|
15
|
+
/** Menu items wrapped automatically in `TileMoreMenu`. Ignored when `trailingTop` is provided. */
|
|
12
16
|
moreMenu?: React.ReactNode;
|
|
13
17
|
isSelected?: boolean;
|
|
14
18
|
onSelectedChange?: (isSelected: boolean) => void;
|
|
19
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
15
20
|
/** Callback for the save button. When omitted the save button is not rendered. */
|
|
16
21
|
onSave?: () => void;
|
|
17
22
|
/** Accessible label for the save button. */
|
|
18
23
|
saveLabel?: string;
|
|
24
|
+
/** Label shown after the save button has been clicked. */
|
|
25
|
+
savedLabel?: string;
|
|
19
26
|
};
|
|
20
|
-
export declare function VideoTile({
|
|
27
|
+
export declare function VideoTile({ contentStyle, label, showLabel, sizeLabel, children, className, messages, totalExpectedDuration, generationStartedAt, loadingBlur, trailingTop, moreMenu, isSelected, onSelectedChange, onClick, onSave, saveLabel, savedLabel, }: VideoTileProps): import("react/jsx-runtime").JSX.Element;
|
|
21
28
|
//# sourceMappingURL=VideoTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoTile/VideoTile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoTile/VideoTile.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,cAAc,GAAG;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACn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= uG;
|
|
32846
32846
|
//#endregion
|
|
32847
32847
|
//#region src/components/status/UnpublishedStatus/UnpublishedStatus.tsx
|
|
32848
|
-
var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 items-center justify-center gap-1", {
|
|
32848
|
+
var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-center justify-center gap-1", {
|
|
32849
32849
|
variants: { background: {
|
|
32850
32850
|
true: "bg-background-subdued text-content-black-primary dark:bg-background-white px-2",
|
|
32851
32851
|
false: "text-content-primary"
|
|
@@ -32901,7 +32901,7 @@ var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 items-center j
|
|
|
32901
32901
|
className: "flex h-full w-full items-center justify-center",
|
|
32902
32902
|
children: /* @__PURE__ */ T(xe, { className: "text-content-tertiary icon-size-600" })
|
|
32903
32903
|
})
|
|
32904
|
-
}), yG = ({ title: e, imageUrl: t, sellScore: n, mediaCount: r, onClick: i,
|
|
32904
|
+
}), yG = ({ title: e, imageUrl: t, sellScore: n, mediaCount: r, onClick: i, hasUnpublishedChanges: a = !1, unpublishedChangesLabel: o, className: s }) => /* @__PURE__ */ E("div", {
|
|
32905
32905
|
onClick: i,
|
|
32906
32906
|
className: H("rounded-500 bg-surface-high relative flex cursor-pointer items-center justify-start gap-3 p-1 pr-9", "border-misc-hairline misc-border-size-hairline hover:border-misc-border-emphasized", "active:bg-background-subdued-down", s),
|
|
32907
32907
|
children: [/* @__PURE__ */ T(vG, {
|