feat(themes): add getThemeCatalog (monorepo reconciliation, TIN-1746)#46
Merged
Merged
Conversation
Backport the package-curated theme catalog API that existed only in the tinyland.dev monorepo mirror (tinyvectors 0.2.3) and was lost when the standalone evolved to 0.3.0 along the THEME_PRESETS line — a bidirectional drift. Ports verbatim against the standalone's theme-presets schema (ThemePreset already has label/hasVectors/colors; ThemePresetName matches): - getThemeCatalog(), getThemeCatalogEntry(), getThemePreviewColors(), getThemeVectorColors(); ThemeCatalogEntry + PackageThemeName types. - Export from src/index.ts. Version 0.3.0 -> 0.3.1 (package.json + MODULE.bazel). Prerequisite for tinyland-stores (TIN-1741): themeStore.svelte.ts imports getThemeCatalog from @tummycrypt/tinyvectors. The Bazel module is the SSOT; release = tag v0.3.1 + BCR registration (npm derived/disabled).
The release-metadata verifier requires package.json + MODULE.bazel + BUILD.bazel npm_package versions to match; the catalog PR bumped the first two but not the npm_package rule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
getThemeCatalog/getThemeCatalogEntry/ThemeCatalogEntryexisted only in the tinyland.dev monorepo mirror (tinyvectors 0.2.3) and were never upstreamed; the standalone evolved separately to 0.3.0 (THEME_PRESETSline) — a bidirectional drift the TIN-1721 Phase-0 version sweep missed. Blocks TIN-1741 (tinyland-storesthemeStore.svelte.tsimportsgetThemeCatalog).What
Ports the catalog API into
src/themes/index.tsagainst the standalone's schema (verified compatible:ThemePresetalready carrieslabel/hasVectors/colors[];ThemePresetNameis the exact union). Adds:getThemeCatalog(),getThemeCatalogEntry(),getThemePreviewColors(),getThemeVectorColors()ThemeCatalogEntry,PackageThemeNametypessrc/index.ts; version 0.3.0 → 0.3.1 (package.json + MODULE.bazel)Self-contained (builds on existing
getThemePreset+THEME_PRESETS); no new deps. CI = Bazel//:pkg //:test.Release
Per the model (Bazel module = SSOT, npm derived/disabled): merge → tag
v0.3.1→ BCR-register 0.3.1 → tinyland-stores pins it.