ugcinc-render 1.3.5 → 1.3.6
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 +9 -11
- package/dist/index.d.ts +9 -11
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +4 -5
package/dist/index.d.mts
CHANGED
|
@@ -762,8 +762,7 @@ interface ImageEditorCompositionProps {
|
|
|
762
762
|
*
|
|
763
763
|
* @example
|
|
764
764
|
* ```tsx
|
|
765
|
-
* import {
|
|
766
|
-
* import { ImageEditorComposition } from '@ugcinc/remotion';
|
|
765
|
+
* import { ImageEditorComposition } from 'ugcinc-render/compositions';
|
|
767
766
|
*
|
|
768
767
|
* // NEW: Pass raw elements directly (preferred)
|
|
769
768
|
* <Player
|
|
@@ -808,8 +807,7 @@ interface VideoEditorCompositionProps {
|
|
|
808
807
|
*
|
|
809
808
|
* @example
|
|
810
809
|
* ```tsx
|
|
811
|
-
* import {
|
|
812
|
-
* import { VideoEditorComposition } from '@ugcinc/remotion';
|
|
810
|
+
* import { VideoEditorComposition } from 'ugcinc-render/compositions';
|
|
813
811
|
*
|
|
814
812
|
* <Player
|
|
815
813
|
* component={VideoEditorComposition}
|
|
@@ -915,7 +913,7 @@ declare const FONT_URLS: {
|
|
|
915
913
|
};
|
|
916
914
|
};
|
|
917
915
|
/**
|
|
918
|
-
* Preload fonts for
|
|
916
|
+
* Preload fonts for rendering
|
|
919
917
|
* Call this in your Root component or composition
|
|
920
918
|
*/
|
|
921
919
|
declare function preloadFonts(): Promise<void>;
|
|
@@ -1139,7 +1137,7 @@ declare function getReferenceElementX(elements: ImageEditorElement[], elementId:
|
|
|
1139
1137
|
declare function getReferenceElementY(elements: ImageEditorElement[], elementId: string): ImageEditorElement | null;
|
|
1140
1138
|
|
|
1141
1139
|
/**
|
|
1142
|
-
* Hook exports for
|
|
1140
|
+
* Hook exports for ugcinc-render
|
|
1143
1141
|
*
|
|
1144
1142
|
* Hooks for common operations like font loading, media preloading,
|
|
1145
1143
|
* and position resolution.
|
|
@@ -1189,12 +1187,12 @@ declare function useImagePreloader(sources: Record<string, string>): {
|
|
|
1189
1187
|
declare function useResolvedPositions(elements: ImageEditorElement[], textValues?: Record<string, string>): PositionResolutionResult;
|
|
1190
1188
|
|
|
1191
1189
|
/**
|
|
1192
|
-
*
|
|
1190
|
+
* Render Root Component
|
|
1193
1191
|
*
|
|
1194
|
-
* This file registers all available compositions with
|
|
1195
|
-
* It serves as the entry point for the
|
|
1192
|
+
* This file registers all available compositions with the renderer.
|
|
1193
|
+
* It serves as the entry point for the renderer bundler.
|
|
1196
1194
|
*/
|
|
1197
1195
|
|
|
1198
|
-
declare const
|
|
1196
|
+
declare const RenderRoot: React.FC;
|
|
1199
1197
|
|
|
1200
|
-
export { type AudioSegment, type BaseEditorConfig, type BaseSegment, type BorderRadiusConfig, type Channel, type CropAxisConfig, type CropBoundary, type CropBounds, DIMENSION_PRESETS, type DimensionPreset, type DimensionPresetKey, type DynamicCropConfig, type EditorConfig, type EditorSegment, FONT_FAMILIES, FONT_URLS, type FitDimensions, type FitMode, type FontType, type FontWeight, type HorizontalAnchor, type HorizontalSelfAnchor, type Hyphenation, IMAGE_DEFAULTS, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, type ImageEditorElement, type ImageEditorNodeConfig, ImageElement, type ImageElementProps, type ImageSegment, type PictureSegment, type PositionResolutionError, type PositionResolutionResult, type RelativePositionConfigX, type RelativePositionConfigY,
|
|
1198
|
+
export { type AudioSegment, type BaseEditorConfig, type BaseSegment, type BorderRadiusConfig, type Channel, type CropAxisConfig, type CropBoundary, type CropBounds, DIMENSION_PRESETS, type DimensionPreset, type DimensionPresetKey, type DynamicCropConfig, type EditorConfig, type EditorSegment, FONT_FAMILIES, FONT_URLS, type FitDimensions, type FitMode, type FontType, type FontWeight, type HorizontalAnchor, type HorizontalSelfAnchor, type Hyphenation, IMAGE_DEFAULTS, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, type ImageEditorElement, type ImageEditorNodeConfig, ImageElement, type ImageElementProps, type ImageSegment, type PictureSegment, type PositionResolutionError, type PositionResolutionResult, type RelativePositionConfigX, type RelativePositionConfigY, RenderRoot, type Segment, type SegmentType, type StaticSegment, TEXT_DEFAULTS, type TextAlignment, type TextDirection, TextElement, type TextElementProps, type TextOverflow, type TextSegment, type TextWrap, type TimeMode, type TimeValue, VIDEO_DEFAULTS, VISUAL_DEFAULTS, type VerticalAlignment, type VerticalAnchor, type VerticalSelfAnchor, type VideoEditorAudioSegment, type VideoEditorBaseSegment, type VideoEditorChannel, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, type VideoEditorImageSegment, type VideoEditorNodeConfig, type VideoEditorSegment, type VideoEditorTextSegment, type VideoEditorVideoSegment, type VideoEditorVisualSegment, VideoElement, type VideoElementProps, type VideoSegment, type VisualSegment, type VisualSegmentUnion, type WordBreak, applyImageDefaults, applyTextDefaults, applyVideoDefaults, areFontsLoaded, buildFontString, calculateAutoWidthDimensions, calculateFitDimensions, calculateLineWidth, canSetAsReference, getBorderRadii, getDependentElements, getFontFamily, getReferenceElementX, getReferenceElementY, hexToRgba, parseHexColor, preloadFonts, resolveElementPositions, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, wrapText };
|
package/dist/index.d.ts
CHANGED
|
@@ -762,8 +762,7 @@ interface ImageEditorCompositionProps {
|
|
|
762
762
|
*
|
|
763
763
|
* @example
|
|
764
764
|
* ```tsx
|
|
765
|
-
* import {
|
|
766
|
-
* import { ImageEditorComposition } from '@ugcinc/remotion';
|
|
765
|
+
* import { ImageEditorComposition } from 'ugcinc-render/compositions';
|
|
767
766
|
*
|
|
768
767
|
* // NEW: Pass raw elements directly (preferred)
|
|
769
768
|
* <Player
|
|
@@ -808,8 +807,7 @@ interface VideoEditorCompositionProps {
|
|
|
808
807
|
*
|
|
809
808
|
* @example
|
|
810
809
|
* ```tsx
|
|
811
|
-
* import {
|
|
812
|
-
* import { VideoEditorComposition } from '@ugcinc/remotion';
|
|
810
|
+
* import { VideoEditorComposition } from 'ugcinc-render/compositions';
|
|
813
811
|
*
|
|
814
812
|
* <Player
|
|
815
813
|
* component={VideoEditorComposition}
|
|
@@ -915,7 +913,7 @@ declare const FONT_URLS: {
|
|
|
915
913
|
};
|
|
916
914
|
};
|
|
917
915
|
/**
|
|
918
|
-
* Preload fonts for
|
|
916
|
+
* Preload fonts for rendering
|
|
919
917
|
* Call this in your Root component or composition
|
|
920
918
|
*/
|
|
921
919
|
declare function preloadFonts(): Promise<void>;
|
|
@@ -1139,7 +1137,7 @@ declare function getReferenceElementX(elements: ImageEditorElement[], elementId:
|
|
|
1139
1137
|
declare function getReferenceElementY(elements: ImageEditorElement[], elementId: string): ImageEditorElement | null;
|
|
1140
1138
|
|
|
1141
1139
|
/**
|
|
1142
|
-
* Hook exports for
|
|
1140
|
+
* Hook exports for ugcinc-render
|
|
1143
1141
|
*
|
|
1144
1142
|
* Hooks for common operations like font loading, media preloading,
|
|
1145
1143
|
* and position resolution.
|
|
@@ -1189,12 +1187,12 @@ declare function useImagePreloader(sources: Record<string, string>): {
|
|
|
1189
1187
|
declare function useResolvedPositions(elements: ImageEditorElement[], textValues?: Record<string, string>): PositionResolutionResult;
|
|
1190
1188
|
|
|
1191
1189
|
/**
|
|
1192
|
-
*
|
|
1190
|
+
* Render Root Component
|
|
1193
1191
|
*
|
|
1194
|
-
* This file registers all available compositions with
|
|
1195
|
-
* It serves as the entry point for the
|
|
1192
|
+
* This file registers all available compositions with the renderer.
|
|
1193
|
+
* It serves as the entry point for the renderer bundler.
|
|
1196
1194
|
*/
|
|
1197
1195
|
|
|
1198
|
-
declare const
|
|
1196
|
+
declare const RenderRoot: React.FC;
|
|
1199
1197
|
|
|
1200
|
-
export { type AudioSegment, type BaseEditorConfig, type BaseSegment, type BorderRadiusConfig, type Channel, type CropAxisConfig, type CropBoundary, type CropBounds, DIMENSION_PRESETS, type DimensionPreset, type DimensionPresetKey, type DynamicCropConfig, type EditorConfig, type EditorSegment, FONT_FAMILIES, FONT_URLS, type FitDimensions, type FitMode, type FontType, type FontWeight, type HorizontalAnchor, type HorizontalSelfAnchor, type Hyphenation, IMAGE_DEFAULTS, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, type ImageEditorElement, type ImageEditorNodeConfig, ImageElement, type ImageElementProps, type ImageSegment, type PictureSegment, type PositionResolutionError, type PositionResolutionResult, type RelativePositionConfigX, type RelativePositionConfigY,
|
|
1198
|
+
export { type AudioSegment, type BaseEditorConfig, type BaseSegment, type BorderRadiusConfig, type Channel, type CropAxisConfig, type CropBoundary, type CropBounds, DIMENSION_PRESETS, type DimensionPreset, type DimensionPresetKey, type DynamicCropConfig, type EditorConfig, type EditorSegment, FONT_FAMILIES, FONT_URLS, type FitDimensions, type FitMode, type FontType, type FontWeight, type HorizontalAnchor, type HorizontalSelfAnchor, type Hyphenation, IMAGE_DEFAULTS, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, type ImageEditorElement, type ImageEditorNodeConfig, ImageElement, type ImageElementProps, type ImageSegment, type PictureSegment, type PositionResolutionError, type PositionResolutionResult, type RelativePositionConfigX, type RelativePositionConfigY, RenderRoot, type Segment, type SegmentType, type StaticSegment, TEXT_DEFAULTS, type TextAlignment, type TextDirection, TextElement, type TextElementProps, type TextOverflow, type TextSegment, type TextWrap, type TimeMode, type TimeValue, VIDEO_DEFAULTS, VISUAL_DEFAULTS, type VerticalAlignment, type VerticalAnchor, type VerticalSelfAnchor, type VideoEditorAudioSegment, type VideoEditorBaseSegment, type VideoEditorChannel, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, type VideoEditorImageSegment, type VideoEditorNodeConfig, type VideoEditorSegment, type VideoEditorTextSegment, type VideoEditorVideoSegment, type VideoEditorVisualSegment, VideoElement, type VideoElementProps, type VideoSegment, type VisualSegment, type VisualSegmentUnion, type WordBreak, applyImageDefaults, applyTextDefaults, applyVideoDefaults, areFontsLoaded, buildFontString, calculateAutoWidthDimensions, calculateFitDimensions, calculateLineWidth, canSetAsReference, getBorderRadii, getDependentElements, getFontFamily, getReferenceElementX, getReferenceElementY, hexToRgba, parseHexColor, preloadFonts, resolveElementPositions, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, wrapText };
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
IMAGE_DEFAULTS: () => IMAGE_DEFAULTS,
|
|
27
27
|
ImageEditorComposition: () => ImageEditorComposition,
|
|
28
28
|
ImageElement: () => ImageElement,
|
|
29
|
-
|
|
29
|
+
RenderRoot: () => RenderRoot,
|
|
30
30
|
TEXT_DEFAULTS: () => TEXT_DEFAULTS,
|
|
31
31
|
TextElement: () => TextElement,
|
|
32
32
|
VIDEO_DEFAULTS: () => VIDEO_DEFAULTS,
|
|
@@ -1418,7 +1418,7 @@ var defaultVideoProps = {
|
|
|
1418
1418
|
};
|
|
1419
1419
|
var ImageComp = ImageEditorComposition;
|
|
1420
1420
|
var VideoComp = VideoEditorComposition;
|
|
1421
|
-
var
|
|
1421
|
+
var RenderRoot = () => {
|
|
1422
1422
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1423
1423
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1424
1424
|
import_remotion5.Composition,
|
|
@@ -1454,7 +1454,7 @@ var RemotionRoot = () => {
|
|
|
1454
1454
|
IMAGE_DEFAULTS,
|
|
1455
1455
|
ImageEditorComposition,
|
|
1456
1456
|
ImageElement,
|
|
1457
|
-
|
|
1457
|
+
RenderRoot,
|
|
1458
1458
|
TEXT_DEFAULTS,
|
|
1459
1459
|
TextElement,
|
|
1460
1460
|
VIDEO_DEFAULTS,
|
package/dist/index.mjs
CHANGED
|
@@ -1357,7 +1357,7 @@ var defaultVideoProps = {
|
|
|
1357
1357
|
};
|
|
1358
1358
|
var ImageComp = ImageEditorComposition;
|
|
1359
1359
|
var VideoComp = VideoEditorComposition;
|
|
1360
|
-
var
|
|
1360
|
+
var RenderRoot = () => {
|
|
1361
1361
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1362
1362
|
/* @__PURE__ */ jsx6(
|
|
1363
1363
|
Composition,
|
|
@@ -1392,7 +1392,7 @@ export {
|
|
|
1392
1392
|
IMAGE_DEFAULTS,
|
|
1393
1393
|
ImageEditorComposition,
|
|
1394
1394
|
ImageElement,
|
|
1395
|
-
|
|
1395
|
+
RenderRoot,
|
|
1396
1396
|
TEXT_DEFAULTS,
|
|
1397
1397
|
TextElement,
|
|
1398
1398
|
VIDEO_DEFAULTS,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Unified
|
|
3
|
+
"version": "1.3.6",
|
|
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",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"keywords": [
|
|
41
|
-
"remotion",
|
|
42
41
|
"video-rendering",
|
|
43
42
|
"canvas",
|
|
44
|
-
"react"
|
|
43
|
+
"react",
|
|
44
|
+
"rendering"
|
|
45
45
|
],
|
|
46
46
|
"author": "UGC Inc",
|
|
47
47
|
"license": "MIT",
|
|
@@ -63,4 +63,3 @@
|
|
|
63
63
|
"typescript": "^5.3.0"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
|