5.0.0 • Published 4 years ago

@ui-autotools/registry v5.0.0

Weekly downloads
77
License
BSD-3-Clause
Repository
github
Last release
4 years ago

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
5.0.0

4 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago