ugcinc-render 1.8.201 → 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({
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.201",
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",