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.
- package/README.md +1 -1
- package/addon-main.js +5 -0
- package/dist/_app_/components/container-query.js +1 -0
- package/dist/_app_/helpers/aspect-ratio.js +1 -0
- package/dist/_app_/helpers/height.js +1 -0
- package/dist/_app_/helpers/width.js +1 -0
- package/dist/_app_/modifiers/container-query.js +1 -0
- package/dist/applyDecoratedDescriptor-fa858ac4.js +77 -0
- package/dist/applyDecoratedDescriptor-fa858ac4.js.map +1 -0
- package/{addon/styles → dist/components}/container-query.css +0 -0
- package/{components → dist/components}/container-query.d.ts +4 -4
- package/dist/components/container-query.d.ts.map +1 -0
- package/dist/components/container-query.js +40 -0
- package/dist/components/container-query.js.map +1 -0
- package/{helpers → dist/helpers}/aspect-ratio.d.ts +3 -3
- package/dist/helpers/aspect-ratio.js +15 -0
- package/dist/helpers/aspect-ratio.js.map +1 -0
- package/{helpers → dist/helpers}/height.d.ts +3 -3
- package/dist/helpers/height.js +15 -0
- package/dist/helpers/height.js.map +1 -0
- package/{helpers → dist/helpers}/width.d.ts +3 -3
- package/dist/helpers/width.js +15 -0
- package/dist/helpers/width.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/{modifiers → dist/modifiers}/container-query.d.ts +5 -5
- package/dist/modifiers/container-query.js +106 -0
- package/dist/modifiers/container-query.js.map +1 -0
- package/dist/template-registry.d.ts +13 -0
- package/dist/template-registry.js +2 -0
- package/dist/template-registry.js.map +1 -0
- package/package.json +45 -105
- package/.netlifyredirects +0 -1
- package/.stylelintcache +0 -1
- package/.stylelintrc.js +0 -64
- package/CHANGELOG.md +0 -425
- package/addon/components/container-query.hbs +0 -21
- package/addon/components/container-query.ts +0 -49
- package/addon/helpers/aspect-ratio.ts +0 -26
- package/addon/helpers/height.ts +0 -24
- package/addon/helpers/width.ts +0 -24
- package/addon/index.ts +0 -5
- package/addon/modifiers/container-query.ts +0 -179
- package/addon/template-registry.ts +0 -16
- package/app/components/container-query.js +0 -1
- package/app/helpers/aspect-ratio.js +0 -1
- package/app/helpers/cq-aspect-ratio.js +0 -18
- package/app/helpers/cq-height.js +0 -18
- package/app/helpers/cq-width.js +0 -18
- package/app/helpers/height.js +0 -1
- package/app/helpers/width.js +0 -1
- package/app/modifiers/container-query.js +0 -1
- package/index.d.ts +0 -6
- package/index.js +0 -5
- package/template-registry.d.ts +0 -16
- package/tsconfig.json +0 -47
- package/types/dummy/index.d.ts +0 -33
- package/types/global.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-container-query",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
4
|
"description": "Container queries using Ember modifiers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"container-queries",
|
|
@@ -19,134 +19,66 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"author": "Isaac J. Lee",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/index.js",
|
|
24
|
+
"./*": "./dist/*.js",
|
|
25
|
+
"./addon-main.js": "./addon-main.js"
|
|
26
|
+
},
|
|
22
27
|
"directories": {
|
|
23
28
|
"doc": "doc",
|
|
24
29
|
"test": "tests"
|
|
25
30
|
},
|
|
31
|
+
"files": [
|
|
32
|
+
"addon-main.js",
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
26
35
|
"scripts": {
|
|
27
|
-
"build": "
|
|
28
|
-
"build:test": "ember build --environment=test",
|
|
29
|
-
"changelog": "lerna-changelog",
|
|
36
|
+
"build": "rollup --config",
|
|
30
37
|
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
31
|
-
"lint:css": "stylelint \"tests/dummy/app/**/*.css\" --cache",
|
|
32
|
-
"lint:css:fix": "stylelint \"tests/dummy/app/**/*.css\" --fix",
|
|
33
|
-
"lint:dependency": "ember dependency-lint",
|
|
34
38
|
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
|
|
35
39
|
"lint:hbs": "ember-template-lint .",
|
|
36
40
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
37
|
-
"lint:js": "eslint . --cache --ext=.js,.ts",
|
|
38
|
-
"lint:js:fix": "eslint . --fix",
|
|
41
|
+
"lint:js": "eslint . --cache --ext=.js,.mjs,.ts",
|
|
42
|
+
"lint:js:fix": "eslint . --ext=.js,.mjs,.ts --fix",
|
|
39
43
|
"lint:types": "glint",
|
|
40
|
-
"prepack": "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"test": "DEVICE='w3-h3' ember test",
|
|
44
|
-
"test:ember": "ember test",
|
|
45
|
-
"test:ember-compatibility": "./node_modules/.bin/ember try:one"
|
|
46
|
-
},
|
|
47
|
-
"changelog": {
|
|
48
|
-
"labels": {
|
|
49
|
-
"breaking": "Breaking Change",
|
|
50
|
-
"bug": "Bug Fix",
|
|
51
|
-
"enhance: code": "Enhancement",
|
|
52
|
-
"enhance: dependency": "Internal",
|
|
53
|
-
"enhance: documentation": "Documentation",
|
|
54
|
-
"user feedback": "User Feedback"
|
|
55
|
-
}
|
|
44
|
+
"prepack": "rollup --config",
|
|
45
|
+
"start": "rollup --config --watch",
|
|
46
|
+
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
56
47
|
},
|
|
57
48
|
"dependencies": {
|
|
58
|
-
"
|
|
59
|
-
"ember-cli-htmlbars": "^6.1.1",
|
|
60
|
-
"ember-cli-typescript": "^5.2.1",
|
|
49
|
+
"@embroider/addon-shim": "^1.8.4",
|
|
61
50
|
"ember-element-helper": "^0.6.1",
|
|
62
51
|
"ember-modifier": "^3.2.7",
|
|
63
52
|
"ember-resize-observer-service": "^1.1.0",
|
|
64
53
|
"ember-test-selectors": "^6.0.0"
|
|
65
54
|
},
|
|
66
55
|
"devDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
56
|
+
"@babel/core": "^7.20.12",
|
|
57
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
58
|
+
"@babel/plugin-proposal-decorators": "^7.20.7",
|
|
59
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
60
|
+
"@embroider/addon-dev": "^3.0.0",
|
|
61
|
+
"@gavant/glint-template-types": "^0.3.1",
|
|
73
62
|
"@glint/core": "^v1.0.0-beta.2",
|
|
74
63
|
"@glint/environment-ember-loose": "^v1.0.0-beta.2",
|
|
75
64
|
"@glint/template": "^v1.0.0-beta.2",
|
|
76
|
-
"@percy/cli": "^1.16.0",
|
|
77
|
-
"@percy/ember": "^4.0.0",
|
|
78
65
|
"@tsconfig/ember": "^2.0.0",
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"
|
|
82
|
-
"@types/ember__controller": "^4.0.4",
|
|
83
|
-
"@types/ember__debug": "^4.0.3",
|
|
84
|
-
"@types/ember__destroyable": "^4.0.1",
|
|
85
|
-
"@types/ember__engine": "^4.0.4",
|
|
86
|
-
"@types/ember__error": "^4.0.2",
|
|
87
|
-
"@types/ember__object": "^4.0.5",
|
|
88
|
-
"@types/ember__polyfills": "^4.0.1",
|
|
89
|
-
"@types/ember__routing": "^4.0.12",
|
|
90
|
-
"@types/ember__runloop": "^4.0.2",
|
|
91
|
-
"@types/ember__service": "^4.0.2",
|
|
92
|
-
"@types/ember__string": "^3.0.10",
|
|
93
|
-
"@types/ember__template": "^4.0.1",
|
|
94
|
-
"@types/ember__test": "^4.0.1",
|
|
95
|
-
"@types/ember__utils": "^4.0.2",
|
|
96
|
-
"@types/htmlbars-inline-precompile": "^3.0.0",
|
|
97
|
-
"@types/qunit": "^2.19.3",
|
|
98
|
-
"@types/rsvp": "^4.0.4",
|
|
99
|
-
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
100
|
-
"@typescript-eslint/parser": "^5.48.0",
|
|
101
|
-
"broccoli-asset-rev": "^3.0.0",
|
|
102
|
-
"concurrently": "^7.6.0",
|
|
103
|
-
"d3-array": "^3.2.1",
|
|
104
|
-
"d3-axis": "^3.0.0",
|
|
105
|
-
"d3-scale": "^4.0.2",
|
|
106
|
-
"d3-selection": "^3.0.0",
|
|
107
|
-
"d3-shape": "^3.2.0",
|
|
108
|
-
"ember-a11y-refocus": "^3.0.2",
|
|
109
|
-
"ember-a11y-testing": "^5.1.0",
|
|
110
|
-
"ember-auto-import": "^2.5.0",
|
|
111
|
-
"ember-cli": "~4.9.2",
|
|
112
|
-
"ember-cli-dependency-checker": "^3.3.1",
|
|
113
|
-
"ember-cli-dependency-lint": "^2.0.1",
|
|
114
|
-
"ember-cli-inject-live-reload": "^2.1.0",
|
|
115
|
-
"ember-cli-netlify": "^0.4.1",
|
|
116
|
-
"ember-cli-sri": "^2.1.1",
|
|
117
|
-
"ember-cli-terser": "^4.0.2",
|
|
118
|
-
"ember-css-modules": "^2.0.1",
|
|
119
|
-
"ember-load-initializers": "^2.1.2",
|
|
120
|
-
"ember-named-blocks-polyfill": "^0.2.5",
|
|
121
|
-
"ember-page-title": "^7.0.0",
|
|
122
|
-
"ember-qunit": "^6.1.1",
|
|
123
|
-
"ember-resolver": "^9.0.1",
|
|
124
|
-
"ember-source": "~4.9.3",
|
|
125
|
-
"ember-source-channel-url": "^3.0.0",
|
|
126
|
-
"ember-svg-jar": "^2.4.2",
|
|
127
|
-
"ember-template-lint": "^5.3.0",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
|
67
|
+
"@typescript-eslint/parser": "^5.48.2",
|
|
68
|
+
"ember-template-lint": "^5.3.1",
|
|
128
69
|
"ember-template-lint-plugin-prettier": "^4.1.0",
|
|
129
|
-
"
|
|
130
|
-
"ember-try": "^2.0.0",
|
|
131
|
-
"eslint": "^8.31.0",
|
|
70
|
+
"eslint": "^8.32.0",
|
|
132
71
|
"eslint-config-prettier": "^8.6.0",
|
|
133
|
-
"eslint-plugin-ember": "^11.4.
|
|
134
|
-
"eslint-plugin-n": "^15.6.
|
|
72
|
+
"eslint-plugin-ember": "^11.4.3",
|
|
73
|
+
"eslint-plugin-n": "^15.6.1",
|
|
135
74
|
"eslint-plugin-prettier": "^4.2.1",
|
|
136
|
-
"eslint-plugin-
|
|
137
|
-
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
75
|
+
"eslint-plugin-simple-import-sort": "^9.0.0",
|
|
138
76
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"stylelint": "^14.16.1",
|
|
145
|
-
"stylelint-config-standard": "^29.0.0",
|
|
146
|
-
"stylelint-no-unsupported-browser-features": "^6.0.1",
|
|
147
|
-
"stylelint-order": "^6.0.0",
|
|
148
|
-
"typescript": "^4.9.4",
|
|
149
|
-
"webpack": "^5.75.0"
|
|
77
|
+
"prettier": "^2.8.3",
|
|
78
|
+
"rollup": "^3.10.0",
|
|
79
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
80
|
+
"rollup-plugin-ts": "^3.1.1",
|
|
81
|
+
"typescript": "^4.9.4"
|
|
150
82
|
},
|
|
151
83
|
"engines": {
|
|
152
84
|
"node": "14.* || 16.* || >= 18"
|
|
@@ -155,7 +87,15 @@
|
|
|
155
87
|
"edition": "octane"
|
|
156
88
|
},
|
|
157
89
|
"ember-addon": {
|
|
158
|
-
"
|
|
159
|
-
|
|
90
|
+
"app-js": {
|
|
91
|
+
"./components/container-query.js": "./dist/_app_/components/container-query.js",
|
|
92
|
+
"./helpers/aspect-ratio.js": "./dist/_app_/helpers/aspect-ratio.js",
|
|
93
|
+
"./helpers/height.js": "./dist/_app_/helpers/height.js",
|
|
94
|
+
"./helpers/width.js": "./dist/_app_/helpers/width.js",
|
|
95
|
+
"./modifiers/container-query.js": "./dist/_app_/modifiers/container-query.js"
|
|
96
|
+
},
|
|
97
|
+
"main": "addon-main.js",
|
|
98
|
+
"type": "addon",
|
|
99
|
+
"version": 2
|
|
160
100
|
}
|
|
161
101
|
}
|
package/.netlifyredirects
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* /index.html 200
|
package/.stylelintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/album.css":"1","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/form.css":"2","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/app.css":"3","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/navigation-menu.css":"4","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/index.css":"5","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/application.css":"6","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/not-found.css":"7","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/dashboard.css":"8","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-1.css":"9","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form.css":"10","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/page.css":"11","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/tracks/table.css":"12","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/tracks/list.css":"13","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2.css":"14","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-5.css":"15","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3.css":"16","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4.css":"17","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/information.css":"18","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/checkbox.css":"19","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/field.css":"20","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/textarea.css":"21","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-1/item.css":"22","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2/captions.css":"23","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/input.css":"24","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2/stacked-chart.css":"25","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo.css":"26","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3/tour-schedule.css":"27","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/body.css":"28","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/actions.css":"29","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.css":"30","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/header.css":"31"},{"size":892,"mtime":1672845344230,"hashOfConfig":"32"},{"size":82,"mtime":1672845344239,"hashOfConfig":"32"},{"size":1494,"mtime":1672845344232,"hashOfConfig":"32"},{"size":323,"mtime":1672845342271,"hashOfConfig":"32"},{"size":36,"mtime":1672845344240,"hashOfConfig":"32"},{"size":980,"mtime":1672845344234,"hashOfConfig":"32"},{"size":1299,"mtime":1672845344242,"hashOfConfig":"32"},{"size":1846,"mtime":1672845344237,"hashOfConfig":"32"},{"size":797,"mtime":1672845342436,"hashOfConfig":"32"},{"size":324,"mtime":1672845342377,"hashOfConfig":"32"},{"size":306,"mtime":1672845342429,"hashOfConfig":"32"},{"size":106,"mtime":1672845342371,"hashOfConfig":"32"},{"size":323,"mtime":1672845342365,"hashOfConfig":"32"},{"size":439,"mtime":1672845342448,"hashOfConfig":"32"},{"size":657,"mtime":1672845342511,"hashOfConfig":"32"},{"size":268,"mtime":1672845342466,"hashOfConfig":"32"},{"size":400,"mtime":1672845342484,"hashOfConfig":"32"},{"size":225,"mtime":1672845342406,"hashOfConfig":"32"},{"size":566,"mtime":1672845342392,"hashOfConfig":"32"},{"size":1630,"mtime":1672845342398,"hashOfConfig":"32"},{"size":375,"mtime":1672845342424,"hashOfConfig":"32"},{"size":243,"mtime":1672845342443,"hashOfConfig":"32"},{"size":2101,"mtime":1672845342453,"hashOfConfig":"32"},{"size":360,"mtime":1672845342416,"hashOfConfig":"32"},{"size":267,"mtime":1672845342460,"hashOfConfig":"32"},{"size":937,"mtime":1672845342490,"hashOfConfig":"32"},{"size":1570,"mtime":1672845342474,"hashOfConfig":"32"},{"size":493,"mtime":1672845342500,"hashOfConfig":"32"},{"size":701,"mtime":1672845342495,"hashOfConfig":"32"},{"size":159,"mtime":1672845342479,"hashOfConfig":"32"},{"size":888,"mtime":1672845342505,"hashOfConfig":"32"},"v8nntw"]
|
package/.stylelintrc.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable-next-line n/no-unpublished-require */
|
|
4
|
-
const { browsers } = require('./tests/dummy/config/targets');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
extends: ['stylelint-config-standard'],
|
|
8
|
-
plugins: ['stylelint-no-unsupported-browser-features', 'stylelint-order'],
|
|
9
|
-
rules: {
|
|
10
|
-
/*
|
|
11
|
-
Customize plugins
|
|
12
|
-
*/
|
|
13
|
-
'order/properties-order': [
|
|
14
|
-
[
|
|
15
|
-
// Defined by ember-css-modules
|
|
16
|
-
'composes',
|
|
17
|
-
],
|
|
18
|
-
{
|
|
19
|
-
unspecified: 'bottomAlphabetical',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
'plugin/no-unsupported-browser-features': [
|
|
24
|
-
true,
|
|
25
|
-
{
|
|
26
|
-
browsers,
|
|
27
|
-
ignore: [
|
|
28
|
-
// grid-template-columns falsely identified as multicolumn
|
|
29
|
-
'multicolumn',
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
/*
|
|
35
|
-
Customize rules
|
|
36
|
-
*/
|
|
37
|
-
'declaration-block-no-redundant-longhand-properties': [
|
|
38
|
-
true,
|
|
39
|
-
{
|
|
40
|
-
ignoreShorthands: ['grid-gap', 'grid-template'],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
'property-no-unknown': [
|
|
45
|
-
true,
|
|
46
|
-
{
|
|
47
|
-
ignoreProperties: [
|
|
48
|
-
// Defined by ember-css-modules
|
|
49
|
-
'composes',
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
'selector-pseudo-class-no-unknown': [
|
|
55
|
-
true,
|
|
56
|
-
{
|
|
57
|
-
ignorePseudoClasses: [
|
|
58
|
-
// Defined by ember-css-modules
|
|
59
|
-
'global',
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
};
|