@fluentui/web-components 2.5.6 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/dts/combobox/combobox.stories.d.ts +5 -0
  4. package/dist/dts/custom-elements.d.ts +3 -35
  5. package/dist/dts/number-field/index.d.ts +1 -1
  6. package/dist/dts/number-field/number-field.styles.d.ts +1 -2
  7. package/dist/dts/search/index.d.ts +1 -1
  8. package/dist/dts/search/search.styles.d.ts +2 -3
  9. package/dist/dts/select/index.d.ts +1 -1
  10. package/dist/dts/select/select.styles.d.ts +11 -3
  11. package/dist/dts/styles/patterns/button.styles.d.ts +12 -6
  12. package/dist/dts/styles/patterns/input.styles.d.ts +13 -5
  13. package/dist/dts/text-area/index.d.ts +2 -18
  14. package/dist/dts/text-area/text-area.stories.d.ts +1 -17
  15. package/dist/dts/text-area/text-area.styles.d.ts +1 -2
  16. package/dist/dts/text-field/index.d.ts +2 -18
  17. package/dist/dts/text-field/text-field.stories.d.ts +1 -17
  18. package/dist/dts/text-field/text-field.styles.d.ts +1 -2
  19. package/dist/esm/anchor/anchor.styles.js +3 -10
  20. package/dist/esm/button/button.styles.js +14 -39
  21. package/dist/esm/combobox/combobox.stories.js +7 -2
  22. package/dist/esm/combobox/combobox.styles.js +22 -32
  23. package/dist/esm/number-field/number-field.styles.js +5 -16
  24. package/dist/esm/search/search.styles.js +8 -11
  25. package/dist/esm/select/select.stories.js +2 -2
  26. package/dist/esm/select/select.styles.js +35 -100
  27. package/dist/esm/styles/patterns/button.styles.js +190 -149
  28. package/dist/esm/styles/patterns/input.styles.js +112 -93
  29. package/dist/esm/text-area/text-area.styles.js +5 -11
  30. package/dist/esm/text-field/text-field.styles.js +5 -11
  31. package/dist/fluent-web-components.api.json +127 -397
  32. package/dist/web-components.d.ts +39 -90
  33. package/dist/web-components.js +99 -100
  34. package/dist/web-components.min.js +93 -123
  35. package/docs/api-report.md +38 -99
  36. package/karma.conf.js +3 -8
  37. package/package.json +27 -40
@@ -41,7 +41,6 @@ import { FlipperOptions } from '@microsoft/fast-foundation';
41
41
  import { FoundationElement } from '@microsoft/fast-foundation';
42
42
  import { FoundationElementDefinition } from '@microsoft/fast-foundation';
43
43
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
44
- import { FoundationElementTemplate } from '@microsoft/fast-foundation';
45
44
  import { HorizontalScroll as HorizontalScroll_2 } from '@microsoft/fast-foundation';
46
45
  import { HorizontalScrollOptions } from '@microsoft/fast-foundation';
47
46
  import { Listbox as Listbox_2 } from '@microsoft/fast-foundation';
@@ -72,7 +71,6 @@ import { TabPanel } from '@microsoft/fast-foundation';
72
71
  import { Tabs } from '@microsoft/fast-foundation';
73
72
  import { TextArea as TextArea_2 } from '@microsoft/fast-foundation';
74
73
  import { TextField as TextField_2 } from '@microsoft/fast-foundation';
75
- import { TextFieldOptions } from '@microsoft/fast-foundation';
76
74
  import { Toolbar as Toolbar_2 } from '@microsoft/fast-foundation';
77
75
  import { Tooltip as Tooltip_2 } from '@microsoft/fast-foundation';
78
76
  import { TreeItem } from '@microsoft/fast-foundation';
@@ -86,7 +84,7 @@ export const accentBaseColor: CSSDesignToken<Swatch>;
86
84
  // Warning: (ae-internal-missing-underscore) The name "AccentButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
87
85
  //
88
86
  // @internal (undocumented)
89
- export const AccentButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
87
+ export const AccentButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
90
88
 
