@entropy-softworks/ui 2026.8.40 → 2026.8.42
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 +121 -97
- package/lib/components/item-icon.d.ts +16 -0
- package/lib/components/item-icon.d.ts.map +1 -1
- package/lib/components/item-icon.jsx +2 -2
- package/lib/components/item-icon.jsx.map +1 -1
- package/lib/hooks/index.d.ts +1 -1
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useUploadBlobUrl.d.ts +49 -5
- package/lib/hooks/useUploadBlobUrl.d.ts.map +1 -1
- package/lib/hooks/useUploadBlobUrl.js +92 -13
- package/lib/hooks/useUploadBlobUrl.js.map +1 -1
- package/lib/screens/auth/AuthScreen.d.ts.map +1 -1
- package/lib/screens/auth/AuthScreen.jsx +18 -0
- package/lib/screens/auth/AuthScreen.jsx.map +1 -1
- package/package.json +1 -1
- package/src/components/item-icon.tsx +18 -2
- package/src/hooks/__tests__/useUploadBlobUrl.test.tsx +128 -16
- package/src/hooks/index.ts +6 -1
- package/src/hooks/useUploadBlobUrl.ts +140 -16
- package/src/screens/auth/AuthScreen.tsx +19 -0
|
@@ -536,6 +536,25 @@ export function AuthScreen({
|
|
|
536
536
|
const probeSignup = !probed;
|
|
537
537
|
const showSignup = probeSignup || isSignup;
|
|
538
538
|
|
|
539
|
+
// Re-arm the probe if sign-up only becomes available LATER.
|
|
540
|
+
//
|
|
541
|
+
// `probed` starts at `!signUpEnabled`, which is right for a consumer that
|
|
542
|
+
// knows its registration policy at mount. One that has to ASK — Access's
|
|
543
|
+
// portal fetches the tenant's policy and starts at the conservative
|
|
544
|
+
// "closed" — mounts with sign-up off, skips the measuring pass, and then
|
|
545
|
+
// turns sign-up on a moment later with nothing measured. The first real
|
|
546
|
+
// toggle is then the one that grows the card: it resizes once, then holds
|
|
547
|
+
// still forever, which is precisely the symptom the lock exists to remove.
|
|
548
|
+
//
|
|
549
|
+
// Cheap and idempotent: the effect only fires on the false -> true edge, and
|
|
550
|
+
// for a consumer that was already `true` at mount this sets the value it
|
|
551
|
+
// already had.
|
|
552
|
+
useEffect(() => {
|
|
553
|
+
if (signUpEnabled && lockFormHeight) {
|
|
554
|
+
setProbed(false);
|
|
555
|
+
}
|
|
556
|
+
}, [signUpEnabled, lockFormHeight]);
|
|
557
|
+
|
|
539
558
|
const onFormLayout = useCallback((e: LayoutChangeEvent) => {
|
|
540
559
|
const measured = Math.ceil(e.nativeEvent.layout.height);
|
|
541
560
|
setFormMinHeight((prev) => (measured > prev ? measured : prev));
|