@trackunit/react-core-hooks 1.17.52 → 1.17.53-alpha-835605b395c.0

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/index.cjs.js CHANGED
@@ -1161,9 +1161,10 @@ const setGlobalLanguage = (language) => {
1161
1161
  * @example
1162
1162
  * ```tsx
1163
1163
  * import { useUserPermission } from "@trackunit/react-core-hooks";
1164
+ * import { accountScope } from "@trackunit/iris-app-api";
1164
1165
  *
1165
1166
  * const DeleteButton = ({ assetId }: { assetId: string }) => {
1166
- * const canDelete = useUserPermission("asset:delete");
1167
+ * const canDelete = useUserPermission(accountScope.ACCOUNT_ASSET_DELETE);
1167
1168
  *
1168
1169
  * if (!canDelete) {
1169
1170
  * return null;
package/index.esm.js CHANGED
@@ -1159,9 +1159,10 @@ const setGlobalLanguage = (language) => {
1159
1159
  * @example
1160
1160
  * ```tsx
1161
1161
  * import { useUserPermission } from "@trackunit/react-core-hooks";
1162
+ * import { accountScope } from "@trackunit/iris-app-api";
1162
1163
  *
1163
1164
  * const DeleteButton = ({ assetId }: { assetId: string }) => {
1164
- * const canDelete = useUserPermission("asset:delete");
1165
+ * const canDelete = useUserPermission(accountScope.ACCOUNT_ASSET_DELETE);
1165
1166
  *
1166
1167
  * if (!canDelete) {
1167
1168
  * return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-hooks",
3
- "version": "1.17.52",
3
+ "version": "1.17.53-alpha-835605b395c.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "es-toolkit": "^1.39.10",
11
- "@trackunit/iris-app-runtime-core": "1.17.48",
12
- "@trackunit/iris-app-runtime-core-api": "1.16.47",
13
- "@trackunit/react-core-contexts-api": "1.17.47",
11
+ "@trackunit/iris-app-runtime-core": "1.17.49-alpha-835605b395c.0",
12
+ "@trackunit/iris-app-runtime-core-api": "1.16.48-alpha-835605b395c.0",
13
+ "@trackunit/react-core-contexts-api": "1.17.48-alpha-835605b395c.0",
14
14
  "zod": "^3.25.76"
15
15
  },
16
16
  "peerDependencies": {
@@ -16,9 +16,10 @@ export type HasAccess = boolean | null;
16
16
  * @example
17
17
  * ```tsx
18
18
  * import { useUserPermission } from "@trackunit/react-core-hooks";
19
+ * import { accountScope } from "@trackunit/iris-app-api";
19
20
  *
20
21
  * const DeleteButton = ({ assetId }: { assetId: string }) => {
21
- * const canDelete = useUserPermission("asset:delete");
22
+ * const canDelete = useUserPermission(accountScope.ACCOUNT_ASSET_DELETE);
22
23
  *
23
24
  * if (!canDelete) {
24
25
  * return null;