Skip to content

Commit b8cca17

Browse files
committed
resolve warnings for storybook and api-extractor
1 parent db8e9c5 commit b8cca17

File tree

34 files changed

+1307
-284
lines changed

34 files changed

+1307
-284
lines changed

packages/web-components/api-extractor.json

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,14 @@
2121
"tsconfigFilePath": "./tsconfig.api-extractor.json"
2222
},
2323
"messages": {
24-
"tsdocMessageReporting": {
25-
"tsdoc-undefined-tag": {
26-
"logLevel": "none"
27-
},
28-
"tsdoc-unsupported-tag": {
29-
"logLevel": "none"
30-
},
31-
"tsdoc-param-tag-with-invalid-type": {
32-
"logLevel": "none"
33-
},
34-
"tsdoc-param-tag-missing-hyphen": {
35-
"logLevel": "none"
36-
}
37-
},
3824
"extractorMessageReporting": {
39-
"ae-forgotten-export": {
40-
"logLevel": "none"
41-
},
4225
"ae-missing-release-tag": {
43-
"logLevel": "none"
44-
},
45-
"ae-unresolved-link": {
46-
"logLevel": "none"
47-
},
48-
"ae-internal-missing-underscore": {
49-
"logLevel": "none"
26+
"logLevel": "none",
27+
"addToApiReportFile": true
5028
},
5129
"ae-different-release-tags": {
52-
"logLevel": "none"
30+
"logLevel": "none",
31+
"addToApiReportFile": true
5332
}
5433
}
5534
}

packages/web-components/docs/api-report.md

Lines changed: 1038 additions & 13 deletions
Large diffs are not rendered by default.

packages/web-components/src/accordion-item/accordion-item.template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ElementViewTemplate, html, ref } from '@microsoft/fast-element';
22
import { endSlotTemplate, startSlotTemplate } from '../patterns/index.js';
33
import { staticallyCompose } from '../utils/index.js';
4-
import { AccordionItem, AccordionItemOptions } from './accordion-item.js';
4+
import type { AccordionItem, AccordionItemOptions } from './accordion-item.js';
55

66
const chevronRight20Filled = html.partial(`<svg
77
width="20"

packages/web-components/src/accordion-item/accordion-item.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export class AccordionItem extends FASTElement {
3737
* Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the
3838
* heading element.
3939
*
40-
* @defaultValue 2
4140
* @public
4241
* @remarks
4342
* HTML attribute: heading-level
@@ -83,7 +82,6 @@ export class AccordionItem extends FASTElement {
8382
* Defines accordion header font size.
8483
*
8584
* @public
86-
* @default 'medium'
8785
* @remarks
8886
* HTML Attribute: size
8987
*/
@@ -104,9 +102,8 @@ export class AccordionItem extends FASTElement {
104102
* Sets expand and collapsed icon position.
105103
*
106104
* @public
107-
* @default 'start'
108105
* @remarks
109-
* HTML Attribute: expandIconPosition
106+
* HTML Attribute: expand-icon-position
110107
*/
111108
@attr({ attribute: 'expand-icon-position' })
112109
public expandIconPosition?: AccordionItemExpandIconPosition;

packages/web-components/src/accordion-item/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export { AccordionItem, AccordionItemOptions } from './accordion-item.js';
1+
export { AccordionItem } from './accordion-item.js';
2+
export type { AccordionItemOptions } from './accordion-item.js';
23
export { AccordionItemSize, AccordionItemExpandIconPosition } from './accordion-item.options.js';
34
export { styles as accordionItemStyles } from './accordion-item.styles.js';
45
export { definition as accordionItemDefinition } from './accordion-item.definition.js';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ValuesOf } from '../utils/index.js';
22

33
/**
4-
* Expand mode for {@link FASTAccordion}
4+
* Expand mode for {@link Accordion}
55
* @public
66
*/
77
export const AccordionExpandMode = {
@@ -10,7 +10,7 @@ export const AccordionExpandMode = {
1010
} as const;
1111

1212
/**
13-
* Type for the {@link FASTAccordion} Expand Mode
13+
* Type for the {@link Accordion} Expand Mode
1414
* @public
1515
*/
1616
export type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1+
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
12
export { AnchorButton } from './anchor-button.js';
2-
export {
3-
AnchorButtonOptions,
4-
AnchorButtonAppearance,
5-
AnchorButtonShape,
6-
AnchorButtonSize,
7-
AnchorTarget,
8-
} from './anchor-button.options.js';
3+
export { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, AnchorTarget } from './anchor-button.options.js';
4+
export type { AnchorButtonOptions } from './anchor-button.options.js';
95
export { template as AnchorButtonTemplate } from './anchor-button.template.js';
10-
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1+
export { definition as ButtonDefinition } from './button.definition.js';
12
export { Button } from './button.js';
2-
export {
3-
ButtonAppearance,
4-
ButtonFormTarget,
5-
ButtonShape,
6-
ButtonSize,
7-
ButtonType,
8-
ButtonOptions,
9-
} from './button.options.js';
10-
export { template as ButtonTemplate } from './button.template.js';
3+
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
4+
export type { ButtonOptions } from './button.options.js';
115
export { styles as ButtonStyles } from './button.styles.js';
12-
export { definition as ButtonDefinition } from './button.definition.js';
6+
export { template as ButtonTemplate } from './button.template.js';

packages/web-components/src/checkbox/checkbox.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class Checkbox extends FormAssociatedCheckbox {
3131
* Sets shape of the checkbox.
3232
*
3333
* @public
34-
* @default 'square'
3534
* @remarks
3635
* HTML Attribute: shape
3736
*/
@@ -42,7 +41,6 @@ export class Checkbox extends FormAssociatedCheckbox {
4241
* Sets size of the checkbox.
4342
*
4443
* @public
45-
* @default 'medium'
4644
* @remarks
4745
* HTML Attribute: size
4846
*/
@@ -53,7 +51,6 @@ export class Checkbox extends FormAssociatedCheckbox {
5351
* Sets position of the label relative to the input
5452
*
5553
* @public
56-
* @default 'after'
5754
* @remarks
5855
* HTML Attribute: label-position
5956
*/
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
export { Checkbox, CheckboxOptions } from './checkbox.js';
2-
export { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
31
export { definition as CheckboxDefinition } from './checkbox.definition.js';
4-
export { template as CheckboxTemplate } from './checkbox.template.js';
2+
export { Checkbox } from './checkbox.js';
3+
export type { CheckboxOptions } from './checkbox.js';
4+
export { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
55
export { styles as CheckboxStyles } from './checkbox.styles.js';
6+
export { template as CheckboxTemplate } from './checkbox.template.js';

0 commit comments

Comments
 (0)