Scoped registries

Added

1.2.4

Scoped registries

Instances can now carry their own component registry, so two docks on one page no longer fight over names.

Registries used to be global. Mounting two instances on the same page meant the second registration silently won, which made embedding a dock inside another product’s page unpredictable.

What changed

  • Each instance now owns its registry, seeded from the built-ins.

  • Passing components to createDock extends that instance only.

  • Registering a duplicate name now warns instead of overwriting silently.

TypeScriptregistry.ts
1const dock = createDock({
2 target: "#app",
3 components: { chart: Chart },
4})

Create a free website with Framer, the website builder loved by startups, designers and agencies.