@cronn/element-snapshot 0.22.0 → 0.24.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.
@@ -125,34 +125,42 @@
125
125
  //#endregion
126
126
  //#region src/types/elements/container.ts
127
127
  const CONTAINER_ROLES = /* @__PURE__ */ new Set([
128
- "paragraph",
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
+ "deletion",
137
+ "descriptionlist",
138
+ "emphasis",
140
139
  "form",
140
+ "grid",
141
+ "insertion",
142
+ "label",
143
+ "list",
144
+ "listbox",
145
+ "listitem",
146
+ "log",
141
147
  "main",
148
+ "mark",
149
+ "menu",
142
150
  "navigation",
151
+ "note",
152
+ "paragraph",
153
+ "row",
154
+ "rowgroup",
143
155
  "search",
144
- "descriptionlist",
145
- "term",
146
- "definition",
156
+ "status",
157
+ "strong",
158
+ "subscript",
159
+ "superscript",
147
160
  "table",
148
- "grid",
149
- "rowgroup",
150
- "row",
151
- "alert",
152
- "menu",
153
161
  "tablist",
154
162
  "tabpanel",
155
- "label"
163
+ "term"
156
164
  ]);
157
165
  //#endregion
158
166
  //#region src/browser/container.ts
@@ -196,6 +204,7 @@
196
204
  button: "button",
197
205
  code: "code",
198
206
  dd: "definition",
207
+ del: "deletion",
199
208
  dl: "descriptionlist",
200
209
  dt: "term",
201
210
  em: "emphasis",
@@ -212,19 +221,24 @@
212
221
  hr: "separator",
213
222
  img: "img",
214
223
  input: resolveInputRole,
224
+ ins: "insertion",
215
225
  label: "label",
216
226
  legend: "label",
217
227
  li: "listitem",
218
228
  main: "main",
229
+ mark: "mark",
219
230
  nav: "navigation",
220
231
  ol: "list",
221
232
  option: "option",
233
+ output: "status",
222
234
  p: "paragraph",
223
235
  progress: "progressbar",
224
236
  search: "search",
225
237
  section: "region",
226
238
  select: "combobox",
227
239
  strong: "strong",
240
+ sub: "subscript",
241
+ sup: "superscript",
228
242
  table: "table",
229
243
  tbody: "rowgroup",
230
244
  textarea: "textbox",
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<"paragraph" | "blockquote" | "code" | "emphasis" | "strong" | "list" | "listitem" | "listbox" | "article" | "banner" | "complementary" | "contentinfo" | "form" | "main" | "navigation" | "search" | "descriptionlist" | "term" | "definition" | "table" | "grid" | "rowgroup" | "row" | "alert" | "menu" | "tablist" | "tabpanel" | "label">;
45
+ declare const CONTAINER_ROLES: Set<"alert" | "article" | "banner" | "blockquote" | "code" | "complementary" | "contentinfo" | "definition" | "deletion" | "descriptionlist" | "emphasis" | "form" | "grid" | "insertion" | "label" | "list" | "listbox" | "listitem" | "log" | "main" | "mark" | "menu" | "navigation" | "note" | "paragraph" | "row" | "rowgroup" | "search" | "status" | "strong" | "subscript" | "superscript" | "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.22.0",
3
+ "version": "0.24.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/playwright-file-snapshots": "2.2.1",
30
- "@cronn/lib-file-snapshots": "1.2.1"
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",
@@ -47,8 +47,8 @@
47
47
  "vitest": "4.1.10",
48
48
  "node": "runtime:24.18.0",
49
49
  "@cronn/shared-configs": "0.0.0",
50
- "@cronn/test-utils": "0.0.0",
51
- "@cronn/vitest-file-snapshots": "2.1.2"
50
+ "@cronn/vitest-file-snapshots": "2.1.2",
51
+ "@cronn/test-utils": "0.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@playwright/test": "^1.55"