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

@multiprova/editor

v1.4.3

Published

Editor HTML do Multiprova.

Readme

Multiprova - Editor

Editor HTML do Multiprova.

Como instalar?

Para instalar o @multiprova/editor em seu projeto, instale a biblioteca como dependência via npm:

$ npm install @multiprova/editor

Como usar?

A utilização do @multiprova/editor é simplificada, basta importar em um componente e começar a usar:

import React, { Component } from 'react'
import { Editor } from '@multiprova/editor'

export default class Example extends Component {
  render() {
    return <Editor />
  }
}

O componente se apresentará da seguinte maneira:

Propriedades (Props)

O <Editor /> recebe algumas props que modificam diretamente seu comportamento:

| Nome da propriedade | Descrição | Tipo | Valor padrão | | :-----------------: | ------------------------------------------------------------------ | :-------------------------: | :----------------------------------: | | html | Elemento html usado para encapsular o texto | string | <p></p> | | rows | Número de linhas | number | 1 | | floatingToolbar | Barra de ferramentas flutuante | boolean | false | | justifyDefault | Alinhamento textual justificado | boolean | true | | spellCheck | Verificação ortográfica | boolean | true | | readOnly | Somente leitura | boolean | false | | adornment | Adorno do campo Recebe um objeto Adornment | object | { align: 'right', onEvent: false } | | placeholder | Texto de descrição do campo | string | '' | | autoFocus | Foco automático | boolean | false | | onChange | Função disparada ao alterar o valor do texto | function | () => {} | | onFocus | Função disparada quando o campo está em foco | function | () => {} | | onBlur | Função disparada quando o campo perde o foco | function | () => {} | | enabledModules | Objeto com módulos ativo e inativas para a barra de ferramentas | object | {} | | upload | Função de upload de mídia | function (file, nodeType) | false | | defaultFontSize | Tamanho padrão do texto | string | "12pt" | | dynamicValues | Conjunto de valores possíveis de uma questão | object[] | [] |

Objetos

Adornment
{
  align: 'left' | 'right',
  onEvent: false | 'hover' | 'focus' | 'blur',
  element: Elemento React
}

Como executar localmente

Para fazer modificações na biblioteca @multiprova/editor localmente siga os seguintes passos:

  1. Instale a ferramenta Yalc globalmente:
$ npm install -g yalc
  1. Edite o arquivo package.json do editor e adicione o seguinte atributo ao objeto:
"files": [
  "src"
]
  1. Acesse o repositório do editor no terminal e execute:
$ cd editor
$ yalc push
  1. Acesse no terminal o repositório que utiliza o editor como dependência e execute:
$ cd nome-repositorio
$ yalc link @multiprova/editor
  1. Faça a importação do editor
import { Editor } from '@multiprova/editor/src'
  1. Para compilar qualquer alteração feita no editor, execute yalc push no terminal do @multiprova/editor e o repositório que o utiliza como dependência irá compilar automaticamente. Não é preciso executar npm start no editor.

Como remover o repositório local

Para remover o repositório local das dependências, acesse o repositório que utiliza o editor como dependência e execute:

$ cd nome-repositorio
$ yalc remove @multiprova/editor
$ npm ci

ATENÇÃO: Desfaça as alterações feitas no arquivo package.json do editor e remova o '/src' do caminho da importação do editor. É importante que essas alterações não estejam em um commit para o repositório.