integrationPackage manifestv3.0.3

integration.storybook

Contract-driven Storybook generation and optional Chromatic integration.

@lssm-tech/integration.storybook
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 3.0.3. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
webnodebun
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEintegration.storybookintegrations

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

3 déclarationsSELECT TO INSPECT

@lssm-tech/integration.storybook

Storybook 10.6 hosts require Vitest 4.1.11 and matching @vitest/browser, @vitest/browser-playwright, and @vitest/coverage-v8 versions. The upstream Storybook addon does not yet support Vitest 5.

The Storybook authoring host uses TypeScript 5.9.3 for its tsconfck parser. This is isolated in catalog:testing; application TypeScript 7 and native TypeScript 6 catalogs are not downgraded.

ContractSpec's provider-neutral bridge from visual-scenario contracts to executable Storybook CSF. It provides React-Vite and Next.js-Vite config factories, deterministic generation and drift checks, typed render/lifecycle/interaction bindings, opt-in package catalogs, documentation and sandbox metadata, browser-test policy, MCP configuration, accessibility defaults, and an external-capture gate for Chromatic.

bash
bun add -d @lssm-tech/integration.storybook storybook \
  @storybook/react-vite @storybook/addon-a11y @storybook/addon-docs \
  @storybook/addon-mcp @storybook/addon-themes @storybook/addon-vitest \
  msw msw-storybook-addon vitest @vitest/browser \
  @vitest/browser-playwright @vitest/coverage-v8

Utiliser @storybook/nextjs-vite instead of @storybook/react-vite for a Next.js vertical. Add chromatic only when external visual review is enabled.

Register the integration through Storybook's supported preset API:

ts
export default {
	framework: { name: '@storybook/nextjs-vite', options: {} },
	stories: [],
	addons: [
		{
			name: '@lssm-tech/integration.storybook/preset',
			options: { contractspec: config },
		},
	],
};
ts
import { generateStorybook } from '@lssm-tech/integration.storybook/generator';

await generateStorybook({
	cwd: process.cwd(),
	configFile: 'contractspec.storybook.ts',
});

Generated story IDs derive from catalog namespace, presentation key, and case key. Filesystem moves therefore do not change review identity. Source and artifact hashes normalize binding paths relative to the consumer workspace, so identical checkouts produce identical evidence on macOS and Linux. Chromatic publication fails closed unless a scenario declares synthetic or sanitized data and capture.external: true.

Package catalogs are never discovered transitively. Import each dependency's StorybookCatalogManifest and pass that manifest object through ContractSpecStorybookConfig.catalogs; string package names are intentionally not resolved or scanned implicitly.

ts
import { communicationOsStorybookCatalog } from '@lssm-tech/module.communication-os/storybook';

export default {
	// framework, globs, bindings, and generated directory omitted
	catalogs: [communicationOsStorybookCatalog],
};

A catalog chooses exactly one delivery mode:

  • storyGlobs points at committed executable CSF.
  • scenarios embeds provider-neutral scenario data for the consumer's deterministic generation step.

Embedded catalogs specify a catalog-level bindingModule, or a binding module on every scenario. Bare package specifiers are preserved in generated CSF; relative modules resolve from the consumer workspace passed as cwd. requirements are resolved from that workspace before generation and fail closed when a package is unavailable. previewAnnotations are appended by the preset so a package can opt in its CSS, providers, decorators, and toolbar globals. Optional coverage data is carried as package-owned governance metadata and participates in the deterministic source hash.

ts
export const designCatalog = {
	namespace: '@example/design-catalog',
	version: '1.0.0',
	scenarios: designScenarios,
	bindingModule: '@example/design-system/storybook-bindings',
	requirements: ['@example/design-system'],
	previewAnnotations: ['@example/design-system/storybook-preview'],
	coverage: { owner: 'design-platform' },
} satisfies StorybookCatalogManifest;

Embedded story IDs use the selected catalog's namespace, presentation key, and case key. Catalog order does not affect IDs, source hashes, artifact hashes, or drift results, and filesystem placement does not affect IDs. Normalized ID and output-file collisions fail generation before any files are written.

Authoring and sandbox contracts

Visual scenarios may reference public components, subcomponents, meta- or story-level renders, decorators, setup hooks, and interaction workflows by binding name. Serializable args, globals, and parameters stay in the contract; React values and executable hooks remain in package-owned binding modules.

Catalogs may contribute locales, context scenarios, feature-flag sets, API states, routes, provider annotations, and public-surface coverage. The host merges them into deterministic toolbar globals and isolated providers. Native and desktop-only catalogs use explicit platform qualification rather than a web rendering shim.

Declared capabilities.

Contract-driven visual testing

Generate Storybook catalogs and publish approved synthetic or sanitized captures to Chromatic.

Use it to

  • Build a reusable Storybook for a product vertical
  • Run governed Chromatic visual review

Requires

  • React
  • Storybook 10.5
  • TypeScript

Choose another boundary when

  • The target is a native-only or non-React component catalog.
  • External visual capture cannot be limited to synthetic or sanitized fixtures.

@lssm-tech/integration.storybookcreateReactViteConfig, createNextjsViteConfig

@lssm-tech/integration.storybook/generatorgenerateStorybook, checkStorybook

Imports and export paths.

18 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

18 imports

Dependencies and related packages.

Runtime dependencies 3
Peer dependencies 14
@storybook/addon-a11y
10.6.0
@storybook/addon-docs
10.6.0
@storybook/addon-mcp
10.6.0
@storybook/addon-themes
10.6.0
@storybook/addon-vitest
10.6.0
@storybook/nextjs-vite
10.6.0
@storybook/react-vite
10.6.0
@vitest/browser
^4.1.11
@vitest/browser-playwright
^4.1.11
chromatic
^18.9.4
msw
2.15.0
msw-storybook-addon
3.0.3
storybook
10.6.0
vitest
^4.1.11
Development dependencies 18
@storybook/addon-a11y
catalog:testing
@storybook/addon-docs
catalog:testing
@storybook/addon-mcp
catalog:testing
@storybook/addon-themes
catalog:testing
@storybook/addon-vitest
catalog:testing
@storybook/react-vite
catalog:testing
@types/bun
catalog:types
@types/node
catalog:types
@vitest/browser
4.1.11
@vitest/browser-playwright
4.1.11
chromatic
catalog:testing
msw
catalog:testing
msw-storybook-addon
catalog:testing
rimraf
catalog:build
typescript
catalog:testing
vitest
4.1.11

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
lint:checknode ../../../scripts/biome.cjs check .
lint:fixnode ../../../scripts/biome.cjs check --write .
testbun test
typechecktsgo --noEmit
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.