4.0.3 • Published 2 years ago

@component-controls/addon-stats v4.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Table of contents

In action

Example site

Overview

Addon to collect and display statistics for component-controls

Getting Started

Install

yarn add @component-controls/addon-stats --dev

Usage

import { ComponentUsage, AttributeUsage, ComponentUsageList, AttributesUsageList } from '@component-controls/addon-stats';


## Attributes usage summary

Attributes usage - how many times an attribute is being set on a component, and on which component it is being set

<AttributeUsage />

## Components usage details

How many times a component is being used from another component, with a list of the components using it

<ComponentUsageList />

## Attributes usage details

How many times an attribute is being used on a component, with a list of those components

<AttributesUsageList />

API

AttributeUsage

react component

Table of all the used attributes, with their components

defined in @component-controls/addon-stats/plugins/addon-stats/src/ui/AttributeUsage/AttributeUsage.tsx

properties

NameTypeParentDefaultDescription
filterfunction (...2 propertiesdoc*[string]: anytitle*: stringtype: "story" | "blog" | "page" | "tags" | "author" | stringroute: stringdate: stringdateModified: stringstatus: "draft" | "published"tags: string[]keywords: string[]description: string | JSX.Elementimage: stringauthor: stringorder: numbermenu: stringtemplatebind*: source*: id*: storyName*: rawId*: doc*: storyFn*: description*: loc*: subtitle*: dynamic*: dynamicId*: component*: subcomponents*: smartControls*: decorators*: plugins*: category*: controls*: stories: string[]source: stringfileName: stringpackage: stringtestFiles: string[]testCoverage: string[]testData: stringrenderFn: function (props*: ) => anydata[string]: componentsLookup[string]: stringMDXPage: anyisMDXComponent: booleanparameters: anycomponent: string | Record<string, unknown> | ElementType<Props>subcomponents: Record<string, (string, Record<string, unknown>, ElementType<Props>)>controls[string]: ComponentControl<P>smartControlssmart*: include*: exclude*: decorators: StoryRenderFn[]plugins: anycategory: stringnavSidebar: booleancontextSidebar: booleanfullPage: booleancomponent*name*: stringimportedName: "default" | "namespace" | stringfrom: stringrequest: stringfileName: stringpropsInfoFile: stringlocstart*: end*: package: stringsource: stringinfodisplayName*: description*: props*: externalDependencies[string]: (Omit<ImportType, "from">)[]localDependencies[string]: (Omit<ImportType, "from">)[]jsx: JSXNode[]fileInfodateCreated*: dateModified*: commits*: sloc*: jestresults*: coverage*: ) => booleanAttributeUsagePropsstats filter callback function
linkAttributesbooleanAttributeUsagePropstrue
titlestringBlockContainerOwnPropsoptional section title for the block.
descriptionstringBlockContainerOwnPropsoptional markdown description.
idstringBlockContainerOwnPropsoptional id to be used for the block if no id is provided, one will be calculated automatically from the title.
collapsiblebooleanBlockContainerOwnPropsif false, will nothave a collapsible frame.
data-testidstringBlockContainerOwnPropstesting id
plainbooleanBlockContainerOwnPropsinner container variant or plain
slotstring | undefinedHTMLAttributes
styleCSSProperties | undefinedHTMLAttributes
keyKey | null | undefinedAttributes
sxThemeUICSSObject | ThemeDerivedStylesAttributesThe ThemeUIStyleObject extends [style props](https://emotion.sh/docs/object-styles) such that properties that are part of the Theme will be transformed to their corresponding values. Other valid CSS properties are also allowed.
defaultCheckedboolean | undefinedHTMLAttributes
defaultValuestring | number | ReadonlyArray<string> | undefinedHTMLAttributes
suppressContentEditableWarningboolean | undefined
4.0.3

2 years ago

3.15.0

3 years ago

3.11.4

3 years ago

3.13.1

3 years ago

3.11.3

3 years ago

3.9.1

3 years ago

3.9.0

3 years ago

3.10.1

3 years ago

3.8.0

3 years ago

3.10.0

3 years ago

3.10.3

3 years ago

3.12.0

3 years ago

3.10.2

3 years ago

3.14.1

3 years ago

3.14.0

3 years ago

3.10.4

3 years ago

3.8.3

3 years ago

3.14.3

3 years ago

3.8.2

3 years ago

3.14.2

3 years ago

3.8.1

3 years ago

3.14.5

3 years ago

3.14.4

3 years ago

3.14.6

3 years ago

3.11.0

3 years ago

3.7.0

3 years ago

3.13.0

3 years ago

3.11.2

3 years ago

3.11.1

3 years ago

3.6.3

3 years ago

3.6.2

3 years ago

3.6.1

3 years ago

3.6.0

3 years ago

3.5.5

3 years ago

3.5.4

3 years ago

3.5.3

3 years ago

3.5.2

3 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.4.4

3 years ago

3.4.3

3 years ago

3.4.5

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.4.0

3 years ago

3.1.3

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

2.13.0

3 years ago

2.12.0

3 years ago

2.11.3

3 years ago

2.11.2

3 years ago

2.11.0

3 years ago

2.11.1

3 years ago

2.10.5

3 years ago

2.10.4

3 years ago

2.10.2

3 years ago

2.10.3

3 years ago

2.10.1

3 years ago

2.10.0

3 years ago

2.9.1

3 years ago

2.9.0

3 years ago

2.8.1

3 years ago

2.8.0

3 years ago

2.7.0

3 years ago

2.6.5

3 years ago

2.6.4

3 years ago

2.6.3

3 years ago

2.6.2

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.5.3

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

2.3.0

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago