cellery 1.4.2 → 1.4.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/lib/cells.js +2 -2
- package/lib/compat.js +2 -2
- package/package.json +1 -1
package/lib/cells.js
CHANGED
|
@@ -156,7 +156,7 @@ class Input extends Cell {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
class
|
|
159
|
+
class Details extends Cell {
|
|
160
160
|
constructor(opts = {}) {
|
|
161
161
|
super(opts)
|
|
162
162
|
this.value = opts.value || this.children.filter((c) => typeof c === 'string').join('') || ''
|
|
@@ -176,7 +176,7 @@ module.exports = {
|
|
|
176
176
|
Fragment,
|
|
177
177
|
Text,
|
|
178
178
|
Input,
|
|
179
|
-
|
|
179
|
+
Details,
|
|
180
180
|
Summary,
|
|
181
181
|
Style
|
|
182
182
|
}
|
package/lib/compat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { Text, Input, Container, Fragment, Style,
|
|
1
|
+
const { Text, Input, Container, Fragment, Style, Details, Summary } = require('./cells')
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
'': Fragment,
|
|
@@ -14,7 +14,7 @@ module.exports = {
|
|
|
14
14
|
span: Text,
|
|
15
15
|
button: Container.Styled({ events: ['click'] }),
|
|
16
16
|
p: Text.Styled({ paragraph: true }),
|
|
17
|
-
|
|
17
|
+
details: Details,
|
|
18
18
|
summary: Summary,
|
|
19
19
|
style: Style
|
|
20
20
|
}
|