Skip to content

Commit beb7689

Browse files
committed
fix styles and bump @embroider/addon-dev & babel-plugin-ember-template-compilation
1 parent 04dd5ca commit beb7689

File tree

11 files changed

+1532
-1342
lines changed

11 files changed

+1532
-1342
lines changed

addon/babel.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"@embroider/addon-dev/template-colocation-plugin",
1212
[
13-
"babel-plugin-ember-template-compilation",
13+
"module:babel-plugin-ember-template-compilation",
1414
{
1515
"targetFormat": "hbs",
1616
"transforms": []

addon/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* npx eslint --inspect-config
1313
*
1414
*/
15-
import babelParser from '@babel/eslint-parser';
15+
import babelParser from '@babel/eslint-parser/experimental-worker';
1616
import js from '@eslint/js';
1717
import prettier from 'eslint-config-prettier';
1818
import ember from 'eslint-plugin-ember/recommended';

addon/package.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -62,37 +62,38 @@
6262
"decorator-transforms": "^2.3.0"
6363
},
6464
"devDependencies": {
65-
"@babel/core": "^7.27.4",
66-
"@babel/eslint-parser": "^7.27.5",
67-
"@babel/plugin-transform-typescript": "^7.27.1",
68-
"@babel/runtime": "^7.27.6",
69-
"@embroider/addon-dev": "^7.1.4",
70-
"@eslint/js": "^9.29.0",
65+
"@babel/core": "^7.28.4",
66+
"@babel/eslint-parser": "^7.28.4",
67+
"@babel/plugin-transform-typescript": "^7.28.0",
68+
"@babel/runtime": "^7.28.4",
69+
"@embroider/addon-dev": "^8.1.0",
70+
"@eslint/js": "^9.36.0",
7171
"@glimmer/component": "^2.0.0",
7272
"@glint/core": "^1.5.2",
7373
"@glint/environment-ember-loose": "^1.5.2",
7474
"@glint/environment-ember-template-imports": "^1.5.2",
75-
"@glint/template": "^1.5.2",
75+
"@glint/template": "1.5.2",
7676
"@rollup/plugin-babel": "^6.0.4",
77-
"@tsconfig/ember": "^3.0.10",
78-
"babel-plugin-ember-template-compilation": "^2.4.1",
79-
"concurrently": "^9.1.2",
80-
"ember-source": "^6.5.0",
81-
"ember-template-lint": "^7.9.1",
82-
"eslint": "^9.29.0",
83-
"eslint-config-prettier": "^10.1.5",
84-
"eslint-plugin-ember": "^12.5.0",
85-
"eslint-plugin-import": "^2.31.0",
86-
"eslint-plugin-n": "^17.20.0",
87-
"globals": "^16.2.0",
88-
"prettier": "^3.5.3",
89-
"prettier-plugin-ember-template-tag": "^2.0.6",
90-
"rollup": "^4.43.0",
77+
"@tsconfig/ember": "^3.0.11",
78+
"babel-plugin-ember-template-compilation": "^3.0.1",
79+
"concurrently": "^9.2.1",
80+
"ember-source": "^6.7.0",
81+
"ember-template-lint": "^7.9.3",
82+
"eslint": "^9.36.0",
83+
"eslint-config-prettier": "^10.1.8",
84+
"eslint-plugin-ember": "^12.7.4",
85+
"eslint-plugin-import": "^2.32.0",
86+
"eslint-plugin-n": "^17.23.1",
87+
"globals": "^16.4.0",
88+
"prettier": "^3.6.2",
89+
"prettier-plugin-ember-template-tag": "^2.1.0",
90+
"rollup": "^4.52.3",
9191
"rollup-plugin-copy": "^3.5.0",
92-
"stylelint": "^16.20.0",
93-
"stylelint-config-standard": "^38.0.0",
94-
"typescript": "~5.8.3",
95-
"typescript-eslint": "^8.34.0"
92+
"rollup-plugin-import-css": "^4.0.2",
93+
"stylelint": "^16.24.0",
94+
"stylelint-config-standard": "^39.0.0",
95+
"typescript": "~5.9.3",
96+
"typescript-eslint": "^8.45.0"
9697
},
9798
"ember": {
9899
"edition": "octane"
@@ -105,4 +106,4 @@
105106
"type": "addon",
106107
"version": 2
107108
}
108-
}
109+
}

addon/rollup.config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Addon } from '@embroider/addon-dev/rollup';
22
import { babel } from '@rollup/plugin-babel';
33
import copy from 'rollup-plugin-copy';
4+
import css from 'rollup-plugin-import-css';
45

56
const addon = new Addon({
67
srcDir: 'src',
@@ -59,7 +60,13 @@ export default {
5960

6061
// addons are allowed to contain imports of .css files, which we want rollup
6162
// to leave alone and keep in the published output.
62-
addon.keepAssets(['**/*.css']),
63+
// addon.keepAssets(['**/*.css']),
64+
65+
css({
66+
output: 'styles/navigation-narrator.css',
67+
preserveImports: true,
68+
minify: true,
69+
}),
6370

6471
// Remove leftover build artifacts when starting a new build.
6572
addon.clean(),

addon/src/components/navigation-narrator.gts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { on } from '@ember/modifier';
55
import { registerDestructor } from '@ember/destroyable';
66
import { schedule, cancel } from '@ember/runloop';
77

8+
import '../styles/navigation-narrator.css';
89
import { defaultValidator } from '../utils/validators.js';
910

1011
import type RouterService from '@ember/routing/router-service';
@@ -36,15 +37,14 @@ export interface NavigationNarratorSignature {
3637
Element: HTMLElement;
3738
}
3839

39-
4040
/**
4141
* 🎧 NavigationNarrator
4242
*
4343
* Announces route changes for screen readers using a visually-hidden element,
4444
* and optionally renders a "Skip to main content" link.
4545
*
4646
* Usage:
47-
* ```gts
47+
* ```gjs
4848
* import { NavigationNarrator } from 'ember-a11y-refocus';
4949
*
5050
* <template>

addon/src/styles/navigation-narrator.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: 1px;
55
padding: 0;
66
overflow: hidden;
7-
clip: rect(0, 0, 0, 0);
7+
clip-path: inset(50%);
88
white-space: nowrap;
99
border: 0;
1010
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
},
2121
"devDependencies": {
2222
"@glint/core": "^1.5.2",
23-
"concurrently": "^9.1.2",
24-
"prettier": "^3.5.3",
25-
"prettier-plugin-ember-template-tag": "^2.0.6",
26-
"release-plan": "^0.17.0"
23+
"concurrently": "^9.2.1",
24+
"prettier": "^3.6.2",
25+
"prettier-plugin-ember-template-tag": "^2.1.0",
26+
"release-plan": "^0.17.2"
2727
},
2828
"packageManager": "[email protected]+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef",
2929
"engines": {
3030
"node": "22.x",
3131
"pnpm": ">= 10"
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)