ugcinc-render 1.8.20 → 1.8.21
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/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -641,6 +641,8 @@ interface ScreenshotAnimationProps {
|
|
|
641
641
|
pauseDurationMs?: number;
|
|
642
642
|
/** Duration of flash phase (ms) */
|
|
643
643
|
flashDurationMs?: number;
|
|
644
|
+
/** Duration to hold at end after animation completes (ms) */
|
|
645
|
+
holdDurationMs?: number;
|
|
644
646
|
/** Border corner radius (px) */
|
|
645
647
|
borderRadius?: number;
|
|
646
648
|
/** Border color */
|
|
@@ -648,7 +650,7 @@ interface ScreenshotAnimationProps {
|
|
|
648
650
|
/** Background color (behind everything) */
|
|
649
651
|
backgroundColor?: string;
|
|
650
652
|
}
|
|
651
|
-
declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs, flashDurationMs, borderRadius, borderColor, backgroundColor, }: ScreenshotAnimationProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs, flashDurationMs, holdDurationMs, borderRadius, borderColor, backgroundColor, }: ScreenshotAnimationProps): react_jsx_runtime.JSX.Element;
|
|
652
654
|
|
|
653
655
|
interface TextElementProps {
|
|
654
656
|
segment: TextSegment;
|
package/dist/index.d.ts
CHANGED
|
@@ -641,6 +641,8 @@ interface ScreenshotAnimationProps {
|
|
|
641
641
|
pauseDurationMs?: number;
|
|
642
642
|
/** Duration of flash phase (ms) */
|
|
643
643
|
flashDurationMs?: number;
|
|
644
|
+
/** Duration to hold at end after animation completes (ms) */
|
|
645
|
+
holdDurationMs?: number;
|
|
644
646
|
/** Border corner radius (px) */
|
|
645
647
|
borderRadius?: number;
|
|
646
648
|
/** Border color */
|
|
@@ -648,7 +650,7 @@ interface ScreenshotAnimationProps {
|
|
|
648
650
|
/** Background color (behind everything) */
|
|
649
651
|
backgroundColor?: string;
|
|
650
652
|
}
|
|
651
|
-
declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs, flashDurationMs, borderRadius, borderColor, backgroundColor, }: ScreenshotAnimationProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs, flashDurationMs, holdDurationMs, borderRadius, borderColor, backgroundColor, }: ScreenshotAnimationProps): react_jsx_runtime.JSX.Element;
|
|
652
654
|
|
|
653
655
|
interface TextElementProps {
|
|
654
656
|
segment: TextSegment;
|
package/dist/index.js
CHANGED
|
@@ -2434,6 +2434,7 @@ function ScreenshotAnimation({
|
|
|
2434
2434
|
height = 2622,
|
|
2435
2435
|
pauseDurationMs = 1e3,
|
|
2436
2436
|
flashDurationMs = 255,
|
|
2437
|
+
holdDurationMs = 500,
|
|
2437
2438
|
borderRadius = 35,
|
|
2438
2439
|
borderColor = "rgba(254, 255, 255, 1)",
|
|
2439
2440
|
backgroundColor = "#000000"
|
|
@@ -3069,6 +3070,7 @@ var defaultScreenshotAnimationProps = {
|
|
|
3069
3070
|
height: 2622,
|
|
3070
3071
|
pauseDurationMs: 1e3,
|
|
3071
3072
|
flashDurationMs: 255,
|
|
3073
|
+
holdDurationMs: 500,
|
|
3072
3074
|
borderRadius: 35,
|
|
3073
3075
|
borderColor: "rgba(254, 255, 255, 1)",
|
|
3074
3076
|
backgroundColor: "#000000"
|
|
@@ -3079,6 +3081,7 @@ var screenshotAnimationSchema = import_zod.z.object({
|
|
|
3079
3081
|
height: import_zod.z.number().optional().default(2622).describe("Canvas height (px)"),
|
|
3080
3082
|
pauseDurationMs: import_zod.z.number().optional().default(1e3).describe("Pause before flash (ms)"),
|
|
3081
3083
|
flashDurationMs: import_zod.z.number().optional().default(255).describe("Flash phase duration (ms)"),
|
|
3084
|
+
holdDurationMs: import_zod.z.number().optional().default(500).describe("Hold at end after animation (ms)"),
|
|
3082
3085
|
borderRadius: import_zod.z.number().optional().default(35).describe("Border corner radius (px)"),
|
|
3083
3086
|
borderColor: import_zod.z.string().optional().default("rgba(254, 255, 255, 1)").describe("Border color"),
|
|
3084
3087
|
backgroundColor: import_zod.z.string().optional().default("#000000").describe("Background color")
|
package/dist/index.mjs
CHANGED
|
@@ -1571,6 +1571,7 @@ function ScreenshotAnimation({
|
|
|
1571
1571
|
height = 2622,
|
|
1572
1572
|
pauseDurationMs = 1e3,
|
|
1573
1573
|
flashDurationMs = 255,
|
|
1574
|
+
holdDurationMs = 500,
|
|
1574
1575
|
borderRadius = 35,
|
|
1575
1576
|
borderColor = "rgba(254, 255, 255, 1)",
|
|
1576
1577
|
backgroundColor = "#000000"
|
|
@@ -1923,6 +1924,7 @@ var defaultScreenshotAnimationProps = {
|
|
|
1923
1924
|
height: 2622,
|
|
1924
1925
|
pauseDurationMs: 1e3,
|
|
1925
1926
|
flashDurationMs: 255,
|
|
1927
|
+
holdDurationMs: 500,
|
|
1926
1928
|
borderRadius: 35,
|
|
1927
1929
|
borderColor: "rgba(254, 255, 255, 1)",
|
|
1928
1930
|
backgroundColor: "#000000"
|
|
@@ -1933,6 +1935,7 @@ var screenshotAnimationSchema = z.object({
|
|
|
1933
1935
|
height: z.number().optional().default(2622).describe("Canvas height (px)"),
|
|
1934
1936
|
pauseDurationMs: z.number().optional().default(1e3).describe("Pause before flash (ms)"),
|
|
1935
1937
|
flashDurationMs: z.number().optional().default(255).describe("Flash phase duration (ms)"),
|
|
1938
|
+
holdDurationMs: z.number().optional().default(500).describe("Hold at end after animation (ms)"),
|
|
1936
1939
|
borderRadius: z.number().optional().default(35).describe("Border corner radius (px)"),
|
|
1937
1940
|
borderColor: z.string().optional().default("rgba(254, 255, 255, 1)").describe("Border color"),
|
|
1938
1941
|
backgroundColor: z.string().optional().default("#000000").describe("Background color")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.21",
|
|
4
4
|
"description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|