@snyder-tech/brandos-review-mode 0.0.0-stage → 0.47.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/LICENSE +202 -0
- package/NOTICE +6 -0
- package/README.md +325 -2
- package/dist/ReviewMode.d.ts +12 -0
- package/dist/ReviewMode.js +185 -0
- package/dist/actions/registry.d.ts +10 -0
- package/dist/actions/registry.js +21 -0
- package/dist/adapters/tanstackRouter.d.ts +7 -0
- package/dist/adapters/tanstackRouter.js +89 -0
- package/dist/bar/Bar.css +278 -0
- package/dist/bar/Bar.js +121 -0
- package/dist/bar/BarAreaRow.css +107 -0
- package/dist/bar/BarAreaRow.js +139 -0
- package/dist/bar/BarControls.css +31 -0
- package/dist/bar/BarControls.js +199 -0
- package/dist/bar/BarGroup.js +11 -0
- package/dist/bar/BarMenu.css +540 -0
- package/dist/bar/BarMenu.js +127 -0
- package/dist/bar/BarToggles.css +32 -0
- package/dist/bar/BarToggles.js +98 -0
- package/dist/bar/WidthIcon.js +19 -0
- package/dist/bar/WidthStage.css +329 -0
- package/dist/bar/WidthStage.js +90 -0
- package/dist/bar/bar-shared.css +348 -0
- package/dist/bar/barClasses.js +7 -0
- package/dist/bar/icons/IconAlert.js +12 -0
- package/dist/bar/icons/IconAppWindow.js +19 -0
- package/dist/bar/icons/IconBulb.js +8 -0
- package/dist/bar/icons/IconCheck.js +8 -0
- package/dist/bar/icons/IconChevronsUpDown.js +8 -0
- package/dist/bar/icons/IconClose.js +8 -0
- package/dist/bar/icons/IconCopy.js +15 -0
- package/dist/bar/icons/IconDocs.js +29 -0
- package/dist/bar/icons/IconEye.js +12 -0
- package/dist/bar/icons/IconEyeOff.js +13 -0
- package/dist/bar/icons/IconGrid.js +33 -0
- package/dist/bar/icons/IconInbox.js +8 -0
- package/dist/bar/icons/IconLaptop.js +8 -0
- package/dist/bar/icons/IconList.js +45 -0
- package/dist/bar/icons/IconListChecks.js +14 -0
- package/dist/bar/icons/IconLocate.js +43 -0
- package/dist/bar/icons/IconLock.js +15 -0
- package/dist/bar/icons/IconMap.js +22 -0
- package/dist/bar/icons/IconMaximize.js +13 -0
- package/dist/bar/icons/IconMonitor.js +28 -0
- package/dist/bar/icons/IconMoon.js +8 -0
- package/dist/bar/icons/IconNote.js +8 -0
- package/dist/bar/icons/IconPalette.js +38 -0
- package/dist/bar/icons/IconShield.js +8 -0
- package/dist/bar/icons/IconSmartphone.js +15 -0
- package/dist/bar/icons/IconSparkles.js +12 -0
- package/dist/bar/icons/IconSun.js +12 -0
- package/dist/bar/icons/IconTablet.js +20 -0
- package/dist/bar/icons/IconTick.js +8 -0
- package/dist/bar/icons/IconUser.js +12 -0
- package/dist/bar/icons/iconBase.js +13 -0
- package/dist/bar/useBarClearance.js +23 -0
- package/dist/bar/useBarMenu.js +93 -0
- package/dist/bar/useBarTheme.js +27 -0
- package/dist/bar/widths.js +34 -0
- package/dist/catalog/activation.d.ts +8 -0
- package/dist/catalog/activation.js +31 -0
- package/dist/catalog/fromRoutes.d.ts +19 -0
- package/dist/catalog/fromRoutes.js +129 -0
- package/dist/catalog/navigation.d.ts +102 -0
- package/dist/catalog/navigation.js +185 -0
- package/dist/catalog/permissions.d.ts +105 -0
- package/dist/catalog/permissions.js +70 -0
- package/dist/catalog/router.d.ts +69 -0
- package/dist/catalog/router.js +19 -0
- package/dist/catalog/target.d.ts +72 -0
- package/dist/catalog/target.js +249 -0
- package/dist/catalog/targetPresentation.d.ts +28 -0
- package/dist/catalog/targetPresentation.js +127 -0
- package/dist/catalog/types.d.ts +337 -0
- package/dist/catalog/types.js +19 -0
- package/dist/check/CheckCard.css +243 -0
- package/dist/check/CheckCard.js +52 -0
- package/dist/check/CheckEmpty.css +84 -0
- package/dist/check/CheckEmpty.js +25 -0
- package/dist/check/CheckItem.css +98 -0
- package/dist/check/CheckItem.js +22 -0
- package/dist/check/CheckItems.css +158 -0
- package/dist/check/CheckItems.js +88 -0
- package/dist/check/CheckPanel.css +220 -0
- package/dist/check/CheckPanel.js +69 -0
- package/dist/check/CheckPanelHead.css +294 -0
- package/dist/check/CheckPanelHead.js +114 -0
- package/dist/check/CheckStatusIcon.js +21 -0
- package/dist/check/CheckSummary.css +214 -0
- package/dist/check/CheckSummary.js +130 -0
- package/dist/check/aggregate.js +170 -0
- package/dist/check/check-shared.css +56 -0
- package/dist/check/checks/breakpoints.js +31 -0
- package/dist/check/checks/colours.js +42 -0
- package/dist/check/checks/contrast.js +174 -0
- package/dist/check/checks/overflow.js +39 -0
- package/dist/check/checks/placeholders.js +19 -0
- package/dist/check/checks/structure.js +67 -0
- package/dist/check/checks/tokens.js +41 -0
- package/dist/check/checks/unmatched.js +22 -0
- package/dist/check/config.d.ts +23 -0
- package/dist/check/config.js +92 -0
- package/dist/check/domPath.js +28 -0
- package/dist/check/errorLog.js +46 -0
- package/dist/check/icons/IconCheckBetter.js +8 -0
- package/dist/check/icons/IconCheckInfo.js +16 -0
- package/dist/check/icons/IconCheckKnown.js +12 -0
- package/dist/check/icons/IconCheckOver.js +26 -0
- package/dist/check/icons/IconCheckPass.js +12 -0
- package/dist/check/icons/IconCheckSkipped.js +12 -0
- package/dist/check/icons/IconPage.js +8 -0
- package/dist/check/icons/IconPages.js +12 -0
- package/dist/check/icons/IconRoute.js +19 -0
- package/dist/check/icons/IconShowAll.js +8 -0
- package/dist/check/icons/IconShowFewer.js +8 -0
- package/dist/check/icons/iconBase.js +13 -0
- package/dist/check/probe.js +111 -0
- package/dist/check/report.js +33 -0
- package/dist/check/rules.js +75 -0
- package/dist/check/runChecks.js +65 -0
- package/dist/check/selectors.js +73 -0
- package/dist/check/showFinding.js +22 -0
- package/dist/check/text.js +10 -0
- package/dist/check/themeFlip.js +19 -0
- package/dist/check/types.js +28 -0
- package/dist/check/useCheckPanel.js +11 -0
- package/dist/check/useReviewCheck.js +57 -0
- package/dist/check/useSelfCheck.js +172 -0
- package/dist/check/walkScreens.js +32 -0
- package/dist/components/BrandDisclosure.js +14 -0
- package/dist/defineReviewApp.d.ts +2 -0
- package/dist/defineReviewApp.js +10 -0
- package/dist/docs/DocLink.js +40 -0
- package/dist/docs/docHtml.js +61 -0
- package/dist/docs/docIndex.d.ts +5 -0
- package/dist/docs/docIndex.js +122 -0
- package/dist/docs/docLinks.js +55 -0
- package/dist/docs/docNavigation.js +6 -0
- package/dist/docs/docText.js +62 -0
- package/dist/docs/docs.css +423 -0
- package/dist/docs/reviewDocs.js +84 -0
- package/dist/docs/useDocsQuery.js +57 -0
- package/dist/entry/core.d.ts +15 -0
- package/dist/entry/core.js +14 -0
- package/dist/entry/hooks.d.ts +5 -0
- package/dist/entry/hooks.js +5 -0
- package/dist/entry/mount.d.ts +4 -0
- package/dist/entry/mount.js +5 -0
- package/dist/entry/pages.d.ts +13 -0
- package/dist/entry/pages.js +14 -0
- package/dist/entry/scenario.d.ts +2 -0
- package/dist/entry/scenario.js +2 -0
- package/dist/entry/tanstack-query.d.ts +2 -0
- package/dist/entry/tanstack-query.js +1 -0
- package/dist/entry/tanstack-router.d.ts +2 -0
- package/dist/entry/tanstack-router.js +1 -0
- package/dist/flag.d.ts +1 -0
- package/dist/flag.js +5 -0
- package/dist/hooks/ReviewScenario.css +112 -0
- package/dist/hooks/ReviewScenario.d.ts +8 -0
- package/dist/hooks/ReviewScenario.js +96 -0
- package/dist/hooks/ScenarioMessage.css +53 -0
- package/dist/hooks/ScenarioMessage.js +23 -0
- package/dist/hooks/useAreaReturn.js +30 -0
- package/dist/hooks/useCurrentScreen.js +20 -0
- package/dist/hooks/useNotesVisibility.js +10 -0
- package/dist/hooks/usePortalHost.js +17 -0
- package/dist/hooks/useReviewRole.d.ts +2 -0
- package/dist/hooks/useReviewRole.js +32 -0
- package/dist/hooks/useReviewRouter.d.ts +6 -0
- package/dist/hooks/useReviewRouter.js +52 -0
- package/dist/hooks/useReviewShortcuts.js +33 -0
- package/dist/hooks/useReviewState.d.ts +8 -0
- package/dist/hooks/useReviewState.js +19 -0
- package/dist/hooks/useVariant.d.ts +2 -0
- package/dist/hooks/useVariant.js +8 -0
- package/dist/notes/AuthorAvatar.css +122 -0
- package/dist/notes/AuthorAvatar.js +55 -0
- package/dist/notes/KindChip.js +18 -0
- package/dist/notes/NoteCard.css +288 -0
- package/dist/notes/NoteCard.js +172 -0
- package/dist/notes/NoteCardParts.css +525 -0
- package/dist/notes/NoteCardParts.js +182 -0
- package/dist/notes/NoteChips.js +20 -0
- package/dist/notes/NotesComposer.css +194 -0
- package/dist/notes/NotesComposer.js +141 -0
- package/dist/notes/NotesLayer.css +202 -0
- package/dist/notes/NotesLayer.d.ts +12 -0
- package/dist/notes/NotesLayer.js +252 -0
- package/dist/notes/NotesPanelCard.css +431 -0
- package/dist/notes/NotesPanelCard.js +139 -0
- package/dist/notes/NotesPanelHead.css +237 -0
- package/dist/notes/NotesPanelHead.js +101 -0
- package/dist/notes/NotesPanelList.css +377 -0
- package/dist/notes/NotesPanelList.js +99 -0
- package/dist/notes/NotesPins.css +383 -0
- package/dist/notes/NotesPins.js +33 -0
- package/dist/notes/PinBadge.css +150 -0
- package/dist/notes/PinBadge.js +13 -0
- package/dist/notes/StatusIcon.js +17 -0
- package/dist/notes/formatNoteDate.js +26 -0
- package/dist/notes/icons/IconArrowRight.js +13 -0
- package/dist/notes/icons/IconBan.js +12 -0
- package/dist/notes/icons/IconBulb.js +12 -0
- package/dist/notes/icons/IconChevronDown.js +8 -0
- package/dist/notes/icons/IconChevronRight.js +8 -0
- package/dist/notes/icons/IconCircleCheck.js +12 -0
- package/dist/notes/icons/IconCircleDot.js +16 -0
- package/dist/notes/icons/IconClock.js +12 -0
- package/dist/notes/icons/IconClose.js +18 -0
- package/dist/notes/icons/IconEdit.js +8 -0
- package/dist/notes/icons/IconInbox.js +8 -0
- package/dist/notes/icons/IconLocate.js +43 -0
- package/dist/notes/icons/IconMessage.js +8 -0
- package/dist/notes/icons/IconNoteEmpty.js +23 -0
- package/dist/notes/icons/IconPin.js +12 -0
- package/dist/notes/icons/IconPlus.js +18 -0
- package/dist/notes/icons/IconScan.js +13 -0
- package/dist/notes/icons/IconScreen.js +19 -0
- package/dist/notes/icons/IconSearch.js +17 -0
- package/dist/notes/icons/IconUser.js +12 -0
- package/dist/notes/icons/IconUsers.js +17 -0
- package/dist/notes/icons/iconBase.js +13 -0
- package/dist/notes/localNotesStore.d.ts +2 -0
- package/dist/notes/localNotesStore.js +36 -0
- package/dist/notes/mergeNotes.d.ts +6 -0
- package/dist/notes/mergeNotes.js +38 -0
- package/dist/notes/noteStatus.js +21 -0
- package/dist/notes/notes-shared.css +161 -0
- package/dist/notes/placement.js +27 -0
- package/dist/notes/relativeNoteDate.js +28 -0
- package/dist/notes/reviewerName.js +17 -0
- package/dist/notes/storedNotes.js +53 -0
- package/dist/notes/useLocateNote.js +37 -0
- package/dist/notes/useNotesStore.d.ts +21 -0
- package/dist/notes/useNotesStore.js +141 -0
- package/dist/notes/usePickMode.js +50 -0
- package/dist/query/withReviewQueryClient.d.ts +2 -0
- package/dist/query/withReviewQueryClient.js +20 -0
- package/dist/routes/Brainstorm.css +44 -0
- package/dist/routes/Brainstorm.d.ts +4 -0
- package/dist/routes/Brainstorm.js +59 -0
- package/dist/routes/BrainstormBlocks.css +208 -0
- package/dist/routes/BrainstormBlocks.js +83 -0
- package/dist/routes/BrainstormConfidence.js +36 -0
- package/dist/routes/BrainstormIdeaCard.css +170 -0
- package/dist/routes/BrainstormIdeaCard.js +64 -0
- package/dist/routes/BrainstormIndex.css +166 -0
- package/dist/routes/BrainstormIndex.js +80 -0
- package/dist/routes/Breakable.js +18 -0
- package/dist/routes/ConceptViewer.css +15 -0
- package/dist/routes/ConceptViewer.js +82 -0
- package/dist/routes/DesignIdeas.css +7 -0
- package/dist/routes/DesignIdeas.d.ts +5 -0
- package/dist/routes/DesignIdeas.js +47 -0
- package/dist/routes/DesignPageHeader.d.ts +15 -0
- package/dist/routes/DesignPageHeader.js +55 -0
- package/dist/routes/DesignSystem.css +12 -0
- package/dist/routes/DesignSystem.d.ts +9 -0
- package/dist/routes/DesignSystem.js +123 -0
- package/dist/routes/DocView.d.ts +6 -0
- package/dist/routes/DocView.js +98 -0
- package/dist/routes/Docs.d.ts +12 -0
- package/dist/routes/Docs.js +207 -0
- package/dist/routes/Highlight.css +9 -0
- package/dist/routes/Highlight.js +18 -0
- package/dist/routes/MapNotes.css +214 -0
- package/dist/routes/MapNotes.js +45 -0
- package/dist/routes/MapNotesControls.js +37 -0
- package/dist/routes/MapPerspective.css +39 -0
- package/dist/routes/MapPerspective.d.ts +6 -0
- package/dist/routes/MapPerspective.js +34 -0
- package/dist/routes/NavigationMap.d.ts +11 -0
- package/dist/routes/NavigationMap.js +131 -0
- package/dist/routes/NotesBacklog.css +5 -0
- package/dist/routes/NotesBacklog.d.ts +7 -0
- package/dist/routes/NotesBacklog.js +174 -0
- package/dist/routes/NotesBacklogFilters.css +179 -0
- package/dist/routes/NotesBacklogFilters.js +221 -0
- package/dist/routes/NotesBacklogNoMatch.js +35 -0
- package/dist/routes/NotesBacklogRow.css +469 -0
- package/dist/routes/NotesBacklogRow.js +152 -0
- package/dist/routes/NotesBacklogTable.css +111 -0
- package/dist/routes/NotesBacklogTable.js +111 -0
- package/dist/routes/PermissionsModel.css +405 -0
- package/dist/routes/PermissionsModel.js +302 -0
- package/dist/routes/PermissionsModelControls.js +127 -0
- package/dist/routes/PermissionsPlanning.css +14 -0
- package/dist/routes/PermissionsPlanning.d.ts +10 -0
- package/dist/routes/PermissionsPlanning.js +336 -0
- package/dist/routes/PermissionsPlanningEditor.js +86 -0
- package/dist/routes/PermissionsPlanningTable.css +259 -0
- package/dist/routes/PermissionsPlanningTable.js +118 -0
- package/dist/routes/ScopeBadge.css +29 -0
- package/dist/routes/ScopeBadge.js +21 -0
- package/dist/routes/ScreenMap.css +5 -0
- package/dist/routes/ScreenMap.d.ts +14 -0
- package/dist/routes/ScreenMap.js +144 -0
- package/dist/routes/ScreenMapBadge.css +169 -0
- package/dist/routes/ScreenMapBadge.js +40 -0
- package/dist/routes/ScreenMapBody.js +38 -0
- package/dist/routes/ScreenMapDescription.js +30 -0
- package/dist/routes/ScreenMapEmptyRow.js +74 -0
- package/dist/routes/ScreenMapGroupRow.css +291 -0
- package/dist/routes/ScreenMapGroupRow.js +132 -0
- package/dist/routes/ScreenMapHead.css +16 -0
- package/dist/routes/ScreenMapHead.js +51 -0
- package/dist/routes/ScreenMapKindIcon.js +23 -0
- package/dist/routes/ScreenMapModuleTabs.js +23 -0
- package/dist/routes/ScreenMapRow.js +72 -0
- package/dist/routes/ScreenMapRowCells.css +113 -0
- package/dist/routes/ScreenMapRowCells.js +138 -0
- package/dist/routes/ScreenMapScopeTabs.js +38 -0
- package/dist/routes/ScreenMapSearch.js +52 -0
- package/dist/routes/ScreenMapSectionControls.js +45 -0
- package/dist/routes/ScreenMapStatusCells.css +91 -0
- package/dist/routes/ScreenMapStatusCells.js +193 -0
- package/dist/routes/ScreenMapTotals.js +76 -0
- package/dist/routes/SortHead.js +26 -0
- package/dist/routes/StatTile.js +61 -0
- package/dist/routes/TargetDetails.js +41 -0
- package/dist/routes/TargetMap.d.ts +17 -0
- package/dist/routes/TargetMap.js +211 -0
- package/dist/routes/TargetMapEditor.js +294 -0
- package/dist/routes/conceptViewer/ConceptContent.css +22 -0
- package/dist/routes/conceptViewer/ConceptContent.js +36 -0
- package/dist/routes/conceptViewer/ConceptFrame.css +21 -0
- package/dist/routes/conceptViewer/ConceptFrame.js +25 -0
- package/dist/routes/conceptViewer/ConceptHead.css +93 -0
- package/dist/routes/conceptViewer/ConceptHead.js +92 -0
- package/dist/routes/conceptViewer/ConceptList.css +271 -0
- package/dist/routes/conceptViewer/ConceptList.js +75 -0
- package/dist/routes/conceptViewer/ConceptStage.css +145 -0
- package/dist/routes/conceptViewer/ConceptStage.js +59 -0
- package/dist/routes/conceptViewer/ConceptTools.css +97 -0
- package/dist/routes/conceptViewer/ConceptTools.js +129 -0
- package/dist/routes/conceptViewer/StatusBadge.js +10 -0
- package/dist/routes/conceptViewer/conceptHash.js +69 -0
- package/dist/routes/conceptViewer/conceptStatus.js +14 -0
- package/dist/routes/conceptViewer/conceptTheme.js +45 -0
- package/dist/routes/conceptViewer/openInNewTab.js +13 -0
- package/dist/routes/conceptViewer/useConcept.js +28 -0
- package/dist/routes/conceptViewer/useConceptKeys.js +46 -0
- package/dist/routes/conceptViewer/useConceptPan.js +34 -0
- package/dist/routes/conceptViewer/useConceptSelection.js +21 -0
- package/dist/routes/conceptViewer/useConceptThemeMode.js +18 -0
- package/dist/routes/conceptViewer/useStageZoom.js +50 -0
- package/dist/routes/designIdeas/FontLab.css +15 -0
- package/dist/routes/designIdeas/FontLab.js +96 -0
- package/dist/routes/designIdeas/FontSpecimen.css +109 -0
- package/dist/routes/designIdeas/FontSpecimen.js +65 -0
- package/dist/routes/designIdeas/IdeaCard.css +388 -0
- package/dist/routes/designIdeas/IdeaCard.js +60 -0
- package/dist/routes/designIdeas/IdeaLink.js +22 -0
- package/dist/routes/designIdeas/IdeaPreview.css +348 -0
- package/dist/routes/designIdeas/IdeaPreview.js +72 -0
- package/dist/routes/designIdeas/IdeasCatalog.css +162 -0
- package/dist/routes/designIdeas/IdeasCatalog.js +99 -0
- package/dist/routes/designIdeas/IdeasEmpty.css +40 -0
- package/dist/routes/designIdeas/IdeasEmpty.js +33 -0
- package/dist/routes/designIdeas/PairingCard.css +323 -0
- package/dist/routes/designIdeas/PairingCard.js +64 -0
- package/dist/routes/designIdeas/Sample.css +117 -0
- package/dist/routes/designIdeas/Sample.js +21 -0
- package/dist/routes/designIdeas/TrialButton.js +13 -0
- package/dist/routes/designIdeas/design-ideas-shared.css +347 -0
- package/dist/routes/designIdeas/fontLabSamples.js +48 -0
- package/dist/routes/designIdeas/useIdeasView.js +20 -0
- package/dist/routes/designSystem/AppTokensSection.css +5 -0
- package/dist/routes/designSystem/AppTokensSection.js +55 -0
- package/dist/routes/designSystem/BrandReferenceSection.css +49 -0
- package/dist/routes/designSystem/BrandReferenceSection.js +84 -0
- package/dist/routes/designSystem/ComponentLibrary.css +39 -0
- package/dist/routes/designSystem/ComponentLibrary.js +53 -0
- package/dist/routes/designSystem/DisclosureCollection.css +64 -0
- package/dist/routes/designSystem/DisclosureCollection.js +59 -0
- package/dist/routes/designSystem/FamilyCard.css +102 -0
- package/dist/routes/designSystem/FamilyCard.js +102 -0
- package/dist/routes/designSystem/FamilyIcon.js +23 -0
- package/dist/routes/designSystem/FamilyMix.css +193 -0
- package/dist/routes/designSystem/FamilyMix.js +78 -0
- package/dist/routes/designSystem/Group.js +24 -0
- package/dist/routes/designSystem/GroupPreview.css +250 -0
- package/dist/routes/designSystem/GroupPreview.js +80 -0
- package/dist/routes/designSystem/Logos.css +39 -0
- package/dist/routes/designSystem/Logos.js +30 -0
- package/dist/routes/designSystem/OtherRow.js +27 -0
- package/dist/routes/designSystem/OverrideRow.css +212 -0
- package/dist/routes/designSystem/OverrideRow.js +78 -0
- package/dist/routes/designSystem/OverridesCard.js +46 -0
- package/dist/routes/designSystem/Overview.css +12 -0
- package/dist/routes/designSystem/Overview.js +93 -0
- package/dist/routes/designSystem/RadiusBox.js +21 -0
- package/dist/routes/designSystem/SectionIntro.css +73 -0
- package/dist/routes/designSystem/SectionIntro.js +39 -0
- package/dist/routes/designSystem/ShadowBox.js +21 -0
- package/dist/routes/designSystem/ShapeSpecimen.css +172 -0
- package/dist/routes/designSystem/Source.css +12 -0
- package/dist/routes/designSystem/Source.js +11 -0
- package/dist/routes/designSystem/SpaceRow.css +17 -0
- package/dist/routes/designSystem/SpaceRow.js +30 -0
- package/dist/routes/designSystem/Specimen.css +86 -0
- package/dist/routes/designSystem/Specimen.js +27 -0
- package/dist/routes/designSystem/Swatch.css +184 -0
- package/dist/routes/designSystem/Swatch.js +31 -0
- package/dist/routes/designSystem/ThemeValues.js +19 -0
- package/dist/routes/designSystem/Toc.css +145 -0
- package/dist/routes/designSystem/Toc.js +65 -0
- package/dist/routes/designSystem/TokenFilter.css +20 -0
- package/dist/routes/designSystem/TokenFilter.js +23 -0
- package/dist/routes/designSystem/TokenGroup.css +112 -0
- package/dist/routes/designSystem/TokenGroup.js +27 -0
- package/dist/routes/designSystem/TokensByKind.css +10 -0
- package/dist/routes/designSystem/TokensByKind.js +49 -0
- package/dist/routes/designSystem/TokensState.js +43 -0
- package/dist/routes/designSystem/TypeRow.css +37 -0
- package/dist/routes/designSystem/TypeRow.js +30 -0
- package/dist/routes/designSystem/design-system-shared.css +265 -0
- package/dist/routes/designSystem/families.js +157 -0
- package/dist/routes/designSystem/jumpToSection.js +9 -0
- package/dist/routes/designSystem/titleCase.js +7 -0
- package/dist/routes/designSystem/tokenSpecimen.js +28 -0
- package/dist/routes/designSystem/types.d.ts +7 -0
- package/dist/routes/designSystem/useDesignSystemTokens.js +30 -0
- package/dist/routes/designSystemTokens.js +321 -0
- package/dist/routes/fontTrial.js +72 -0
- package/dist/routes/icons/IconAppWindow.js +15 -0
- package/dist/routes/icons/IconArrowDown.js +9 -0
- package/dist/routes/icons/IconArrowUp.js +9 -0
- package/dist/routes/icons/IconArrowUpDown.js +9 -0
- package/dist/routes/icons/IconChevronDown.js +9 -0
- package/dist/routes/icons/IconChevronRight.js +9 -0
- package/dist/routes/icons/IconChevronUp.js +9 -0
- package/dist/routes/icons/IconChevronsDown.js +9 -0
- package/dist/routes/icons/IconChevronsUp.js +9 -0
- package/dist/routes/icons/IconDsAlert.js +16 -0
- package/dist/routes/icons/IconDsArrowLeft.js +8 -0
- package/dist/routes/icons/IconDsArrowRight.js +8 -0
- package/dist/routes/icons/IconDsBlocks.js +14 -0
- package/dist/routes/icons/IconDsBook.js +8 -0
- package/dist/routes/icons/IconDsBraces.js +8 -0
- package/dist/routes/icons/IconDsCheck.js +8 -0
- package/dist/routes/icons/IconDsChevronLeft.js +8 -0
- package/dist/routes/icons/IconDsChevronRight.js +8 -0
- package/dist/routes/icons/IconDsCode.js +12 -0
- package/dist/routes/icons/IconDsCollapseAll.js +8 -0
- package/dist/routes/icons/IconDsCompare.js +13 -0
- package/dist/routes/icons/IconDsExpandAll.js +8 -0
- package/dist/routes/icons/IconDsExternal.js +12 -0
- package/dist/routes/icons/IconDsFolder.js +8 -0
- package/dist/routes/icons/IconDsHand.js +13 -0
- package/dist/routes/icons/IconDsHelp.js +16 -0
- package/dist/routes/icons/IconDsLayers.js +12 -0
- package/dist/routes/icons/IconDsLightbulb.js +12 -0
- package/dist/routes/icons/IconDsMapPin.js +12 -0
- package/dist/routes/icons/IconDsMaximize.js +13 -0
- package/dist/routes/icons/IconDsMinus.js +8 -0
- package/dist/routes/icons/IconDsNotebook.js +15 -0
- package/dist/routes/icons/IconDsPackage.js +13 -0
- package/dist/routes/icons/IconDsPalette.js +34 -0
- package/dist/routes/icons/IconDsPlug.js +13 -0
- package/dist/routes/icons/IconDsPlus.js +8 -0
- package/dist/routes/icons/IconDsRoute.js +20 -0
- package/dist/routes/icons/IconDsRuler.js +14 -0
- package/dist/routes/icons/IconDsSearch.js +12 -0
- package/dist/routes/icons/IconDsShape.js +8 -0
- package/dist/routes/icons/IconDsShield.js +8 -0
- package/dist/routes/icons/IconDsSparkles.js +14 -0
- package/dist/routes/icons/IconDsTarget.js +24 -0
- package/dist/routes/icons/IconDsTimer.js +16 -0
- package/dist/routes/icons/IconDsType.js +12 -0
- package/dist/routes/icons/IconDsUsers.js +17 -0
- package/dist/routes/icons/IconEye.js +13 -0
- package/dist/routes/icons/IconFile.js +9 -0
- package/dist/routes/icons/IconFoldVertical.js +9 -0
- package/dist/routes/icons/IconFolder.js +9 -0
- package/dist/routes/icons/IconList.js +9 -0
- package/dist/routes/icons/IconMapCheck.js +13 -0
- package/dist/routes/icons/IconMapClock.js +20 -0
- package/dist/routes/icons/IconMapCompare.js +24 -0
- package/dist/routes/icons/IconMapDashboard.js +38 -0
- package/dist/routes/icons/IconMapDashed.js +22 -0
- package/dist/routes/icons/IconMapDetail.js +15 -0
- package/dist/routes/icons/IconMapEmpty.js +9 -0
- package/dist/routes/icons/IconMapError.js +27 -0
- package/dist/routes/icons/IconMapFolderOpen.js +9 -0
- package/dist/routes/icons/IconMapForm.js +9 -0
- package/dist/routes/icons/IconMapLink.js +9 -0
- package/dist/routes/icons/IconMapLoading.js +9 -0
- package/dist/routes/icons/IconMapLock.js +16 -0
- package/dist/routes/icons/IconMapMove.js +14 -0
- package/dist/routes/icons/IconMapNetwork.js +33 -0
- package/dist/routes/icons/IconMapNotes.js +24 -0
- package/dist/routes/icons/IconMapReference.js +9 -0
- package/dist/routes/icons/IconMapScreens.js +38 -0
- package/dist/routes/icons/IconMapSearchX.js +18 -0
- package/dist/routes/icons/IconMapStatement.js +14 -0
- package/dist/routes/icons/IconMapUnmapped.js +15 -0
- package/dist/routes/icons/IconPanelRight.js +15 -0
- package/dist/routes/icons/IconPanelTop.js +15 -0
- package/dist/routes/icons/IconPencil.js +9 -0
- package/dist/routes/icons/IconPlus.js +9 -0
- package/dist/routes/icons/IconRefresh.js +9 -0
- package/dist/routes/icons/IconSearch.js +13 -0
- package/dist/routes/icons/IconSettings.js +13 -0
- package/dist/routes/icons/IconTrash.js +9 -0
- package/dist/routes/icons/IconUnfoldVertical.js +9 -0
- package/dist/routes/icons/IconUsers.js +17 -0
- package/dist/routes/icons/dsIconBase.js +13 -0
- package/dist/routes/icons/iconBase.js +13 -0
- package/dist/routes/navigationMap/Legend.css +98 -0
- package/dist/routes/navigationMap/Legend.js +49 -0
- package/dist/routes/navigationMap/LevelControls.js +42 -0
- package/dist/routes/navigationMap/LevelJoin.js +48 -0
- package/dist/routes/navigationMap/MapControls.js +124 -0
- package/dist/routes/navigationMap/MapTable.css +17 -0
- package/dist/routes/navigationMap/MapTable.js +144 -0
- package/dist/routes/navigationMap/NavigationDescription.js +23 -0
- package/dist/routes/navigationMap/RowCells.css +299 -0
- package/dist/routes/navigationMap/RowCells.js +251 -0
- package/dist/routes/navigationMap/Rows.js +69 -0
- package/dist/routes/navigationMap/ScopeTabs.js +38 -0
- package/dist/routes/navigationMap/SurfaceIcon.js +27 -0
- package/dist/routes/navigationMap/navigationFilters.js +58 -0
- package/dist/routes/navigationMap/navigationTotals.js +84 -0
- package/dist/routes/navigationMap/useMapView.js +63 -0
- package/dist/routes/navigationMap/useNavigationData.d.ts +14 -0
- package/dist/routes/navigationMap/useNavigationData.js +25 -0
- package/dist/routes/notesBacklogFilter.js +17 -0
- package/dist/routes/page.css +774 -0
- package/dist/routes/screenMapFilter.js +69 -0
- package/dist/routes/screenMapRows.js +63 -0
- package/dist/routes/sheet.css +828 -0
- package/dist/routes/target-editor.css +196 -0
- package/dist/routes/useScreenMapRows.js +73 -0
- package/dist/routes/useScreenMapView.js +93 -0
- package/dist/routes/useSheetFrame.js +46 -0
- package/dist/utilities.css +1740 -0
- package/package.json +78 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
brandOS Review Mode — @snyder-tech/brandos-review-mode
|
|
2
|
+
Copyright 2026 Snyder Technologies LLC
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
The license grants no rights in the trademarks, brand names or logos of Snyder Technologies LLC or its customers.
|
package/README.md
CHANGED
|
@@ -1,3 +1,326 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @snyder-tech/brandos-review-mode
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Review Mode turns a running React app into its own design review workbench. In development and
|
|
4
|
+
staging it adds:
|
|
5
|
+
|
|
6
|
+
- a floating two-row bar: areas, structure pages, Built/Proposed variants, screen picker, forced
|
|
7
|
+
states, role switch, width presets, notes, self-check, light/dark, hide;
|
|
8
|
+
- forced screen states (`loaded`, `empty`, `loading`, `error`, `no access`) without touching screens;
|
|
9
|
+
- reviewer notes pinned to elements, with a backlog page;
|
|
10
|
+
- a self-check (structure, overflow, contrast, breakpoints, tokens, placeholders, console errors);
|
|
11
|
+
- `/design/*` pages: screen map, navigation map, notes backlog, design system, design ideas,
|
|
12
|
+
brainstorm, target maps and permissions planning.
|
|
13
|
+
|
|
14
|
+
In production none of it ships. The package is handed a manifest and a router adapter; the screen
|
|
15
|
+
and navigation maps are derived from the app's own route tree, so there is never a second screen
|
|
16
|
+
list to keep in step.
|
|
17
|
+
|
|
18
|
+
Review Mode was ported from the Snyder design workbench; module headers describe behaviour, not where
|
|
19
|
+
the code came from.
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
pnpm add -D @snyder-tech/brandos-review-mode
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Peer dependencies: `react` and `react-dom` 19, and `@snyder-tech/brandos-tokens` and
|
|
28
|
+
`@snyder-tech/brandos-ui` at the same version (the chrome is drawn from the host's brandOS tenant,
|
|
29
|
+
see Theming, and text-only disclosures use the `brand-details` element). `@tanstack/react-router`
|
|
30
|
+
is needed only for the bundled TanStack adapter, `@tanstack/react-query` only for
|
|
31
|
+
`withReviewQueryClient`.
|
|
32
|
+
|
|
33
|
+
The package installs Effect as a runtime dependency for the plan schemas exported from `/core`.
|
|
34
|
+
|
|
35
|
+
## Quick start (TanStack Router or TanStack Start)
|
|
36
|
+
|
|
37
|
+
The smallest complete integration lives in `snyder/brandOS/apps/review-mode-example`. The brandOS
|
|
38
|
+
site carries this guide and a live demo at `https://brand.snyder.tech/components/review-mode`.
|
|
39
|
+
|
|
40
|
+
**1. A build-time flag.** Define `import.meta.env.VITE_REVIEW_MODE` as `'on'` for the dev server and
|
|
41
|
+
refuse it in production builds:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
// vite.config.ts
|
|
45
|
+
define: { 'import.meta.env.VITE_REVIEW_MODE': JSON.stringify(reviewModeFor(command, mode)) },
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**2. A manifest** for what the route tree cannot express. Only `name` and `entries` are required.
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
// src/review/review.ts (imported only by review-only modules)
|
|
52
|
+
import { defineReviewApp, type Note } from '@snyder-tech/brandos-review-mode/core';
|
|
53
|
+
|
|
54
|
+
export const reviewApp = defineReviewApp({
|
|
55
|
+
name: 'YourApp',
|
|
56
|
+
entries: [{ id: 'app', label: 'App', key: '1', first: '/' }],
|
|
57
|
+
modules: [{ id: 'orders', label: 'Orders', sub: 'what customers bought' }],
|
|
58
|
+
notes: import.meta.glob<{ default: readonly Note[] }>('../routes/**/*.notes.ts', { eager: true }),
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**3. One lazy mount** at the root, behind the flag. A production build drops the branch, so the
|
|
63
|
+
chunk is never reached:
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
// src/routes/__root.tsx
|
|
67
|
+
const ReviewModeMount = import.meta.env.VITE_REVIEW_MODE === 'on' ? lazy(() => import('../review/ReviewModeMount')) : null;
|
|
68
|
+
|
|
69
|
+
// src/review/ReviewModeMount.tsx
|
|
70
|
+
import { ReviewMode } from '@snyder-tech/brandos-review-mode/mount';
|
|
71
|
+
import { tanstackRouterAdapter } from '@snyder-tech/brandos-review-mode/tanstack-router';
|
|
72
|
+
|
|
73
|
+
export default function ReviewModeMount() {
|
|
74
|
+
return <ReviewMode app={reviewApp} router={tanstackRouterAdapter(useRouter())} />;
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**4. Forced states at the data seam.** Screens import the hooks unconditionally; outside review mode
|
|
79
|
+
they return `'loaded'` and `'built'`:
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
import { useReviewState } from '@snyder-tech/brandos-review-mode/hooks';
|
|
83
|
+
|
|
84
|
+
const forced = useReviewState();
|
|
85
|
+
const query = useQuery({ ...ordersQuery, enabled: forced === 'loaded' });
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**5. The `/design/*` pages** on a route of your own, lazily and behind the same flag:
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
import { ScreenMap, NavigationMap, NotesBacklog } from '@snyder-tech/brandos-review-mode/pages';
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Entry points
|
|
95
|
+
|
|
96
|
+
| Import | Contents | In production? |
|
|
97
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
98
|
+
| `./core` | `defineReviewApp`, `reviewModeEnabled`, `activateReviewMode`, the `RouterAdapter` contract, `modulesFromRoutes`, navigation and plan builders, plan schemas, check config, types | Types only |
|
|
99
|
+
| `./hooks` | `useReviewState`, `reviewStateOf`, `useVariant`, `useReviewRole`, `setReviewRole`, `ReviewLink`, `useReviewLocation`, `useReviewRouter`. No stylesheet. | Yes, inert |
|
|
100
|
+
| `./scenario` | `<ReviewScenario>`: generic loading/empty/error/no-access stand-ins, with styles | No |
|
|
101
|
+
| `./mount` | `<ReviewMode>` (bar, notes layer, check panel, width stage), `NotesLayer`, `useNotesStore` | No |
|
|
102
|
+
| `./pages` | `ScreenMap`, `NavigationMap`, `NotesBacklog`, `DesignSystem`, `DesignIdeas`, `Brainstorm`, `TargetMap`, `PermissionsPlanning`, `MapPerspective`, `DesignPageHeader` | No |
|
|
103
|
+
| `./tanstack-router` | `tanstackRouterAdapter(router)`, `tanstackRoutes`, `tanstackRouteInfo` | No |
|
|
104
|
+
| `./tanstack-query` | `withReviewQueryClient(queryClient)` | No |
|
|
105
|
+
|
|
106
|
+
## Router adapters
|
|
107
|
+
|
|
108
|
+
Everything review mode needs from routing goes through one object:
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
type RouterAdapter = {
|
|
112
|
+
routes: () => readonly ReviewRouteInfo[]; // id, path, isRoot, hasChildren, rendersSomething, staticData
|
|
113
|
+
getLocation: () => ReviewLocation; // same object until the location changes
|
|
114
|
+
subscribe: (listener: () => void) => () => void;
|
|
115
|
+
navigate: (target: { href: string } | { to: string; search?: Record<string, unknown> }) => void;
|
|
116
|
+
Link: ComponentType<ReviewLinkProps>;
|
|
117
|
+
frameHref?: (appHref: string) => string; // optional: the document URL for an app address
|
|
118
|
+
};
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
`tanstackRouterAdapter(router)` is bundled and returns one adapter per router, so calling it during
|
|
122
|
+
render is safe. For another router, implement the members over its API and pass the object to
|
|
123
|
+
`<ReviewMode router={...}>`. `getLocation` must return a stable object between changes (it backs
|
|
124
|
+
`useSyncExternalStore`); report `matchedRouteId` when the router knows the deepest matched route,
|
|
125
|
+
so index and `$param` routes resolve to the right screen.
|
|
126
|
+
|
|
127
|
+
Locations carry app addresses (`/orders?state=empty`). The width presets and the self-check load
|
|
128
|
+
those addresses in same-origin frames, which works as-is for path routing. A hash router adds
|
|
129
|
+
`frameHref`, mapping `/orders` to `/its-page#/orders`. The brandOS site's live demo runs on such an
|
|
130
|
+
adapter (`snyder/brandOS/apps/brand/src/components/review-mode/hashRouterAdapter.tsx`).
|
|
131
|
+
|
|
132
|
+
Review mode is active exactly while an adapter is activated. `<ReviewMode>` activates its adapter on
|
|
133
|
+
mount. A host that needs forced states before the lazy chunk arrives can call
|
|
134
|
+
`activateReviewMode(adapter)` from `./core` earlier.
|
|
135
|
+
|
|
136
|
+
## Route static data
|
|
137
|
+
|
|
138
|
+
A route opts into a better label, module or state list through its static data (TanStack:
|
|
139
|
+
`staticData`). Augment your router's type once:
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
import type { ReviewRouteStaticData } from '@snyder-tech/brandos-review-mode/core';
|
|
143
|
+
|
|
144
|
+
declare module '@tanstack/react-router' {
|
|
145
|
+
interface StaticDataRouteOption extends ReviewRouteStaticData {}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Fields: `module`, `label`, `reviewStates`, `reviewHidden`, `kind`, `note`, `implementation`,
|
|
150
|
+
`source`, `parentScreen`, `examplePath`. Without them the module is the path's first segment and the
|
|
151
|
+
label is the last segment, title-cased. Routes under `/design` are never screens.
|
|
152
|
+
|
|
153
|
+
## Sibling files
|
|
154
|
+
|
|
155
|
+
Optional, found by your own `import.meta.glob` calls (the package never walks the filesystem) and
|
|
156
|
+
keyed to route ids by stripping everything up to `/routes` and a trailing `/index`:
|
|
157
|
+
|
|
158
|
+
- `<screen>.notes.ts`: `export default` a `Note[]`; pins and backlog rows.
|
|
159
|
+
- `<screen>.proposed.tsx`: `export default` the proposed component; the route renders it when
|
|
160
|
+
`useVariant() === 'proposed'`.
|
|
161
|
+
- `<screen>.actions.ts`: `export default` an `ActionDef[]`.
|
|
162
|
+
|
|
163
|
+
The self-check reports sibling files whose route no longer exists.
|
|
164
|
+
|
|
165
|
+
## Self-check
|
|
166
|
+
|
|
167
|
+
`C` checks the current page; "Every page" loads each screen in a same-origin frame and checks it at
|
|
168
|
+
every width, reading the screen's CSS in the frame's own window. Tune it with
|
|
169
|
+
`defineReviewApp({ selfCheck })`: `baselines` (per check id; a count above its baseline fails, at it
|
|
170
|
+
is known debt), `registered`, `breakpoints`, `contrast`, `widths`, and `probeTimeoutMs` (default
|
|
171
|
+
15000), how long each screen may take to load.
|
|
172
|
+
|
|
173
|
+
A setting the check cannot work with throws `ReviewModeConfigError` from `defineReviewApp`, and its
|
|
174
|
+
`field` names the setting: no widths, a width or breakpoint that is not a whole number of pixels above
|
|
175
|
+
0, a contrast ratio outside 1 to 21, a `probeTimeoutMs` of 0 or less, or a baseline that is not a
|
|
176
|
+
whole count of 0 or more.
|
|
177
|
+
|
|
178
|
+
A screen that times out, loads nothing, or is a `$param` route without an `examplePath`, and a
|
|
179
|
+
same-origin stylesheet the browser will not read, are listed under "Not fully checked". That check
|
|
180
|
+
always fails and no baseline softens it. A run with anything under it is incomplete: it never reads as
|
|
181
|
+
all clear, never scores a count as better, skips the cross-page "CSS rules that match nothing" check,
|
|
182
|
+
and never offers its counts as new baselines. What the screens and sheets that were read found still
|
|
183
|
+
counts. Closing the panel, unmounting, or starting a newer run cancels a run.
|
|
184
|
+
|
|
185
|
+
Contrast measures text against the ground it sits on: translucent backgrounds are composited over the
|
|
186
|
+
first opaque one beneath them, or over the page canvas (white, or dark when the root's `color-scheme`
|
|
187
|
+
is dark only). Text over a background image is not measured.
|
|
188
|
+
|
|
189
|
+
## Forced states
|
|
190
|
+
|
|
191
|
+
- `useReviewState()` reads `?state=` while review mode is active.
|
|
192
|
+
- `reviewStateOf(search, enabled?)` is the non-hook form for loaders. A loader can run before review
|
|
193
|
+
mode activates, so pass your flag: `reviewStateOf(search, reviewModeEnabled(import.meta.env))`.
|
|
194
|
+
- `withReviewQueryClient(queryClient)` makes imperative fetches (`fetchQuery`, `ensureQueryData`,
|
|
195
|
+
`prefetchQuery`) honour the forced `loading` and `error` states. `empty` has no value of the
|
|
196
|
+
caller's data type, so a loader reads it through `reviewStateOf` and returns its own empty result. `useQuery` observers fetch through the query cache, not
|
|
197
|
+
`fetchQuery`, so screens built on `useQuery` read `useReviewState()` at their data seam instead.
|
|
198
|
+
- `<ReviewScenario>` from `./scenario` draws a generic stand-in for a screen that has not designed
|
|
199
|
+
its own state. Import it from review-only code.
|
|
200
|
+
|
|
201
|
+
## Notes persistence
|
|
202
|
+
|
|
203
|
+
Notes added in the browser go to a `NotesStore`:
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
type NotesStore = {
|
|
207
|
+
list(): Promise<readonly NoteRecord[]>;
|
|
208
|
+
append(row: NoteRecord): Promise<void>;
|
|
209
|
+
};
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Without one, `createLocalNotesStore(appName)` keeps them in `localStorage` for that browser only. A
|
|
213
|
+
host with a server can back the store with an append-only file through a dev-only server function;
|
|
214
|
+
keep that module behind the same lazy boundary as the mount so production never registers it.
|
|
215
|
+
|
|
216
|
+
`list()` rejects when the notes cannot be read (storage blocked for the site, or a stored format this
|
|
217
|
+
version does not understand) instead of resolving to an empty list, and `append()` then refuses
|
|
218
|
+
rather than overwrite what it could not read. Review Mode shows the reason and keeps the notes it last
|
|
219
|
+
read. A custom store should do the same: an empty list means there are no notes.
|
|
220
|
+
|
|
221
|
+
## Plan documents
|
|
222
|
+
|
|
223
|
+
The target maps and the permissions planning page edit two documents the host app saves as files
|
|
224
|
+
under its own `review/` folder. `./core` exports the contract for each as an Effect Schema, with the
|
|
225
|
+
type it decodes to under the same name:
|
|
226
|
+
|
|
227
|
+
| Schema | Decodes to | Parser |
|
|
228
|
+
| ----------------- | ----------------------------------------- | ---------------------- |
|
|
229
|
+
| `TargetPlan` | `{ version: 1; nodes: TargetNode[] }` | `parseTargetPlan` |
|
|
230
|
+
| `TargetNode` | one entry of a target plan | |
|
|
231
|
+
| `PermissionsPlan` | `{ version: 1; notes: PermissionNote[] }` | `parsePermissionsPlan` |
|
|
232
|
+
| `PermissionNote` | one person's planning notes, text trimmed | |
|
|
233
|
+
|
|
234
|
+
Decoding drops keys a plan does not name, writes the keys in the order a saved file holds them,
|
|
235
|
+
removes an empty `parentId`, and checks the whole document: unique ids, sections at the top level,
|
|
236
|
+
children under a parent of the same audience, menu entries directly under a section, no cycles, one
|
|
237
|
+
note per person. The parsers decode through these schemas and accept exactly what they accept.
|
|
238
|
+
|
|
239
|
+
A server function that saves a reviewer's plan decodes it at its boundary with the schema rather
|
|
240
|
+
than carrying it as `Schema.Unknown`:
|
|
241
|
+
|
|
242
|
+
```ts
|
|
243
|
+
import { Schema } from 'effect';
|
|
244
|
+
import { TargetPlan } from '@snyder-tech/brandos-review-mode/core';
|
|
245
|
+
|
|
246
|
+
const TargetPlanSave = Schema.Struct({ revision: Schema.String, plan: TargetPlan });
|
|
247
|
+
|
|
248
|
+
export const saveTargetPlanFn = createServerFn({ method: 'POST' })
|
|
249
|
+
.validator(Schema.toStandardSchemaV1(TargetPlanSave))
|
|
250
|
+
.handler(({ data }) => saveTargetPlan(data)); // data.plan is a decoded TargetPlan
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Project the save schema with `toStandardSchemaV1` once, beside its definition. A refused plan then
|
|
254
|
+
fails the validator with the schema's issues instead of reaching the handler: the document rules
|
|
255
|
+
above (and the blank name, purpose or source rule) carry the same message the editor shows today,
|
|
256
|
+
such as `Sections must be at the top level.`; a wrong field type or a missing key carries the
|
|
257
|
+
schema's own message and path. Code that wants the editor's single message for any refusal, such as
|
|
258
|
+
a file read, keeps calling `parseTargetPlan` or `parsePermissionsPlan`: they throw an `Error` whose
|
|
259
|
+
message names the first rule the plan breaks. Parsing a plan that has already been decoded returns
|
|
260
|
+
it unchanged, so a handler may parse a validated plan again before writing it.
|
|
261
|
+
|
|
262
|
+
## Theming
|
|
263
|
+
|
|
264
|
+
Review mode has no palette of its own: the bar, notes and pages are drawn from the host's brandOS
|
|
265
|
+
tenant, so a Snyder app shows Snyder colours and fonts, and any other brand shows its own. The host
|
|
266
|
+
does what the brandOS site does:
|
|
267
|
+
|
|
268
|
+
```css
|
|
269
|
+
/* the app's main stylesheet */
|
|
270
|
+
@import '@snyder-tech/brandos-tokens/css/fonts';
|
|
271
|
+
@import '@snyder-tech/brandos-tokens/css'; /* then the stylesheet that maps your brand onto --brandOS-* */
|
|
272
|
+
@import '@snyder-tech/brandos-tokens/css/daisyui';
|
|
273
|
+
@import '@snyder-tech/brandos-tokens/css/tailwind';
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
and sets `data-brand="<brand>"` and a resolved `data-theme="light|dark"` on `<html>`. Every package
|
|
277
|
+
stylesheet is Tailwind `@apply` over the tenant's DaisyUI semantic classes and brand fonts
|
|
278
|
+
(`bos:bg-base-200`, `bos:text-base-content/60`, `bos:text-primary`, `bos:font-body`); controls
|
|
279
|
+
are DaisyUI components in the markup (`bos:dui-btn`, `bos:dui-join`, `bos:dui-select`,
|
|
280
|
+
`bos:dui-collapse`), short text disclosures are brandOS `brand-details`, and icons are Lucide
|
|
281
|
+
outlines drawn inline (no emoji). The
|
|
282
|
+
package's `utilities.css` generates those markup classes itself, so the host does not add the package
|
|
283
|
+
to its Tailwind sources. Class names keep the `rvm-` prefix so they never collide with the host's.
|
|
284
|
+
The bar's theme switch (one icon button) writes `data-theme` on `<html>`, or calls `onThemeChange`
|
|
285
|
+
for a host that keeps its theme in its own state.
|
|
286
|
+
|
|
287
|
+
## Keeping it out of production
|
|
288
|
+
|
|
289
|
+
- Gate the mount, the `/design/*` pages, `./scenario` and any review-only server code on the build
|
|
290
|
+
flag, and make the production build refuse to turn it on.
|
|
291
|
+
- Build for production and search the output for `rvm-` and the package name. The example app's
|
|
292
|
+
`scripts/verify-no-review.ts` does both and also proves the refusal.
|
|
293
|
+
- The width presets frame the current page in a same-origin iframe, so allow same-origin framing on
|
|
294
|
+
development responses only.
|
|
295
|
+
|
|
296
|
+
## Keyboard
|
|
297
|
+
|
|
298
|
+
Each area entry's own `key` (for example `1`, `2`), `T` theme, `H` hide, `W` cycle width, `N` notes, `C` self-check, `Esc` close the check
|
|
299
|
+
panel. The bar's Screen, State, Role and Width menus open above the bar: arrow keys move between
|
|
300
|
+
options, `Enter` picks, `Esc` or `Tab` closes and returns focus to the trigger.
|
|
301
|
+
|
|
302
|
+
## Searchable documentation
|
|
303
|
+
|
|
304
|
+
The Docs pages add `Docs`, `DocView` and `DocsProps` to `pages`, and the `DocKind`
|
|
305
|
+
type to `core`. Set `docs: true` in the manifest to show the bar entry. The host owns
|
|
306
|
+
`/design/docs` and `/design/docs/$slug` and passes raw `.md`/`.mdx` strings and optional
|
|
307
|
+
kind definitions through its lazy review boundary. Search covers titles, paths and
|
|
308
|
+
body text; related documents share topic rows; kind filters and the return query
|
|
309
|
+
survive navigation. Markdown is trusted repository-authored content; raw HTML is passed through, so
|
|
310
|
+
these pages must not ingest external or user-submitted text. `marked` is declared
|
|
311
|
+
in the staged npm package rather than silently relying on the monorepo.
|
|
312
|
+
|
|
313
|
+
## Host CSS isolation
|
|
314
|
+
|
|
315
|
+
The package compiles its `bos:` utility classes inside a native CSS `@scope` rooted
|
|
316
|
+
at `data-rvm-ui`, with `data-rvm-host-content` as the lower boundary for app component
|
|
317
|
+
examples and concepts. This prevents the package's unlayered utilities from overriding
|
|
318
|
+
an app's identically named utilities (for example, a host's translucent `bos:bg-info`
|
|
319
|
+
banner). Package-owned pages and chrome opt into the scope; host content does not.
|
|
320
|
+
This requires a browser supporting CSS `@scope`, alongside the package's existing
|
|
321
|
+
modern Tailwind CSS requirements. No host global theme variables are reassigned.
|
|
322
|
+
|
|
323
|
+
## License
|
|
324
|
+
|
|
325
|
+
Copyright 2026 Snyder Technologies LLC. Licensed under the Apache License, Version 2.0; see `LICENSE` and `NOTICE`.
|
|
326
|
+
The license grants no rights in the trademarks, brand names or logos of Snyder Technologies LLC or its customers.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RouterAdapter } from "./catalog/router.js";
|
|
2
|
+
import { NotesStore, ReviewApp } from "./catalog/types.js";
|
|
3
|
+
export declare function ReviewMode({ app, router, designBase, notesStore, initialTheme, onThemeChange }: {
|
|
4
|
+
app: ReviewApp;
|
|
5
|
+
router: RouterAdapter;
|
|
6
|
+
designBase?: string;
|
|
7
|
+
notesStore?: NotesStore;
|
|
8
|
+
/** The host's current theme, for a host that keeps it in its own state rather than on
|
|
9
|
+
* `<html data-theme>`. Without it the bar starts from `data-theme`, then its remembered choice. */
|
|
10
|
+
initialTheme?: 'light' | 'dark';
|
|
11
|
+
onThemeChange?: (theme: 'light' | 'dark') => void;
|
|
12
|
+
}): import("react").ReactPortal | null;
|