ugcinc-render 1.8.200 → 1.8.202

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.js CHANGED
@@ -5407,12 +5407,7 @@ function validatePublicInput(input) {
5407
5407
  message: "Theme must be 'light' or 'dark'"
5408
5408
  });
5409
5409
  }
5410
- if (!input.messages || input.messages.length === 0) {
5411
- errors.push({
5412
- field: "messages",
5413
- message: "At least one message is required"
5414
- });
5415
- } else {
5410
+ if (input.messages && input.messages.length > 0) {
5416
5411
  input.messages.forEach((msg, index) => {
5417
5412
  if (!msg.text?.trim()) {
5418
5413
  errors.push({
@@ -6492,7 +6487,7 @@ var IMessageDmComposition = (props) => {
6492
6487
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
6493
6488
  import_remotion11.Img,
6494
6489
  {
6495
- src: (0, import_remotion11.staticFile)("imsg-header-left-arrow.png"),
6490
+ src: (0, import_remotion11.staticFile)(lightMode ? "imsg-light-header-left-arrow.png" : "imsg-header-left-arrow.png"),
6496
6491
  style: {
6497
6492
  position: "absolute",
6498
6493
  top: backArrowTop,
@@ -6539,7 +6534,7 @@ var IMessageDmComposition = (props) => {
6539
6534
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
6540
6535
  import_remotion11.Img,
6541
6536
  {
6542
- src: (0, import_remotion11.staticFile)("imsg-header-camera.png"),
6537
+ src: (0, import_remotion11.staticFile)(lightMode ? "imsg-light-header-camera.png" : "imsg-header-camera.png"),
6543
6538
  style: {
6544
6539
  position: "absolute",
6545
6540
  top: cameraIconTop,
package/dist/index.mjs CHANGED
@@ -4453,12 +4453,7 @@ function validatePublicInput(input) {
4453
4453
  message: "Theme must be 'light' or 'dark'"
4454
4454
  });
4455
4455
  }
4456
- if (!input.messages || input.messages.length === 0) {
4457
- errors.push({
4458
- field: "messages",
4459
- message: "At least one message is required"
4460
- });
4461
- } else {
4456
+ if (input.messages && input.messages.length > 0) {
4462
4457
  input.messages.forEach((msg, index) => {
4463
4458
  if (!msg.text?.trim()) {
4464
4459
  errors.push({
@@ -5538,7 +5533,7 @@ var IMessageDmComposition = (props) => {
5538
5533
  /* @__PURE__ */ jsx12(
5539
5534
  Img6,
5540
5535
  {
5541
- src: staticFile4("imsg-header-left-arrow.png"),
5536
+ src: staticFile4(lightMode ? "imsg-light-header-left-arrow.png" : "imsg-header-left-arrow.png"),
5542
5537
  style: {
5543
5538
  position: "absolute",
5544
5539
  top: backArrowTop,
@@ -5585,7 +5580,7 @@ var IMessageDmComposition = (props) => {
5585
5580
  /* @__PURE__ */ jsx12(
5586
5581
  Img6,
5587
5582
  {
5588
- src: staticFile4("imsg-header-camera.png"),
5583
+ src: staticFile4(lightMode ? "imsg-light-header-camera.png" : "imsg-header-camera.png"),
5589
5584
  style: {
5590
5585
  position: "absolute",
5591
5586
  top: cameraIconTop,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.200",
3
+ "version": "1.8.202",
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",