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