@htmlplus/element 0.5.1 → 0.5.2
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 +2 -2
- package/bundlers/rollup.js +1 -1
- package/bundlers/vite.js +1 -1
- package/compiler/compiler.d.ts +1 -2
- package/compiler/compiler.js +1 -1
- package/compiler/index.d.ts +1 -1
- package/compiler/index.js +1 -1
- package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.ts.hbs +10 -8
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -930,7 +930,7 @@ TODO
|
|
|
930
930
|
TODO
|
|
931
931
|
|
|
932
932
|
```js
|
|
933
|
-
import compiler from '@htmlplus/element/compiler';
|
|
933
|
+
import { compiler } from '@htmlplus/element/compiler';
|
|
934
934
|
|
|
935
935
|
const { start, next, finish } = compiler(...plugins);
|
|
936
936
|
```
|
|
@@ -940,7 +940,7 @@ const { start, next, finish } = compiler(...plugins);
|
|
|
940
940
|
TODO
|
|
941
941
|
|
|
942
942
|
```js
|
|
943
|
-
import compiler from '@htmlplus/element/compiler/index.js';
|
|
943
|
+
import { compiler } from '@htmlplus/element/compiler/index.js';
|
|
944
944
|
import { customElement, extract, parse, read, style, validate } from '@htmlplus/element/compiler/index.js';
|
|
945
945
|
|
|
946
946
|
const { start, next, finish } = compiler(
|
package/bundlers/rollup.js
CHANGED
package/bundlers/vite.js
CHANGED
package/compiler/compiler.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context, Plugin } from '../types';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const compiler: (...plugins: Array<Plugin>) => {
|
|
3
3
|
start: () => Promise<void>;
|
|
4
4
|
next: (filePath: string) => Promise<Context>;
|
|
5
5
|
finish: () => Promise<void>;
|
|
6
6
|
};
|
|
7
|
-
export default _default;
|
package/compiler/compiler.js
CHANGED
|
@@ -7,7 +7,7 @@ const log = (message, persist) => {
|
|
|
7
7
|
var _a, _b;
|
|
8
8
|
(_b = (_a = logger.start(`${new Date().toLocaleTimeString()} [HTMLPLUS] ${message}`))[persist ? 'succeed' : '']) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export const compiler = (...plugins) => {
|
|
11
11
|
let global = {
|
|
12
12
|
contexts: []
|
|
13
13
|
};
|
package/compiler/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './compiler.js';
|
|
2
2
|
export * from './plugins/index.js';
|
package/compiler/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './compiler.js';
|
|
2
2
|
export * from './plugins/index.js';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**************************************************
|
|
2
2
|
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT MANUALY
|
|
3
3
|
**************************************************/
|
|
4
|
+
import '{{importerComponent.source}}';
|
|
5
|
+
import type { {{importerComponentType.imported}} as {{importerComponentType.local}} } from '{{importerComponentType.source}}';
|
|
4
6
|
|
|
5
7
|
import { proxy } from '../proxy';
|
|
6
8
|
import type { Rename } from '../proxy';
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
type Renamed = Rename<
|
|
11
|
+
{{importerComponentType.local}},
|
|
12
|
+
{
|
|
13
|
+
{{#each classEvents}}
|
|
14
|
+
{{from}}: '{{to}}';
|
|
15
|
+
{{/each}}
|
|
16
|
+
}
|
|
17
|
+
>;
|
|
16
18
|
|
|
17
19
|
export const {{className}} = proxy<{{componentInterfaceName}}, Renamed>(
|
|
18
20
|
'{{componentTag}}',
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlplus/element",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Masood Abdolian <m.abdolian@gmail.com>",
|
|
6
|
-
"description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies.",
|
|
6
|
+
"description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by Web Component.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "client/index.js",
|
|
9
9
|
"types": "client/index.d.ts",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
],
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/htmlplus/
|
|
27
|
+
"url": "git+https://github.com/htmlplus/element.git"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/htmlplus/
|
|
30
|
+
"url": "https://github.com/htmlplus/element/issues"
|
|
31
31
|
},
|
|
32
|
-
"homepage": "https://github.com/htmlplus/
|
|
32
|
+
"homepage": "https://github.com/htmlplus/element#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/generator": "^7.20.
|
|
35
|
-
"@babel/parser": "^7.20.
|
|
34
|
+
"@babel/generator": "^7.20.3",
|
|
35
|
+
"@babel/parser": "^7.20.3",
|
|
36
36
|
"@babel/traverse": "^7.20.1",
|
|
37
|
-
"@babel/types": "^7.20.
|
|
37
|
+
"@babel/types": "^7.20.2",
|
|
38
38
|
"@types/node": "^18.11.9",
|
|
39
39
|
"change-case": "^4.1.2",
|
|
40
40
|
"fast-glob": "^3.2.12",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"prettier": "^2.7.1",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
52
|
"ts-node": "^10.9.1",
|
|
53
|
-
"vite": "^3.2.
|
|
53
|
+
"vite": "^3.2.3"
|
|
54
54
|
}
|
|
55
55
|
}
|