@itwin/imodel-components-react 5.0.1 → 5.0.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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @itwin/imodel-components-react
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 16 Jan 2025 12:04:12 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.0.2
|
|
6
|
+
Thu, 16 Jan 2025 12:04:12 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Use import attributes for json imports.
|
|
4
11
|
|
|
5
12
|
## 5.0.1
|
|
6
13
|
Wed, 15 Jan 2025 11:47:00 GMT
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as defaults from "./UiIModelComponents.json";
|
|
5
|
+
import * as defaults from "./UiIModelComponents.json" with { type: "json" };
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { usePackageTranslation } from "@itwin/core-react/internal";
|
|
8
8
|
import { UiIModelComponents } from "./UiIModelComponents.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../src/imodel-components-react/useTranslation.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../src/imodel-components-react/useTranslation.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,GAAW,EAAE,EAAE;QACjD,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;YACpC,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,qBAAqB,CAAC;QAC3B,SAAS,EAAE,kBAAkB,CAAC,qBAAqB;QACnD,QAAQ;QACR,QAAQ;KACT,CAAC,CAAC;AACL,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\nimport * as defaults from \"./UiIModelComponents.json\" with { type: \"json\" };\nimport * as React from \"react\";\nimport { usePackageTranslation } from \"@itwin/core-react/internal\";\nimport { UiIModelComponents } from \"./UiIModelComponents.js\";\n\n/** Returns a translation function.\n * @internal\n */\nexport function useTranslation() {\n const fallback = React.useCallback((key: string) => {\n if (!UiIModelComponents.initialized) {\n return undefined;\n }\n return UiIModelComponents.translate(key);\n }, []);\n return usePackageTranslation({\n namespace: UiIModelComponents.localizationNamespace,\n fallback,\n defaults,\n });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/imodel-components-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "A react component library of iTwin.js UI iModel components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/imodel-components-react.d.ts",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@itwin/appui-abstract": "^4.0.0",
|
|
39
|
-
"@itwin/components-react": "^5.0.
|
|
39
|
+
"@itwin/components-react": "^5.0.2",
|
|
40
40
|
"@itwin/core-bentley": "^4.0.0",
|
|
41
41
|
"@itwin/core-common": "^4.0.0",
|
|
42
42
|
"@itwin/core-frontend": "^4.0.0",
|
|
43
43
|
"@itwin/core-geometry": "^4.0.0",
|
|
44
44
|
"@itwin/core-quantity": "^4.0.0",
|
|
45
|
-
"@itwin/core-react": "^5.0.
|
|
45
|
+
"@itwin/core-react": "^5.0.2",
|
|
46
46
|
"@itwin/itwinui-react": "^3.15.0",
|
|
47
47
|
"react": "^18.0.0",
|
|
48
48
|
"react-dom": "^18.0.0"
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"typescript": "~5.3.3",
|
|
84
84
|
"upath": "^2.0.1",
|
|
85
85
|
"vitest": "^1.6.0",
|
|
86
|
-
"@itwin/
|
|
87
|
-
"@itwin/
|
|
86
|
+
"@itwin/components-react": "5.0.2",
|
|
87
|
+
"@itwin/core-react": "5.0.2"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@itwin/itwinui-icons-react": "^2.8.0",
|