@moontra/moonui-pro 3.4.39 → 3.4.40

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.mjs CHANGED
@@ -97051,13 +97051,30 @@ function ProWatermarkOverlay({
97051
97051
  }
97052
97052
  function DocsProProvider({ children, componentName = "Pro Component" }) {
97053
97053
  const { hasProAccess, isLoading } = useSubscription();
97054
+ const isProductionEnvironment = React71__default.useMemo(() => {
97055
+ if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
97056
+ return true;
97057
+ }
97058
+ if (typeof window !== "undefined") {
97059
+ const hostname = window.location.hostname;
97060
+ if (hostname === "moonui.dev" || hostname === "www.moonui.dev") {
97061
+ return true;
97062
+ }
97063
+ if (hostname === "localhost" || hostname.startsWith("127.0.0.1") || hostname.includes(".local")) {
97064
+ return false;
97065
+ }
97066
+ }
97067
+ return false;
97068
+ }, []);
97054
97069
  if (isLoading) {
97055
97070
  return /* @__PURE__ */ jsx(Fragment, { children });
97056
97071
  }
97057
97072
  if (hasProAccess) {
97058
97073
  return /* @__PURE__ */ jsx(Fragment, { children });
97059
97074
  }
97060
- {
97075
+ if (isProductionEnvironment) {
97076
+ return /* @__PURE__ */ jsx(ProWatermarkOverlay, { className: "w-full", children });
97077
+ } else {
97061
97078
  return /* @__PURE__ */ jsx(
97062
97079
  ProLockScreen,
97063
97080
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "3.4.39",
3
+ "version": "3.4.40",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",