cursedbelt 6.25.0 → 6.28.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.
Files changed (27) hide show
  1. package/dist/react/components/DataTable/DataTable.d.ts.map +1 -1
  2. package/dist/react/components/DataTable/DataTable.js +28 -9
  3. package/dist/react/components/DataTable/DataTable.js.map +1 -1
  4. package/dist/react/hooks/useKeyboardInset.d.ts +2 -1
  5. package/dist/react/hooks/useKeyboardInset.d.ts.map +1 -1
  6. package/dist/react/hooks/useKeyboardInset.js +8 -2
  7. package/dist/react/hooks/useKeyboardInset.js.map +1 -1
  8. package/dist/react/notifications/issueCapture.d.ts +9 -0
  9. package/dist/react/notifications/issueCapture.d.ts.map +1 -1
  10. package/dist/react/notifications/issueCapture.js +25 -3
  11. package/dist/react/notifications/issueCapture.js.map +1 -1
  12. package/dist/react/workspace-shell/WorkspaceShell.d.ts +2 -1
  13. package/dist/react/workspace-shell/WorkspaceShell.d.ts.map +1 -1
  14. package/dist/react/workspace-shell/WorkspaceShell.js +8 -1
  15. package/dist/react/workspace-shell/WorkspaceShell.js.map +1 -1
  16. package/dist/scripts/guardrailsEnforce.d.ts.map +1 -1
  17. package/package.json +2 -2
  18. package/scripts/guardrails-baseline.json +1 -0
  19. package/scripts/guardrailsEnforce.spec.ts +31 -0
  20. package/scripts/guardrailsEnforce.ts +49 -0
  21. package/src/react/components/DataTable/DataTable.tsx +26 -7
  22. package/src/react/components/DataTable/selection.spec.tsx +36 -0
  23. package/src/react/hooks/useKeyboardInset.ts +8 -2
  24. package/src/react/notifications/issueCapture.spec.ts +21 -0
  25. package/src/react/notifications/issueCapture.ts +29 -3
  26. package/src/react/workspace-shell/WorkspaceShell.spec.tsx +50 -0
  27. package/src/react/workspace-shell/WorkspaceShell.tsx +8 -1
@@ -24,7 +24,8 @@
24
24
  * through {@link useShellFocus}. Grown from the retired `AppShell`'s `immersive`, which an app set; this one is the reader's.
25
25
  * A surface that is full screen by nature (the player) holds it while it stands through {@link useShellFocusSurface}.
26
26
  *
27
- * The page never scrolls: `children` fills what is left and scrolls inside itself.
27
+ * The page never scrolls: `children` fills what is left and scrolls inside itself. The shell installs `useKeyboardInset`,
28
+ * so every `ScrollArea` inside it keeps its end above iOS's keyboard; an app never installs it again.
28
29
  */
29
30
  import { type ComponentPropsWithoutRef, createContext, type MouseEvent, type ReactNode, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
30
31
  import { initUiScale } from 'cursedbelt-core/ui-scale';
@@ -39,6 +40,7 @@ import { cn } from '../lib/cn.js';
39
40
  import { releaseAfterPointer } from '../lib/press.js';
40
41
  import { Kbd } from '../palette/Kbd.js';
41
42
  import type { ShortcutSheetGroup } from '../palette/ShortcutSheet.js';
43
+ import { useKeyboardInset } from '../hooks/useKeyboardInset.js';
42
44
  import { useShellBottomChrome } from './bottomChrome.js';
43
45
  import { focusedNow, useFocusChoice, useFocusSettings, useSideways } from './focusView.js';
44
46
  import { useKeyChoice } from './keyChoice.js';
@@ -629,6 +631,11 @@ export function WorkspaceShell({
629
631
  // one boot every app shares, so it applies the saved size before its first paint. Before, no app but desk did, and a
630
632
  // reload drew 100% while the control read 115% (forge task 5097).
631
633
  useLayoutEffect(initUiScale, []);
634
+ // The page never scrolls, so a field near the end of a place's ScrollArea is reached only through that ScrollArea, and
635
+ // with iOS's keyboard up its last lines are under the keys unless the scroll pads by `--keyboard-inset`. Only
636
+ // `useKeyboardInset` writes that, and before, family alone installed it: in eleven apps a scroll with the keyboard up
637
+ // stopped with the end of the page behind the keys (forge task 5717).
638
+ useKeyboardInset();
632
639
 
633
640
  const sheetGroups: ShortcutSheetGroup[] = [
634
641
  {