diff --git a/misc/ts-markdown/package.json b/misc/ts-markdown/package.json index 5d4bdd1f1..bca5cf8cd 100644 --- a/misc/ts-markdown/package.json +++ b/misc/ts-markdown/package.json @@ -36,7 +36,7 @@ }, "license": "MIT", "dependencies": { - "chalk": "^4.0.0", + "chalk": "^4.1.0", "react-docgen-typescript": "^1.20.5", "remark": "^11.0.2", "remark-toc": "^7.0.0", @@ -45,6 +45,9 @@ "unified": "^9.0.0", "yargs": "^15.3.1" }, + "devDependencies": { + "@types/chalk": "^2.2.0" + }, "publishConfig": { "access": "public" }, diff --git a/misc/ts-markdown/src/index.ts b/misc/ts-markdown/src/index.ts index 38727a57f..799454cbc 100644 --- a/misc/ts-markdown/src/index.ts +++ b/misc/ts-markdown/src/index.ts @@ -1,6 +1,6 @@ -import * as fs from 'fs'; -import * as path from 'path'; -import * as chalk from 'chalk'; +import fs from 'fs'; +import path from 'path'; +import chalk from 'chalk'; import * as yargs from 'yargs'; import remark from 'remark'; import toc from 'remark-toc'; diff --git a/plugins/addon-stats/src/api/index.ts b/plugins/addon-stats/src/api/index.ts index 099b463e3..07635cbbc 100644 --- a/plugins/addon-stats/src/api/index.ts +++ b/plugins/addon-stats/src/api/index.ts @@ -1 +1 @@ -export * from './components'; \ No newline at end of file +export * from './components'; diff --git a/plugins/addon-stats/src/hooks/index.ts b/plugins/addon-stats/src/hooks/index.ts index 099b463e3..07635cbbc 100644 --- a/plugins/addon-stats/src/hooks/index.ts +++ b/plugins/addon-stats/src/hooks/index.ts @@ -1 +1 @@ -export * from './components'; \ No newline at end of file +export * from './components'; diff --git a/plugins/addon-stats/src/ui/AttributeUsage/index.ts b/plugins/addon-stats/src/ui/AttributeUsage/index.ts index 995afd1ca..79c9a2b5b 100644 --- a/plugins/addon-stats/src/ui/AttributeUsage/index.ts +++ b/plugins/addon-stats/src/ui/AttributeUsage/index.ts @@ -1 +1 @@ -export * from './AttributeUsage'; \ No newline at end of file +export * from './AttributeUsage'; diff --git a/plugins/addon-stats/src/ui/AttributesUsageDetails/index.ts b/plugins/addon-stats/src/ui/AttributesUsageDetails/index.ts index 976948098..60a1ebc0f 100644 --- a/plugins/addon-stats/src/ui/AttributesUsageDetails/index.ts +++ b/plugins/addon-stats/src/ui/AttributesUsageDetails/index.ts @@ -1 +1 @@ -export * from './AttributesUsageDetails'; \ No newline at end of file +export * from './AttributesUsageDetails'; diff --git a/plugins/addon-stats/src/ui/AttributesUsageList/index.ts b/plugins/addon-stats/src/ui/AttributesUsageList/index.ts index 02b288873..9cf1c98a0 100644 --- a/plugins/addon-stats/src/ui/AttributesUsageList/index.ts +++ b/plugins/addon-stats/src/ui/AttributesUsageList/index.ts @@ -1 +1 @@ -export * from './AttributesUsageList'; \ No newline at end of file +export * from './AttributesUsageList'; diff --git a/plugins/addon-stats/src/ui/ComponentUsage/index.ts b/plugins/addon-stats/src/ui/ComponentUsage/index.ts index a4f6f4b06..a4f401370 100644 --- a/plugins/addon-stats/src/ui/ComponentUsage/index.ts +++ b/plugins/addon-stats/src/ui/ComponentUsage/index.ts @@ -1 +1 @@ -export * from './ComponentUsage'; \ No newline at end of file +export * from './ComponentUsage'; diff --git a/plugins/addon-stats/src/ui/ComponentUsageDetails/index.ts b/plugins/addon-stats/src/ui/ComponentUsageDetails/index.ts index 3a9847390..781d104f6 100644 --- a/plugins/addon-stats/src/ui/ComponentUsageDetails/index.ts +++ b/plugins/addon-stats/src/ui/ComponentUsageDetails/index.ts @@ -1 +1 @@ -export * from './ComponentUsageDetails'; \ No newline at end of file +export * from './ComponentUsageDetails'; diff --git a/plugins/addon-stats/src/ui/ComponentUsageList/index.ts b/plugins/addon-stats/src/ui/ComponentUsageList/index.ts index f909d82a1..9ff020e7b 100644 --- a/plugins/addon-stats/src/ui/ComponentUsageList/index.ts +++ b/plugins/addon-stats/src/ui/ComponentUsageList/index.ts @@ -1 +1 @@ -export * from './ComponentUsageList'; \ No newline at end of file +export * from './ComponentUsageList'; diff --git a/plugins/addon-stats/src/ui/index.ts b/plugins/addon-stats/src/ui/index.ts index 555dac35f..99092a1c1 100644 --- a/plugins/addon-stats/src/ui/index.ts +++ b/plugins/addon-stats/src/ui/index.ts @@ -3,4 +3,4 @@ export * from './AttributesUsageDetails'; export * from './AttributesUsageList'; export * from './ComponentUsage'; export * from './ComponentUsageDetails'; -export * from './ComponentUsageList'; \ No newline at end of file +export * from './ComponentUsageList'; diff --git a/ui/blocks/src/component-stats.mdx b/ui/blocks/src/component-stats.mdx index f8c127170..b2f1d7838 100644 --- a/ui/blocks/src/component-stats.mdx +++ b/ui/blocks/src/component-stats.mdx @@ -1,9 +1,16 @@ --- title: Blocks/internal usage --- -import { ComponentUsage, AttributeUsage, ComponentUsageList, AttributesUsageList } from '@component-controls/addon-stats'; -export const filter = ({ doc, component}) => component && doc.title.startsWith('Blocks'); +import { + ComponentUsage, + AttributeUsage, + ComponentUsageList, + AttributesUsageList, +} from '@component-controls/addon-stats'; + +export const filter = ({ doc, component }) => + component && doc.title.startsWith('Blocks'); # Blocks JSX stats diff --git a/ui/components/src/component-stats.mdx b/ui/components/src/component-stats.mdx index 51be9b86b..b47adcb69 100644 --- a/ui/components/src/component-stats.mdx +++ b/ui/components/src/component-stats.mdx @@ -1,9 +1,16 @@ --- title: Components/internal usage --- -import { ComponentUsage, AttributeUsage, ComponentUsageList, AttributesUsageList } from '@component-controls/addon-stats'; -export const filter = ({ doc, component}) => component && doc.title.startsWith('Components'); +import { + ComponentUsage, + AttributeUsage, + ComponentUsageList, + AttributesUsageList, +} from '@component-controls/addon-stats'; + +export const filter = ({ doc, component }) => + component && doc.title.startsWith('Components'); # Components JSX stats diff --git a/yarn.lock b/yarn.lock index e38196dbf..7fe49f2f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5280,6 +5280,13 @@ resolved "https://registry.yarnpkg.com/@types/braces/-/braces-3.0.0.tgz#7da1c0d44ff1c7eb660a36ec078ea61ba7eb42cb" integrity sha512-TbH79tcyi9FHwbyboOKeRachRq63mSuWYXOflsNO9ZyE5ClQ/JaozNKl+aWUq87qPNsXasXxi2AbgfwIJ+8GQw== +"@types/chalk@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@types/chalk/-/chalk-2.2.0.tgz#b7f6e446f4511029ee8e3f43075fb5b73fbaa0ba" + integrity sha512-1zzPV9FDe1I/WHhRkf9SNgqtRJWZqrBWgu7JGveuHmmyR9CnAPCie2N/x+iHrgnpYBIcCJWHBoMRv2TRWktsvw== + dependencies: + chalk "*" + "@types/cheerio@*", "@types/cheerio@^0.22.22": version "0.22.22" resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.22.tgz#ae71cf4ca59b8bbaf34c99af7a5d6c8894988f5f" @@ -8410,6 +8417,14 @@ ccount@^1.0.0: resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.5.tgz#ac82a944905a65ce204eb03023157edf29425c17" integrity sha512-MOli1W+nfbPLlKEhInaxhRdp7KVLFxLN5ykwzHgLsLI3H3gs5jjFAK4Eoj3OzzcxCtumDaI8onoVDeQyWaNTkw== +chalk@*, chalk@4.1.0, chalk@^4.0.0, chalk@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -8438,14 +8453,6 @@ chalk@4.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@4.1.0, chalk@^4.0.0, chalk@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chalk@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"