@cas-smartdesign/image-tools 3.0.2 → 3.2.0

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.
@@ -1,15 +1,20 @@
1
1
  {
2
- "@cypress/vite-dev-server@5.0.7": {
2
+ "@cypress/vite-dev-server@7.0.0": {
3
3
  "licenses": "MIT",
4
4
  "repository": "https://github.com/cypress-io/cypress",
5
5
  "licenseUrl": "https://github.com/cypress-io/cypress/tree/develop/npm/vite-dev-server#readme"
6
6
  },
7
- "@rollup/plugin-node-resolve@15.2.3": {
7
+ "@eslint/js@9.34.0": {
8
+ "licenses": "MIT",
9
+ "repository": "https://github.com/eslint/eslint",
10
+ "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
11
+ },
12
+ "@rollup/plugin-node-resolve@16.0.1": {
8
13
  "licenses": "MIT",
9
14
  "repository": "https://github.com/rollup/plugins",
10
15
  "licenseUrl": "https://github.com/rollup/plugins/raw/HEAD/LICENSE"
11
16
  },
12
- "@types/node@20.10.6": {
17
+ "@types/node@24.3.0": {
13
18
  "licenses": "MIT",
14
19
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
15
20
  "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
@@ -19,47 +24,42 @@
19
24
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
20
25
  "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
21
26
  },
22
- "@typescript-eslint/eslint-plugin@6.17.0": {
27
+ "@typescript-eslint/eslint-plugin@8.41.0": {
23
28
  "licenses": "MIT",
24
29
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
25
30
  "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
26
31
  },
27
- "@typescript-eslint/parser@6.17.0": {
28
- "licenses": "BSD-2-Clause",
32
+ "@typescript-eslint/parser@8.41.0": {
33
+ "licenses": "MIT",
29
34
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
30
35
  "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
31
36
  },
32
- "@vitest/coverage-v8@1.1.1": {
37
+ "@vitest/coverage-v8@3.2.4": {
33
38
  "licenses": "MIT",
34
39
  "repository": "https://github.com/vitest-dev/vitest",
35
40
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
36
41
  },
37
- "@vitest/ui@1.1.1": {
42
+ "@vitest/ui@3.2.4": {
38
43
  "licenses": "MIT",
39
44
  "repository": "https://github.com/vitest-dev/vitest",
40
45
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
41
46
  },
42
- "axe-core@4.8.3": {
47
+ "axe-core@4.10.3": {
43
48
  "licenses": "MPL-2.0",
44
49
  "repository": "https://github.com/dequelabs/axe-core",
45
50
  "licenseUrl": "https://github.com/dequelabs/axe-core/raw/HEAD/LICENSE"
46
51
  },
47
- "cypress-axe@1.5.0": {
52
+ "cypress-axe@1.7.0": {
48
53
  "licenses": "MIT",
49
54
  "repository": "https://github.com/component-driven/cypress-axe",
50
55
  "licenseUrl": "https://github.com/component-driven/cypress-axe/raw/HEAD/License.md"
51
56
  },
52
- "cypress-real-events@1.13.0": {
53
- "licenses": "MIT",
54
- "repository": "https://github.com/dmtrKovalenko/cypress-real-events",
55
- "licenseUrl": "https://github.com/dmtrKovalenko/cypress-real-events"
56
- },
57
- "cypress@13.6.2": {
57
+ "cypress@15.0.0": {
58
58
  "licenses": "MIT",
59
59
  "repository": "https://github.com/cypress-io/cypress",
60
60
  "licenseUrl": "https://cypress.io"
61
61
  },
62
- "esbuild@0.19.11": {
62
+ "esbuild@0.25.9": {
63
63
  "licenses": "MIT",
64
64
  "repository": "https://github.com/evanw/esbuild",
65
65
  "licenseUrl": "https://github.com/evanw/esbuild/raw/HEAD/LICENSE.md"
@@ -69,52 +69,57 @@
69
69
  "repository": "https://github.com/google/eslint-config-google",
70
70
  "licenseUrl": "https://github.com/google/eslint-config-google/raw/HEAD/LICENSE"
71
71
  },
72
- "eslint-config-prettier@9.1.0": {
72
+ "eslint-config-prettier@10.1.8": {
73
73
  "licenses": "MIT",
74
74
  "repository": "https://github.com/prettier/eslint-config-prettier",
75
75
  "licenseUrl": "https://github.com/prettier/eslint-config-prettier/raw/HEAD/LICENSE"
76
76
  },
77
- "eslint@8.56.0": {
77
+ "eslint@9.34.0": {
78
78
  "licenses": "MIT",
79
79
  "repository": "https://github.com/eslint/eslint",
80
80
  "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
81
81
  },
82
- "github-markdown-css@5.5.0": {
82
+ "github-markdown-css@5.8.1": {
83
83
  "licenses": "MIT",
84
84
  "repository": "https://github.com/sindresorhus/github-markdown-css",
85
85
  "licenseUrl": "https://github.com/sindresorhus/github-markdown-css/raw/HEAD/license"
86
86
  },
87
- "highlight.js@11.9.0": {
87
+ "highlight.js@11.11.1": {
88
88
  "licenses": "BSD-3-Clause",
89
89
  "repository": "https://github.com/highlightjs/highlight.js",
90
90
  "licenseUrl": "https://github.com/highlightjs/highlight.js/raw/HEAD/LICENSE"
91
91
  },
92
- "junit-report-builder@3.1.0": {
92
+ "junit-report-builder@5.1.1": {
93
93
  "licenses": "MIT",
94
94
  "repository": "https://github.com/davidparsson/junit-report-builder",
95
95
  "licenseUrl": "https://github.com/davidparsson/junit-report-builder/raw/HEAD/LICENSE"
96
96
  },
97
- "lint-staged@15.2.0": {
97
+ "lint-staged@16.1.5": {
98
98
  "licenses": "MIT",
99
- "repository": "https://github.com/okonet/lint-staged",
100
- "licenseUrl": "https://github.com/okonet/lint-staged/raw/HEAD/LICENSE"
99
+ "repository": "https://github.com/lint-staged/lint-staged",
100
+ "licenseUrl": "https://github.com/lint-staged/lint-staged/raw/HEAD/LICENSE"
101
101
  },
102
- "marked@11.1.1": {
102
+ "lit-html@3.3.1": {
103
+ "licenses": "BSD-3-Clause",
104
+ "repository": "https://github.com/lit/lit",
105
+ "licenseUrl": "https://github.com/lit/lit/raw/HEAD/LICENSE"
106
+ },
107
+ "marked@16.2.1": {
103
108
  "licenses": "MIT",
104
109
  "repository": "https://github.com/markedjs/marked",
105
110
  "licenseUrl": "https://github.com/markedjs/marked/raw/HEAD/LICENSE.md"
106
111
  },
107
- "postcss-prefix-selector@1.16.0": {
112
+ "postcss-prefix-selector@2.1.1": {
108
113
  "licenses": "MIT",
109
114
  "repository": "https://github.com/RadValentin/postcss-prefix-selector",
110
115
  "licenseUrl": "https://github.com/RadValentin/postcss-prefix-selector/raw/HEAD/LICENSE"
111
116
  },
112
- "postcss@8.4.32": {
117
+ "postcss@8.5.6": {
113
118
  "licenses": "MIT",
114
119
  "repository": "https://github.com/postcss/postcss",
115
120
  "licenseUrl": "https://github.com/postcss/postcss/raw/HEAD/LICENSE"
116
121
  },
117
- "prettier@3.1.1": {
122
+ "prettier@3.6.2": {
118
123
  "licenses": "MIT",
119
124
  "repository": "https://github.com/prettier/prettier",
120
125
  "licenseUrl": "https://github.com/prettier/prettier/raw/HEAD/LICENSE"
@@ -124,62 +129,67 @@
124
129
  "repository": "https://github.com/sindresorhus/resolve-pkg",
125
130
  "licenseUrl": "https://github.com/sindresorhus/resolve-pkg/raw/HEAD/license"
126
131
  },
127
- "sass@1.69.6": {
132
+ "sass@1.91.0": {
128
133
  "licenses": "MIT",
129
134
  "repository": "https://github.com/sass/dart-sass",
130
135
  "licenseUrl": "https://github.com/sass/dart-sass/raw/HEAD/LICENSE"
131
136
  },
132
- "stylelint-config-recommended-scss@14.0.0": {
137
+ "stylelint-config-recommended-scss@16.0.0": {
133
138
  "licenses": "MIT",
134
139
  "repository": "https://github.com/stylelint-scss/stylelint-config-recommended-scss",
135
140
  "licenseUrl": "https://github.com/stylelint-scss/stylelint-config-recommended-scss/raw/HEAD/LICENSE"
136
141
  },
137
- "stylelint-config-standard@36.0.0": {
142
+ "stylelint-config-standard@39.0.0": {
138
143
  "licenses": "MIT",
139
144
  "repository": "https://github.com/stylelint/stylelint-config-standard",
140
145
  "licenseUrl": "https://github.com/stylelint/stylelint-config-standard/raw/HEAD/LICENSE"
141
146
  },
142
- "stylelint-scss@6.0.0": {
147
+ "stylelint-scss@6.12.1": {
143
148
  "licenses": "MIT",
144
149
  "repository": "https://github.com/stylelint-scss/stylelint-scss",
145
150
  "licenseUrl": "https://github.com/stylelint-scss/stylelint-scss/raw/HEAD/LICENSE"
146
151
  },
147
- "stylelint@16.1.0": {
152
+ "stylelint@16.23.1": {
148
153
  "licenses": "MIT",
149
154
  "repository": "https://github.com/stylelint/stylelint",
150
155
  "licenseUrl": "https://github.com/stylelint/stylelint/raw/HEAD/LICENSE"
151
156
  },
152
- "tsup@8.0.1": {
157
+ "tsup@8.5.0": {
153
158
  "licenses": "MIT",
154
159
  "repository": "https://github.com/egoist/tsup",
155
160
  "licenseUrl": "https://github.com/egoist/tsup/raw/HEAD/LICENSE"
156
161
  },
157
- "turbo@1.11.2": {
158
- "licenses": "MPL-2.0",
159
- "repository": "https://github.com/vercel/turbo",
160
- "licenseUrl": "https://github.com/vercel/turbo/raw/HEAD/LICENSE"
162
+ "turbo@2.5.6": {
163
+ "licenses": "MIT",
164
+ "repository": "https://github.com/vercel/turborepo",
165
+ "licenseUrl": "https://github.com/vercel/turborepo/raw/HEAD/LICENSE"
166
+ },
167
+ "typescript-eslint@8.41.0": {
168
+ "licenses": "MIT",
169
+ "repository": "https://github.com/typescript-eslint/typescript-eslint",
170
+ "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
161
171
  },
162
- "typescript@5.3.3": {
172
+ "typescript@5.9.2": {
163
173
  "licenses": "Apache-2.0",
164
- "repository": "https://github.com/Microsoft/TypeScript",
165
- "licenseUrl": "https://github.com/Microsoft/TypeScript/raw/HEAD/LICENSE.txt"
174
+ "repository": "https://github.com/microsoft/TypeScript",
175
+ "licenseUrl": "https://github.com/microsoft/TypeScript/raw/HEAD/LICENSE.txt"
166
176
  },
167
- "vite-tsconfig-paths@4.2.3": {
177
+ "vite-tsconfig-paths@5.1.4": {
168
178
  "licenses": "MIT",
169
179
  "repository": "https://github.com/aleclarson/vite-tsconfig-paths",
170
180
  "licenseUrl": "https://github.com/aleclarson/vite-tsconfig-paths/raw/HEAD/LICENSE"
171
181
  },
172
- "vite@5.0.10": {
182
+ "vite@7.1.3": {
173
183
  "licenses": "MIT",
174
184
  "repository": "https://github.com/vitejs/vite",
175
185
  "licenseUrl": "https://github.com/vitejs/vite/raw/HEAD/LICENSE.md"
176
186
  },
177
- "vitest@1.1.1": {
187
+ "vitest@3.2.4": {
178
188
  "licenses": "MIT",
179
189
  "repository": "https://github.com/vitest-dev/vitest",
180
190
  "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE.md"
181
191
  },
182
- "yargs@17.7.2": {
192
+ "yargs@18.0.0": {
183
193
  "licenses": "MIT",
184
194
  "repository": "https://github.com/yargs/yargs",
185
195
  "licenseUrl": "https://github.com/yargs/yargs/raw/HEAD/LICENSE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/image-tools",
3
- "version": "3.0.2",
3
+ "version": "3.2.0",
4
4
  "description": "A utility providing placeholder/fallback image loading.",
5
5
  "main": "dist/image-tools-with-externals.js",
6
6
  "module": "dist/image-tools.mjs",
@@ -15,8 +15,11 @@
15
15
  "access": "public"
16
16
  },
17
17
  "devDependencies": {
18
- "@cas-smartdesign/element-preview": "^0.2.2",
19
- "@cas-smartdesign/license-generator": "^1.6.3"
18
+ "@cas-smartdesign/element-preview": "^0.3.0",
19
+ "@cas-smartdesign/license-generator": "^1.7.0"
20
+ },
21
+ "dependencies": {
22
+ "lit-html": "^3.3.1"
20
23
  },
21
24
  "scripts": {
22
25
  "version": "pnpm version",
@@ -1 +0,0 @@
1
- import{I as r}from"./image-tools.mjs";const a="./placeholder.svg",t=document.querySelector("#css-example"),c=e=>{if(e.classList.add("image"),Math.random()>.3){const o=Math.floor(Math.random()*2e3);r.showImage(e,`https://loremflickr.com/320/240/kitten?${o}`,a)}else r.showImage(e,"http://wrong-url",a)},n=t.querySelector(".image-container");for(let e=0;e<16;e++){const o=document.createElement("div");c(o),n.appendChild(o)}const s=t.querySelector("#refresh");s.onclick=()=>{t.querySelectorAll(".image").forEach(e=>{c(e)})};
@@ -1 +0,0 @@
1
- import{I as r}from"./image-tools.mjs";const a="./placeholder.svg",t=document.querySelector("#img-example"),c=e=>{if(e.classList.add("image"),Math.random()>.3){const o=Math.floor(Math.random()*2e3);r.showImage(e,`https://loremflickr.com/320/240/kitten?${o}`,a)}else r.showImage(e,"http://wrong-url",a)},n=t.querySelector(".image-container");for(let e=0;e<16;e++){const o=document.createElement("img");c(o),n.appendChild(o)}const l=t.querySelector("#refresh");l.onclick=()=>{t.querySelectorAll(".image").forEach(e=>{c(e)})};