Socket
Socket
Sign inDemoInstall

@ui-autotools/registry

Package Overview
Dependencies
0
Maintainers
7
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui-autotools/registry


Version published
Maintainers
7
Created

Readme

Source

Metadata registry

allows creating/retriving code metdata descriptions.

API

describe

creates/retrieves a metadata description object

arguments:

nameTypedescription
entityanydescribed entity
type"react" / "class" / "function" / "general"type of described entity

returns:

ReactDescription, ClassDescription, FunctionDescription or GeneralDescription

GeneralDescription

allows reading/writing the different meta-data fields.

API

setTitle

sets title of entity

arguments:

nameTypedescription
titlestring...
setDescription

sets description of entity

arguments:

nameTypedescription
descriptionstring...
addDocumentation

adds documentation in markdown format to entity

arguments:

nameTypedescription
titlestring
contentmarkdown stringdocumentation content
setJSONSchema

sets JSONSchema of entity

arguments:

nameTypedescription
schemaJSON schema
addBrowserTests

adds browser tests to entity

arguments:

nameTypedescription
titlestring
testFilemethoddynamically imports test file

myDesc.addBrowserTests('accesability' ()=>import('./accesability.spec.ts')

ReactDescription

react description adds some extra field to the general description

setReactType

sets type of react entity

arguments:

nameTypedescription
type"Component" / "FunctionComponent" / "JSX"
addSimulation

adds prop simulation to component

arguments:

nameTypedescription
titlestring
propscomponent props
addSimulationPropValue

adds cross cutting prop to all component simulations

arguments:

nameTypedescription
titlestring
propNamestring
valuecomponent prop value
addStateSimulation

adds state simulation to component, usefull for getting the component into different visual states without user interaction. i.e. open in a drop down

arguments:

nameTypedescription
titlestring
statepartial component state

ClassDescription

addConstructorArgumentsSimulation

adds constructor arguments simulation to class

arguments:

nameTypedescription
titlestring
argsarrayconstructor arguments

FunctionDescription

addArgumentsSimulation

adds arguments simulation to function

arguments:

nameTypedescription
titlestring
argsarrayconstructor arguments

FAQs

Last updated on 16 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc