cursedbelt 5.87.0 → 5.89.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/dist/looks.css +4 -4
- package/dist/react/Toast.js +2 -2
- package/dist/react/Toast.js.map +1 -1
- package/dist/react/VirtualCardGrid.d.ts +1 -1
- package/dist/react/VirtualCardGrid.js +1 -1
- package/dist/react/activity-bar/ActivityBar.d.ts +2 -2
- package/dist/react/activity-bar/ActivityBar.js +1 -1
- package/dist/react/activity-bar/activityBar.css +4 -4
- package/dist/react/analytics/AnalyticsPanel.d.ts +1 -1
- package/dist/react/analytics/AnalyticsPanel.js +1 -1
- package/dist/react/canvas-hud/CanvasMinimap.d.ts +1 -1
- package/dist/react/canvas-hud/HudControls.d.ts +2 -2
- package/dist/react/canvas-hud/alignment.d.ts +2 -2
- package/dist/react/canvas-hud/alignment.js +3 -3
- package/dist/react/canvas-hud/alignment.js.map +1 -1
- package/dist/react/canvas-hud/viewport.d.ts +1 -1
- package/dist/react/canvas-hud/viewport.js +1 -1
- package/dist/react/charts/BarChart.d.ts +2 -2
- package/dist/react/charts/HeatmapChart.d.ts +1 -1
- package/dist/react/charts/HeatmapChart.js +1 -1
- package/dist/react/charts/IntervalTimeline.d.ts +2 -2
- package/dist/react/charts/IntervalTimeline.d.ts.map +1 -1
- package/dist/react/charts/categorical.d.ts +11 -11
- package/dist/react/charts/categorical.js +9 -9
- package/dist/react/charts/categorical.js.map +1 -1
- package/dist/react/charts/ink.d.ts +5 -5
- package/dist/react/charts/ink.js +5 -5
- package/dist/react/charts/tokens.d.ts +1 -1
- package/dist/react/charts/tokens.js +1 -1
- package/dist/react/chat/Bubble.js +1 -1
- package/dist/react/chat/Bubble.js.map +1 -1
- package/dist/react/chat/DateMarker.js +1 -1
- package/dist/react/chat/MessageComposer.d.ts +1 -1
- package/dist/react/chat/types.d.ts +1 -1
- package/dist/react/chat/usePresence.d.ts +2 -2
- package/dist/react/chat/usePresence.js +1 -1
- package/dist/react/code-editor/markdownRules.js +1 -1
- package/dist/react/code-editor/markdownRules.js.map +1 -1
- package/dist/react/components/Badge.js +1 -1
- package/dist/react/components/Badge.js.map +1 -1
- package/dist/react/components/Button.js +5 -5
- package/dist/react/components/Button.js.map +1 -1
- package/dist/react/components/ChartTablePanel.js +1 -1
- package/dist/react/components/ChartTablePanel.js.map +1 -1
- package/dist/react/components/Checkbox.js +2 -2
- package/dist/react/components/Checkbox.js.map +1 -1
- package/dist/react/components/ChoiceGroup.d.ts +1 -1
- package/dist/react/components/ChoiceGroup.js +1 -1
- package/dist/react/components/CodeChip.d.ts +1 -1
- package/dist/react/components/CodeChip.js +1 -1
- package/dist/react/components/ColorSwatches.d.ts +10 -10
- package/dist/react/components/ColorSwatches.d.ts.map +1 -1
- package/dist/react/components/ColorSwatches.js +10 -10
- package/dist/react/components/ColorSwatches.js.map +1 -1
- package/dist/react/components/DataTable/DataTable.d.ts +2 -2
- package/dist/react/components/DataTable/DataTable.js +8 -8
- package/dist/react/components/DataTable/DataTable.js.map +1 -1
- package/dist/react/components/DataTable/SearchBox.js +2 -2
- package/dist/react/components/DataTable/SortHeader.js +1 -1
- package/dist/react/components/DataTable/SortHeader.js.map +1 -1
- package/dist/react/components/DataTable/TableFilterBuilder.d.ts +1 -1
- package/dist/react/components/DataTable/TableFilterBuilder.js +1 -1
- package/dist/react/components/DropdownMenu.js +1 -1
- package/dist/react/components/Field.d.ts +1 -1
- package/dist/react/components/FormPreviewLayout.d.ts +1 -1
- package/dist/react/components/FormPreviewLayout.js +1 -1
- package/dist/react/components/Heat.d.ts +6 -6
- package/dist/react/components/Heat.js +1 -1
- package/dist/react/components/IconPicker.d.ts +8 -8
- package/dist/react/components/IconPicker.d.ts.map +1 -1
- package/dist/react/components/IconPicker.js +6 -6
- package/dist/react/components/IconPicker.js.map +1 -1
- package/dist/react/components/InfoHint.d.ts +1 -1
- package/dist/react/components/InfoHint.js +1 -1
- package/dist/react/components/InheritBadge.js +2 -2
- package/dist/react/components/ListToolbar.d.ts +1 -1
- package/dist/react/components/ListToolbar.js +1 -1
- package/dist/react/components/Menu.d.ts +1 -1
- package/dist/react/components/Menu.d.ts.map +1 -1
- package/dist/react/components/Modal.js +5 -5
- package/dist/react/components/Modal.js.map +1 -1
- package/dist/react/components/Page.d.ts +1 -1
- package/dist/react/components/Page.js +1 -1
- package/dist/react/components/PaneSplit.d.ts +1 -1
- package/dist/react/components/PathText.d.ts +1 -1
- package/dist/react/components/PathText.js +1 -1
- package/dist/react/components/Popover.d.ts +1 -1
- package/dist/react/components/PropertyList.d.ts +1 -1
- package/dist/react/components/PropertyList.js +1 -1
- package/dist/react/components/PropertyPicker.d.ts +2 -2
- package/dist/react/components/PropertyPicker.js +2 -2
- package/dist/react/components/RatingField.js +1 -1
- package/dist/react/components/RatingField.js.map +1 -1
- package/dist/react/components/SaveIndicator.d.ts +2 -2
- package/dist/react/components/SaveIndicator.js +2 -2
- package/dist/react/components/SearchInput.d.ts +1 -1
- package/dist/react/components/SearchInput.d.ts.map +1 -1
- package/dist/react/components/SecretInput.d.ts +1 -1
- package/dist/react/components/Section.d.ts +1 -1
- package/dist/react/components/SectionNav.d.ts +3 -3
- package/dist/react/components/SectionNav.d.ts.map +1 -1
- package/dist/react/components/SectionNav.js +2 -2
- package/dist/react/components/Slider.js +1 -1
- package/dist/react/components/StarRating.js +1 -1
- package/dist/react/components/SwatchPicker.d.ts +6 -6
- package/dist/react/components/SwatchPicker.d.ts.map +1 -1
- package/dist/react/components/SwatchPicker.js +3 -3
- package/dist/react/components/SwatchPicker.js.map +1 -1
- package/dist/react/components/Tooltip.js +1 -1
- package/dist/react/components/TreeView.js +1 -1
- package/dist/react/components/TreeView.js.map +1 -1
- package/dist/react/components/TruncatedText.d.ts +1 -1
- package/dist/react/components/TruncatedText.js +1 -1
- package/dist/react/components/UnstyledButton.d.ts +2 -2
- package/dist/react/components/UnstyledButton.js +2 -2
- package/dist/react/components/auth/AuthCard.js +1 -1
- package/dist/react/components/auth/AuthCard.js.map +1 -1
- package/dist/react/components/buildFreshness.css +2 -2
- package/dist/react/components/calendar/MonthGrid.js +2 -2
- package/dist/react/components/calendar/MonthGrid.js.map +1 -1
- package/dist/react/components/calendar/colorUtils.js +2 -2
- package/dist/react/components/dialog.js +1 -1
- package/dist/react/components/fieldErrorText.d.ts +1 -1
- package/dist/react/components/fieldErrorText.js +1 -1
- package/dist/react/components/paneSplit.css +1 -1
- package/dist/react/components/sharing/ShareEditor.d.ts +5 -1
- package/dist/react/components/sharing/ShareEditor.d.ts.map +1 -1
- package/dist/react/components/sharing/ShareEditor.js +2 -2
- package/dist/react/components/sharing/ShareEditor.js.map +1 -1
- package/dist/react/deep-link/links.d.ts +1 -1
- package/dist/react/deep-link/resume.js +1 -1
- package/dist/react/diff-viewer/DiffViewer.css +1 -1
- package/dist/react/file-tree/FileTree.d.ts +9 -9
- package/dist/react/file-tree/FileTree.js +13 -13
- package/dist/react/file-tree/FileTree.js.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.d.ts +3 -3
- package/dist/react/file-tree/FolderViewMenus.d.ts.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.js +1 -1
- package/dist/react/file-tree/FolderViewMenus.js.map +1 -1
- package/dist/react/file-tree/fileTree.css +14 -14
- package/dist/react/file-tree/fileTreeSelection.d.ts +3 -3
- package/dist/react/file-tree/fileTreeSelection.js +4 -4
- package/dist/react/file-tree/folderView.d.ts +3 -3
- package/dist/react/file-tree/folderView.d.ts.map +1 -1
- package/dist/react/file-tree/folderView.js +3 -3
- package/dist/react/file-tree/folderView.js.map +1 -1
- package/dist/react/filter-rail/FilterRail.d.ts +3 -3
- package/dist/react/filter-rail/FilterRail.d.ts.map +1 -1
- package/dist/react/filter-rail/FilterRail.js +1 -1
- package/dist/react/filter-rail/RailSection.d.ts +1 -1
- package/dist/react/filter-rail/railResize.d.ts +1 -1
- package/dist/react/filter-rail/railResize.js +1 -1
- package/dist/react/folder-tree/FolderBreadcrumb.d.ts +1 -1
- package/dist/react/folder-tree/NewFolderControl.js +1 -1
- package/dist/react/hooks/keyboardDnd.d.ts +1 -1
- package/dist/react/hooks/keyboardDnd.d.ts.map +1 -1
- package/dist/react/hooks/keyboardDnd.js +2 -2
- package/dist/react/hooks/keyboardDnd.js.map +1 -1
- package/dist/react/hooks/pointerDnd.d.ts +2 -2
- package/dist/react/hooks/pointerDnd.d.ts.map +1 -1
- package/dist/react/hooks/pointerDnd.js +1 -1
- package/dist/react/hooks/usePointerDrag.d.ts +2 -2
- package/dist/react/icons.d.ts +16 -9
- package/dist/react/icons.d.ts.map +1 -1
- package/dist/react/icons.js +17 -10
- package/dist/react/icons.js.map +1 -1
- package/dist/react/layoutEngine/LayoutRenderer.js +1 -1
- package/dist/react/layoutEngine/LayoutRenderer.js.map +1 -1
- package/dist/react/lib/cn.d.ts +3 -3
- package/dist/react/lib/cn.js +4 -4
- package/dist/react/lib/field.d.ts +1 -1
- package/dist/react/lib/floatingContainer.d.ts +1 -1
- package/dist/react/lib/floatingContainer.js +1 -1
- package/dist/react/lib/floatingStyles.d.ts +1 -1
- package/dist/react/lib/floatingStyles.js +2 -2
- package/dist/react/lib/floatingStyles.js.map +1 -1
- package/dist/react/lib/hoverIntent.d.ts +6 -6
- package/dist/react/lib/hoverIntent.js +6 -6
- package/dist/react/lib/infoHint.d.ts +1 -1
- package/dist/react/lib/infoHint.js +1 -1
- package/dist/react/lib/overlayMotion.d.ts +1 -1
- package/dist/react/lib/overlayMotion.d.ts.map +1 -1
- package/dist/react/lib/overlayMotion.js +1 -1
- package/dist/react/lib/overlayMotion.js.map +1 -1
- package/dist/react/lib/press.d.ts +1 -1
- package/dist/react/lib/press.js +1 -1
- package/dist/react/lib/selectField.d.ts +2 -2
- package/dist/react/lib/selectField.d.ts.map +1 -1
- package/dist/react/lib/selectField.js +2 -2
- package/dist/react/lib/selectField.js.map +1 -1
- package/dist/react/look/AppearanceMenu.d.ts +1 -1
- package/dist/react/look/AppearanceMenu.js +1 -1
- package/dist/react/look/LookPicker.d.ts +3 -3
- package/dist/react/look/LookPicker.js +3 -3
- package/dist/react/look/lookStore.d.ts +1 -1
- package/dist/react/look/lookStore.js +4 -4
- package/dist/react/look/lookStore.js.map +1 -1
- package/dist/react/master-lock/MasterLockDialog.js +2 -2
- package/dist/react/master-lock/MasterLockDialog.js.map +1 -1
- package/dist/react/master-lock/MasterLockProvider.d.ts +1 -1
- package/dist/react/media/DenseGalleryShell.d.ts +3 -3
- package/dist/react/media/FocusViewer.js +3 -3
- package/dist/react/media/FocusViewer.js.map +1 -1
- package/dist/react/media/FrameGrabber.js +3 -3
- package/dist/react/media/FrameGrabber.js.map +1 -1
- package/dist/react/media/HoverScrubVideoThumb.d.ts +1 -1
- package/dist/react/media/HoverScrubVideoThumb.js +1 -1
- package/dist/react/media/HoverScrubVideoThumb.js.map +1 -1
- package/dist/react/media/MediaCell.d.ts +1 -1
- package/dist/react/media/MediaCell.js +1 -1
- package/dist/react/media/MediaResize.d.ts +1 -1
- package/dist/react/media/MediaThumb.d.ts +1 -1
- package/dist/react/media/PictureControls.d.ts +1 -1
- package/dist/react/media/PictureControls.js +2 -2
- package/dist/react/media/PictureControls.js.map +1 -1
- package/dist/react/media/PictureEditor.js +2 -2
- package/dist/react/media/PictureEditor.js.map +1 -1
- package/dist/react/media/PlayerStrip.d.ts +4 -4
- package/dist/react/media/PlayerStrip.d.ts.map +1 -1
- package/dist/react/media/PlayerStrip.js +2 -2
- package/dist/react/media/VideoPlayer.d.ts +3 -3
- package/dist/react/media/VideoPlayer.js +5 -5
- package/dist/react/media/VideoTurner.js +1 -1
- package/dist/react/media/VideoTurner.js.map +1 -1
- package/dist/react/media/VirtualizedRows.d.ts +1 -1
- package/dist/react/media/denseGallery.css +7 -7
- package/dist/react/media/focusViewer.css +2 -2
- package/dist/react/media/gifEncode.d.ts +4 -4
- package/dist/react/media/gifEncode.d.ts.map +1 -1
- package/dist/react/media/gifEncode.js +8 -8
- package/dist/react/media/gifEncode.js.map +1 -1
- package/dist/react/media/gifRecord.js +1 -1
- package/dist/react/media/gifRecord.js.map +1 -1
- package/dist/react/media/hlsSource.js +2 -2
- package/dist/react/media/hlsSource.js.map +1 -1
- package/dist/react/media/mediaResize.css +3 -3
- package/dist/react/media/pictureEdit.d.ts +1 -1
- package/dist/react/media/pictureEdit.js +4 -4
- package/dist/react/media/pictureEdit.js.map +1 -1
- package/dist/react/media/pictureEditor.css +6 -6
- package/dist/react/media/playerSpaceKey.js +3 -3
- package/dist/react/media/playerStrip.css +11 -11
- package/dist/react/media/posterFraming.d.ts +2 -2
- package/dist/react/media/posterFraming.d.ts.map +1 -1
- package/dist/react/media/posterFraming.js +4 -4
- package/dist/react/media/posterFraming.js.map +1 -1
- package/dist/react/media/sourceFault.d.ts +2 -2
- package/dist/react/media/sourceFault.js +1 -1
- package/dist/react/media/stageResize.d.ts +1 -1
- package/dist/react/media/stageResize.js +1 -1
- package/dist/react/media/surfaceGesture.d.ts +1 -1
- package/dist/react/media/surfaceGesture.js +1 -1
- package/dist/react/media/types.d.ts +1 -1
- package/dist/react/media/videoChapterEditor.css +1 -1
- package/dist/react/media/videoChapters.d.ts +1 -1
- package/dist/react/media/videoChapters.js +1 -1
- package/dist/react/media/videoCutEditor.css +2 -2
- package/dist/react/media/videoEnhance.d.ts +2 -2
- package/dist/react/media/videoEnhance.js +2 -2
- package/dist/react/media/videoPoster.d.ts +3 -3
- package/dist/react/media/videoPoster.d.ts.map +1 -1
- package/dist/react/media/videoPoster.js +4 -4
- package/dist/react/media/videoPoster.js.map +1 -1
- package/dist/react/media/videoRegion.d.ts +8 -8
- package/dist/react/media/videoRegion.js +8 -8
- package/dist/react/media-gallery/MediaGallery.d.ts +2 -2
- package/dist/react/media-gallery/MediaGallery.d.ts.map +1 -1
- package/dist/react/media-gallery/MediaGallery.js +17 -17
- package/dist/react/media-gallery/MediaGallery.js.map +1 -1
- package/dist/react/media-gallery/MediaMetaEditor.js +1 -1
- package/dist/react/media-gallery/galleryDeepLink.d.ts +1 -1
- package/dist/react/media-gallery/galleryDeepLink.js +2 -2
- package/dist/react/media-gallery/galleryItemMedia.d.ts +1 -1
- package/dist/react/media-gallery/galleryItemMedia.js +1 -1
- package/dist/react/media-gallery/galleryReturn.d.ts +1 -1
- package/dist/react/media-gallery/galleryReturn.js +2 -2
- package/dist/react/media-gallery/mediaGallery.css +10 -10
- package/dist/react/media-gallery/mediaGalleryModel.d.ts +1 -1
- package/dist/react/media-gallery/mediaGalleryModel.js +1 -1
- package/dist/react/media-gallery/playbackPreferences.d.ts +3 -3
- package/dist/react/media-gallery/playbackPreferences.js +2 -2
- package/dist/react/media-gallery/playbackRun.d.ts +1 -1
- package/dist/react/media-gallery/playbackRun.js +1 -1
- package/dist/react/media-gallery/preferenceSync.js +1 -1
- package/dist/react/namespace/NamespaceTargetCapsule.d.ts +1 -1
- package/dist/react/nav/BreadcrumbTrail.d.ts +1 -1
- package/dist/react/nav/BreadcrumbTrail.js +1 -1
- package/dist/react/nav/Breadcrumbs.d.ts +1 -1
- package/dist/react/nav/Breadcrumbs.js +1 -1
- package/dist/react/nav/HeaderSearch.d.ts +3 -3
- package/dist/react/nav/HeaderSearch.d.ts.map +1 -1
- package/dist/react/nav/HeaderSearch.js +2 -2
- package/dist/react/nav/PlaceBar.d.ts +1 -1
- package/dist/react/nav/PlaceBar.js +2 -2
- package/dist/react/nav/SearchResults.d.ts +2 -2
- package/dist/react/nav/SearchResults.d.ts.map +1 -1
- package/dist/react/nav/SearchResults.js +1 -1
- package/dist/react/nav/TopBar.js +1 -1
- package/dist/react/nav/breadcrumbStore.js +1 -1
- package/dist/react/nav/navShared.d.ts +1 -1
- package/dist/react/palette/CommandPalette.js +1 -1
- package/dist/react/palette/CommandPalette.js.map +1 -1
- package/dist/react/pdf-viewer/PdfPage.js +1 -1
- package/dist/react/pdf-viewer/PdfPage.js.map +1 -1
- package/dist/react/spreadsheet/SpreadsheetGrid.d.ts +1 -1
- package/dist/react/spreadsheet/useGlideTheme.js +2 -2
- package/dist/react/workbook-viewer/WorkbookViewer.js +1 -1
- package/dist/react/workbook-viewer/WorkbookViewer.js.map +1 -1
- package/dist/styles-areas/notifications.css +1 -1
- package/dist/styles-static.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/designAudit.d.ts +2 -2
- package/dist/testing/designAudit.js +3 -3
- package/dist/testing/designAudit.js.map +1 -1
- package/dist/testing/phoneRules.d.ts +4 -4
- package/dist/testing/phoneRules.js +4 -4
- package/dist/testing/phoneRules.js.map +1 -1
- package/dist/theme.css +10 -10
- package/package.json +1 -1
- package/scripts/attributesForwarded.ts +1 -1
- package/scripts/checkAreaStyles.ts +2 -2
- package/scripts/cssRules.ts +2 -2
- package/scripts/demoCoverage.ts +1 -1
- package/scripts/demoServer.ts +1 -1
- package/scripts/generateStaticStyles.ts +1 -1
- package/scripts/guardrailsEnforce.spec.ts +14 -14
- package/scripts/guardrailsEnforce.ts +25 -25
- package/scripts/paths.ts +1 -1
- package/scripts/styleAreas.ts +2 -2
- package/scripts/testTmpRoot.ts +1 -1
- package/src/buildIsStaged.spec.ts +1 -1
- package/src/iframesMakeNoRealRequest.spec.ts +1 -1
- package/src/looks.css +4 -4
- package/src/looks.spec.ts +3 -3
- package/src/namedSubpathsResolve.spec.ts +2 -2
- package/src/publishShape.spec.ts +1 -1
- package/src/react/Toast.spec.tsx +1 -1
- package/src/react/Toast.tsx +2 -2
- package/src/react/VirtualCardGrid.spec.tsx +1 -1
- package/src/react/VirtualCardGrid.tsx +3 -3
- package/src/react/activity-bar/ActivityBar.spec.tsx +2 -2
- package/src/react/activity-bar/ActivityBar.tsx +4 -4
- package/src/react/activity-bar/activityBar.css +4 -4
- package/src/react/analytics/AnalyticsPanel.tsx +1 -1
- package/src/react/canvas-hud/CanvasMinimap.tsx +1 -1
- package/src/react/canvas-hud/HudControls.spec.tsx +1 -1
- package/src/react/canvas-hud/HudControls.tsx +2 -2
- package/src/react/canvas-hud/alignment.spec.tsx +4 -4
- package/src/react/canvas-hud/alignment.ts +3 -3
- package/src/react/canvas-hud/viewport.spec.ts +1 -1
- package/src/react/canvas-hud/viewport.ts +1 -1
- package/src/react/charts/BarChart.tsx +2 -2
- package/src/react/charts/HeatmapChart.spec.ts +1 -1
- package/src/react/charts/HeatmapChart.tsx +1 -1
- package/src/react/charts/IntervalTimeline.color.spec.tsx +6 -6
- package/src/react/charts/IntervalTimeline.tsx +2 -2
- package/src/react/charts/Treemap.tsx +1 -1
- package/src/react/charts/accentCollision.spec.ts +1 -1
- package/src/react/charts/categorical.spec.ts +3 -3
- package/src/react/charts/categorical.ts +12 -12
- package/src/react/charts/ink.spec.ts +1 -1
- package/src/react/charts/ink.ts +5 -5
- package/src/react/charts/tokens.ts +1 -1
- package/src/react/chat/Bubble.tsx +1 -1
- package/src/react/chat/DateMarker.tsx +2 -2
- package/src/react/chat/MessageComposer.tsx +1 -1
- package/src/react/chat/PresenceRoster.tsx +2 -2
- package/src/react/chat/types.ts +1 -1
- package/src/react/chat/usePresence.ts +2 -2
- package/src/react/code-editor/markdownRules.ts +1 -1
- package/src/react/components/AvatarStack.spec.tsx +2 -2
- package/src/react/components/AvatarStack.tsx +2 -2
- package/src/react/components/Badge.capsule.spec.ts +6 -6
- package/src/react/components/Badge.tsx +1 -1
- package/src/react/components/Button.spec.tsx +1 -1
- package/src/react/components/Button.tsx +5 -5
- package/src/react/components/ChartTablePanel.tsx +1 -1
- package/src/react/components/Checkbox.spec.tsx +2 -2
- package/src/react/components/Checkbox.tsx +2 -2
- package/src/react/components/ChoiceGroup.tsx +1 -1
- package/src/react/components/CodeChip.spec.tsx +1 -1
- package/src/react/components/CodeChip.tsx +1 -1
- package/src/react/components/ColorSwatches.spec.tsx +9 -9
- package/src/react/components/ColorSwatches.tsx +16 -16
- package/src/react/components/CommentThread.tsx +1 -1
- package/src/react/components/ConnectionHealer.tsx +1 -1
- package/src/react/components/DataTable/DataTable.spec.tsx +2 -2
- package/src/react/components/DataTable/DataTable.tsx +10 -10
- package/src/react/components/DataTable/SearchBox.tsx +2 -2
- package/src/react/components/DataTable/SortHeader.tsx +1 -1
- package/src/react/components/DataTable/TableFilterBuilder.tsx +1 -1
- package/src/react/components/DataTable/selection.spec.tsx +1 -1
- package/src/react/components/DataTable/virtualize.spec.tsx +1 -1
- package/src/react/components/DropdownMenu.tsx +1 -1
- package/src/react/components/Field.tsx +1 -1
- package/src/react/components/FormPreviewLayout.tsx +1 -1
- package/src/react/components/Heat.spec.tsx +1 -1
- package/src/react/components/Heat.tsx +6 -6
- package/src/react/components/IconPicker.spec.tsx +1 -1
- package/src/react/components/IconPicker.tsx +9 -9
- package/src/react/components/InfoHint.spec.tsx +2 -2
- package/src/react/components/InfoHint.tsx +1 -1
- package/src/react/components/InheritBadge.tsx +2 -2
- package/src/react/components/IsolatedFrame.tsx +1 -1
- package/src/react/components/ListToolbar.tsx +1 -1
- package/src/react/components/Menu.tsx +1 -1
- package/src/react/components/Modal.tsx +5 -5
- package/src/react/components/Page.spec.tsx +1 -1
- package/src/react/components/Page.tsx +2 -2
- package/src/react/components/PaneSplit.tsx +1 -1
- package/src/react/components/PathText.tsx +1 -1
- package/src/react/components/PointerDrag.spec.tsx +1 -1
- package/src/react/components/Popover.spec.tsx +2 -2
- package/src/react/components/Popover.tsx +1 -1
- package/src/react/components/PropertyList.tsx +1 -1
- package/src/react/components/PropertyPicker.tsx +2 -2
- package/src/react/components/RatingField.tsx +1 -1
- package/src/react/components/SaveIndicator.tsx +2 -2
- package/src/react/components/SearchInput.tsx +1 -1
- package/src/react/components/SecretInput.tsx +1 -1
- package/src/react/components/Section.tsx +1 -1
- package/src/react/components/SectionNav.spec.tsx +3 -3
- package/src/react/components/SectionNav.tsx +3 -3
- package/src/react/components/SelectField.spec.tsx +1 -1
- package/src/react/components/Slider.tsx +1 -1
- package/src/react/components/StarRating.spec.tsx +4 -4
- package/src/react/components/StarRating.tsx +3 -3
- package/src/react/components/SwatchPicker.spec.tsx +4 -4
- package/src/react/components/SwatchPicker.tsx +9 -9
- package/src/react/components/Tooltip.spec.tsx +3 -3
- package/src/react/components/Tooltip.tsx +1 -1
- package/src/react/components/TreeView.tsx +1 -1
- package/src/react/components/TruncatedText.tsx +1 -1
- package/src/react/components/UnstyledButton.tsx +2 -2
- package/src/react/components/auth/AuthCard.tsx +1 -1
- package/src/react/components/buildFreshness.css +2 -2
- package/src/react/components/calendar/EventChip.spec.tsx +2 -2
- package/src/react/components/calendar/MonthGrid.tsx +2 -2
- package/src/react/components/calendar/colorUtils.ts +2 -2
- package/src/react/components/dialog.tsx +1 -1
- package/src/react/components/fieldErrorText.tsx +1 -1
- package/src/react/components/paneSplit.css +1 -1
- package/src/react/components/sharing/ShareEditor.spec.tsx +15 -0
- package/src/react/components/sharing/ShareEditor.tsx +14 -3
- package/src/react/deep-link/links.spec.ts +1 -1
- package/src/react/deep-link/links.ts +1 -1
- package/src/react/deep-link/resume.spec.tsx +1 -1
- package/src/react/deep-link/resume.ts +1 -1
- package/src/react/diff-viewer/DiffViewer.css +1 -1
- package/src/react/file-tree/FileTree.spec.tsx +13 -13
- package/src/react/file-tree/FileTree.tsx +22 -22
- package/src/react/file-tree/FolderViewMenus.tsx +3 -3
- package/src/react/file-tree/FolderViewPanels.tsx +1 -1
- package/src/react/file-tree/fileTree.css +14 -14
- package/src/react/file-tree/fileTreeGeometry.spec.ts +5 -5
- package/src/react/file-tree/fileTreeSelection.ts +4 -4
- package/src/react/file-tree/folderView.spec.ts +1 -1
- package/src/react/file-tree/folderView.ts +3 -3
- package/src/react/filter-rail/FilterRail.spec.tsx +1 -1
- package/src/react/filter-rail/FilterRail.tsx +4 -4
- package/src/react/filter-rail/RailSection.spec.tsx +2 -2
- package/src/react/filter-rail/RailSection.tsx +1 -1
- package/src/react/filter-rail/railResize.tsx +1 -1
- package/src/react/folder-tree/FolderBreadcrumb.tsx +1 -1
- package/src/react/folder-tree/NewFolderControl.tsx +1 -1
- package/src/react/hooks/keyboardDnd.spec.tsx +1 -1
- package/src/react/hooks/keyboardDnd.tsx +2 -2
- package/src/react/hooks/pointerDnd.spec.ts +3 -3
- package/src/react/hooks/pointerDnd.ts +2 -2
- package/src/react/hooks/useOutsidePress.spec.tsx +1 -1
- package/src/react/hooks/usePointerDrag.ts +2 -2
- package/src/react/icons.tsx +18 -11
- package/src/react/keep-awake/keepAwakeEngine.spec.ts +1 -1
- package/src/react/layoutEngine/LayoutConfigDialog.tsx +1 -1
- package/src/react/layoutEngine/LayoutRenderer.tsx +1 -1
- package/src/react/layoutEngine/gridClasses.spec.ts +3 -3
- package/src/react/lib/cn.spec.ts +1 -1
- package/src/react/lib/cn.ts +4 -4
- package/src/react/lib/directUpload.spec.ts +1 -1
- package/src/react/lib/field.ts +1 -1
- package/src/react/lib/floatingContainer.ts +1 -1
- package/src/react/lib/floatingStyles.spec.ts +1 -1
- package/src/react/lib/floatingStyles.ts +2 -2
- package/src/react/lib/hoverIntent.ts +6 -6
- package/src/react/lib/infoHint.ts +1 -1
- package/src/react/lib/overlayMotion.ts +1 -1
- package/src/react/lib/press.ts +1 -1
- package/src/react/lib/selectField.ts +2 -2
- package/src/react/lib/zodResolver.ts +1 -1
- package/src/react/look/AppearanceMenu.tsx +1 -1
- package/src/react/look/LookPicker.tsx +3 -3
- package/src/react/look/lookStore.ts +4 -4
- package/src/react/markdown/MarkdownDoc.spec.tsx +1 -1
- package/src/react/master-detail/MasterDetail.tsx +1 -1
- package/src/react/master-lock/MasterLockDialog.tsx +2 -2
- package/src/react/master-lock/MasterLockProvider.spec.tsx +1 -1
- package/src/react/master-lock/MasterLockProvider.tsx +1 -1
- package/src/react/media/DenseGalleryShell.tsx +3 -3
- package/src/react/media/FocusViewer.tsx +3 -3
- package/src/react/media/FrameGrabber.spec.tsx +2 -2
- package/src/react/media/FrameGrabber.tsx +3 -3
- package/src/react/media/HoverScrubVideoThumb.tsx +3 -3
- package/src/react/media/MediaCell.tsx +1 -1
- package/src/react/media/MediaResize.spec.tsx +4 -4
- package/src/react/media/MediaResize.tsx +1 -1
- package/src/react/media/MediaThumb.tsx +1 -1
- package/src/react/media/PictureControls.tsx +2 -2
- package/src/react/media/PictureEditor.tsx +2 -2
- package/src/react/media/PlayerStrip.tsx +9 -9
- package/src/react/media/VideoChapterEditor.tsx +1 -1
- package/src/react/media/VideoCutEditor.spec.tsx +1 -1
- package/src/react/media/VideoCutEditor.tsx +1 -1
- package/src/react/media/VideoPlayer.spec.tsx +7 -7
- package/src/react/media/VideoPlayer.tsx +6 -6
- package/src/react/media/VideoTurner.tsx +1 -1
- package/src/react/media/VirtualizedRows.tsx +1 -1
- package/src/react/media/denseGallery.css +7 -7
- package/src/react/media/focusViewer.css +2 -2
- package/src/react/media/focusViewer.css.spec.ts +1 -1
- package/src/react/media/gifEncode.spec.ts +2 -2
- package/src/react/media/gifEncode.ts +9 -9
- package/src/react/media/gifRecord.ts +1 -1
- package/src/react/media/hlsSource.recovery.spec.ts +2 -2
- package/src/react/media/hlsSource.spec.ts +1 -1
- package/src/react/media/hlsSource.ts +2 -2
- package/src/react/media/mediaResize.css +3 -3
- package/src/react/media/pictureEdit.spec.ts +5 -5
- package/src/react/media/pictureEdit.ts +4 -4
- package/src/react/media/pictureEditor.css +6 -6
- package/src/react/media/playerSpaceKey.ts +3 -3
- package/src/react/media/playerStrip.css +11 -11
- package/src/react/media/playerStrip.spec.tsx +17 -13
- package/src/react/media/posterFraming.spec.ts +4 -4
- package/src/react/media/posterFraming.ts +5 -5
- package/src/react/media/sourceFault.tsx +2 -2
- package/src/react/media/stageResize.ts +1 -1
- package/src/react/media/surfaceGesture.ts +1 -1
- package/src/react/media/types.ts +1 -1
- package/src/react/media/videoChapterEditor.css +1 -1
- package/src/react/media/videoChapters.spec.ts +1 -1
- package/src/react/media/videoChapters.ts +1 -1
- package/src/react/media/videoCutEditor.css +2 -2
- package/src/react/media/videoEnhance.spec.ts +1 -1
- package/src/react/media/videoEnhance.ts +2 -2
- package/src/react/media/videoPoster.spec.ts +3 -3
- package/src/react/media/videoPoster.ts +5 -5
- package/src/react/media/videoRegion.spec.ts +7 -7
- package/src/react/media/videoRegion.ts +8 -8
- package/src/react/media-gallery/GalleryTable.tsx +1 -1
- package/src/react/media-gallery/MediaGallery.spec.tsx +11 -11
- package/src/react/media-gallery/MediaGallery.tsx +23 -23
- package/src/react/media-gallery/MediaMetaEditor.tsx +1 -1
- package/src/react/media-gallery/galleryDeepLink.ts +2 -2
- package/src/react/media-gallery/galleryItemMedia.spec.tsx +1 -1
- package/src/react/media-gallery/galleryItemMedia.tsx +1 -1
- package/src/react/media-gallery/galleryReturn.ts +2 -2
- package/src/react/media-gallery/mediaGallery.css +10 -10
- package/src/react/media-gallery/mediaGalleryModel.ts +1 -1
- package/src/react/media-gallery/playbackPreferences.ts +3 -3
- package/src/react/media-gallery/playbackRun.spec.ts +1 -1
- package/src/react/media-gallery/playbackRun.ts +1 -1
- package/src/react/media-gallery/preferenceSync.ts +1 -1
- package/src/react/namespace/NamespaceTargetCapsule.tsx +1 -1
- package/src/react/nav/BreadcrumbTrail.tsx +1 -1
- package/src/react/nav/Breadcrumbs.tsx +1 -1
- package/src/react/nav/HeaderSearch.tsx +3 -3
- package/src/react/nav/PlaceBar.spec.tsx +4 -4
- package/src/react/nav/PlaceBar.tsx +4 -4
- package/src/react/nav/SearchResults.tsx +2 -2
- package/src/react/nav/TopBar.spec.tsx +1 -1
- package/src/react/nav/TopBar.tsx +1 -1
- package/src/react/nav/breadcrumbStore.ts +1 -1
- package/src/react/nav/breadcrumbSystem.spec.tsx +1 -1
- package/src/react/nav/navShared.tsx +1 -1
- package/src/react/palette/CommandPalette.spec.tsx +1 -1
- package/src/react/palette/CommandPalette.tsx +1 -1
- package/src/react/pdf-viewer/PdfPage.tsx +1 -1
- package/src/react/spreadsheet/SpreadsheetGrid.tsx +1 -1
- package/src/react/spreadsheet/useGlideTheme.ts +2 -2
- package/src/react/workbook-viewer/WorkbookViewer.tsx +1 -1
- package/src/shippedFilesAreTracked.spec.ts +2 -2
- package/src/styles-areas/notifications.css +1 -1
- package/src/styles-static.css +1 -1
- package/src/styles.css +1 -1
- package/src/stylesAreas.spec.ts +1 -1
- package/src/stylesStaticMatches.spec.ts +2 -2
- package/src/stylesUtilitiesMatches.spec.ts +4 -4
- package/src/testing/designAudit.ts +4 -4
- package/src/testing/phoneRules.spec.ts +1 -1
- package/src/testing/phoneRules.ts +7 -7
- package/src/theme.css +10 -10
- package/src/themeColorsResolve.spec.ts +5 -5
- package/src/themeDarkScopeAliases.spec.ts +1 -1
- package/src/verifyGraph.spec.ts +1 -1
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./videoRegion.js";
|
|
23
23
|
|
|
24
24
|
describe("zoomRegion", () => {
|
|
25
|
-
test("keeps the
|
|
25
|
+
test("keeps the center fixed — the subject does not slide out of view", () => {
|
|
26
26
|
const start = { x: 0.2, y: 0.3, w: 0.4, h: 0.4 };
|
|
27
27
|
const zoomed = zoomRegion(start, 2);
|
|
28
28
|
expect(zoomed.x + zoomed.w / 2).toBeCloseTo(start.x + start.w / 2, 6);
|
|
@@ -58,7 +58,7 @@ describe("zoomRegion", () => {
|
|
|
58
58
|
* the wide side keeps shrinking, so the region's SHAPE drifts as you hold `+` — the
|
|
59
59
|
* picture stretches on screen and a snapshot crops a rectangle nobody chose.
|
|
60
60
|
*/
|
|
61
|
-
test("holds the region's SHAPE at both extremes, not just its
|
|
61
|
+
test("holds the region's SHAPE at both extremes, not just its center", () => {
|
|
62
62
|
const strip = { x: 0.05, y: 0.45, w: 0.9, h: 0.1 };
|
|
63
63
|
const aspect = strip.w / strip.h;
|
|
64
64
|
|
|
@@ -106,7 +106,7 @@ describe("regionZoom / regionAtZoom", () => {
|
|
|
106
106
|
expect(regionAtZoom(FULL_REGION, -4)).toEqual(FULL_REGION);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
test("zooming by slider keeps the
|
|
109
|
+
test("zooming by slider keeps the center, exactly like the buttons", () => {
|
|
110
110
|
const start = { x: 0.5, y: 0.1, w: 0.4, h: 0.4 };
|
|
111
111
|
const out = regionAtZoom(start, 4);
|
|
112
112
|
expect(out.x + out.w / 2).toBeCloseTo(start.x + start.w / 2, 6);
|
|
@@ -247,7 +247,7 @@ describe("regionPixels", () => {
|
|
|
247
247
|
});
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
-
describe("stageAspectFor — the fix for 'I select the
|
|
250
|
+
describe("stageAspectFor — the fix for 'I select the center and it shifts to the side'", () => {
|
|
251
251
|
const PORTRAIT_SRC = { width: 1080, height: 1920 };
|
|
252
252
|
|
|
253
253
|
test("has no answer until the video reports a decoded size", () => {
|
|
@@ -293,8 +293,8 @@ describe("stageAspectFor — the fix for 'I select the centre and it shifts to t
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
test("a
|
|
297
|
-
// Select the middle 40% of a portrait clip. The region's own
|
|
296
|
+
test("a centered selection stays centered — the exact symptom reported", () => {
|
|
297
|
+
// Select the middle 40% of a portrait clip. The region's own center must be the middle
|
|
298
298
|
// of the frame; a letterbox-induced error would push it off to one side.
|
|
299
299
|
const centred = { x: 0.3, y: 0.3, w: 0.4, h: 0.4 };
|
|
300
300
|
const composed = composeSelection(FULL_REGION, centred);
|
|
@@ -331,7 +331,7 @@ describe("🔴 fillRegion — zooming in fills the viewport instead of keeping i
|
|
|
331
331
|
expect(fitBox(wide, stageAspectFor(film, shown) ?? 0)).toEqual(wide);
|
|
332
332
|
});
|
|
333
333
|
|
|
334
|
-
test("what was asked to be seen stays on screen,
|
|
334
|
+
test("what was asked to be seen stays on screen, centered where it was", () => {
|
|
335
335
|
const zoomed = { x: 0.3, y: 0.3, w: 0.2, h: 0.2 };
|
|
336
336
|
const shown = fillRegion(zoomed, film, wide);
|
|
337
337
|
expect(shown.x).toBeLessThanOrEqual(zoomed.x);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* ── 🔴 The one idea that makes the whole feature small ─────────────────────────────────
|
|
11
11
|
* A drawn selection and a zoom level look like two features and are ONE: **zooming is just
|
|
12
|
-
* narrowing the region around its own
|
|
12
|
+
* narrowing the region around its own center.** So there is a single piece of state — the
|
|
13
13
|
* region being looked at — and `+`/`−` shrink or widen it while a marquee replaces it
|
|
14
14
|
* outright. Every consequence the owner asked for falls out of that instead of needing its
|
|
15
15
|
* own code path: zoom works in normal view (the region starts as the whole frame), it works
|
|
@@ -59,9 +59,9 @@ export function clampRegion(region: Region): Region {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Zoom about a region's own
|
|
62
|
+
* Zoom about a region's own center — `factor > 1` moves closer.
|
|
63
63
|
*
|
|
64
|
-
* 🔴 About the
|
|
64
|
+
* 🔴 About the CENTER, and it must stay that way: the thing the owner is looking at is the
|
|
65
65
|
* thing in the middle, so any other anchor makes `+` slide the subject out of view and the
|
|
66
66
|
* control feel broken. The clamp then keeps the result inside the frame, which is why zooming
|
|
67
67
|
* out near an edge glides back toward the middle rather than exposing blank space.
|
|
@@ -117,7 +117,7 @@ export const MAX_ZOOM = 20;
|
|
|
117
117
|
* Set the magnification directly — what the zoom SLIDER moves.
|
|
118
118
|
*
|
|
119
119
|
* Expressed in terms of {@link zoomRegion} rather than recomputing the rectangle, so the
|
|
120
|
-
* slider and the `+`/`−` buttons cannot drift apart: both go through the same
|
|
120
|
+
* slider and the `+`/`−` buttons cannot drift apart: both go through the same center-holding,
|
|
121
121
|
* aspect-preserving, clamped path.
|
|
122
122
|
*/
|
|
123
123
|
export function regionAtZoom(region: Region, zoom: number): Region {
|
|
@@ -132,7 +132,7 @@ export function regionAtZoom(region: Region, zoom: number): Region {
|
|
|
132
132
|
* 🔴 This exists because the shape had been left to CSS, and CSS could not be trusted with
|
|
133
133
|
* it. The stage carried an inline `aspect-ratio` from the selected region PLUS a
|
|
134
134
|
* `min-block-size` floor and a `max-block-size: 72vh` ceiling; whenever a selection's natural
|
|
135
|
-
* height fell outside that range the box silently stopped
|
|
135
|
+
* height fell outside that range the box silently stopped honoring the ratio, so the element
|
|
136
136
|
* was no longer the shape of the region it was displaying. Every marquee and pan coordinate
|
|
137
137
|
* is a fraction of that box, so all of them were then wrong — which is what the owner saw as
|
|
138
138
|
* *"select an area doesn't make the image zoom to the area I drag"*. Measuring the available
|
|
@@ -214,7 +214,7 @@ export const panRegion = (region: Region, dxFraction: number, dyFraction: number
|
|
|
214
214
|
* box of whatever shape the layout gave it and the element used `object-fit: contain`, so a
|
|
215
215
|
* portrait clip in a landscape stage was letterboxed — the picture sat in the middle of the
|
|
216
216
|
* element with bars either side. Every coordinate then disagreed with reality by the width of
|
|
217
|
-
* those bars: a marquee drawn over the
|
|
217
|
+
* those bars: a marquee drawn over the center of the PICTURE was recorded as a fraction of
|
|
218
218
|
* the STAGE, so the region landed off to one side, and panning inherited the same error.
|
|
219
219
|
*
|
|
220
220
|
* Rather than correcting for the letterbox everywhere (three call sites, each needing the
|
|
@@ -278,7 +278,7 @@ export function regionPixels(
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* The region actually SHOWN for a zoomed-in `region`: grown, about its own
|
|
281
|
+
* The region actually SHOWN for a zoomed-in `region`: grown, about its own center, to the
|
|
282
282
|
* viewport's shape wherever the frame has picture to grow into.
|
|
283
283
|
*
|
|
284
284
|
* The owner, 2026-10-01: *"black bars took up about 4 inches on each side … Even after zooming
|
|
@@ -290,7 +290,7 @@ export function regionPixels(
|
|
|
290
290
|
* and a marquee drawn tall made it worse.
|
|
291
291
|
*
|
|
292
292
|
* 🔴 It only ever GROWS the region, and only up to the whole frame on each axis, so what was
|
|
293
|
-
* asked to be seen is always all on screen,
|
|
293
|
+
* asked to be seen is always all on screen, centered where it was. Everything that reads the
|
|
294
294
|
* picture — the layout, the frame size, a marquee drawn on it, a pan, a snapshot — reads THIS,
|
|
295
295
|
* so what is on screen and what a coordinate means stay one rectangle.
|
|
296
296
|
*/
|
|
@@ -379,7 +379,7 @@ function SortHeader({
|
|
|
379
379
|
onClick={() => onOrderChange(nextOrderFor(column, order))}
|
|
380
380
|
>
|
|
381
381
|
{label}
|
|
382
|
-
{/* An arrow, not a
|
|
382
|
+
{/* An arrow, not a color: the active column has to be readable without one. */}
|
|
383
383
|
<span aria-hidden='true' className='cbgt-sort-arrow'>
|
|
384
384
|
{direction === 'asc' ? '▲' : direction === 'desc' ? '▼' : ''}
|
|
385
385
|
</span>
|
|
@@ -571,8 +571,8 @@ describe('MediaGallery — turning a video', () => {
|
|
|
571
571
|
// sized stayed exactly as it was, which is the pillar in the middle of a black panel.
|
|
572
572
|
expect(block).not.toContain('max-block-size: 100cqi');
|
|
573
573
|
expect(block).not.toContain('max-inline-size: 100cqb');
|
|
574
|
-
// A rotation turns about the element's own
|
|
575
|
-
//
|
|
574
|
+
// A rotation turns about the element's own center, so the element has to BE at the panel's
|
|
575
|
+
// center — off-center by a quarter of the panel is what the first browser run measured.
|
|
576
576
|
expect(css).toContain(".cbmg-stage-turn[data-turned='true'] [data-media-provider]");
|
|
577
577
|
});
|
|
578
578
|
|
|
@@ -766,7 +766,7 @@ describe('MediaGallery — the playback run', () => {
|
|
|
766
766
|
* 🔴 Read off the ACCESSIBLE NAME, not `textContent`. The pill is a bare glyph since
|
|
767
767
|
* 2026-09-16 (owner: *"icons only, instead of words in the strip of tools"*), so its text
|
|
768
768
|
* content is the empty string for all five settings — a `textContent` probe would loop six
|
|
769
|
-
* times and throw on every call, which is how a cosmetic change takes a
|
|
769
|
+
* times and throw on every call, which is how a cosmetic change takes a behavioral suite
|
|
770
770
|
* with it. The name is where the value lives now, and asserting through it is also the
|
|
771
771
|
* point: it is the thing a screen reader gets.
|
|
772
772
|
*/
|
|
@@ -1025,7 +1025,7 @@ describe('MediaGallery table view', () => {
|
|
|
1025
1025
|
* grid view it works."* A video ROW previews its thumbnail now, so the control belongs in both
|
|
1026
1026
|
* views — and it has to be in both, because collections renders `chrome='none'` and drives the
|
|
1027
1027
|
* toggle from its own activity bar, where it was present and inert rather than absent. See the
|
|
1028
|
-
* suite at the foot of this file for the
|
|
1028
|
+
* suite at the foot of this file for the behavior itself.
|
|
1029
1029
|
*/
|
|
1030
1030
|
test('🔴 Preview all is offered in the table too, because a row previews now', () => {
|
|
1031
1031
|
const { getByRole, queryByRole } = render(<MediaGallery items={ITEMS} />);
|
|
@@ -1113,7 +1113,7 @@ describe('MediaGallery — size and length', () => {
|
|
|
1113
1113
|
|
|
1114
1114
|
test('tags keep their line and the running time joins them on it', () => {
|
|
1115
1115
|
// 🔴 Never a fourth line: the caption block is a fixed 65px (`CBGD_META_HEIGHT`), and a
|
|
1116
|
-
// tile taller than its
|
|
1116
|
+
// tile taller than its neighbor is what made rows lap each other across the fleet.
|
|
1117
1117
|
const tagged: MediaGalleryItem[] = [
|
|
1118
1118
|
{ ...(MEASURED[0] as MediaGalleryItem), tags: ['holiday', 'beach'] },
|
|
1119
1119
|
];
|
|
@@ -1303,7 +1303,7 @@ describe('the selection notification does not drive a render loop', () => {
|
|
|
1303
1303
|
* Vidstack enters on `dblpointerup`. With both bound, one double-click leaves the first and
|
|
1304
1304
|
* enters the second, and the picture is MORE fullscreen than before rather than less.
|
|
1305
1305
|
*
|
|
1306
|
-
* The
|
|
1306
|
+
* The behavioral half is `DenseGalleryShell.spec.tsx`; this is the wiring, which no
|
|
1307
1307
|
* rendered assertion can reach — Vidstack's gesture is a `dblpointerup` listener inside a
|
|
1308
1308
|
* lazily-imported player that happy-dom does not lay out. What is being pinned is that the
|
|
1309
1309
|
* flag is still DERIVED from the shell's state and not, say, hardcoded back to a literal.
|
|
@@ -1651,7 +1651,7 @@ describe('🔴 the native stage plays the ladder where the browser can', () => {
|
|
|
1651
1651
|
* — verified against the installed version while writing these tests.
|
|
1652
1652
|
*
|
|
1653
1653
|
* So `querySelector` answered `null` on every press, and the old code's `if (media)` guard then
|
|
1654
|
-
* fell through WITHOUT
|
|
1654
|
+
* fell through WITHOUT canceling the keydown. The press went on to do the focused element's
|
|
1655
1655
|
* thing — open the sidebar row the owner had just clicked, or scroll the page.
|
|
1656
1656
|
*
|
|
1657
1657
|
* Hence two independent assertions below: the element is found through the stage REF (no tag
|
|
@@ -2013,7 +2013,7 @@ describe('🔴 selecting another file leaves the thumbnail chooser', () => {
|
|
|
2013
2013
|
paused = true;
|
|
2014
2014
|
};
|
|
2015
2015
|
|
|
2016
|
-
// With no dialog up the gallery owns the key — the
|
|
2016
|
+
// With no dialog up the gallery owns the key — the behavior this must not cost us.
|
|
2017
2017
|
const press = () => {
|
|
2018
2018
|
const event = new KeyboardEvent('keydown', { key: ' ', bubbles: true, cancelable: true });
|
|
2019
2019
|
Object.defineProperty(event, 'target', { value: document.body });
|
|
@@ -2361,7 +2361,7 @@ describe('MediaGallery — the playing tile is scrolled back into view', () => {
|
|
|
2361
2361
|
* takes over, and nothing about the page LOOKS broken when it happens — the toolbar is
|
|
2362
2362
|
* simply unusable with a screen reader from that commit on. Every control the owner
|
|
2363
2363
|
* named is listed here, plus the ones in the same strip he meant by *"things like"*.
|
|
2364
|
-
* 2. **The state that was a word.** `📌 Pin` vs `📌 Pinned` and the five end-
|
|
2364
|
+
* 2. **The state that was a word.** `📌 Pin` vs `📌 Pinned` and the five end-behavior
|
|
2365
2365
|
* labels were readouts, not names. One glyph in two states removes information he was
|
|
2366
2366
|
* reading off the strip, so the value has to be somewhere a test can see it.
|
|
2367
2367
|
* 3. **That the words are actually GONE.** Otherwise "icons only" is a change that half
|
|
@@ -2454,7 +2454,7 @@ describe('MediaGallery — the toolbar is icons, and the words are its names', (
|
|
|
2454
2454
|
expect(pin().getAttribute('aria-label')).toBe('Pinned — unpin the stage');
|
|
2455
2455
|
});
|
|
2456
2456
|
|
|
2457
|
-
test('🔴 the end-
|
|
2457
|
+
test('🔴 the end-behavior control names its CURRENT setting, all five of them', () => {
|
|
2458
2458
|
const view = wired(ITEMS);
|
|
2459
2459
|
fireEvent.click(view.getByRole('button', { name: 'Open beach.jpg' }));
|
|
2460
2460
|
const button = () => view.getByRole('button', { name: /^When an item ends:/ });
|
|
@@ -2718,7 +2718,7 @@ describe('MediaGallery — tags and descriptions', () => {
|
|
|
2718
2718
|
* 🔴 A 404 AND A HANG MUST NOT LOOK THE SAME — the owner's report, 2026-09-17.
|
|
2719
2719
|
*
|
|
2720
2720
|
* *"make a 404 stop the media player spinner so I don't think it's going to eventually load."*
|
|
2721
|
-
* `itm_cbaebe887d3b48dab2c4` in his
|
|
2721
|
+
* `itm_cbaebe887d3b48dab2c4` in his catalog has no ladder, so the very first request its
|
|
2722
2722
|
* stage made was answered honestly and immediately — `404`, `{"error":"not_found"}`, 0.2 s —
|
|
2723
2723
|
* and the spinner then ran until he gave up. A timeout may keep spinning, because something
|
|
2724
2724
|
* might still arrive. An answer may not, because nothing will.
|
|
@@ -9,7 +9,7 @@ import './mediaGallery.css';
|
|
|
9
9
|
*
|
|
10
10
|
* `lucide-react`, not the 📌 ⟳ 🖼 ✂ these pills carried until 2026-09-16. An emoji is drawn
|
|
11
11
|
* by whichever font the operating system picked, at whatever optical size and weight that
|
|
12
|
-
* font chose, in
|
|
12
|
+
* font chose, in color on some platforms and monochrome on others — so the one thing a
|
|
13
13
|
* toolbar of them cannot look is designed, which is the opposite of what was asked for. The
|
|
14
14
|
* package is already a dependency (`DropdownMenu`, `PlayerStrip`, `icons.tsx`), so this adds
|
|
15
15
|
* no weight and no second icon vocabulary.
|
|
@@ -23,7 +23,7 @@ import './mediaGallery.css';
|
|
|
23
23
|
* `.cbgd-order-btn.is-icon` in `denseGallery.css`, measured by
|
|
24
24
|
* `e2e/touch-targets.spec.ts` at a real coarse-pointer viewport.
|
|
25
25
|
* 3. **A word that was a VALUE keeps a home.** `📌 Pin` vs `📌 Pinned` and the five
|
|
26
|
-
* end-
|
|
26
|
+
* end-behavior labels were not names, they were readouts; an icon identical in both
|
|
27
27
|
* states deletes information. They move into the pressed state, the accessible name and
|
|
28
28
|
* the tooltip together — `MediaGallery.spec.tsx` asserts each one.
|
|
29
29
|
*
|
|
@@ -143,7 +143,7 @@ import { Tooltip } from '../components/Tooltip.js';
|
|
|
143
143
|
|
|
144
144
|
import { TruncatedText } from '../components/TruncatedText.js';
|
|
145
145
|
import { cn, RAW_BUTTON } from '../lib/cn.js';
|
|
146
|
-
// The reusable media gallery — the plugin-era mixed gallery
|
|
146
|
+
// The reusable media gallery — the plugin-era mixed gallery generalized to EVERY binary
|
|
147
147
|
// kind the fleet stores. Same design as plugin-media-gallery: a thumbnail-maximal browse
|
|
148
148
|
// grid (hover-scrub video tiles, still photo tiles, type-icon tiles for other binaries)
|
|
149
149
|
// that swaps to an in-page detail view — the right viewer as a big stage on top, actions
|
|
@@ -409,7 +409,7 @@ const LazyMediaMetaEditor = lazyWithReload(() =>
|
|
|
409
409
|
);
|
|
410
410
|
|
|
411
411
|
/**
|
|
412
|
-
* One glyph per end-
|
|
412
|
+
* One glyph per end-behavior — the five values the cycling pill used to spell out.
|
|
413
413
|
*
|
|
414
414
|
* 🔴 Five DISTINCT icons, not one icon plus a lit state. The button cycles through settings
|
|
415
415
|
* rather than toggling one, so `Stop at the end` and `Shuffle` have to be told apart at a
|
|
@@ -1218,7 +1218,7 @@ function NativeVideoStage({
|
|
|
1218
1218
|
*
|
|
1219
1219
|
* ── 🔴 Why this is a panel and not a longer spinner ─────────────────────────────────────
|
|
1220
1220
|
* Owner, 2026-09-17: *"make a 404 stop the media player spinner so I don't think it's going
|
|
1221
|
-
* to eventually load."* One item in his
|
|
1221
|
+
* to eventually load."* One item in his catalog has no ladder, so the first request the
|
|
1222
1222
|
* stage made was answered `404` in 0.2 s — and that was the one status every surface here
|
|
1223
1223
|
* treated as "still loading". **A hang and an answer must not look the same**, which is the
|
|
1224
1224
|
* whole report: a timeout may keep spinning, because something might still arrive; an answer
|
|
@@ -1348,7 +1348,7 @@ function ImageSurface({
|
|
|
1348
1348
|
{/* A stored orientation is applied as a transform, never baked — see
|
|
1349
1349
|
`MediaGalleryItem.orientation`. `data-turned` lets the stylesheet swap the fit
|
|
1350
1350
|
constraint: a quarter-turned picture is laid out in its ORIGINAL box, so without it
|
|
1351
|
-
a portrait scan turned upright overflows the frame it is
|
|
1351
|
+
a portrait scan turned upright overflows the frame it is centered in. */}
|
|
1352
1352
|
<img
|
|
1353
1353
|
src={url}
|
|
1354
1354
|
alt={item.name}
|
|
@@ -1416,7 +1416,7 @@ function GalleryStage({
|
|
|
1416
1416
|
* 🔴 A stored orientation turns FOOTAGE too, and the wrapper is what makes that safe.
|
|
1417
1417
|
*
|
|
1418
1418
|
* A quarter-turned clip is still laid out in its original box, so a portrait clip turned
|
|
1419
|
-
* widescreen overflows the stage it is
|
|
1419
|
+
* widescreen overflows the stage it is centered in — the exact complaint that produced this
|
|
1420
1420
|
* (*"a video showing in portrait mode that is actually supposed to be widescreen to fill
|
|
1421
1421
|
* all the space correctly"*). `.cbmg-stage-turn[data-turned]` swaps the fit constraint the
|
|
1422
1422
|
* same way `.cbgd-stage-img` does for pictures. An unturned clip renders inside a plain
|
|
@@ -1667,7 +1667,7 @@ export interface MediaGalleryProps {
|
|
|
1667
1667
|
query?: string;
|
|
1668
1668
|
onQueryChange?: (query: string) => void;
|
|
1669
1669
|
/** Observe the open item. With `selectedId` set this becomes a request rather than a
|
|
1670
|
-
* notification — the consumer decides whether to
|
|
1670
|
+
* notification — the consumer decides whether to honor it. */
|
|
1671
1671
|
onSelectedChange?: (item: MediaGalleryItem | null) => void;
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Which item is open, when the CONSUMER owns that. Omit for the default behavior, where
|
|
@@ -1900,7 +1900,7 @@ export interface MediaGalleryProps {
|
|
|
1900
1900
|
*/
|
|
1901
1901
|
allowPictureReplace?: boolean;
|
|
1902
1902
|
/**
|
|
1903
|
-
* The Picture control — brightness, contrast and
|
|
1903
|
+
* The Picture control — brightness, contrast and color for what is on the stage. On by
|
|
1904
1904
|
* default, because it needs nothing from the app: it is a CSS filter over the stage and
|
|
1905
1905
|
* nothing is saved, so there is no capability to be missing.
|
|
1906
1906
|
*
|
|
@@ -2071,7 +2071,7 @@ export function MediaGallery({
|
|
|
2071
2071
|
* elsewhere and turned the header off (apps/collections, whose sort, kind, privacy and
|
|
2072
2072
|
* grid/table all live in an activity bar now) lost the feature entirely — reported as
|
|
2073
2073
|
* *"We are missing the preview all button that let's all the videos play at once in the
|
|
2074
|
-
* gallery and we need it back."* Uncontrolled
|
|
2074
|
+
* gallery and we need it back."* Uncontrolled behavior is byte-for-byte unchanged.
|
|
2075
2075
|
*/
|
|
2076
2076
|
const [uncontrolledThumbAutoplay, setUncontrolledThumbAutoplay] =
|
|
2077
2077
|
useState<boolean>(readThumbAutoplay);
|
|
@@ -2205,7 +2205,7 @@ export function MediaGallery({
|
|
|
2205
2205
|
|
|
2206
2206
|
/**
|
|
2207
2207
|
* Step through the DISPLAYED order — the same order the grid shows, so "next" always means
|
|
2208
|
-
* the tile to the right rather than a hidden
|
|
2208
|
+
* the tile to the right rather than a hidden neighbor from the unfiltered set.
|
|
2209
2209
|
*
|
|
2210
2210
|
* 🔴 It WRAPS, and that is `tsk_01KZZY085DFN8GW0RQJ8S7MYRS`. Owner, 2026-08-14: *"either
|
|
2211
2211
|
* button always goes to another image even on the edges."* This file used to argue the
|
|
@@ -2302,7 +2302,7 @@ export function MediaGallery({
|
|
|
2302
2302
|
* `advance` is handed to a `<video>`'s `onEnded` and to a dwell `setTimeout`. If it were
|
|
2303
2303
|
* rebuilt whenever the displayed order or the selection changed, the timeout effect below
|
|
2304
2304
|
* would tear down and restart on every one of those changes — so a picture whose gallery
|
|
2305
|
-
* re-sorted, or whose
|
|
2305
|
+
* re-sorted, or whose neighbor finished resolving its URLs, would silently restart its
|
|
2306
2306
|
* dwell and hold the stage forever. Reading through refs keeps ONE stable callback whose
|
|
2307
2307
|
* inputs are always current, which is the property both consumers actually need.
|
|
2308
2308
|
*/
|
|
@@ -2404,7 +2404,7 @@ export function MediaGallery({
|
|
|
2404
2404
|
* place while stepping through stills — it is the case that reasoning does not cover.
|
|
2405
2405
|
* Playback has ALREADY STARTED by the time the scroll animation runs, so a smooth glide
|
|
2406
2406
|
* means several hundred milliseconds of a video you can hear and cannot see. There is no
|
|
2407
|
-
* place to lose: the thing you are
|
|
2407
|
+
* place to lose: the thing you are traveling to is the thing that is already happening.
|
|
2408
2408
|
*/
|
|
2409
2409
|
const stageRef = useRef<HTMLDivElement | null>(null);
|
|
2410
2410
|
const hadSelection = useRef(false);
|
|
@@ -2580,7 +2580,7 @@ export function MediaGallery({
|
|
|
2580
2580
|
* This is the half that answers *"whether it is focused or not"*. Falling through on a
|
|
2581
2581
|
* not-yet-mounted player left Space meaning "press the focused button" for the first
|
|
2582
2582
|
* second of every video — and the focused button, after clicking a tile or a sidebar
|
|
2583
|
-
* row, is the one the owner just used.
|
|
2583
|
+
* row, is the one the owner just used. Canceling the keydown is also what stops the
|
|
2584
2584
|
* browser activating that button on the KEYUP, and what stops the page scrolling.
|
|
2585
2585
|
*
|
|
2586
2586
|
* Narrowed to video and audio on purpose: on a PDF or a text stage Space is paging
|
|
@@ -2765,7 +2765,7 @@ export function MediaGallery({
|
|
|
2765
2765
|
const stageMark =
|
|
2766
2766
|
category === 'video' || category === 'audio' ? 'Now playing' : 'On screen';
|
|
2767
2767
|
const downloadHref = selected.downloadUrl ?? selected.url;
|
|
2768
|
-
//
|
|
2768
|
+
// Capitalized so JSX reads it as a component rather than an HTML tag — see
|
|
2769
2769
|
// `PLAYBACK_END_ICONS` for why the setting gets five glyphs and not one.
|
|
2770
2770
|
const PlaybackEndIcon = PLAYBACK_END_ICONS[playbackEnd];
|
|
2771
2771
|
return (
|
|
@@ -2974,7 +2974,7 @@ export function MediaGallery({
|
|
|
2974
2974
|
/>
|
|
2975
2975
|
<button
|
|
2976
2976
|
// guardrails-ignore no-raw-action-button: action pill styled by the dense
|
|
2977
|
-
// gallery's own plain CSS, matching its
|
|
2977
|
+
// gallery's own plain CSS, matching its neighbors in this row.
|
|
2978
2978
|
type='submit'
|
|
2979
2979
|
className={cn(RAW_BUTTON, 'cbgd-order-btn')}
|
|
2980
2980
|
>
|
|
@@ -3007,7 +3007,7 @@ export function MediaGallery({
|
|
|
3007
3007
|
</Tooltip>
|
|
3008
3008
|
)
|
|
3009
3009
|
) : null}
|
|
3010
|
-
{/* Rename's
|
|
3010
|
+
{/* Rename's neighbor, and for the same reason: both are about what this file IS
|
|
3011
3011
|
rather than about the picture on the stage. Offered on EVERY kind — a PDF and a
|
|
3012
3012
|
spreadsheet are exactly as worth tagging as a photograph, which is the whole
|
|
3013
3013
|
point of a gallery that holds any binary. See `onSaveMeta`. */}
|
|
@@ -3124,7 +3124,7 @@ export function MediaGallery({
|
|
|
3124
3124
|
</button>
|
|
3125
3125
|
</Tooltip>
|
|
3126
3126
|
) : null}
|
|
3127
|
-
{/* Trim's
|
|
3127
|
+
{/* Trim's neighbor, and its opposite: the scissors mark what goes, this marks
|
|
3128
3128
|
what a part IS and keeps it. Offered on video only, and only where the app can
|
|
3129
3129
|
store the answer — see `onSaveChapters`. */}
|
|
3130
3130
|
{onSaveChapters && category === 'video' ? (
|
|
@@ -3141,7 +3141,7 @@ export function MediaGallery({
|
|
|
3141
3141
|
</Tooltip>
|
|
3142
3142
|
) : null}
|
|
3143
3143
|
{pictureControls && (category === 'image' || category === 'video') ? (
|
|
3144
|
-
<Tooltip content='Brightness, contrast and
|
|
3144
|
+
<Tooltip content='Brightness, contrast and color for what you are looking at'>
|
|
3145
3145
|
<button
|
|
3146
3146
|
// guardrails-ignore no-raw-action-button: see above.
|
|
3147
3147
|
type='button'
|
|
@@ -3172,7 +3172,7 @@ export function MediaGallery({
|
|
|
3172
3172
|
[
|
|
3173
3173
|
['brightness', 'Brightness'],
|
|
3174
3174
|
['contrast', 'Contrast'],
|
|
3175
|
-
['saturation', '
|
|
3175
|
+
['saturation', 'Color'],
|
|
3176
3176
|
] as const
|
|
3177
3177
|
).map(([key, label]) => (
|
|
3178
3178
|
<label key={key}>
|
|
@@ -3355,7 +3355,7 @@ export function MediaGallery({
|
|
|
3355
3355
|
<>
|
|
3356
3356
|
{/*
|
|
3357
3357
|
* Grid ⇄ table. Two pills rather than one that toggles, because a single button
|
|
3358
|
-
*
|
|
3358
|
+
* labeled with the view you are NOT in is the control everyone misreads — and a
|
|
3359
3359
|
* pressed pair says which one is live without the reader having to work it out.
|
|
3360
3360
|
*/}
|
|
3361
3361
|
{/* A `<fieldset>`, matching `OrderPills` next to it — a group of related controls
|
|
@@ -3375,7 +3375,7 @@ export function MediaGallery({
|
|
|
3375
3375
|
<Tooltip content={option.hint} key={option.mode}>
|
|
3376
3376
|
<button
|
|
3377
3377
|
// guardrails-ignore no-raw-action-button: header pill styled by the dense
|
|
3378
|
-
// gallery's own plain CSS, matching its sort
|
|
3378
|
+
// gallery's own plain CSS, matching its sort neighbors.
|
|
3379
3379
|
type='button'
|
|
3380
3380
|
className={cn(RAW_BUTTON, `cbgd-order-btn is-icon${viewMode === option.mode ? ' is-active' : ''}`)}
|
|
3381
3381
|
aria-pressed={viewMode === option.mode}
|
|
@@ -3414,7 +3414,7 @@ export function MediaGallery({
|
|
|
3414
3414
|
>
|
|
3415
3415
|
<button
|
|
3416
3416
|
// guardrails-ignore no-raw-action-button: header pill styled by the dense
|
|
3417
|
-
// gallery's own plain CSS, matching its sort
|
|
3417
|
+
// gallery's own plain CSS, matching its sort neighbors.
|
|
3418
3418
|
type='button'
|
|
3419
3419
|
className={cn(RAW_BUTTON, `cbgd-order-btn is-icon${thumbAutoplay ? ' is-active' : ''}`)}
|
|
3420
3420
|
aria-pressed={thumbAutoplay}
|
|
@@ -196,7 +196,7 @@ export function MediaMetaEditor({
|
|
|
196
196
|
</p>
|
|
197
197
|
<p>
|
|
198
198
|
Tags each item already has are left alone, and a tag that differs only in
|
|
199
|
-
|
|
199
|
+
capitalization from one it already has is not added twice.
|
|
200
200
|
</p>
|
|
201
201
|
<p>
|
|
202
202
|
There is no description field here on purpose: one sentence cannot describe
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* through a forty-file album into forty Back presses to escape it — the browser's Back stops
|
|
35
35
|
* being "close this" and becomes "the previous photograph". Always-replace means opening a
|
|
36
36
|
* file is invisible to history, so Back from the first file you opened leaves the app
|
|
37
|
-
* entirely, which is the
|
|
37
|
+
* entirely, which is the behavior people describe as "Back closed my tab".
|
|
38
38
|
*
|
|
39
39
|
* Pushing only on the null → id transition gives Back exactly one meaning — *put me back on
|
|
40
40
|
* the grid I opened this from* — no matter how far you stepped after that.
|
|
@@ -45,7 +45,7 @@ import { useDeepLink } from '../deep-link/index.js';
|
|
|
45
45
|
/**
|
|
46
46
|
* The query key that carries the open file. A single letter because it rides in every link
|
|
47
47
|
* the owner copies, and one convention across the fleet so a reader (and a future
|
|
48
|
-
* `docs-check` rule) can
|
|
48
|
+
* `docs-check` rule) can recognize one.
|
|
49
49
|
*/
|
|
50
50
|
export const GALLERY_ITEM_PARAM = 'i';
|
|
51
51
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `useItemMedia`'s cancellation (task 107/461): a resolve is aborted when every mount waiting on
|
|
3
3
|
* it is gone, NOT while another still waits, and an abandoned entry is evicted so a remount asks
|
|
4
|
-
* again instead of inheriting the abort — the scrolled-past tile that would otherwise be
|
|
4
|
+
* again instead of inheriting the abort — the scrolled-past tile that would otherwise be gray
|
|
5
5
|
* forever.
|
|
6
6
|
*/
|
|
7
7
|
import { afterEach, describe, expect, test } from 'bun:test';
|
|
@@ -80,7 +80,7 @@ function startResolve(
|
|
|
80
80
|
* would abort all of those.
|
|
81
81
|
* · **An abandoned entry is EVICTED in the same step.** Otherwise the cache keeps a promise
|
|
82
82
|
* that rejects with an abort, the next mount inherits it, and a tile the viewer scrolled past
|
|
83
|
-
* is a
|
|
83
|
+
* is a gray box forever when he scrolls back. An abort is also never turned into "no bytes"
|
|
84
84
|
* for a mount still on screen — if one ever sees its entry's signal aborted, it re-asks.
|
|
85
85
|
*/
|
|
86
86
|
export function useItemMedia(
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* tile that is already even partly visible is left alone — a grid that jumps a few pixels
|
|
30
30
|
* under a tile you can see reads as a bug (the same limit the strip's reveal keeps).
|
|
31
31
|
* A virtualized tile that is not mounted is found by arithmetic on the tiles that are:
|
|
32
|
-
* their row pitch and column count place it, and the next frame
|
|
32
|
+
* their row pitch and column count place it, and the next frame centers it exactly.
|
|
33
33
|
*/
|
|
34
34
|
import { type RefObject, useEffect, useLayoutEffect, useRef } from 'react';
|
|
35
35
|
|
|
@@ -218,7 +218,7 @@ function centreDelta(box: DOMRect, band: Band): number {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
* A `scrollTop` that
|
|
221
|
+
* A `scrollTop` that centers the tile at `index`, derived from the mounted ones: the first
|
|
222
222
|
* mounted row gives the column count (only the LAST row of a grid can be short), and the next
|
|
223
223
|
* row down gives the pitch. A table is the same arithmetic with one column.
|
|
224
224
|
*/
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
/* ── A TURNED clip (`MediaGalleryItem.orientation` on a video). The owner, 2026-08-14:
|
|
140
140
|
*"a video showing in portrait mode that is actually supposed to be widescreen to fill all
|
|
141
141
|
the space correctly."* A phone films a clip sideways and stamps a rotation nothing but the
|
|
142
|
-
phone
|
|
142
|
+
phone honors, so the widescreen footage arrives standing on end.
|
|
143
143
|
|
|
144
144
|
🔴 The wrapper is `display: contents` when nothing is turned, so the ordinary case adds no
|
|
145
145
|
box, no layer and no layout change whatsoever — the stage below it is the same element tree
|
|
@@ -210,15 +210,15 @@
|
|
|
210
210
|
object-fit: contain;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
/* 🔴 …and it has to be turned about the PANEL's
|
|
213
|
+
/* 🔴 …and it has to be turned about the PANEL's center, which means it has to sit at it first.
|
|
214
214
|
A rotation pivots on the element's own middle, so an element the player has left against the
|
|
215
215
|
left edge of its provider box lands a quarter of the panel off to one side — measured in
|
|
216
216
|
Chromium on 2026-09-16: a correctly sized 505×284 of film, painted at x=278 in a panel
|
|
217
217
|
starting at x=388, i.e. 110px of it outside the frame and a black band the same width down
|
|
218
|
-
the other edge. The wrapper above
|
|
218
|
+
the other edge. The wrapper above centers what IS its child; on the Vidstack path the child
|
|
219
219
|
is the player, and the element being turned is two boxes further in. Same reach as
|
|
220
220
|
`.vds-poster` / `.vds-controls` elsewhere in this file, and inert on the native stage, whose
|
|
221
|
-
`<video>` is already the wrapper's own flex-
|
|
221
|
+
`<video>` is already the wrapper's own flex-centered child. */
|
|
222
222
|
.cbmg-stage-turn[data-turned='true'] [data-media-provider] {
|
|
223
223
|
display: flex;
|
|
224
224
|
align-items: center;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/* Inside the turned frame the stage element must stop claiming its own 70vh, or the flex
|
|
229
|
-
|
|
229
|
+
centering above has nothing left to center. */
|
|
230
230
|
.cbmg-stage-turn[data-turned='true'] .cbmg-stage-video,
|
|
231
231
|
.cbmg-stage-turn[data-turned='true'] [data-testid='video-player'] {
|
|
232
232
|
height: auto;
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
justify-content: center;
|
|
241
241
|
gap: 12px;
|
|
242
242
|
padding: 40px 20px;
|
|
243
|
-
/* An audio track and an
|
|
243
|
+
/* An audio track and an unrecognized binary are stages like any other: they fill
|
|
244
244
|
the frame rather than being ~200px of padding, which is what made stepping from
|
|
245
245
|
a photograph to a voice memo jump every control up the screen. */
|
|
246
246
|
width: 100%;
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
/* ── A stored orientation is a TRANSFORM, so the picture is still laid out in its original box.
|
|
631
|
-
A portrait scan turned upright is laid out landscape and overflows the frame it is
|
|
631
|
+
A portrait scan turned upright is laid out landscape and overflows the frame it is centered
|
|
632
632
|
in, so each surface needs its own fit correction. `data-turned` is set only for the ODD
|
|
633
633
|
quarter turns — a half turn does not change the box and pays for none of this. */
|
|
634
634
|
|
|
@@ -860,11 +860,11 @@
|
|
|
860
860
|
/*
|
|
861
861
|
* The play mark on a video row's thumbnail — present only while it is NOT previewing, so the
|
|
862
862
|
* moving picture is never covered by a glyph saying the same thing it is already showing.
|
|
863
|
-
* Same
|
|
863
|
+
* Same judgment as the grid tile's badge; `GalleryTable.tsx` carries the reasoning.
|
|
864
864
|
*/
|
|
865
865
|
.cbgt-play {
|
|
866
866
|
position: absolute;
|
|
867
|
-
/*
|
|
867
|
+
/* Centered on the 56×40 thumbnail, which is inset inside a 44px-tall flex button — so the
|
|
868
868
|
mark is placed against the PICTURE's box rather than the cell's. */
|
|
869
869
|
top: 50%;
|
|
870
870
|
left: 28px;
|
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
* ellipsis because the SAME class captions every tile in the grid, so a sentence appended
|
|
1031
1031
|
* there is a sentence nobody can read past its first few words. These two rules are what let
|
|
1032
1032
|
* the titlebar's own wrapping flex row carry a second, wrapping line — the facts keep the
|
|
1033
|
-
* nowrap
|
|
1033
|
+
* nowrap behavior they have always had, and the description is a block beneath them.
|
|
1034
1034
|
*
|
|
1035
1035
|
* The width cap is readability, not decoration: `DESIGN.md` §4 asks for a measure, and a
|
|
1036
1036
|
* description running the full width of a 1680px stage is one line of 200 characters.
|
|
@@ -239,7 +239,7 @@ export function isMarkdownFile(item: MediaGalleryItem): boolean {
|
|
|
239
239
|
* reasoning in `MediaGallery`'s scroll effect and it stays. A video or a track has ALREADY
|
|
240
240
|
* STARTED by the time the animation runs, so the glide is several hundred milliseconds of
|
|
241
241
|
* something you can hear and cannot see. There is no place to lose; the thing you are
|
|
242
|
-
*
|
|
242
|
+
* traveling to is the thing already happening.
|
|
243
243
|
*/
|
|
244
244
|
export function snapsToStage(item: MediaGalleryItem | null | undefined): boolean {
|
|
245
245
|
if (!item) return false;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ── 🔴 One choice, not a row of toggles ────────────────────────────────────────────────
|
|
5
5
|
* "Repeat" and "play the next one" look like independent switches and are not: a media
|
|
6
6
|
* element with `loop` set never fires `ended`, so a player given both repeats forever and
|
|
7
|
-
* silently never advances.
|
|
7
|
+
* silently never advances. Modeling them as booleans therefore has an unreachable state
|
|
8
8
|
* that a UI would still happily let someone select, and the failure is invisible — the video
|
|
9
9
|
* just loops and the "auto-advance" switch appears to do nothing.
|
|
10
10
|
*
|
|
@@ -129,7 +129,7 @@ const DWELL_KEY = 'cbmg:image-dwell';
|
|
|
129
129
|
* 🔴 It applies to every non-time-based item, not only to pictures — a PDF or a text file in
|
|
130
130
|
* a mixed folder has no `ended` event either, so without this a slideshow would reach one and
|
|
131
131
|
* stop dead. That is the owner's *"some media galleries are showing video and images"* case
|
|
132
|
-
*
|
|
132
|
+
* generalized to what the fleet's galleries actually hold, which is any binary at all.
|
|
133
133
|
*
|
|
134
134
|
* A stored value outside the ladder is clamped rather than rejected: the number is a duration,
|
|
135
135
|
* not an enum, and an app is free to write its own.
|
|
@@ -282,7 +282,7 @@ export function writeViewMode(mode: GalleryViewMode): void {
|
|
|
282
282
|
* | he refreshes | muted again |
|
|
283
283
|
*
|
|
284
284
|
* ── 🔴 It is kept IN MEMORY. Not `localStorage`, and not `sessionStorage` either ────────
|
|
285
|
-
* The
|
|
285
|
+
* The neighbors above are `localStorage` because they are ways of WORKING — how a folder
|
|
286
286
|
* plays through, how a stage is pinned — and a way of working survives a reload. Loudness is
|
|
287
287
|
* not: *"except if I refresh … continue starting it at mute"* is a request for this to be
|
|
288
288
|
* FORGOTTEN, so the only correct store is one that cannot outlive the page.
|
|
@@ -183,7 +183,7 @@ describe('the Prev/Next BUTTONS wrap — tsk_01KZZY085DFN8GW0RQJ8S7MYRS', () =>
|
|
|
183
183
|
expect(stepId(IDS, 'gone', -1)).toBe('a');
|
|
184
184
|
});
|
|
185
185
|
|
|
186
|
-
test('one item is its own
|
|
186
|
+
test('one item is its own neighbor in both directions', () => {
|
|
187
187
|
expect(stepId(['a'], 'a', 1)).toBe('a');
|
|
188
188
|
expect(stepId(['a'], 'a', -1)).toBe('a');
|
|
189
189
|
});
|
|
@@ -107,7 +107,7 @@ export function nextInRun({
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* The
|
|
110
|
+
* The neighbor a Prev/Next BUTTON goes to — which always wraps, whatever the run setting is.
|
|
111
111
|
*
|
|
112
112
|
* 🔴 This is `tsk_01KZZY085DFN8GW0RQJ8S7MYRS`, and it is deliberately not the same rule as
|
|
113
113
|
* {@link nextInRun}. Owner, 2026-08-14: *"either button always goes to another image even on
|