91
89
  // @public (undocumented)
92
90
  export const accentFillActive: CSSDesignToken<Swatch>;
@@ -224,40 +222,8 @@ export const allComponents: {
224
222
  fluentTabs: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof Tabs>;
225
223
  fluentTab: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Tab>;
226
224
  fluentTabPanel: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TabPanel>;
227
- fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition< {
228
- baseName: string;
229
- baseClass: typeof TextArea_2;
230
- template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
231
- styles: (context: any, definition: any) => ElementStyles;
232
- shadowOptions: {
233
- delegatesFocus: true;
234
- };
235
- }> | undefined) => FoundationElementRegistry< {
236
- baseName: string;
237
- baseClass: typeof TextArea_2;
238
- template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
239
- styles: (context: any, definition: any) => ElementStyles;
240
- shadowOptions: {
241
- delegatesFocus: true;
242
- };
243
- }, TextArea>;
244
- fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition< {
245
- baseName: string;
246
- baseClass: typeof TextField_2;
247
- template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
248
- styles: (context: any, definition: any) => ElementStyles;
249
- shadowOptions: {
250
- delegatesFocus: true;
251
- };
252
- }> | undefined) => FoundationElementRegistry< {
253
- baseName: string;
254
- baseClass: typeof TextField_2;
255
- template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
256
- styles: (context: any, definition: any) => ElementStyles;
257
- shadowOptions: {
258
- delegatesFocus: true;
259
- };
260
- }, TextField>;
225
+ fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TextArea>;
226
+ fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TextField>;
261
227
  fluentToolbar: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Toolbar>;
262
228
  fluentTooltip: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Tooltip>;
263
229
  fluentTreeView: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TreeView>;
@@ -310,8 +276,8 @@ export const badgeStyles: (context: ElementDefinitionContext, definition: Founda
310
276
 
311
277
  // Warning: (ae-internal-missing-underscore) The name "baseButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
312
278
  //
313
- // @internal (undocumented)
314
- export const baseButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
279
+ // @internal
280
+ export const baseButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
315
281
 
316
282
  // @public (undocumented)
317
283
  export const baseHeightMultiplier: CSSDesignToken<number>;
@@ -319,6 +285,11 @@ export const baseHeightMultiplier: CSSDesignToken<number>;
319
285
  // @public (undocumented)
320
286
  export const baseHorizontalSpacingMultiplier: CSSDesignToken<number>;
321
287
 
288
+ // Warning: (ae-internal-missing-underscore) The name "baseInputStyles" should be prefixed with an underscore because the declaration is marked as @internal
289
+ //
290
+ // @internal
291
+ export const baseInputStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string) => ElementStyles;
292
+
322
293
  // @public (undocumented)
323
294
  export const baseLayerLuminance: CSSDesignToken<number>;
324
295
 
@@ -716,44 +687,12 @@ export const fluentTabs: (overrideDefinition?: OverrideFoundationElementDefiniti
716
687
  // Warning: (ae-incompatible-release-tags) The symbol "fluentTextArea" is marked as @public, but its signature references "TextArea" which is marked as @internal
717
688
  //
718
689
  // @public
719
- export const fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition< {
720
- baseName: string;
721
- baseClass: typeof TextArea_2;
722
- template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
723
- styles: (context: any, definition: any) => ElementStyles;
724
- shadowOptions: {
725
- delegatesFocus: true;
726
- };
727
- }> | undefined) => FoundationElementRegistry< {
728
- baseName: string;
729
- baseClass: typeof TextArea_2;
730
- template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
731
- styles: (context: any, definition: any) => ElementStyles;
732
- shadowOptions: {
733
- delegatesFocus: true;
734
- };
735
- }, typeof TextArea>;
690
+ export const fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TextArea>;
736
691
 
737
692
  // Warning: (ae-incompatible-release-tags) The symbol "fluentTextField" is marked as @public, but its signature references "TextField" which is marked as @internal
738
693
  //
739
694
  // @public
