@iksnerd/blazon 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +264 -2
- package/THIRD-PARTY-NOTICES.md +60 -0
- package/bin/blazon.js +4 -0
- package/dist/builder/site-builder.d.ts +10 -0
- package/dist/builder/site-builder.d.ts.map +1 -0
- package/dist/chunks/site-builder-vpzUWoiA.js +13777 -0
- package/dist/cli/commands/approvals.d.ts +8 -0
- package/dist/cli/commands/approvals.d.ts.map +1 -0
- package/dist/cli/commands/build.d.ts +8 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/check.d.ts +33 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/cwd.d.ts +14 -0
- package/dist/cli/commands/cwd.d.ts.map +1 -0
- package/dist/cli/commands/dev.d.ts +5 -0
- package/dist/cli/commands/dev.d.ts.map +1 -0
- package/dist/cli/commands/doctor.d.ts +34 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/drift.d.ts +11 -0
- package/dist/cli/commands/drift.d.ts.map +1 -0
- package/dist/cli/commands/explain.d.ts +5 -0
- package/dist/cli/commands/explain.d.ts.map +1 -0
- package/dist/cli/commands/init.d.ts +46 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/mcp-check.d.ts +57 -0
- package/dist/cli/commands/mcp-check.d.ts.map +1 -0
- package/dist/cli/commands/mcp.d.ts +13 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/pin.d.ts +7 -0
- package/dist/cli/commands/pin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.d.ts +32 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/preview.d.ts +5 -0
- package/dist/cli/commands/preview.d.ts.map +1 -0
- package/dist/cli/commands/tokens.d.ts +5 -0
- package/dist/cli/commands/tokens.d.ts.map +1 -0
- package/dist/cli/errors.d.ts +53 -0
- package/dist/cli/errors.d.ts.map +1 -0
- package/dist/cli/handlers/brand.d.ts +7 -0
- package/dist/cli/handlers/brand.d.ts.map +1 -0
- package/dist/cli/handlers/can.d.ts +7 -0
- package/dist/cli/handlers/can.d.ts.map +1 -0
- package/dist/cli/handlers/fonts.d.ts +4 -0
- package/dist/cli/handlers/fonts.d.ts.map +1 -0
- package/dist/cli/handlers/get.d.ts +7 -0
- package/dist/cli/handlers/get.d.ts.map +1 -0
- package/dist/cli/handlers/index.d.ts +8 -0
- package/dist/cli/handlers/index.d.ts.map +1 -0
- package/dist/cli/handlers/list.d.ts +7 -0
- package/dist/cli/handlers/list.d.ts.map +1 -0
- package/dist/cli/handlers/logo.d.ts +4 -0
- package/dist/cli/handlers/logo.d.ts.map +1 -0
- package/dist/cli/handlers/rules.d.ts +10 -0
- package/dist/cli/handlers/rules.d.ts.map +1 -0
- package/dist/cli/handlers/types.d.ts +17 -0
- package/dist/cli/handlers/types.d.ts.map +1 -0
- package/dist/cli/help.d.ts +18 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +3850 -0
- package/dist/cli/init-flow.d.ts +24 -0
- package/dist/cli/init-flow.d.ts.map +1 -0
- package/dist/cli/init-ui.d.ts +20 -0
- package/dist/cli/init-ui.d.ts.map +1 -0
- package/dist/cli/json.d.ts +18 -0
- package/dist/cli/json.d.ts.map +1 -0
- package/dist/cli/operations.d.ts +11 -0
- package/dist/cli/operations.d.ts.map +1 -0
- package/dist/cli/options.d.ts +8 -0
- package/dist/cli/options.d.ts.map +1 -0
- package/dist/cli/project.d.ts +8 -0
- package/dist/cli/project.d.ts.map +1 -0
- package/dist/cli/read.d.ts +13 -0
- package/dist/cli/read.d.ts.map +1 -0
- package/dist/cli/where.d.ts +10 -0
- package/dist/cli/where.d.ts.map +1 -0
- package/dist/core/assets/categories.d.ts +47 -0
- package/dist/core/assets/categories.d.ts.map +1 -0
- package/dist/core/assets/fields.d.ts +12 -0
- package/dist/core/assets/fields.d.ts.map +1 -0
- package/dist/core/assets/image-size.d.ts +10 -0
- package/dist/core/assets/image-size.d.ts.map +1 -0
- package/dist/core/assets/measure.d.ts +22 -0
- package/dist/core/assets/measure.d.ts.map +1 -0
- package/dist/core/assets/scanner.d.ts +26 -0
- package/dist/core/assets/scanner.d.ts.map +1 -0
- package/dist/core/assets/sidecar.d.ts +22 -0
- package/dist/core/assets/sidecar.d.ts.map +1 -0
- package/dist/core/blazon-pin.d.ts +36 -0
- package/dist/core/blazon-pin.d.ts.map +1 -0
- package/dist/core/brand/export.d.ts +128 -0
- package/dist/core/brand/export.d.ts.map +1 -0
- package/dist/core/brand/schema.d.ts +1000 -0
- package/dist/core/brand/schema.d.ts.map +1 -0
- package/dist/core/brand-theme.d.ts +16 -0
- package/dist/core/brand-theme.d.ts.map +1 -0
- package/dist/core/checker/approvals.d.ts +15 -0
- package/dist/core/checker/approvals.d.ts.map +1 -0
- package/dist/core/checker/cascade.d.ts +8 -0
- package/dist/core/checker/cascade.d.ts.map +1 -0
- package/dist/core/checker/catalogue.d.ts +593 -0
- package/dist/core/checker/catalogue.d.ts.map +1 -0
- package/dist/core/checker/contrast.d.ts +30 -0
- package/dist/core/checker/contrast.d.ts.map +1 -0
- package/dist/core/checker/duplicates.d.ts +3 -0
- package/dist/core/checker/duplicates.d.ts.map +1 -0
- package/dist/core/checker/fixes.d.ts +6 -0
- package/dist/core/checker/fixes.d.ts.map +1 -0
- package/dist/core/checker/font-meta.d.ts +8 -0
- package/dist/core/checker/font-meta.d.ts.map +1 -0
- package/dist/core/checker/index.d.ts +23 -0
- package/dist/core/checker/index.d.ts.map +1 -0
- package/dist/core/checker/location.d.ts +7 -0
- package/dist/core/checker/location.d.ts.map +1 -0
- package/dist/core/checker/logo-rules.d.ts +19 -0
- package/dist/core/checker/logo-rules.d.ts.map +1 -0
- package/dist/core/checker/logo-surfaces.d.ts +7 -0
- package/dist/core/checker/logo-surfaces.d.ts.map +1 -0
- package/dist/core/checker/page-tokens.d.ts +5 -0
- package/dist/core/checker/page-tokens.d.ts.map +1 -0
- package/dist/core/checker/print.d.ts +9 -0
- package/dist/core/checker/print.d.ts.map +1 -0
- package/dist/core/checker/proportion.d.ts +3 -0
- package/dist/core/checker/proportion.d.ts.map +1 -0
- package/dist/core/checker/review.d.ts +40 -0
- package/dist/core/checker/review.d.ts.map +1 -0
- package/dist/core/checker/source.d.ts +4 -0
- package/dist/core/checker/source.d.ts.map +1 -0
- package/dist/core/checker/spdx.d.ts +8 -0
- package/dist/core/checker/spdx.d.ts.map +1 -0
- package/dist/core/checker/tier.d.ts +3 -0
- package/dist/core/checker/tier.d.ts.map +1 -0
- package/dist/core/checker/usage.d.ts +4 -0
- package/dist/core/checker/usage.d.ts.map +1 -0
- package/dist/core/checker/variables.d.ts +8 -0
- package/dist/core/checker/variables.d.ts.map +1 -0
- package/dist/core/colors.d.ts +10 -0
- package/dist/core/colors.d.ts.map +1 -0
- package/dist/core/config/defaults.d.ts +3 -0
- package/dist/core/config/defaults.d.ts.map +1 -0
- package/dist/core/config/index.d.ts +15 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/validate.d.ts +21 -0
- package/dist/core/config/validate.d.ts.map +1 -0
- package/dist/core/config/vocabulary.d.ts +10 -0
- package/dist/core/config/vocabulary.d.ts.map +1 -0
- package/dist/core/confine.d.ts +25 -0
- package/dist/core/confine.d.ts.map +1 -0
- package/dist/core/docs/directives.d.ts +152 -0
- package/dist/core/docs/directives.d.ts.map +1 -0
- package/dist/core/docs/parser.d.ts +7 -0
- package/dist/core/docs/parser.d.ts.map +1 -0
- package/dist/core/docs/sections.d.ts +11 -0
- package/dist/core/docs/sections.d.ts.map +1 -0
- package/dist/core/drift/compare.d.ts +30 -0
- package/dist/core/drift/compare.d.ts.map +1 -0
- package/dist/core/drift/read.d.ts +22 -0
- package/dist/core/drift/read.d.ts.map +1 -0
- package/dist/core/email-signature.d.ts +35 -0
- package/dist/core/email-signature.d.ts.map +1 -0
- package/dist/core/emit.d.ts +22 -0
- package/dist/core/emit.d.ts.map +1 -0
- package/dist/core/fonts.d.ts +43 -0
- package/dist/core/fonts.d.ts.map +1 -0
- package/dist/core/icons/icon-sets.d.ts +22 -0
- package/dist/core/icons/icon-sets.d.ts.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/init/answers.d.ts +45 -0
- package/dist/core/init/answers.d.ts.map +1 -0
- package/dist/core/init/from-site/apply.d.ts +7 -0
- package/dist/core/init/from-site/apply.d.ts.map +1 -0
- package/dist/core/init/from-site/clean-colors.d.ts +21 -0
- package/dist/core/init/from-site/clean-colors.d.ts.map +1 -0
- package/dist/core/init/from-site/colors.d.ts +10 -0
- package/dist/core/init/from-site/colors.d.ts.map +1 -0
- package/dist/core/init/from-site/context.d.ts +24 -0
- package/dist/core/init/from-site/context.d.ts.map +1 -0
- package/dist/core/init/from-site/fonts.d.ts +10 -0
- package/dist/core/init/from-site/fonts.d.ts.map +1 -0
- package/dist/core/init/from-site/html.d.ts +10 -0
- package/dist/core/init/from-site/html.d.ts.map +1 -0
- package/dist/core/init/from-site/index.d.ts +6 -0
- package/dist/core/init/from-site/index.d.ts.map +1 -0
- package/dist/core/init/from-site/inspect.d.ts +4 -0
- package/dist/core/init/from-site/inspect.d.ts.map +1 -0
- package/dist/core/init/from-site/logo.d.ts +20 -0
- package/dist/core/init/from-site/logo.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/colors.d.ts +4 -0
- package/dist/core/init/from-site/sections/colors.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/config.d.ts +10 -0
- package/dist/core/init/from-site/sections/config.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/directives.d.ts +3 -0
- package/dist/core/init/from-site/sections/directives.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/fonts.d.ts +8 -0
- package/dist/core/init/from-site/sections/fonts.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/intro.d.ts +4 -0
- package/dist/core/init/from-site/sections/intro.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/logo.d.ts +9 -0
- package/dist/core/init/from-site/sections/logo.d.ts.map +1 -0
- package/dist/core/init/from-site/sections/placeholder.d.ts +5 -0
- package/dist/core/init/from-site/sections/placeholder.d.ts.map +1 -0
- package/dist/core/init/from-site/tree.d.ts +14 -0
- package/dist/core/init/from-site/tree.d.ts.map +1 -0
- package/dist/core/init/from-site/types.d.ts +37 -0
- package/dist/core/init/from-site/types.d.ts.map +1 -0
- package/dist/core/init/palette.d.ts +34 -0
- package/dist/core/init/palette.d.ts.map +1 -0
- package/dist/core/init/prompts.d.ts +78 -0
- package/dist/core/init/prompts.d.ts.map +1 -0
- package/dist/core/init/shared/google-fonts.d.ts +4 -0
- package/dist/core/init/shared/google-fonts.d.ts.map +1 -0
- package/dist/core/init/shared/hex.d.ts +6 -0
- package/dist/core/init/shared/hex.d.ts.map +1 -0
- package/dist/core/init/shared/svg.d.ts +3 -0
- package/dist/core/init/shared/svg.d.ts.map +1 -0
- package/dist/core/init/vocabulary.d.ts +42 -0
- package/dist/core/init/vocabulary.d.ts.map +1 -0
- package/dist/core/inputs.d.ts +25 -0
- package/dist/core/inputs.d.ts.map +1 -0
- package/dist/core/logo/lockup.d.ts +54 -0
- package/dist/core/logo/lockup.d.ts.map +1 -0
- package/dist/core/logo.d.ts +23 -0
- package/dist/core/logo.d.ts.map +1 -0
- package/dist/core/mcp-config.d.ts +65 -0
- package/dist/core/mcp-config.d.ts.map +1 -0
- package/dist/core/operations/check.d.ts +8 -0
- package/dist/core/operations/check.d.ts.map +1 -0
- package/dist/core/operations/index.d.ts +7 -0
- package/dist/core/operations/index.d.ts.map +1 -0
- package/dist/core/operations/limits.d.ts +6 -0
- package/dist/core/operations/limits.d.ts.map +1 -0
- package/dist/core/operations/list.d.ts +8 -0
- package/dist/core/operations/list.d.ts.map +1 -0
- package/dist/core/operations/project.d.ts +10 -0
- package/dist/core/operations/project.d.ts.map +1 -0
- package/dist/core/operations/types.d.ts +96 -0
- package/dist/core/operations/types.d.ts.map +1 -0
- package/dist/core/operations/validate.d.ts +4 -0
- package/dist/core/operations/validate.d.ts.map +1 -0
- package/dist/core/order.d.ts +9 -0
- package/dist/core/order.d.ts.map +1 -0
- package/dist/core/outputs.d.ts +22 -0
- package/dist/core/outputs.d.ts.map +1 -0
- package/dist/core/package-name.d.ts +3 -0
- package/dist/core/package-name.d.ts.map +1 -0
- package/dist/core/package-root.d.ts +3 -0
- package/dist/core/package-root.d.ts.map +1 -0
- package/dist/core/plugin-name.d.ts +27 -0
- package/dist/core/plugin-name.d.ts.map +1 -0
- package/dist/core/preflight.d.ts +10 -0
- package/dist/core/preflight.d.ts.map +1 -0
- package/dist/core/read/can.d.ts +44 -0
- package/dist/core/read/can.d.ts.map +1 -0
- package/dist/core/read/fonts.d.ts +47 -0
- package/dist/core/read/fonts.d.ts.map +1 -0
- package/dist/core/read/index.d.ts +8 -0
- package/dist/core/read/index.d.ts.map +1 -0
- package/dist/core/read/list.d.ts +28 -0
- package/dist/core/read/list.d.ts.map +1 -0
- package/dist/core/read/logo.d.ts +34 -0
- package/dist/core/read/logo.d.ts.map +1 -0
- package/dist/core/read/lookup.d.ts +9 -0
- package/dist/core/read/lookup.d.ts.map +1 -0
- package/dist/core/read/rules.d.ts +80 -0
- package/dist/core/read/rules.d.ts.map +1 -0
- package/dist/core/read/token.d.ts +46 -0
- package/dist/core/read/token.d.ts.map +1 -0
- package/dist/core/shipped-names.d.ts +9 -0
- package/dist/core/shipped-names.d.ts.map +1 -0
- package/dist/core/starter.d.ts +31 -0
- package/dist/core/starter.d.ts.map +1 -0
- package/dist/core/suggest.d.ts +7 -0
- package/dist/core/suggest.d.ts.map +1 -0
- package/dist/core/tokens/alias.d.ts +18 -0
- package/dist/core/tokens/alias.d.ts.map +1 -0
- package/dist/core/tokens/contexts.d.ts +10 -0
- package/dist/core/tokens/contexts.d.ts.map +1 -0
- package/dist/core/tokens/formatters/css.d.ts +15 -0
- package/dist/core/tokens/formatters/css.d.ts.map +1 -0
- package/dist/core/tokens/formatters/json.d.ts +4 -0
- package/dist/core/tokens/formatters/json.d.ts.map +1 -0
- package/dist/core/tokens/formatters/tailwind.d.ts +37 -0
- package/dist/core/tokens/formatters/tailwind.d.ts.map +1 -0
- package/dist/core/tokens/formatters/ts.d.ts +6 -0
- package/dist/core/tokens/formatters/ts.d.ts.map +1 -0
- package/dist/core/tokens/groups.d.ts +44 -0
- package/dist/core/tokens/groups.d.ts.map +1 -0
- package/dist/core/tokens/key-lines.d.ts +8 -0
- package/dist/core/tokens/key-lines.d.ts.map +1 -0
- package/dist/core/tokens/load.d.ts +12 -0
- package/dist/core/tokens/load.d.ts.map +1 -0
- package/dist/core/tokens/merge.d.ts +17 -0
- package/dist/core/tokens/merge.d.ts.map +1 -0
- package/dist/core/tokens/names.d.ts +5 -0
- package/dist/core/tokens/names.d.ts.map +1 -0
- package/dist/core/tokens/resolve.d.ts +8 -0
- package/dist/core/tokens/resolve.d.ts.map +1 -0
- package/dist/core/tokens/resolver/compile.d.ts +17 -0
- package/dist/core/tokens/resolver/compile.d.ts.map +1 -0
- package/dist/core/tokens/resolver/inputs.d.ts +7 -0
- package/dist/core/tokens/resolver/inputs.d.ts.map +1 -0
- package/dist/core/tokens/resolver/parse.d.ts +34 -0
- package/dist/core/tokens/resolver/parse.d.ts.map +1 -0
- package/dist/core/tokens/resolver/sources.d.ts +17 -0
- package/dist/core/tokens/resolver/sources.d.ts.map +1 -0
- package/dist/core/tokens/shadcn.d.ts +43 -0
- package/dist/core/tokens/shadcn.d.ts.map +1 -0
- package/dist/core/tokens/theme.d.ts +17 -0
- package/dist/core/tokens/theme.d.ts.map +1 -0
- package/dist/core/tokens/values/color.d.ts +2 -0
- package/dist/core/tokens/values/color.d.ts.map +1 -0
- package/dist/core/tokens/values/composite.d.ts +7 -0
- package/dist/core/tokens/values/composite.d.ts.map +1 -0
- package/dist/core/tokens/values/font.d.ts +3 -0
- package/dist/core/tokens/values/font.d.ts.map +1 -0
- package/dist/core/tokens/values/index.d.ts +9 -0
- package/dist/core/tokens/values/index.d.ts.map +1 -0
- package/dist/core/tokens/values/shared.d.ts +5 -0
- package/dist/core/tokens/values/shared.d.ts.map +1 -0
- package/dist/core/tokens/values/simple.d.ts +3 -0
- package/dist/core/tokens/values/simple.d.ts.map +1 -0
- package/dist/core/tokens/values/units.d.ts +3 -0
- package/dist/core/tokens/values/units.d.ts.map +1 -0
- package/dist/core/tokens/walk.d.ts +30 -0
- package/dist/core/tokens/walk.d.ts.map +1 -0
- package/dist/core/version.d.ts +3 -0
- package/dist/core/version.d.ts.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/plugins/host/admit.d.ts +35 -0
- package/dist/plugins/host/admit.d.ts.map +1 -0
- package/dist/plugins/host/call.d.ts +59 -0
- package/dist/plugins/host/call.d.ts.map +1 -0
- package/dist/plugins/host/check.d.ts +54 -0
- package/dist/plugins/host/check.d.ts.map +1 -0
- package/dist/plugins/host/scrub.d.ts +17 -0
- package/dist/plugins/host/scrub.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +14 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/pins/interpreter.d.ts +49 -0
- package/dist/plugins/pins/interpreter.d.ts.map +1 -0
- package/dist/plugins/pins/lock.d.ts +47 -0
- package/dist/plugins/pins/lock.d.ts.map +1 -0
- package/dist/plugins/pins/pin.d.ts +65 -0
- package/dist/plugins/pins/pin.d.ts.map +1 -0
- package/dist/plugins/pins/shipped.d.ts +40 -0
- package/dist/plugins/pins/shipped.d.ts.map +1 -0
- package/dist/plugins/roles/breaker.d.ts +18 -0
- package/dist/plugins/roles/breaker.d.ts.map +1 -0
- package/dist/plugins/roles/check-cases.d.ts +4 -0
- package/dist/plugins/roles/check-cases.d.ts.map +1 -0
- package/dist/plugins/roles/dev.d.ts +35 -0
- package/dist/plugins/roles/dev.d.ts.map +1 -0
- package/dist/plugins/roles/fixes.d.ts +24 -0
- package/dist/plugins/roles/fixes.d.ts.map +1 -0
- package/dist/plugins/roles/gate.d.ts +26 -0
- package/dist/plugins/roles/gate.d.ts.map +1 -0
- package/dist/plugins/roles/integrate.d.ts +12 -0
- package/dist/plugins/roles/integrate.d.ts.map +1 -0
- package/dist/plugins/roles/roles.d.ts +69 -0
- package/dist/plugins/roles/roles.d.ts.map +1 -0
- package/dist/plugins/wire/environment.d.ts +9 -0
- package/dist/plugins/wire/environment.d.ts.map +1 -0
- package/dist/plugins/wire/forms.d.ts +13 -0
- package/dist/plugins/wire/forms.d.ts.map +1 -0
- package/dist/plugins/wire/limits.d.ts +11 -0
- package/dist/plugins/wire/limits.d.ts.map +1 -0
- package/dist/plugins/wire/manifest.d.ts +31 -0
- package/dist/plugins/wire/manifest.d.ts.map +1 -0
- package/dist/plugins/wire/profile.d.ts +36 -0
- package/dist/plugins/wire/profile.d.ts.map +1 -0
- package/dist/plugins/wire/text.d.ts +14 -0
- package/dist/plugins/wire/text.d.ts.map +1 -0
- package/dist/server/assets.d.ts +13 -0
- package/dist/server/assets.d.ts.map +1 -0
- package/dist/server/coalesce.d.ts +12 -0
- package/dist/server/coalesce.d.ts.map +1 -0
- package/dist/server/data-script.d.ts +8 -0
- package/dist/server/data-script.d.ts.map +1 -0
- package/dist/server/dev-server.d.ts +34 -0
- package/dist/server/dev-server.d.ts.map +1 -0
- package/dist/server/editor-guard.d.ts +13 -0
- package/dist/server/editor-guard.d.ts.map +1 -0
- package/dist/server/error-reporter.d.ts +11 -0
- package/dist/server/error-reporter.d.ts.map +1 -0
- package/dist/server/icon-sets.d.ts +9 -0
- package/dist/server/icon-sets.d.ts.map +1 -0
- package/dist/server/plugin.d.ts +4 -0
- package/dist/server/plugin.d.ts.map +1 -0
- package/dist/server/preview-guard.d.ts +11 -0
- package/dist/server/preview-guard.d.ts.map +1 -0
- package/dist/types/assets.d.ts +130 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/catalog.d.ts +95 -0
- package/dist/types/catalog.d.ts.map +1 -0
- package/dist/types/config.d.ts +97 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/data.d.ts +38 -0
- package/dist/types/data.d.ts.map +1 -0
- package/dist/types/docs.d.ts +47 -0
- package/dist/types/docs.d.ts.map +1 -0
- package/dist/types/findings.d.ts +18 -0
- package/dist/types/findings.d.ts.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/parsed.d.ts +86 -0
- package/dist/types/parsed.d.ts.map +1 -0
- package/dist/types/theme.d.ts +19 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/tokens.d.ts +101 -0
- package/dist/types/tokens.d.ts.map +1 -0
- package/dist/ui/assets/geist-OFL.txt +93 -0
- package/dist/ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/ui/assets/index-BdbihVvH.js +77 -0
- package/dist/ui/assets/index-DluSqfla.css +2 -0
- package/dist/ui/index.html +14 -0
- package/package.json +151 -4
- package/plugins/blazon.brand-deck/README.md +38 -0
- package/plugins/blazon.brand-deck/bin/blazon-blazon.brand-deck./360/237/224/214 +2695 -0
- package/plugins/blazon.brand-deck/package.json +3 -0
- package/plugins/blazon.copy/README.md +29 -0
- package/plugins/blazon.copy/bin/blazon-blazon.copy./360/237/224/214 +438 -0
- package/plugins/blazon.copy/package.json +3 -0
- package/plugins/blazon.favicons/README.md +13 -0
- package/plugins/blazon.favicons/bin/blazon-blazon.favicons./360/237/224/214 +8816 -0
- package/plugins/blazon.favicons/package.json +3 -0
- package/plugins/blazon.logo-geometry/README.md +5 -0
- package/plugins/blazon.logo-geometry/bin/blazon-blazon.logo-geometry./360/237/224/214 +1522 -0
- package/plugins/blazon.logo-geometry/package.json +3 -0
- package/plugins/blazon.logo-kit/README.md +5 -0
- package/plugins/blazon.logo-kit/bin/blazon-blazon.logo-kit./360/237/224/214 +617 -0
- package/plugins/blazon.logo-kit/package.json +3 -0
- package/plugins/blazon.office-template/README.md +29 -0
- package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +1788 -0
- package/plugins/blazon.office-template/package.json +3 -0
- package/plugins/blazon.platform-tokens/README.md +22 -0
- package/plugins/blazon.platform-tokens/bin/blazon-blazon.platform-tokens./360/237/224/214 +8418 -0
- package/plugins/blazon.platform-tokens/package.json +3 -0
- package/plugins/blazon.press-kit/README.md +17 -0
- package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +897 -0
- package/plugins/blazon.press-kit/package.json +3 -0
- package/plugins/blazon.print-book/README.md +38 -0
- package/plugins/blazon.print-book/bin/blazon-blazon.print-book./360/237/224/214 +9262 -0
- package/plugins/blazon.print-book/package.json +3 -0
- package/plugins/blazon.social-cards/README.md +5 -0
- package/plugins/blazon.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +1165 -0
- package/plugins/blazon.social-cards/package.json +3 -0
- package/plugins/shipped.lock +75 -0
- package/template/AGENTS.md +55 -0
- package/template/CLAUDE.md +1 -0
- package/template/assets/backgrounds/aurora.json +5 -0
- package/template/assets/backgrounds/aurora.svg +39 -0
- package/template/assets/construction/blazon-mark.json +9 -0
- package/template/assets/construction/blazon-mark.svg +54 -0
- package/template/assets/icons/arrow-right.json +5 -0
- package/template/assets/icons/arrow-right.svg +1 -0
- package/template/assets/icons/check.json +5 -0
- package/template/assets/icons/check.svg +1 -0
- package/template/assets/icons/download.json +5 -0
- package/template/assets/icons/download.svg +1 -0
- package/template/assets/icons/file.json +5 -0
- package/template/assets/icons/file.svg +1 -0
- package/template/assets/icons/token.json +5 -0
- package/template/assets/icons/token.svg +1 -0
- package/template/assets/icons/warning.json +5 -0
- package/template/assets/icons/warning.svg +1 -0
- package/template/assets/logos/blazon-bone.json +6 -0
- package/template/assets/logos/blazon-bone.svg +1 -0
- package/template/assets/logos/blazon-graphite.json +6 -0
- package/template/assets/logos/blazon-graphite.svg +1 -0
- package/template/assets/logos/blazon-mark.json +6 -0
- package/template/assets/logos/blazon-mark.svg +1 -0
- package/template/blazon.json +104 -0
- package/template/blazon.resolver.json +46 -0
- package/template/docs/01-principles.md +47 -0
- package/template/docs/02-logo.md +43 -0
- package/template/docs/03-color.md +79 -0
- package/template/docs/04-type.md +36 -0
- package/template/docs/05-form.md +80 -0
- package/template/docs/06-layout.md +28 -0
- package/template/docs/07-icons.md +22 -0
- package/template/docs/08-diagrams.md +20 -0
- package/template/docs/09-social.md +21 -0
- package/template/docs/10-applications.md +20 -0
- package/template/docs/11-voice.md +74 -0
- package/template/docs/12-web.md +167 -0
- package/template/fonts/IBMPlexMono-Regular-latin.woff2 +0 -0
- package/template/fonts/IBMPlexMono-SemiBold-latin.woff2 +0 -0
- package/template/fonts/OFL.txt +93 -0
- package/template/tokens/colors.json +257 -0
- package/template/tokens/form.json +199 -0
- package/template/tokens/social.json +26 -0
- package/template/tokens/spacing.json +65 -0
- package/template/tokens/theme/dark.json +121 -0
- package/template/tokens/typography.json +233 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ParsedTokens, PatternKind, TokenItem } from '../../types/index.js';
|
|
2
|
+
/** A dimension token's size in pixels; undefined when the token is not a px or rem dimension. */
|
|
3
|
+
export declare function dimensionPx(token: TokenItem | undefined): number | undefined;
|
|
4
|
+
export interface SocialFormat {
|
|
5
|
+
/** Path of the format's group, e.g. "social.format.story" */
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
/** Safe-area inset, in px */
|
|
11
|
+
margin?: number;
|
|
12
|
+
/** Column count of the layout grid */
|
|
13
|
+
columns?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface PatternSpec {
|
|
16
|
+
/** Path of the pattern's group, e.g. "pattern.dots" */
|
|
17
|
+
path: string;
|
|
18
|
+
name: string;
|
|
19
|
+
kind: PatternKind;
|
|
20
|
+
/** The repeat: one tile is this many px square */
|
|
21
|
+
size: number;
|
|
22
|
+
/** Dot diameter or line weight, in px; a fraction of the size when the group gives none */
|
|
23
|
+
stroke: number;
|
|
24
|
+
/** A color or gradient, drawn through the pattern */
|
|
25
|
+
ink?: string;
|
|
26
|
+
/** A color or gradient behind it */
|
|
27
|
+
ground?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface Resolved<T> {
|
|
30
|
+
found: T[];
|
|
31
|
+
/** One message per mistake, each starting with the group it is about */
|
|
32
|
+
problems: string[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The social formats a path names: a group with `width` and `height` dimension tokens, or a group of
|
|
36
|
+
* such groups. `margin` (dimension) and `columns` (a whole number) are optional.
|
|
37
|
+
*/
|
|
38
|
+
export declare function formatsAt(tokens: Pick<ParsedTokens, 'items'>, path: string): Resolved<SocialFormat>;
|
|
39
|
+
/**
|
|
40
|
+
* The patterns a path names: a group marked `$extensions["dev.blazon"].pattern` with a kind, holding a
|
|
41
|
+
* `size` dimension and optionally `stroke` (dimension), `ink` and `ground` (color or gradient).
|
|
42
|
+
*/
|
|
43
|
+
export declare function patternsAt(tokens: Pick<ParsedTokens, 'items' | 'groupMeta'>, path: string): Resolved<PatternSpec>;
|
|
44
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAgB1G,iGAAiG;AACjG,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAK5E;AAED,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,2FAA2F;IAC3F,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,wEAAwE;IACxE,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAYD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC,CA+BnG;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,CAkCjH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Where each key of a JSON text sits, found without a parser that would drop the positions. */
|
|
2
|
+
/** The text without one leading byte order mark, which an editor on Windows may write and `JSON.parse` refuses. */
|
|
3
|
+
export declare function stripBom(text: string): string;
|
|
4
|
+
/** The line (1-based) of each key, by dotted path: `color.brand.$value`, `list.1.k` for an array's second item. Only the first of a repeated key is kept. Text that is not JSON gives an empty map. */
|
|
5
|
+
export declare function keyLines(text: string): Map<string, number>;
|
|
6
|
+
/** The line a JSON parser's complaint is about: from "(line L column C)" when the message has it, else from "position N" counted in `text`. */
|
|
7
|
+
export declare function jsonErrorLine(message: string, text: string): number | undefined;
|
|
8
|
+
//# sourceMappingURL=key-lines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-lines.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/key-lines.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mHAAmH;AACnH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,uMAAuM;AACvM,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6E1D;AAED,+IAA+I;AAC/I,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU/E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Finding } from '../../types/index.js';
|
|
2
|
+
import { TokenDocument } from './merge.js';
|
|
3
|
+
import { TokenTree } from './walk.js';
|
|
4
|
+
/** Parses a JSON token file into a document, or records why it could not. */
|
|
5
|
+
export declare function readTokenFile(fullPath: string, name: string, problems: Finding[], shown?: string): TokenDocument | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Reads every `.json` file in `tokensDir` into one token tree (RFC 0001 §1).
|
|
8
|
+
* `root` is what the documents' names are relative to (default: the folder above `tokensDir`). File names are not part of token paths; files merge in name order, and a later
|
|
9
|
+
* definition of the same path replaces an earlier one with a warning.
|
|
10
|
+
*/
|
|
11
|
+
export declare function loadTokenTree(tokensDir: string, root?: string): TokenTree;
|
|
12
|
+
//# sourceMappingURL=load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/load.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAK3C,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,GAAE,MAAa,GAAG,aAAa,GAAG,SAAS,CAkBlI;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,GAAE,MAAgC,GAAG,SAAS,CAoBlG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TokenTree } from './walk.js';
|
|
2
|
+
export interface TokenDocument {
|
|
3
|
+
/** Where the document came from, e.g. "colors.json"; recorded on each of its tokens */
|
|
4
|
+
name: string;
|
|
5
|
+
content: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface LoadOptions {
|
|
8
|
+
/** Warn when a later document redefines a token. Off for resolver sources, where overriding is the point. */
|
|
9
|
+
warnOnRedefinition?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Deep-merges DTCG documents in order, then reads the merged tree (RFC 0001 §1, DTCG Resolver §6.2).
|
|
13
|
+
* Groups merge key by key; a token in a later document replaces the earlier token whole. Because
|
|
14
|
+
* groups merge before types are read, an override with no `$type` still inherits its group's type.
|
|
15
|
+
*/
|
|
16
|
+
export declare function loadTokenDocuments(documents: TokenDocument[], options?: LoadOptions): TokenTree;
|
|
17
|
+
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGvF,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,OAAO,GAAE,WAAgB,GAAG,SAAS,CA0CnG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** CSS custom property for a token path: prefix + kebab-cased path segments. */
|
|
2
|
+
export declare function generateCssVarName(prefix: string, pathParts: string[]): string;
|
|
3
|
+
/** The utility class `formatTypographyCss` emits for a typography token path, e.g. `type.bodyLarge` -> `type-body-large`. */
|
|
4
|
+
export declare function typographyClassName(tokenPath: string): string;
|
|
5
|
+
//# sourceMappingURL=names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/names.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAS9E;AAED,6HAA6H;AAC7H,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ParsedTokens } from '../../types/index.js';
|
|
2
|
+
import { TokenTree } from './walk.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves aliases and types for a loaded token tree and computes CSS-ready values.
|
|
5
|
+
* Never throws on bad tokens: problems are returned for `blazon check` to report.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveTokenTree(tree: TokenTree, cssPrefix?: string): ParsedTokens;
|
|
8
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAyB,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGvD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,SAAO,GAAG,YAAY,CAkDhF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ParsedTokens, TokenContext } from '../../../types/index.js';
|
|
2
|
+
export interface ContextCompilation {
|
|
3
|
+
/** The default context, with `contexts` listing what each other context changes */
|
|
4
|
+
tokens: ParsedTokens;
|
|
5
|
+
/** Every non-default context resolved in full, for checking */
|
|
6
|
+
resolved: {
|
|
7
|
+
context: TokenContext;
|
|
8
|
+
tokens: ParsedTokens;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Compiles tokens through a DTCG resolver document: the defaults of every modifier become the main
|
|
13
|
+
* token set, and each other context is resolved with one modifier changed at a time. Spec violations
|
|
14
|
+
* become `resolver-invalid` errors rather than exceptions, like every other token problem.
|
|
15
|
+
*/
|
|
16
|
+
export declare function compileWithResolver(file: string, root: string, cssPrefix: string, selectors?: Record<string, string>): ContextCompilation;
|
|
17
|
+
//# sourceMappingURL=compile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,YAAY,EAAa,MAAM,yBAAyB,CAAC;AAQ9F,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,MAAM,EAAE,YAAY,CAAC;IACrB,+DAA+D;IAC/D,QAAQ,EAAE;QAAE,OAAO,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAC;CAC7D;AA4BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,kBAAkB,CA0CzI"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The files a resolver document reads: the document itself, and every token file its sources name, as absolute paths
|
|
3
|
+
* (a reference resolves relative to the document). Read leniently, for the dev server's watcher: a document that is
|
|
4
|
+
* missing or does not parse names only itself, so a half-finished edit never throws.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolverInputs(file: string): string[];
|
|
7
|
+
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/inputs.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAgBrD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** DTCG Resolver Module 2025.10 (https://www.designtokens.org/TR/2025.10/resolver/). */
|
|
2
|
+
export declare const RESOLVER_VERSION = "2025.10";
|
|
3
|
+
export declare const DEFAULT_RESOLVER_FILE = "blazon.resolver.json";
|
|
4
|
+
export type Source = Record<string, unknown>;
|
|
5
|
+
export interface ModifierDef {
|
|
6
|
+
name: string;
|
|
7
|
+
contexts: Record<string, Source[]>;
|
|
8
|
+
default: string;
|
|
9
|
+
}
|
|
10
|
+
export type OrderItem = {
|
|
11
|
+
kind: 'set';
|
|
12
|
+
name: string;
|
|
13
|
+
sources: Source[];
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'modifier';
|
|
16
|
+
modifier: ModifierDef;
|
|
17
|
+
};
|
|
18
|
+
export interface Resolver {
|
|
19
|
+
file: string;
|
|
20
|
+
dir: string;
|
|
21
|
+
sets: Record<string, Source[]>;
|
|
22
|
+
modifiers: ModifierDef[];
|
|
23
|
+
order: OrderItem[];
|
|
24
|
+
}
|
|
25
|
+
export declare class ResolverError extends Error {
|
|
26
|
+
}
|
|
27
|
+
export declare function fail(message: string): never;
|
|
28
|
+
/**
|
|
29
|
+
* Names of modifiers, contexts and sets end up in output file names (`tokens.<modifier>.<context>.json`), CSS selectors and CSS comments.
|
|
30
|
+
* The DTCG resolver module does not restrict them; blazon does, so that none can name another folder or close a comment.
|
|
31
|
+
*/
|
|
32
|
+
export declare const RESOLVER_NAME: RegExp;
|
|
33
|
+
export declare function parseResolver(file: string, content: unknown): Resolver;
|
|
34
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/parse.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAE5D,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEvH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,qBAAa,aAAc,SAAQ,KAAK;CAAG;AAM3C,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAE3C;AAOD;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAqB,CAAC;AAoBhD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ,CAwCtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Finding } from '../../../types/index.js';
|
|
2
|
+
import { TokenDocument } from '../merge.js';
|
|
3
|
+
import { Resolver } from './parse.js';
|
|
4
|
+
/** Context choice per modifier; every modifier in the resolver has an entry. */
|
|
5
|
+
export type Selection = Record<string, string>;
|
|
6
|
+
export declare class SourceReader {
|
|
7
|
+
private readonly resolver;
|
|
8
|
+
private readonly root;
|
|
9
|
+
private readonly cache;
|
|
10
|
+
readonly problems: Finding[];
|
|
11
|
+
constructor(resolver: Resolver, root: string);
|
|
12
|
+
documents(selection: Selection): TokenDocument[];
|
|
13
|
+
private context;
|
|
14
|
+
private expand;
|
|
15
|
+
private file;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/sources.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAA0B,KAAK,QAAQ,EAAe,MAAM,YAAY,CAAC;AAEhF,gFAAgF;AAChF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/C,qBAAa,YAAY;IAKrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IALvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoC;IAC1D,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAM;gBAGf,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,EAAE;IAIhD,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,MAAM;IAgBd,OAAO,CAAC,IAAI;CAmBb"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BrandTheme, ShadcnVariable, ThemeRole, TokenItem } from '../../types/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The shadcn/ui variables the theme roles supply, and the role each one reads. The brand book's own
|
|
4
|
+
* stylesheet (`src/viewer/index.css`) derives the same light-mode values with CSS, and a test holds the two
|
|
5
|
+
* together. A variable not here (`destructive`, `chart-1` to `chart-5`) has no role: only `shadcn` in the config fills it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SHADCN_FROM_ROLES: Partial<Record<ShadcnVariable, ThemeRole>>;
|
|
8
|
+
/** The pairs shadcn draws as text on a surface: the first is the surface, the second the text on it. */
|
|
9
|
+
export declare const SHADCN_PAIRS: readonly (readonly [ShadcnVariable, ShadcnVariable])[];
|
|
10
|
+
export interface ShadcnEntry {
|
|
11
|
+
/** The token the value comes from */
|
|
12
|
+
token: string;
|
|
13
|
+
/** Its value in the default context, as CSS */
|
|
14
|
+
value: string;
|
|
15
|
+
/** `theme`: derived from a theme role (named in `role`). `config`: set by `shadcn` in blazon.json */
|
|
16
|
+
from: 'theme' | 'config';
|
|
17
|
+
role?: ThemeRole;
|
|
18
|
+
}
|
|
19
|
+
export interface ShadcnPairNote {
|
|
20
|
+
/** The surface variable and the variable drawn on it */
|
|
21
|
+
background: ShadcnVariable;
|
|
22
|
+
foreground: ShadcnVariable;
|
|
23
|
+
backgroundToken: string;
|
|
24
|
+
foregroundToken: string;
|
|
25
|
+
/** Whether a `pairs` rule of the brand covers these two tokens, so `blazon check` measures their contrast */
|
|
26
|
+
declared: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ShadcnMapping {
|
|
29
|
+
variables: Partial<Record<ShadcnVariable, ShadcnEntry>>;
|
|
30
|
+
/** The variables nothing supplies, in shadcn's order: the ones an agent has to ask about or choose */
|
|
31
|
+
unsupplied: ShadcnVariable[];
|
|
32
|
+
/** Each shadcn pair whose two tokens are known. Absent when the brand declares no `pairs` at all */
|
|
33
|
+
pairs?: ShadcnPairNote[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The one place shadcn variables are derived. A mapping entry wins over the role; a mapping that names a
|
|
37
|
+
* token that does not exist is left out (the compile reports it, `theme-unresolved`).
|
|
38
|
+
*/
|
|
39
|
+
export declare function deriveShadcn(roles: BrandTheme, roleTokens: Partial<Record<ThemeRole, string>>, mapping: Partial<Record<ShadcnVariable, string>> | undefined, items: TokenItem[], declaredPairs?: {
|
|
40
|
+
fg: string;
|
|
41
|
+
bg: string;
|
|
42
|
+
}[]): ShadcnMapping;
|
|
43
|
+
//# sourceMappingURL=shadcn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadcn.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/shadcn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG9H;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,CA2BxE,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,EAW9E,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,qGAAqG;IACrG,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,UAAU,EAAE,cAAc,CAAC;IAC3B,UAAU,EAAE,cAAc,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,6GAA6G;IAC7G,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC;IACxD,sGAAsG;IACtG,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,oGAAoG;IACpG,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAC5D,KAAK,EAAE,SAAS,EAAE,EAClB,aAAa,GAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAO,GAC/C,aAAa,CA0Bf"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BrandTheme, ParsedTokens, ThemeRole, TokenType } from '../../types/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The token names a brand book looks for, per viewer role, when `blazon.json` has no `theme`: the
|
|
4
|
+
* first that exists with the right type wins. They follow the conventions of the brand guidelines blazon was first tested against.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CONVENTIONAL_ROLES: Record<ThemeRole, {
|
|
7
|
+
types: TokenType[];
|
|
8
|
+
paths: string[];
|
|
9
|
+
}>;
|
|
10
|
+
export interface InferredTheme {
|
|
11
|
+
values: BrandTheme;
|
|
12
|
+
/** Where each role came from, e.g. { accent: "interactive.primary" } */
|
|
13
|
+
from: Partial<Record<ThemeRole, string>>;
|
|
14
|
+
}
|
|
15
|
+
/** The roles a brand's own token names fill, for a brand with no `theme` block. */
|
|
16
|
+
export declare function inferTheme(tokens: Pick<ParsedTokens, 'byPath'>): InferredTheme;
|
|
17
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,SAAS,EAAE;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAazF,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAC;IACnB,wEAAwE;IACxE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC1C;AAED,mFAAmF;AACnF,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG,aAAa,CAc9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/color.ts"],"names":[],"mappings":"AAoCA,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAgC5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BlazonExtension, TokenType } from '../../../types/index.js';
|
|
2
|
+
/** CSS default direction (to bottom); RFC 0001 open question 3. */
|
|
3
|
+
export declare const DEFAULT_GRADIENT_ANGLE = 180;
|
|
4
|
+
export declare function css(type: TokenType, value: unknown, blazon: BlazonExtension): string | number;
|
|
5
|
+
/** Composite parts keyed by property, each converted to CSS; used by tokens.ts and per-part CSS variables. */
|
|
6
|
+
export declare function compositeParts(type: TokenType | undefined, value: unknown): Record<string, string | number> | undefined;
|
|
7
|
+
//# sourceMappingURL=composite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/composite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAK1E,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,MAAM,CAAC;AA0D1C,wBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,GAAG,MAAM,CAmB7F;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAsBvH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/font.ts"],"names":[],"mappings":"AAuBA,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQjD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BlazonExtension, TokenType } from '../../../types/index.js';
|
|
2
|
+
export interface CssResult {
|
|
3
|
+
css: string | number;
|
|
4
|
+
problem?: string;
|
|
5
|
+
}
|
|
6
|
+
/** CSS-ready value for a resolved token value; invalid values come back as a problem, not an exception. */
|
|
7
|
+
export declare function toCssValue(type: TokenType | undefined, value: unknown, blazon: BlazonExtension): CssResult;
|
|
8
|
+
export { compositeParts, DEFAULT_GRADIENT_ANGLE } from './composite.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAI1E,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAOD,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,GAAG,SAAS,CAQ1G;AAED,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/shared.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAE1C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAE3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/simple.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAyBzD,wBAAgB,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAqBvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/values/units.ts"],"names":[],"mappings":"AAsBA,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiB5D;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAI7C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Finding, BlazonExtension, GroupMeta, TokenType } from '../../types/index.js';
|
|
2
|
+
/** A token as declared, before aliases are resolved. */
|
|
3
|
+
export interface DeclaredToken {
|
|
4
|
+
path: string;
|
|
5
|
+
file: string;
|
|
6
|
+
rawValue: unknown;
|
|
7
|
+
type: TokenType | undefined;
|
|
8
|
+
description?: string;
|
|
9
|
+
deprecated?: boolean | string;
|
|
10
|
+
extensions?: Record<string, unknown>;
|
|
11
|
+
blazon: BlazonExtension;
|
|
12
|
+
}
|
|
13
|
+
export interface TokenTree {
|
|
14
|
+
tokens: DeclaredToken[];
|
|
15
|
+
groupMeta: GroupMeta[];
|
|
16
|
+
problems: Finding[];
|
|
17
|
+
}
|
|
18
|
+
interface Inherited {
|
|
19
|
+
type: TokenType | undefined;
|
|
20
|
+
deprecated: boolean | string | undefined;
|
|
21
|
+
blazon: BlazonExtension;
|
|
22
|
+
}
|
|
23
|
+
export declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
24
|
+
/** An empty object with no prototype, for building a map from keys that come from a file. */
|
|
25
|
+
export declare function dictionary(): Record<string, unknown>;
|
|
26
|
+
/** Which document each token object came from, so a merged tree still knows its tokens' files. */
|
|
27
|
+
export type SourceMap = WeakMap<object, string>;
|
|
28
|
+
export declare function walk(node: Record<string, unknown>, parts: string[], inherited: Inherited, sources: SourceMap, tree: TokenTree): void;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walk.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/walk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG7I,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACzC,MAAM,EAAE,eAAe,CAAC;CACzB;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEpD;AA4BD,kGAAkG;AAClG,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAiDpI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/core/version.ts"],"names":[],"mappings":"AAIA,2FAA2F;AAC3F,eAAO,MAAM,cAAc,EAAE,MAAwH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blazon - Lightweight Brand Book & Design Token Compiler
|
|
3
|
+
*
|
|
4
|
+
* Public programmatic API
|
|
5
|
+
*/
|
|
6
|
+
export * from './types/index.js';
|
|
7
|
+
export { DEFAULT_CONFIG, loadConfig, resolveConfig, ConfigError, CONFIG_KEYS } from './core/config/index.js';
|
|
8
|
+
export { compileBlazonData, emitTokenOutputs } from './core/index.js';
|
|
9
|
+
export { BRAND_FORMAT, BRAND_VERSION, buildBrandExport, formatBrandJson, type BrandExport, type BrandToken } from './core/brand/export.js';
|
|
10
|
+
export { BRAND_SCHEMA, BRAND_SCHEMA_FILE } from './core/brand/schema.js';
|
|
11
|
+
export * as plugins from './plugins/index.js';
|
|
12
|
+
export { loadTokenTree } from './core/tokens/load.js';
|
|
13
|
+
export { generateCssVarName } from './core/tokens/names.js';
|
|
14
|
+
export type { DeclaredToken, TokenTree } from './core/tokens/walk.js';
|
|
15
|
+
export { aliasTarget } from './core/tokens/alias.js';
|
|
16
|
+
export { resolveTokenTree } from './core/tokens/resolve.js';
|
|
17
|
+
export { toCssValue, compositeParts, DEFAULT_GRADIENT_ANGLE } from './core/tokens/values/index.js';
|
|
18
|
+
export { checkTokens, type CheckFinding, type CheckResult } from './core/checker/index.js';
|
|
19
|
+
export { formatCssTokens, formatTypographyCss } from './core/tokens/formatters/css.js';
|
|
20
|
+
export { formatTsTokens } from './core/tokens/formatters/ts.js';
|
|
21
|
+
export { formatJsonTokens } from './core/tokens/formatters/json.js';
|
|
22
|
+
export { parseDocs } from './core/docs/parser.js';
|
|
23
|
+
export { scanAssets } from './core/assets/scanner.js';
|
|
24
|
+
export { startDevServer, resolveViewer, resolvePrebuiltViewerDir } from './server/dev-server.js';
|
|
25
|
+
export { buildSite } from './builder/site-builder.js';
|
|
26
|
+
export { createBlazonVitePlugin } from './server/plugin.js';
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG7G,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC3I,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAGnG,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3F,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { $ as e, A as t, B as n, Bt as r, Cn as i, Ct as a, Dn as o, Dt as s, E as c, En as l, Et as u, Ft as d, G as f, Gt as p, H as m, Ht as h, J as g, Jt as _, K as v, L as y, M as b, N as x, O as S, P as C, Q as w, R as T, Sn as E, T as D, Tn as O, U as k, Ut as A, V as j, Vt as M, Wt as N, X as P, Y as F, Yt as I, Z as L, _n as R, at as z, bn as B, ct as V, dn as H, dt as U, en as W, et as G, ft as K, gn as q, i as J, it as Y, j as X, lt as Z, mn as Q, n as $, nn as ee, nt as te, o as ne, ot as re, q as ie, qt as ae, r as oe, rt as se, st as ce, t as le, tn as ue, tt as de, ut as fe, vn as pe, vt as me, w as he, wn as ge, xn as _e, yn as ve, yt as ye, z as be } from "./chunks/site-builder-vpzUWoiA.js";
|
|
2
|
+
// src/plugins/index.ts
|
|
3
|
+
var xe = /* @__PURE__ */ o({
|
|
4
|
+
BASE_ENV: () => f,
|
|
5
|
+
BLAZON_CORE_PROFILE: () => he,
|
|
6
|
+
BLAZON_PROFILE: () => D,
|
|
7
|
+
Breaker: () => b,
|
|
8
|
+
DEFAULT_THRESHOLD: () => 3,
|
|
9
|
+
DEFAULT_TIMEOUT: () => 5,
|
|
10
|
+
MANIFEST_TIMEOUT: () => 15,
|
|
11
|
+
MAX_BYTES: () => y,
|
|
12
|
+
MAX_ENTRIES: () => T,
|
|
13
|
+
ManifestError: () => ie,
|
|
14
|
+
Pin: () => be,
|
|
15
|
+
PinMismatch: () => n,
|
|
16
|
+
REDACTED: () => G,
|
|
17
|
+
Refused: () => j,
|
|
18
|
+
STDERR_KEEP: () => se,
|
|
19
|
+
STDOUT_LIMIT: () => Y,
|
|
20
|
+
TIMEOUT_CAP: () => 60,
|
|
21
|
+
admit: () => X,
|
|
22
|
+
blazonRequests: () => c,
|
|
23
|
+
check: () => S,
|
|
24
|
+
decodeManifest: () => g,
|
|
25
|
+
encodings: () => te,
|
|
26
|
+
environment: () => v,
|
|
27
|
+
fileDigest: () => m,
|
|
28
|
+
graphemeCount: () => L,
|
|
29
|
+
isPluginName: () => H,
|
|
30
|
+
manifestTimeout: () => F,
|
|
31
|
+
message: () => w,
|
|
32
|
+
profileTimeoutCap: () => P,
|
|
33
|
+
requestFile: () => x,
|
|
34
|
+
run: () => C,
|
|
35
|
+
scrub: () => de,
|
|
36
|
+
setPointer: () => t,
|
|
37
|
+
treeDigest: () => k,
|
|
38
|
+
truncateGraphemes: () => e
|
|
39
|
+
});
|
|
40
|
+
export { R as ASSET_URL_BASE, i as BLAZON_EXTENSION_KEY, z as BRAND_FORMAT, Z as BRAND_SCHEMA, fe as BRAND_SCHEMA_FILE, re as BRAND_VERSION, W as CONFIG_KEYS, ue as ConfigError, Q as DEFAULT_CONFIG, A as DEFAULT_GRADIENT_ANGLE, pe as INITIATIVE_POSITIONS, ve as LOGO_CORNERS, ge as PATTERN_KINDS, q as SHADCN_VARIABLES, B as STANDARD_LOGO_LOCKUPS, _e as STANDARD_SECTION_IDS, E as STANDARD_SECTION_TITLES, O as STANDARD_USAGE_ROLES, l as TOKEN_TYPES, ae as aliasTarget, ce as buildBrandExport, le as buildSite, a as checkTokens, U as compileBlazonData, N as compositeParts, ne as createBlazonVitePlugin, K as emitTokenOutputs, V as formatBrandJson, u as formatCssTokens, me as formatJsonTokens, ye as formatTsTokens, s as formatTypographyCss, p as generateCssVarName, I as loadConfig, _ as loadTokenTree, r as parseDocs, xe as plugins, ee as resolveConfig, $ as resolvePrebuiltViewerDir, M as resolveTokenTree, oe as resolveViewer, d as scanAssets, J as startDevServer, h as toCssValue };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Manifest } from '../wire/manifest.js';
|
|
2
|
+
export declare const LONG_RUNNING = "long-running";
|
|
3
|
+
export declare const ONE_SHOT_NAMED = "one-shot-named";
|
|
4
|
+
export declare const LABEL_NOT_ACCEPTED = "label-not-accepted";
|
|
5
|
+
export declare const FIELD_NOT_MARKED = "field-not-marked";
|
|
6
|
+
export declare const FIELD_NOT_LISTED = "field-not-listed";
|
|
7
|
+
export declare const UNPINNED_MUST_PIN = "unpinned-must-pin";
|
|
8
|
+
/**
|
|
9
|
+
* What the operator marked secret for one plugin: environment variable names, and JSON Pointers of request fields
|
|
10
|
+
* the host copies a secret into. It comes from the host's configuration, never from the plugin. `delegated` names
|
|
11
|
+
* the labelled variables the host delivers as a capability in place of the value (section 3.7): such a name does not
|
|
12
|
+
* make the plugin must-pin. The host sets it from what it delivers, never from a claim in the plugin's manifest.
|
|
13
|
+
*/
|
|
14
|
+
export interface Labels {
|
|
15
|
+
env?: readonly string[];
|
|
16
|
+
fields?: readonly string[];
|
|
17
|
+
delegated?: readonly string[];
|
|
18
|
+
}
|
|
19
|
+
/** What a role does with data, from the host's profile: a library cannot know it. */
|
|
20
|
+
export interface Flows {
|
|
21
|
+
returnsSecret?: boolean;
|
|
22
|
+
authorizes?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** The host's decision: admitted, with `warn` when it starts unpinned under section 3.6's one-shot exception, or a reason it refuses. */
|
|
25
|
+
export interface Admission {
|
|
26
|
+
admitted: boolean;
|
|
27
|
+
warn: boolean;
|
|
28
|
+
reason: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* `marked`: the request fields the role's schema marks as able to hold a secret. `pinned`: the plugin passed the
|
|
32
|
+
* section 3.4 pin. `mode` is `long-running` or `one-shot-named`.
|
|
33
|
+
*/
|
|
34
|
+
export declare function admit(manifest: Manifest, labels: Labels, marked: readonly string[], pinned: boolean, mode: string, flows: Flows): Admission;
|
|
35
|
+
//# sourceMappingURL=admit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admit.d.ts","sourceRoot":"","sources":["../../../src/plugins/host/admit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKpD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED,qFAAqF;AACrF,MAAM,WAAW,KAAK;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,yIAAyI;AACzI,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAID;;;GAGG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,CAgB3I"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Pin } from '../pins/pin.js';
|
|
2
|
+
import { Shipped } from '../pins/shipped.js';
|
|
3
|
+
/** One start of a plugin's program: for a manifest, a validation or a request. */
|
|
4
|
+
export interface Call {
|
|
5
|
+
program?: string;
|
|
6
|
+
/** `--<host>-manifest` for the manifest call, `--validate` for a validation, none for a request */
|
|
7
|
+
args?: readonly string[];
|
|
8
|
+
/** The request, written byte for byte to a file the plugin reads as its stdin */
|
|
9
|
+
stdin?: Uint8Array;
|
|
10
|
+
/** The variables the manifest lists, with the values the host has resolved */
|
|
11
|
+
env?: Readonly<Record<string, string>>;
|
|
12
|
+
/** Seconds; the manifest's, capped by the host. Zero or absent means the default */
|
|
13
|
+
timeout?: number;
|
|
14
|
+
/** Overrides the core's limit for a role whose profile raises it */
|
|
15
|
+
stdoutLimit?: number;
|
|
16
|
+
/** How many bytes of stderr the result keeps. A check sets it above the host's, so it sees more than the host does */
|
|
17
|
+
stderrKeep?: number;
|
|
18
|
+
/** The exit codes this call's role defines as answers. Absent means the core's (0, 1 and 2). Any other code is a break */
|
|
19
|
+
answers?: readonly number[];
|
|
20
|
+
/** The working directory. Absent leaves it the host's, which a plugin MUST NOT depend on. Not with a pin */
|
|
21
|
+
directory?: string;
|
|
22
|
+
/** A pin to run. The host verifies a copy and runs the copy from its own directory (section 3.4); `program` and `directory` are then left out */
|
|
23
|
+
pin?: Pin;
|
|
24
|
+
/** Where the verified copy is made; the system's temporary directory when absent */
|
|
25
|
+
store?: string;
|
|
26
|
+
/** A plugin that ships in blazon's own package: checked before this call, then run where it is, in its own folder. `program`, `directory` and `pin` are then left out */
|
|
27
|
+
shipped?: Shipped;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* How a call ended: an answer, with a code of the core's (0, 1 or 2) and the plugin's stdout and stderr, or a break,
|
|
31
|
+
* any other end, with `breakReason` saying why. What exit 1 means is a role's, not the core's.
|
|
32
|
+
*/
|
|
33
|
+
export interface Result {
|
|
34
|
+
answered: boolean;
|
|
35
|
+
code: number;
|
|
36
|
+
stdout: Buffer;
|
|
37
|
+
/** At most the call's `stderrKeep`; the rest is discarded */
|
|
38
|
+
stderr: Buffer;
|
|
39
|
+
breakReason: string;
|
|
40
|
+
/** For a break: which kind of cause it was, so the host can say what fixes it */
|
|
41
|
+
cause?: BreakCause;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The kinds of break, each with its own remedy. `place`: a shipped plugin's folder, or a directory above it, can be
|
|
45
|
+
* changed by another user. `install`: a shipped plugin does not match the lock or cannot be read. `pin`: a pin failed
|
|
46
|
+
* its check. `interpreter`: the interpreter of a script was refused. `call`: the call was malformed or its request could
|
|
47
|
+
* not be written, which is the host's own fault. The rest are what the program did.
|
|
48
|
+
*/
|
|
49
|
+
export type BreakCause = 'place' | 'install' | 'pin' | 'interpreter' | 'call' | 'start' | 'timeout' | 'output' | 'pipe' | 'exit';
|
|
50
|
+
/**
|
|
51
|
+
* Write the request to a regular file in a directory only the host can enter, created exclusively at a mode only
|
|
52
|
+
* the host can read, so no other user can open it in between (section 4). Returns the path and a cleanup.
|
|
53
|
+
*/
|
|
54
|
+
export declare function requestFile(data: Uint8Array): {
|
|
55
|
+
path: string;
|
|
56
|
+
cleanup: () => void;
|
|
57
|
+
};
|
|
58
|
+
export declare function run(call: Call): Promise<Result>;
|
|
59
|
+
//# sourceMappingURL=call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/plugins/host/call.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAiC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAajF,kFAAkF;AAClF,MAAM,WAAW,IAAI;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,iFAAiF;IACjF,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,8EAA8E;IAC9E,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvC,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sHAAsH;IACtH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0HAA0H;IAC1H,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iJAAiJ;IACjJ,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yKAAyK;IACzK,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAQD;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAIjI;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAWnF;AAyBD,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCrD"}
|