@trackunit/react-core-hooks 1.21.29-alpha-f0316d88d91.0 → 1.21.30

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
@@ -127,8 +127,13 @@ const useValidateAccessAsync = () => {
127
127
  };
128
128
  /**
129
129
  * Synchronously evaluates the current user's access via subscription features,
130
- * feature flags, and permissions. Returns predicate helpers plus a `loading`
131
- * flag that stays true until user, subscription, and flag data are all present.
130
+ * feature flags, permissions, and per-account actions. Returns predicate helpers
131
+ * plus a `loading` flag that stays true until user, subscription, and flag data
132
+ * are all present.
133
+ *
134
+ * `accountActions` needs no term of its own in `loading`: `RehydrateUser` writes it
135
+ * to the user store in the same update as `permissions`, so waiting on the latter
136
+ * already waits for the former.
132
137
  */
133
138
  const useValidateAccess = () => {
134
139
  const { accountActions, isAuthenticated, permissions: userPermissions } = useCurrentUser();
package/index.esm.js CHANGED
@@ -125,8 +125,13 @@ const useValidateAccessAsync = () => {
125
125
  };
126
126
  /**
127
127
  * Synchronously evaluates the current user's access via subscription features,
128
- * feature flags, and permissions. Returns predicate helpers plus a `loading`
129
- * flag that stays true until user, subscription, and flag data are all present.
128
+ * feature flags, permissions, and per-account actions. Returns predicate helpers
129
+ * plus a `loading` flag that stays true until user, subscription, and flag data
130
+ * are all present.
131
+ *
132
+ * `accountActions` needs no term of its own in `loading`: `RehydrateUser` writes it
133
+ * to the user store in the same update as `permissions`, so waiting on the latter
134
+ * already waits for the former.
130
135
  */
131
136
  const useValidateAccess = () => {
132
137
  const { accountActions, isAuthenticated, permissions: userPermissions } = useCurrentUser();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-hooks",
3
- "version": "1.21.29-alpha-f0316d88d91.0",
3
+ "version": "1.21.30",
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.18.30-alpha-f0316d88d91.0",
12
- "@trackunit/iris-app-runtime-core-api": "1.17.30-alpha-f0316d88d91.0",
13
- "@trackunit/react-core-contexts-api": "1.18.30-alpha-f0316d88d91.0",
11
+ "@trackunit/iris-app-runtime-core": "1.18.31",
12
+ "@trackunit/iris-app-runtime-core-api": "1.17.31",
13
+ "@trackunit/react-core-contexts-api": "1.18.31",
14
14
  "zod": "^3.25.76"
15
15
  },
16
16
  "peerDependencies": {
@@ -15,8 +15,13 @@ export declare const useValidateAccessAsync: () => {
15
15
  };
16
16
  /**
17
17
  * Synchronously evaluates the current user's access via subscription features,
18
- * feature flags, and permissions. Returns predicate helpers plus a `loading`
19
- * flag that stays true until user, subscription, and flag data are all present.
18
+ * feature flags, permissions, and per-account actions. Returns predicate helpers
19
+ * plus a `loading` flag that stays true until user, subscription, and flag data
20
+ * are all present.
21
+ *
22
+ * `accountActions` needs no term of its own in `loading`: `RehydrateUser` writes it
23
+ * to the user store in the same update as `permissions`, so waiting on the latter
24
+ * already waits for the former.
20
25
  */
21
26
  export declare const useValidateAccess: () => {
22
27
  hasAccessTo: (requiredAccessTo: ValidateAccess) => HasAccess;
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/core-hooks/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}