@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.
- package/dist/components/index.d.mts +3 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +14 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +13 -0
- package/dist/components/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/script/google-analytics-script.tsx +2 -2
- package/src/components/script/microsoft-clarity-script.tsx +2 -2
@@ -141,4 +141,6 @@ declare global {
|
|
141
141
|
}
|
142
142
|
}
|
143
143
|
|
144
|
-
|
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
|
-
|
144
|
+
declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
|
145
|
+
|
146
|
+
export { DefaultSiteIcon, GoogleAnalyticsScript, MicrosoftClarityScript, NotFoundIcon, NotFoundPage, getGlobalIcon, getIconElement, globalLucideIcons, useGoogleAnalytics };
|
package/dist/components/index.js
CHANGED
@@ -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,
|