ember-style-modifier 3.1.1 → 4.1.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,208 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+ ## v4.1.0 (2024-01-11)
11
+
12
+ #### :rocket: Enhancement
13
+ * [#216](https://github.com/jelhan/ember-style-modifier/pull/216) improve typing of CSS styles using csstype package ([@jelhan](https://github.com/jelhan))
14
+
15
+ #### Committers: 1
16
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
17
+
18
+ ## v4.0.0 (2024-01-10)
19
+
20
+ #### :boom: Breaking Change
21
+ * [#181](https://github.com/jelhan/ember-style-modifier/pull/181) drop support for Ember < 4.12 ([@jelhan](https://github.com/jelhan))
22
+ * [#180](https://github.com/jelhan/ember-style-modifier/pull/180) drop support for node 14 and 16 ([@jelhan](https://github.com/jelhan))
23
+
24
+ #### :rocket: Enhancement
25
+ * [#213](https://github.com/jelhan/ember-style-modifier/pull/213) document Ember compatibility adding a peer dep on ember-source ([@jelhan](https://github.com/jelhan))
26
+ * [#211](https://github.com/jelhan/ember-style-modifier/pull/211) better import path for apps using template tag ([@jelhan](https://github.com/jelhan))
27
+ * [#210](https://github.com/jelhan/ember-style-modifier/pull/210) Convert to TypeScript and publish types (including Glint) ([@jelhan](https://github.com/jelhan))
28
+
29
+ #### :house: Internal
30
+ * [#208](https://github.com/jelhan/ember-style-modifier/pull/208) upgrade with Ember CLI v5.5 blueprints ([@jelhan](https://github.com/jelhan))
31
+ * [#207](https://github.com/jelhan/ember-style-modifier/pull/207) migrate from yarn v1 to pnpm ([@jelhan](https://github.com/jelhan))
32
+
33
+ #### Committers: 1
34
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
35
+
36
+
37
+ ## v3.1.1 (2024-01-10)
38
+
39
+ Published `v3.0.1` again to shadow `v3.1.0` release, which includes breaking changes.
40
+
41
+ ## v3.0.1 (2023-02-15)
42
+
43
+ #### :bug: Bug Fix
44
+ * [#148](https://github.com/jelhan/ember-style-modifier/pull/148) Don't dasherize property names twice ([@drewpereli](https://github.com/drewpereli))
45
+
46
+ #### :house: Internal
47
+ * [#149](https://github.com/jelhan/ember-style-modifier/pull/149) ember-cli-update to v4.10 ([@jelhan](https://github.com/jelhan))
48
+
49
+ #### Committers: 2
50
+ - Drew Pereli ([@drewpereli](https://github.com/drewpereli))
51
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
52
+
53
+ ## v3.0.0 (2023-01-16)
54
+
55
+ #### :boom: Breaking Change
56
+ * [#139](https://github.com/jelhan/ember-style-modifier/pull/139) Add `@ember/string` as a dependency ([@boris-petrov](https://github.com/boris-petrov))
57
+
58
+ #### Committers: 1
59
+ - Boris Petrov ([@boris-petrov](https://github.com/boris-petrov))
60
+
61
+ ## v2.1.0 (2023-01-13)
62
+
63
+ #### :house: Internal
64
+ * [#143](https://github.com/jelhan/ember-style-modifier/pull/143) upgrade files created by Ember CLI blueprints to 4.9 ([@jelhan](https://github.com/jelhan))
65
+ * [#142](https://github.com/jelhan/ember-style-modifier/pull/142) refactor pure method to pure function for readability ([@jelhan](https://github.com/jelhan))
66
+ * [#141](https://github.com/jelhan/ember-style-modifier/pull/141) use Array.flat() instead of complex workaround ([@jelhan](https://github.com/jelhan))
67
+ * [#140](https://github.com/jelhan/ember-style-modifier/pull/140) only loop once over styles ([@jelhan](https://github.com/jelhan))
68
+
69
+ #### Committers: 1
70
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
71
+
72
+ ## v2.0.0 (2022-12-22)
73
+
74
+ ember-style-modifier v2 requires consuming application to have an explicit
75
+ dependency on ember-auto-import@v2. This is the only breaking change introduced.
76
+
77
+ Addon authors are encouraged to support both v1 and v2 of ember-style-modifier
78
+ in parallel. Instead of replacing ember-style-modifier@^1.0.0 dependency with a
79
+ dependency on ember-style-modifier@^2.0.0 widening the version range to
80
+ `^1.0.0 || ^2.0.0` is recommended. Widening the version range is _not_ a
81
+ change. Doing so allows applications to upgrade to ember-style-modifer@^2.0.0
82
+ as soon as all their direct and indirect addons support both.
83
+
84
+ #### :boom: Breaking Change
85
+ * [#133](https://github.com/jelhan/ember-style-modifier/pull/133) Add ember-auto-import v2 dependency ([@SergeAstapov](https://github.com/SergeAstapov))
86
+
87
+ #### :rocket: Enhancement
88
+ * [#133](https://github.com/jelhan/ember-style-modifier/pull/133) Widen ember-modifier versions to support v4 ([@SergeAstapov](https://github.com/SergeAstapov))
89
+
90
+ #### Committers: 1
91
+ - Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
92
+
93
+ ## v1.0.0 (2022-10-14)
94
+
95
+ #### :boom: Breaking Change
96
+ * [#112](https://github.com/jelhan/ember-style-modifier/pull/112) drop support for Ember 3.24 ([@jelhan](https://github.com/jelhan))
97
+ * [#111](https://github.com/jelhan/ember-style-modifier/pull/111) drop support for node 12 ([@jelhan](https://github.com/jelhan))
98
+
99
+ #### :house: Internal
100
+ * [#117](https://github.com/jelhan/ember-style-modifier/pull/117) document known limitations ([@jelhan](https://github.com/jelhan))
101
+ * [#114](https://github.com/jelhan/ember-style-modifier/pull/114) update blueprints to Ember CLI 4.7 ([@jelhan](https://github.com/jelhan))
102
+ * [#94](https://github.com/jelhan/ember-style-modifier/pull/94) Update Ember to v4.3 ([@bertdeblock](https://github.com/bertdeblock))
103
+ * [#93](https://github.com/jelhan/ember-style-modifier/pull/93) Update `.npmignore` file ([@bertdeblock](https://github.com/bertdeblock))
104
+ * [#92](https://github.com/jelhan/ember-style-modifier/pull/92) Update CI badge in README ([@bertdeblock](https://github.com/bertdeblock))
105
+
106
+ #### Committers: 2
107
+ - Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
108
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
109
+
110
+ ## v0.8.0 (2022-04-08)
111
+
112
+ #### :rocket: Enhancement
113
+ * [#88](https://github.com/jelhan/ember-style-modifier/pull/88) Resolve `ember-modifier` deprecations ([@bertdeblock](https://github.com/bertdeblock))
114
+
115
+ #### Committers: 1
116
+ - Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
117
+
118
+ ## v0.7.0 (2021-10-27)
119
+
120
+ #### :boom: Breaking Change
121
+ * [#71](https://github.com/jelhan/ember-style-modifier/pull/71) add Ember Auto Import v2 ([@jelhan](https://github.com/jelhan))
122
+ * [#60](https://github.com/jelhan/ember-style-modifier/pull/60) Update dependency ember-modifier to v3 ([@renovate[bot]](https://github.com/apps/renovate))
123
+ * [#67](https://github.com/jelhan/ember-style-modifier/pull/67) drop support for Ember < 3.24 ([@jelhan](https://github.com/jelhan))
124
+ * [#57](https://github.com/jelhan/ember-style-modifier/pull/57) drop support for Ember 3.4 ([@jelhan](https://github.com/jelhan))
125
+ * [#58](https://github.com/jelhan/ember-style-modifier/pull/58) drop support for node 10 ([@jelhan](https://github.com/jelhan))
126
+
127
+ #### :house: Internal
128
+ * [#72](https://github.com/jelhan/ember-style-modifier/pull/72) fix CSP for Embroider builds ([@jelhan](https://github.com/jelhan))
129
+ * [#68](https://github.com/jelhan/ember-style-modifier/pull/68) upgrade addon blueprints to Ember CLI 3.28 ([@jelhan](https://github.com/jelhan))
130
+ * [#51](https://github.com/jelhan/ember-style-modifier/pull/51) Create ember-try scenarios for `no-deprecations` ([@mansona](https://github.com/mansona))
131
+ * [#39](https://github.com/jelhan/ember-style-modifier/pull/39) upgrade to Ember 3.24 ([@jelhan](https://github.com/jelhan))
132
+ * [#64](https://github.com/jelhan/ember-style-modifier/pull/64) finish all scenarios in CI even if one fails ([@jelhan](https://github.com/jelhan))
133
+ * [#28](https://github.com/jelhan/ember-style-modifier/pull/28) Upgrade Ember CLI to 3.21 ([@jelhan](https://github.com/jelhan))
134
+ * [#20](https://github.com/jelhan/ember-style-modifier/pull/20) Configure Renovate ([@renovate[bot]](https://github.com/apps/renovate))
135
+
136
+ #### Committers: 2
137
+ - Chris Manson ([@mansona](https://github.com/mansona))
138
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
139
+
140
+ ## v0.6.0 (2020-08-03)
141
+
142
+ #### :boom: Breaking Change
143
+ * [#19](https://github.com/jelhan/ember-style-modifier/pull/19) Update ember-modifier to 2.1.0 and drop support for Ember < 3.4 ([@andreyfel](https://github.com/andreyfel))
144
+
145
+ #### Committers: 2
146
+ - Andrey Fel ([@andreyfel](https://github.com/andreyfel))
147
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
148
+
149
+ ## v0.5.0 (2019-12-04)
150
+
151
+ #### :boom: Breaking Change
152
+ * [#12](https://github.com/jelhan/ember-style-modifier/pull/12) use public APIs through ember-modifier and upgrade dependencies ([@andreyfel](https://github.com/andreyfel))
153
+
154
+ #### :house: Internal
155
+ * [#14](https://github.com/jelhan/ember-style-modifier/pull/14) automate releases with release-it and lerna-changelog ([@jelhan](https://github.com/jelhan))
156
+ * [#12](https://github.com/jelhan/ember-style-modifier/pull/12) use public APIs through ember-modifier and upgrade dependencies ([@andreyfel](https://github.com/andreyfel))
157
+
158
+ #### Committers: 2
159
+ - Andrey Fel ([@andreyfel](https://github.com/andreyfel))
160
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
161
+
162
+
163
+ ## v0.4.1 (2019-03-28)
164
+
165
+ #### :rocket: Enhancement
166
+ * [#10](https://github.com/jelhan/ember-style-modifier/pull/10) better assertion message for wrong value type ([@jelhan](https://github.com/jelhan))
167
+
168
+ #### Committers: 1
169
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
170
+
171
+
172
+ ## v0.4.0 (2019-03-18)
173
+
174
+ #### :house: Internal
175
+ * [#8](https://github.com/jelhan/ember-style-modifier/pull/8) refactor: drop ember-functional-modifiers ([@buschtoens](https://github.com/buschtoens))
176
+
177
+ #### Committers: 1
178
+ - Jan Buschtöns ([@buschtoens](https://github.com/buschtoens))
179
+
180
+
181
+ ## v0.3.0 (2019-03-13)
182
+
183
+ #### :rocket: Enhancement
184
+ * [#6](https://github.com/jelhan/ember-style-modifier/pull/6) support setting CSS rules using a POJO ([@jelhan](https://github.com/jelhan))
185
+
186
+ #### Committers: 1
187
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
188
+
189
+
190
+ ## v0.2.0 (2019-03-12)
191
+
192
+ #### :boom: Breaking Change
193
+ * [#4](https://github.com/jelhan/ember-style-modifier/pull/4) support a more compact style for declaring CSS rules ([@jelhan](https://github.com/jelhan))
194
+
195
+ #### :rocket: Enhancement
196
+ * [#4](https://github.com/jelhan/ember-style-modifier/pull/4) support a more compact style for declaring CSS rules ([@jelhan](https://github.com/jelhan))
197
+
198
+ #### Committers: 1
199
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
200
+
201
+
202
+ ## v0.1.0 (2019-03-11)
203
+
204
+ Initial proof of concept
205
+
206
+ #### Committers: 1
207
+ - Jeldrik Hanschke ([@jelhan](https://github.com/jelhan))
208
+ -
package/README.md CHANGED
@@ -9,9 +9,9 @@ This allows to set custom CSS of an element without requiring a [Content Securit
9
9
 
10
10
  ## Compatibility
11
11
 
12
- * Ember.js v3.28 or above
13
- * Ember CLI v3.28 or above
14
- * Node.js v14 or above
12
+ * Ember.js v4.12 or above
13
+ * Ember CLI v4.12 or above
14
+ * Node.js v18 or above
15
15
 
16
16
  ## Installation
17
17
 
package/addon/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default } from './modifiers/style';
@@ -2,8 +2,15 @@ import Modifier from 'ember-modifier';
2
2
  import { dasherize } from '@ember/string';
3
3
  import { assert } from '@ember/debug';
4
4
  import { typeOf } from '@ember/utils';
5
+ import type * as CSS from 'csstype';
5
6
 
6
- function isObject(o) {
7
+ // Cannot be typed as `Partial<CSSStyleDeclaration>` because `CSSStyleDeclaration`
8
+ // interface does _not_ included dashed CSS property names. It only includes the
9
+ // camelCase version of a CSS property.
10
+ // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1672
11
+ type CSSStyles = Partial<CSS.Properties> | Partial<CSS.PropertiesHyphen>;
12
+
13
+ function isObject(o: unknown): boolean {
7
14
  return typeof o === 'object' && Boolean(o);
8
15
  }
9
16
 
@@ -20,18 +27,33 @@ function isObject(o) {
20
27
  *
21
28
  * This data structure is slightly faster to process than an object / dictionary.
22
29
  */
23
- function compileStyles(positional, named) {
30
+ function compileStyles(
31
+ positional: CSSStyles[],
32
+ named: CSSStyles,
33
+ ): [string, string][] {
24
34
  return [...positional.filter(isObject), named]
25
- .map((obj) => Object.entries(obj).map(([k, v]) => [dasherize(k), v]))
35
+ .map((obj) =>
36
+ Object.entries(obj).map(
37
+ ([k, v]) => [dasherize(k), v] as [string, string],
38
+ ),
39
+ )
26
40
  .flat();
27
41
  }
28
42
 
29
- export default class StyleModifier extends Modifier {
30
- existingStyles = new Set();
43
+ export interface StyleModifierSignature {
44
+ Element: HTMLElement;
45
+ Args: {
46
+ Positional: CSSStyles[];
47
+ Named: CSSStyles;
48
+ };
49
+ }
50
+
51
+ export default class StyleModifier extends Modifier<StyleModifierSignature> {
52
+ existingStyles: Set<string> = new Set();
31
53
 
32
- setStyles(element, newStyles) {
54
+ setStyles(element: HTMLElement, newStyles: [string, string][]) {
33
55
  const { existingStyles } = this;
34
- const rulesToRemove = new Set(existingStyles);
56
+ const rulesToRemove: Set<string> = new Set(existingStyles);
35
57
 
36
58
  // clear cache of existing styles
37
59
  existingStyles.clear();
@@ -39,10 +61,10 @@ export default class StyleModifier extends Modifier {
39
61
  newStyles.forEach(([property, value]) => {
40
62
  assert(
41
63
  `Your given value for property '${property}' is ${value} (${typeOf(
42
- value
64
+ value,
43
65
  )}). ` +
44
66
  'Accepted types are string and undefined. Please change accordingly.',
45
- typeof value === 'undefined' || typeOf(value) === 'string'
67
+ typeof value === 'undefined' || typeOf(value) === 'string',
46
68
  );
47
69
 
48
70
  // priority must be specified as separate argument
@@ -67,7 +89,7 @@ export default class StyleModifier extends Modifier {
67
89
  rulesToRemove.forEach((rule) => element.style.removeProperty(rule));
68
90
  }
69
91
 
70
- modify(element, positional, named) {
92
+ modify(element: HTMLElement, positional: [CSSStyles] | [], named: CSSStyles) {
71
93
  this.setStyles(element, compileStyles(positional, named));
72
94
  }
73
95
  }
@@ -0,0 +1,5 @@
1
+ import type StyleModifier from './modifiers/style';
2
+
3
+ export default interface EmberStyleModifierRegistry {
4
+ style: typeof StyleModifier;
5
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './modifiers/style';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../addon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import Modifier from 'ember-modifier';
2
+ import type * as CSS from 'csstype';
3
+ type CSSStyles = Partial<CSS.Properties> | Partial<CSS.PropertiesHyphen>;
4
+ export interface StyleModifierSignature {
5
+ Element: HTMLElement;
6
+ Args: {
7
+ Positional: CSSStyles[];
8
+ Named: CSSStyles;
9
+ };
10
+ }
11
+ export default class StyleModifier extends Modifier<StyleModifierSignature> {
12
+ existingStyles: Set<string>;
13
+ setStyles(element: HTMLElement, newStyles: [string, string][]): void;
14
+ modify(element: HTMLElement, positional: [CSSStyles] | [], named: CSSStyles): void;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../addon/modifiers/style.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAItC,OAAO,KAAK,KAAK,GAAG,MAAM,SAAS,CAAC;AAMpC,KAAK,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAgCzE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,UAAU,EAAE,SAAS,EAAE,CAAC;QACxB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,sBAAsB,CAAC;IACzE,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAExC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;IAsC7D,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS;CAG5E"}
@@ -0,0 +1,5 @@
1
+ import type StyleModifier from './modifiers/style';
2
+ export default interface EmberStyleModifierRegistry {
3
+ style: typeof StyleModifier;
4
+ }
5
+ //# sourceMappingURL=template-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../../addon/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,OAAO,WAAW,0BAA0B;IACjD,KAAK,EAAE,OAAO,aAAa,CAAC;CAC7B"}
package/index.js CHANGED
@@ -2,4 +2,8 @@
2
2
 
3
3
  module.exports = {
4
4
  name: require('./package').name,
5
+
6
+ options: {
7
+ 'ember-cli-babel': { enableTypeScriptTransform: true },
8
+ },
5
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-style-modifier",
3
- "version": "3.1.1",
3
+ "version": "4.1.0",
4
4
  "description": "{{style}} modifier to set an element's style using the CSSStyleDeclaration API.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -8,6 +8,21 @@
8
8
  "repository": "https://github.com/jelhan/ember-style-modifier",
9
9
  "license": "MIT",
10
10
  "author": "",
11
+ "typesVersions": {
12
+ "*": {
13
+ "test-support": [
14
+ "declarations/addon-test-support/index.d.ts"
15
+ ],
16
+ "test-support/*": [
17
+ "declarations/addon-test-support/*",
18
+ "declarations/addon-test-support/*/index.d.ts"
19
+ ],
20
+ "*": [
21
+ "declarations/addon/*",
22
+ "declarations/addon/*/index.d.ts"
23
+ ]
24
+ }
25
+ },
11
26
  "directories": {
12
27
  "doc": "doc",
13
28
  "test": "tests"
@@ -15,66 +30,114 @@
15
30
  "scripts": {
16
31
  "build": "ember build --environment=production",
17
32
  "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
33
+ "lint:css": "stylelint \"**/*.css\"",
34
+ "lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
18
35
  "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
19
36
  "lint:hbs": "ember-template-lint .",
20
37
  "lint:hbs:fix": "ember-template-lint . --fix",
21
38
  "lint:js": "eslint . --cache",
22
- "release": "release-it",
23
39
  "lint:js:fix": "eslint . --fix",
40
+ "lint:types": "glint",
41
+ "prepack": "tsc --project tsconfig.declarations.json",
42
+ "postpack": "rimraf declarations",
43
+ "release": "release-it",
24
44
  "start": "ember serve",
25
45
  "test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
26
46
  "test:ember": "ember test",
27
47
  "test:ember-compatibility": "ember try:each"
28
48
  },
29
49
  "dependencies": {
30
- "ember-auto-import": "^2.5.0",
31
- "ember-cli-babel": "^7.26.11",
50
+ "@babel/core": "^7.23.6",
51
+ "csstype": "^3.1.3",
52
+ "ember-auto-import": "^2.7.0",
53
+ "ember-cli-babel": "^8.2.0",
32
54
  "ember-modifier": "^3.2.7 || ^4.0.0"
33
55
  },
34
56
  "devDependencies": {
35
57
  "@ember/optional-features": "^2.0.0",
36
- "@ember/string": "^3.0.1",
37
- "@ember/test-helpers": "^2.9.3",
38
- "@embroider/test-setup": "^2.0.2",
58
+ "@ember/string": "^3.1.1",
59
+ "@ember/test-helpers": "^3.2.1",
60
+ "@embroider/test-setup": "^3.0.3",
39
61
  "@glimmer/component": "^1.1.2",
40
62
  "@glimmer/tracking": "^1.1.2",
41
- "babel-eslint": "^10.1.0",
63
+ "@glint/core": "^1.2.2",
64
+ "@glint/environment-ember-loose": "^1.2.2",
65
+ "@glint/environment-ember-template-imports": "^1.2.2",
66
+ "@glint/template": "^1.2.2",
67
+ "@release-it-plugins/lerna-changelog": "^6.0.0",
68
+ "@tsconfig/ember": "^3.0.2",
69
+ "@types/ember": "^4.0.10",
70
+ "@types/ember__application": "^4.0.10",
71
+ "@types/ember__array": "^4.0.9",
72
+ "@types/ember__component": "^4.0.21",
73
+ "@types/ember__controller": "^4.0.11",
74
+ "@types/ember__debug": "^4.0.7",
75
+ "@types/ember__destroyable": "^4.0.4",
76
+ "@types/ember__engine": "^4.0.10",
77
+ "@types/ember__error": "^4.0.5",
78
+ "@types/ember__helper": "^4.0.5",
79
+ "@types/ember__modifier": "^4.0.8",
80
+ "@types/ember__object": "^4.0.11",
81
+ "@types/ember__owner": "^4.0.8",
82
+ "@types/ember__polyfills": "^4.0.5",
83
+ "@types/ember__routing": "^4.0.19",
84
+ "@types/ember__runloop": "^4.0.8",
85
+ "@types/ember__service": "^4.0.8",
86
+ "@types/ember__string": "^3.16.3",
87
+ "@types/ember__template": "^4.0.5",
88
+ "@types/ember__test": "^4.0.5",
89
+ "@types/ember__utils": "^4.0.6",
90
+ "@types/qunit": "^2.19.9",
91
+ "@types/rsvp": "^4.0.8",
92
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
93
+ "@typescript-eslint/parser": "^6.14.0",
42
94
  "broccoli-asset-rev": "^3.0.0",
43
- "concurrently": "^7.6.0",
44
- "ember-cli": "~4.10.0",
95
+ "concurrently": "^8.2.2",
96
+ "ember-auto-import": "^2.7.0",
97
+ "ember-cli": "~5.5.0",
98
+ "ember-cli-clean-css": "^3.0.0",
45
99
  "ember-cli-content-security-policy": "^2.0.3",
46
- "ember-cli-dependency-checker": "^3.3.1",
47
- "ember-cli-htmlbars": "^6.2.0",
100
+ "ember-cli-dependency-checker": "^3.3.2",
101
+ "ember-cli-htmlbars": "^6.3.0",
48
102
  "ember-cli-inject-live-reload": "^2.1.0",
49
103
  "ember-cli-sri": "^2.1.1",
50
104
  "ember-cli-terser": "^4.0.2",
105
+ "ember-eslint-parser": "^0.2.5",
51
106
  "ember-load-initializers": "^2.1.2",
52
- "ember-page-title": "^7.0.0",
53
- "ember-qunit": "^6.1.1",
54
- "ember-resolver": "^10.0.0",
55
- "ember-source": "~4.10.0",
107
+ "ember-page-title": "^8.1.0",
108
+ "ember-qunit": "^7.0.0",
109
+ "ember-resolver": "^11.0.1",
110
+ "ember-source": "~5.5.0",
56
111
  "ember-source-channel-url": "^3.0.0",
57
- "ember-template-lint": "^5.3.1",
58
- "ember-try": "^2.0.0",
59
- "eslint": "^7.32.0",
60
- "eslint-config-prettier": "^8.6.0",
61
- "eslint-plugin-ember": "^11.4.3",
62
- "eslint-plugin-n": "^15.6.1",
63
- "eslint-plugin-prettier": "^4.2.1",
64
- "eslint-plugin-qunit": "^7.3.4",
112
+ "ember-template-imports": "^4.0.0",
113
+ "ember-template-lint": "^5.13.0",
114
+ "ember-try": "^3.0.0",
115
+ "ember-welcome-page": "^7.0.2",
116
+ "eslint": "^8.55.0",
117
+ "eslint-config-prettier": "^9.1.0",
118
+ "eslint-plugin-ember": "^11.11.1",
119
+ "eslint-plugin-n": "^16.4.0",
120
+ "eslint-plugin-prettier": "^5.0.1",
121
+ "eslint-plugin-qunit": "^8.0.1",
65
122
  "loader.js": "^4.7.0",
66
- "prettier": "^2.8.3",
67
- "qunit": "^2.19.3",
68
- "qunit-dom": "^2.0.0",
69
- "release-it": "^15.0.0",
70
- "release-it-lerna-changelog": "^5.0.0",
71
- "webpack": "^5.75.0"
123
+ "prettier": "^3.1.1",
124
+ "prettier-plugin-ember-template-tag": "^2.0.0",
125
+ "qunit": "^2.20.0",
126
+ "qunit-dom": "^3.0.0",
127
+ "release-it": "^16.0.0",
128
+ "rimraf": "^5.0.1",
129
+ "stylelint": "^16.0.0",
130
+ "stylelint-config-standard": "^36.0.0",
131
+ "stylelint-prettier": "^5.0.0",
132
+ "typescript": "^5.3.3",
133
+ "webpack": "^5.89.0"
72
134
  },
73
135
  "peerDependencies": {
74
- "@ember/string": "^3.0.1"
136
+ "@ember/string": "^3.0.1",
137
+ "ember-source": ">= 4.12.0"
75
138
  },
76
139
  "engines": {
77
- "node": "14.* || 16.* || >= 18"
140
+ "node": "18.* || >= 20"
78
141
  },
79
142
  "publishConfig": {
80
143
  "registry": "https://registry.npmjs.org"
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declarationDir": "declarations",
5
+ "emitDeclarationOnly": true,
6
+ "noEmit": false,
7
+ "rootDir": "."
8
+ },
9
+ "include": ["addon", "addon-test-support"]
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "@tsconfig/ember/tsconfig.json",
3
+ "compilerOptions": {
4
+ // The combination of `baseUrl` with `paths` allows Ember's classic package
5
+ // layout, which is not resolvable with the Node resolution algorithm, to
6
+ // work with TypeScript.
7
+ "baseUrl": ".",
8
+ "paths": {
9
+ "dummy/tests/*": ["tests/*"],
10
+ "dummy/*": ["tests/dummy/app/*", "app/*"],
11
+ "ember-style-modifier": ["addon"],
12
+ "ember-style-modifier/*": ["addon/*"],
13
+ "ember-style-modifier/test-support": ["addon-test-support"],
14
+ "ember-style-modifier/test-support/*": ["addon-test-support/*"],
15
+ "*": ["types/*"]
16
+ }
17
+ },
18
+ "glint": {
19
+ "environment": ["ember-loose", "ember-template-imports"]
20
+ }
21
+ }
@@ -0,0 +1,6 @@
1
+ import '@glint/environment-ember-loose';
2
+ import EmberStyleModifierRegistry from 'ember-style-modifier/template-registry';
3
+
4
+ declare module '@glint/environment-ember-loose/registry' {
5
+ export default interface Registry extends EmberStyleModifierRegistry {}
6
+ }