@microfox/remotion 1.2.1 → 1.2.2
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2684,11 +2684,26 @@ var Atom3 = ({ id, data }) => {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
2686
2686
|
}, [data.font, isReady, isLoaded, error]);
|
|
2687
|
-
const enhancedStyle = (0, import_react17.useMemo)(() =>
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2687
|
+
const enhancedStyle = (0, import_react17.useMemo)(() => {
|
|
2688
|
+
const baseStyle = {
|
|
2689
|
+
fontFamily,
|
|
2690
|
+
...data.style
|
|
2691
|
+
};
|
|
2692
|
+
if (data.gradient) {
|
|
2693
|
+
return {
|
|
2694
|
+
...baseStyle,
|
|
2695
|
+
backgroundImage: data.gradient,
|
|
2696
|
+
backgroundClip: "text",
|
|
2697
|
+
WebkitBackgroundClip: "text",
|
|
2698
|
+
color: "transparent",
|
|
2699
|
+
...overrideStyles
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2702
|
+
return {
|
|
2703
|
+
...baseStyle,
|
|
2704
|
+
...overrideStyles
|
|
2705
|
+
};
|
|
2706
|
+
}, [fontFamily, data.style, data.gradient, overrideStyles]);
|
|
2692
2707
|
if (isFontLoading && data.loadingState?.showLoadingIndicator) {
|
|
2693
2708
|
return /* @__PURE__ */ import_react17.default.createElement("div", { style: enhancedStyle, className: data.className }, /* @__PURE__ */ import_react17.default.createElement("span", { style: data.loadingState.loadingStyle }, data.loadingState.loadingText || "Loading..."));
|
|
2694
2709
|
}
|