npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@proto.ui/adapter-vue2

v0.3.0

Published

Translates Proto UI prototypes into Vue 2.6 component options for official Web Adapter use.

Downloads

439

Readme

@proto.ui/adapter-vue2

Translates Proto UI prototypes into Vue 2.6 component options for the official Vue 2 Web Adapter profile.

Status

The adapter targets Vue >=2.6.0 <2.7 on the Web under profile A-VUE-2-0001. It joined the public package set in 0.3.0-alpha.0 and shipped in 0.3.0-rc.2. RC.2 release notes

Usage

Inject the Vue 2 runtime and adapt a Proto UI prototype:

import Vue from 'vue';
import { createVue2Adapter } from '@proto.ui/adapter-vue2';

const adapt = createVue2Adapter(Vue);
const Component = adapt(prototype);

The Adapter uses Vue 2 options lifecycle and render(h) APIs; it does not require the Vue 2.7 Composition API. @proto.ui/adapter-vue remains the separate Vue 3 Adapter.

On component destruction, the owning Runtime finishes State disconnect notifications and subscription cleanup before the Adapter invalidates exposed callables. Retained callables become unavailable after terminal disposal; repeatable view detach keeps the instance's exposed surfaces alive.

Terminal owner destruction supersedes a pending Presence leave transition rather than waiting for its duration. Exposed callables remain available to terminal cleanup until the Runtime completes that pass. In the ordinary pending-leave case, cleanup and invalidation finish before $destroy() returns. The availability boundary is Runtime terminal completion, including when destruction reenters an already-running cleanup callback; component destruction beginning is not a separate invalidation boundary. This does not turn a repeatable view detach into terminal disposal.

The beforeDestroy hook returns the Runtime disposal promise to Vue 2. Disposal rejection is reported through Vue's ancestor errorCaptured hooks and Vue.config.errorHandler (or Vue's default error reporting), with the original rejection value. Vue does not await that promise before completing $destroy(); this reporting bridge defines neither recovery nor continuation for other lifecycle callback failures.

Document theme

The default colorScheme reader follows root class / data-theme markers and then the system preference. Mounted colorScheme Rule consumers update their existing style contribution when that effective value changes; view detach and terminal disposal release their subscription.

The guarantee is limited to the default getter in same-document light DOM without intervening local theme markers. An explicit getMeta keeps sampled behavior; subtree, ShadowRoot and cross-document equivalence remain outside this slice. See C-RULE-COLOR-SCHEME-0001 and T-RULE-COLOR-SCHEME-0001, both draft.

References

  • spec/adapters/A-VUE-2-0001.yaml
  • internal/records/2026-08-26-vue2-official-adapter-admission.zh-CN.md

License

MIT