740
- export const fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition< {
741
- baseName: string;
742
- baseClass: typeof TextField_2;
743
- template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
744
- styles: (context: any, definition: any) => ElementStyles;
745
- shadowOptions: {
746
- delegatesFocus: true;
747
- };
748
- }> | undefined) => FoundationElementRegistry< {
749
- baseName: string;
750
- baseClass: typeof TextField_2;
751
- template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
752
- styles: (context: any, definition: any) => ElementStyles;
753
- shadowOptions: {
754
- delegatesFocus: true;
755
- };
756
- }, typeof TextField>;
695
+ export const fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TextField>;
757
696
 
758
697
  // Warning: (ae-incompatible-release-tags) The symbol "fluentToolbar" is marked as @public, but its signature references "Toolbar" which is marked as @internal
759
698
  //
@@ -845,32 +784,27 @@ export const horizontalScrollStyles: (context: ElementDefinitionContext, definit
845
784
  // Warning: (ae-internal-missing-underscore) The name "HypertextStyles" should be prefixed with an underscore because the declaration is marked as @internal
846
785
  //
847
786
  // @internal (undocumented)
848
- export const HypertextStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
849
-
850
- // Warning: (ae-internal-missing-underscore) The name "inputFilledForcedColorStyles" should be prefixed with an underscore because the declaration is marked as @internal
851
- //
852
- // @internal (undocumented)
853
- export const inputFilledForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
787
+ export const HypertextStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
854
788
 
855
789
  // Warning: (ae-internal-missing-underscore) The name "inputFilledStyles" should be prefixed with an underscore because the declaration is marked as @internal
856
790
  //
857
- // @internal (undocumented)
858
- export const inputFilledStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
791
+ // @internal
792
+ export const inputFilledStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
859
793
 
860
794
  // Warning: (ae-internal-missing-underscore) The name "inputForcedColorStyles" should be prefixed with an underscore because the declaration is marked as @internal
861
795
  //
862
796
  // @internal (undocumented)
863
- export const inputForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
797
+ export const inputForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
864
798
 
865
- // Warning: (ae-internal-missing-underscore) The name "inputStateStyles" should be prefixed with an underscore because the declaration is marked as @internal
799
+ // Warning: (ae-internal-missing-underscore) The name "inputOutlineStyles" should be prefixed with an underscore because the declaration is marked as @internal
866
800
  //
867
- // @internal (undocumented)
868
- export const inputStateStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
801
+ // @internal
802
+ export const inputOutlineStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
869
803
 
870
- // Warning: (ae-internal-missing-underscore) The name "inputStyles" should be prefixed with an underscore because the declaration is marked as @internal
804
+ // Warning: (ae-internal-missing-underscore) The name "inputStateStyles" should be prefixed with an underscore because the declaration is marked as @internal
871
805
  //
872
- // @internal (undocumented)
873
- export const inputStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
806
+ // @internal
807
+ export const inputStateStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string) => ElementStyles;
874
808
 
875
809
  // @public (undocumented)
