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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ephox/bridge

v4.7.1

Published

Ui API for TinyMCE 5

Downloads

325

Readme

Description

This package serves as a bridge between:

  • external api configs provided by users though api calls to the public tinymce api
  • internal validated variants of those configs

The idea is that TinyMCE core is developed against the internal strict configuration objects to simplify the code. At the same time, developers of TinyMCE plugins have a nice easy-to-use API that requires minimal configuration.

Design decisions

  • No visual information in the configs, no classes etc since that it up to the implementation to add.
  • Complex components should be a single unit of config. Complex composition should be done at the implementation level.
  • Complex state management should be avoided at the component level; sub components should not have direct access to state instead state is delegated down to root level and wrapped in an api.
  • Actions should be delegated. For example clicking on a button in a sub component should not trigger the action directly but delegate that action down to the root.
  • Input/output to components and subcomponents should be plain json, forcing the state to be as pure as possible. For example updating a select box with a new value is done by passing in a new state with the selctbox value to the root of the component then that is picked up by listeners bound to that key/value pair.
  • This package should not know about tinymce, tinymce legacy ui or alloy it's simply a bunch of validators external data and interfaces.
  • The public structure is somewhat similar to what is in tinymce 4.x to make migration easy for end users.

Installation

bridge is available as an npm package. You can install it via the npm package @ephox/bridge

Install from npm

npm install @ephox/bridge

Usage

Bridge is not designed to be used directly; it forms an API layer as part of the TinyMCE User Interface.