ember-style-modifier 4.3.1 → 4.5.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 +19 -0
- package/addon-main.cjs +2 -2
- package/dist/index.js +1 -0
- package/dist/modifiers/style.js +1 -0
- package/dist/modifiers/style.js.map +1 -1
- package/dist/template-registry.js +2 -0
- package/dist/template-registry.js.map +1 -0
- package/package.json +84 -62
package/README.md
CHANGED
|
@@ -26,6 +26,25 @@ argument. Property names are supported in dasherized as well as in camelCase
|
|
|
26
26
|
spelling. Value must be a string or `undefined`. You may set a priority by
|
|
27
27
|
adding an `"!important"` suffix.
|
|
28
28
|
|
|
29
|
+
```gjs
|
|
30
|
+
import { style } from 'ember-style-modifier';
|
|
31
|
+
|
|
32
|
+
<p
|
|
33
|
+
{{style
|
|
34
|
+
border="1px"
|
|
35
|
+
padding="1em !important"
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<p
|
|
41
|
+
{{style
|
|
42
|
+
(hash border="1px" padding="1em !important")
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
</p>
|
|
46
|
+
```
|
|
47
|
+
|
|
29
48
|
```hbs
|
|
30
49
|
<p
|
|
31
50
|
{{style
|
package/addon-main.cjs
CHANGED
package/dist/index.js
CHANGED
package/dist/modifiers/style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":[
|
|
1
|
+
{"version":3,"file":"style.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-registry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-style-modifier",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "{{style}} modifier to set an element's style using the CSSStyleDeclaration API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
"repository": "https://github.com/jelhan/ember-style-modifier",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"author": "",
|
|
11
|
+
"imports": {
|
|
12
|
+
"#src/*": "./src/*"
|
|
13
|
+
},
|
|
11
14
|
"exports": {
|
|
12
15
|
".": {
|
|
13
16
|
"types": "./declarations/index.d.ts",
|
|
14
17
|
"default": "./dist/index.js"
|
|
15
18
|
},
|
|
19
|
+
"./*.css": "./dist/*.css",
|
|
16
20
|
"./*": {
|
|
17
21
|
"types": "./declarations/*.d.ts",
|
|
18
22
|
"default": "./dist/*.js"
|
|
@@ -32,75 +36,82 @@
|
|
|
32
36
|
"dist"
|
|
33
37
|
],
|
|
34
38
|
"scripts": {
|
|
35
|
-
"build": "
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"lint": "concurrently
|
|
39
|
-
"lint:
|
|
39
|
+
"build": "rollup --config",
|
|
40
|
+
"format": "prettier . --cache --write",
|
|
41
|
+
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
|
|
42
|
+
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm run format",
|
|
43
|
+
"lint:format": "prettier . --cache --check",
|
|
40
44
|
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
41
45
|
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
42
46
|
"lint:js": "eslint . --cache",
|
|
43
47
|
"lint:js:fix": "eslint . --fix",
|
|
44
48
|
"lint:types": "glint",
|
|
45
|
-
"prepack": "
|
|
46
|
-
"
|
|
47
|
-
"start
|
|
48
|
-
"
|
|
49
|
-
"test": "echo 'A v2 addon does not have tests, run tests in test-app'",
|
|
50
|
-
"prepare": "pnpm run build"
|
|
49
|
+
"prepack": "rollup --config",
|
|
50
|
+
"release": "release-it",
|
|
51
|
+
"start": "vite dev",
|
|
52
|
+
"test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0"
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
|
-
"@embroider/addon-shim": "^1.
|
|
54
|
-
"decorator-transforms": "^1.0.1",
|
|
55
|
+
"@embroider/addon-shim": "^1.10.0",
|
|
55
56
|
"csstype": "^3.1.3",
|
|
57
|
+
"decorator-transforms": "^2.3.0",
|
|
56
58
|
"ember-modifier": "^3.2.7 || ^4.0.0"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "
|
|
60
|
-
"@babel/
|
|
61
|
-
"@babel/
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@types/
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"typescript": "
|
|
61
|
+
"@babel/core": "7.28.3",
|
|
62
|
+
"@babel/eslint-parser": "7.28.0",
|
|
63
|
+
"@babel/plugin-transform-typescript": "7.28.0",
|
|
64
|
+
"@babel/runtime": "7.28.3",
|
|
65
|
+
"@ember/app-tsconfig": "1.0.3",
|
|
66
|
+
"@ember/library-tsconfig": "1.1.3",
|
|
67
|
+
"@ember/string": "4.0.1",
|
|
68
|
+
"@ember/test-helpers": "5.2.2",
|
|
69
|
+
"@embroider/addon-dev": "8.1.0",
|
|
70
|
+
"@embroider/compat": "4.1.2",
|
|
71
|
+
"@embroider/core": "4.1.3",
|
|
72
|
+
"@embroider/macros": "1.18.1",
|
|
73
|
+
"@embroider/vite": "1.1.6",
|
|
74
|
+
"@eslint/js": "9.34.0",
|
|
75
|
+
"@glimmer/component": "2.0.0",
|
|
76
|
+
"@glint/core": "2.0.0-alpha.4",
|
|
77
|
+
"@glint/environment-ember-loose": "2.0.0-alpha.3",
|
|
78
|
+
"@glint/environment-ember-template-imports": "2.0.0-alpha.3",
|
|
79
|
+
"@glint/template": "1.6.0-alpha.2",
|
|
80
|
+
"@glint/tsserver-plugin": "2.0.0-alpha.4",
|
|
81
|
+
"@release-it-plugins/lerna-changelog": "8.0.1",
|
|
82
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
83
|
+
"@types/qunit": "2.19.13",
|
|
84
|
+
"babel-plugin-ember-template-compilation": "3.0.1",
|
|
85
|
+
"concurrently": "9.2.1",
|
|
86
|
+
"ember-qunit": "9.0.3",
|
|
87
|
+
"ember-resolver": "13.1.1",
|
|
88
|
+
"ember-source": "6.6.0",
|
|
89
|
+
"ember-template-lint": "7.9.3",
|
|
90
|
+
"eslint": "9.34.0",
|
|
91
|
+
"eslint-config-prettier": "10.1.8",
|
|
92
|
+
"eslint-plugin-ember": "12.7.3",
|
|
93
|
+
"eslint-plugin-import": "2.32.0",
|
|
94
|
+
"eslint-plugin-n": "17.21.3",
|
|
95
|
+
"globals": "16.3.0",
|
|
96
|
+
"prettier": "3.6.2",
|
|
97
|
+
"prettier-plugin-ember-template-tag": "2.1.0",
|
|
98
|
+
"qunit": "2.24.1",
|
|
99
|
+
"qunit-dom": "3.5.0",
|
|
100
|
+
"release-it": "19.0.4",
|
|
101
|
+
"rollup": "4.48.1",
|
|
102
|
+
"testem": "3.16.0",
|
|
103
|
+
"tracked-built-ins": "4.0.0",
|
|
104
|
+
"typescript": "5.9.2",
|
|
105
|
+
"typescript-eslint": "8.40.0",
|
|
106
|
+
"vite": "7.1.3"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"@ember/string": "^3.1.1 || ^4.0.0"
|
|
110
|
+
},
|
|
111
|
+
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b",
|
|
112
|
+
"engines": {
|
|
113
|
+
"node": "18.* || >= 20",
|
|
114
|
+
"pnpm": ">= 10.*"
|
|
104
115
|
},
|
|
105
116
|
"publishConfig": {
|
|
106
117
|
"registry": "https://registry.npmjs.org"
|
|
@@ -116,8 +127,19 @@
|
|
|
116
127
|
"./modifiers/style.js": "./dist/_app_/modifiers/style.js"
|
|
117
128
|
}
|
|
118
129
|
},
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
130
|
+
"release-it": {
|
|
131
|
+
"plugins": {
|
|
132
|
+
"@release-it-plugins/lerna-changelog": {
|
|
133
|
+
"infile": "CHANGELOG.md",
|
|
134
|
+
"launchEditor": true
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"git": {
|
|
138
|
+
"tagName": "v${version}"
|
|
139
|
+
},
|
|
140
|
+
"github": {
|
|
141
|
+
"release": true,
|
|
142
|
+
"tokenRef": "GITHUB_AUTH"
|
|
143
|
+
}
|
|
122
144
|
}
|
|
123
145
|
}
|