ember-container-query 3.1.0 → 4.0.0-alpha.1

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 (57) hide show
  1. package/README.md +33 -12
  2. package/addon-main.js +5 -0
  3. package/dist/_app_/components/container-query.js +1 -0
  4. package/dist/_app_/helpers/aspect-ratio.js +1 -0
  5. package/dist/_app_/helpers/height.js +1 -0
  6. package/dist/_app_/helpers/width.js +1 -0
  7. package/dist/_app_/modifiers/container-query.js +1 -0
  8. package/dist/applyDecoratedDescriptor-fa858ac4.js +77 -0
  9. package/dist/applyDecoratedDescriptor-fa858ac4.js.map +1 -0
  10. package/{addon/styles → dist/components}/container-query.css +0 -0
  11. package/{components → dist/components}/container-query.d.ts +4 -4
  12. package/dist/components/container-query.d.ts.map +1 -0
  13. package/dist/components/container-query.js +40 -0
  14. package/dist/components/container-query.js.map +1 -0
  15. package/dist/helpers/aspect-ratio.d.ts +13 -0
  16. package/dist/helpers/aspect-ratio.js +15 -0
  17. package/dist/helpers/aspect-ratio.js.map +1 -0
  18. package/dist/helpers/height.d.ts +13 -0
  19. package/dist/helpers/height.js +15 -0
  20. package/dist/helpers/height.js.map +1 -0
  21. package/dist/helpers/width.d.ts +13 -0
  22. package/dist/helpers/width.js +15 -0
  23. package/dist/helpers/width.js.map +1 -0
  24. package/dist/index.d.ts +5 -0
  25. package/dist/index.js +6 -0
  26. package/dist/index.js.map +1 -0
  27. package/{modifiers → dist/modifiers}/container-query.d.ts +5 -5
  28. package/dist/modifiers/container-query.js +106 -0
  29. package/dist/modifiers/container-query.js.map +1 -0
  30. package/dist/template-registry.d.ts +13 -0
  31. package/dist/template-registry.js +2 -0
  32. package/dist/template-registry.js.map +1 -0
  33. package/package.json +48 -107
  34. package/.netlifyredirects +0 -1
  35. package/.stylelintcache +0 -1
  36. package/.stylelintrc.js +0 -64
  37. package/CHANGELOG.md +0 -410
  38. package/addon/components/container-query.hbs +0 -21
  39. package/addon/components/container-query.ts +0 -48
  40. package/addon/helpers/cq-aspect-ratio.ts +0 -25
  41. package/addon/helpers/cq-height.ts +0 -23
  42. package/addon/helpers/cq-width.ts +0 -23
  43. package/addon/modifiers/container-query.ts +0 -179
  44. package/addon/template-registry.ts +0 -13
  45. package/app/components/container-query.js +0 -1
  46. package/app/helpers/cq-aspect-ratio.js +0 -1
  47. package/app/helpers/cq-height.js +0 -1
  48. package/app/helpers/cq-width.js +0 -1
  49. package/app/modifiers/container-query.js +0 -1
  50. package/helpers/cq-aspect-ratio.d.ts +0 -13
  51. package/helpers/cq-height.d.ts +0 -13
  52. package/helpers/cq-width.d.ts +0 -13
  53. package/index.js +0 -5
  54. package/template-registry.d.ts +0 -13
  55. package/tsconfig.json +0 -47
  56. package/types/dummy/index.d.ts +0 -33
  57. package/types/global.d.ts +0 -6
