evikit 2.2.2 → 2.3.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 CHANGED
@@ -78,6 +78,7 @@ node_modules
78
78
  /dist
79
79
  *~
80
80
  *swp
81
+ *.mo
81
82
  .env
82
83
  ```
83
84
 
@@ -160,6 +161,7 @@ export function ErrorPage({ children, error }) {
160
161
  useTitle(status);
161
162
 
162
163
  return main(
164
+ null,
163
165
  p({ class: "nav" }, a({ href: "/" }, i18n.gettext("Questions"))),
164
166
  h1({ class: "title" }, status),
165
167
  children,
package/html.js CHANGED
@@ -1,13 +1,20 @@
1
1
  import { HTMLElement } from "./html-element.js";
2
2
 
3
3
  export const a = HTMLElement("a");
4
+ export const article = HTMLElement("article");
4
5
  export const b = HTMLElement("b");
6
+ export const blockquote = HTMLElement("blockquote");
7
+ export const br = HTMLElement("br");
5
8
  export const button = HTMLElement("button");
6
9
  export const circle = HTMLElement("circle");
10
+ export const code = HTMLElement("code");
7
11
  export const dialog = HTMLElement("dialog");
8
12
  export const div = HTMLElement("div");
13
+ export const em = HTMLElement("em");
9
14
  export const fieldset = HTMLElement("fieldset");
15
+ export const figcaption = HTMLElement("figcaption");
10
16
  export const figure = HTMLElement("figure");
17
+ export const footer = HTMLElement("footer");
11
18
  export const form = HTMLElement("form");
12
19
  export const header = HTMLElement("header");
13
20
  export const h1 = HTMLElement("h1");
@@ -16,18 +23,25 @@ export const h3 = HTMLElement("h3");
16
23
  export const h4 = HTMLElement("h4");
17
24
  export const h5 = HTMLElement("h5");
18
25
  export const h6 = HTMLElement("h6");
26
+ export const hr = HTMLElement("hr");
19
27
  export const i = HTMLElement("i");
20
28
  export const img = HTMLElement("img");
21
29
  export const input = HTMLElement("input");
22
30
  export const label = HTMLElement("label");
31
+ export const legend = HTMLElement("legend");
23
32
  export const li = HTMLElement("li");
24
33
  export const main = HTMLElement("main");
34
+ export const nav = HTMLElement("nav");
25
35
  export const ol = HTMLElement("ol");
26
36
  export const option = HTMLElement("option");
27
37
  export const p = HTMLElement("p");
28
38
  export const path = HTMLElement("path");
39
+ export const pre = HTMLElement("pre");
40
+ export const section = HTMLElement("section");
29
41
  export const select = HTMLElement("select");
42
+ export const small = HTMLElement("small");
30
43
  export const span = HTMLElement("span");
44
+ export const strong = HTMLElement("strong");
31
45
  export const svg = HTMLElement("svg");
32
46
  export const title = HTMLElement("title");
33
47
  export const ul = HTMLElement("ul");
package/index.d.ts CHANGED
@@ -83,33 +83,47 @@ export function useQueryClient(): {
83
83
  export function useStatus(error: unknown): string;
84
84
 
85
85
  export const a: H<"a">;
86
+ export const article: H<"article">;
86
87
  export const b: H<"b">;
88
+ export const blockquote: H<"blockquote">;
89
+ export const br: H<"br">;
87
90
  export const button: H<"button">;
88
91
  export const circle: H<"circle">;
92
+ export const code: H<"code">;
89
93
  export const dialog: H<"dialog">;
90
94
  export const div: H<"div">;
95
+ export const em: H<"em">;
91
96
  export const fieldset: H<"fieldset">;
97
+ export const figcaption: H<"figcaption">;
92
98
  export const figure: H<"figure">;
99
+ export const footer: H<"footer">;
93
100
  export const form: H<"form">;
94
- export const header: H<"header">;
95
101
  export const h1: H<"h1">;
96
102
  export const h2: H<"h2">;
97
103
  export const h3: H<"h3">;
98
104
  export const h4: H<"h4">;
99
105
  export const h5: H<"h5">;
100
106
  export const h6: H<"h6">;
107
+ export const header: H<"header">;
108
+ export const hr: H<"hr">;
101
109
  export const i: H<"i">;
102
110
  export const img: H<"img">;
103
111
  export const input: H<"input">;
104
112
  export const label: H<"label">;
113
+ export const legend: H<"legend">;
105
114
  export const li: H<"li">;
106
115
  export const main: H<"main">;
116
+ export const nav: H<"nav">;
107
117
  export const ol: H<"ol">;
108
118
  export const option: H<"option">;
109
119
  export const p: H<"p">;
110
120
  export const path: H<"path">;
121
+ export const pre: H<"pre">;
122
+ export const section: H<"section">;
111
123
  export const select: H<"select">;
124
+ export const small: H<"small">;
112
125
  export const span: H<"span">;
126
+ export const strong: H<"strong">;
113
127
  export const svg: H<"svg">;
114
128
  export const title: H<"title">;
115
129
  export const ul: H<"ul">;
package/index.js CHANGED
@@ -13,13 +13,20 @@ import { useState } from "preact/hooks";
13
13
  import { flatten, primary, references, relations } from "./db.js";
14
14
  import {
15
15
  a,
16
+ article,
16
17
  b,
18
+ blockquote,
19
+ br,
17
20
  button,
18
21
  circle,
22
+ code,
19
23
  dialog,
20
24
  div,
25
+ em,
21
26
  fieldset,
27
+ figcaption,
22
28
  figure,
29
+ footer,
23
30
  form,
24
31
  h1,
25
32
  h2,
@@ -28,18 +35,25 @@ import {
28
35
  h5,
29
36
  h6,
30
37
  header,
38
+ hr,
31
39
  i,
32
40
  img,
33
41
  input,
34
42
  label,
43
+ legend,
35
44
  li,
36
45
  main,
46
+ nav,
37
47
  ol,
38
48
  option,
39
49
  p,
40
50
  path,
51
+ pre,
52
+ section,
41
53
  select,
54
+ small,
42
55
  span,
56
+ strong,
43
57
  svg,
44
58
  title,
45
59
  ul,
@@ -178,13 +192,20 @@ export { getI18n, useApi, useEnhance, useI18n, useQueryClient, useStatus };
178
192
 
179
193
  export {
180
194
  a,
195
+ article,
181
196
  b,
197
+ blockquote,
198
+ br,
182
199
  button,
183
200
  circle,
201
+ code,
184
202
  dialog,
185
203
  div,
204
+ em,
186
205
  fieldset,
206
+ figcaption,
187
207
  figure,
208
+ footer,
188
209
  form,
189
210
  h1,
190
211
  h2,
@@ -193,18 +214,25 @@ export {
193
214
  h5,
194
215
  h6,
195
216
  header,
217
+ hr,
196
218
  i,
197
219
  img,
198
220
  input,
199
221
  label,
222
+ legend,
200
223
  li,
201
224
  main,
225
+ nav,
202
226
  ol,
203
227
  option,
204
228
  p,
205
229
  path,
230
+ pre,
231
+ section,
206
232
  select,
233
+ small,
207
234
  span,
235
+ strong,
208
236
  svg,
209
237
  title,
210
238
  ul,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "evikit",
3
3
  "description": "Preact/SQLite SSR framework for small web apps",
4
- "version": "2.2.2",
4
+ "version": "2.3.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js",