@radix-ui/react-id 1.1.4 → 1.1.5

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.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../src/id.tsx"],
4
- "sourcesContent": ["export { useId } from './id';\n", "import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\n// We spaces with `.trim().toString()` to prevent bundlers from trying to `import { useId } from 'react';`\nconst useReactId = (React as any)[' useId '.trim().toString()] || (() => undefined);\nlet count = 0;\n\nfunction useId(deterministicId?: string): string {\n const [id, setId] = React.useState<string | undefined>(useReactId());\n // React versions older than 18 will have client-side ids only.\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : '');\n}\n\nexport { useId };\n"],
4
+ "sourcesContent": ["export { useId } from './id.js';\n", "import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\n// We spaces with `.trim().toString()` to prevent bundlers from trying to `import { useId } from 'react';`\nconst useReactId = (React as any)[' useId '.trim().toString()] || (() => undefined);\nlet count = 0;\n\nfunction useId(deterministicId?: string): string {\n const [id, setId] = React.useState<string | undefined>(useReactId());\n // React versions older than 18 will have client-side ids only.\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : '');\n}\n\nexport { useId };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,qCAAgC;AAGhC,IAAM,aAAc,MAAc,UAAU,KAAK,EAAE,SAAS,CAAC,MAAM,MAAM;AACzE,IAAI,QAAQ;AAEZ,SAAS,MAAM,iBAAkC;AAC/C,QAAM,CAAC,IAAI,KAAK,IAAU,eAA6B,WAAW,CAAC;AAEnE,sDAAgB,MAAM;AACpB,QAAI,CAAC,gBAAiB,OAAM,CAAC,YAAY,WAAW,OAAO,OAAO,CAAC;AAAA,EACrE,GAAG,CAAC,eAAe,CAAC;AACpB,SAAO,oBAAoB,KAAK,SAAS,EAAE,KAAK;AAClD;AAPS;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-id",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "license": "MIT",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",
@@ -11,13 +11,13 @@
11
11
  ],
12
12
  "sideEffects": false,
13
13
  "devDependencies": {
14
- "@types/react": "^19.2.2",
15
- "@types/react-dom": "^19.2.2",
16
- "react": "^19.2.0",
17
- "react-dom": "^19.2.0",
14
+ "@types/react": "^19.3.0",
15
+ "@types/react-dom": "^19.3.0",
16
+ "react": "^19.3.0",
17
+ "react-dom": "^19.3.0",
18
18
  "typescript": "^5.9.3",
19
- "@repo/typescript-config": "0.0.0",
20
- "@repo/builder": "0.0.0"
19
+ "@repo/builder": "0.0.0",
20
+ "@repo/typescript-config": "0.0.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@types/react": "*",
@@ -38,13 +38,13 @@
38
38
  "url": "https://github.com/radix-ui/primitives/issues"
39
39
  },
40
40
  "dependencies": {
41
- "@radix-ui/react-use-layout-effect": "1.1.4"
41
+ "@radix-ui/react-use-layout-effect": "1.1.5"
42
42
  },
43
43
  "scripts": {
44
44
  "lint": "oxlint --max-warnings 0 src",
45
45
  "clean": "rm -rf dist",
46
46
  "reset": "rm -rf dist node_modules",
47
- "typecheck": "tsc --noEmit",
47
+ "types:check:pkg": "tsc --noEmit",
48
48
  "build": "radix-build"
49
49
  },
50
50
  "types": "./dist/index.d.ts",