@htmlplus/element 0.6.1 → 0.6.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/README.md +1 -1
- package/client/utils/config.js +6 -1
- package/compiler/plugins/customElement.js +3 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Custom HTML Element
|
|
2
2
|
|
|
3
|
-
A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by [Web Component](https://
|
|
3
|
+
A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by [Web Component](https://mdn.io/using-custom-elements).
|
|
4
4
|
|
|
5
5
|
## Table of content
|
|
6
6
|
|
package/client/utils/config.js
CHANGED
|
@@ -27,7 +27,12 @@ const merge = (target, ...sources) => {
|
|
|
27
27
|
else {
|
|
28
28
|
for (const key of Object.keys(source)) {
|
|
29
29
|
if (source[key] instanceof Object) {
|
|
30
|
-
|
|
30
|
+
if (target[key] instanceof Object) {
|
|
31
|
+
target[key] = merge(target[key], source[key]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
31
36
|
}
|
|
32
37
|
else {
|
|
33
38
|
target[key] = source[key];
|
|
@@ -138,6 +138,9 @@ export const customElement = (options) => {
|
|
|
138
138
|
case 'TSStringKeyword':
|
|
139
139
|
type |= CONSTANTS.TYPE_STRING;
|
|
140
140
|
break;
|
|
141
|
+
case 'TSTupleType':
|
|
142
|
+
type |= CONSTANTS.TYPE_ARRAY;
|
|
143
|
+
break;
|
|
141
144
|
case 'TSTypeLiteral':
|
|
142
145
|
type |= CONSTANTS.TYPE_OBJECT;
|
|
143
146
|
break;
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlplus/element",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"sideEffects": false,
|
|
5
6
|
"author": "Masood Abdolian <m.abdolian@gmail.com>",
|
|
6
7
|
"description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by Web Component.",
|
|
7
8
|
"type": "module",
|