@cronn/element-snapshot 0.22.0 → 0.23.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.
- package/dist/browser-lib.iife.js +21 -17
- package/dist/index.d.mts +1 -1
- package/package.json +5 -5
package/dist/browser-lib.iife.js
CHANGED
|
@@ -125,34 +125,37 @@
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/types/elements/container.ts
|
|
127
127
|
const CONTAINER_ROLES = /* @__PURE__ */ new Set([
|
|
128
|
-
"
|
|
129
|
-
"blockquote",
|
|
130
|
-
"code",
|
|
131
|
-
"emphasis",
|
|
132
|
-
"strong",
|
|
133
|
-
"list",
|
|
134
|
-
"listitem",
|
|
135
|
-
"listbox",
|
|
128
|
+
"alert",
|
|
136
129
|
"article",
|
|
137
130
|
"banner",
|
|
131
|
+
"blockquote",
|
|
132
|
+
"code",
|
|
138
133
|
"complementary",
|
|
139
134
|
"contentinfo",
|
|
135
|
+
"definition",
|
|
136
|
+
"descriptionlist",
|
|
137
|
+
"emphasis",
|
|
140
138
|
"form",
|
|
139
|
+
"grid",
|
|
140
|
+
"label",
|
|
141
|
+
"list",
|
|
142
|
+
"listbox",
|
|
143
|
+
"listitem",
|
|
144
|
+
"log",
|
|
141
145
|
"main",
|
|
146
|
+
"menu",
|
|
142
147
|
"navigation",
|
|
148
|
+
"note",
|
|
149
|
+
"paragraph",
|
|
150
|
+
"row",
|
|
151
|
+
"rowgroup",
|
|
143
152
|
"search",
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"definition",
|
|
153
|
+
"status",
|
|
154
|
+
"strong",
|
|
147
155
|
"table",
|
|
148
|
-
"grid",
|
|
149
|
-
"rowgroup",
|
|
150
|
-
"row",
|
|
151
|
-
"alert",
|
|
152
|
-
"menu",
|
|
153
156
|
"tablist",
|
|
154
157
|
"tabpanel",
|
|
155
|
-
"
|
|
158
|
+
"term"
|
|
156
159
|
]);
|
|
157
160
|
//#endregion
|
|
158
161
|
//#region src/browser/container.ts
|
|
@@ -219,6 +222,7 @@
|
|
|
219
222
|
nav: "navigation",
|
|
220
223
|
ol: "list",
|
|
221
224
|
option: "option",
|
|
225
|
+
output: "status",
|
|
222
226
|
p: "paragraph",
|
|
223
227
|
progress: "progressbar",
|
|
224
228
|
search: "search",
|
package/dist/index.d.mts
CHANGED
|
@@ -42,7 +42,7 @@ type PressedValue = true | "mixed";
|
|
|
42
42
|
type SetValues<TSet> = TSet extends Set<infer TValue> ? TValue : never;
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/types/elements/container.d.ts
|
|
45
|
-
declare const CONTAINER_ROLES: Set<"
|
|
45
|
+
declare const CONTAINER_ROLES: Set<"alert" | "article" | "banner" | "blockquote" | "code" | "complementary" | "contentinfo" | "definition" | "descriptionlist" | "emphasis" | "form" | "grid" | "label" | "list" | "listbox" | "listitem" | "log" | "main" | "menu" | "navigation" | "note" | "paragraph" | "row" | "rowgroup" | "search" | "status" | "strong" | "table" | "tablist" | "tabpanel" | "term">;
|
|
46
46
|
interface ContainerSnapshot extends GenericElementSnapshot<ContainerRole> {}
|
|
47
47
|
type ContainerRole = SetValues<typeof CONTAINER_ROLES>;
|
|
48
48
|
interface RegionSnapshot extends GenericElementSnapshot<"region"> {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cronn/element-snapshot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Element snapshots for Playwright",
|
|
5
5
|
"homepage": "https://cronn.github.io/file-snapshots/playwright/element-snapshots/",
|
|
6
6
|
"bugs": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"package-directory": "8.2.0",
|
|
29
|
-
"@cronn/
|
|
30
|
-
"@cronn/
|
|
29
|
+
"@cronn/lib-file-snapshots": "1.2.1",
|
|
30
|
+
"@cronn/playwright-file-snapshots": "2.2.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@arethetypeswrong/core": "0.18.5",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"typescript-eslint": "8.63.0",
|
|
47
47
|
"vitest": "4.1.10",
|
|
48
48
|
"node": "runtime:24.18.0",
|
|
49
|
-
"@cronn/shared-configs": "0.0.0",
|
|
50
49
|
"@cronn/test-utils": "0.0.0",
|
|
51
|
-
"@cronn/vitest-file-snapshots": "2.1.2"
|
|
50
|
+
"@cronn/vitest-file-snapshots": "2.1.2",
|
|
51
|
+
"@cronn/shared-configs": "0.0.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@playwright/test": "^1.55"
|