@thi.ng/hiccup-html 1.0.3 → 2.0.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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [1.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.0.2...@thi.ng/hiccup-html@1.0.3) (2021-08-08)
6
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@2.0.0...@thi.ng/hiccup-html@2.0.1) (2021-10-13)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/hiccup-html
9
9
 
@@ -11,96 +11,74 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [1.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.0.1...@thi.ng/hiccup-html@1.0.2) (2021-08-08)
15
-
16
- **Note:** Version bump only for package @thi.ng/hiccup-html
17
-
18
-
19
-
20
-
21
-
22
- ## [1.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.20...@thi.ng/hiccup-html@1.0.1) (2021-08-08)
23
-
24
- **Note:** Version bump only for package @thi.ng/hiccup-html
25
-
26
-
27
-
28
-
29
-
30
- ## [0.3.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.19...@thi.ng/hiccup-html@0.3.20) (2021-08-04)
31
-
32
- **Note:** Version bump only for package @thi.ng/hiccup-html
33
-
34
-
35
-
36
-
37
-
38
- ## [0.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.18...@thi.ng/hiccup-html@0.3.19) (2021-07-01)
39
-
40
- **Note:** Version bump only for package @thi.ng/hiccup-html
41
-
42
-
43
-
44
-
45
-
46
- ## [0.3.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.17...@thi.ng/hiccup-html@0.3.18) (2021-06-08)
47
-
48
- **Note:** Version bump only for package @thi.ng/hiccup-html
49
-
50
-
51
-
52
-
53
-
54
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.2.0...@thi.ng/hiccup-html@0.3.0) (2020-07-09)
14
+ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.1.1...@thi.ng/hiccup-html@2.0.0) (2021-10-12)
55
15
 
56
16
 
57
- ### Features
17
+ ### Build System
58
18
 
59
- * **hiccup-html:** add 360+ CSS property names ([d06a4ae](https://github.com/thi-ng/umbrella/commit/d06a4ae0fa916d168bf54e0f003677bf726e8513))
60
- * **hiccup-html:** add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8d0ddfd7f54b2689a792a092122ffe830a))
19
+ * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
61
20
 
62
21
 
22
+ ### BREAKING CHANGES
63
23
 
24
+ * discontinue CommonJS & UMD versions
64
25
 
26
+ - only ESM modules will be published from now on
27
+ - CJS obsolete due to ESM support in recent versions of node:
28
+ - i.e. launch NodeJS via:
29
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
+ - in the node REPL use `await import(...)` instead of `require()`
31
+ - UMD obsolete due to widespread browser support for ESM
65
32
 
66
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.1...@thi.ng/hiccup-html@0.2.0) (2020-07-02)
33
+ Also:
34
+ - normalize/restructure/reorg all package.json files
35
+ - cleanup all build scripts, remove obsolete
36
+ - switch from mocha to @thi.ng/testament for all tests
67
37
 
68
38
 
69
- ### Features
70
39
 
