@windrun-huaiin/base-ui 3.1.0 → 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 +2 -2
- package/src/components/script/google-analytics-script.tsx +2 -2
- package/src/components/script/microsoft-clarity-script.tsx +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@windrun-huaiin/base-ui",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.2.2",
|
4
4
|
"description": "Base UI components for windrun-huaiin projects",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -72,7 +72,7 @@
|
|
72
72
|
"@radix-ui/react-toggle": "^1.1.8",
|
73
73
|
"@radix-ui/react-toggle-group": "^1.1.9",
|
74
74
|
"@radix-ui/react-tooltip": "^1.2.6",
|
75
|
-
"@windrun-huaiin/lib": "
|
75
|
+
"@windrun-huaiin/lib": "3.2.1",
|
76
76
|
"class-variance-authority": "^0.7.1",
|
77
77
|
"cmdk": "1.0.4",
|
78
78
|
"embla-carousel-react": "8.5.1",
|
@@ -6,7 +6,7 @@ import Script from "next/script";
|
|
6
6
|
const googleAnalyticsId = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID!;
|
7
7
|
|
8
8
|
export function GoogleAnalyticsScript() {
|
9
|
-
//
|
9
|
+
// Only load in production environment
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
11
11
|
return null
|
12
12
|
}
|
@@ -47,7 +47,7 @@ export function useGoogleAnalytics() {
|
|
47
47
|
};
|
48
48
|
}
|
49
49
|
|
50
|
-
//
|
50
|
+
// Add gtag type definition to window
|
51
51
|
declare global {
|
52
52
|
interface Window {
|
53
53
|
dataLayer: any[];
|
@@ -4,8 +4,8 @@ import Script from 'next/script'
|
|
4
4
|
|
5
5
|
const microsoftClarityId = process.env.NEXT_PUBLIC_MICROSOFT_CLARITY_ID!;
|
6
6
|
|
7
|
-
export
|
8
|
-
//
|
7
|
+
export function MicrosoftClarityScript() {
|
8
|
+
// Only load in production environment
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
10
10
|
return null
|
11
11
|
}
|