@thi.ng/hiccup 3.6.22 → 4.0.3

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
- ## [3.6.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.21...@thi.ng/hiccup@3.6.22) (2021-09-03)
6
+ ## [4.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.0.2...@thi.ng/hiccup@4.0.3) (2021-10-15)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/hiccup
9
9
 
@@ -11,182 +11,192 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [3.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.8...@thi.ng/hiccup@3.6.0) (2020-09-13)
14
+ ## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.0.1...@thi.ng/hiccup@4.0.2) (2021-10-15)
15
15
 
16
+ **Note:** Version bump only for package @thi.ng/hiccup
16
17
 
17
- ### Features
18
18
 
19
- * **hiccup:** add CDATA support, update void tag handling ([5989427](https://github.com/thi-ng/umbrella/commit/59894274cffff6c9776e0edc366005ff1da14139))
20
19
 
21
20
 
22
21
 
22
+ ## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.0.0...@thi.ng/hiccup@4.0.1) (2021-10-13)
23
23
 
24
+ **Note:** Version bump only for package @thi.ng/hiccup
24
25
 
25
- # [3.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.4.0...@thi.ng/hiccup@3.5.0) (2020-07-02)
26
26
 
27
27
 
28
- ### Features
29
28
 
30
- * **hiccup:** add RDFa `prefix` attrib handling, add tests ([24a7748](https://github.com/thi-ng/umbrella/commit/24a7748ddb35632567175d3055f90b41d353e219))
31
- * **hiccup:** remove obsolete SVG/XLINK urls ([aa34be7](https://github.com/thi-ng/umbrella/commit/aa34be7bedfeae5a4d203aaec0d8d94ed43c07f2))
32
29
 
30
+ # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.22...@thi.ng/hiccup@4.0.0) (2021-10-12)
33
31
 
34
32
 
33
+ ### Build System
35
34
 
35
+ * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
36
36
 
37
- # [3.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.3.0...@thi.ng/hiccup@3.4.0) (2020-06-28)
38
37
 
38
+ ### BREAKING CHANGES
39
39
 
40
- ### Features
40
+ * discontinue CommonJS & UMD versions
41
41
 
42
- * **hiccup:** update deps & attrib handling ([09ba171](https://github.com/thi-ng/umbrella/commit/09ba17165e89202fdc48b095ee1e62f65adbcad4))
42
+ - only ESM modules will be published from now on
43
+ - CJS obsolete due to ESM support in recent versions of node:
44
+ - i.e. launch NodeJS via:
45
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
+ - in the node REPL use `await import(...)` instead of `require()`
47
+ - UMD obsolete due to widespread browser support for ESM
43
48
 
49
+ Also:
50
+ - normalize/restructure/reorg all package.json files
51
+ - cleanup all build scripts, remove obsolete
52
+ - switch from mocha to @thi.ng/testament for all tests
44
53
 
45
54
 
46
55
 
47
56
 
48
- # [3.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.26...@thi.ng/hiccup@3.3.0) (2020-06-24)
49
57
 
50
58
 
51
- ### Features
59
+ # [3.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.8...@thi.ng/hiccup@3.6.0) (2020-09-13)
52
60
 
53
- * **hiccup:** support array attrib values, add tests ([1c4ef8a](https://github.com/thi-ng/umbrella/commit/1c4ef8aa6464dee9e9fed39e8213e52ed67e2ac1))
54
- * **hiccup:** update `accept` attrib handling ([fabf447](https://github.com/thi-ng/umbrella/commit/fabf447d5ef7f666f16ee11d46188496121766d2))
61
+ ### Features
55
62
 
63
+ - **hiccup:** add CDATA support, update void tag handling ([5989427](https://github.com/thi-ng/umbrella/commit/59894274cffff6c9776e0edc366005ff1da14139))
56
64
 
65
+ # [3.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.4.0...@thi.ng/hiccup@3.5.0) (2020-07-02)
57
66
 
67
+ ### Features
58
68
 
69
+ - **hiccup:** add RDFa `prefix` attrib handling, add tests ([24a7748](https://github.com/thi-ng/umbrella/commit/24a7748ddb35632567175d3055f90b41d353e219))
70
+ - **hiccup:** remove obsolete SVG/XLINK urls ([aa34be7](https://github.com/thi-ng/umbrella/commit/aa34be7bedfeae5a4d203aaec0d8d94ed43c07f2))
59
71
 
60
- ## [3.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.3...@thi.ng/hiccup@3.2.4) (2019-08-21)
72
+ # [3.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.3.0...@thi.ng/hiccup@3.4.0) (2020-06-28)
61
73
 
62
- ### Bug Fixes
74
+ ### Features
63
75
 
64
- * **hiccup:** update/rename regexes & tag maps ([6dba80d](https://github.com/thi-ng/umbrella/commit/6dba80d))
76
+ - **hiccup:** update deps & attrib handling ([09ba171](https://github.com/thi-ng/umbrella/commit/09ba17165e89202fdc48b095ee1e62f65adbcad4))
65
77
 
66
- # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.1.9...@thi.ng/hiccup@3.2.0) (2019-07-07)
78
+ # [3.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.26...@thi.ng/hiccup@3.3.0) (2020-06-24)
67
79
 
68
- ### Features
80
+ ### Features
69
81
 
70
- * **hiccup:** enable TS strict compiler flags (refactor) ([d0fce75](https://github.com/thi-ng/umbrella/commit/d0fce75))
82
+ - **hiccup:** support array attrib values, add tests ([1c4ef8a](https://github.com/thi-ng/umbrella/commit/1c4ef8aa6464dee9e9fed39e8213e52ed67e2ac1))
83
+ - **hiccup:** update `accept` attrib handling ([fabf447](https://github.com/thi-ng/umbrella/commit/fabf447d5ef7f666f16ee11d46188496121766d2))
71
84
 
72
- # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.0.3...@thi.ng/hiccup@3.1.0) (2019-02-18)
85
+ ## [3.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.3...@thi.ng/hiccup@3.2.4) (2019-08-21)
73
86
 
74
- ### Features
87
+ ### Bug Fixes
75
88
 
76
- * **hiccup:** add support for XML/DTD proc tags, update readme, tests ([ede2842](https://github.com/thi-ng/umbrella/commit/ede2842))
89
+ - **hiccup:** update/rename regexes & tag maps ([6dba80d](https://github.com/thi-ng/umbrella/commit/6dba80d))
77
90
 
78
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.7.2...@thi.ng/hiccup@3.0.0) (2019-01-21)
91
+ # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.1.9...@thi.ng/hiccup@3.2.0) (2019-07-07)
79
92
 
80
- ### Build System
93
+ ### Features
81
94
 
82
- * update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
95
+ - **hiccup:** enable TS strict compiler flags (refactor) ([d0fce75](https://github.com/thi-ng/umbrella/commit/d0fce75))
83
96
 
84
- ### BREAKING CHANGES
97
+ # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.0.3...@thi.ng/hiccup@3.1.0) (2019-02-18)
85
98
 
86
- * enabled multi-outputs (ES6 modules, CJS, UMD)
99
+ ### Features
87
100
 
88
- - build scripts now first build ES6 modules in package root, then call
89
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
90
- - all imports MUST be updated to only refer to package level
91
- (not individual files anymore). tree shaking in user land will get rid of
92
- all unused imported symbols.
101
+ - **hiccup:** add support for XML/DTD proc tags, update readme, tests ([ede2842](https://github.com/thi-ng/umbrella/commit/ede2842))
93
102
 
94
- # [2.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.6.1...@thi.ng/hiccup@2.7.0) (2018-12-13)
103
+ # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.7.2...@thi.ng/hiccup@3.0.0) (2019-01-21)
95
104
 
96
- ### Features
105
+ ### Build System
97
106
 
98
- * **hiccup:** add __skip support, add test, update readme ([d3500df](https://github.com/thi-ng/umbrella/commit/d3500df))
107
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
99
108
 
100
- # [2.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.5.0...@thi.ng/hiccup@2.6.0) (2018-11-07)
109
+ ### BREAKING CHANGES
101
110
 
102
- ### Features
111
+ - enabled multi-outputs (ES6 modules, CJS, UMD)
112
+ - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
113
+ - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
103
114
 
104
- * **hiccup:** update derefContext() to only apply to selected keys ([749925f](https://github.com/thi-ng/umbrella/commit/749925f))
115
+ # [2.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.6.1...@thi.ng/hiccup@2.7.0) (2018-12-13)
105
116
 
106
- # [2.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.4.3...@thi.ng/hiccup@2.5.0) (2018-11-06)
117
+ ### Features
107
118
 
108
- ### Features
119
+ - **hiccup:** add __skip support, add test, update readme ([d3500df](https://github.com/thi-ng/umbrella/commit/d3500df))
109
120
 
110
- * **hiccup:** add support for dynamic user context values ([a947873](https://github.com/thi-ng/umbrella/commit/a947873))
121
+ # [2.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.5.0...@thi.ng/hiccup@2.6.0) (2018-11-07)
111
122
 
112
- <a name="2.4.0"></a>
113
- # [2.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.3.0...@thi.ng/hiccup@2.4.0) (2018-09-23)
123
+ ### Features
114
124
 
115
- ### Features
125
+ - **hiccup:** update derefContext() to only apply to selected keys ([749925f](https://github.com/thi-ng/umbrella/commit/749925f))
116
126
 
117
- * **hiccup:** emmet class & class attrib merging in normalize() ([1d8eeb4](https://github.com/thi-ng/umbrella/commit/1d8eeb4))
127
+ # [2.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.4.3...@thi.ng/hiccup@2.5.0) (2018-11-06)
118
128
 
119
- <a name="2.3.0"></a>
120
- # [2.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.2.1-alpha.1...@thi.ng/hiccup@2.3.0) (2018-09-22)
129
+ ### Features
121
130
 
122
- ### Features
131
+ - **hiccup:** add support for dynamic user context values ([a947873](https://github.com/thi-ng/umbrella/commit/a947873))
123
132
 
124
- * **hiccup:** add control attrib handling, add comment support ([363c241](https://github.com/thi-ng/umbrella/commit/363c241))
133
+ # [2.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.3.0...@thi.ng/hiccup@2.4.0) (2018-09-23)
125
134
 
126
- <a name="2.1.0"></a>
127
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.11...@thi.ng/hiccup@2.1.0) (2018-08-31)
135
+ ### Features
128
136
 
129
- ### Bug Fixes
137
+ - **hiccup:** emmet class & class attrib merging in normalize() ([1d8eeb4](https://github.com/thi-ng/umbrella/commit/1d8eeb4))
130
138
 
131
- * **hiccup:** disable spans for certain element types ([1b97a25](https://github.com/thi-ng/umbrella/commit/1b97a25))
132
- * **hiccup:** serialize() args ([1e8b4ef](https://github.com/thi-ng/umbrella/commit/1e8b4ef))
139
+ # [2.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.2.1-alpha.1...@thi.ng/hiccup@2.3.0) (2018-09-22)
133
140
 
134
- ### Features
141
+ ### Features
135
142
 
136
- * **hiccup:** add optional support for spans & auto keying ([#39](https://github.com/thi-ng/umbrella/issues/39)) ([1b0deb2](https://github.com/thi-ng/umbrella/commit/1b0deb2))
143
+ - **hiccup:** add control attrib handling, add comment support ([363c241](https://github.com/thi-ng/umbrella/commit/363c241))
137
144
 
138
- <a name="2.0.11"></a>
139
- ## [2.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.10...@thi.ng/hiccup@2.0.11) (2018-08-27)
145
+ # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.11...@thi.ng/hiccup@2.1.0) (2018-08-31)
140
146
 
141
- <a name="2.0.0"></a>
142
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.3.16...@thi.ng/hiccup@2.0.0) (2018-05-13)
147
+ ### Bug Fixes
143
148
 
144
- ### Code Refactoring
149
+ - **hiccup:** disable spans for certain element types ([1b97a25](https://github.com/thi-ng/umbrella/commit/1b97a25))
150
+ - **hiccup:** serialize() args ([1e8b4ef](https://github.com/thi-ng/umbrella/commit/1e8b4ef))
145
151
 
146
- * **hiccup:** fix [#19](https://github.com/thi-ng/umbrella/issues/19), add support for context object ([feca566](https://github.com/thi-ng/umbrella/commit/feca566))
152
+ ### Features
147
153
 
148
- ### Performance Improvements
154
+ - **hiccup:** add optional support for spans & auto keying ([#39](https://github.com/thi-ng/umbrella/issues/39)) ([1b0deb2](https://github.com/thi-ng/umbrella/commit/1b0deb2))
149
155
 
150
- * **hiccup:** update css() ([b1cb7d9](https://github.com/thi-ng/umbrella/commit/b1cb7d9))
156
+ ## [2.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.10...@thi.ng/hiccup@2.0.11) (2018-08-27)
151
157
 
152
- ### BREAKING CHANGES
158
+ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.3.16...@thi.ng/hiccup@2.0.0) (2018-05-13)
153
159
 
154
- * **hiccup:** component functions now take a global context object as
155
- first argument (like w/ @thi.ng/hdom)
160
+ ### Code Refactoring
156
161
 
157
- - update serialize() to accept & pass optional context
158
- - add support for component objects
159
- - add/update tests
162
+ - **hiccup:** fix [#19](https://github.com/thi-ng/umbrella/issues/19), add support for context object ([feca566](https://github.com/thi-ng/umbrella/commit/feca566))
160
163
 
161
- <a name="1.3.0"></a>
162
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.2.5...@thi.ng/hiccup@1.3.0) (2018-03-21)
164
+ ### Performance Improvements
163
165
 
164
- ### Features
166
+ - **hiccup:** update css() ([b1cb7d9](https://github.com/thi-ng/umbrella/commit/b1cb7d9))
165
167
 
166
- * **hiccup:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([a3238ab](https://github.com/thi-ng/umbrella/commit/a3238ab))
168
+ ### BREAKING CHANGES
167
169
 
168
- <a name="1.2.0"></a>
169
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.1.3...@thi.ng/hiccup@1.2.0) (2018-03-14)
170
+ - **hiccup:** component functions now take a global context object as first argument (like w/ @thi.ng/hdom)
171
+ - update serialize() to accept & pass optional context
172
+ - add support for component objects
173
+ - add/update tests
170
174
 
171
- ### Features
175
+ # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.2.5...@thi.ng/hiccup@1.3.0) (2018-03-21)
172
176
 
173
- * **hiccup:** add auto deref() support ([0d2c16f](https://github.com/thi-ng/umbrella/commit/0d2c16f))
174
- * **hiccup:** support fn values in style objects ([93343d6](https://github.com/thi-ng/umbrella/commit/93343d6))
177
+ ### Features
175
178
 
176
- <a name="1.1.0"></a>
177
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.0.2...@thi.ng/hiccup@1.1.0) (2018-02-24)
179
+ - **hiccup:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([a3238ab](https://github.com/thi-ng/umbrella/commit/a3238ab))
178
180
 
179
- ### Features
181
+ # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.1.3...@thi.ng/hiccup@1.2.0) (2018-03-14)
180
182
 
181
- * **hiccup:** add support for more SVG tags (66 total) ([44f33df](https://github.com/thi-ng/umbrella/commit/44f33df))
183
+ ### Features
182
184
 
183
- <a name="1.0.0"></a>
184
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@0.1.7...@thi.ng/hiccup@1.0.0) (2018-02-03)
185
+ - **hiccup:** add auto deref() support ([0d2c16f](https://github.com/thi-ng/umbrella/commit/0d2c16f))
186
+ - **hiccup:** support fn values in style objects ([93343d6](https://github.com/thi-ng/umbrella/commit/93343d6))
185
187
 
186
- ### Features
188
+ # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.0.2...@thi.ng/hiccup@1.1.0) (2018-02-24)
187
189
 
188
- * **hiccup:** skip fn exec for event attribs, update tests, readme ([7ae706e](https://github.com/thi-ng/umbrella/commit/7ae706e))
190
+ ### Features
189
191
 
190
- ### BREAKING CHANGES
192
+ - **hiccup:** add support for more SVG tags (66 total) ([44f33df](https://github.com/thi-ng/umbrella/commit/44f33df))
193
+
194
+ # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@0.1.7...@thi.ng/hiccup@1.0.0) (2018-02-03)
195
+
196
+ ### Features
197
+
198
+ - **hiccup:** skip fn exec for event attribs, update tests, readme ([7ae706e](https://github.com/thi-ng/umbrella/commit/7ae706e))
199
+
200
+ ### BREAKING CHANGES
191
201
 
192
- * **hiccup:** event attribs w/ function values will be omitted, see readme for details/examples
202
+ - **hiccup:** event attribs w/ function values will be omitted, see readme for details/examples
package/README.md CHANGED
@@ -143,15 +143,24 @@ iterable
143
143
  yarn add @thi.ng/hiccup
144
144
  ```
145
145
 
146
+ ES module import:
147
+
146
148
  ```html
147
- // ES module
148
- <script type="module" src="https://unpkg.com/@thi.ng/hiccup?module" crossorigin></script>
149
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/hiccup"></script>
150
+ ```
151
+
152
+ [Skypack documentation](https://docs.skypack.dev/)
153
+
154
+ For Node.js REPL:
155
+
156
+ ```text
157
+ # with flag only for < v16
158
+ node --experimental-repl-await
149
159
 
150
- // UMD
151
- <script src="https://unpkg.com/@thi.ng/hiccup/lib/index.umd.js" crossorigin></script>
160
+ > const hiccup = await import("@thi.ng/hiccup");
152
161
  ```
153
162
 
154
- Package sizes (gzipped, pre-treeshake): ESM: 2.29 KB / CJS: 2.40 KB / UMD: 2.42 KB
163
+ Package sizes (gzipped, pre-treeshake): ESM: 2.33 KB
155
164
 
156
165
  ## Dependencies
157
166
 
@@ -643,7 +652,7 @@ Signature: `escape(str: string): string`
643
652
  Helper function. Applies HTML entity replacement on given string. If
644
653
  `serialize()` is called with `true` as 2nd argument, entity encoding is
645
654
  done automatically ([list of entities
646
- considered](https://github.com/thi-ng/umbrella/blob/develop/packages/hiccup/src/api.ts)).
655
+ considered](https://github.com/thi-ng/umbrella/blob/develop/packages/hiccup/src/api.ts#L11)).
647
656
 
648
657
  ## Authors
649
658
 
package/attribs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { deref } from "@thi.ng/api";
2
- import { isString } from "@thi.ng/checks";
1
+ import { deref } from "@thi.ng/api/deref";
2
+ import { isString } from "@thi.ng/checks/is-string";
3
3
  /**
4
4
  * Takes a space separated string of existing CSS class names and merges
5
5
  * it with `val`, which is either another string of class names, an
package/css.js CHANGED
@@ -1,5 +1,5 @@
1
- import { deref } from "@thi.ng/api";
2
- import { isFunction } from "@thi.ng/checks";
1
+ import { deref } from "@thi.ng/api/deref";
2
+ import { isFunction } from "@thi.ng/checks/is-function";
3
3
  export const css = (rules) => {
4
4
  let css = "";
5
5
  let v;
package/deref.js CHANGED
@@ -1,4 +1,4 @@
1
- import { implementsFunction } from "@thi.ng/checks";
1
+ import { implementsFunction } from "@thi.ng/checks/implements-function";
2
2
  /**
3
3
  * Takes an arbitrary `ctx` object and array of `keys`. Attempts to call
4
4
  * `.deref()` on all given keys' values and stores result values instead
@@ -13,7 +13,7 @@ import { implementsFunction } from "@thi.ng/checks";
13
13
  export const derefContext = (ctx, keys) => {
14
14
  if (ctx == null || !keys || !keys.length)
15
15
  return ctx;
16
- const res = Object.assign({}, ctx);
16
+ const res = { ...ctx };
17
17
  for (let k of keys) {
18
18
  const v = res[k];
19
19
  implementsFunction(v, "deref") && (res[k] = v.deref());
package/escape.js CHANGED
@@ -1,2 +1,2 @@
1
- import { ENTITIES, RE_ENTITY } from "./api";
1
+ import { ENTITIES, RE_ENTITY } from "./api.js";
2
2
  export const escape = (x) => x.replace(RE_ENTITY, (y) => ENTITIES[y]);
package/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from "./api";
2
- export * from "./attribs";
3
- export * from "./css";
4
- export * from "./deref";
5
- export * from "./escape";
6
- export * from "./normalize";
7
- export * from "./prefix";
8
- export * from "./serialize";
1
+ export * from "./api.js";
2
+ export * from "./attribs.js";
3
+ export * from "./css.js";
4
+ export * from "./deref.js";
5
+ export * from "./escape.js";
6
+ export * from "./normalize.js";
7
+ export * from "./prefix.js";
8
+ export * from "./serialize.js";
9
9
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./api";
2
- export * from "./attribs";
3
- export * from "./css";
4
- export * from "./deref";
5
- export * from "./escape";
6
- export * from "./normalize";
7
- export * from "./prefix";
8
- export * from "./serialize";
1
+ export * from "./api.js";
2
+ export * from "./attribs.js";
3
+ export * from "./css.js";
4
+ export * from "./deref.js";
5
+ export * from "./escape.js";
6
+ export * from "./normalize.js";
7
+ export * from "./prefix.js";
8
+ export * from "./serialize.js";
package/normalize.js CHANGED
@@ -1,12 +1,13 @@
1
- import { isPlainObject, isString } from "@thi.ng/checks";
2
- import { illegalArgs } from "@thi.ng/errors";
3
- import { RE_TAG } from "./api";
4
- import { mergeEmmetAttribs } from "./attribs";
1
+ import { isPlainObject } from "@thi.ng/checks/is-plain-object";
2
+ import { isString } from "@thi.ng/checks/is-string";
3
+ import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
4
+ import { RE_TAG } from "./api.js";
5
+ import { mergeEmmetAttribs } from "./attribs.js";
5
6
  export const normalize = (tag) => {
6
7
  let name = tag[0];
7
8
  let match;
8
9
  const hasAttribs = isPlainObject(tag[1]);
9
- const attribs = hasAttribs ? Object.assign({}, tag[1]) : {};
10
+ const attribs = hasAttribs ? { ...tag[1] } : {};
10
11
  if (!isString(name) || !(match = RE_TAG.exec(name))) {
11
12
  illegalArgs(`"${name}" is not a valid tag name`);
12
13
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup",
3
- "version": "3.6.22",
3
+ "version": "4.0.3",
4
4
  "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
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,32 +24,24 @@
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
- "build:check": "tsc --isolatedModules --noEmit",
32
- "test": "mocha test",
33
- "cover": "nyc mocha test && nyc report --reporter=lcov",
34
- "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib",
35
- "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
36
- "doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.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",
37
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
38
- "pub": "yarn build:release && yarn publish --access public"
39
- },
40
- "devDependencies": {
41
- "@thi.ng/atom": "^4.1.42"
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"
42
35
  },
43
36
  "dependencies": {
44
- "@thi.ng/api": "^7.2.0",
45
- "@thi.ng/checks": "^2.9.11",
46
- "@thi.ng/errors": "^1.3.4"
37
+ "@thi.ng/api": "^8.0.3",
38
+ "@thi.ng/checks": "^3.0.3",
39
+ "@thi.ng/errors": "^2.0.3"
40
+ },
41
+ "devDependencies": {
42
+ "@thi.ng/atom": "^5.0.3",
43
+ "@thi.ng/testament": "^0.1.3"
47
44
  },
48
- "files": [
49
- "*.js",
50
- "*.d.ts",
51
- "lib"
52
- ],
53
45
  "keywords": [
54
46
  "array",
55
47
  "clojure",
@@ -70,7 +62,42 @@
70
62
  "publishConfig": {
71
63
  "access": "public"
72
64
  },
73
- "sideEffects": false,
65
+ "engines": {
66
+ "node": ">=12.7"
67
+ },
68
+ "files": [
69
+ "*.js",
70
+ "*.d.ts"
71
+ ],
72
+ "exports": {
73
+ ".": {
74
+ "import": "./index.js"
75
+ },
76
+ "./api": {
77
+ "import": "./api.js"
78
+ },
79
+ "./attribs": {
80
+ "import": "./attribs.js"
81
+ },
82
+ "./css": {
83
+ "import": "./css.js"
84
+ },
85
+ "./deref": {
86
+ "import": "./deref.js"
87
+ },
88
+ "./escape": {
89
+ "import": "./escape.js"
90
+ },
91
+ "./normalize": {
92
+ "import": "./normalize.js"
93
+ },
94
+ "./prefix": {
95
+ "import": "./prefix.js"
96
+ },
97
+ "./serialize": {
98
+ "import": "./serialize.js"
99
+ }
100
+ },
74
101
  "thi.ng": {
75
102
  "blog": [
76
103
  {
@@ -90,5 +117,5 @@
90
117
  ],
91
118
  "year": 2016
92
119
  },
93
- "gitHead": "d971cb3f9b215a95483f78f1a8614015e331146f"
120
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
94
121
  }
package/serialize.js CHANGED
@@ -1,11 +1,16 @@
1
- import { deref, isDeref } from "@thi.ng/api";
2
- import { implementsFunction, isArray, isFunction, isNotStringAndIterable, isPlainObject, isString, } from "@thi.ng/checks";
3
- import { illegalArgs } from "@thi.ng/errors";
4
- import { ATTRIB_JOIN_DELIMS, CDATA, COMMENT, NO_SPANS, PROC_TAGS, NO_CLOSE_EMPTY, VOID_TAGS, } from "./api";
5
- import { css } from "./css";
6
- import { escape } from "./escape";
7
- import { normalize } from "./normalize";
8
- import { formatPrefixes } from "./prefix";
1
+ import { deref, isDeref } from "@thi.ng/api/deref";
2
+ import { implementsFunction } from "@thi.ng/checks/implements-function";
3
+ import { isArray } from "@thi.ng/checks/is-array";
4
+ import { isFunction } from "@thi.ng/checks/is-function";
5
+ import { isNotStringAndIterable } from "@thi.ng/checks/is-not-string-iterable";
6
+ import { isPlainObject } from "@thi.ng/checks/is-plain-object";
7
+ import { isString } from "@thi.ng/checks/is-string";
8
+ import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
9
+ import { ATTRIB_JOIN_DELIMS, CDATA, COMMENT, NO_CLOSE_EMPTY, NO_SPANS, PROC_TAGS, VOID_TAGS, } from "./api.js";
10
+ import { css } from "./css.js";
11
+ import { escape } from "./escape.js";
12
+ import { normalize } from "./normalize.js";
13
+ import { formatPrefixes } from "./prefix.js";
9
14
  /**
10
15
  * Recursively normalizes and serializes given tree as HTML/SVG/XML
11
16
  * string. Expands any embedded component functions with their results.
package/lib/index.js DELETED
@@ -1,256 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var api = require('@thi.ng/api');
6
- var checks = require('@thi.ng/checks');
7
- var errors = require('@thi.ng/errors');
8
-
9
- const PROC_TAGS = {
10
- "?xml": "?>\n",
11
- "!DOCTYPE": ">\n",
12
- "!ENTITY": ">\n",
13
- "!ELEMENT": ">\n",
14
- "!ATTLIST": ">\n",
15
- };
16
- const ENTITIES = {
17
- "&": "&amp;",
18
- "<": "&lt;",
19
- ">": "&gt;",
20
- '"': "&quot;",
21
- "'": "&apos;",
22
- };
23
- const RE_TAG = /^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/;
24
- const RE_ENTITY = new RegExp(`[${Object.keys(ENTITIES).join("")}]`, "g");
25
- const COMMENT = "__COMMENT__";
26
- const CDATA = "!CDATA";
27
- const NO_SPANS = {
28
- button: 1,
29
- option: 1,
30
- script: 1,
31
- style: 1,
32
- text: 1,
33
- textarea: 1,
34
- title: 1,
35
- };
36
- const tagMap = (tags) => tags.split(" ").reduce((acc, x) => ((acc[x] = true), acc), {});
37
- const SVG_TAGS = tagMap("animate animateColor animateMotion animateTransform circle clipPath color-profile defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font foreignObject g image line linearGradient marker mask metadata mpath path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view");
38
- const VOID_TAGS = tagMap("area base br col command embed hr img input keygen link meta param source stop track use wbr ?xml");
39
- const NO_CLOSE_EMPTY = tagMap("animate circle ellipse line path polygon polyline rect");
40
- const ATTRIB_JOIN_DELIMS = {
41
- accept: ",",
42
- sizes: ",",
43
- srcset: ",",
44
- };
45
-
46
- const mergeClasses = (existing, val) => {
47
- val = api.deref(val);
48
- if (val == null)
49
- return existing;
50
- if (checks.isString(val))
51
- return existing + " " + val;
52
- const classes = new Set(existing.split(" "));
53
- for (let id in val) {
54
- api.deref(val[id]) ? classes.add(id) : classes.delete(id);
55
- }
56
- return [...classes].join(" ");
57
- };
58
- const mergeEmmetAttribs = (attribs, id, classes) => {
59
- id && (attribs.id = id);
60
- let aclass = api.deref(attribs.class);
61
- if (classes) {
62
- classes = classes.replace(/\./g, " ");
63
- attribs.class = aclass ? mergeClasses(classes, aclass) : classes;
64
- }
65
- else if (aclass) {
66
- attribs.class = checks.isString(aclass) ? aclass : mergeClasses("", aclass);
67
- }
68
- return attribs;
69
- };
70
-
71
- const css = (rules) => {
72
- let css = "";
73
- let v;
74
- for (let r in rules) {
75
- v = api.deref(rules[r]);
76
- checks.isFunction(v) && (v = v(rules));
77
- v != null && (css += `${r}:${v};`);
78
- }
79
- return css;
80
- };
81
-
82
- const derefContext = (ctx, keys) => {
83
- if (ctx == null || !keys || !keys.length)
84
- return ctx;
85
- const res = Object.assign({}, ctx);
86
- for (let k of keys) {
87
- const v = res[k];
88
- checks.implementsFunction(v, "deref") && (res[k] = v.deref());
89
- }
90
- return res;
91
- };
92
-
93
- const escape = (x) => x.replace(RE_ENTITY, (y) => ENTITIES[y]);
94
-
95
- const normalize = (tag) => {
96
- let name = tag[0];
97
- let match;
98
- const hasAttribs = checks.isPlainObject(tag[1]);
99
- const attribs = hasAttribs ? Object.assign({}, tag[1]) : {};
100
- if (!checks.isString(name) || !(match = RE_TAG.exec(name))) {
101
- errors.illegalArgs(`"${name}" is not a valid tag name`);
102
- }
103
- name = match[1];
104
- mergeEmmetAttribs(attribs, match[2], match[3]);
105
- if (tag.length > 1) {
106
- tag = tag.slice(hasAttribs ? 2 : 1).filter((x) => x != null);
107
- if (tag.length > 0) {
108
- return [name, attribs, tag];
109
- }
110
- }
111
- return [name, attribs];
112
- };
113
-
114
- const formatPrefixes = (prefixes) => Object.keys(prefixes)
115
- .reduce((acc, k) => (acc.push(`${k}: ${prefixes[k]}`), acc), [])
116
- .join(" ");
117
-
118
- const serialize = (tree, ctx, escape = false, span = false, keys = span, path = [0]) => _serialize(tree, ctx, escape, span, keys, path);
119
- const _serialize = (tree, ctx, esc, span, keys, path) => tree == null
120
- ? ""
121
- : Array.isArray(tree)
122
- ? serializeElement(tree, ctx, esc, span, keys, path)
123
- : checks.isFunction(tree)
124
- ? _serialize(tree(ctx), ctx, esc, span, keys, path)
125
- : checks.implementsFunction(tree, "toHiccup")
126
- ? _serialize(tree.toHiccup(ctx), ctx, esc, span, keys, path)
127
- : api.isDeref(tree)
128
- ? _serialize(tree.deref(), ctx, esc, span, keys, path)
129
- : checks.isNotStringAndIterable(tree)
130
- ? serializeIter(tree, ctx, esc, span, keys, path)
131
- : ((tree = esc ? escape(String(tree)) : String(tree)), span)
132
- ? `<span${keys ? ` key="${path.join("-")}"` : ""}>${tree}</span>`
133
- : tree;
134
- const serializeElement = (tree, ctx, esc, span, keys, path) => {
135
- let tag = tree[0];
136
- return !tree.length
137
- ? ""
138
- : checks.isFunction(tag)
139
- ? _serialize(tag.apply(null, [ctx, ...tree.slice(1)]), ctx, esc, span, keys, path)
140
- : checks.implementsFunction(tag, "render")
141
- ? _serialize(tag.render.apply(null, [ctx, ...tree.slice(1)]), ctx, esc, span, keys, path)
142
- : tag === COMMENT
143
- ? serializeComment(tree)
144
- : tag == CDATA
145
- ? serializeCData(tree)
146
- : checks.isString(tag)
147
- ? serializeTag(tree, ctx, esc, span, keys, path)
148
- : checks.isNotStringAndIterable(tree)
149
- ? serializeIter(tree, ctx, esc, span, keys, path)
150
- : errors.illegalArgs(`invalid tree node: ${tree}`);
151
- };
152
- const serializeTag = (tree, ctx, esc, span, keys, path) => {
153
- tree = normalize(tree);
154
- const attribs = tree[1];
155
- if (attribs.__skip || attribs.__serialize === false)
156
- return "";
157
- keys && attribs.key === undefined && (attribs.key = path.join("-"));
158
- const tag = tree[0];
159
- const body = tree[2]
160
- ? serializeBody(tag, tree[2], ctx, esc, span, keys, path)
161
- : !VOID_TAGS[tag] && !NO_CLOSE_EMPTY[tag]
162
- ? `></${tag}>`
163
- : PROC_TAGS[tag] || "/>";
164
- return `<${tag}${serializeAttribs(attribs, esc)}${body}`;
165
- };
166
- const serializeAttribs = (attribs, esc) => {
167
- let res = "";
168
- for (let a in attribs) {
169
- if (a.startsWith("__"))
170
- continue;
171
- const v = serializeAttrib(attribs, a, api.deref(attribs[a]), esc);
172
- v != null && (res += v);
173
- }
174
- return res;
175
- };
176
- const serializeAttrib = (attribs, a, v, esc) => {
177
- return v == null
178
- ? null
179
- : checks.isFunction(v) && (/^on\w+/.test(a) || (v = v(attribs)) == null)
180
- ? null
181
- : v === true
182
- ? " " + a
183
- : v === false
184
- ? null
185
- : a === "data"
186
- ? serializeDataAttribs(v, esc)
187
- : attribPair(a, v, esc);
188
- };
189
- const attribPair = (a, v, esc) => {
190
- v =
191
- a === "style" && checks.isPlainObject(v)
192
- ? css(v)
193
- : a === "prefix" && checks.isPlainObject(v)
194
- ? formatPrefixes(v)
195
- : checks.isArray(v)
196
- ? v.join(ATTRIB_JOIN_DELIMS[a] || " ")
197
- : v.toString();
198
- return v.length ? ` ${a}="${esc ? escape(v) : v}"` : null;
199
- };
200
- const serializeDataAttribs = (data, esc) => {
201
- let res = "";
202
- for (let id in data) {
203
- let v = api.deref(data[id]);
204
- checks.isFunction(v) && (v = v(data));
205
- v != null && (res += ` data-${id}="${esc ? escape(v) : v}"`);
206
- }
207
- return res;
208
- };
209
- const serializeBody = (tag, body, ctx, esc, span, keys, path) => {
210
- if (VOID_TAGS[tag]) {
211
- errors.illegalArgs(`No body allowed in tag: ${tag}`);
212
- }
213
- const proc = PROC_TAGS[tag];
214
- let res = proc ? " " : ">";
215
- span = span && !proc && !NO_SPANS[tag];
216
- for (let i = 0, n = body.length; i < n; i++) {
217
- res += _serialize(body[i], ctx, esc, span, keys, [...path, i]);
218
- }
219
- return res + (proc || `</${tag}>`);
220
- };
221
- const serializeComment = (tree) => tree.length > 2
222
- ? `\n<!--\n${tree
223
- .slice(1)
224
- .map((x) => " " + x)
225
- .join("\n")}\n-->\n`
226
- : `\n<!-- ${tree[1]} -->\n`;
227
- const serializeCData = (tree) => `<![CDATA[\n${tree.slice(1).join("\n")}\n]]>`;
228
- const serializeIter = (iter, ctx, esc, span, keys, path) => {
229
- const res = [];
230
- const p = path.slice(0, path.length - 1);
231
- let k = 0;
232
- for (let i of iter) {
233
- res.push(_serialize(i, ctx, esc, span, keys, [...p, k++]));
234
- }
235
- return res.join("");
236
- };
237
-
238
- exports.ATTRIB_JOIN_DELIMS = ATTRIB_JOIN_DELIMS;
239
- exports.CDATA = CDATA;
240
- exports.COMMENT = COMMENT;
241
- exports.ENTITIES = ENTITIES;
242
- exports.NO_CLOSE_EMPTY = NO_CLOSE_EMPTY;
243
- exports.NO_SPANS = NO_SPANS;
244
- exports.PROC_TAGS = PROC_TAGS;
245
- exports.RE_ENTITY = RE_ENTITY;
246
- exports.RE_TAG = RE_TAG;
247
- exports.SVG_TAGS = SVG_TAGS;
248
- exports.VOID_TAGS = VOID_TAGS;
249
- exports.css = css;
250
- exports.derefContext = derefContext;
251
- exports.escape = escape;
252
- exports.formatPrefixes = formatPrefixes;
253
- exports.mergeClasses = mergeClasses;
254
- exports.mergeEmmetAttribs = mergeEmmetAttribs;
255
- exports.normalize = normalize;
256
- exports.serialize = serialize;
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../api.js","../attribs.js","../css.js","../deref.js","../escape.js","../normalize.js","../prefix.js","../serialize.js"],"sourcesContent":null,"names":["deref","isString","isFunction","implementsFunction","isPlainObject","illegalArgs","isDeref","isNotStringAndIterable","isArray"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAG;AACzB,IAAI,MAAM,EAAE,MAAM;AAClB,IAAI,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CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC;AAC/B,SAAS,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;AAC5B,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAChC,MAAM,cAAc,GAAG,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;AAC/E,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,KAAK;AAC5D,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC;AACnB,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC7C,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,EAAE;AACxB,QAAQ,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACnE,KAAK;AACL,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxB,CAAC;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.umd.js DELETED
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/api"),require("@thi.ng/checks"),require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/api","@thi.ng/checks","@thi.ng/errors"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.hiccup={}),e.thi.ng.api,e.thi.ng.checks,e.thi.ng.errors)}(this,(function(e,t,n,i){"use strict";const r={"?xml":"?>\n","!DOCTYPE":">\n","!ENTITY":">\n","!ELEMENT":">\n","!ATTLIST":">\n"},l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"},s=/^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/,o=new RegExp(`[${Object.keys(l).join("")}]`,"g"),a="__COMMENT__",c="!CDATA",f={button:1,option:1,script:1,style:1,text:1,textarea:1,title:1},u=e=>e.split(" ").reduce(((e,t)=>(e[t]=!0,e)),{}),g=u("animate animateColor animateMotion animateTransform circle clipPath color-profile defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font foreignObject g image line linearGradient marker mask metadata mpath path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view"),p=u("area base br col command embed hr img input keygen link meta param source stop track use wbr ?xml"),d=u("animate circle ellipse line path polygon polyline rect"),h={accept:",",sizes:",",srcset:","},m=(e,i)=>{if(null==(i=t.deref(i)))return e;if(n.isString(i))return e+" "+i;const r=new Set(e.split(" "));for(let e in i)t.deref(i[e])?r.add(e):r.delete(e);return[...r].join(" ")},T=(e,i,r)=>{i&&(e.id=i);let l=t.deref(e.class);return r?(r=r.replace(/\./g," "),e.class=l?m(r,l):r):l&&(e.class=n.isString(l)?l:m("",l)),e},y=e=>{let i,r="";for(let l in e)i=t.deref(e[l]),n.isFunction(i)&&(i=i(e)),null!=i&&(r+=`${l}:${i};`);return r},$=e=>e.replace(o,(e=>l[e])),b=e=>{let t,r=e[0];const l=n.isPlainObject(e[1]),o=l?Object.assign({},e[1]):{};return n.isString(r)&&(t=s.exec(r))||i.illegalArgs(`"${r}" is not a valid tag name`),r=t[1],T(o,t[2],t[3]),e.length>1&&(e=e.slice(l?2:1).filter((e=>null!=e))).length>0?[r,o,e]:[r,o]},A=e=>Object.keys(e).reduce(((t,n)=>(t.push(`${n}: ${e[n]}`),t)),[]).join(" "),S=(e,i,r,l,s,o)=>null==e?"":Array.isArray(e)?_(e,i,r,l,s,o):n.isFunction(e)?S(e(i),i,r,l,s,o):n.implementsFunction(e,"toHiccup")?S(e.toHiccup(i),i,r,l,s,o):t.isDeref(e)?S(e.deref(),i,r,l,s,o):n.isNotStringAndIterable(e)?F(e,i,r,l,s,o):(e=r?$(String(e)):String(e),l?`<span${s?` key="${o.join("-")}"`:""}>${e}</span>`:e),_=(e,t,r,l,s,o)=>{let f=e[0];return e.length?n.isFunction(f)?S(f.apply(null,[t,...e.slice(1)]),t,r,l,s,o):n.implementsFunction(f,"render")?S(f.render.apply(null,[t,...e.slice(1)]),t,r,l,s,o):f===a?k(e):f==c?N(e):n.isString(f)?x(e,t,r,l,s,o):n.isNotStringAndIterable(e)?F(e,t,r,l,s,o):i.illegalArgs(`invalid tree node: ${e}`):""},x=(e,t,n,i,l,s)=>{const o=(e=b(e))[1];if(o.__skip||!1===o.__serialize)return"";l&&void 0===o.key&&(o.key=s.join("-"));const a=e[0],c=e[2]?M(a,e[2],t,n,i,l,s):p[a]||d[a]?r[a]||"/>":`></${a}>`;return`<${a}${j(o,n)}${c}`},j=(e,n)=>{let i="";for(let r in e){if(r.startsWith("__"))continue;const l=O(e,r,t.deref(e[r]),n);null!=l&&(i+=l)}return i},O=(e,t,i,r)=>null==i||n.isFunction(i)&&(/^on\w+/.test(t)||null==(i=i(e)))?null:!0===i?" "+t:!1===i?null:"data"===t?C(i,r):E(t,i,r),E=(e,t,i)=>(t="style"===e&&n.isPlainObject(t)?y(t):"prefix"===e&&n.isPlainObject(t)?A(t):n.isArray(t)?t.join(h[e]||" "):t.toString()).length?` ${e}="${i?$(t):t}"`:null,C=(e,i)=>{let r="";for(let l in e){let s=t.deref(e[l]);n.isFunction(s)&&(s=s(e)),null!=s&&(r+=` data-${l}="${i?$(s):s}"`)}return r},M=(e,t,n,l,s,o,a)=>{p[e]&&i.illegalArgs(`No body allowed in tag: ${e}`);const c=r[e];let u=c?" ":">";s=s&&!c&&!f[e];for(let e=0,i=t.length;e<i;e++)u+=S(t[e],n,l,s,o,[...a,e]);return u+(c||`</${e}>`)},k=e=>e.length>2?`\n\x3c!--\n${e.slice(1).map((e=>" "+e)).join("\n")}\n--\x3e\n`:`\n\x3c!-- ${e[1]} --\x3e\n`,N=e=>`<![CDATA[\n${e.slice(1).join("\n")}\n]]>`,F=(e,t,n,i,r,l)=>{const s=[],o=l.slice(0,l.length-1);let a=0;for(let l of e)s.push(S(l,t,n,i,r,[...o,a++]));return s.join("")};e.ATTRIB_JOIN_DELIMS=h,e.CDATA=c,e.COMMENT=a,e.ENTITIES=l,e.NO_CLOSE_EMPTY=d,e.NO_SPANS=f,e.PROC_TAGS=r,e.RE_ENTITY=o,e.RE_TAG=s,e.SVG_TAGS=g,e.VOID_TAGS=p,e.css=y,e.derefContext=(e,t)=>{if(null==e||!t||!t.length)return e;const i=Object.assign({},e);for(let e of t){const t=i[e];n.implementsFunction(t,"deref")&&(i[e]=t.deref())}return i},e.escape=$,e.formatPrefixes=A,e.mergeClasses=m,e.mergeEmmetAttribs=T,e.normalize=b,e.serialize=(e,t,n=!1,i=!1,r=i,l=[0])=>S(e,t,n,i,r,l),Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../api.js","../attribs.js","../css.js","../deref.js","../escape.js","../normalize.js","../prefix.js","../serialize.js"],"sourcesContent":null,"names":["deref","isString","isFunction","implementsFunction","isPlainObject","illegalArgs","isDeref","isNotStringAndIterable","isArray"],"mappings":";;;;;;AACY,UAAC,SAAS,GAAG;IACzB,IAAI,MAAM,EAAE,MAAM;IAClB,IAAI,UAAU,EAAE,KAAK;IACrB,IAAI,SAAS,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