71
- * **hiccup-html:** add meta & link variations ([42fb113](https://github.com/thi-ng/umbrella/commit/42fb113141e400b64822daefa746ab236e57965a))
72
- * **hiccup-html:** add more elems (tables) ([f0616e6](https://github.com/thi-ng/umbrella/commit/f0616e626e187725b31716d6fec7f420288d071e))
73
- * **hiccup-html:** add new elems, add/update types ([9023724](https://github.com/thi-ng/umbrella/commit/9023724d536a013a896934f9b5db443787be31ce))
74
- * **hiccup-html:** add RDFa attrib support, update types ([0737a16](https://github.com/thi-ng/umbrella/commit/0737a169668184750e7fe0d09be5d51c61a47e17))
75
- * **hiccup-html:** add textArea() ([3fceb02](https://github.com/thi-ng/umbrella/commit/3fceb02136de6d8b532c23659cad3f800b159534))
76
40
 
77
41
 
78
- ### Reverts
79
42
 
80
- * **hiccup-html:** undo accidental anchor rename ([64cc52c](https://github.com/thi-ng/umbrella/commit/64cc52c34ae689396f0729918455d78603ce890c))
43
+ # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.0.3...@thi.ng/hiccup-html@1.1.0) (2021-08-17)
81
44
 
45
+ ### Features
82
46
 
47
+ - **hiccup-html:** update style/script element defs ([a1f9ac8](https://github.com/thi-ng/umbrella/commit/a1f9ac8b2f56376747af53a2f8e9911ed3704c27))
83
48
 
49
+ # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.2.0...@thi.ng/hiccup-html@0.3.0) (2020-07-09)
84
50
 
51
+ ### Features
85
52
 
86
- ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.0...@thi.ng/hiccup-html@0.1.1) (2020-06-28)
53
+ - **hiccup-html:** add 360+ CSS property names ([d06a4ae](https://github.com/thi-ng/umbrella/commit/d06a4ae0fa916d168bf54e0f003677bf726e8513))
54
+ - **hiccup-html:** add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8d0ddfd7f54b2689a792a092122ffe830a))
87
55
 
56
+ # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.1...@thi.ng/hiccup-html@0.2.0) (2020-07-02)
88
57
 
89
- ### Bug Fixes
58
+ ### Features
90
59
 
91
- * **hiccup-html:** update attrib types ([7af448f](https://github.com/thi-ng/umbrella/commit/7af448f59ac0210060a508a75be27f8667c7d118))
60
+ - **hiccup-html:** add meta & link variations ([42fb113](https://github.com/thi-ng/umbrella/commit/42fb113141e400b64822daefa746ab236e57965a))
61
+ - **hiccup-html:** add more elems (tables) ([f0616e6](https://github.com/thi-ng/umbrella/commit/f0616e626e187725b31716d6fec7f420288d071e))
62
+ - **hiccup-html:** add new elems, add/update types ([9023724](https://github.com/thi-ng/umbrella/commit/9023724d536a013a896934f9b5db443787be31ce))
63
+ - **hiccup-html:** add RDFa attrib support, update types ([0737a16](https://github.com/thi-ng/umbrella/commit/0737a169668184750e7fe0d09be5d51c61a47e17))
64
+ - **hiccup-html:** add textArea() ([3fceb02](https://github.com/thi-ng/umbrella/commit/3fceb02136de6d8b532c23659cad3f800b159534))
92
65
 
66
+ ### Reverts
93
67
 
68
+ - **hiccup-html:** undo accidental anchor rename ([64cc52c](https://github.com/thi-ng/umbrella/commit/64cc52c34ae689396f0729918455d78603ce890c))
94
69
 
70
+ ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.0...@thi.ng/hiccup-html@0.1.1) (2020-06-28)
95
71
 
72
+ ### Bug Fixes
96
73
 
97
- # 0.1.0 (2020-06-24)
74
+ - **hiccup-html:** update attrib types ([7af448f](https://github.com/thi-ng/umbrella/commit/7af448f59ac0210060a508a75be27f8667c7d118))
98
75
 
76
+ # 0.1.0 (2020-06-24)
99
77
 
100
- ### Features
78
+ ### Features
101
79
 
102
- * **hiccup-html:** add AttribVal & EventAttribVal ([469e297](https://github.com/thi-ng/umbrella/commit/469e29758d3801d8c5e56695246c438f4a6c9569))
103
- * **hiccup-html:** add more elements & helpers ([68a9bb8](https://github.com/thi-ng/umbrella/commit/68a9bb89f901612e69e0c4ae972a8de2c7ac76b6))
104
- * **hiccup-html:** add more elements, update readme ([5e3f8f1](https://github.com/thi-ng/umbrella/commit/5e3f8f1f70fd06aab5ab64683546d5febe16a0f4))
105
- * **hiccup-html:** import as new pkg ([5fffd6f](https://github.com/thi-ng/umbrella/commit/5fffd6fd641da4fad73802fb105a700620940ab3))
106
- * **hiccup-html:** re-add support for emmet style tags ([bb06dab](https://github.com/thi-ng/umbrella/commit/bb06dabe0ea2214a1bbef56db1875bbe0ae392bd))
80
+ - **hiccup-html:** add AttribVal & EventAttribVal ([469e297](https://github.com/thi-ng/umbrella/commit/469e29758d3801d8c5e56695246c438f4a6c9569))
81
+ - **hiccup-html:** add more elements & helpers ([68a9bb8](https://github.com/thi-ng/umbrella/commit/68a9bb89f901612e69e0c4ae972a8de2c7ac76b6))
82
+ - **hiccup-html:** add more elements, update readme ([5e3f8f1](https://github.com/thi-ng/umbrella/commit/5e3f8f1f70fd06aab5ab64683546d5febe16a0f4))
83
+ - **hiccup-html:** import as new pkg ([5fffd6f](https://github.com/thi-ng/umbrella/commit/5fffd6fd641da4fad73802fb105a700620940ab3))
84
+ - **hiccup-html:** re-add support for emmet style tags ([bb06dab](https://github.com/thi-ng/umbrella/commit/bb06dabe0ea2214a1bbef56db1875bbe0ae392bd))
package/README.md CHANGED
@@ -144,7 +144,7 @@ packages.
144
144
  of course, but will NOT be evaluated to obtain final attrib value
145
145
 
146
146
  (2) The
147
- [`IDeref`](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/api/deref.ts)
147
+ [`IDeref`](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/deref.ts)
148
148
  interface is implemented by various data structures in the
149
149
  thi.ng/umbrella eco system (most relevant:
150
150
  [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream),
@@ -172,15 +172,24 @@ welcome!
172
172
  yarn add @thi.ng/hiccup-html
173
173
  ```
174
174
 
175
+ ES module import:
176
+
175
177
  ```html
176
- // ES module
177
- <script type="module" src="https://unpkg.com/@thi.ng/hiccup-html?module" crossorigin></script>
178
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/hiccup-html"></script>
179
+ ```
180
+
181
+ [Skypack documentation](https://docs.skypack.dev/)
182
+
183
+ For Node.js REPL:
184
+
185
+ ```text
186
+ # with flag only for < v16
187
+ node --experimental-repl-await
178
188
 
179
- // UMD
180
- <script src="https://unpkg.com/@thi.ng/hiccup-html/lib/index.umd.js" crossorigin></script>
189
+ > const hiccupHtml = await import("@thi.ng/hiccup-html");
181
190
  ```
182
191
 
183
- Package sizes (gzipped, pre-treeshake): ESM: 1.45 KB / CJS: 1.86 KB / UMD: 1.76 KB
192
+ Package sizes (gzipped, pre-treeshake): ESM: 1.47 KB
184
193
 
185
194
  ## Dependencies
186
195
 
@@ -194,11 +203,15 @@ directory are using this package.
194
203
 
195
204
  A selection:
196
205
 
197
- | Screenshot | Description | Live demo | Source |
198
- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------- |
199
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/color-themes.png" width="240"/> | Probabilistic color theme generator | [Demo](https://demo.thi.ng/umbrella/color-themes/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/color-themes) |
200
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/parse-playground.png" width="240"/> | Parser grammar livecoding editor/playground & codegen | [Demo](https://demo.thi.ng/umbrella/parse-playground/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/parse-playground) |
201
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-sorting.png" width="240"/> | Interactive pixel sorting tool using thi.ng/color & thi.ng/pixel | [Demo](https://demo.thi.ng/umbrella/pixel-sorting/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-sorting) |
206
+ | Screenshot | Description | Live demo | Source |
207
+ |:------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:-------------------------------------------------------|:------------------------------------------------------------------------------------|
208
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/color-themes.png" width="240"/> | Probabilistic color theme generator | [Demo](https://demo.thi.ng/umbrella/color-themes/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/color-themes) |
209
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/dominant-colors) |
210
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/parse-playground.png" width="240"/> | Parser grammar livecoding editor/playground & codegen | [Demo](https://demo.thi.ng/umbrella/parse-playground/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/parse-playground) |
211
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-sorting.png" width="240"/> | Interactive pixel sorting tool using thi.ng/color & thi.ng/pixel | [Demo](https://demo.thi.ng/umbrella/pixel-sorting/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-sorting) |
212
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-dnd.png" width="240"/> | rdom drag & drop example | [Demo](https://demo.thi.ng/umbrella/rdom-dnd/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-dnd) |
213
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-lissajous.png" width="240"/> | rdom & hiccup-canvas interop test | [Demo](https://demo.thi.ng/umbrella/rdom-lissajous/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-lissajous) |
214
+ | | Full umbrella repo doc string search w/ paginated results | [Demo](https://demo.thi.ng/umbrella/rdom-search-docs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-search-docs) |
202
215
 
203
216
  ## API
204
217
 
@@ -282,7 +295,7 @@ The `AttribVal` type wrapper is used to allow for reactive attribute
282
295
  values (in
283
296
  [@thi.ng/rdom](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom))
284
297
  and [`IDeref`
285
- instances](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/api/deref.ts)
298
+ instances](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/deref.ts)
286
299
  when later providing attribute values to an element.
287
300
 
288
301
  #### Element creation
package/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Fn, IObjectOf, MaybeDeref, NumOrString } from "@thi.ng/api";
2
+ export declare type CDataContent = ["!CDATA", ...string[]];
2
3
  export declare type AttribVal<T> = MaybeDeref<T | undefined>;
3
4
  export declare type BooleanAttrib = AttribVal<boolean>;
4
5
  export declare type NumericAttrib = AttribVal<number>;
package/blocks.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { Attribs, AttribVal, BooleanAttrib, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs, StringAttrib } from "./api";
1
+ import type { Attribs, AttribVal, BooleanAttrib, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs, StringAttrib } from "./api.js";
2
2
  export interface BlockquoteAttribs extends Attribs {
3
3
  cite: StringAttrib;
4
4
  }
5
- export declare const blockquote: import("./def").ElementFactory<Partial<BlockquoteAttribs>, any>;
6
- export declare const div: import("./def").ElementFactory<Partial<Attribs>, any>, figure: import("./def").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def").ElementFactory<Partial<Attribs>, any>, para: import("./def").ElementFactory<Partial<Attribs>, any>, pre: import("./def").ElementFactory<Partial<Attribs>, any>, template: import("./def").ElementFactory<Partial<Attribs>, any>;
7
- export declare const hr: import("./def").ElementFactory<Partial<Attribs>, never>;
5
+ export declare const blockquote: import("./def.js").ElementFactory<Partial<BlockquoteAttribs>, any>;
6
+ export declare const div: import("./def.js").ElementFactory<Partial<Attribs>, any>, figure: import("./def.js").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def.js").ElementFactory<Partial<Attribs>, any>, para: import("./def.js").ElementFactory<Partial<Attribs>, any>, pre: import("./def.js").ElementFactory<Partial<Attribs>, any>, template: import("./def.js").ElementFactory<Partial<Attribs>, any>;
7
+ export declare const hr: import("./def.js").ElementFactory<Partial<Attribs>, never>;
8
8
  export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
9
9
  allow: StringAttrib;
10
10
  allowfullscreen: BooleanAttrib;
@@ -15,5 +15,5 @@ export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttr
15
15
  src: StringAttrib;
16
16
  srcdoc: StringAttrib;
17
17
  }
18
- export declare const iframe: import("./def").ElementFactory<Partial<IFrameAttribs>, any>;
18
+ export declare const iframe: import("./def.js").ElementFactory<Partial<IFrameAttribs>, any>;
19
19
  //# sourceMappingURL=blocks.d.ts.map
package/blocks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const blockquote = defElement("blockquote");
3
3
  export const [div, figure, figcaption, para, pre, template] = defElements([
4
4
  "div",
package/def.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Nullable } from "@thi.ng/api";
2
- import type { Attribs } from "./api";
2
+ import type { Attribs } from "./api.js";
3
3
  /**
4
4
  * Variadic element factory function. Takes an element specific attrib
5
5
  * object (or `null` if no user attribs are needed) and any number of
package/def.js CHANGED
@@ -12,7 +12,8 @@ export const defElement = (tag, baseAttribs) => (...args) => {
12
12
  const n = args.length;
13
13
  const attribs = n > 0
14
14
  ? baseAttribs
15
- ? Object.assign(Object.assign({}, baseAttribs), args[0]) : args[0]
15
+ ? { ...baseAttribs, ...args[0] }
16
+ : args[0]
16
17
  : baseAttribs || null;
17
18
  return n > 1 ? [$tag, attribs, ...args.slice(1)] : [$tag, attribs];
18
19
  };
package/forms.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { NumOrString } from "@thi.ng/api";
2
- import type { Attribs, AttribVal, BooleanAttrib, MultiStringAttrib, NumericAttrib, RelAttribs, StringAttrib } from "./api";
2
+ import type { Attribs, AttribVal, BooleanAttrib, MultiStringAttrib, NumericAttrib, RelAttribs, StringAttrib } from "./api.js";
3
3
  export interface FormAttribs extends RelAttribs {
4
4
  "accept-charset": MultiStringAttrib;
5
5
  action: StringAttrib;
@@ -9,14 +9,14 @@ export interface FormAttribs extends RelAttribs {
9
9
  novalidate: BooleanAttrib;
10
10
  target: StringAttrib;
11
11
  }
12
- export declare const form: import("./def").ElementFactory<Partial<FormAttribs>, any>;
12
+ export declare const form: import("./def.js").ElementFactory<Partial<FormAttribs>, any>;
13
13
  export interface FieldsetAttribs extends Attribs {
14
14
  disabled: BooleanAttrib;
15
15
  form: StringAttrib;
16
16
  name: StringAttrib;
17
17
  }
18
- export declare const fieldset: import("./def").ElementFactory<Partial<FieldsetAttribs>, any>;
19
- export declare const legend: import("./def").ElementFactory<Partial<Attribs>, any>;
18
+ export declare const fieldset: import("./def.js").ElementFactory<Partial<FieldsetAttribs>, any>;
19
+ export declare const legend: import("./def.js").ElementFactory<Partial<Attribs>, any>;
20
20
  export interface InputAttribs extends Attribs, FieldsetAttribs {
21
21
  autocomplete: StringAttrib;
22
22
  autofocus: BooleanAttrib;
@@ -57,39 +57,39 @@ export interface InputNumericAttribs extends InputAttribs {
57
57
  step: NumericAttrib;
58
58
  value: NumericAttrib;
59
59
  }
60
- export declare const button: import("./def").ElementFactory<Partial<InputAttribs>, any>;
61
- export declare const checkbox: import("./def").ElementFactory<Partial<InputCheckboxAttribs>, never>;
62
- export declare const radio: import("./def").ElementFactory<Partial<InputRadioAttribs>, never>;
63
- export declare const inputColor: import("./def").ElementFactory<Partial<InputAttribs>, never>;
64
- export declare const inputFile: import("./def").ElementFactory<Partial<InputFileAttribs>, never>;
65
- export declare const inputPass: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
66
- export declare const inputNumber: import("./def").ElementFactory<Partial<InputNumericAttribs>, never>;
67
- export declare const inputRange: import("./def").ElementFactory<Partial<InputNumericAttribs>, never>;
68
- export declare const inputSearch: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
69
- export declare const inputText: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
70
- export declare const textArea: import("./def").ElementFactory<Partial<TextAreaAttribs>, never>;
60
+ export declare const button: import("./def.js").ElementFactory<Partial<InputAttribs>, any>;
61
+ export declare const checkbox: import("./def.js").ElementFactory<Partial<InputCheckboxAttribs>, never>;
62
+ export declare const radio: import("./def.js").ElementFactory<Partial<InputRadioAttribs>, never>;
63
+ export declare const inputColor: import("./def.js").ElementFactory<Partial<InputAttribs>, never>;
64
+ export declare const inputFile: import("./def.js").ElementFactory<Partial<InputFileAttribs>, never>;
65
+ export declare const inputPass: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
66
+ export declare const inputNumber: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
67
+ export declare const inputRange: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
68
+ export declare const inputSearch: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
69
+ export declare const inputText: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
70
+ export declare const textArea: import("./def.js").ElementFactory<Partial<TextAreaAttribs>, never>;
71
71
  export interface OptionAttribs {
72
72
  disabled: BooleanAttrib;
73
73
  label: StringAttrib;
74
74
  selected: BooleanAttrib;
75
75
  value: AttribVal<NumOrString>;
76
76
  }
77
- export declare const option: import("./def").ElementFactory<Partial<OptionAttribs>, string>;
77
+ export declare const option: import("./def.js").ElementFactory<Partial<OptionAttribs>, string>;
78
78
  export interface OptGroupAttribs {
79
79
  disabled: BooleanAttrib;
80
80
  label: StringAttrib;
81
81
  }
82
- export declare const optGroup: import("./def").ElementFactory<Partial<OptGroupAttribs>, any>;
82
+ export declare const optGroup: import("./def.js").ElementFactory<Partial<OptGroupAttribs>, any>;
83
83
  export interface SelectAttribs extends InputAttribs {
84
84
  multiple: BooleanAttrib;
85
85
  size: NumericAttrib;
86
86
  }
87
- export declare const select: import("./def").ElementFactory<Partial<SelectAttribs>, any>;
87
+ export declare const select: import("./def.js").ElementFactory<Partial<SelectAttribs>, any>;
88
88
  export interface LabelAttribs extends Partial<Attribs> {
89
89
  for: StringAttrib;
90
90
  form?: StringAttrib;
91
91
  }
92
- export declare const label: import("./def").ElementFactory<LabelAttribs, any>;
92
+ export declare const label: import("./def.js").ElementFactory<LabelAttribs, any>;
93
93
  export interface MeterAttribs extends Attribs {
94
94
  min: NumericAttrib;
95
95
  max: NumericAttrib;
@@ -99,10 +99,10 @@ export interface MeterAttribs extends Attribs {
99
99
  value: NumericAttrib;
100
100
  form: StringAttrib;
101
101
  }
102
- export declare const meter: import("./def").ElementFactory<Partial<MeterAttribs>, any>;
102
+ export declare const meter: import("./def.js").ElementFactory<Partial<MeterAttribs>, any>;
103
103
  export interface ProgressAttribs extends Attribs {
104
104
  max: NumericAttrib;
105
105
  value: NumericAttrib;
106
106
  }
107
- export declare const progress: import("./def").ElementFactory<Partial<ProgressAttribs>, any>;
107
+ export declare const progress: import("./def.js").ElementFactory<Partial<ProgressAttribs>, any>;
108
108
  //# sourceMappingURL=forms.d.ts.map
package/forms.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement } from "./def";
1
+ import { defElement } from "./def.js";
2
2
  export const form = defElement("form");
3
3
  export const fieldset = defElement("fieldset");
4
4
  export const legend = defElement("legend");
package/head.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, ImportanceAttribs, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api";
2
- export declare const head: import("./def").ElementFactory<Partial<Attribs>, any>, title: import("./def").ElementFactory<Partial<Attribs>, any>;
1
+ import type { Attribs, AttribVal, BooleanAttrib, CDataContent, CORSAttribs, ImportanceAttribs, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api.js";
2
+ export declare const head: import("./def.js").ElementFactory<Partial<Attribs>, any>, title: import("./def.js").ElementFactory<Partial<Attribs>, any>;
3
3
  export interface BaseAttribs extends Attribs {
4
4
  href: StringAttrib;
5
5
  target: StringAttrib;
6
6
  }
7
- export declare const base: import("./def").ElementFactory<Partial<BaseAttribs>, never>;
7
+ export declare const base: import("./def.js").ElementFactory<Partial<BaseAttribs>, never>;
8
8
  export interface MetaAttribs extends Attribs {
9
9
  charset: StringAttrib;
10
10
  content: StringAttrib;
11
11
  "http-equiv": AttribVal<"content-language" | "content-security-policy" | "content-type" | "default-style" | "refresh" | "set-cookie" | "x-ua-compatible">;
12
12
  name: AttribVal<"application-name" | "author" | "color-scheme" | "creator" | "description" | "generator" | "googlebot" | "keywords" | "publisher" | "referrer" | "robots" | "theme-color" | "viewport">;
13
13
  }
14
- export declare const meta: import("./def").ElementFactory<Partial<MetaAttribs>, never>;
14
+ export declare const meta: import("./def.js").ElementFactory<Partial<MetaAttribs>, never>;
15
15
  export interface ViewportOpts {
16
16
  width: number;
17
17
  height: number;
@@ -37,14 +37,14 @@ export interface LinkAttribs extends RelAttribs, CORSAttribs, ImportanceAttribs,
37
37
  sizes: MultiStringAttrib;
38
38
  type: StringAttrib;
39
39
  }
40
- export declare const link: import("./def").ElementFactory<Partial<LinkAttribs>, never>;
40
+ export declare const link: import("./def.js").ElementFactory<Partial<LinkAttribs>, never>;
41
41
  export declare const linkCSS: (href: string) => [string, import("@thi.ng/api").Nullable<Partial<LinkAttribs>>, ...never[]];
42
42
  export interface StyleAttribs extends Attribs {
43
43
  media: StringAttrib;
44
44
  nonce: StringAttrib;
45
45
  type: StringAttrib;
46
46
  }
47
- export declare const style: import("./def").ElementFactory<Partial<StyleAttribs>, string>;
47
+ export declare const style: import("./def.js").ElementFactory<Partial<StyleAttribs>, string | CDataContent>;
48
48
  export interface ScriptAttribs extends Attribs, CORSAttribs, ReferrerAttribs {
49
49
  async: BooleanAttrib;
50
50
  defer: BooleanAttrib;
@@ -54,5 +54,5 @@ export interface ScriptAttribs extends Attribs, CORSAttribs, ReferrerAttribs {
54
54
  src: StringAttrib;
55
55
  type: StringAttrib;
56
56
  }
57
- export declare const script: import("./def").ElementFactory<Partial<ScriptAttribs>, string>;
57
+ export declare const script: import("./def.js").ElementFactory<Partial<ScriptAttribs>, string | CDataContent>;
58
58
  //# sourceMappingURL=head.d.ts.map
package/head.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const [head, title] = defElements(["head", "title"]);
3
3
  export const base = defElement("base");
4
4
  export const meta = defElement("meta");
@@ -28,5 +28,8 @@ export const metaUTF8 = () => meta({ charset: "utf-8" });
28
28
  export const metaXUA = () => meta({ "http-equiv": "x-ua-compatible", content: "IE=edge" });
29
29
  export const link = defElement("link");
30
30
  export const linkCSS = (href) => link({ href, rel: "stylesheet" });
31
- export const style = defElement("style");
31
+ export const style = defElement("style", {
32
+ type: "text/css",
33
+ });
34
+ style({}, ["!CDATA", "foo", "bar"]);
32
35
  export const script = defElement("script");
package/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export * from "./api";
2
- export * from "./def";
3
- export * from "./blocks";
4
- export * from "./forms";
5
- export * from "./head";
6
- export * from "./inline";
7
- export * from "./lists";
8
- export * from "./media";
9
- export * from "./sections";
10
- export * from "./table";
1
+ export * from "./api.js";
2
+ export * from "./def.js";
3
+ export * from "./blocks.js";
4
+ export * from "./forms.js";
5
+ export * from "./head.js";
6
+ export * from "./inline.js";
7
+ export * from "./lists.js";
8
+ export * from "./media.js";
9
+ export * from "./sections.js";
10
+ export * from "./table.js";
11
11
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./api";
2
- export * from "./def";
3
- export * from "./blocks";
4
- export * from "./forms";
5
- export * from "./head";
6
- export * from "./inline";
7
- export * from "./lists";
8
- export * from "./media";
9
- export * from "./sections";
10
- export * from "./table";
1
+ export * from "./api.js";
2
+ export * from "./def.js";
3
+ export * from "./blocks.js";
4
+ export * from "./forms.js";
5
+ export * from "./head.js";
6
+ export * from "./inline.js";
7
+ export * from "./lists.js";
8
+ export * from "./media.js";
9
+ export * from "./sections.js";
10
+ export * from "./table.js";
package/inline.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { NumOrString } from "@thi.ng/api";
2
- import type { Attribs, AttribVal, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api";
2
+ import type { Attribs, AttribVal, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api.js";
3
3
  interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
4
4
  download: StringAttrib;
5
5
  href: StringAttrib;
@@ -8,25 +8,25 @@ interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
8
8
  target: StringAttrib;
9
9
  type: StringAttrib;
10
10
  }
11
- export declare const anchor: import("./def").ElementFactory<Partial<AnchorAttribs>, any>;
12
- export declare const abbr: import("./def").ElementFactory<{
11
+ export declare const anchor: import("./def.js").ElementFactory<Partial<AnchorAttribs>, any>;
12
+ export declare const abbr: import("./def.js").ElementFactory<{
13
13
  title: StringAttrib;
14
14
  } & Partial<Attribs>, any>;
15
- export declare const br: import("./def").ElementFactory<never, never>;
16
- export declare const data: import("./def").ElementFactory<{
15
+ export declare const br: import("./def.js").ElementFactory<never, never>;
16
+ export declare const data: import("./def.js").ElementFactory<{
17
17
  value: AttribVal<NumOrString>;
18
18
  } & Partial<Attribs>, any>;
19
- export declare const quote: import("./def").ElementFactory<{
19
+ export declare const quote: import("./def.js").ElementFactory<{
20
20
  cite: StringAttrib;
21
21
  } & Partial<Attribs>, any>;
22
- export declare const time: import("./def").ElementFactory<{
22
+ export declare const time: import("./def.js").ElementFactory<{
23
23
  datetime: StringAttrib;
24
24
  } & Partial<Attribs>, any>;
25
- export declare const cite: import("./def").ElementFactory<Partial<Attribs>, any>, code: import("./def").ElementFactory<Partial<Attribs>, any>, em: import("./def").ElementFactory<Partial<Attribs>, any>, i: import("./def").ElementFactory<Partial<Attribs>, any>, kbd: import("./def").ElementFactory<Partial<Attribs>, any>, mark: import("./def").ElementFactory<Partial<Attribs>, any>, small: import("./def").ElementFactory<Partial<Attribs>, any>, span: import("./def").ElementFactory<Partial<Attribs>, any>, strong: import("./def").ElementFactory<Partial<Attribs>, any>, sub: import("./def").ElementFactory<Partial<Attribs>, any>, sup: import("./def").ElementFactory<Partial<Attribs>, any>;
25
+ export declare const cite: import("./def.js").ElementFactory<Partial<Attribs>, any>, code: import("./def.js").ElementFactory<Partial<Attribs>, any>, em: import("./def.js").ElementFactory<Partial<Attribs>, any>, i: import("./def.js").ElementFactory<Partial<Attribs>, any>, kbd: import("./def.js").ElementFactory<Partial<Attribs>, any>, mark: import("./def.js").ElementFactory<Partial<Attribs>, any>, small: import("./def.js").ElementFactory<Partial<Attribs>, any>, span: import("./def.js").ElementFactory<Partial<Attribs>, any>, strong: import("./def.js").ElementFactory<Partial<Attribs>, any>, sub: import("./def.js").ElementFactory<Partial<Attribs>, any>, sup: import("./def.js").ElementFactory<Partial<Attribs>, any>;
26
26
  export interface EditAttribs extends Attribs {
27
27
  cite: StringAttrib;
28
28
  datetime: StringAttrib;
29
29
  }
30
- export declare const del: import("./def").ElementFactory<Partial<EditAttribs>, any>, ins: import("./def").ElementFactory<Partial<EditAttribs>, any>;
30
+ export declare const del: import("./def.js").ElementFactory<Partial<EditAttribs>, any>, ins: import("./def.js").ElementFactory<Partial<EditAttribs>, any>;
31
31
  export {};
32
32
  //# sourceMappingURL=inline.d.ts.map
package/inline.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const anchor = defElement("a");
3
3
  export const abbr = defElement("abbr");
4
4
  export const br = defElement("br");
5
5
  export const data = defElement("data");
6
6
  export const quote = defElement("q");
7
7
  export const time = defElement("time");
8
- export const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup,] = defElements([
8
+ export const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup] = defElements([
9
9
  "cite",
10
10
  "code",
11
11
  "em",
package/lists.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Attribs, AttribVal, BooleanAttrib, NumericAttrib } from "./api";
1
+ import type { Attribs, AttribVal, BooleanAttrib, NumericAttrib } from "./api.js";
2
2
  export interface OrderedListAttribs extends Attribs {
3
3
  reversed: BooleanAttrib;
4
4
  start: NumericAttrib;
@@ -7,7 +7,7 @@ export interface OrderedListAttribs extends Attribs {
7
7
  export interface ListItemAttribs extends Attribs {
8
8
  value: NumericAttrib;
9
9
  }
10
- export declare const ol: import("./def").ElementFactory<Partial<OrderedListAttribs>, any>;
11
- export declare const li: import("./def").ElementFactory<Partial<ListItemAttribs>, any>;
12
- export declare const ul: import("./def").ElementFactory<Partial<Attribs>, any>, dl: import("./def").ElementFactory<Partial<Attribs>, any>, dt: import("./def").ElementFactory<Partial<Attribs>, any>, dd: import("./def").ElementFactory<Partial<Attribs>, any>, datalist: import("./def").ElementFactory<Partial<Attribs>, any>;
10
+ export declare const ol: import("./def.js").ElementFactory<Partial<OrderedListAttribs>, any>;
11
+ export declare const li: import("./def.js").ElementFactory<Partial<ListItemAttribs>, any>;
12
+ export declare const ul: import("./def.js").ElementFactory<Partial<Attribs>, any>, dl: import("./def.js").ElementFactory<Partial<Attribs>, any>, dt: import("./def.js").ElementFactory<Partial<Attribs>, any>, dd: import("./def.js").ElementFactory<Partial<Attribs>, any>, datalist: import("./def.js").ElementFactory<Partial<Attribs>, any>;
13
13
  //# sourceMappingURL=lists.d.ts.map
package/lists.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const ol = defElement("ol");
3
3
  export const li = defElement("li");
4
4
  export const [ul, dl, dt, dd, datalist] = defElements([
package/media.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api";
1
+ import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
2
2
  export interface CanvasAttribs extends Attribs, DimensionAttribs {
3
3
  }
4
- export declare const canvas: import("./def").ElementFactory<Partial<CanvasAttribs>, any>;
4
+ export declare const canvas: import("./def.js").ElementFactory<Partial<CanvasAttribs>, any>;
5
5
  export interface ImageAttribs extends Attribs, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
6
6
  alt: StringAttrib;
7
7
  decoding: AttribVal<"sync" | "async" | "auto">;
@@ -11,8 +11,8 @@ export interface ImageAttribs extends Attribs, CORSAttribs, DimensionAttribs, Im
11
11
  srcset: MultiStringAttrib;
12
12
  usemap: BooleanAttrib;
13
13
  }
14
- export declare const img: import("./def").ElementFactory<Partial<ImageAttribs>, never>;
15
- export declare const picture: import("./def").ElementFactory<Partial<Attribs>, any>;
14
+ export declare const img: import("./def.js").ElementFactory<Partial<ImageAttribs>, never>;
15
+ export declare const picture: import("./def.js").ElementFactory<Partial<Attribs>, any>;
16
16
  export interface SourceAttribs extends Attribs {
17
17
  media: StringAttrib;
18
18
  src: StringAttrib;
@@ -20,7 +20,7 @@ export interface SourceAttribs extends Attribs {
20
20
  srcset: MultiStringAttrib;
21
21
  type: StringAttrib;
22
22
  }
23
- export declare const source: import("./def").ElementFactory<Partial<SourceAttribs>, never>;
23
+ export declare const source: import("./def.js").ElementFactory<Partial<SourceAttribs>, never>;
24
24
  export interface AudioAttribs extends Attribs, CORSAttribs {
25
25
  autoplay: BooleanAttrib;
26
26
  controls: BooleanAttrib;
@@ -30,7 +30,7 @@ export interface AudioAttribs extends Attribs, CORSAttribs {
30
30
  preload: AttribVal<"none" | "preload" | "auto">;
31
31
  src: StringAttrib;
32
32
  }
33
- export declare const audio: import("./def").ElementFactory<Partial<AudioAttribs>, any>;
33
+ export declare const audio: import("./def.js").ElementFactory<Partial<AudioAttribs>, any>;
34
34
  export interface VideoAttribs extends AudioAttribs, DimensionAttribs {
35
35
  autoPictureInPicture: BooleanAttrib;
36
36
  controlslist: AttribVal<"nodownload" | "nofullscreen" | "noremoteplayback">;
@@ -38,7 +38,7 @@ export interface VideoAttribs extends AudioAttribs, DimensionAttribs {
38
38
  playsinline: BooleanAttrib;
39
39
  poster: StringAttrib;
40
40
  }
41
- export declare const video: import("./def").ElementFactory<Partial<VideoAttribs>, any>;
41
+ export declare const video: import("./def.js").ElementFactory<Partial<VideoAttribs>, any>;
42
42
  export interface TrackAttribs extends Attribs {
43
43
  default: BooleanAttrib;
44
44
  kind: AttribVal<"captions" | "chapters" | "descriptions" | "metadata" | "subtitles">;
@@ -46,5 +46,5 @@ export interface TrackAttribs extends Attribs {
46
46
  src: StringAttrib;
47
47
  srclang: StringAttrib;
48
48
  }
49
- export declare const track: import("./def").ElementFactory<Partial<TrackAttribs>, any>;
49
+ export declare const track: import("./def.js").ElementFactory<Partial<TrackAttribs>, any>;
50
50
  //# sourceMappingURL=media.d.ts.map
package/media.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement } from "./def";
1
+ import { defElement } from "./def.js";
2
2
  export const canvas = defElement("canvas");
3
3
  export const img = defElement("img");
4
4
  export const picture = defElement("picture");
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "1.0.3",
3
+ "version": "2.0.1",
4
4
  "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
5
+ "type": "module",
5
6
  "module": "./index.js",
6
- "main": "./lib/index.js",
7
- "umd:main": "./lib/index.umd.js",
8
7
  "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
@@ -24,26 +24,21 @@
24
24
  "author": "Karsten Schmidt <k+npm@thi.ng>",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
- "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module",
28
- "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all",
29
- "build:es6": "tsc --declaration",
30
- "build:test": "rimraf build && tsc -p test/tsconfig.json",
31
- "test": "mocha test",
32
- "cover": "nyc mocha test && nyc report --reporter=lcov",
33
- "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib",
34
- "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf *.js *.d.ts *.map doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
35
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
36
- "doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts",
37
- "pub": "yarn build:release && yarn publish --access public"
31
+ "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
+ "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
+ "pub": "yarn build && yarn publish --access public",
34
+ "test": "testament test"
38
35
  },
39
36
  "dependencies": {
40
- "@thi.ng/api": "^7.1.9"
37
+ "@thi.ng/api": "^8.0.1"
38
+ },
39
+ "devDependencies": {
40
+ "@thi.ng/testament": "^0.1.1"
41
41
  },
42
- "files": [
43
- "*.js",
44
- "*.d.ts",
45
- "lib"
46
- ],
47
42
  "keywords": [
48
43
  "browser",
49
44
  "component",
@@ -59,7 +54,48 @@
59
54
  "publishConfig": {
60
55
  "access": "public"
61
56
  },
62
- "sideEffects": false,
57
+ "engines": {
58
+ "node": ">=12.7"
59
+ },
60
+ "files": [
61
+ "*.js",
62
+ "*.d.ts"
63
+ ],
64
+ "exports": {
65
+ ".": {
66
+ "import": "./index.js"
67
+ },
68
+ "./api": {
69
+ "import": "./api.js"
70
+ },
71
+ "./blocks": {
72
+ "import": "./blocks.js"
73
+ },
74
+ "./def": {
75
+ "import": "./def.js"
76
+ },
77
+ "./forms": {
78
+ "import": "./forms.js"
79
+ },
80
+ "./head": {
81
+ "import": "./head.js"
82
+ },
83
+ "./inline": {
84
+ "import": "./inline.js"
85
+ },
86
+ "./lists": {
87
+ "import": "./lists.js"
88
+ },
89
+ "./media": {
90
+ "import": "./media.js"
91
+ },
92
+ "./sections": {
93
+ "import": "./sections.js"
94
+ },
95
+ "./table": {
96
+ "import": "./table.js"
97
+ }
98
+ },
63
99
  "thi.ng": {
64
100
  "parent": "@thi.ng/hiccup",
65
101
  "related": [
@@ -69,5 +105,5 @@
69
105
  ],
70
106
  "year": 2020
71
107
  },
72
- "gitHead": "538019e9d8ca6c5fee4754af93ad454c0674dc72"
108
+ "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
73
109
  }
package/sections.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import type { Attribs, EventAttribs, StringAttrib } from "./api";
1
+ import type { Attribs, EventAttribs, StringAttrib } from "./api.js";
2
2
  export interface HtmlAttribs extends Attribs {
3
3
  xmlns: StringAttrib;
4
4
  }
5
- export declare const html: import("./def").ElementFactory<Partial<HtmlAttribs>, any>;
5
+ export declare const html: import("./def.js").ElementFactory<Partial<HtmlAttribs>, any>;
6
6
  export declare type BodyEventAttribs = EventAttribs<"onafterprint" | "onbeforeprint" | "onbeforeunload" | "onerror" | "onhashchange" | "onlanguagechange" | "onload" | "onmessage" | "onoffline" | "ononline" | "onpopstate" | "onredo" | "onstorage" | "onundo" | "onunload", Event>;
7
7
  export interface BodyAttribs extends Attribs, BodyEventAttribs {
8
8
  }
9
- export declare const body: import("./def").ElementFactory<Partial<BodyAttribs>, any>;
10
- export declare const address: import("./def").ElementFactory<Partial<Attribs>, any>, article: import("./def").ElementFactory<Partial<Attribs>, any>, aside: import("./def").ElementFactory<Partial<Attribs>, any>, footer: import("./def").ElementFactory<Partial<Attribs>, any>, header: import("./def").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def").ElementFactory<Partial<Attribs>, any>, main: import("./def").ElementFactory<Partial<Attribs>, any>, nav: import("./def").ElementFactory<Partial<Attribs>, any>, noscript: import("./def").ElementFactory<Partial<Attribs>, any>, section: import("./def").ElementFactory<Partial<Attribs>, any>;
11
- export declare const h1: import("./def").ElementFactory<Partial<Attribs>, any>, h2: import("./def").ElementFactory<Partial<Attribs>, any>, h3: import("./def").ElementFactory<Partial<Attribs>, any>, h4: import("./def").ElementFactory<Partial<Attribs>, any>, h5: import("./def").ElementFactory<Partial<Attribs>, any>, h6: import("./def").ElementFactory<Partial<Attribs>, any>;
9
+ export declare const body: import("./def.js").ElementFactory<Partial<BodyAttribs>, any>;
10
+ export declare const address: import("./def.js").ElementFactory<Partial<Attribs>, any>, article: import("./def.js").ElementFactory<Partial<Attribs>, any>, aside: import("./def.js").ElementFactory<Partial<Attribs>, any>, footer: import("./def.js").ElementFactory<Partial<Attribs>, any>, header: import("./def.js").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def.js").ElementFactory<Partial<Attribs>, any>, main: import("./def.js").ElementFactory<Partial<Attribs>, any>, nav: import("./def.js").ElementFactory<Partial<Attribs>, any>, noscript: import("./def.js").ElementFactory<Partial<Attribs>, any>, section: import("./def.js").ElementFactory<Partial<Attribs>, any>;
11
+ export declare const h1: import("./def.js").ElementFactory<Partial<Attribs>, any>, h2: import("./def.js").ElementFactory<Partial<Attribs>, any>, h3: import("./def.js").ElementFactory<Partial<Attribs>, any>, h4: import("./def.js").ElementFactory<Partial<Attribs>, any>, h5: import("./def.js").ElementFactory<Partial<Attribs>, any>, h6: import("./def.js").ElementFactory<Partial<Attribs>, any>;
12
12
  //# sourceMappingURL=sections.d.ts.map
package/sections.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const html = defElement("html");
3
3
  export const body = defElement("body");
4
4
  export const [address, article, aside, footer, header, hgroup, main, nav, noscript, section,] = defElements([
package/table.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api";
2
- export declare const table: import("./def").ElementFactory<Partial<Attribs>, any>, tbody: import("./def").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def").ElementFactory<Partial<Attribs>, any>, thead: import("./def").ElementFactory<Partial<Attribs>, any>, tr: import("./def").ElementFactory<Partial<Attribs>, any>, caption: import("./def").ElementFactory<Partial<Attribs>, any>;
1
+ import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api.js";
2
+ export declare const table: import("./def.js").ElementFactory<Partial<Attribs>, any>, tbody: import("./def.js").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def.js").ElementFactory<Partial<Attribs>, any>, thead: import("./def.js").ElementFactory<Partial<Attribs>, any>, tr: import("./def.js").ElementFactory<Partial<Attribs>, any>, caption: import("./def.js").ElementFactory<Partial<Attribs>, any>;
3
3
  export interface TableCellAttribs extends Attribs {
4
4
  colspan: NumericAttrib;
5
5
  headers: MultiStringAttrib;
6
6
  rowspan: NumericAttrib;
7
7
  }
8
- export declare const td: import("./def").ElementFactory<Partial<TableCellAttribs>, any>;
8
+ export declare const td: import("./def.js").ElementFactory<Partial<TableCellAttribs>, any>;
9
9
  export interface TableCellHeaderAttribs extends TableCellAttribs {
10
10
  scope: AttribVal<"auto" | "col" | "colgroup" | "row" | "rowgroup">;
11
11
  }
12
- export declare const th: import("./def").ElementFactory<Partial<TableCellHeaderAttribs>, any>;
12
+ export declare const th: import("./def.js").ElementFactory<Partial<TableCellHeaderAttribs>, any>;
13
13
  export interface ColAttribs extends Attribs {
14
14
  span: NumericAttrib;
15
15
  }
16
- export declare const col: import("./def").ElementFactory<Partial<ColAttribs>, any>, colgroup: import("./def").ElementFactory<Partial<ColAttribs>, any>;
16
+ export declare const col: import("./def.js").ElementFactory<Partial<ColAttribs>, any>, colgroup: import("./def.js").ElementFactory<Partial<ColAttribs>, any>;
17
17
  //# sourceMappingURL=table.d.ts.map
package/table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defElement, defElements } from "./def";
1
+ import { defElement, defElements } from "./def.js";
2
2
  export const [table, tbody, tfoot, thead, tr, caption] = defElements([
3
3
  "table",
4
4
  "tbody",
package/lib/index.js DELETED
@@ -1,270 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const defElement = (tag, baseAttribs) => (...args) => {
6
- const $tag = typeof args[0] === "string" ? tag + args.shift() : tag;
7
- const n = args.length;
8
- const attribs = n > 0
9
- ? baseAttribs
10
- ? Object.assign(Object.assign({}, baseAttribs), args[0]) : args[0]
11
- : baseAttribs || null;
12
- return n > 1 ? [$tag, attribs, ...args.slice(1)] : [$tag, attribs];
13
- };
14
- const defElements = (tags) => tags.map((t) => defElement(t));
15
-
16
- const blockquote = defElement("blockquote");
17
- const [div, figure, figcaption, para, pre, template] = defElements([
18
- "div",
19
- "figure",
20
- "figcaption",
21
- "p",
22
- "pre",
23
- "template",
24
- ]);
25
- const hr = defElement("hr");
26
- const iframe = defElement("iframe");
27
-
28
- const form = defElement("form");
29
- const fieldset = defElement("fieldset");
30
- const legend = defElement("legend");
31
- const button = defElement("button");
32
- const checkbox = defElement("input", {
33
- type: "checkbox",
34
- });
35
- const radio = defElement("input", {
36
- type: "radio",
37
- });
38
- const inputColor = defElement("input", {
39
- type: "color",
40
- });
41
- const inputFile = defElement("input", {
42
- type: "file",
43
- });
44
- const inputPass = defElement("input", {
45
- type: "password",
46
- });
47
- const inputNumber = defElement("input", { type: "number" });
48
- const inputRange = defElement("input", { type: "range" });
49
- const inputSearch = defElement("input", {
50
- type: "search",
51
- });
52
- const inputText = defElement("input", {
53
- type: "text",
54
- });
55
- const textArea = defElement("textarea");
56
- const option = defElement("option");
57
- const optGroup = defElement("optgroup");
58
- const select = defElement("select");
59
- const label = defElement("label");
60
- const meter = defElement("meter");
61
- const progress = defElement("progress");
62
-
63
- const [head, title] = defElements(["head", "title"]);
64
- const base = defElement("base");
65
- const meta = defElement("meta");
66
- const metaViewport = (opts = {}) => meta({
67
- name: "viewport",
68
- content: [
69
- opts.width &&
70
- `width=${opts.width < 0 ? "device-width" : opts.width}`,
71
- opts.height &&
72
- `width=${opts.height < 0 ? "device-height" : opts.height}`,
73
- `initial-scale=${opts.init || 1}`,
74
- opts.min && `minimum-scale=${opts.min}`,
75
- opts.max && `maximum-scale=${opts.max}`,
76
- `user-scalable=${opts.user !== false ? "yes" : "no"}`,
77
- opts.fit != null && `viewport-fit=${opts.fit}`,
78
- ]
79
- .filter((x) => !!x)
80
- .join(","),
81
- });
82
- const metaRobots = (type) => meta({ name: "robots", content: type });
83
- const metaReferrer = (type) => meta({ name: "referrer", content: type });
84
- const metaRefresh = (delay, url) => meta({
85
- "http-equiv": "refresh",
86
- content: url ? `${delay}; url=${url}` : String(delay),
87
- });
88
- const metaUTF8 = () => meta({ charset: "utf-8" });
89
- const metaXUA = () => meta({ "http-equiv": "x-ua-compatible", content: "IE=edge" });
90
- const link = defElement("link");
91
- const linkCSS = (href) => link({ href, rel: "stylesheet" });
92
- const style = defElement("style");
93
- const script = defElement("script");
94
-
95
- const anchor = defElement("a");
96
- const abbr = defElement("abbr");
97
- const br = defElement("br");
98
- const data = defElement("data");
99
- const quote = defElement("q");
100
- const time = defElement("time");
101
- const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup,] = defElements([
102
- "cite",
103
- "code",
104
- "em",
105
- "i",
106
- "kbd",
107
- "mark",
108
- "small",
109
- "span",
110
- "strong",
111
- "sub",
112
- "sup",
113
- ]);
114
- const [del, ins] = defElements(["del", "ins"]);
115
-
116
- const ol = defElement("ol");
117
- const li = defElement("li");
118
- const [ul, dl, dt, dd, datalist] = defElements([
119
- "ul",
120
- "dl",
121
- "dt",
122
- "dd",
123
- "datalist",
124
- ]);
125
-
126
- const canvas = defElement("canvas");
127
- const img = defElement("img");
128
- const picture = defElement("picture");
129
- const source = defElement("source");
130
- const audio = defElement("audio");
131
- const video = defElement("video");
132
- const track = defElement("track");
133
-
134
- const html = defElement("html");
135
- const body = defElement("body");
136
- const [address, article, aside, footer, header, hgroup, main, nav, noscript, section,] = defElements([
137
- "address",
138
- "article",
139
- "aside",
140
- "footer",
141
- "header",
142
- "hgroup",
143
- "main",
144
- "nav",
145
- "noscript",
146
- "section",
147
- ]);
148
- const [h1, h2, h3, h4, h5, h6] = [1, 2, 3, 4, 5, 6].map((i) => defElement("h" + i));
149
-
150
- const [table, tbody, tfoot, thead, tr, caption] = defElements([
151
- "table",
152
- "tbody",
153
- "tfoot",
154
- "thead",
155
- "tr",
156
- "caption",
157
- ]);
158
- const td = defElement("td");
159
- const th = defElement("th");
160
- const [col, colgroup] = defElements([
161
- "col",
162
- "colgroup",
163
- ]);
164
-
165
- exports.abbr = abbr;
166
- exports.address = address;
167
- exports.anchor = anchor;
168
- exports.article = article;
169
- exports.aside = aside;
170
- exports.audio = audio;
171
- exports.base = base;
172
- exports.blockquote = blockquote;
173
- exports.body = body;
174
- exports.br = br;
175
- exports.button = button;
176
- exports.canvas = canvas;
177
- exports.caption = caption;
178
- exports.checkbox = checkbox;
179
- exports.cite = cite;
180
- exports.code = code;
181
- exports.col = col;
182
- exports.colgroup = colgroup;
183
- exports.data = data;
184
- exports.datalist = datalist;
185
- exports.dd = dd;
186
- exports.defElement = defElement;
187
- exports.defElements = defElements;
188
- exports.del = del;
189
- exports.div = div;
190
- exports.dl = dl;
191
- exports.dt = dt;
192
- exports.em = em;
193
- exports.fieldset = fieldset;
194
- exports.figcaption = figcaption;
195
- exports.figure = figure;
196
- exports.footer = footer;
197
- exports.form = form;
198
- exports.h1 = h1;
199
- exports.h2 = h2;
200
- exports.h3 = h3;
201
- exports.h4 = h4;
202
- exports.h5 = h5;
203
- exports.h6 = h6;
204
- exports.head = head;
205
- exports.header = header;
206
- exports.hgroup = hgroup;
207
- exports.hr = hr;
208
- exports.html = html;
209
- exports.i = i;
210
- exports.iframe = iframe;
211
- exports.img = img;
212
- exports.inputColor = inputColor;
213
- exports.inputFile = inputFile;
214
- exports.inputNumber = inputNumber;
215
- exports.inputPass = inputPass;
216
- exports.inputRange = inputRange;
217
- exports.inputSearch = inputSearch;
218
- exports.inputText = inputText;
219
- exports.ins = ins;
220
- exports.kbd = kbd;
221
- exports.label = label;
222
- exports.legend = legend;
223
- exports.li = li;
224
- exports.link = link;
225
- exports.linkCSS = linkCSS;
226
- exports.main = main;
227
- exports.mark = mark;
228
- exports.meta = meta;
229
- exports.metaReferrer = metaReferrer;
230
- exports.metaRefresh = metaRefresh;
231
- exports.metaRobots = metaRobots;
232
- exports.metaUTF8 = metaUTF8;
233
- exports.metaViewport = metaViewport;
234
- exports.metaXUA = metaXUA;
235
- exports.meter = meter;
236
- exports.nav = nav;
237
- exports.noscript = noscript;
238
- exports.ol = ol;
239
- exports.optGroup = optGroup;
240
- exports.option = option;
241
- exports.para = para;
242
- exports.picture = picture;
243
- exports.pre = pre;
244
- exports.progress = progress;
245
- exports.quote = quote;
246
- exports.radio = radio;
247
- exports.script = script;
248
- exports.section = section;
249
- exports.select = select;
250
- exports.small = small;
251
- exports.source = source;
252
- exports.span = span;
253
- exports.strong = strong;
254
- exports.style = style;
255
- exports.sub = sub;
256
- exports.sup = sup;
257
- exports.table = table;
258
- exports.tbody = tbody;
259
- exports.td = td;
260
- exports.template = template;
261
- exports.textArea = textArea;
262
- exports.tfoot = tfoot;
263
- exports.th = th;
264
- exports.thead = thead;
265
- exports.time = time;
266
- exports.title = title;
267
- exports.tr = tr;
268
- exports.track = track;
269
- exports.ul = ul;
270
- exports.video = video;
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../def.js","../blocks.js","../forms.js","../head.js","../inline.js","../lists.js","../media.js","../sections.js","../table.js"],"sourcesContent":null,"names":[],"mappings":";;;;AASY,MAAC,UAAU,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,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;AAC5G,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,OAAO;AACX,IAAI,QAAQ;AACZ,IAAI,QAAQ;AACZ,IAAI,QAAQ;AACZ,IAAI,MAAM;AACV,IAAI,KAAK;AACT,IAAI,UAAU;AACd,IAAI,SAAS;AACb,CAAC,EAAE;AACS,MAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,GAAG,GAAG,CAAC,CAAC;;ACd7E,MAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC;AACrE,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,IAAI;AACR,IAAI,SAAS;AACb,CAAC,EAAE;AACS,MAAC,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE;AACvB,MAAC,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE;AACvB,MAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,WAAW,CAAC;AAC3C,IAAI,KAAK;AACT,IAAI,UAAU;AACd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.umd.js DELETED
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.hiccupHtml={}))}(this,(function(e){"use strict";const t=(e,t)=>(...i)=>{const o="string"==typeof i[0]?e+i.shift():e,a=i.length,n=a>0?t?Object.assign(Object.assign({},t),i[0]):i[0]:t||null;return a>1?[o,n,...i.slice(1)]:[o,n]},i=e=>e.map((e=>t(e))),o=t("blockquote"),[a,n,r,s,l,p]=i(["div","figure","figcaption","p","pre","template"]),d=t("hr"),c=t("iframe"),u=t("form"),h=t("fieldset"),m=t("legend"),f=t("button"),b=t("input",{type:"checkbox"}),g=t("input",{type:"radio"}),y=t("input",{type:"color"}),v=t("input",{type:"file"}),k=t("input",{type:"password"}),x=t("input",{type:"number"}),w=t("input",{type:"range"}),$=t("input",{type:"search"}),q=t("input",{type:"text"}),j=t("textarea"),R=t("option"),S=t("optgroup"),T=t("select"),E=t("label"),O=t("meter"),A=t("progress"),[C,F]=i(["head","title"]),P=t("base"),U=t("meta"),_=t("link"),G=t("style"),H=t("script"),I=t("a"),M=t("abbr"),N=t("br"),V=t("data"),X=t("q"),z=t("time"),[B,D,J,K,L,Q,W,Y,Z,ee,te]=i(["cite","code","em","i","kbd","mark","small","span","strong","sub","sup"]),[ie,oe]=i(["del","ins"]),ae=t("ol"),ne=t("li"),[re,se,le,pe,de]=i(["ul","dl","dt","dd","datalist"]),ce=t("canvas"),ue=t("img"),he=t("picture"),me=t("source"),fe=t("audio"),be=t("video"),ge=t("track"),ye=t("html"),ve=t("body"),[ke,xe,we,$e,qe,je,Re,Se,Te,Ee]=i(["address","article","aside","footer","header","hgroup","main","nav","noscript","section"]),[Oe,Ae,Ce,Fe,Pe,Ue]=[1,2,3,4,5,6].map((e=>t("h"+e))),[_e,Ge,He,Ie,Me,Ne]=i(["table","tbody","tfoot","thead","tr","caption"]),Ve=t("td"),Xe=t("th"),[ze,Be]=i(["col","colgroup"]);e.abbr=M,e.address=ke,e.anchor=I,e.article=xe,e.aside=we,e.audio=fe,e.base=P,e.blockquote=o,e.body=ve,e.br=N,e.button=f,e.canvas=ce,e.caption=Ne,e.checkbox=b,e.cite=B,e.code=D,e.col=ze,e.colgroup=Be,e.data=V,e.datalist=de,e.dd=pe,e.defElement=t,e.defElements=i,e.del=ie,e.div=a,e.dl=se,e.dt=le,e.em=J,e.fieldset=h,e.figcaption=r,e.figure=n,e.footer=$e,e.form=u,e.h1=Oe,e.h2=Ae,e.h3=Ce,e.h4=Fe,e.h5=Pe,e.h6=Ue,e.head=C,e.header=qe,e.hgroup=je,e.hr=d,e.html=ye,e.i=K,e.iframe=c,e.img=ue,e.inputColor=y,e.inputFile=v,e.inputNumber=x,e.inputPass=k,e.inputRange=w,e.inputSearch=$,e.inputText=q,e.ins=oe,e.kbd=L,e.label=E,e.legend=m,e.li=ne,e.link=_,e.linkCSS=e=>_({href:e,rel:"stylesheet"}),e.main=Re,e.mark=Q,e.meta=U,e.metaReferrer=e=>U({name:"referrer",content:e}),e.metaRefresh=(e,t)=>U({"http-equiv":"refresh",content:t?`${e}; url=${t}`:String(e)}),e.metaRobots=e=>U({name:"robots",content:e}),e.metaUTF8=()=>U({charset:"utf-8"}),e.metaViewport=(e={})=>U({name:"viewport",content:[e.width&&`width=${e.width<0?"device-width":e.width}`,e.height&&`width=${e.height<0?"device-height":e.height}`,`initial-scale=${e.init||1}`,e.min&&`minimum-scale=${e.min}`,e.max&&`maximum-scale=${e.max}`,"user-scalable="+(!1!==e.user?"yes":"no"),null!=e.fit&&`viewport-fit=${e.fit}`].filter((e=>!!e)).join(",")}),e.metaXUA=()=>U({"http-equiv":"x-ua-compatible",content:"IE=edge"}),e.meter=O,e.nav=Se,e.noscript=Te,e.ol=ae,e.optGroup=S,e.option=R,e.para=s,e.picture=he,e.pre=l,e.progress=A,e.quote=X,e.radio=g,e.script=H,e.section=Ee,e.select=T,e.small=W,e.source=me,e.span=Y,e.strong=Z,e.style=G,e.sub=ee,e.sup=te,e.table=_e,e.tbody=Ge,e.td=Ve,e.template=p,e.textArea=j,e.tfoot=He,e.th=Xe,e.thead=Ie,e.time=z,e.title=F,e.tr=Me,e.track=ge,e.ul=re,e.video=be,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../def.js","../blocks.js","../forms.js","../head.js","../inline.js","../lists.js","../media.js","../sections.js","../table.js"],"sourcesContent":null,"names":[],"mappings":";;;;;;AASY,UAAC,UAAU,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,CAAC,GAAG,IAAI,KAAK;IAC7D,IAAI,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC;IACxE,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1B,IAAI,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC;IACzB,UAAU,WAAW;IACrB,cAAc,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9E,UAAU,WAAW,IAAI,IAAI,CAAC;IAC9B,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACvE,EAAE;AAIU,UAAC,WAAW,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;;ACpBtD,UAAC,UAAU,GAAG,UAAU,CAAC,YAAY,EAAE;AACvC,UAAC,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,W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