@htmlplus/element 2.14.0 → 3.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/dist/jsx-runtime.d.ts +1 -1
- package/dist/transformer.d.ts +2 -7
- package/dist/transformer.js +6 -7
- package/package.json +20 -19
package/dist/jsx-runtime.d.ts
CHANGED
package/dist/transformer.d.ts
CHANGED
|
@@ -95,12 +95,7 @@ interface ParseOptions extends ParserOptions {
|
|
|
95
95
|
}
|
|
96
96
|
declare const parse: (options?: ParseOptions) => TransformerPlugin;
|
|
97
97
|
|
|
98
|
-
declare const
|
|
99
|
-
interface ReadOptions {
|
|
100
|
-
encoding: 'utf8' | 'ascii' | 'utf-8' | 'utf16le' | 'utf-16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
|
|
101
|
-
flag?: string | undefined;
|
|
102
|
-
}
|
|
103
|
-
declare const read: (options?: ReadOptions) => TransformerPlugin;
|
|
98
|
+
declare const read: () => TransformerPlugin;
|
|
104
99
|
|
|
105
100
|
declare const README_OPTIONS: Partial<ReadmeOptions>;
|
|
106
101
|
interface ReadmeOptions {
|
|
@@ -134,4 +129,4 @@ interface WebTypesOptions {
|
|
|
134
129
|
}
|
|
135
130
|
declare const webTypes: (options?: WebTypesOptions) => TransformerPlugin;
|
|
136
131
|
|
|
137
|
-
export { ASSETS_OPTIONS, type AssetsOptions, COPY_OPTIONS, CUSTOM_ELEMENT_OPTIONS, type CopyOptions, type CustomElementOptions, DOCUMENT_OPTIONS, type DocumentOptions, PARSE_OPTIONS, type ParseOptions, README_OPTIONS,
|
|
132
|
+
export { ASSETS_OPTIONS, type AssetsOptions, COPY_OPTIONS, CUSTOM_ELEMENT_OPTIONS, type CopyOptions, type CustomElementOptions, DOCUMENT_OPTIONS, type DocumentOptions, PARSE_OPTIONS, type ParseOptions, README_OPTIONS, type ReadmeOptions, STYLE_OPTIONS, type StyleOptions, type TransformerPlugin, type TransformerPluginContext, type TransformerPluginGlobal, VISUAL_STUDIO_CODE_OPTIONS, type VisualStudioCodeOptions, WEB_TYPES_OPTIONS, type WebTypesOptions, assets, copy, customElement, document, extract, parse, read, readme, style, transformer, validate, visualStudioCode, webTypes };
|
package/dist/transformer.js
CHANGED
|
@@ -385,6 +385,9 @@ const hasDecorator = (node, name) => {
|
|
|
385
385
|
|
|
386
386
|
// TODO: add options
|
|
387
387
|
const print = (ast) => {
|
|
388
|
+
// TODO: the `ast` should not be undefined
|
|
389
|
+
if (!ast)
|
|
390
|
+
return '';
|
|
388
391
|
return (generator.default || generator)(ast, { decoratorsBeforeExport: true }).code;
|
|
389
392
|
};
|
|
390
393
|
|
|
@@ -992,16 +995,12 @@ const parse = (options) => {
|
|
|
992
995
|
return { name, run };
|
|
993
996
|
};
|
|
994
997
|
|
|
995
|
-
const
|
|
996
|
-
encoding: 'utf8'
|
|
997
|
-
};
|
|
998
|
-
const read = (options) => {
|
|
998
|
+
const read = () => {
|
|
999
999
|
const name = 'read';
|
|
1000
|
-
options = Object.assign({}, READ_OPTIONS, options);
|
|
1001
1000
|
const run = (context) => {
|
|
1002
1001
|
if (!context.filePath)
|
|
1003
1002
|
return;
|
|
1004
|
-
context.fileContent = fs.readFileSync(context.filePath,
|
|
1003
|
+
context.fileContent = fs.readFileSync(context.filePath, 'utf8');
|
|
1005
1004
|
context.fileExtension = path.extname(context.filePath);
|
|
1006
1005
|
context.fileName = path.basename(context.filePath, context.fileExtension);
|
|
1007
1006
|
context.directoryPath = path.dirname(context.filePath);
|
|
@@ -1250,4 +1249,4 @@ const webTypes = (options) => {
|
|
|
1250
1249
|
return { name, finish };
|
|
1251
1250
|
};
|
|
1252
1251
|
|
|
1253
|
-
export { ASSETS_OPTIONS, COPY_OPTIONS, CUSTOM_ELEMENT_OPTIONS, DOCUMENT_OPTIONS, PARSE_OPTIONS, README_OPTIONS,
|
|
1252
|
+
export { ASSETS_OPTIONS, COPY_OPTIONS, CUSTOM_ELEMENT_OPTIONS, DOCUMENT_OPTIONS, PARSE_OPTIONS, README_OPTIONS, STYLE_OPTIONS, VISUAL_STUDIO_CODE_OPTIONS, WEB_TYPES_OPTIONS, assets, copy, customElement, document, extract, parse, read, readme, style, transformer, validate, visualStudioCode, webTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlplus/element",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"author": "Masood Abdolian <m.abdolian@gmail.com>",
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"./jsx-runtime": "./dist/jsx-runtime.d.ts"
|
|
40
40
|
},
|
|
41
|
+
"funding": [],
|
|
41
42
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
43
|
+
"node": ">= 22.10.0"
|
|
43
44
|
},
|
|
44
45
|
"keywords": [
|
|
45
46
|
"components",
|
|
@@ -56,38 +57,38 @@
|
|
|
56
57
|
},
|
|
57
58
|
"homepage": "https://github.com/htmlplus/element#readme",
|
|
58
59
|
"dependencies": {
|
|
59
|
-
"@babel/generator": "^7.
|
|
60
|
-
"@babel/parser": "^7.
|
|
61
|
-
"@babel/template": "^7.
|
|
62
|
-
"@babel/traverse": "^7.
|
|
63
|
-
"@babel/types": "^7.
|
|
64
|
-
"@types/node": "^20.
|
|
65
|
-
"@types/react": "^18.3.
|
|
60
|
+
"@babel/generator": "^7.26.0",
|
|
61
|
+
"@babel/parser": "^7.26.1",
|
|
62
|
+
"@babel/template": "^7.25.9",
|
|
63
|
+
"@babel/traverse": "^7.25.9",
|
|
64
|
+
"@babel/types": "^7.26.0",
|
|
65
|
+
"@types/node": "^20.17.1",
|
|
66
|
+
"@types/react": "^18.3.12",
|
|
66
67
|
"change-case": "^5.4.4",
|
|
67
68
|
"fs-extra": "^11.2.0",
|
|
68
69
|
"glob": "^11.0.0",
|
|
69
|
-
"ora": "^8.0
|
|
70
|
-
"typescript": "^5.
|
|
70
|
+
"ora": "^8.1.0",
|
|
71
|
+
"typescript": "^5.6.3"
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@rollup/plugin-typescript": "^
|
|
74
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
74
75
|
"@semantic-release/changelog": "^6.0.3",
|
|
75
76
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
76
77
|
"@semantic-release/git": "^10.0.1",
|
|
77
|
-
"@semantic-release/github": "^
|
|
78
|
+
"@semantic-release/github": "^11.0.0",
|
|
78
79
|
"@semantic-release/npm": "^12.0.1",
|
|
79
80
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
80
81
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
81
82
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
82
|
-
"cpy": "^11.0
|
|
83
|
+
"cpy": "^11.1.0",
|
|
83
84
|
"prettier": "^3.3.3",
|
|
84
85
|
"rimraf": "^6.0.1",
|
|
85
|
-
"rollup": "^4.
|
|
86
|
+
"rollup": "^4.24.2",
|
|
86
87
|
"rollup-plugin-copy": "^3.5.0",
|
|
87
88
|
"rollup-plugin-dts": "^6.1.1",
|
|
88
|
-
"rollup-plugin-node-externals": "^7.1.
|
|
89
|
-
"semantic-release": "^24.
|
|
90
|
-
"tslib": "^2.
|
|
91
|
-
"vite": "^5.
|
|
89
|
+
"rollup-plugin-node-externals": "^7.1.3",
|
|
90
|
+
"semantic-release": "^24.2.0",
|
|
91
|
+
"tslib": "^2.8.0",
|
|
92
|
+
"vite": "^5.4.10"
|
|
92
93
|
}
|
|
93
94
|
}
|