ugcinc 4.5.63 → 4.5.64

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.
@@ -371,7 +371,7 @@ function TextElement({ segment, scale = 1 }) {
371
371
  flex: 1,
372
372
  minHeight: 0,
373
373
  }),
374
- ...(hasStroke && { position: 'relative' }),
374
+ ...(hasStroke && { position: 'relative', zIndex: 1 }),
375
375
  }), [
376
376
  fontFamily, fontSize, fontWeight, color, lineHeight, letterSpacing, alignment,
377
377
  paddingTop, paddingRight, paddingBottom, paddingLeft,
@@ -388,11 +388,10 @@ function TextElement({ segment, scale = 1 }) {
388
388
  color: strokeColor,
389
389
  filter: `url(#${filterId})`,
390
390
  position: 'absolute',
391
- top: -strokeWidth,
392
- left: -strokeWidth,
393
- right: -strokeWidth,
394
- bottom: -strokeWidth,
395
- padding: `${paddingTop + strokeWidth}px ${paddingRight + strokeWidth}px ${paddingBottom + strokeWidth}px ${paddingLeft + strokeWidth}px`,
391
+ top: 0,
392
+ left: 0,
393
+ right: 0,
394
+ bottom: 0,
396
395
  };
397
396
  console.log('[TextElement] STROKE_STYLE:', JSON.stringify({
398
397
  filter: style.filter,
@@ -421,7 +420,7 @@ function TextElement({ segment, scale = 1 }) {
421
420
  if (parts.every(p => p.type === 'text'))
422
421
  return text;
423
422
  return parts.map((part, i) => part.type === 'emoji'
424
- ? (0, jsx_runtime_1.jsx)("span", { style: { opacity: 0 }, children: part.content }, i)
423
+ ? (0, jsx_runtime_1.jsx)("span", { style: { visibility: 'hidden' }, children: part.content }, i)
425
424
  : (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: part.content }, i));
426
425
  };
427
426
  if (autoWidth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.63",
3
+ "version": "4.5.64",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",