cursedbelt 5.86.0 โ 5.87.1
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/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/engagement/beacon.d.ts +8 -1
- package/dist/react/engagement/beacon.d.ts.map +1 -1
- package/dist/react/engagement/beacon.js +22 -7
- package/dist/react/engagement/beacon.js.map +1 -1
- package/dist/react/engagement/beaconClient.d.ts +27 -0
- package/dist/react/engagement/beaconClient.d.ts.map +1 -1
- package/dist/react/engagement/beaconClient.js +45 -0
- package/dist/react/engagement/beaconClient.js.map +1 -1
- package/dist/react/engagement/index.d.ts +2 -2
- package/dist/react/engagement/index.d.ts.map +1 -1
- package/dist/react/engagement/index.js +3 -3
- package/dist/react/engagement/index.js.map +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 +9 -9
- package/dist/react/icons.d.ts.map +1 -1
- package/dist/react/icons.js +10 -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/appleWalk.d.ts +7 -0
- package/dist/testing/appleWalk.d.ts.map +1 -1
- package/dist/testing/appleWalk.js +19 -1
- package/dist/testing/appleWalk.js.map +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.tsx +1 -1
- 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/engagement/beacon.spec.tsx +62 -0
- package/src/react/engagement/beacon.tsx +32 -7
- package/src/react/engagement/beaconClient.spec.ts +44 -1
- package/src/react/engagement/beaconClient.ts +50 -0
- package/src/react/engagement/index.ts +4 -2
- 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 +11 -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 +9 -9
- 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/appleWalk.ts +17 -1
- 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
|
@@ -51,14 +51,14 @@ export const FLOATING_CONTENT_BASE =
|
|
|
51
51
|
* Base row for a selectable/actionable item inside a floating panel.
|
|
52
52
|
*
|
|
53
53
|
* It does NOT take the press dip (`lib/press.ts`) on purpose: a full-width row in a scrolling
|
|
54
|
-
* list that scales pulls its edges in from its
|
|
54
|
+
* list that scales pulls its edges in from its neighbors and reads as the list wobbling; the
|
|
55
55
|
* highlight already answers, and the menu closes on the press (forge task 2912).
|
|
56
56
|
*/
|
|
57
57
|
export const FLOATING_ITEM_BASE =
|
|
58
58
|
'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none ' +
|
|
59
59
|
// DESIGN.md ยง5's 44px floor, on coarse pointers only so the dense desktop menu
|
|
60
60
|
// keeps its rhythm. A 32px menu row is a miss on a phone, and a menu is exactly
|
|
61
|
-
// where a mis-tap costs the most: the
|
|
61
|
+
// where a mis-tap costs the most: the neighboring row is a different action.
|
|
62
62
|
`${TAP_TARGET_HEIGHT} ` +
|
|
63
63
|
'data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ' +
|
|
64
64
|
'focus:bg-accent/10 focus:text-accent';
|
|
@@ -22,13 +22,13 @@ import { createContext, createElement, type ReactNode, useContext } from 'react'
|
|
|
22
22
|
* 120ms: a tooltip is not a thing you go and read, it is a thing you needed
|
|
23
23
|
* ONCE. After that first read it is pure occlusion โ it paints over the control
|
|
24
24
|
* next to the one you are aiming at, on a toolbar where the controls are 32px
|
|
25
|
-
* apart.
|
|
25
|
+
* apart. Optimizing its open time for the first minute of a user's life costs
|
|
26
26
|
* them every minute after it.
|
|
27
27
|
*
|
|
28
28
|
* So the delay is deliberately long enough that a pointer merely CROSSING a
|
|
29
|
-
* control never reaches it. A cursor
|
|
30
|
-
*
|
|
31
|
-
* they do not
|
|
29
|
+
* control never reaches it. A cursor traveling to a target passes over its
|
|
30
|
+
* neighbors in well under 100ms; a person who has actually stopped, because
|
|
31
|
+
* they do not recognize an icon, rests for far longer than half a second before
|
|
32
32
|
* they start wondering. 500ms sits in the gap and is the same number the native
|
|
33
33
|
* `title` tooltip trained everyone on for thirty years.
|
|
34
34
|
*
|
|
@@ -51,7 +51,7 @@ export const HOVER_HINT_DELAY_MS = 500;
|
|
|
51
51
|
* A gesture that IS the request โ a tap or click on a disclosure control whose
|
|
52
52
|
* only job is to reveal the hint. Named rather than written as a bare `0` so
|
|
53
53
|
* that reading `delayDuration={HOVER_HINT_INSTANT_MS}` says *why* it is instant,
|
|
54
|
-
* and so `no-fast-tooltip` has an allowed spelling to
|
|
54
|
+
* and so `no-fast-tooltip` has an allowed spelling to recognize instead of every
|
|
55
55
|
* touch branch needing an opt-out comment.
|
|
56
56
|
*/
|
|
57
57
|
export const HOVER_HINT_INSTANT_MS = 0;
|
|
@@ -65,7 +65,7 @@ const HoverHintDelayContext = createContext<number | null>(null);
|
|
|
65
65
|
* desk carries a "Tooltip delay" setting the owner asked for by name (*"slowing down
|
|
66
66
|
* tooltip times later when I know what most things do, or speeding them up to learn the
|
|
67
67
|
* icons myself"*). That is the same owner and the same rule as above, pointed the other
|
|
68
|
-
* way: a delay the person at the keyboard
|
|
68
|
+
* way: a delay the person at the keyboard dialed in is a deliberate REQUEST, not a
|
|
69
69
|
* default somebody re-tuned. So the value arrives from a setting at runtime, and
|
|
70
70
|
* `no-fast-tooltip` still refuses any literal below the floor written in code.
|
|
71
71
|
*
|
|
@@ -27,7 +27,7 @@ export interface InfoHintImplProps extends InfoHintProps {
|
|
|
27
27
|
* and the swap between them moves nothing. โฅ44px touch target on coarse pointers (the same
|
|
28
28
|
* `TAP_TARGET` floor Button/IconButton carry โ a bare `size-4` glyph measured 16ร16px, cc/197).
|
|
29
29
|
* `border-0 bg-transparent p-0 font-[inherit]`: it is a raw `<button>`, and a host without
|
|
30
|
-
* Tailwind's preflight (desk) drew the browser's own chrome around the glyph โ a
|
|
30
|
+
* Tailwind's preflight (desk) drew the browser's own chrome around the glyph โ a gray filled
|
|
31
31
|
* 44px box on a phone, a bordered one on a desktop (forge task 2752, PlaceBar's More had the
|
|
32
32
|
* same fix in 2748). The ring is the focus mark that chrome used to be. */
|
|
33
33
|
export const INFO_HINT_TRIGGER = `inline-flex items-center justify-center rounded-sm border-0 bg-transparent p-0 font-[inherit] text-muted-foreground hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${TAP_TARGET}`;
|
|
@@ -33,7 +33,7 @@ const CLOSED_PASSTHROUGH = 'data-[state=closed]:pointer-events-none!';
|
|
|
33
33
|
|
|
34
34
|
/** A tooltip: the fast speed, a fade and a 4px rise from its trigger's side. Only a DELAYED
|
|
35
35
|
* open animates โ moving between triggers inside the skip-delay window (`instant-open`) swaps
|
|
36
|
-
* the bubble in place, the way Linear's do, instead of re-fading it on every
|
|
36
|
+
* the bubble in place, the way Linear's do, instead of re-fading it on every neighbor. */
|
|
37
37
|
export const TOOLTIP_MOTION =
|
|
38
38
|
'duration-[var(--duration-fast)] ease-[var(--ease-out)] motion-reduce:duration-0 ' +
|
|
39
39
|
'data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-[0.985] ' +
|
package/src/react/lib/press.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The press contract, written once (forge task 2912): every pressable surface answers a finger.
|
|
3
3
|
*
|
|
4
|
-
* While held, a control dips to `--press-scale` and eases its
|
|
4
|
+
* While held, a control dips to `--press-scale` and eases its colors AND that dip over
|
|
5
5
|
* `--duration-fast` on `--ease-out` โ the way Linear's and Obsidian's controls do, and the brief's
|
|
6
6
|
* `.tactile` class (`owner-drafting-area/linear-art.md/app.css`) as a token instead of a class. A
|
|
7
7
|
* control that changes nothing under the finger reads as dead on a phone.
|
|
@@ -80,12 +80,12 @@ export function selectTriggerClass({
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/** The value's text wrapper. One line, ellipsized, left-aligned: a long value (a deep path) used to
|
|
83
|
-
* wrap to three
|
|
83
|
+
* wrap to three centered lines and spill out of a 36px trigger at 390px (Radix Themes' Select
|
|
84
84
|
* truncates the same way, forge task 2594). Radix's Value drops `className`, so the truncation
|
|
85
85
|
* lives on a wrapper. */
|
|
86
86
|
export const SELECT_VALUE_CLASS = 'block min-w-0 flex-1 truncate text-left';
|
|
87
87
|
|
|
88
|
-
/** `groups` when given, else `options` as one
|
|
88
|
+
/** `groups` when given, else `options` as one unlabeled group. */
|
|
89
89
|
export function selectGroupsOf({ options = [], groups = [] }: Pick<SelectFieldProps, 'options' | 'groups'>): SelectGroup[] {
|
|
90
90
|
return groups.length > 0 ? groups : options.length > 0 ? [{ options }] : [];
|
|
91
91
|
}
|
|
@@ -20,7 +20,7 @@ import type { z } from 'zod';
|
|
|
20
20
|
* `validateFieldsNatively` (MIT, ยฉ 2019-present Beier (Bill) Luo), reduced to the one schema
|
|
21
21
|
* library this package peers on (`zod ^4.4.0`) and the one call shape {@link makeFormConfig}
|
|
22
22
|
* makes. `react-hook-form` is already a dependency, and supplies `get`, `set` and
|
|
23
|
-
* `appendErrors`. `zodResolver.spec.ts` pins the
|
|
23
|
+
* `appendErrors`. `zodResolver.spec.ts` pins the behaviors that matter: nested paths, the
|
|
24
24
|
* closest union branch, `criteriaMode: 'all'`, a field-array root error, and parsed output.
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -27,7 +27,7 @@ export interface AppearanceMenuProps
|
|
|
27
27
|
* instead (family, vault).
|
|
28
28
|
*
|
|
29
29
|
* Why a panel and not a second toggle: a look is a choice among four, and the scheme a choice
|
|
30
|
-
* among three, and Linear (Preferences โ Interface theme) and Obsidian (Appearance โ Base
|
|
30
|
+
* among three, and Linear (Preferences โ Interface theme) and Obsidian (Appearance โ Base color
|
|
31
31
|
* scheme + Themes) both answer them together in one place. One press more to flip dark mode buys
|
|
32
32
|
* the reader every look without a Settings page (forge task 2916).
|
|
33
33
|
*
|
|
@@ -26,14 +26,14 @@ export interface LookPickerProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* Pick the app's look: one card per look, each a small picture of itself drawn with that look's
|
|
28
28
|
* OWN tokens (the card wears the `cb-<look>` scope, so what it shows is what you get, in the
|
|
29
|
-
*
|
|
30
|
-
* `ThemeToggle` does the
|
|
29
|
+
* color scheme the page is in right now). Reads and writes the shared look store itself, like
|
|
30
|
+
* `ThemeToggle` does the color scheme, so dropping it into Settings is the whole integration.
|
|
31
31
|
*
|
|
32
32
|
* Linear's Preferences โ Theme and Obsidian's Appearance both draw their themes as swatch cards,
|
|
33
33
|
* which is why this is cards and not a select (REV-5). Radix `RadioGroup`: each card IS the
|
|
34
34
|
* focusable element (roving tabindex, arrow keys), nothing hidden is drawn anywhere else โ the
|
|
35
35
|
* same reason `ChoiceGroup` is built on it. The checked card is marked by its accent edge AND a
|
|
36
|
-
* check mark, never by
|
|
36
|
+
* check mark, never by color alone.
|
|
37
37
|
*/
|
|
38
38
|
export function LookPicker({
|
|
39
39
|
looks: offered,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A look is one of the `cb-<id>` scopes the stylesheets define: `cb-aurora` in `theme.css`, and
|
|
5
5
|
* `cb-obsidian`, `cb-nord` and `cb-dracula` in `looks.css`. Every look re-binds the SAME semantic
|
|
6
6
|
* surface tokens (`--background`, `--card`, `--border`, the shadows, the glass, the field aliases),
|
|
7
|
-
* so a component never knows which look it is in โ and light/dark stays the
|
|
7
|
+
* so a component never knows which look it is in โ and light/dark stays the color-scheme store's
|
|
8
8
|
* business: `.dark` sits beside the look class on `<html>`, and each look declares both schemes.
|
|
9
9
|
*
|
|
10
10
|
* This holds the chosen look, persists it under {@link LOOK_STORAGE_KEY}, applies it as exactly ONE
|
|
@@ -30,10 +30,10 @@ export interface Look {
|
|
|
30
30
|
|
|
31
31
|
/** Every look the stylesheets ship, in the order a picker offers them. `looks.spec.ts` holds the CSS to this list. */
|
|
32
32
|
export const LOOKS: readonly Look[] = [
|
|
33
|
-
{ id: 'obsidian', label: 'Obsidian', description: 'Monochrome and quiet.
|
|
33
|
+
{ id: 'obsidian', label: 'Obsidian', description: 'Monochrome and quiet. Color only where it means something.' },
|
|
34
34
|
{ id: 'aurora', label: 'Aurora', description: 'Glass panels over a field of ambient light.' },
|
|
35
|
-
{ id: 'nord', label: 'Nord', description: 'Cool blue-
|
|
36
|
-
{ id: 'dracula', label: 'Dracula', description: 'Deep violet-
|
|
35
|
+
{ id: 'nord', label: 'Nord', description: 'Cool blue-gray, soft on the eyes.' },
|
|
36
|
+
{ id: 'dracula', label: 'Dracula', description: 'Deep violet-gray with warm text.' },
|
|
37
37
|
];
|
|
38
38
|
|
|
39
39
|
export const LOOK_STORAGE_KEY = 'cwip.look';
|
|
@@ -44,7 +44,7 @@ describe('MarkdownDoc', () => {
|
|
|
44
44
|
|
|
45
45
|
test('javascript: and unknown-scheme links are neutralized to plain text', () => {
|
|
46
46
|
const { container } = render(
|
|
47
|
-
<MarkdownDoc markdown={'[bad](javascript:alert(1)) and [weird](vbscript:x) and [ok](docs/x.md)'} />, // check-doc-citations:ignore markdown fixture for the link
|
|
47
|
+
<MarkdownDoc markdown={'[bad](javascript:alert(1)) and [weird](vbscript:x) and [ok](docs/x.md)'} />, // check-doc-citations:ignore markdown fixture for the link sanitizer
|
|
48
48
|
);
|
|
49
49
|
const anchors = Array.from(container.querySelectorAll('a'));
|
|
50
50
|
expect(anchors).toHaveLength(1);
|
|
@@ -240,7 +240,7 @@ export function MasterDetail({
|
|
|
240
240
|
{selectedId ? (
|
|
241
241
|
<div className="min-h-full">{detail}</div>
|
|
242
242
|
) : (
|
|
243
|
-
//
|
|
243
|
+
// Centered in the pane, as Linear's empty detail is: at the top it read as a
|
|
244
244
|
// stray caption over a blank pane (forge task 2594).
|
|
245
245
|
<div className="flex min-h-full items-center justify-center p-6">
|
|
246
246
|
{emptyDetail ?? (
|
|
@@ -82,7 +82,7 @@ export function MasterLockDialog({
|
|
|
82
82
|
if (!res.ok || typeof body?.idleMs !== "number") throw new Error("refused");
|
|
83
83
|
onIdleSaved(body.idleMs);
|
|
84
84
|
// Echo the SERVER's number, not the typed one: it clamps, and a field that keeps
|
|
85
|
-
// showing an out-of-range value the app is not
|
|
85
|
+
// showing an out-of-range value the app is not honoring is a lie.
|
|
86
86
|
setMinutes(Math.max(MIN_MINUTES, Math.round(body.idleMs / 60_000)));
|
|
87
87
|
setNote({ text: "Timeout saved for this app.", tone: "ok" });
|
|
88
88
|
} catch {
|
|
@@ -121,7 +121,7 @@ export function MasterLockDialog({
|
|
|
121
121
|
* at once โ rotating account 2 would silently lock him out of account 1.
|
|
122
122
|
*
|
|
123
123
|
* `cursedbelt-server`'s guard refuses the old shape with `409 {"error":"stale-client"}`
|
|
124
|
-
* rather than
|
|
124
|
+
* rather than honoring it, so this dialog did not corrupt anything; it simply
|
|
125
125
|
* stopped working, and the owner could not change his master password from inside
|
|
126
126
|
* any app. The salt never rotating is the accepted cost โ it is 16 random bytes
|
|
127
127
|
* whose job is to stop precomputation across apps, and it does that for as long as
|
|
@@ -95,7 +95,7 @@ describe("the idle watcher", () => {
|
|
|
95
95
|
* shape from before accounts existed. Every account on an app now derives under one shared
|
|
96
96
|
* descriptor, so a fresh salt stores a verifier hash nothing can ever match: the owner sets a
|
|
97
97
|
* new password, the rotation logs him out, and neither the old nor the new one opens the app.
|
|
98
|
-
* `cursedbelt-server`'s guard answers that shape `409 stale-client` rather than
|
|
98
|
+
* `cursedbelt-server`'s guard answers that shape `409 stale-client` rather than honoring it,
|
|
99
99
|
* so the dialog did not corrupt anything โ it simply refused, and the owner could not change
|
|
100
100
|
* his master password from inside any app for as long as it shipped.
|
|
101
101
|
*
|
|
@@ -232,7 +232,7 @@ export interface MasterLockMenuItemsProps {
|
|
|
232
232
|
/** Dismiss the menu these sit in. `AccountMenu` hands it to its `children` render prop. */
|
|
233
233
|
close?: () => void;
|
|
234
234
|
/**
|
|
235
|
-
* The HOST menu's own item class, so the entries look like their
|
|
235
|
+
* The HOST menu's own item class, so the entries look like their neighbors โ
|
|
236
236
|
* `"sam-item"` for `satellite-kit`'s `AccountMenu`.
|
|
237
237
|
*/
|
|
238
238
|
itemClassName?: string;
|
|
@@ -49,7 +49,7 @@ export interface GalleryActionButtonProps
|
|
|
49
49
|
/** Hover/focus explanation. A pill with a non-obvious effect should always carry one. */
|
|
50
50
|
tooltip?: ReactNode;
|
|
51
51
|
/**
|
|
52
|
-
* Draw `children` as a bare glyph in a square pill instead of a
|
|
52
|
+
* Draw `children` as a bare glyph in a square pill instead of a labeled one โ the shape
|
|
53
53
|
* the whole gallery toolbar uses since 2026-09-16 (owner: *"Make it have icons only,
|
|
54
54
|
* instead of words in the strip of tools"*).
|
|
55
55
|
*
|
|
@@ -222,7 +222,7 @@ export interface DenseGalleryShellProps<O extends string = string> {
|
|
|
222
222
|
*
|
|
223
223
|
* A slot rather than a `viewMode` prop because the shell has no business knowing what the
|
|
224
224
|
* alternative view IS. It owns the chrome; whoever passes `body` owns the rows. `empty`,
|
|
225
|
-
* `loading` and `onNearEnd` become that caller's to
|
|
225
|
+
* `loading` and `onNearEnd` become that caller's to honor, which is the honest split:
|
|
226
226
|
* a table paginates and measures differently from a virtualized grid of tiles.
|
|
227
227
|
*/
|
|
228
228
|
body?: ReactNode;
|
|
@@ -359,7 +359,7 @@ export interface DenseGalleryDetailProps {
|
|
|
359
359
|
actions?: ReactNode;
|
|
360
360
|
/**
|
|
361
361
|
* Step to the previous/next item. Given, the stage draws overlay arrows on its left
|
|
362
|
-
* and right edges โ vertically
|
|
362
|
+
* and right edges โ vertically centered on a frame whose height never changes, so
|
|
363
363
|
* "next, look, next, look" is one pointer position for the whole set.
|
|
364
364
|
*
|
|
365
365
|
* Owner report, 2026-08-23: *"It stops me from being able to press next button
|
|
@@ -521,7 +521,7 @@ export function FocusViewer({
|
|
|
521
521
|
setNote(`GIF downloaded โ ${weight}.`);
|
|
522
522
|
}
|
|
523
523
|
} catch (err) {
|
|
524
|
-
if (err instanceof DOMException && err.name === "AbortError") setNote("GIF
|
|
524
|
+
if (err instanceof DOMException && err.name === "AbortError") setNote("GIF canceled.");
|
|
525
525
|
else setError(err instanceof Error ? err.message : "The GIF could not be made.");
|
|
526
526
|
} finally {
|
|
527
527
|
if (gifAbort.current === abort) gifAbort.current = null;
|
|
@@ -753,7 +753,7 @@ export function FocusViewer({
|
|
|
753
753
|
* It used to sit in the `else` chain below, behind a guard that stood down for any
|
|
754
754
|
* focused button. This viewer's transport is made of buttons, so the shortcut was off
|
|
755
755
|
* exactly where the hand had just been: press a control, then press Space, and the
|
|
756
|
-
* control fires again instead of playback toggling.
|
|
756
|
+
* control fires again instead of playback toggling. Canceling the KEYDOWN is what
|
|
757
757
|
* stops that, because a button activates on the keyup.
|
|
758
758
|
*/
|
|
759
759
|
if (isPlayPauseSpace(event)) {
|
|
@@ -802,7 +802,7 @@ export function FocusViewer({
|
|
|
802
802
|
/*
|
|
803
803
|
* ๐ด The PICTURE takes the region's shape, which is what makes a fraction of what you see
|
|
804
804
|
* and a fraction of the region the same number โ see `stageAspectFor`. Without it a
|
|
805
|
-
* marquee over the
|
|
805
|
+
* marquee over the center of a letterboxed picture resolves to a region off to one side.
|
|
806
806
|
*
|
|
807
807
|
* 16/9 until the video reports its decoded size: a shape has to be chosen for the first
|
|
808
808
|
* paint, and this one is corrected on `loadedmetadata` a moment later.
|
|
@@ -77,7 +77,7 @@ describe('๐ด FrameGrabber โ Space toggles the clip you are scrubbing', () =>
|
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
test('๐ด โฆand it still toggles while one of the dialogโs own buttons has focus', () => {
|
|
80
|
-
// The state the hand is actually in: Cancel,
|
|
80
|
+
// The state the hand is actually in: Cancel, Center it, a crop pill or the segment was the
|
|
81
81
|
// last thing pressed, and the browser would otherwise activate it on the Space KEYUP. That
|
|
82
82
|
// inversion is the whole point of `playerSpaceKey` โ see its header.
|
|
83
83
|
open();
|
|
@@ -128,7 +128,7 @@ describe('๐ด FrameGrabber โ Space toggles the clip you are scrubbing', () =>
|
|
|
128
128
|
|
|
129
129
|
test('๐ด the rule is IMPORTED from playerSpaceKey, not re-implemented here', () => {
|
|
130
130
|
// The three previous copies of this rule disagreed in the one case the owner hits, which is
|
|
131
|
-
// why `playerSpaceKey.ts` exists. A
|
|
131
|
+
// why `playerSpaceKey.ts` exists. A behavioral test cannot tell a fourth copy that happens
|
|
132
132
|
// to agree today from the shared rule; this can.
|
|
133
133
|
const source = readFileSync(resolve(import.meta.dir, 'FrameGrabber.tsx'), 'utf8');
|
|
134
134
|
expect(source).toInclude("from './playerSpaceKey.js'");
|
|
@@ -634,7 +634,7 @@ export function FrameGrabber({
|
|
|
634
634
|
</label>
|
|
635
635
|
<button
|
|
636
636
|
// guardrails-ignore no-raw-action-button: toolbar pill styled by this module's
|
|
637
|
-
// own plain CSS, matching the gallery's `.cbgd-order-btn`
|
|
637
|
+
// own plain CSS, matching the gallery's `.cbgd-order-btn` neighbors.
|
|
638
638
|
type='button'
|
|
639
639
|
className={cn(RAW_BUTTON, 'cbpe-btn')}
|
|
640
640
|
// ๐ด Gated on `isFramed`, which counts the PAN as well as the zoom. The old
|
|
@@ -643,7 +643,7 @@ export function FrameGrabber({
|
|
|
643
643
|
disabled={!isFramed(framing)}
|
|
644
644
|
onClick={() => setFraming(DEFAULT_FRAMING)}
|
|
645
645
|
>
|
|
646
|
-
|
|
646
|
+
Center it
|
|
647
647
|
</button>
|
|
648
648
|
</div>
|
|
649
649
|
) : (
|
|
@@ -689,7 +689,7 @@ export function FrameGrabber({
|
|
|
689
689
|
[
|
|
690
690
|
['brightness', 'Brightness'],
|
|
691
691
|
['contrast', 'Contrast'],
|
|
692
|
-
['saturation', '
|
|
692
|
+
['saturation', 'Color'],
|
|
693
693
|
] as const
|
|
694
694
|
).map(([key, label]) => (
|
|
695
695
|
<label className='cbpe-slider' key={key}>
|
|
@@ -42,7 +42,7 @@ const SCRUB_STEP_MS = 900;
|
|
|
42
42
|
/** How long a finger rests on a tile before it counts as a hold rather than a tap. */
|
|
43
43
|
const TOUCH_HOLD_MS = 300;
|
|
44
44
|
/** How far a finger may wander during a hold before it is a scroll instead โ a resting thumb is
|
|
45
|
-
* never perfectly still, and a hold that any jitter
|
|
45
|
+
* never perfectly still, and a hold that any jitter canceled would read as one that never works. */
|
|
46
46
|
const TOUCH_HOLD_SLOP_PX = 10;
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -127,7 +127,7 @@ export interface HoverScrubVideoThumbProps {
|
|
|
127
127
|
* `PREVIEW_SETTLE_MS` (`previewGate.ts`), so a grid scrolled past fast never opens a stream
|
|
128
128
|
* per row. Without an `IntersectionObserver` the tile counts as visible.
|
|
129
129
|
*
|
|
130
|
-
* ๐ด
|
|
130
|
+
* ๐ด Honored on a TOUCH screen too. It was suppressed under a coarse pointer until
|
|
131
131
|
* 2026-10-10, so the "Preview all" button on a phone lit up and nothing moved โ owner, on an
|
|
132
132
|
* iPhone: *"The play icon above the player clicked but it did not make all the video
|
|
133
133
|
* thumbnails start playing like I thought it would."* A control the reader pressed is the
|
|
@@ -324,7 +324,7 @@ export function HoverScrubVideoThumb({
|
|
|
324
324
|
*
|
|
325
325
|
* Three things about this badge are deliberate:
|
|
326
326
|
*
|
|
327
|
-
* ยท **It is drawn OVER the poster,
|
|
327
|
+
* ยท **It is drawn OVER the poster, centered, in a filled disc** rather than as a
|
|
328
328
|
* tint on the tile. A shade reads as a state (selected, disabled, still
|
|
329
329
|
* uploading) and competes with the `optimizingโฆ` chip directly below it; a play
|
|
330
330
|
* triangle means one thing and means it at any tile size, in either theme, and
|
|
@@ -17,7 +17,7 @@ export interface MediaCellProps {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* One
|
|
20
|
+
* One catalog tile: the thumbnail, a play/audio badge + duration for time-based
|
|
21
21
|
* media, and hover edit/delete actions. The single render unit shared by the
|
|
22
22
|
* virtualized rows renderer AND react-photo-album's `render.photo`, so the grid looks
|
|
23
23
|
* identical regardless of layout driver.
|
|
@@ -132,7 +132,7 @@ describe('the gesture', () => {
|
|
|
132
132
|
|
|
133
133
|
describe('๐ด it is visible at rest โ the reported failure', () => {
|
|
134
134
|
test('the bar grip is not painted in --border', () => {
|
|
135
|
-
// The whole 2026-08-25 report. `--border` is the
|
|
135
|
+
// The whole 2026-08-25 report. `--border` is the color of a hairline nobody is meant to
|
|
136
136
|
// look at; the grip has to be findable without hovering the exact 22px it occupies.
|
|
137
137
|
const grip = ruleBody('.cbmr-bar-grip');
|
|
138
138
|
expect(grip).toContain('--muted-foreground');
|
|
@@ -141,7 +141,7 @@ describe('๐ด it is visible at rest โ the reported failure', () => {
|
|
|
141
141
|
|
|
142
142
|
test('the corner draws its glyph at rest, not on hover', () => {
|
|
143
143
|
// A rule that only sets `stroke` inside `:hover` is the invisible-affordance bug wearing
|
|
144
|
-
// a different
|
|
144
|
+
// a different color, so the at-rest rule must carry the ink itself.
|
|
145
145
|
expect(ruleBody('.cbmr-corner-glyph')).toContain('stroke:');
|
|
146
146
|
});
|
|
147
147
|
|
|
@@ -271,7 +271,7 @@ describe('๐ด every cb media player offers the gesture', () => {
|
|
|
271
271
|
const source = readFileSync(join(import.meta.dir, file), 'utf8');
|
|
272
272
|
expect(source).toContain('MediaResizeCorner');
|
|
273
273
|
expect(source).toContain('MediaResizeBar');
|
|
274
|
-
// From the shared hook, never a second hand-rolled copy of the pointer
|
|
274
|
+
// From the shared hook, never a second hand-rolled copy of the pointer math โ the
|
|
275
275
|
// drift this file exists to prevent.
|
|
276
276
|
expect(source).toContain('useMediaResize');
|
|
277
277
|
/*
|
|
@@ -290,7 +290,7 @@ describe('๐ด every cb media player offers the gesture', () => {
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
test('no player hand-rolls the resize
|
|
293
|
+
test('no player hand-rolls the resize math it could share', () => {
|
|
294
294
|
// Narrow on purpose: `FocusViewer` legitimately captures a pointer for its timeline
|
|
295
295
|
// scrub and its marquee. What must not come back is a second copy of the CLAMP, which
|
|
296
296
|
// is the piece that carries the "thumbnails stay visible" rule.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* to make it bigger. A gesture that exists on one of two players reads, from the app, as
|
|
15
15
|
* a gesture that does not exist.
|
|
16
16
|
* 2. **You could not see it.** The handle was a 4px bar in `--border` that only brightened
|
|
17
|
-
* on hover,
|
|
17
|
+
* on hover, centered under the frame. The ask said *"dragging the corner"*, and there was
|
|
18
18
|
* nothing in the corner. An affordance nobody finds has the same value as an absent one,
|
|
19
19
|
* which is why the fix is not "document the bar".
|
|
20
20
|
*
|
|
@@ -55,7 +55,7 @@ export interface MediaThumbProps {
|
|
|
55
55
|
format?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Stable hue (0โ360) for the drawn mark, so the same artist/owner/album keeps the same
|
|
58
|
-
*
|
|
58
|
+
* color and a wall of placeholders still reads as organized. Omit for neutral.
|
|
59
59
|
*/
|
|
60
60
|
hue?: number;
|
|
61
61
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Brightness / contrast /
|
|
2
|
+
* Brightness / contrast / color โ the ONE control, wherever a picture is shown.
|
|
3
3
|
*
|
|
4
4
|
* ๐ด cursedbelt's since 2026-08-20 (unit 15). It was already the one control for three
|
|
5
5
|
* surfaces INSIDE apps/collections; the lift makes it the one control for the fleet, which
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
const FIELDS = [
|
|
38
38
|
["brightness", "Brightness"],
|
|
39
39
|
["contrast", "Contrast"],
|
|
40
|
-
["saturation", "
|
|
40
|
+
["saturation", "Color"],
|
|
41
41
|
] as const;
|
|
42
42
|
|
|
43
43
|
export interface PictureControlsProps {
|
|
@@ -292,7 +292,7 @@ export function PictureEditor({
|
|
|
292
292
|
<Tooltip content={hint} key={label}>
|
|
293
293
|
<button
|
|
294
294
|
// guardrails-ignore no-raw-action-button: toolbar pill styled by this module's own
|
|
295
|
-
// plain CSS, matching the gallery's `.cbgd-order-btn`
|
|
295
|
+
// plain CSS, matching the gallery's `.cbgd-order-btn` neighbors.
|
|
296
296
|
type='button'
|
|
297
297
|
className={cn(RAW_BUTTON, 'cbpe-btn')}
|
|
298
298
|
onClick={onClick}
|
|
@@ -582,7 +582,7 @@ export function PictureEditor({
|
|
|
582
582
|
[
|
|
583
583
|
['brightness', 'Brightness'],
|
|
584
584
|
['contrast', 'Contrast'],
|
|
585
|
-
['saturation', '
|
|
585
|
+
['saturation', 'Color'],
|
|
586
586
|
] as const
|
|
587
587
|
).map(([key, label]) => (
|
|
588
588
|
<label className='cbpe-slider' key={key}>
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
* *"the buttons like back and forward and volume look tiny to me"*, and *"completely remove
|
|
25
25
|
* the opaque gray square containers around the back and forward arrows"*. There were no
|
|
26
26
|
* containers. The old strip drew its transport with the EMOJI characters โฎ โญ ๐ ๐, and the
|
|
27
|
-
* system emoji font renders those two as a
|
|
27
|
+
* system emoji font renders those two as a gray rounded square with black arrows inside it โ
|
|
28
28
|
* so the "container" was a glyph, at whatever size the font felt like, and no amount of CSS
|
|
29
29
|
* could have removed it. Every control here is a lucide vector at a uniform 2px stroke, so
|
|
30
|
-
* "
|
|
30
|
+
* "normalize vector stroke weights" and "delete the gray squares" are the same one change.
|
|
31
31
|
*
|
|
32
32
|
* โโ Hit targets โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
33
33
|
* `DESIGN.md` ยง5 requires 44ร44 and wins over the owner's own "at least 40x40" here, which
|
|
@@ -64,7 +64,7 @@ import { RAW_BUTTON } from '../lib/cn.js';
|
|
|
64
64
|
export type PlayerStripRepeat = "off" | "one" | "all";
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* One app-supplied control โ a
|
|
67
|
+
* One app-supplied control โ a favorite, a tag, a delete, a queue, a lyrics sheet.
|
|
68
68
|
*
|
|
69
69
|
* ๐ด The reason the strip takes these rather than hard-coding them: the owner's other
|
|
70
70
|
* report against this same bar is *"I want the bottom row โฆ to have clear icons to delete or
|
|
@@ -88,9 +88,9 @@ export interface PlayerStripAction {
|
|
|
88
88
|
* strip; one star that opens them does, at every width.
|
|
89
89
|
*/
|
|
90
90
|
popover?: React.ReactNode;
|
|
91
|
-
/** Drawn in the accent โ the "this track IS a
|
|
91
|
+
/** Drawn in the accent โ the "this track IS a favorite" state. */
|
|
92
92
|
active?: boolean;
|
|
93
|
-
/** Drawn in the destructive
|
|
93
|
+
/** Drawn in the destructive color on hover. For delete, and nothing else. */
|
|
94
94
|
danger?: boolean;
|
|
95
95
|
disabled?: boolean;
|
|
96
96
|
}
|
|
@@ -132,7 +132,7 @@ export interface PlayerStripProps {
|
|
|
132
132
|
* How many track actions stand as buttons; the rest go behind one `โฏ` menu (DAT-5). An
|
|
133
133
|
* action with a `popover` always stands, since a menu item cannot hold a panel. Default:
|
|
134
134
|
* all of them. Six 44px buttons beside the title left it four letters wide at 1440
|
|
135
|
-
* (music, forge task 2475) โ the metadata column is a fixed share of a strip whose
|
|
135
|
+
* (music, forge task 2475) โ the metadata column is a fixed share of a strip whose center
|
|
136
136
|
* is pinned to the window, so every standing button is taken from the title.
|
|
137
137
|
*/
|
|
138
138
|
inlineActions?: number;
|
|
@@ -411,7 +411,7 @@ export function PlayerStrip({
|
|
|
411
411
|
* future โ is visible, and an invisible native range over the whole band.
|
|
412
412
|
*
|
|
413
413
|
* ๐ด `aria-hidden` + `tabIndex={-1}` is deliberate: this is a redundant POINTER
|
|
414
|
-
* affordance for the
|
|
414
|
+
* affordance for the labeled scrubber in the same strip. Two "Seek" sliders in the
|
|
415
415
|
* tab order is a worse screen-reader experience, not a better one.
|
|
416
416
|
*/}
|
|
417
417
|
{seekLine ? (
|
|
@@ -445,7 +445,7 @@ export function PlayerStrip({
|
|
|
445
445
|
<div className="cbps__meta">
|
|
446
446
|
{onReveal ? (
|
|
447
447
|
/* ๐ด The full title and artist, not only what the button DOES. The metadata
|
|
448
|
-
column is a fixed share of a strip whose
|
|
448
|
+
column is a fixed share of a strip whose center is pinned to the window, so
|
|
449
449
|
a long title truncates on a laptop however the columns are balanced โ see
|
|
450
450
|
`.cbps__timeline` in the stylesheet for the measurement. The hover is where
|
|
451
451
|
the whole name lives. */
|
|
@@ -469,7 +469,7 @@ export function PlayerStrip({
|
|
|
469
469
|
<ActionButtons actions={trackActions} inline={inlineActions} />
|
|
470
470
|
</div>
|
|
471
471
|
|
|
472
|
-
{/* โโ
|
|
472
|
+
{/* โโ Center: the controls, over the timeline โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */}
|
|
473
473
|
<div className="cbps__centre">
|
|
474
474
|
<div className="cbps__transport">
|
|
475
475
|
{onShuffleChange ? (
|
|
@@ -296,7 +296,7 @@ export function VideoChapterEditor({
|
|
|
296
296
|
/>
|
|
297
297
|
}
|
|
298
298
|
>
|
|
299
|
-
{/* A `<fieldset>`, not a `<div>` with a role: this really is one
|
|
299
|
+
{/* A `<fieldset>`, not a `<div>` with a role: this really is one labeled set of controls
|
|
300
300
|
over one clip, and the native element is what makes a key handler on the container
|
|
301
301
|
legitimate rather than a shortcut hidden on a static box. */}
|
|
302
302
|
<fieldset
|
|
@@ -62,7 +62,7 @@ describe('cut, then mark a piece out', () => {
|
|
|
62
62
|
expect(only.tagName).toBe('BUTTON');
|
|
63
63
|
expect(only.getAttribute('aria-pressed')).toBe('false');
|
|
64
64
|
expect(only.getAttribute('aria-label')).toContain('Remove');
|
|
65
|
-
// The list names itself, so the strip is not an
|
|
65
|
+
// The list names itself, so the strip is not an unlabeled row of stripes.
|
|
66
66
|
expect(document.querySelector('.cbvc-strip')?.getAttribute('aria-label')).toBeTruthy();
|
|
67
67
|
});
|
|
68
68
|
|
|
@@ -277,7 +277,7 @@ export function VideoCutEditor({
|
|
|
277
277
|
/>
|
|
278
278
|
}
|
|
279
279
|
>
|
|
280
|
-
{/* A `<fieldset>`, not a `<div>` with a role: this really is one
|
|
280
|
+
{/* A `<fieldset>`, not a `<div>` with a role: this really is one labeled set of
|
|
281
281
|
controls over one clip, and the native element is what makes a key handler on the
|
|
282
282
|
container legitimate rather than a shortcut hidden on a static box. The keys are in
|
|
283
283
|
the label so they are discoverable without hovering for a tooltip. */}
|
|
@@ -58,7 +58,7 @@ describe('VideoPlayer sizing', () => {
|
|
|
58
58
|
*
|
|
59
59
|
* Fullscreen is the HOST `<div>`'s `onDoubleClick` now, decided by `isSurfaceControl` โ see
|
|
60
60
|
* `toggleFullscreenOnSurfaceDoubleClick` and `surfaceGesture.spec.ts`. The single-click
|
|
61
|
-
* gesture stays a gesture: `toggle:paused` over the
|
|
61
|
+
* gesture stays a gesture: `toggle:paused` over the center band is what it is for, and
|
|
62
62
|
* Vidstack already declines it over the controls.
|
|
63
63
|
*/
|
|
64
64
|
test('the surface keeps ONE gesture โ play/pause; fullscreen moved to the host', () => {
|
|
@@ -354,7 +354,7 @@ describe('a restored session volume', () => {
|
|
|
354
354
|
* over a remembered volume. The session volume reaches for no web store at all โ see
|
|
355
355
|
* `SessionVolume`, which is also why a refresh returns him to mute โ so there is nothing
|
|
356
356
|
* here to be denied. Asserted rather than assumed: the day somebody moves it onto
|
|
357
|
-
* `localStorage`/`sessionStorage` without the `try` its
|
|
357
|
+
* `localStorage`/`sessionStorage` without the `try` its neighbors carry, this reds.
|
|
358
358
|
*/
|
|
359
359
|
const original = Object.getOwnPropertyDescriptor(globalThis, 'sessionStorage');
|
|
360
360
|
Object.defineProperty(globalThis, 'sessionStorage', {
|
|
@@ -384,7 +384,7 @@ describe('a restored session volume', () => {
|
|
|
384
384
|
* its own `TimeSlider` and exposes none of its props.
|
|
385
385
|
*
|
|
386
386
|
* The test drives the hook with the event the slider actually dispatches rather than with a
|
|
387
|
-
* real drag: happy-dom has no layout, so a
|
|
387
|
+
* real drag: happy-dom has no layout, so a synthesized pointer sequence over a slider whose
|
|
388
388
|
* `getBoundingClientRect` is all zeroes would compute a position of `NaN` and assert nothing.
|
|
389
389
|
* The e2e half โ an actual drag in Chromium โ belongs in a consumer's browser smoke.
|
|
390
390
|
*/
|
|
@@ -464,7 +464,7 @@ describe('useLiveScrub โ the picture follows the scrub bar', () => {
|
|
|
464
464
|
* The owner's report was *"the play/pause button and the video time section are missing
|
|
465
465
|
* from the player"* in `apps/family`, whose MediaDetail dialog gives the player roughly
|
|
466
466
|
* 400px inside a `max-h-[40vh]` box. Vidstack's own default (`width < 576 or height < 380`)
|
|
467
|
-
* calls that a phone, takes `data-sm`, swaps the bar's play button for a
|
|
467
|
+
* calls that a phone, takes `data-sm`, swaps the bar's play button for a centered overlay and
|
|
468
468
|
* hides `.vds-start-duration` outright once playback starts.
|
|
469
469
|
*
|
|
470
470
|
* These assert the two sizes the decision exists to separate. They are arithmetic on purpose
|
|
@@ -535,7 +535,7 @@ describe('the video layout keeps its controls at dialog size', () => {
|
|
|
535
535
|
*
|
|
536
536
|
* happy-dom does not run Vidstack's layout, so the slots are asserted as the DATA they are โ
|
|
537
537
|
* `stepSlots` is exported for exactly that reason โ plus one rendered check that the buttons
|
|
538
|
-
* are real,
|
|
538
|
+
* are real, labeled and wired.
|
|
539
539
|
*/
|
|
540
540
|
describe('โฎ / โญ section ride beside the chapters menu, in every layout', () => {
|
|
541
541
|
test('a video with sections gets the pair in both layouts; one without gets nothing', () => {
|
|
@@ -552,7 +552,7 @@ describe('๐ด stepping rides inside the player, so it survives fullscreen', ()
|
|
|
552
552
|
const slots = stepSlots(() => undefined, true);
|
|
553
553
|
expect(slots).not.toBeUndefined();
|
|
554
554
|
// The large layout is the desktop bar with the cog; `smallLayout` is the touch one,
|
|
555
|
-
// where the play button becomes a
|
|
555
|
+
// where the play button becomes a center overlay. Leaving the pair out of `smallLayout`
|
|
556
556
|
// deletes stepping on precisely the devices that cannot press โงโ.
|
|
557
557
|
for (const layout of [slots, slots?.smallLayout, slots?.largeLayout]) {
|
|
558
558
|
expect(layout?.beforePlayButton, 'no Previous beside play').toBeTruthy();
|
|
@@ -564,7 +564,7 @@ describe('๐ด stepping rides inside the player, so it survives fullscreen', ()
|
|
|
564
564
|
expect(stepSlots(undefined, true)).toBeUndefined();
|
|
565
565
|
});
|
|
566
566
|
|
|
567
|
-
test('the buttons are
|
|
567
|
+
test('the buttons are labeled, disable-able and call back with -1 / 1', () => {
|
|
568
568
|
/*
|
|
569
569
|
* ๐ด Read off the SLOT ELEMENTS, not off a render.
|
|
570
570
|
*
|