ember-container-query 6.0.0 → 6.0.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.
|
@@ -19,12 +19,12 @@ interface ContainerQuerySignature<T extends IndexSignatureParameter> {
|
|
|
19
19
|
Element: Element;
|
|
20
20
|
}
|
|
21
21
|
export default class ContainerQueryComponent<T extends IndexSignatureParameter> extends Component<ContainerQuerySignature<T>> {
|
|
22
|
+
dimensions?: Dimensions;
|
|
23
|
+
queryResults?: QueryResults<T>;
|
|
22
24
|
tagName: string;
|
|
23
25
|
updateState: ({ dimensions, queryResults, }: {
|
|
24
26
|
dimensions: Dimensions;
|
|
25
27
|
queryResults: QueryResults<T>;
|
|
26
28
|
}) => void;
|
|
27
|
-
dimensions?: Dimensions;
|
|
28
|
-
queryResults?: QueryResults<T>;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
@@ -11,6 +11,14 @@ import { g, i } from 'decorator-transforms/runtime';
|
|
|
11
11
|
;
|
|
12
12
|
|
|
13
13
|
class ContainerQueryComponent extends Component {
|
|
14
|
+
static {
|
|
15
|
+
g(this.prototype, "dimensions", [tracked]);
|
|
16
|
+
}
|
|
17
|
+
#dimensions = (i(this, "dimensions"), void 0);
|
|
18
|
+
static {
|
|
19
|
+
g(this.prototype, "queryResults", [tracked]);
|
|
20
|
+
}
|
|
21
|
+
#queryResults = (i(this, "queryResults"), void 0);
|
|
14
22
|
// The dynamic tag is restricted to be immutable
|
|
15
23
|
tagName = this.args.tagName ?? 'div';
|
|
16
24
|
updateState = ({
|
|
@@ -20,14 +28,6 @@ class ContainerQueryComponent extends Component {
|
|
|
20
28
|
this.dimensions = dimensions;
|
|
21
29
|
this.queryResults = queryResults;
|
|
22
30
|
};
|
|
23
|
-
static {
|
|
24
|
-
g(this.prototype, "dimensions", [tracked]);
|
|
25
|
-
}
|
|
26
|
-
#dimensions = (i(this, "dimensions"), void 0);
|
|
27
|
-
static {
|
|
28
|
-
g(this.prototype, "queryResults", [tracked]);
|
|
29
|
-
}
|
|
30
|
-
#queryResults = (i(this, "queryResults"), void 0);
|
|
31
31
|
static {
|
|
32
32
|
setComponentTemplate(precompileTemplate("\n {{#let (element this.tagName) as |Tag|}}\n <Tag class=\"container-query\" {{containerQuery dataAttributePrefix=@dataAttributePrefix debounce=@debounce features=@features onQuery=this.updateState}} ...attributes>\n {{yield (hash dimensions=this.dimensions features=this.queryResults)}}\n </Tag>\n {{/let}}\n ", {
|
|
33
33
|
strictMode: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-container-query",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Make container queries that harness the power of Ember",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"container-queries",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@embroider/addon-shim": "^1.10.0",
|
|
52
52
|
"decorator-transforms": "^2.3.0",
|
|
53
|
-
"ember-element-helper": "^0.8.
|
|
53
|
+
"ember-element-helper": "^0.8.8",
|
|
54
54
|
"ember-modifier": "^4.2.0",
|
|
55
55
|
"ember-resize-observer-service": "^1.1.0"
|
|
56
56
|
},
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"@glint/environment-ember-loose": "^1.5.2",
|
|
66
66
|
"@glint/environment-ember-template-imports": "^1.5.2",
|
|
67
67
|
"@glint/template": "^1.5.2",
|
|
68
|
-
"@ijlee2-frontend-configs/ember-template-lint": "^
|
|
69
|
-
"@ijlee2-frontend-configs/eslint-config-ember": "^
|
|
70
|
-
"@ijlee2-frontend-configs/prettier": "^
|
|
68
|
+
"@ijlee2-frontend-configs/ember-template-lint": "^2.0.0",
|
|
69
|
+
"@ijlee2-frontend-configs/eslint-config-ember": "^2.0.0",
|
|
70
|
+
"@ijlee2-frontend-configs/prettier": "^2.0.0",
|
|
71
71
|
"@rollup/plugin-babel": "^6.0.4",
|
|
72
72
|
"@tsconfig/ember": "^3.0.10",
|
|
73
73
|
"babel-plugin-ember-template-compilation": "^3.0.0",
|
|
74
74
|
"concurrently": "^9.1.2",
|
|
75
75
|
"ember-source": "^6.4.0",
|
|
76
|
-
"ember-template-lint": "^7.
|
|
77
|
-
"eslint": "^9.
|
|
76
|
+
"ember-template-lint": "^7.7.0",
|
|
77
|
+
"eslint": "^9.28.0",
|
|
78
78
|
"prettier": "^3.5.3",
|
|
79
|
-
"rollup": "^4.
|
|
79
|
+
"rollup": "^4.41.1",
|
|
80
80
|
"typescript": "^5.8.3"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
@@ -99,8 +99,10 @@
|
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "rollup --config",
|
|
102
|
+
"format": "prettier . --cache --write",
|
|
102
103
|
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
|
|
103
|
-
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
|
|
104
|
+
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" && pnpm format",
|
|
105
|
+
"lint:format": "prettier . --cache --check",
|
|
104
106
|
"lint:hbs": "ember-template-lint .",
|
|
105
107
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
106
108
|
"lint:js": "eslint . --cache",
|