@windrun-huaiin/base-ui 3.2.1 → 3.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.
@@ -141,4 +141,6 @@ declare global {
141
141
  }
142
142
  }
143
143
 
144
- export { DefaultSiteIcon, GoogleAnalyticsScript, NotFoundIcon, NotFoundPage, getGlobalIcon, getIconElement, globalLucideIcons, useGoogleAnalytics };
144
+ declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
145
+
146
+ export { DefaultSiteIcon, GoogleAnalyticsScript, MicrosoftClarityScript, NotFoundIcon, NotFoundPage, getGlobalIcon, getIconElement, globalLucideIcons, useGoogleAnalytics };
@@ -141,4 +141,6 @@ declare global {
141
141
  }
142
142
  }
143
143
 
144
- export { DefaultSiteIcon, GoogleAnalyticsScript, NotFoundIcon, NotFoundPage, getGlobalIcon, getIconElement, globalLucideIcons, useGoogleAnalytics };
144
+ declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
145
+
146
+ export { DefaultSiteIcon, GoogleAnalyticsScript, MicrosoftClarityScript, NotFoundIcon, NotFoundPage, getGlobalIcon, getIconElement, globalLucideIcons, useGoogleAnalytics };
@@ -62,6 +62,7 @@ var components_exports = {};
62
62
  __export(components_exports, {
63
63
  DefaultSiteIcon: () => DefaultSiteIcon,
64
64
  GoogleAnalyticsScript: () => GoogleAnalyticsScript,
65
+ MicrosoftClarityScript: () => MicrosoftClarityScript,
65
66
  NotFoundIcon: () => NotFoundIcon,
66
67
  NotFoundPage: () => NotFoundPage,
67
68
  getGlobalIcon: () => getGlobalIcon,
@@ -1677,10 +1678,23 @@ function useGoogleAnalytics() {
1677
1678
  var import_script2 = __toESM(require("next/script"));
1678
1679
  var import_jsx_runtime39 = require("react/jsx-runtime");
1679
1680
  var microsoftClarityId = process.env.NEXT_PUBLIC_MICROSOFT_CLARITY_ID;
1681
+ function MicrosoftClarityScript() {
1682
+ if (process.env.NODE_ENV !== "production") {
1683
+ return null;
1684
+ }
1685
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_script2.default, { id: "microsoft-clarity", strategy: "afterInteractive", children: `
1686
+ (function(c,l,a,r,i,t,y){
1687
+ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
1688
+ t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
1689
+ y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
1690
+ })(window, document, "clarity", "script", "${microsoftClarityId}");
1691
+ ` });
1692
+ }
1680
1693
  // Annotate the CommonJS export names for ESM import in node:
1681
1694
  0 && (module.exports = {
1682
1695
  DefaultSiteIcon,
1683
1696
  GoogleAnalyticsScript,
1697
+ MicrosoftClarityScript,
1684
1698
  NotFoundIcon,
1685
1699
  NotFoundPage,
1686
1700
  getGlobalIcon,