package/CHANGELOG.md DELETED
@@ -1,410 +0,0 @@
1
- ## 3.1.0 (2022-12-20)
2
-
3
- ### Enhancement
4
- * [#140](https://github.com/ijlee2/ember-container-query/pull/140) Add Glint signatures ([@ijlee2](https://github.com/ijlee2))
5
-
6
- ### Internal
7
- * [#145](https://github.com/ijlee2/ember-container-query/pull/145) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
8
- * [#141](https://github.com/ijlee2/ember-container-query/pull/141) Glint demo app ([@ijlee2](https://github.com/ijlee2))
9
- * [#140](https://github.com/ijlee2/ember-container-query/pull/140) Add Glint signatures ([@ijlee2](https://github.com/ijlee2))
10
-
11
- ### Documentation
12
- * [#141](https://github.com/ijlee2/ember-container-query/pull/141) Glint demo app ([@ijlee2](https://github.com/ijlee2))
13
- * [#140](https://github.com/ijlee2/ember-container-query/pull/140) Add Glint signatures ([@ijlee2](https://github.com/ijlee2))
14
-
15
- ### Committers: 1
16
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
17
- - Thanks to [@NullVoxPopuli](https://github.com/NullVoxPopuli), [@denisclark](https://github.com/denisclark), [@gossi](https://github.com/gossi), and [@buschtoens](https://github.com/buschtoens) for their help with [#140](https://github.com/ijlee2/ember-container-query/pull/140)
18
-
19
-
20
- ## 3.0.0 (2022-12-15)
21
-
22
- ### Breaking Change
23
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
24
-
25
- ### Internal
26
- * [#142](https://github.com/ijlee2/ember-container-query/pull/142) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
27
- * [#138](https://github.com/ijlee2/ember-container-query/pull/138) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
28
- * [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
29
- * [#136](https://github.com/ijlee2/ember-container-query/pull/136) Reinstalled ember-cli-typescript ([@ijlee2](https://github.com/ijlee2))
30
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
31
- * [#131](https://github.com/ijlee2/ember-container-query/pull/131) Remove ember-cli-typescript. Enable enableTypeScriptTransform instead. ([@ijlee2](https://github.com/ijlee2))
32
-
33
- ### Documentation
34
- * [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
35
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
36
- * [#134](https://github.com/ijlee2/ember-container-query/pull/134) Refactor tests ([@ijlee2](https://github.com/ijlee2))
37
-
38
- ### Committers: 1
39
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
40
-
41
-
42
- ## 3.0.0-alpha.0 (2022-12-13)
43
-
44
- ### Breaking Change
45
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
46
-
47
- ### Internal
48
- * [#138](https://github.com/ijlee2/ember-container-query/pull/138) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
49
- * [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
50
- * [#136](https://github.com/ijlee2/ember-container-query/pull/136) Reinstalled ember-cli-typescript ([@ijlee2](https://github.com/ijlee2))
51
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
52
- * [#131](https://github.com/ijlee2/ember-container-query/pull/131) Remove ember-cli-typescript. Enable enableTypeScriptTransform instead. ([@ijlee2](https://github.com/ijlee2))
53
-
54
- ### Documentation
55
- * [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
56
- * [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
57
- * [#134](https://github.com/ijlee2/ember-container-query/pull/134) Refactor tests ([@ijlee2](https://github.com/ijlee2))
58
-
59
- ### Committers: 1
60
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
61
-
62
-
63
- ## 2.1.1 (2022-12-02)
64
-
65
- ### Bug Fix
66
- * [#128](https://github.com/ijlee2/ember-container-query/pull/128) Replaced @ember/render-modifiers with ember-modifier ([@ijlee2](https://github.com/ijlee2))
67
- * [#126](https://github.com/ijlee2/ember-container-query/pull/126) Listed ember-test-selectors as a dependency ([@ijlee2](https://github.com/ijlee2))
68
-
69
- ### Enhancement
70
- * [#128](https://github.com/ijlee2/ember-container-query/pull/128) Replaced @ember/render-modifiers with ember-modifier ([@ijlee2](https://github.com/ijlee2))
71
-
72
- ### Internal
73
- * [#133](https://github.com/ijlee2/ember-container-query/pull/133) Addressed ember-modifier deprecations ([@ijlee2](https://github.com/ijlee2))
74
- * [#132](https://github.com/ijlee2/ember-container-query/pull/132) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
75
- * [#128](https://github.com/ijlee2/ember-container-query/pull/128) Replaced @ember/render-modifiers with ember-modifier ([@ijlee2](https://github.com/ijlee2))
76
- * [#125](https://github.com/ijlee2/ember-container-query/pull/125) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
77
- * [#124](https://github.com/ijlee2/ember-container-query/pull/124) Installed stylelint to help with maintaining the demo app ([@ijlee2](https://github.com/ijlee2))
78
-
79
- ### Committers: 1
80
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
81
-
82
-
83
- ## 2.1.0 (2022-06-03)
84
-
85
- ### Enhancement
86
- * [#119](https://github.com/ijlee2/ember-container-query/pull/119) Introduced TypeScript (Part 3) ([@ijlee2](https://github.com/ijlee2))
87
-
88
- ### Internal
89
- * [#123](https://github.com/ijlee2/ember-container-query/pull/123) Updated GitHub actions to v3 ([@ijlee2](https://github.com/ijlee2))
90
- * [#122](https://github.com/ijlee2/ember-container-query/pull/122) Updated Node version in CI to 16 ([@ijlee2](https://github.com/ijlee2))
91
- * [#121](https://github.com/ijlee2/ember-container-query/pull/121) Updated ember-on-resize-modifier to v1.1.0 ([@ijlee2](https://github.com/ijlee2))
92
- * [#117](https://github.com/ijlee2/ember-container-query/pull/117) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
93
- * [#115](https://github.com/ijlee2/ember-container-query/pull/115) Updated eslint to v8 ([@ijlee2](https://github.com/ijlee2))
94
-
95
- ### Documentation
96
- * [#120](https://github.com/ijlee2/ember-container-query/pull/120) Introduced TypeScript (Part 4) ([@ijlee2](https://github.com/ijlee2))
97
- * [#118](https://github.com/ijlee2/ember-container-query/pull/118) Introduced TypeScript (Part 2) ([@ijlee2](https://github.com/ijlee2))
98
- * [#114](https://github.com/ijlee2/ember-container-query/pull/114) Introduced TypeScript (Part 1) ([@ijlee2](https://github.com/ijlee2))
99
- * [#116](https://github.com/ijlee2/ember-container-query/pull/116) Updated demo app ([@ijlee2](https://github.com/ijlee2))
100
-
101
- ### Committers: 1
102
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
103
-
104
-
105
- ## 2.0.2 (2022-04-25)
106
-
107
- ### Bug Fix
108
- * [#113](https://github.com/ijlee2/ember-container-query/pull/113) Removed named exports for helpers ([@ijlee2](https://github.com/ijlee2))
109
-
110
- ### Committers: 1
111
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
112
-
113
-
114
- ## 2.0.1 (2022-04-25)
115
-
116
- ### Bug Fix
117
- * [#111](https://github.com/ijlee2/ember-container-query/pull/111) Added named exports for helpers ([@ijlee2](https://github.com/ijlee2))
118
-
119
- ### Documentation
120
- * [#112](https://github.com/ijlee2/ember-container-query/pull/112) Enabled ember-beta scenario ([@ijlee2](https://github.com/ijlee2))
121
- * [#110](https://github.com/ijlee2/ember-container-query/pull/110) Refactored <Ui::Form> components in the demo app ([@ijlee2](https://github.com/ijlee2))
122
-
123
- ### Committers: 1
124
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
125
-
126
-
127
- ## 2.0.0 (2022-04-09)
128
-
129
- ### Breaking Change
130
- * [#106](https://github.com/ijlee2/ember-container-query/pull/106) Dropped support for 3.20 LTS ([@ijlee2](https://github.com/ijlee2))
131
- * [#94](https://github.com/ijlee2/ember-container-query/pull/94) Dropped support for Node 10 ([@ijlee2](https://github.com/ijlee2))
132
- * [#93](https://github.com/ijlee2/ember-container-query/pull/93) Dropped support for 3.16 LTS ([@ijlee2](https://github.com/ijlee2))
133
-
134
- ### Internal
135
- * [#108](https://github.com/ijlee2/ember-container-query/pull/108) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
136
- * [#74](https://github.com/ijlee2/ember-container-query/pull/74) Replaced ember-did-resize-modifier with ember-on-resize-modifier ([@st-h](https://github.com/st-h))
137
- * [#100](https://github.com/ijlee2/ember-container-query/pull/100) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
138
- * [#97](https://github.com/ijlee2/ember-container-query/pull/97) Updated ember-source to v3.28.6 ([@ijlee2](https://github.com/ijlee2))
139
- * [#96](https://github.com/ijlee2/ember-container-query/pull/96) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
140
-
141
- ### Documentation
142
- * [#109](https://github.com/ijlee2/ember-container-query/pull/109) Updated the demo app ([@ijlee2](https://github.com/ijlee2))
143
- * [#104](https://github.com/ijlee2/ember-container-query/pull/104) Updated style and tests for demo app ([@ijlee2](https://github.com/ijlee2))
144
- * [#102](https://github.com/ijlee2/ember-container-query/pull/102) Removed @percy/exec-action (deprecated) ([@ijlee2](https://github.com/ijlee2))
145
- * [#103](https://github.com/ijlee2/ember-container-query/pull/103) Applied timeout to all rendering and application tests ([@ijlee2](https://github.com/ijlee2))
146
- * [#101](https://github.com/ijlee2/ember-container-query/pull/101) Added a form example to the demo app ([@ijlee2](https://github.com/ijlee2))
147
- * [#99](https://github.com/ijlee2/ember-container-query/pull/99) Replaced custom caching strategy with one built into @actions/setup-node ([@ijlee2](https://github.com/ijlee2))
148
-
149
- ### Committers: 2
150
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
151
- - Steve ([@st-h](https://github.com/st-h))
152
-
153
-
154
- ## 2.0.0-alpha.0 (2021-12-12)
155
-
156
- ### Breaking Change
157
- * [#94](https://github.com/ijlee2/ember-container-query/pull/94) Dropped support for Node 10 ([@ijlee2](https://github.com/ijlee2))
158
- * [#93](https://github.com/ijlee2/ember-container-query/pull/93) Dropped support for 3.16 LTS ([@ijlee2](https://github.com/ijlee2))
159
-
160
- ### Internal
161
- * [#74](https://github.com/ijlee2/ember-container-query/pull/74) Replaced ember-did-resize-modifier with ember-on-resize-modifier ([@st-h](https://github.com/st-h))
162
- * [#100](https://github.com/ijlee2/ember-container-query/pull/100) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
163
- * [#97](https://github.com/ijlee2/ember-container-query/pull/97) Updated ember-source to v3.28.6 ([@ijlee2](https://github.com/ijlee2))
164
- * [#96](https://github.com/ijlee2/ember-container-query/pull/96) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
165
-
166
- ### Documentation
167
- * [#104](https://github.com/ijlee2/ember-container-query/pull/104) Updated style and tests for demo app ([@ijlee2](https://github.com/ijlee2))
168
- * [#102](https://github.com/ijlee2/ember-container-query/pull/102) Removed @percy/exec-action (deprecated) ([@ijlee2](https://github.com/ijlee2))
169
- * [#103](https://github.com/ijlee2/ember-container-query/pull/103) Applied timeout to all rendering and application tests ([@ijlee2](https://github.com/ijlee2))
170
- * [#101](https://github.com/ijlee2/ember-container-query/pull/101) Added a form example to the demo app ([@ijlee2](https://github.com/ijlee2))
171
- * [#99](https://github.com/ijlee2/ember-container-query/pull/99) Replaced custom caching strategy with one built into @actions/setup-node ([@ijlee2](https://github.com/ijlee2))
172
-
173
- ### Committers: 2
174
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
175
- - Steve ([@st-h](https://github.com/st-h))
176
-
177
-
178
- ## 1.1.9 (2021-08-25)
179
-
180
- ### Bug Fix
181
- * [#88](https://github.com/ijlee2/ember-container-query/pull/88) Temporarily skipped ember-beta and ember-canary ([@ijlee2](https://github.com/ijlee2))
182
- * [#84](https://github.com/ijlee2/ember-container-query/pull/84) Fixed failing accessibility audits in Album page ([@ijlee2](https://github.com/ijlee2))
183
-
184
- ### Internal
185
- * [#92](https://github.com/ijlee2/ember-container-query/pull/92) Updated ember-source to v3.27.5 ([@ijlee2](https://github.com/ijlee2))
186
- * [#91](https://github.com/ijlee2/ember-container-query/pull/91) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
187
- * [#89](https://github.com/ijlee2/ember-container-query/pull/89) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
188
- * [#85](https://github.com/ijlee2/ember-container-query/pull/85) Updated development dependencies to their latest ([@ijlee2](https://github.com/ijlee2))
189
-
190
- ### Committers: 1
191
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
192
-
193
-
194
- ## 1.1.8 (2021-04-22)
195
-
196
- ### Internal
197
- * [#81](https://github.com/ijlee2/ember-container-query/pull/81) Updated ember-source to v3.26.1 ([@ijlee2](https://github.com/ijlee2))
198
- * [#80](https://github.com/ijlee2/ember-container-query/pull/80) Updated ember-element-helper to v0.5.0 ([@ijlee2](https://github.com/ijlee2))
199
-
200
- ### Documentation
201
- * [#79](https://github.com/ijlee2/ember-container-query/pull/79) Added embroider-safe to ember-try scenarios ([@ijlee2](https://github.com/ijlee2))
202
-
203
- ### Committers: 1
204
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
205
-
206
-
207
- ## 1.1.7 (2021-04-01)
208
-
209
- ### Bug Fix
210
- * [#76](https://github.com/ijlee2/ember-container-query/pull/76) Fixed brittle tests ([@ijlee2](https://github.com/ijlee2))
211
-
212
- ### Internal
213
- * [#77](https://github.com/ijlee2/ember-container-query/pull/77) Updated ember-source to v3.25 ([@ijlee2](https://github.com/ijlee2))
214
- * [#75](https://github.com/ijlee2/ember-container-query/pull/75) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
215
-
216
- ### Documentation
217
- * [#78](https://github.com/ijlee2/ember-container-query/pull/78) Added 3.24 LTS to ember-try scenario ([@ijlee2](https://github.com/ijlee2))
218
-
219
- ### Committers: 1
220
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
221
-
222
-
223
- ## 1.1.6 (2020-12-16)
224
-
225
- ### Internal
226
- * [#72](https://github.com/ijlee2/ember-container-query/pull/72) Upgraded ember-source to v3.23 ([@ijlee2](https://github.com/ijlee2))
227
- * [#68](https://github.com/ijlee2/ember-container-query/pull/68) Upgraded ember-element-helper to v0.3.2 ([@ijlee2](https://github.com/ijlee2))
228
- * [#67](https://github.com/ijlee2/ember-container-query/pull/67) Upgrade percy/exec-action to v0.3.1 ([@ijlee2](https://github.com/ijlee2))
229
-
230
- ### Documentation
231
- * [#70](https://github.com/ijlee2/ember-container-query/pull/70) Research: Investigate reactivity ([@ijlee2](https://github.com/ijlee2))
232
- * [#69](https://github.com/ijlee2/ember-container-query/pull/69) Add ember-canary to ember-try test matrix ([@ijlee2](https://github.com/ijlee2))
233
-
234
- ### Committers: 1
235
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
236
-
237
-
238
- ## 1.1.5 (2020-10-27)
239
-
240
- ### Internal
241
- * [#66](https://github.com/ijlee2/ember-container-query/pull/66) Upgraded ember-source to v3.22.0 ([@ijlee2](https://github.com/ijlee2))
242
- * [#63](https://github.com/ijlee2/ember-container-query/pull/63) Use ember-truth-helpers instead of custom helpers ([@esbanarango](https://github.com/esbanarango))
243
-
244
- ### Documentation
245
- * [#65](https://github.com/ijlee2/ember-container-query/pull/65) Add ember-lts-3.20 to ember-try test matrix ([@takshch](https://github.com/takshch))
246
- * [#61](https://github.com/ijlee2/ember-container-query/pull/61) Added demoURL to package.json ([@cah-danmonroe](https://github.com/cah-danmonroe))
247
-
248
- ### Committers: 4
249
- - Dan Monroe ([@cah-danmonroe](https://github.com/cah-danmonroe))
250
- - Esteban Arango Medina ([@esbanarango](https://github.com/esbanarango))
251
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
252
- - Taksh Chanana ([@takshch](https://github.com/takshch))
253
-
254
-
255
- ## 1.1.4 (2020-09-19)
256
-
257
- ### Internal
258
- * [#58](https://github.com/ijlee2/ember-container-query/pull/58) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
259
-
260
- ### Documentation
261
- * [#57](https://github.com/ijlee2/ember-container-query/pull/57) Updated CI ([@ijlee2](https://github.com/ijlee2))
262
-
263
- ### Committers: 1
264
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
265
-
266
-
267
- ## 1.1.3 (2020-08-29)
268
-
269
- ### Internal
270
- * [#54](https://github.com/ijlee2/ember-container-query/pull/54) Migrated to Netlify for deployment service ([@ijlee2](https://github.com/ijlee2))
271
- * [#53](https://github.com/ijlee2/ember-container-query/pull/53) Updated development dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
272
- * [#52](https://github.com/ijlee2/ember-container-query/pull/52) Updated CI workflow ([@ijlee2](https://github.com/ijlee2))
273
-
274
- ### Committers: 1
275
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
276
-
277
-
278
- ## 1.1.2 (2020-08-12)
279
-
280
- ### Internal
281
- * [#51](https://github.com/ijlee2/ember-container-query/pull/51) Upgraded ember-source to v3.20.4 ([@ijlee2](https://github.com/ijlee2))
282
-
283
- ### Documentation
284
- * [#50](https://github.com/ijlee2/ember-container-query/pull/50) Added installation instructions for FastBoot users ([@ijlee2](https://github.com/ijlee2))
285
-
286
- ### Committers: 1
287
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
288
-
289
-
290
- ## 1.1.1 (2020-07-25)
291
-
292
- ### Internal
293
- * Updated default branch name to `main`
294
- * [#48](https://github.com/ijlee2/ember-container-query/pull/48) Updated devDependencies to their latest ([@ijlee2](https://github.com/ijlee2))
295
-
296
- ### Committers: 1
297
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
298
-
299
-
300
- ## 1.1.0 (2020-07-10)
301
-
302
- ### Enhancement
303
- * [#46](https://github.com/ijlee2/ember-container-query/pull/46) Allowed passing @tagName for dynamic tag ([@ijlee2](https://github.com/ijlee2))
304
-
305
- ### Internal
306
- * [#45](https://github.com/ijlee2/ember-container-query/pull/45) Installed ember-a11y-testing for demo app ([@ijlee2](https://github.com/ijlee2))
307
-
308
- ### Documentation
309
- * [#45](https://github.com/ijlee2/ember-container-query/pull/45) Installed ember-a11y-testing for demo app ([@ijlee2](https://github.com/ijlee2))
310
-
311
- ### Committers: 1
312
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
313
-
314
-
315
- ## 1.0.4 (2020-06-26)
316
-
317
- ### Bug Fix
318
- * [#44](https://github.com/ijlee2/ember-container-query/pull/44) Allowed passing empty string for @dataAttributePrefix ([@ijlee2](https://github.com/ijlee2))
319
-
320
- ### Enhancement
321
- * [#43](https://github.com/ijlee2/ember-container-query/pull/43) Reorganized tests for <ContainerQuery> component ([@ijlee2](https://github.com/ijlee2))
322
-
323
- ### Internal
324
- * [#42](https://github.com/ijlee2/ember-container-query/pull/42) Updated dependencies to their latest version ([@ijlee2](https://github.com/ijlee2))
325
-
326
- ### Committers: 1
327
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
328
-
329
-
330
- ## 1.0.3 (2020-06-06)
331
-
332
- ### Internal
333
- * [#41](https://github.com/ijlee2/ember-container-query/pull/41) Updated ember-cli-babel to v7.20.5 and eslint to the latest ([@ijlee2](https://github.com/ijlee2))
334
-
335
- ### Documentation
336
- * [#40](https://github.com/ijlee2/ember-container-query/pull/40) Added adoption strategy for developers who support pre-Octane app or IE 11 users ([@ijlee2](https://github.com/ijlee2))
337
- * [#39](https://github.com/ijlee2/ember-container-query/pull/39) Improved codebase ([@ijlee2](https://github.com/ijlee2))
338
-
339
- ### Committers: 1
340
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
341
-
342
-
343
- ## 1.0.2 (2020-05-30)
344
-
345
- ### Documentation
346
- * [#37](https://github.com/ijlee2/ember-container-query/pull/37) Updated keywords and repository url for npm ([@ijlee2](https://github.com/ijlee2))
347
-
348
- ### Committers: 1
349
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
350
-
351
-
352
- ## 1.0.1 (2020-05-29)
353
-
354
- ### Internal
355
- * [#36](https://github.com/ijlee2/ember-container-query/pull/36) Added lerna-changelog ([@ijlee2](https://github.com/ijlee2))
356
-
357
- ### Documentation
358
- * [#36](https://github.com/ijlee2/ember-container-query/pull/36) Added lerna-changelog ([@ijlee2](https://github.com/ijlee2))
359
-
360
- ### Committers: 1
361
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
362
-
363
-
364
- ## 1.0.0 (2020-05-29)
365
-
366
- ### Bug Fix
367
- * [#28](https://github.com/ijlee2/ember-container-query/pull/28) Fixed overflow issues on Firefox and Safari ([@ijlee2](https://github.com/ijlee2))
368
- * [#24](https://github.com/ijlee2/ember-container-query/pull/24) Applied overflow hidden to the splash image ([@ijlee2](https://github.com/ijlee2))
369
- * [#23](https://github.com/ijlee2/ember-container-query/pull/23) Refined demo app ([@ijlee2](https://github.com/ijlee2))
370
- * [#18](https://github.com/ijlee2/ember-container-query/pull/18) Updated the ranking algorithm for responsive image loading ([@ijlee2](https://github.com/ijlee2))
371
- * [#17](https://github.com/ijlee2/ember-container-query/pull/17) Disallowed fingerprinting images for demo app ([@ijlee2](https://github.com/ijlee2))
372
- * [#13](https://github.com/ijlee2/ember-container-query/pull/13) Replaced Unicode characters with SVG icons ([@ijlee2](https://github.com/ijlee2))
373
- * [#7](https://github.com/ijlee2/ember-container-query/pull/7) Applied .full-screen class to div#ember-testing-container ([@ijlee2](https://github.com/ijlee2))
374
-
375
- ### Enhancement
376
- * [#19](https://github.com/ijlee2/ember-container-query/pull/19) Added responsive testing to the compatible versions ([@ijlee2](https://github.com/ijlee2))
377
- * [#15](https://github.com/ijlee2/ember-container-query/pull/15) Refactored <ContainerQuery> rendering tests ([@ijlee2](https://github.com/ijlee2))
378
- * [#14](https://github.com/ijlee2/ember-container-query/pull/14) Allowed yielding dimensions from <ContainerQuery> component ([@ijlee2](https://github.com/ijlee2))
379
- * [#4](https://github.com/ijlee2/ember-container-query/pull/4) Renamed breakpoints to features ([@ijlee2](https://github.com/ijlee2))
380
- * [#3](https://github.com/ijlee2/ember-container-query/pull/3) Updated API to include aspect ratio ([@ijlee2](https://github.com/ijlee2))
381
-
382
- ### Internal
383
- * [#33](https://github.com/ijlee2/ember-container-query/pull/33) Updated actions to their latest ([@ijlee2](https://github.com/ijlee2))
384
- * [#27](https://github.com/ijlee2/ember-container-query/pull/27) Updated ember-source to v3.19.0 ([@ijlee2](https://github.com/ijlee2))
385
- * [#20](https://github.com/ijlee2/ember-container-query/pull/20) Installed ember-svg-jar for demo app ([@ijlee2](https://github.com/ijlee2))
386
- * [#10](https://github.com/ijlee2/ember-container-query/pull/10) Simplified stylesheets ([@ijlee2](https://github.com/ijlee2))
387
-
388
- ### Documentation
389
- * [#35](https://github.com/ijlee2/ember-container-query/pull/35) Added tests for @debounce ([@ijlee2](https://github.com/ijlee2))
390
- * [#34](https://github.com/ijlee2/ember-container-query/pull/34) Restored assertions for responsive images ([@ijlee2](https://github.com/ijlee2))
391
- * [#32](https://github.com/ijlee2/ember-container-query/pull/32) Added templates for issues ([@ijlee2](https://github.com/ijlee2))
392
- * [#31](https://github.com/ijlee2/ember-container-query/pull/31) Updated language for supported setups to be clearer ([@ijlee2](https://github.com/ijlee2))
393
- * [#30](https://github.com/ijlee2/ember-container-query/pull/30) Limited supported setups ([@ijlee2](https://github.com/ijlee2))
394
- * [#29](https://github.com/ijlee2/ember-container-query/pull/29) Updated README with several applications ([@ijlee2](https://github.com/ijlee2))
395
- * [#26](https://github.com/ijlee2/ember-container-query/pull/26) Added notes on how people can contribute ([@ijlee2](https://github.com/ijlee2))
396
- * [#25](https://github.com/ijlee2/ember-container-query/pull/25) Added instructions for setup ([@ijlee2](https://github.com/ijlee2))
397
- * [#23](https://github.com/ijlee2/ember-container-query/pull/23) Refined demo app ([@ijlee2](https://github.com/ijlee2))
398
- * [#22](https://github.com/ijlee2/ember-container-query/pull/22) Created Dashboard example (Part 5 of 5) ([@ijlee2](https://github.com/ijlee2))
399
- * [#21](https://github.com/ijlee2/ember-container-query/pull/21) Created Dashboard example (Part 4 of 5) ([@ijlee2](https://github.com/ijlee2))
400
- * [#18](https://github.com/ijlee2/ember-container-query/pull/18) Updated the ranking algorithm for responsive image loading ([@ijlee2](https://github.com/ijlee2))
401
- * [#16](https://github.com/ijlee2/ember-container-query/pull/16) Created Dashboard example (Part 3 of 5) ([@ijlee2](https://github.com/ijlee2))
402
- * [#15](https://github.com/ijlee2/ember-container-query/pull/15) Refactored <ContainerQuery> rendering tests ([@ijlee2](https://github.com/ijlee2))
403
- * [#12](https://github.com/ijlee2/ember-container-query/pull/12) Created Dashboard example (Part 2 of 5) ([@ijlee2](https://github.com/ijlee2))
404
- * [#11](https://github.com/ijlee2/ember-container-query/pull/11) Created Dashboard example (Part 1 of 5) ([@ijlee2](https://github.com/ijlee2))
405
- * [#10](https://github.com/ijlee2/ember-container-query/pull/10) Simplified stylesheets ([@ijlee2](https://github.com/ijlee2))
406
- * [#5](https://github.com/ijlee2/ember-container-query/pull/5) Added responsive testing ([@ijlee2](https://github.com/ijlee2))
407
- * [#1](https://github.com/ijlee2/ember-container-query/pull/1) Created demo app ([@ijlee2](https://github.com/ijlee2))
408
-
409
- ### Committers: 1
410
- - Isaac Lee ([@ijlee2](https://github.com/ijlee2))
@@ -1,21 +0,0 @@
1
- {{! @glint-ignore: ember-element-helper needs to provide Glint signature }}
2
- {{#let (element this.tagName) as |Tag|}}
3
- <Tag
4
- class="container-query"
5
- data-test-container-query
6
- {{container-query
7
- dataAttributePrefix=@dataAttributePrefix
8
- debounce=@debounce
9
- features=@features
10
- onQuery=this.updateState
11
- }}
12
- ...attributes
13
- >
14
- {{yield
15
- (hash
16
- dimensions=this.dimensions
17
- features=this.queryResults
18
- )
19
- }}
20
- </Tag>
21
- {{/let}}
@@ -1,48 +0,0 @@
1
- import { action } from '@ember/object';
2
- import Component from '@glimmer/component';
3
- import { tracked } from '@glimmer/tracking';
4
- import type {
5
- Dimensions,
6
- Features,
7
- IndexSignatureParameter,
8
- QueryResults,
9
- } from 'ember-container-query/modifiers/container-query';
10
-
11
- interface ContainerQueryComponentSignature<T extends IndexSignatureParameter> {
12
- Args: {
13
- dataAttributePrefix?: string;
14
- debounce?: number;
15
- features?: Features<T>;
16
- tagName?: string;
17
- };
18
- Blocks: {
19
- default: [
20
- {
21
- dimensions?: Dimensions;
22
- features?: QueryResults<T>;
23
- }
24
- ];
25
- };
26
- Element: HTMLElement;
27
- }
28
-
29
- export default class ContainerQueryComponent<
30
- T extends IndexSignatureParameter
31
- > extends Component<ContainerQueryComponentSignature<T>> {
32
- @tracked dimensions?: Dimensions;
33
- @tracked queryResults?: QueryResults<T>;
34
-
35
- // The dynamic tag is restricted to be immutable
36
- tagName = this.args.tagName ?? 'div';
37
-
38
- @action updateState({
39
- dimensions,
40
- queryResults,
41
- }: {
42
- dimensions: Dimensions;
43
- queryResults: QueryResults<T>;
44
- }): void {
45
- this.dimensions = dimensions;
46
- this.queryResults = queryResults;
47
- }
48
- }
@@ -1,25 +0,0 @@
1
- import { helper } from '@ember/component/helper';
2
- import type { Metadata } from 'ember-container-query/modifiers/container-query';
3
-
4
- interface CqAspectRatioHelperSignature {
5
- Args: {
6
- Named: {
7
- max?: number;
8
- min?: number;
9
- };
10
- Positional: [];
11
- };
12
- Return: Metadata;
13
- }
14
-
15
- const CqAspectRatioHelper = helper<CqAspectRatioHelperSignature>(
16
- (_positional, named) => {
17
- const dimension = 'aspectRatio';
18
- const max = named.max ?? Infinity;
19
- const min = named.min ?? 0;
20
-
21
- return { dimension, max, min };
22
- }
23
- );
24
-
25
- export default CqAspectRatioHelper;
@@ -1,23 +0,0 @@
1
- import { helper } from '@ember/component/helper';
2
- import type { Metadata } from 'ember-container-query/modifiers/container-query';
3
-
4
- interface CqHeightHelperSignature {
5
- Args: {
6
- Named: {
7
- max?: number;
8
- min?: number;
9
- };
10
- Positional: [];
11
- };
12
- Return: Metadata;
13
- }
14
-
15
- const CqHeightHelper = helper<CqHeightHelperSignature>((_positional, named) => {
16
- const dimension = 'height';
17
- const max = named.max ?? Infinity;
18
- const min = named.min ?? 0;
19
-
20
- return { dimension, max, min };
21
- });
22
-
23
- export default CqHeightHelper;
@@ -1,23 +0,0 @@
1
- import { helper } from '@ember/component/helper';
2
- import type { Metadata } from 'ember-container-query/modifiers/container-query';
3
-
4
- interface CqWidthHelperSignature {
5
- Args: {
6
- Named: {
7
- max?: number;
8
- min?: number;
9
- };
10
- Positional: [];
11
- };
12
- Return: Metadata;
13
- }
14
-
15
- const CqWidthHelper = helper<CqWidthHelperSignature>((_positional, named) => {
16
- const dimension = 'width';
17
- const max = named.max ?? Infinity;
18
- const min = named.min ?? 0;
19
-
20
- return { dimension, max, min };
21
- });
22
-
23
- export default CqWidthHelper;