876
810
  export interface InteractiveColorRecipe {
@@ -897,7 +831,7 @@ export const layerCornerRadius: CSSDesignToken<number>;
897
831
  // Warning: (ae-internal-missing-underscore) The name "LightweightButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
898
832
  //
899
833
  // @internal (undocumented)
900
- export const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
834
+ export const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
901
835
 
902
836
  // @public (undocumented)
903
837
  export class Listbox extends Listbox_2 {
@@ -923,6 +857,11 @@ export const menuStyles: (context: ElementDefinitionContext, definition: Foundat
923
857
  // @public (undocumented)
924
858
  export const neutralBaseColor: CSSDesignToken<Swatch>;
925
859
 
860
+ // Warning: (ae-internal-missing-underscore) The name "NeutralButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
861
+ //
862
+ // @internal (undocumented)
863
+ export const NeutralButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
864
+
926
865
  // @public @deprecated (undocumented)
927
866
  export const neutralContrastFillActive: CSSDesignToken<Swatch>;
928
867
 
@@ -1429,7 +1368,7 @@ export class NumberField extends NumberField_2 {
1429
1368
  export type NumberFieldAppearance = 'filled' | 'outline';
1430
1369
 
1431
1370
  // @public
1432
- export const numberFieldStyles: (context: any, definition: any) => ElementStyles;
1371
+ export const numberFieldStyles: (context: ElementDefinitionContext, definition: NumberFieldOptions) => ElementStyles;
1433
1372
 
1434
1373
  // @public
1435
1374
  export const OptionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
@@ -1437,7 +1376,7 @@ export const OptionStyles: (context: ElementDefinitionContext, definition: Found
1437
1376
  // Warning: (ae-internal-missing-underscore) The name "OutlineButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
1438
1377
  //
1439
1378
  // @internal (undocumented)
1440
- export const OutlineButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
1379
+ export const OutlineButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
1441
1380
 
1442
1381
  // @public @deprecated (undocumented)
1443
1382
  export const outlineWidth: CSSDesignToken<number>;
@@ -1508,7 +1447,7 @@ export class Search extends Search_2 {
1508
1447
  export type SearchAppearance = 'filled' | 'outline';
1509
1448
 
1510
1449
  // @public
1511
- export const searchStyles: (context: any, definition: any) => ElementStyles;
1450
+ export const searchStyles: (context: ElementDefinitionContext, definition: SearchOptions) => ElementStyles;
1512
1451
 
1513
1452
  // @public (undocumented)
1514
1453
  export const searchTemplate: (context: ElementDefinitionContext, definition: SearchOptions) => ViewTemplate<Search_2>;
@@ -1529,7 +1468,7 @@ export class Select extends Select_2 {
1529
1468
  export type SelectAppearance = 'filled' | 'outline' | 'stealth';
1530
1469
 
1531
1470
  // @public
1532
- export const selectStyles: (context: any, definition: any) => ElementStyles;
1471
+ export const selectStyles: (context: ElementDefinitionContext, definition: SelectOptions) => ElementStyles;
1533
1472
 
1534
1473
  export { Skeleton }
1535
1474
 
@@ -1557,7 +1496,7 @@ export enum StandardLuminance {
1557
1496
  // Warning: (ae-internal-missing-underscore) The name "StealthButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
1558
1497
  //
1559
1498
  // @internal (undocumented)
1560
- export const StealthButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
1499
+ export const StealthButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
1561
1500
 
1562
1501
  // @public (undocumented)
1563
1502
  export const strokeWidth: CSSDesignToken<number>;
@@ -1626,7 +1565,7 @@ export class TextArea extends TextArea_2 {
1626
1565
  export type TextAreaAppearance = 'filled' | 'outline';
1627
1566
 
1628
1567
  // @public
1629
- export const textAreaStyles: (context: any, definition: any) => ElementStyles;
1568
+ export const textAreaStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
1630
1569
 
1631
1570
  // Warning: (ae-internal-missing-underscore) The name "TextField" should be prefixed with an underscore because the declaration is marked as @internal
1632
1571
  //
@@ -1644,7 +1583,7 @@ export class TextField extends TextField_2 {
1644
1583
  export type TextFieldAppearance = 'filled' | 'outline';
1645
1584
 
1646
1585
  // @public
1647
- export const textFieldStyles: (context: any, definition: any) => ElementStyles;
1586
+ export const textFieldStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
1648
1587
 
1649
1588
  // Warning: (ae-internal-missing-underscore) The name "Toolbar" should be prefixed with an underscore because the declaration is marked as @internal
1650
1589
  //
@@ -1786,9 +1725,9 @@ export const typeRampPlus6LineHeight: CSSDesignToken<string>;
1786
1725
  // dist/dts/custom-elements.d.ts:54:5 - (ae-incompatible-release-tags) The symbol "fluentBadge" is marked as @public, but its signature references "Badge" which is marked as @internal
1787
1726
  // dist/dts/custom-elements.d.ts:57:5 - (ae-incompatible-release-tags) The symbol "fluentButton" is marked as @public, but its signature references "Button" which is marked as @internal
1788
1727
  // dist/dts/custom-elements.d.ts:96:5 - (ae-incompatible-release-tags) The symbol "fluentTextArea" is marked as @public, but its signature references "TextArea" which is marked as @internal
1789
- // dist/dts/custom-elements.d.ts:113:5 - (ae-incompatible-release-tags) The symbol "fluentTextField" is marked as @public, but its signature references "TextField" which is marked as @internal
1790
- // dist/dts/custom-elements.d.ts:130:5 - (ae-incompatible-release-tags) The symbol "fluentToolbar" is marked as @public, but its signature references "Toolbar" which is marked as @internal
1791
- // dist/dts/custom-elements.d.ts:131:5 - (ae-incompatible-release-tags) The symbol "fluentTooltip" is marked as @public, but its signature references "Tooltip" which is marked as @internal
1728
+ // dist/dts/custom-elements.d.ts:97:5 - (ae-incompatible-release-tags) The symbol "fluentTextField" is marked as @public, but its signature references "TextField" which is marked as @internal
1729
+ // dist/dts/custom-elements.d.ts:98:5 - (ae-incompatible-release-tags) The symbol "fluentToolbar" is marked as @public, but its signature references "Toolbar" which is marked as @internal
1730
+ // dist/dts/custom-elements.d.ts:99:5 - (ae-incompatible-release-tags) The symbol "fluentTooltip" is marked as @public, but its signature references "Tooltip" which is marked as @internal
1792
1731
 
1793
1732
  // (No @packageDocumentation comment for this package)
1794
1733
 
package/karma.conf.js CHANGED
@@ -33,7 +33,7 @@ module.exports = function (config) {
33
33
  basePath,
34
34
  browserDisconnectTimeout: 10000,
35
35
  processKillTimeout: 10000,
36
- frameworks: ['source-map-support', 'mocha'],
36
+ frameworks: ['source-map-support', 'mocha', 'webpack'],
37
37
  plugins: [
38
38
  require('karma-mocha'),
39
39
  require('karma-mocha-reporter'),
@@ -65,19 +65,16 @@ module.exports = function (config) {
65
65
  hints: false,
66
66
  },
67
67
  optimization: {
68
- namedModules: false,
69
- namedChunks: false,
70
68
  nodeEnv: false,
71
69
  usedExports: true,
72
70
  flagIncludedChunks: false,
73
- occurrenceOrder: false,
74
71
  sideEffects: true,
75
72
  concatenateModules: true,
76
73
  splitChunks: {
77
74
  name: false,
78
75
  },
79
76
  runtimeChunk: false,
80
- noEmitOnErrors: false,
77
+ emitOnErrors: true,
81
78
  checkWasmTypes: false,
82
79
  minimize: false,
83
80
  },
@@ -89,12 +86,10 @@ module.exports = function (config) {
89
86
  },
90
87
  {
91
88
  test: /\.js$/,
89
+ enforce: 'pre',
92
90
  use: [
93
91
  {
94
92
  loader: 'source-map-loader',
95
- options: {
96
- enforce: 'pre',
97
- },
98
93
  },
99
94
  ],
100
95
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
4
  "sideEffects": false,
5
- "version": "2.5.6",
5
+ "version": "2.5.7",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -22,18 +22,18 @@
22
22
  "clean": "node ./build/clean.js dist",
23
23
  "doc": "api-extractor run --local",
24
24
  "doc:ci": "api-extractor run --local",
25
- "build": "tsc -p ./tsconfig.json && rollup -c && npm run doc",
25
+ "build": "tsc -p ./tsconfig.json && rollup -c && yarn doc",
26
26
  "dev": "tsc -p ./tsconfig.json -w",
27
- "tdd": "npm run dev & npm run test-chrome:watch",
27
+ "tdd": "yarn dev & yarn test-chrome:watch",
28
28
  "prepare": "yarn clean && yarn build",
29
29
  "lint": "eslint . --ext .ts",
30
30
  "lint:fix": "eslint . --ext .ts --fix",
31
- "prettier": "prettier --config ../../prettier.config.js --write 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore",
32
- "prettier:diff": "prettier --config ../../prettier.config.js 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore --list-different",
33
- "code-style": "npm run prettier && npm run lint",
31
+ "format": "prettier -w 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore",
32
+ "format:check": "yarn format -c",
33
+ "code-style": "yarn format:check && yarn lint",
34
34
  "start": "yarn start-storybook -p 6006 --docs",
35
- "start-storybook": "node node_modules/@storybook/html/bin/index.js",
36
- "build-storybook": "node node_modules/@storybook/html/bin/build.js -o ./dist/storybook --docs",
35
+ "start-storybook": "node node_modules/@storybook/html/bin/index",
36
+ "build-storybook": "node node_modules/@storybook/html/bin/build -o ./dist/storybook --docs",
37
37
  "test": "yarn doc:ci && yarn test-chrome:verbose",
38
38
  "test-node": "mocha --reporter min --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
39
39
  "test-node:verbose": "mocha --reporter spec --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
@@ -48,41 +48,28 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@storybook/html": "6.5.5",
51
- "@types/chai": "^4.2.11",
52
- "@types/chai-spies": "^1.0.1",
53
- "@types/karma": "^5.0.0",
54
- "@types/mocha": "^7.0.2",
55
- "chai": "^4.2.0",
51
+ "@types/chai": "4.3.3",
52
+ "@types/chai-spies": "1.0.3",
53
+ "@types/karma": "6.3.3",
54
+ "@types/mocha": "7.0.2",
55
+ "chai": "4.3.6",
56
56
  "chai-spies": "1.0.0",
57
- "circular-dependency-plugin": "^5.0.2",
58
- "eslint-plugin-import": "^2.22.1",
59
- "esm": "^3.2.25",
60
- "ignore-loader": "^0.1.2",
61
- "istanbul": "^0.4.5",
62
- "istanbul-instrumenter-loader": "^3.0.1",
57
+ "esm": "3.2.25",
58
+ "ignore-loader": "0.1.2",
59
+ "istanbul": "0.4.5",
60
+ "istanbul-instrumenter-loader": "3.0.1",
63
61
  "jsdom-global": "3.0.2",
64
- "karma": "^6.3.0",
65
- "karma-chrome-launcher": "^3.1.0",
66
- "karma-coverage": "^2.0.2",
67
- "karma-coverage-istanbul-reporter": "^3.0.0",
62
+ "karma": "6.4.0",
63
+ "karma-chrome-launcher": "3.1.1",
64
+ "karma-coverage": "2.2.0",
65
+ "karma-coverage-istanbul-reporter": "3.0.3",
68
66
  "karma-firefox-launcher": "^1.3.0",
69
- "karma-mocha": "^2.0.1",
70
- "karma-mocha-reporter": "^2.2.5",
71
- "karma-source-map-support": "^1.4.0",
72
- "karma-sourcemap-loader": "^0.3.7",
73
- "karma-webpack": "^4.0.2",
74
- "mocha": "^7.1.2",
75
- "rollup": "^2.41.0",
76
- "rollup-plugin-commonjs": "^10.1.0",
77
- "rollup-plugin-filesize": "^8.0.2",
78
- "rollup-plugin-node-resolve": "^5.2.0",
79
- "rollup-plugin-terser": "^5.3.0",
80
- "rollup-plugin-transform-tagged-template": "^0.0.3",
81
- "rollup-plugin-typescript2": "^0.27.0",
82
- "source-map": "^0.7.3",
83
- "source-map-loader": "^0.2.4",
84
- "ts-loader": "^7.0.2",
85
- "webpack": "^4.43.0"
67
+ "karma-mocha": "2.0.1",
68
+ "karma-mocha-reporter": "2.2.5",
69
+ "karma-source-map-support": "1.4.0",
70
+ "karma-sourcemap-loader": "0.3.8",
71
+ "karma-webpack": "5.0.0",
72
+ "mocha": "7.2.0"
86
73
  },
87
74
  "dependencies": {
88
75
  "@microsoft/fast-colors": "^5.3.0",