Skip to content

Commit 7984c27

Browse files
committed
build(deps): Bumped to latest Storybook and Biomejs
* Ran auto-migrations and fixed several issues.
1 parent c96cf90 commit 7984c27

File tree

8 files changed

+268
-299
lines changed

8 files changed

+268
-299
lines changed

.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default {
164164
},
165165
parameters: {
166166
backgrounds: {
167-
disable: true,
167+
disabled: true,
168168
},
169169
},
170170
decorators: [themeProvider, withActions, localeProvider],

package-lock.json

Lines changed: 239 additions & 269 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
"lit": "^3.3.1"
6161
},
6262
"devDependencies": {
63-
"@biomejs/biome": "~2.2.6",
63+
"@biomejs/biome": "~2.3.2",
6464
"@custom-elements-manifest/analyzer": "^0.10.10",
6565
"@igniteui/material-icons-extended": "^3.1.0",
6666
"@open-wc/testing": "^4.0.0",
67-
"@storybook/addon-a11y": "^9.1.13",
68-
"@storybook/addon-docs": "^9.1.13",
69-
"@storybook/addon-links": "^9.1.13",
70-
"@storybook/web-components-vite": "^9.1.13",
67+
"@storybook/addon-a11y": "^10.0.1",
68+
"@storybook/addon-docs": "^10.0.1",
69+
"@storybook/addon-links": "^10.0.1",
70+
"@storybook/web-components-vite": "^10.0.1",
7171
"@types/mocha": "^10.0.10",
7272
"@web/dev-server-esbuild": "^1.0.4",
7373
"@web/test-runner": "^0.20.2",
@@ -84,7 +84,7 @@
8484
"igniteui-i18n-resources": "0.6.0-alpha.4",
8585
"igniteui-theming": "^21.0.2",
8686
"keep-a-changelog": "^2.7.1",
87-
"lint-staged": "^16.2.5",
87+
"lint-staged": "^16.2.6",
8888
"lit-analyzer": "^2.0.3",
8989
"madge": "^8.0.0",
9090
"node-watch": "^0.7.4",
@@ -94,7 +94,7 @@
9494
"rimraf": "^6.0.1",
9595
"sass-embedded": "~1.93.2",
9696
"sinon": "^21.0.0",
97-
"storybook": "^9.1.13",
97+
"storybook": "^10.0.1",
9898
"stylelint": "^16.25.0",
9999
"stylelint-config-standard-scss": "^16.0.0",
100100
"stylelint-prettier": "^5.0.3",
@@ -104,13 +104,13 @@
104104
"typedoc": "~0.27.9",
105105
"typedoc-plugin-localization": "^3.0.6",
106106
"typescript": "^5.8.3",
107-
"vite": "^7.1.11"
107+
"vite": "^7.1.12"
108108
},
109109
"peerDependencies": {
110110
"dompurify": "^3.3.0",
111111
"marked": "^16.4.1",
112112
"marked-shiki": "^1.2.1",
113-
"shiki": "^3.13.0"
113+
"shiki": "^3.14.0"
114114
},
115115
"browserslist": [
116116
"defaults"

scripts/report.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { stdout } from 'node:process';
2-
import { format } from 'node:util';
2+
import { format, styleText } from 'node:util';
33

44
export default {
5-
error: (s) => console.error('\x1b[31m%s\x1b[0m', s),
6-
success: (s) => console.info('\x1b[32m%s\x1b[0m', s),
7-
warn: (s) => console.warn('\x1b[33m%s\x1b[0m', s),
8-
info: (s) => console.info('\x1b[36m%s\x1b[0m', s),
5+
error: (s) => console.error(styleText('red', s)),
6+
success: (s) => console.info(styleText('green', s)),
7+
warn: (s) => console.warn(styleText('yellow', s)),
8+
info: (s) => console.info(styleText('cyan', s)),
99

1010
stdout: {
1111
clearLine: () => {
1212
stdout.clearLine(0);
1313
stdout.cursorTo(0);
1414
},
15-
success: (s) => stdout.write(format('\x1b[32m%s\x1b[0m', s)),
16-
warn: (s) => stdout.write(format('\x1b[33m%s\x1b[0m', s)),
17-
info: (s) => stdout.write(format('\x1b[36m%s\x1b[0m', s)),
15+
success: (s) => stdout.write(format(styleText('green', s))),
16+
warn: (s) => stdout.write(format(styleText('yellow', s))),
17+
info: (s) => stdout.write(format(styleText('cyan', s))),
1818
},
1919
};

src/components/date-range-picker/date-range-picker.common.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,15 @@ describe('Date range picker - common tests for single and two inputs mode', () =
380380

381381
const predefinedArea = picker.renderRoot.querySelector(
382382
IgcPredefinedRangesAreaComponent.tagName
383-
);
383+
)!;
384384

385385
for (const test of tests) {
386386
expect(predefinedArea?.resourceStrings[test.key]).to.equal(
387387
test.value
388388
);
389389
}
390390

391-
const chipElements = predefinedArea?.shadowRoot!.querySelectorAll(
391+
const chipElements = predefinedArea.renderRoot.querySelectorAll(
392392
'igc-chip'
393393
) as NodeListOf<IgcChipComponent>;
394394
for (const test of tests) {
@@ -420,14 +420,14 @@ describe('Date range picker - common tests for single and two inputs mode', () =
420420

421421
const predefinedArea = picker.renderRoot.querySelector(
422422
IgcPredefinedRangesAreaComponent.tagName
423-
);
423+
)!;
424424
for (const test of tests) {
425425
expect(predefinedArea?.resourceStrings[test.key]).to.equal(
426426
test.value
427427
);
428428
}
429429

430-
const chipElements = predefinedArea?.shadowRoot!.querySelectorAll(
430+
const chipElements = predefinedArea.renderRoot.querySelectorAll(
431431
'igc-chip'
432432
) as NodeListOf<IgcChipComponent>;
433433
for (const test of tests) {
@@ -708,7 +708,7 @@ describe('Date range picker - common tests for single and two inputs mode', () =
708708
function getPredefinedArea() {
709709
return picker.renderRoot.querySelector(
710710
IgcPredefinedRangesAreaComponent.tagName
711-
);
711+
)!;
712712
}
713713

714714
function getPopover() {
@@ -726,7 +726,7 @@ describe('Date range picker - common tests for single and two inputs mode', () =
726726
}
727727

728728
function getRangeChips() {
729-
return getPredefinedArea()?.renderRoot.querySelectorAll(
729+
return getPredefinedArea().renderRoot.querySelectorAll(
730730
IgcChipComponent.tagName
731731
)!;
732732
}

src/components/date-range-picker/date-range-picker.utils.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ export const checkSelectedRange = (
6969
}
7070

7171
if (expectedValue?.start) {
72-
checkDatesEqual(calendar.values[0], expectedValue?.start!);
72+
checkDatesEqual(calendar.values[0], expectedValue.start!);
7373
}
7474
if (expectedValue?.end) {
7575
const length = calendar.values.length;
76-
checkDatesEqual(calendar.values[length - 1], expectedValue?.end!);
76+
checkDatesEqual(calendar.values[length - 1], expectedValue.end!);
7777
}
7878
if (!(expectedValue?.start || expectedValue?.end)) {
7979
expect(calendar.values).to.deep.equal([]);

src/components/tile-manager/tile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ export default class IgcTileComponent extends EventEmitterMixin<
169169
}
170170

171171
/** Returns the tile manager internal CSS grid container. */
172-
private get _cssContainer(): HTMLElement {
173-
return this._tileManagerCtx?.grid.value!;
172+
private get _cssContainer(): HTMLElement | undefined {
173+
return this._tileManagerCtx?.grid.value;
174174
}
175175

176176
/** Returns the tile manager current resize mode. */
@@ -494,7 +494,7 @@ export default class IgcTileComponent extends EventEmitterMixin<
494494
this._resizeState.updateState(
495495
event.detail.state.initial,
496496
this,
497-
this._cssContainer
497+
this._cssContainer!
498498
);
499499
this._setResizeState();
500500
}

vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default defineConfig({
1717
css: {
1818
preprocessorOptions: {
1919
scss: {
20-
api: 'modern-compiler',
2120
loadPaths: ['node_modules', 'src'],
2221
},
2322
},

0 commit comments

Comments
 (0)